import { MultiTenantMessagingSettings } from '@axinom/mosaic-message-bus-abstractions'; export class IdServiceMultiTenantMessagingSettings extends MultiTenantMessagingSettings { /** * Defines the messaging settings for the command with message type * "SynchronizePermissions" and aggregate type "permission". * The aggregate ID field must contain the value of the "environment ID" field. */ public static SynchronizePermissions = new IdServiceMultiTenantMessagingSettings( 'SynchronizePermissions', 'inbox', '*.*.permissions.synchronize', 'command', 'permission' ); /** * Defines the messaging settings for the command with message type * "DeleteUser" and aggregate type "user". * The aggregate ID field must contain the value of the "user ID" field. */ public static DeleteUser = new IdServiceMultiTenantMessagingSettings( 'DeleteUser', 'inbox', '*.*.user.delete', 'command', 'user' ); /** * Defines the messaging settings for the command with message type * "DeleteServiceAccount" and aggregate type "service-account". * The aggregate ID field must contain the value of the "client ID" field. */ public static DeleteServiceAccount = new IdServiceMultiTenantMessagingSettings( 'DeleteServiceAccount', 'inbox', '*.*.service_account.delete', 'command', 'service-account' ); /** * Defines the messaging settings for the command with message type * "DeleteUserRole" and aggregate type "user-role". * The aggregate ID field must contain the value of the "user role ID" field. */ public static DeleteUserRole = new IdServiceMultiTenantMessagingSettings( 'DeleteUserRole', 'inbox', '*.*.user_role.delete', 'command', 'user-role' ); /** * Defines the messaging settings for the event with message type * "SynchronizePermissionsFinished" and aggregate type "permission". * The aggregate ID field contains the value of the "environment ID" field. */ public static SynchronizePermissionsFinished = new IdServiceMultiTenantMessagingSettings( 'SynchronizePermissionsFinished', 'permissions:synchronize_finished', '*.*.permissions.synchronize_finished', 'event', 'permission' ); /** * Defines the messaging settings for the event with message type * "SynchronizePermissionsFailed" and aggregate type "permission". * The aggregate ID field contains the value of the "environment ID" field. */ public static SynchronizePermissionsFailed = new IdServiceMultiTenantMessagingSettings( 'SynchronizePermissionsFailed', 'permissions:synchronize_failed', '*.*.permissions.synchronize_failed', 'event', 'permission' ); /** * Defines the messaging settings for the event with message type * "UserDeleteFinished" and aggregate type "user". * The aggregate ID field contains the value of the "user ID" field. */ public static UserDeleteFinished = new IdServiceMultiTenantMessagingSettings( 'UserDeleteFinished', 'management_user:delete_finished', '*.*.management_user.delete_finished', 'event', 'user' ); /** * Defines the messaging settings for the event with message type * "UserDeleteFailed" and aggregate type "user". * The aggregate ID field contains the value of the "user ID" field. */ public static UserDeleteFailed = new IdServiceMultiTenantMessagingSettings( 'UserDeleteFailed', 'management_user:delete_failed', '*.*.management_user.delete_failed', 'event', 'user' ); /** * Defines the messaging settings for the event with message type * "UserRoleDeleteFinished" and aggregate type "user-role". * The aggregate ID field contains the value of the "user role ID" field. */ public static UserRoleDeleteFinished = new IdServiceMultiTenantMessagingSettings( 'UserRoleDeleteFinished', 'management_user_role:delete_finished', '*.*.management_user_role.delete_finished', 'event', 'user-role' ); /** * Defines the messaging settings for the event with message type * "UserRoleDeleteFailed" and aggregate type "user-role". * The aggregate ID field contains the value of the "user role ID" field. */ public static UserRoleDeleteFailed = new IdServiceMultiTenantMessagingSettings( 'UserRoleDeleteFailed', 'management_user_role:delete_failed', '*.*.management_user_role.delete_failed', 'event', 'user-role' ); /** * Defines the messaging settings for the event with message type * "UserRoleAssignmentChanged" and aggregate type "user-role-assignment". * The aggregate ID field contains the value of the "user role assignment ID" field. */ public static UserRoleAssignmentChanged = new IdServiceMultiTenantMessagingSettings( 'UserRoleAssignmentChanged', 'management_user_role:assignment_changed', '*.*.management_user_role.assignment_changed', 'event', 'user-role-assignment' ); /** * Defines the messaging settings for the event with message type * "ServiceAccountDeleteFinished" and aggregate type "service-account". * The aggregate ID field contains the value of the "client ID" field. */ public static ServiceAccountDeleteFinished = new IdServiceMultiTenantMessagingSettings( 'ServiceAccountDeleteFinished', 'service_account:delete_finished', '*.*.service_account.delete_finished', 'event', 'service-account' ); /** * Defines the messaging settings for the event with message type * "ServiceAccountDeleteFailed" and aggregate type "service-account". * The aggregate ID field contains the value of the "client ID" field. */ public static ServiceAccountDeleteFailed = new IdServiceMultiTenantMessagingSettings( 'ServiceAccountDeleteFailed', 'service_account:delete_failed', '*.*.service_account.delete_failed', 'event', 'service-account' ); /** * Defines the messaging settings for the event with message type * "ServiceAccountPermissionChanged" and aggregate type "service-account". * The aggregate ID field contains the value of the "client ID" field. */ public static ServiceAccountPermissionChanged = new IdServiceMultiTenantMessagingSettings( 'ServiceAccountPermissionChanged', 'service_account:permission_changed', '*.*.service_account.permission_changed', 'event', 'service-account' ); private constructor( messageType: string, queue: string, routingKey: string, action: 'command' | 'event', aggregateType: string, ) { super('ax-id-service', messageType, queue, routingKey, action, aggregateType); } public override toString = (): string => { return this.messageType; }; }