service/domain/workflow/workflowitem_permission_revoked
Api Code Documentation / Exports / service/domain/workflow/workflowitem_permission_revoked
#
Table of contents#
Interfaces#
Variables#
Functions#
Variables#
schema• Const
schema: ObjectSchema
#
Defined insrc/service/domain/workflow/workflowitem_permission_revoked.ts:25
#
Functions#
createEventâ–¸ createEvent(source
, publisher
, projectId
, subprojectId
, workflowitemId
, permission
, revokee
, time?
): Type
<Event
>
#
ParametersName | Type |
---|---|
source | string |
publisher | string |
projectId | string |
subprojectId | string |
workflowitemId | string |
permission | default |
revokee | string |
time | string |
#
Returns#
Defined insrc/service/domain/workflow/workflowitem_permission_revoked.ts:37
#
mutateâ–¸ mutate(workflowitem
, event
): Type
<void
>
Applies the event to the given workflowitem, 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
workflowitem is automatically validated when obtained using
workflowitem_eventsourcing.ts
:newWorkflowitemFromEvent
.
#
ParametersName | Type |
---|---|
workflowitem | Workflowitem |
event | Event |
#
ReturnsType
<void
>
#
Defined insrc/service/domain/workflow/workflowitem_permission_revoked.ts:81
#
validateâ–¸ validate(input
): Type
<Event
>
#
ParametersName | Type |
---|---|
input | any |
#
Returns#
Defined insrc/service/domain/workflow/workflowitem_permission_revoked.ts:66