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
Name | Type |
---|---|
source | string |
publisher | string |
docId | string |
time | string |
metadata? | UserMetadata |
Returns
Defined in
src/service/domain/document/document_deleted.ts:38
createFrom
▸ createFrom(ctx
, event
): Type
<DeletedDocument
>
Parameters
Name | Type |
---|---|
ctx | Ctx |
event | Event |
Returns
Defined in
src/service/domain/document/document_deleted.ts:76
validate
▸ validate(input
): Type
<Event
>
Parameters
Name | Type |
---|---|
input | Partial <Event > |
Returns
Defined in
src/service/domain/document/document_deleted.ts:33
validateDocument
▸ validateDocument(input
): Type
<DeletedDocument
>
Parameters
Name | Type |
---|---|
input | Partial <DeletedDocument > |