Skip to content

Interface: TransformationService ​

Defined in: domain/contracts.ts:511

Converts a document to another profile or form.

Methods ​

transform() ​

ts
transform(input): Promise<DocumentInstance<string>>;

Defined in: domain/contracts.ts:513

Transforms a document, optionally to another profile.

Parameters ​

ParameterType
input{ document: DocumentInstance; fromProfile: DocumentProfile; options?: Record<string, JsonValue>; toProfileId?: string; }
input.documentDocumentInstance
input.fromProfileDocumentProfile
input.options?Record<string, JsonValue>
input.toProfileId?string

Returns ​

Promise<DocumentInstance<string>>