import type { MessagingSettings } from '@axinom/mosaic-message-bus-abstractions'; export class SduServiceMessagingSettings implements MessagingSettings { /** * Defines the messaging settings for the command with message type * "SduStorageCreate" and aggregate type "storage". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduStorageCreate = new SduServiceMessagingSettings( 'SduStorageCreate', 'storage:create', 'storage.create', 'command', 'storage' ); /** * Defines the messaging settings for the command with message type * "SduStorageDelete" and aggregate type "storage". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduStorageDelete = new SduServiceMessagingSettings( 'SduStorageDelete', 'storage:delete', 'storage.delete', 'command', 'storage' ); /** * Defines the messaging settings for the command with message type * "SduCreateDatabase" and aggregate type "database". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduCreateDatabase = new SduServiceMessagingSettings( 'SduCreateDatabase', 'database:create', 'database.create', 'command', 'database' ); /** * Defines the messaging settings for the command with message type * "SduDeleteDatabase" and aggregate type "database". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduDeleteDatabase = new SduServiceMessagingSettings( 'SduDeleteDatabase', 'database:delete', 'database.delete', 'command', 'database' ); /** * Defines the messaging settings for the command with message type * "SduSecureStorageCreate" and aggregate type "secure-storage". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduSecureStorageCreate = new SduServiceMessagingSettings( 'SduSecureStorageCreate', 'secure_storage:create', 'secure_storage.create', 'command', 'secure-storage' ); /** * Defines the messaging settings for the command with message type * "SduSecureStorageDelete" and aggregate type "secure-storage". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduSecureStorageDelete = new SduServiceMessagingSettings( 'SduSecureStorageDelete', 'secure_storage:delete', 'secure_storage.delete', 'command', 'secure-storage' ); /** * Defines the messaging settings for the command with message type * "SduCreateDns" and aggregate type "dns". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduCreateDns = new SduServiceMessagingSettings( 'SduCreateDns', 'dns:create', 'dns.create', 'command', 'dns' ); /** * Defines the messaging settings for the command with message type * "SduDeleteDns" and aggregate type "dns". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduDeleteDns = new SduServiceMessagingSettings( 'SduDeleteDns', 'dns:delete', 'dns.delete', 'command', 'dns' ); /** * Defines the messaging settings for the command with message type * "SduServiceDeploymentDeploy" and aggregate type "service". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduServiceDeploymentDeploy = new SduServiceMessagingSettings( 'SduServiceDeploymentDeploy', 'service_deployment:deploy', 'service_deployment.deploy', 'command', 'service' ); /** * Defines the messaging settings for the command with message type * "SduServiceDeploymentUndeploy" and aggregate type "service". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduServiceDeploymentUndeploy = new SduServiceMessagingSettings( 'SduServiceDeploymentUndeploy', 'service_deployment:undeploy', 'service_deployment.undeploy', 'command', 'service' ); /** * Defines the messaging settings for the command with message type * "SduServiceScaleServiceDeployment" and aggregate type "service". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SduServiceScaleServiceDeployment = new SduServiceMessagingSettings( 'SduServiceScaleServiceDeployment', 'service_deployment:scale', 'service_deployment.scale', 'command', 'service' ); /** * Defines the messaging settings for the event with message type * "SduStorageCreateFinished" and aggregate type "storage". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduStorageCreateFinished = new SduServiceMessagingSettings( 'SduStorageCreateFinished', 'storage:create_finished', 'storage.create_finished', 'event', 'storage' ); /** * Defines the messaging settings for the event with message type * "SduStorageCreateFailed" and aggregate type "storage". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduStorageCreateFailed = new SduServiceMessagingSettings( 'SduStorageCreateFailed', 'storage:create_failed', 'storage.create_failed', 'event', 'storage' ); /** * Defines the messaging settings for the event with message type * "SduStorageDeleteFinished" and aggregate type "storage". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduStorageDeleteFinished = new SduServiceMessagingSettings( 'SduStorageDeleteFinished', 'storage:delete_finished', 'storage.delete_finished', 'event', 'storage' ); /** * Defines the messaging settings for the event with message type * "SduStorageDeleteFailed" and aggregate type "storage". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduStorageDeleteFailed = new SduServiceMessagingSettings( 'SduStorageDeleteFailed', 'storage:delete_failed', 'storage.delete_failed', 'event', 'storage' ); /** * Defines the messaging settings for the event with message type * "SduDeleteDatabaseFinished" and aggregate type "database". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduDeleteDatabaseFinished = new SduServiceMessagingSettings( 'SduDeleteDatabaseFinished', 'database:delete_finished', 'database.delete_finished', 'event', 'database' ); /** * Defines the messaging settings for the event with message type * "SduDeleteDatabaseFailed" and aggregate type "database". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduDeleteDatabaseFailed = new SduServiceMessagingSettings( 'SduDeleteDatabaseFailed', 'database:delete_failed', 'database.delete_failed', 'event', 'database' ); /** * Defines the messaging settings for the event with message type * "SduCreateDatabaseFinished" and aggregate type "database". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduCreateDatabaseFinished = new SduServiceMessagingSettings( 'SduCreateDatabaseFinished', 'database:create_finished', 'database.create_finished', 'event', 'database' ); /** * Defines the messaging settings for the event with message type * "SduCreateDatabaseFailed" and aggregate type "database". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduCreateDatabaseFailed = new SduServiceMessagingSettings( 'SduCreateDatabaseFailed', 'database:create_failed', 'database.create_failed', 'event', 'database' ); /** * Defines the messaging settings for the event with message type * "SduSecureStorageCreateFinished" and aggregate type "secure-storage". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduSecureStorageCreateFinished = new SduServiceMessagingSettings( 'SduSecureStorageCreateFinished', 'secure_storage:create_finished', 'secure_storage.create_finished', 'event', 'secure-storage' ); /** * Defines the messaging settings for the event with message type * "SduSecureStorageCreateFailed" and aggregate type "secure-storage". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduSecureStorageCreateFailed = new SduServiceMessagingSettings( 'SduSecureStorageCreateFailed', 'secure_storage:create_failed', 'secure_storage.create_failed', 'event', 'secure-storage' ); /** * Defines the messaging settings for the event with message type * "SduSecureStorageDeleteFinished" and aggregate type "secure-storage". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduSecureStorageDeleteFinished = new SduServiceMessagingSettings( 'SduSecureStorageDeleteFinished', 'secure_storage:delete_finished', 'secure_storage.delete_finished', 'event', 'secure-storage' ); /** * Defines the messaging settings for the event with message type * "SduSecureStorageDeleteFailed" and aggregate type "secure-storage". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduSecureStorageDeleteFailed = new SduServiceMessagingSettings( 'SduSecureStorageDeleteFailed', 'secure_storage:delete_failed', 'secure_storage.delete_failed', 'event', 'secure-storage' ); /** * Defines the messaging settings for the event with message type * "SduDeleteDnsFinished" and aggregate type "dns". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduDeleteDnsFinished = new SduServiceMessagingSettings( 'SduDeleteDnsFinished', 'dns:delete_finished', 'dns.delete_finished', 'event', 'dns' ); /** * Defines the messaging settings for the event with message type * "SduDeleteDnsFailed" and aggregate type "dns". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduDeleteDnsFailed = new SduServiceMessagingSettings( 'SduDeleteDnsFailed', 'dns:delete_failed', 'dns.delete_failed', 'event', 'dns' ); /** * Defines the messaging settings for the event with message type * "SduCreateDnsFinished" and aggregate type "dns". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduCreateDnsFinished = new SduServiceMessagingSettings( 'SduCreateDnsFinished', 'dns:create_finished', 'dns.create_finished', 'event', 'dns' ); /** * Defines the messaging settings for the event with message type * "SduCreateDnsFailed" and aggregate type "dns". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduCreateDnsFailed = new SduServiceMessagingSettings( 'SduCreateDnsFailed', 'dns:create_failed', 'dns.create_failed', 'event', 'dns' ); /** * Defines the messaging settings for the event with message type * "SduServiceDeploymentDeployFinished" and aggregate type "service". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduServiceDeploymentDeployFinished = new SduServiceMessagingSettings( 'SduServiceDeploymentDeployFinished', 'service_deployment:deploy_finished', 'service_deployment.deploy_finished', 'event', 'service' ); /** * Defines the messaging settings for the event with message type * "SduServiceDeploymentDeployFailed" and aggregate type "service". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduServiceDeploymentDeployFailed = new SduServiceMessagingSettings( 'SduServiceDeploymentDeployFailed', 'service_deployment:deploy_failed', 'service_deployment.deploy_failed', 'event', 'service' ); /** * Defines the messaging settings for the event with message type * "SduServiceDeploymentUndeployFinished" and aggregate type "service". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduServiceDeploymentUndeployFinished = new SduServiceMessagingSettings( 'SduServiceDeploymentUndeployFinished', 'service_deployment:undeploy_finished', 'service_deployment.undeploy_finished', 'event', 'service' ); /** * Defines the messaging settings for the event with message type * "SduServiceDeploymentUndeployFailed" and aggregate type "service". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduServiceDeploymentUndeployFailed = new SduServiceMessagingSettings( 'SduServiceDeploymentUndeployFailed', 'service_deployment:undeploy_failed', 'service_deployment.undeploy_failed', 'event', 'service' ); /** * Defines the messaging settings for the event with message type * "SduServiceScaleServiceDeploymentFinished" and aggregate type "service". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduServiceScaleServiceDeploymentFinished = new SduServiceMessagingSettings( 'SduServiceScaleServiceDeploymentFinished', 'service_deployment:scale_finished', 'service_deployment.scale_finished', 'event', 'service' ); /** * Defines the messaging settings for the event with message type * "SduServiceScaleServiceDeploymentFailed" and aggregate type "service". * The aggregate ID field contains the value of the "environment ID" field. */ public static SduServiceScaleServiceDeploymentFailed = new SduServiceMessagingSettings( 'SduServiceScaleServiceDeploymentFailed', 'service_deployment:scale_failed', 'service_deployment.scale_failed', 'event', 'service' ); public readonly serviceId = 'ax-sdu-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; }; }