service/domain/workflow/project_updated
Api Code Documentation / Exports / service/domain/workflow/project_updated
#
Table of contents#
Interfaces#
Variables#
Functions#
Variables#
modificationSchema• Const
modificationSchema: ObjectSchema
#
Defined insrc/service/domain/workflow/project_updated.ts:25
#
schema• Const
schema: ObjectSchema
#
Defined insrc/service/domain/workflow/project_updated.ts:42
#
Functions#
createEventâ–¸ createEvent(source
, publisher
, projectId
, modification
, time?
): Type
<Event
>
#
ParametersName | Type |
---|---|
source | string |
publisher | string |
projectId | string |
modification | Modification |
time | string |
#
Returns#
Defined insrc/service/domain/workflow/project_updated.ts:51
#
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
.
#
ParametersName | Type |
---|---|
project | Project |
event | Event |
#
ReturnsType
<void
>
#
Defined insrc/service/domain/workflow/project_updated.ts:90
#
validateâ–¸ validate(input
): Type
<Event
>
#
ParametersName | Type |
---|---|
input | any |