RunActionModeCompletedEvent
Hierarchy
- ModeResultEvent<{ action: add | delete | noop | update; predecessorResourceId?: string; reason?: already-done | taken-from-predecessor | unchanged; resourceId: string }>
- RunActionModeCompletedEvent
Index
Constructors
Properties
Constructors
constructor
Parameters
optionalname: string
The subject of the event, when the event type alone does not identify it.
optionalpayload: { action: add | delete | noop | update; predecessorResourceId?: string; reason?: already-done | taken-from-predecessor | unchanged; resourceId: string }
The event's data.
action: add | delete | noop | update
What became of the resource.
noopmeans its action did not run.optionalpredecessorResourceId: string
The resource whose response a
taken-from-predecessornoop took.optionalreason: already-done | taken-from-predecessor | unchanged
Why a
noopran nothing: nothing changed since the last commit, an earlier call already ran the action for these inputs, or a renamed resource with its predecessor's properties took that response. Absent for any other action.resourceId: string
Returns RunActionModeCompletedEvent
Properties
readonlyinheritedheader
When the event was created. sequence counts every event this process created, so it orders
two events created in the same millisecond, and events a late listener receives replayed.
Type declaration
sequence: number
timestamp: number
readonlyinheritedname
The subject of the event, when the event type alone does not identify it - e.g. the class name on a registration event. Empty otherwise.
readonlyinheritedpayload
The event's data. Its shape is fixed by the event type.
Type declaration
action: add | delete | noop | update
What became of the resource.
noopmeans its action did not run.optionalpredecessorResourceId?: string
The resource whose response a
taken-from-predecessornoop took.optionalreason?: already-done | taken-from-predecessor | unchanged
Why a
noopran nothing: nothing changed since the last commit, an earlier call already ran the action for these inputs, or a renamed resource with its predecessor's properties took that response. Absent for any other action.resourceId: string
This event is emitted when
run-actionhas run, or found no need to run, the action of one external resource.Events/ModeResult