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
Name | Type |
---|---|
source | string |
publisher | string |
docId | string |
fileName | string |
organization | string |
time | string |
metadata? | UserMetadata |
Returns
Defined in
src/service/domain/document/document_uploaded.ts:45
createFrom
▸ createFrom(ctx
, event
): Type
<StoredDocument
>
Parameters
Name | Type |
---|---|
ctx | Ctx |
event | Event |
Returns
Defined in
src/service/domain/document/document_uploaded.ts:88
validate
▸ validate(input
): Type
<Event
>
Parameters
Name | Type |
---|---|
input | any |
Returns
Defined in
src/service/domain/document/document_uploaded.ts:40
validateDocument
▸ validateDocument(input
): Type
<StoredDocument
>
Parameters
Name | Type |
---|---|
input | any |