import { IDomainEvent, IEventMetadata } from '@vytches/ddd-contracts'; import { IActor } from '@vytches/ddd-domain-primitives'; export interface IIntegrationEventMetadata extends IEventMetadata { /** Version of the event schema (used for contract versioning) */ schemaVersion?: number; /** Source bounded context */ sourceContext?: string; /** Target bounded context (optional) */ targetContext?: string; /** Routing path (e.g. topic/channel) */ routingKey?: string; /** Actor who performed the action that led to this event */ actor?: IActor; /** Owner of the resource affected by the event */ owner?: IActor; /** Additional application-specific metadata */ [key: string]: unknown; } export interface IIntegrationEvent
extends IDomainEvent
{
/** Metadata of the event */
metadata?: IIntegrationEventMetadata;
}
export interface IDomainToIntegrationEventTransformer