Skip to main content

service/domain/document/document_uploaded

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

Table of contents#

Interfaces#

Variables#

Functions#

Variables#

schema#

Const schema: ObjectSchema

Defined in#

src/service/domain/document/document_uploaded.ts:25

Functions#

createEvent#

createEvent(source, publisher, docId, fileName, organization, time?): Type<Event>

Parameters#

NameType
sourcestring
publisherstring
docIdstring
fileNamestring
organizationstring
timestring

Returns#

Type<Event>

Defined in#

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


createFrom#

createFrom(ctx, event): Type<StoredDocument>

Parameters#

NameType
ctxCtx
eventEvent

Returns#

Type<StoredDocument>

Defined in#

src/service/domain/document/document_uploaded.ts:82


validate#

validate(input): Type<Event>

Parameters#

NameType
inputany

Returns#

Type<Event>

Defined in#

src/service/domain/document/document_uploaded.ts:36


validateDocument#

validateDocument(input): Type<StoredDocument>

Parameters#

NameType
inputany

Returns#

Type<StoredDocument>

Defined in#

src/service/domain/document/document_uploaded.ts:77