import { Message, MessageAttributes } from '@node-ts/bus-messages'; /** * A message from the transport provider that encapsulates the raw message * plus the domain message payload */ export interface TransportMessage { /** * Uniquely identify the message */ id: string | undefined; /** * The domain message payload transmitted in the payload */ domainMessage: Message; /** * The raw message as it was received from the transport */ raw: TransportMessageType; /** * Additional attributes and metadata that was sent along with the message */ attributes: MessageAttributes; }