service/domain/workflow/workflowitems_reordered
Api Code Documentation / Exports / service/domain/workflow/workflowitems_reordered
Table of contents
Interfaces
Variables
Functions
Variables
schema
• Const
schema: ObjectSchema
<any
>
Defined in
src/service/domain/workflow/workflowitems_reordered.ts:26
Functions
createEvent
▸ createEvent(source
, publisher
, projectId
, subprojectId
, ordering
, time?
, metadata?
): Type
<Event
>
Parameters
Name | Type |
---|---|
source | string |
publisher | string |
projectId | string |
subprojectId | string |
ordering | string [] |
time | string |
metadata? | UserMetadata |
Returns
Defined in
src/service/domain/workflow/workflowitems_reordered.ts:37
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
.
Parameters
Name | Type |
---|---|
subproject | Subproject |
event | Event |
Returns
Type
<void
>
Defined in
src/service/domain/workflow/workflowitems_reordered.ts:79
validate
▸ validate(input
): Type
<Event
>
Parameters
Name | Type |
---|---|
input | any |