The common event structure, published by notification-services
Example usage:
type MyEvent = Event<"myDomain.myDomainObject.someEvent", { field1: string, field2: Date}> Copy
type MyEvent = Event<"myDomain.myDomainObject.someEvent", { field1: string, field2: Date}>
The type of the event, should be unique 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. Defaults to current time.
B2B Customer ID
Functional data related to event
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 notification-services
Example usage: