import type { MessagingSettings } from '@axinom/mosaic-message-bus-abstractions'; export class CommonServiceMessagingSettings implements MessagingSettings { /** * Defines the messaging settings for the command with message type * "PerformItemChange" and aggregate type "environment". * The aggregate ID field must contain the value of the "environment ID" field. */ public static GetPerformItemChangeSettings(serviceId: string) { return new CommonServiceMessagingSettings( serviceId, 'PerformItemChange', 'inbox', 'generic_entity_type.perform_item_change', 'command', 'environment' ); } private constructor( public readonly serviceId: string, public readonly messageType: string, public readonly queue: string, public readonly routingKey: string, public readonly action: 'command' | 'event', public readonly aggregateType: string, ) { } public toString = (): string => { return this.messageType; }; }