Skip to content

Interface: DocumentRecordApi ​

Defined in: application/services/records/active-record-contracts.ts:67

Public shape of DocumentRecord: a document bound to its workspace and services.

Properties ​

data ​

ts
data: DocumentData;

Defined in: application/services/records/active-record-contracts.ts:71


exportHtml ​

ts
exportHtml: (options?) => Promise<string>;

Defined in: application/services/records/active-record-contracts.ts:79

Parameters ​

ParameterType
options?any

Returns ​

Promise<string>


exportJsonLd ​

ts
exportJsonLd: (options?) => Promise<object>;

Defined in: application/services/records/active-record-contracts.ts:81

Parameters ​

ParameterType
options?any

Returns ​

Promise<object>


exportMarkdown ​

ts
exportMarkdown: (options?) => Promise<string>;

Defined in: application/services/records/active-record-contracts.ts:78

Parameters ​

ParameterType
options?any

Returns ​

Promise<string>


exportPdfBlob ​

ts
exportPdfBlob: (options?) => Promise<Blob>;

Defined in: application/services/records/active-record-contracts.ts:80

Parameters ​

ParameterType
options?any

Returns ​

Promise<Blob>


getQAScore ​

ts
getQAScore: () => Promise<number>;

Defined in: application/services/records/active-record-contracts.ts:77

Returns ​

Promise<number>


id ​

ts
readonly id: string;

Defined in: application/services/records/active-record-contracts.ts:68


patchByPath ​

ts
patchByPath: (path, value) => Promise<DocumentRecordApi>;

Defined in: application/services/records/active-record-contracts.ts:75

Parameters ​

ParameterType
path(string | number)[]
valueany

Returns ​

Promise<DocumentRecordApi>


profileId ​

ts
readonly profileId: string;

Defined in: application/services/records/active-record-contracts.ts:70


refresh ​

ts
refresh: () => Promise<DocumentRecordApi>;

Defined in: application/services/records/active-record-contracts.ts:73

Returns ​

Promise<DocumentRecordApi>


setField ​

ts
setField: (fieldPath, value) => Promise<DocumentRecordApi>;

Defined in: application/services/records/active-record-contracts.ts:74

Parameters ​

ParameterType
fieldPathstring
valueFieldValue[]

Returns ​

Promise<DocumentRecordApi>


title? ​

ts
title?: string;

Defined in: application/services/records/active-record-contracts.ts:72


toInstance ​

ts
toInstance: () => DocumentInstance;

Defined in: application/services/records/active-record-contracts.ts:82

Returns ​

DocumentInstance


validate ​

ts
validate: () => Promise<ValidationResult>;

Defined in: application/services/records/active-record-contracts.ts:76

Returns ​

Promise<ValidationResult>


workspaceId ​

ts
readonly workspaceId: string;

Defined in: application/services/records/active-record-contracts.ts:69