Interface IEvent<T>

Type Parameters

  • T = unknown

Hierarchy

Properties

$correlationId?: string

UUID related to a single "transaction" within the system, passed from commands to events to commands etc...

$data: T

Body of the event containing all relevant data updates

$metadata?: IRequestMetadata

Object containing metadata about the initiating request

$name: string

Event name. Defaults to the name of the constructor

$streamId: string

Stream ID the event belongs to

$timestamp: Date

Timestamp event was created

$type: EventType

Differentiating between Commands, Events, and Queries

$uuid: string

UUID to individually identify an event

$version: number

Event revision version

Generated using TypeDoc