import type { MessagingSettings } from '@axinom/mosaic-message-bus-abstractions'; export class PersonalizationServiceMessagingSettings implements MessagingSettings { /** * Defines the messaging settings for the command with message type * "PersonalizationServiceEnable" and aggregate type "environment". * The aggregate ID field must contain the value of the "environment ID" field. */ public static PersonalizationServiceEnable = new PersonalizationServiceMessagingSettings( 'PersonalizationServiceEnable', 'service:enable', 'personalization_service.enable', 'command', 'environment' ); /** * Defines the messaging settings for the command with message type * "PersonalizationServiceDisable" and aggregate type "environment". * The aggregate ID field must contain the value of the "environment ID" field. */ public static PersonalizationServiceDisable = new PersonalizationServiceMessagingSettings( 'PersonalizationServiceDisable', 'service:disable', 'personalization_service.disable', 'command', 'environment' ); /** * Defines the messaging settings for the event with message type * "PersonalizationServiceEnableFinished" and aggregate type "environment". * The aggregate ID field contains the value of the "environment ID" field. */ public static PersonalizationServiceEnableFinished = new PersonalizationServiceMessagingSettings( 'PersonalizationServiceEnableFinished', 'personalization_service:enable_finished', 'personalization_service.enable_finished', 'event', 'environment' ); /** * Defines the messaging settings for the event with message type * "PersonalizationServiceEnableFailed" and aggregate type "environment". * The aggregate ID field contains the value of the "environment ID" field. */ public static PersonalizationServiceEnableFailed = new PersonalizationServiceMessagingSettings( 'PersonalizationServiceEnableFailed', 'personalization_service:enable_failed', 'personalization_service.enable_failed', 'event', 'environment' ); /** * Defines the messaging settings for the event with message type * "PersonalizationServiceDisableFinished" and aggregate type "environment". * The aggregate ID field contains the value of the "environment ID" field. */ public static PersonalizationServiceDisableFinished = new PersonalizationServiceMessagingSettings( 'PersonalizationServiceDisableFinished', 'personalization_service:disable_finished', 'personalization_service.disable_finished', 'event', 'environment' ); /** * Defines the messaging settings for the event with message type * "PersonalizationServiceDisableFailed" and aggregate type "environment". * The aggregate ID field contains the value of the "environment ID" field. */ public static PersonalizationServiceDisableFailed = new PersonalizationServiceMessagingSettings( 'PersonalizationServiceDisableFailed', 'personalization_service:disable_failed', 'personalization_service.disable_failed', 'event', 'environment' ); public readonly serviceId = 'ax-personalization-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; }; }