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<any>

Defined in

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

Functions

createEvent

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

Parameters

NameType
sourcestring
publisherstring
docIdstring
fileNamestring
organizationstring
timestring
metadata?UserMetadata

Returns

Type<Event>

Defined in

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


createFrom

createFrom(ctx, event): Type<StoredDocument>

Parameters

NameType
ctxCtx
eventEvent

Returns

Type<StoredDocument>

Defined in

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


validate

validate(input): Type<Event>

Parameters

NameType
inputany

Returns

Type<Event>

Defined in

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


validateDocument

validateDocument(input): Type<StoredDocument>

Parameters

NameType
inputany

Returns

Type<StoredDocument>

Defined in

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