Interface EmittedByHook<K>
interface EmittedByHook<K extends EmittedKind> {
data?: PlainValue;
journeyId: JourneyId;
kind: K;
message: string;
sequence: number;
source: EmitterSource;
timestamp: Timestamp;
workflow: WorkflowName;
}
data?: PlainValue;
journeyId: JourneyId;
kind: K;
message: string;
sequence: number;
source: EmitterSource;
timestamp: Timestamp;
workflow: WorkflowName;
}
Type Parameters
- K extends EmittedKind
Hierarchy (View Summary)
- FixedFields<K>
- EmittedByHook
Properties
Optional Readonlydata
The author's data, captured as a value when it was emitted.
Readonlyjourney Id
The journey's ID.
Readonlykind
The event's kind, which tells what else it carries.
Readonlymessage
message: string
The author's message.
Readonlysequence
sequence: number
The event's position in its journey's event stream, from 1.
Readonlysource
The hook or service provider that emitted it.
Readonlytimestamp
When the event was emitted.
Readonlyworkflow
The workflow's name.
An event a hook or a service provider emits about its own work.