Skip to main content

service/domain/document/document

Api Code Documentation / Exports / service/domain/document/document

Table of contents#

Interfaces#

Variables#

Functions#

Variables#

documentReferenceSchema#

Const documentReferenceSchema: ObjectSchema

Defined in#

src/service/domain/document/document.ts:28


storedDocumentSchema#

Const storedDocumentSchema: ObjectSchema

Defined in#

src/service/domain/document/document.ts:14


uploadedDocumentSchema#

Const uploadedDocumentSchema: ObjectSchema

Defined in#

src/service/domain/document/document.ts:41

Functions#

hashDocument#

hashDocument(document): Promise<Type<DocumentReference>>

Parameters#

NameType
documentUploadedDocument

Returns#

Promise<Type<DocumentReference>>

Defined in#

src/service/domain/document/document.ts:54


hashDocuments#

hashDocuments(documents): Promise<Type<DocumentReference[]>>

Parameters#

NameType
documentsUploadedDocument[]

Returns#

Promise<Type<DocumentReference[]>>

Defined in#

src/service/domain/document/document.ts:65


validate#

validate(input): Type<UploadedDocument>

Parameters#

NameType
inputany

Returns#

Type<UploadedDocument>

Defined in#

src/service/domain/document/document.ts:87