service/domain/workflow/project_closed
Api Code Documentation / Exports / service/domain/workflow/project_closed
Table of contents
Interfaces
Variables
Functions
Variables
schema
• Const
schema: ObjectSchema
<any
>
Defined in
src/service/domain/workflow/project_closed.ts:22
Functions
createEvent
▸ createEvent(source
, publisher
, projectId
, time?
, metadata?
): Type
<Event
>
Parameters
Name | Type |
---|---|
source | string |
publisher | string |
projectId | string |
time | string |
metadata? | UserMetadata |
Returns
Defined in
src/service/domain/workflow/project_closed.ts:31
mutate
▸ mutate(project
, event
): Type
<void
>
Applies the event to the given project, or returns an error.
When an error is returned (or thrown), any already applied modifications are discarded.
This function is not expected to validate its changes; instead, the modified project
is automatically validated when obtained using
project_eventsourcing.ts
:newProjectFromEvent
.
Parameters
Name | Type |
---|---|
project | Project |
event | Event |
Returns
Type
<void
>
Defined in
src/service/domain/workflow/project_closed.ts:68
validate
▸ validate(input
): Type
<Event
>
Parameters
Name | Type |
---|---|
input | any |