import type { MessagingSettings } from '@axinom/mosaic-message-bus-abstractions'; export class LocalizationServiceMessagingSettings implements MessagingSettings { /** * Defines the messaging settings for the command with message type * "LocalizationServiceEnable" and aggregate type "environment". * The aggregate ID field must contain the value of the "environment ID" field. */ public static LocalizationServiceEnable = new LocalizationServiceMessagingSettings( 'LocalizationServiceEnable', 'inbox', 'localization_service.enable', 'command', 'environment' ); /** * Defines the messaging settings for the command with message type * "LocalizationServiceDisable" and aggregate type "environment". * The aggregate ID field must contain the value of the "environment ID" field. */ public static LocalizationServiceDisable = new LocalizationServiceMessagingSettings( 'LocalizationServiceDisable', 'inbox', 'localization_service.disable', 'command', 'environment' ); /** * Defines the messaging settings for the event with message type * "LocalizationServiceEnableFinished" and aggregate type "environment". * The aggregate ID field contains the value of the "environment ID" field. */ public static LocalizationServiceEnableFinished = new LocalizationServiceMessagingSettings( 'LocalizationServiceEnableFinished', 'localization_service:enable_finished', 'localization_service.enable_finished', 'event', 'environment' ); /** * Defines the messaging settings for the event with message type * "LocalizationServiceEnableFailed" and aggregate type "environment". * The aggregate ID field contains the value of the "environment ID" field. */ public static LocalizationServiceEnableFailed = new LocalizationServiceMessagingSettings( 'LocalizationServiceEnableFailed', 'localization_service:enable_failed', 'localization_service.enable_failed', 'event', 'environment' ); /** * Defines the messaging settings for the event with message type * "LocalizationServiceDisableFinished" and aggregate type "environment". * The aggregate ID field contains the value of the "environment ID" field. */ public static LocalizationServiceDisableFinished = new LocalizationServiceMessagingSettings( 'LocalizationServiceDisableFinished', 'localization_service:disable_finished', 'localization_service.disable_finished', 'event', 'environment' ); /** * Defines the messaging settings for the event with message type * "LocalizationServiceDisableFailed" and aggregate type "environment". * The aggregate ID field contains the value of the "environment ID" field. */ public static LocalizationServiceDisableFailed = new LocalizationServiceMessagingSettings( 'LocalizationServiceDisableFailed', 'localization_service:disable_failed', 'localization_service.disable_failed', 'event', 'environment' ); public readonly serviceId = 'ax-localization-service'; private constructor( 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; }; }