/** * Los eventos de dominion estan orientados a la cola AMQ * */ // Completar con los tipos de evento export type DomainEventType = string export type DomainEvent = { key: string, payload: Object, headers?: Object & { message_id?: string }, occurredOn?: Date, } export interface DomainEventSubscriber { subscribedTo(): DomainEventType[]; getEventNames(): string[]; on(domainEvent: T): Promise; }