Skip to main content

service/domain/document/document

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

Table of contents

Interfaces

Type Aliases

Variables

Functions

Type Aliases

DocumentOrExternalLinkReference

Ƭ DocumentOrExternalLinkReference: DocumentReference | ExternalLinkReference

Defined in

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


DocumentWithAvailability

Ƭ DocumentWithAvailability: DocumentOrExternalLinkReference & { comment?: string ; isValidHash?: boolean ; lastModified?: string }

Defined in

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


Ƭ UploadedDocumentOrLink: UploadedDocument | DocumentLink

Defined in

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

Variables

MAX_DOCUMENT_SIZE_BASE64

Const MAX_DOCUMENT_SIZE_BASE64: number

Defined in

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


MAX_DOCUMENT_SIZE_BINARY

Const MAX_DOCUMENT_SIZE_BINARY: number

Defined in

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


documentReferenceSchema

Const documentReferenceSchema: AlternativesSchema<any>

Defined in

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


storedDocumentSchema

Const storedDocumentSchema: ObjectSchema<any>

Defined in

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


uploadedDocumentSchema

Const uploadedDocumentSchema: AlternativesSchema<any>

Defined in

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

Functions

hashBase64String

hashBase64String(base64String): Promise<string>

Parameters

NameType
base64Stringstring

Returns

Promise<string>

Defined in

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


hashDocument

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

Parameters

NameType
documentUploadedDocument

Returns

Promise<Type<DocumentReference>>

Defined in

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


hashDocuments

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

Parameters

NameType
documentsUploadedDocument[]

Returns

Promise<Type<DocumentReference[]>>

Defined in

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


validate

validate(input): Type<UploadedDocument>

Parameters

NameType
inputany

Returns

Type<UploadedDocument>

Defined in

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