Skip to main content

service/domain/document/document_deleted

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

Table of contents

Interfaces

Variables

Functions

Variables

schema

Const schema: ObjectSchema<any>

Defined in

src/service/domain/document/document_deleted.ts:24

Functions

createEvent

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

Parameters

NameType
sourcestring
publisherstring
docIdstring
timestring
metadata?UserMetadata

Returns

Type<Event>

Defined in

src/service/domain/document/document_deleted.ts:38


createFrom

createFrom(ctx, event): Type<DeletedDocument>

Parameters

NameType
ctxCtx
eventEvent

Returns

Type<DeletedDocument>

Defined in

src/service/domain/document/document_deleted.ts:76


validate

validate(input): Type<Event>

Parameters

NameType
inputPartial<Event>

Returns

Type<Event>

Defined in

src/service/domain/document/document_deleted.ts:33


validateDocument

validateDocument(input): Type<DeletedDocument>

Parameters

NameType
inputPartial<DeletedDocument>

Returns

Type<DeletedDocument>

Defined in

src/service/domain/document/document_deleted.ts:71