service/domain/workflow/subproject_updated
Api Code Documentation / Exports / service/domain/workflow/subproject_updated
#
Table of contents#
Interfaces#
Variables#
Functions#
Variables#
schema• Const
schema: ObjectSchema
#
Defined insrc/service/domain/workflow/subproject_updated.ts:39
#
updatedDataSchema• Const
updatedDataSchema: ObjectSchema
#
Defined insrc/service/domain/workflow/subproject_updated.ts:29
#
Functions#
createEventâ–¸ createEvent(source
, publisher
, projectId
, subprojectId
, update
, time?
): Type
<Event
>
#
ParametersName | Type |
---|---|
source | string |
publisher | string |
projectId | string |
subprojectId | string |
update | UpdatedData |
time | string |
#
Returns#
Defined insrc/service/domain/workflow/subproject_updated.ts:49
#
mutateâ–¸ mutate(subproject
, event
): Type
<void
>
Applies the event to the given subproject, 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
subproject is automatically validated when obtained using
subproject_eventsourcing.ts
:newSubprojectFromEvent
.
#
ParametersName | Type |
---|---|
subproject | Subproject |
event | Event |
#
ReturnsType
<void
>
#
Defined insrc/service/domain/workflow/subproject_updated.ts:89
#
validateâ–¸ validate(input
): Type
<Event
>
#
ParametersName | Type |
---|---|
input | any |