Created
December 3, 2022 04:35
-
-
Save leegilmorecode/12cef18db446103d7e714e3d7d19e957 to your computer and use it in GitHub Desktop.
Example of our domain event models and interfaces
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type DomainEvent = { | |
source: string; | |
eventName: string; | |
event: Record<string, any>; | |
eventDateTime: string; | |
eventVersion: string; | |
}; | |
export interface ICreateDomainEvent { | |
source: string; | |
eventName: string; | |
event: Record<string, any>; | |
eventSchema?: Record<string, any>; | |
eventVersion: string; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment