The common event structure, published by services
Example usage:
type MyEvent = Event<"myDomain.myEntity.someEvent", { field1: string, field2: Date}> Copy
type MyEvent = Event<"myDomain.myEntity.someEvent", { field1: string, field2: Date}>
The type of the event, should be uique within its domain
The event data for this specific event type and domain. It must be (de)seriable to/from JSON
Optional
The timestamp of when the publisher created the event
B2B Customer ID
Event type, in the format:
<domain>.<entity>.<event>, e.g. deposit.cashDepositRequest.statusUpdated
<domain>.<entity>.<event>
deposit.cashDepositRequest.statusUpdated
The common event structure, published by services
Example usage: