import { MultiTenantMessagingSettings } from '@axinom/mosaic-message-bus-abstractions'; export class LocalizationServiceMultiTenantMessagingSettings extends MultiTenantMessagingSettings { /** * Defines the messaging settings for the command with message type * "DeclareEntityDefinition" and aggregate type "entity-definition". * The aggregate ID field must contain the value of the "environment ID" field. */ public static DeclareEntityDefinition = new LocalizationServiceMultiTenantMessagingSettings( 'DeclareEntityDefinition', 'inbox', '*.*.entity_definition.declare', 'command', 'entity-definition' ); /** * Defines the messaging settings for the command with message type * "DeleteEntityDefinition" and aggregate type "entity-definition". * The aggregate ID field must contain the value of the "environment ID" field. */ public static DeleteEntityDefinition = new LocalizationServiceMultiTenantMessagingSettings( 'DeleteEntityDefinition', 'inbox', '*.*.entity_definition.delete', 'command', 'entity-definition' ); /** * Defines the messaging settings for the command with message type * "UpsertLocalizationSourceEntity" and aggregate type "localization-source-entity". * The aggregate ID field must contain the value of the "entity ID" field. */ public static UpsertLocalizationSourceEntity = new LocalizationServiceMultiTenantMessagingSettings( 'UpsertLocalizationSourceEntity', 'inbox', '*.*.localization_source_entity.upsert', 'command', 'localization-source-entity' ); /** * Defines the messaging settings for the command with message type * "LocalizeEntity" and aggregate type "localization". * The aggregate ID field must contain the value of the "entity ID" field. */ public static LocalizeEntity = new LocalizationServiceMultiTenantMessagingSettings( 'LocalizeEntity', 'inbox', '*.*.entity.localize', 'command', 'localization' ); /** * Defines the messaging settings for the command with message type * "DeleteLocalizationSourceEntity" and aggregate type "localization-source-entity". * The aggregate ID field must contain the value of the "entity ID" field. */ public static DeleteLocalizationSourceEntity = new LocalizationServiceMultiTenantMessagingSettings( 'DeleteLocalizationSourceEntity', 'inbox', '*.*.localization_source_entity.delete', 'command', 'localization-source-entity' ); /** * Defines the messaging settings for the event with message type * "LocalizeEntityFinished" and aggregate type "localization". * The aggregate ID field contains the value of the "entity ID" field. */ public static LocalizeEntityFinished = new LocalizationServiceMultiTenantMessagingSettings( 'LocalizeEntityFinished', 'entity:localize_finished', '*.*.entity.localize_finished', 'event', 'localization' ); /** * Defines the messaging settings for the event with message type * "LocalizeEntityFailed" and aggregate type "localization". * The aggregate ID field contains the value of the "entity ID" field. */ public static LocalizeEntityFailed = new LocalizationServiceMultiTenantMessagingSettings( 'LocalizeEntityFailed', 'entity:localize_failed', '*.*.entity.localize_failed', 'event', 'localization' ); /** * Defines the messaging settings for the event with message type * "UpsertLocalizationSourceEntityFinished" and aggregate type "localization-source-entity". * The aggregate ID field contains the value of the "entity ID" field. */ public static UpsertLocalizationSourceEntityFinished = new LocalizationServiceMultiTenantMessagingSettings( 'UpsertLocalizationSourceEntityFinished', 'localization_source_entity:upsert_finished', '*.*.localization_source_entity.upsert_finished', 'event', 'localization-source-entity' ); /** * Defines the messaging settings for the event with message type * "UpsertLocalizationSourceEntityFailed" and aggregate type "localization-source-entity". * The aggregate ID field contains the value of the "entity ID" field. */ public static UpsertLocalizationSourceEntityFailed = new LocalizationServiceMultiTenantMessagingSettings( 'UpsertLocalizationSourceEntityFailed', 'localization_source_entity:upsert_failed', '*.*.localization_source_entity.upsert_failed', 'event', 'localization-source-entity' ); /** * Defines the messaging settings for the event with message type * "DeleteLocalizationSourceEntityFinished" and aggregate type "localization-source-entity". * The aggregate ID field contains the value of the "entity ID" field. */ public static DeleteLocalizationSourceEntityFinished = new LocalizationServiceMultiTenantMessagingSettings( 'DeleteLocalizationSourceEntityFinished', 'localization_source_entity:delete_finished', '*.*.localization_source_entity.delete_finished', 'event', 'localization-source-entity' ); /** * Defines the messaging settings for the event with message type * "DeleteLocalizationSourceEntityFailed" and aggregate type "localization-source-entity". * The aggregate ID field contains the value of the "entity ID" field. */ public static DeleteLocalizationSourceEntityFailed = new LocalizationServiceMultiTenantMessagingSettings( 'DeleteLocalizationSourceEntityFailed', 'localization_source_entity:delete_failed', '*.*.localization_source_entity.delete_failed', 'event', 'localization-source-entity' ); /** * Defines the messaging settings for the event with message type * "EntityDefinitionDeclareFinished" and aggregate type "entity-definition". * The aggregate ID field contains the value of the "environment ID" field. */ public static EntityDefinitionDeclareFinished = new LocalizationServiceMultiTenantMessagingSettings( 'EntityDefinitionDeclareFinished', 'entity_definition:declare_finished', '*.*.entity_definition.declare_finished', 'event', 'entity-definition' ); /** * Defines the messaging settings for the event with message type * "EntityDefinitionDeclareFailed" and aggregate type "entity-definition". * The aggregate ID field contains the value of the "environment ID" field. */ public static EntityDefinitionDeclareFailed = new LocalizationServiceMultiTenantMessagingSettings( 'EntityDefinitionDeclareFailed', 'entity_definition:declare_failed', '*.*.entity_definition.declare_failed', 'event', 'entity-definition' ); /** * Defines the messaging settings for the event with message type * "EntityDefinitionDeleteFinished" and aggregate type "entity-definition". * The aggregate ID field contains the value of the "environment ID" field. */ public static EntityDefinitionDeleteFinished = new LocalizationServiceMultiTenantMessagingSettings( 'EntityDefinitionDeleteFinished', 'entity_definition:delete_finished', '*.*.entity_definition.delete_finished', 'event', 'entity-definition' ); /** * Defines the messaging settings for the event with message type * "EntityDefinitionDeleteFailed" and aggregate type "entity-definition". * The aggregate ID field contains the value of the "environment ID" field. */ public static EntityDefinitionDeleteFailed = new LocalizationServiceMultiTenantMessagingSettings( 'EntityDefinitionDeleteFailed', 'entity_definition:delete_failed', '*.*.entity_definition.delete_failed', 'event', 'entity-definition' ); private constructor( messageType: string, queue: string, routingKey: string, action: 'command' | 'event', aggregateType: string, ) { super('ax-localization-service', messageType, queue, routingKey, action, aggregateType); } public override toString = (): string => { return this.messageType; }; }