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
| Parameter | Type |
|---|---|
input | { document: DocumentInstance; fromProfile: DocumentProfile; options?: Record<string, JsonValue>; toProfileId?: string; } |
input.document | DocumentInstance |
input.fromProfile | DocumentProfile |
input.options? | Record<string, JsonValue> |
input.toProfileId? | string |
Returns
Promise<DocumentInstance<string>>