A domain event.
readonly
type: string
Event type name (e.g. "UserCreated").
readonly
id: string
Unique event ID.
readonly
occurredOn: Date
When the event occurred.
readonly
optional
aggregateId: string
ID of the aggregate that produced the event, when applicable.
readonly
optional
version: number
Aggregate version, for event-sourced aggregates.