@contember/engine-system-api 2.1.0-alpha.37 → 2.1.0-alpha.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/development/index.cjs +73 -0
- package/dist/development/index.cjs.map +1 -0
- package/dist/development/index.js +70 -0
- package/dist/development/index.js.map +1 -0
- package/dist/development/src/SystemContainer.cjs +82 -0
- package/dist/development/src/SystemContainer.cjs.map +1 -0
- package/dist/development/src/SystemContainer.js +82 -0
- package/dist/development/src/SystemContainer.js.map +1 -0
- package/dist/development/src/migrations/2018-08-04-102200-init.cjs +36 -0
- package/dist/development/src/migrations/2018-08-04-102200-init.cjs.map +1 -0
- package/dist/development/src/migrations/2018-08-04-102200-init.js +37 -0
- package/dist/development/src/migrations/2018-08-04-102200-init.js.map +1 -0
- package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.cjs +98 -0
- package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.cjs.map +1 -0
- package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.js +99 -0
- package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.js.map +1 -0
- package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.cjs +16 -0
- package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.cjs.map +1 -0
- package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.js +17 -0
- package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.js.map +1 -0
- package/dist/development/src/migrations/2019-02-04-154500-event-rebase.cjs +58 -0
- package/dist/development/src/migrations/2019-02-04-154500-event-rebase.cjs.map +1 -0
- package/dist/development/src/migrations/2019-02-04-154500-event-rebase.js +59 -0
- package/dist/development/src/migrations/2019-02-04-154500-event-rebase.js.map +1 -0
- package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs +11 -0
- package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs.map +1 -0
- package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.js +12 -0
- package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.js.map +1 -0
- package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs +65 -0
- package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs.map +1 -0
- package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.js +66 -0
- package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.js.map +1 -0
- package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs +20 -0
- package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs.map +1 -0
- package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.js +21 -0
- package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.js.map +1 -0
- package/dist/development/src/migrations/2020-03-27-130000-project-migrations.cjs +21 -0
- package/dist/development/src/migrations/2020-03-27-130000-project-migrations.cjs.map +1 -0
- package/dist/development/src/migrations/2020-03-27-130000-project-migrations.js +22 -0
- package/dist/development/src/migrations/2020-03-27-130000-project-migrations.js.map +1 -0
- package/dist/development/src/migrations/2020-05-06-150000-composed-primary.cjs +188 -0
- package/dist/development/src/migrations/2020-05-06-150000-composed-primary.cjs.map +1 -0
- package/dist/development/src/migrations/2020-05-06-150000-composed-primary.js +189 -0
- package/dist/development/src/migrations/2020-05-06-150000-composed-primary.js.map +1 -0
- package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.cjs +128 -0
- package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.cjs.map +1 -0
- package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.js +129 -0
- package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.js.map +1 -0
- package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.cjs +14 -0
- package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.cjs.map +1 -0
- package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.js +15 -0
- package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.js.map +1 -0
- package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.cjs +286 -0
- package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.cjs.map +1 -0
- package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.js +287 -0
- package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.js.map +1 -0
- package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs +44 -0
- package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs.map +1 -0
- package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js +45 -0
- package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js.map +1 -0
- package/dist/development/src/migrations/2021-12-21-155500-events-up.cjs +14 -0
- package/dist/development/src/migrations/2021-12-21-155500-events-up.cjs.map +1 -0
- package/dist/development/src/migrations/2021-12-21-155500-events-up.js +15 -0
- package/dist/development/src/migrations/2021-12-21-155500-events-up.js.map +1 -0
- package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.cjs +15 -0
- package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.cjs.map +1 -0
- package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.js +16 -0
- package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.js.map +1 -0
- package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.cjs +10 -0
- package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.cjs.map +1 -0
- package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.js +11 -0
- package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.js.map +1 -0
- package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs +49 -0
- package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs.map +1 -0
- package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.js +50 -0
- package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.js.map +1 -0
- package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.cjs +59 -0
- package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.cjs.map +1 -0
- package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.js +60 -0
- package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.js.map +1 -0
- package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.cjs +67 -0
- package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.cjs.map +1 -0
- package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.js +68 -0
- package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.js.map +1 -0
- package/dist/development/src/migrations/2023-10-19-173000-fix-unique.cjs +45 -0
- package/dist/development/src/migrations/2023-10-19-173000-fix-unique.cjs.map +1 -0
- package/dist/development/src/migrations/2023-10-19-173000-fix-unique.js +46 -0
- package/dist/development/src/migrations/2023-10-19-173000-fix-unique.js.map +1 -0
- package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs +11 -0
- package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs.map +1 -0
- package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.js +12 -0
- package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.js.map +1 -0
- package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs +15 -0
- package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs.map +1 -0
- package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.js +16 -0
- package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.js.map +1 -0
- package/dist/development/src/migrations/2024-06-28-153000-schema.cjs +18 -0
- package/dist/development/src/migrations/2024-06-28-153000-schema.cjs.map +1 -0
- package/dist/development/src/migrations/2024-06-28-153000-schema.js +19 -0
- package/dist/development/src/migrations/2024-06-28-153000-schema.js.map +1 -0
- package/dist/development/src/migrations/2024-06-28-153001-schema-init.cjs +12 -0
- package/dist/development/src/migrations/2024-06-28-153001-schema-init.cjs.map +1 -0
- package/dist/development/src/migrations/2024-06-28-153001-schema-init.js +13 -0
- package/dist/development/src/migrations/2024-06-28-153001-schema-init.js.map +1 -0
- package/dist/development/src/migrations/2024-07-29-150000-event-data-index.cjs +11 -0
- package/dist/development/src/migrations/2024-07-29-150000-event-data-index.cjs.map +1 -0
- package/dist/development/src/migrations/2024-07-29-150000-event-data-index.js +12 -0
- package/dist/development/src/migrations/2024-07-29-150000-event-data-index.js.map +1 -0
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.cjs +63 -0
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.cjs.map +1 -0
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.js +64 -0
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.js.map +1 -0
- package/dist/development/src/migrations/runner.cjs +106 -0
- package/dist/development/src/migrations/runner.cjs.map +1 -0
- package/dist/development/src/migrations/runner.js +106 -0
- package/dist/development/src/migrations/runner.js.map +1 -0
- package/dist/development/src/migrations/snapshot-factory.cjs +44 -0
- package/dist/development/src/migrations/snapshot-factory.cjs.map +1 -0
- package/dist/development/src/migrations/snapshot-factory.js +44 -0
- package/dist/development/src/migrations/snapshot-factory.js.map +1 -0
- package/dist/development/src/migrations/snapshot.cjs +184 -0
- package/dist/development/src/migrations/snapshot.cjs.map +1 -0
- package/dist/development/src/migrations/snapshot.js +185 -0
- package/dist/development/src/migrations/snapshot.js.map +1 -0
- package/dist/development/src/model/ProjectInitializer.cjs +45 -0
- package/dist/development/src/model/ProjectInitializer.cjs.map +1 -0
- package/dist/development/src/model/ProjectInitializer.js +45 -0
- package/dist/development/src/model/ProjectInitializer.js.map +1 -0
- package/dist/development/src/model/ProjectTruncateExecutor.cjs +31 -0
- package/dist/development/src/model/ProjectTruncateExecutor.cjs.map +1 -0
- package/dist/development/src/model/ProjectTruncateExecutor.js +31 -0
- package/dist/development/src/model/ProjectTruncateExecutor.js.map +1 -0
- package/dist/development/src/model/authorization/AuthorizationActions.cjs +14 -0
- package/dist/development/src/model/authorization/AuthorizationActions.cjs.map +1 -0
- package/dist/development/src/model/authorization/AuthorizationActions.js +15 -0
- package/dist/development/src/model/authorization/AuthorizationActions.js.map +1 -0
- package/dist/development/src/model/authorization/Identity.cjs +10 -0
- package/dist/development/src/model/authorization/Identity.cjs.map +1 -0
- package/dist/development/src/model/authorization/Identity.js +10 -0
- package/dist/development/src/model/authorization/Identity.js.map +1 -0
- package/dist/development/src/model/authorization/PermissionsFactory.cjs +17 -0
- package/dist/development/src/model/authorization/PermissionsFactory.cjs.map +1 -0
- package/dist/development/src/model/authorization/PermissionsFactory.js +17 -0
- package/dist/development/src/model/authorization/PermissionsFactory.js.map +1 -0
- package/dist/development/src/model/authorization/StagePermissionsFactory.cjs +56 -0
- package/dist/development/src/model/authorization/StagePermissionsFactory.cjs.map +1 -0
- package/dist/development/src/model/authorization/StagePermissionsFactory.js +56 -0
- package/dist/development/src/model/authorization/StagePermissionsFactory.js.map +1 -0
- package/dist/development/src/model/authorization/StageScope.cjs +19 -0
- package/dist/development/src/model/authorization/StageScope.cjs.map +1 -0
- package/dist/development/src/model/authorization/StageScope.js +19 -0
- package/dist/development/src/model/authorization/StageScope.js.map +1 -0
- package/dist/development/src/model/authorization/SwitchEvaluatorNode.cjs +14 -0
- package/dist/development/src/model/authorization/SwitchEvaluatorNode.cjs.map +1 -0
- package/dist/development/src/model/authorization/SwitchEvaluatorNode.js +14 -0
- package/dist/development/src/model/authorization/SwitchEvaluatorNode.js.map +1 -0
- package/dist/development/src/model/commands/CommandBus.cjs +16 -0
- package/dist/development/src/model/commands/CommandBus.cjs.map +1 -0
- package/dist/development/src/model/commands/CommandBus.js +16 -0
- package/dist/development/src/model/commands/CommandBus.js.map +1 -0
- package/dist/development/src/model/commands/events/TruncateEventsCommand.cjs +10 -0
- package/dist/development/src/model/commands/events/TruncateEventsCommand.cjs.map +1 -0
- package/dist/development/src/model/commands/events/TruncateEventsCommand.js +10 -0
- package/dist/development/src/model/commands/events/TruncateEventsCommand.js.map +1 -0
- package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.cjs +16 -0
- package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.cjs.map +1 -0
- package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.js +16 -0
- package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.js.map +1 -0
- package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.cjs +38 -0
- package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.cjs.map +1 -0
- package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.js +38 -0
- package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.js.map +1 -0
- package/dist/development/src/model/commands/migrations/SaveMigrationCommand.cjs +28 -0
- package/dist/development/src/model/commands/migrations/SaveMigrationCommand.cjs.map +1 -0
- package/dist/development/src/model/commands/migrations/SaveMigrationCommand.js +28 -0
- package/dist/development/src/model/commands/migrations/SaveMigrationCommand.js.map +1 -0
- package/dist/development/src/model/commands/schema/SaveSchemaCommand.cjs +28 -0
- package/dist/development/src/model/commands/schema/SaveSchemaCommand.cjs.map +1 -0
- package/dist/development/src/model/commands/schema/SaveSchemaCommand.js +28 -0
- package/dist/development/src/model/commands/schema/SaveSchemaCommand.js.map +1 -0
- package/dist/development/src/model/commands/stages/CreateStageCommand.cjs +22 -0
- package/dist/development/src/model/commands/stages/CreateStageCommand.cjs.map +1 -0
- package/dist/development/src/model/commands/stages/CreateStageCommand.js +22 -0
- package/dist/development/src/model/commands/stages/CreateStageCommand.js.map +1 -0
- package/dist/development/src/model/database/DatabaseContext.cjs +29 -0
- package/dist/development/src/model/database/DatabaseContext.cjs.map +1 -0
- package/dist/development/src/model/database/DatabaseContext.js +29 -0
- package/dist/development/src/model/database/DatabaseContext.js.map +1 -0
- package/dist/development/src/model/dtos/ExecutedMigration.cjs +21 -0
- package/dist/development/src/model/dtos/ExecutedMigration.cjs.map +1 -0
- package/dist/development/src/model/dtos/ExecutedMigration.js +21 -0
- package/dist/development/src/model/dtos/ExecutedMigration.js.map +1 -0
- package/dist/development/src/model/events/EventResponseBuilder.cjs +59 -0
- package/dist/development/src/model/events/EventResponseBuilder.cjs.map +1 -0
- package/dist/development/src/model/events/EventResponseBuilder.js +59 -0
- package/dist/development/src/model/events/EventResponseBuilder.js.map +1 -0
- package/dist/development/src/model/events/EventResponseHelper.cjs +25 -0
- package/dist/development/src/model/events/EventResponseHelper.cjs.map +1 -0
- package/dist/development/src/model/events/EventResponseHelper.js +25 -0
- package/dist/development/src/model/events/EventResponseHelper.js.map +1 -0
- package/dist/development/src/model/events/identityUtils.cjs +16 -0
- package/dist/development/src/model/events/identityUtils.cjs.map +1 -0
- package/dist/development/src/model/events/identityUtils.js +16 -0
- package/dist/development/src/model/events/identityUtils.js.map +1 -0
- package/dist/development/src/model/events/types.cjs +69 -0
- package/dist/development/src/model/events/types.cjs.map +1 -0
- package/dist/development/src/model/events/types.js +69 -0
- package/dist/development/src/model/events/types.js.map +1 -0
- package/dist/development/src/model/helpers/modelHelpers.cjs +28 -0
- package/dist/development/src/model/helpers/modelHelpers.cjs.map +1 -0
- package/dist/development/src/model/helpers/modelHelpers.js +28 -0
- package/dist/development/src/model/helpers/modelHelpers.js.map +1 -0
- package/dist/development/src/model/helpers/stageHelpers.cjs +7 -0
- package/dist/development/src/model/helpers/stageHelpers.cjs.map +1 -0
- package/dist/development/src/model/helpers/stageHelpers.js +7 -0
- package/dist/development/src/model/helpers/stageHelpers.js.map +1 -0
- package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs +35 -0
- package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs.map +1 -0
- package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.js +35 -0
- package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.js.map +1 -0
- package/dist/development/src/model/migrations/ExecutedMigrationsResolver.cjs +17 -0
- package/dist/development/src/model/migrations/ExecutedMigrationsResolver.cjs.map +1 -0
- package/dist/development/src/model/migrations/ExecutedMigrationsResolver.js +17 -0
- package/dist/development/src/model/migrations/ExecutedMigrationsResolver.js.map +1 -0
- package/dist/development/src/model/migrations/MigrationAlterer.cjs +52 -0
- package/dist/development/src/model/migrations/MigrationAlterer.cjs.map +1 -0
- package/dist/development/src/model/migrations/MigrationAlterer.js +52 -0
- package/dist/development/src/model/migrations/MigrationAlterer.js.map +1 -0
- package/dist/development/src/model/migrations/ProjectMigrator.cjs +245 -0
- package/dist/development/src/model/migrations/ProjectMigrator.cjs.map +1 -0
- package/dist/development/src/model/migrations/ProjectMigrator.js +245 -0
- package/dist/development/src/model/migrations/ProjectMigrator.js.map +1 -0
- package/dist/development/src/model/migrations/SchemaProvider.cjs +55 -0
- package/dist/development/src/model/migrations/SchemaProvider.cjs.map +1 -0
- package/dist/development/src/model/migrations/SchemaProvider.js +55 -0
- package/dist/development/src/model/migrations/SchemaProvider.js.map +1 -0
- package/dist/development/src/model/queries/events/EventQueryHelpers.cjs +48 -0
- package/dist/development/src/model/queries/events/EventQueryHelpers.cjs.map +1 -0
- package/dist/development/src/model/queries/events/EventQueryHelpers.js +48 -0
- package/dist/development/src/model/queries/events/EventQueryHelpers.js.map +1 -0
- package/dist/development/src/model/queries/events/EventsQuery.cjs +66 -0
- package/dist/development/src/model/queries/events/EventsQuery.cjs.map +1 -0
- package/dist/development/src/model/queries/events/EventsQuery.js +66 -0
- package/dist/development/src/model/queries/events/EventsQuery.js.map +1 -0
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.cjs +15 -0
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.cjs.map +1 -0
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.js +15 -0
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.js.map +1 -0
- package/dist/development/src/model/queries/events/OldValuesQuery.cjs +15 -0
- package/dist/development/src/model/queries/events/OldValuesQuery.cjs.map +1 -0
- package/dist/development/src/model/queries/events/OldValuesQuery.js +15 -0
- package/dist/development/src/model/queries/events/OldValuesQuery.js.map +1 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs +18 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs.map +1 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js +18 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js.map +1 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.cjs +19 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.cjs.map +1 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.js +19 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.js.map +1 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs +18 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs.map +1 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js +18 -0
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js.map +1 -0
- package/dist/development/src/model/queries/schema/SchemaQuery.cjs +34 -0
- package/dist/development/src/model/queries/schema/SchemaQuery.cjs.map +1 -0
- package/dist/development/src/model/queries/schema/SchemaQuery.js +34 -0
- package/dist/development/src/model/queries/schema/SchemaQuery.js.map +1 -0
- package/dist/development/src/model/queries/stages/StageBySlugQuery.cjs +17 -0
- package/dist/development/src/model/queries/stages/StageBySlugQuery.cjs.map +1 -0
- package/dist/development/src/model/queries/stages/StageBySlugQuery.js +17 -0
- package/dist/development/src/model/queries/stages/StageBySlugQuery.js.map +1 -0
- package/dist/development/src/model/queries/stages/StageQueryFactory.cjs +8 -0
- package/dist/development/src/model/queries/stages/StageQueryFactory.cjs.map +1 -0
- package/dist/development/src/model/queries/stages/StageQueryFactory.js +8 -0
- package/dist/development/src/model/queries/stages/StageQueryFactory.js.map +1 -0
- package/dist/development/src/model/queries/stages/StagesQuery.cjs +12 -0
- package/dist/development/src/model/queries/stages/StagesQuery.cjs.map +1 -0
- package/dist/development/src/model/queries/stages/StagesQuery.js +12 -0
- package/dist/development/src/model/queries/stages/StagesQuery.js.map +1 -0
- package/dist/development/src/model/stages/StageCreator.cjs +20 -0
- package/dist/development/src/model/stages/StageCreator.cjs.map +1 -0
- package/dist/development/src/model/stages/StageCreator.js +20 -0
- package/dist/development/src/model/stages/StageCreator.js.map +1 -0
- package/dist/development/src/resolvers/ResolverFactory.cjs +92 -0
- package/dist/development/src/resolvers/ResolverFactory.cjs.map +1 -0
- package/dist/development/src/resolvers/ResolverFactory.js +92 -0
- package/dist/development/src/resolvers/ResolverFactory.js.map +1 -0
- package/dist/development/src/resolvers/SystemResolverContext.cjs +37 -0
- package/dist/development/src/resolvers/SystemResolverContext.cjs.map +1 -0
- package/dist/development/src/resolvers/SystemResolverContext.js +37 -0
- package/dist/development/src/resolvers/SystemResolverContext.js.map +1 -0
- package/dist/development/src/resolvers/mutation/MigrateMutationResolver.cjs +113 -0
- package/dist/development/src/resolvers/mutation/MigrateMutationResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/mutation/MigrateMutationResolver.js +113 -0
- package/dist/development/src/resolvers/mutation/MigrateMutationResolver.js.map +1 -0
- package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.cjs +48 -0
- package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.js +48 -0
- package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.js.map +1 -0
- package/dist/development/src/resolvers/mutation/TruncateMutationResolver.cjs +15 -0
- package/dist/development/src/resolvers/mutation/TruncateMutationResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/mutation/TruncateMutationResolver.js +15 -0
- package/dist/development/src/resolvers/mutation/TruncateMutationResolver.js.map +1 -0
- package/dist/development/src/resolvers/query/EventsQueryResolver.cjs +45 -0
- package/dist/development/src/resolvers/query/EventsQueryResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/query/EventsQueryResolver.js +45 -0
- package/dist/development/src/resolvers/query/EventsQueryResolver.js.map +1 -0
- package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs +29 -0
- package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.js +29 -0
- package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.js.map +1 -0
- package/dist/development/src/resolvers/query/SchemaQueryResolver.cjs +23 -0
- package/dist/development/src/resolvers/query/SchemaQueryResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/query/SchemaQueryResolver.js +23 -0
- package/dist/development/src/resolvers/query/SchemaQueryResolver.js.map +1 -0
- package/dist/development/src/resolvers/query/StagesQueryResolver.cjs +19 -0
- package/dist/development/src/resolvers/query/StagesQueryResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/query/StagesQueryResolver.js +19 -0
- package/dist/development/src/resolvers/query/StagesQueryResolver.js.map +1 -0
- package/dist/development/src/resolvers/types/EventOldValuesResolver.cjs +10 -0
- package/dist/development/src/resolvers/types/EventOldValuesResolver.cjs.map +1 -0
- package/dist/development/src/resolvers/types/EventOldValuesResolver.js +10 -0
- package/dist/development/src/resolvers/types/EventOldValuesResolver.js.map +1 -0
- package/dist/development/src/resolvers/types/OldValuesHelpers.cjs +21 -0
- package/dist/development/src/resolvers/types/OldValuesHelpers.cjs.map +1 -0
- package/dist/development/src/resolvers/types/OldValuesHelpers.js +21 -0
- package/dist/development/src/resolvers/types/OldValuesHelpers.js.map +1 -0
- package/dist/development/src/schema/dev.graphql.cjs +56 -0
- package/dist/development/src/schema/dev.graphql.cjs.map +1 -0
- package/dist/development/src/schema/dev.graphql.js +57 -0
- package/dist/development/src/schema/dev.graphql.js.map +1 -0
- package/dist/development/src/schema/system.graphql.cjs +211 -0
- package/dist/development/src/schema/system.graphql.cjs.map +1 -0
- package/dist/development/src/schema/system.graphql.js +212 -0
- package/dist/development/src/schema/system.graphql.js.map +1 -0
- package/dist/development/src/schema/types.cjs +46 -0
- package/dist/development/src/schema/types.cjs.map +1 -0
- package/dist/development/src/schema/types.js +46 -0
- package/dist/development/src/schema/types.js.map +1 -0
- package/dist/development/src/utils/MapSet.cjs +43 -0
- package/dist/development/src/utils/MapSet.cjs.map +1 -0
- package/dist/development/src/utils/MapSet.js +43 -0
- package/dist/development/src/utils/MapSet.js.map +1 -0
- package/dist/development/src/utils/Response.cjs +21 -0
- package/dist/development/src/utils/Response.cjs.map +1 -0
- package/dist/development/src/utils/Response.js +21 -0
- package/dist/development/src/utils/Response.js.map +1 -0
- package/dist/development/src/utils/assertNever.cjs +7 -0
- package/dist/development/src/utils/assertNever.cjs.map +1 -0
- package/dist/development/src/utils/assertNever.js +7 -0
- package/dist/development/src/utils/assertNever.js.map +1 -0
- package/dist/development/src/utils/batchQuery.cjs +22 -0
- package/dist/development/src/utils/batchQuery.cjs.map +1 -0
- package/dist/development/src/utils/batchQuery.js +22 -0
- package/dist/development/src/utils/batchQuery.js.map +1 -0
- package/dist/development/src/utils/exceptions.cjs +9 -0
- package/dist/development/src/utils/exceptions.cjs.map +1 -0
- package/dist/development/src/utils/exceptions.js +9 -0
- package/dist/development/src/utils/exceptions.js.map +1 -0
- package/dist/development/src/utils/tick.cjs +5 -0
- package/dist/development/src/utils/tick.cjs.map +1 -0
- package/dist/development/src/utils/tick.js +5 -0
- package/dist/development/src/utils/tick.js.map +1 -0
- package/dist/development/src/utils/tuple.cjs +5 -0
- package/dist/development/src/utils/tuple.cjs.map +1 -0
- package/dist/development/src/utils/tuple.js +5 -0
- package/dist/development/src/utils/tuple.js.map +1 -0
- package/dist/production/index.cjs +73 -0
- package/dist/production/index.cjs.map +1 -0
- package/dist/production/index.js +70 -0
- package/dist/production/index.js.map +1 -0
- package/dist/production/src/SystemContainer.cjs +82 -0
- package/dist/production/src/SystemContainer.cjs.map +1 -0
- package/dist/production/src/SystemContainer.js +82 -0
- package/dist/production/src/SystemContainer.js.map +1 -0
- package/dist/production/src/migrations/2018-08-04-102200-init.cjs +36 -0
- package/dist/production/src/migrations/2018-08-04-102200-init.cjs.map +1 -0
- package/dist/production/src/migrations/2018-08-04-102200-init.js +37 -0
- package/dist/production/src/migrations/2018-08-04-102200-init.js.map +1 -0
- package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.cjs +98 -0
- package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.cjs.map +1 -0
- package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.js +99 -0
- package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.js.map +1 -0
- package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.cjs +16 -0
- package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.cjs.map +1 -0
- package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.js +17 -0
- package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.js.map +1 -0
- package/dist/production/src/migrations/2019-02-04-154500-event-rebase.cjs +58 -0
- package/dist/production/src/migrations/2019-02-04-154500-event-rebase.cjs.map +1 -0
- package/dist/production/src/migrations/2019-02-04-154500-event-rebase.js +59 -0
- package/dist/production/src/migrations/2019-02-04-154500-event-rebase.js.map +1 -0
- package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs +11 -0
- package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs.map +1 -0
- package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.js +12 -0
- package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.js.map +1 -0
- package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs +65 -0
- package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs.map +1 -0
- package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.js +66 -0
- package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.js.map +1 -0
- package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs +20 -0
- package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs.map +1 -0
- package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.js +21 -0
- package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.js.map +1 -0
- package/dist/production/src/migrations/2020-03-27-130000-project-migrations.cjs +21 -0
- package/dist/production/src/migrations/2020-03-27-130000-project-migrations.cjs.map +1 -0
- package/dist/production/src/migrations/2020-03-27-130000-project-migrations.js +22 -0
- package/dist/production/src/migrations/2020-03-27-130000-project-migrations.js.map +1 -0
- package/dist/production/src/migrations/2020-05-06-150000-composed-primary.cjs +188 -0
- package/dist/production/src/migrations/2020-05-06-150000-composed-primary.cjs.map +1 -0
- package/dist/production/src/migrations/2020-05-06-150000-composed-primary.js +189 -0
- package/dist/production/src/migrations/2020-05-06-150000-composed-primary.js.map +1 -0
- package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.cjs +128 -0
- package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.cjs.map +1 -0
- package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.js +129 -0
- package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.js.map +1 -0
- package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.cjs +14 -0
- package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.cjs.map +1 -0
- package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.js +15 -0
- package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.js.map +1 -0
- package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.cjs +286 -0
- package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.cjs.map +1 -0
- package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.js +287 -0
- package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.js.map +1 -0
- package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs +44 -0
- package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs.map +1 -0
- package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js +45 -0
- package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js.map +1 -0
- package/dist/production/src/migrations/2021-12-21-155500-events-up.cjs +14 -0
- package/dist/production/src/migrations/2021-12-21-155500-events-up.cjs.map +1 -0
- package/dist/production/src/migrations/2021-12-21-155500-events-up.js +15 -0
- package/dist/production/src/migrations/2021-12-21-155500-events-up.js.map +1 -0
- package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.cjs +15 -0
- package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.cjs.map +1 -0
- package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.js +16 -0
- package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.js.map +1 -0
- package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.cjs +10 -0
- package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.cjs.map +1 -0
- package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.js +11 -0
- package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.js.map +1 -0
- package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs +49 -0
- package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs.map +1 -0
- package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.js +50 -0
- package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.js.map +1 -0
- package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.cjs +59 -0
- package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.cjs.map +1 -0
- package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.js +60 -0
- package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.js.map +1 -0
- package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.cjs +67 -0
- package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.cjs.map +1 -0
- package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.js +68 -0
- package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.js.map +1 -0
- package/dist/production/src/migrations/2023-10-19-173000-fix-unique.cjs +45 -0
- package/dist/production/src/migrations/2023-10-19-173000-fix-unique.cjs.map +1 -0
- package/dist/production/src/migrations/2023-10-19-173000-fix-unique.js +46 -0
- package/dist/production/src/migrations/2023-10-19-173000-fix-unique.js.map +1 -0
- package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs +11 -0
- package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs.map +1 -0
- package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.js +12 -0
- package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.js.map +1 -0
- package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs +15 -0
- package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs.map +1 -0
- package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.js +16 -0
- package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.js.map +1 -0
- package/dist/production/src/migrations/2024-06-28-153000-schema.cjs +18 -0
- package/dist/production/src/migrations/2024-06-28-153000-schema.cjs.map +1 -0
- package/dist/production/src/migrations/2024-06-28-153000-schema.js +19 -0
- package/dist/production/src/migrations/2024-06-28-153000-schema.js.map +1 -0
- package/dist/production/src/migrations/2024-06-28-153001-schema-init.cjs +12 -0
- package/dist/production/src/migrations/2024-06-28-153001-schema-init.cjs.map +1 -0
- package/dist/production/src/migrations/2024-06-28-153001-schema-init.js +13 -0
- package/dist/production/src/migrations/2024-06-28-153001-schema-init.js.map +1 -0
- package/dist/production/src/migrations/2024-07-29-150000-event-data-index.cjs +11 -0
- package/dist/production/src/migrations/2024-07-29-150000-event-data-index.cjs.map +1 -0
- package/dist/production/src/migrations/2024-07-29-150000-event-data-index.js +12 -0
- package/dist/production/src/migrations/2024-07-29-150000-event-data-index.js.map +1 -0
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.cjs +63 -0
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.cjs.map +1 -0
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.js +64 -0
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.js.map +1 -0
- package/dist/production/src/migrations/runner.cjs +106 -0
- package/dist/production/src/migrations/runner.cjs.map +1 -0
- package/dist/production/src/migrations/runner.js +106 -0
- package/dist/production/src/migrations/runner.js.map +1 -0
- package/dist/production/src/migrations/snapshot-factory.cjs +44 -0
- package/dist/production/src/migrations/snapshot-factory.cjs.map +1 -0
- package/dist/production/src/migrations/snapshot-factory.js +44 -0
- package/dist/production/src/migrations/snapshot-factory.js.map +1 -0
- package/dist/production/src/migrations/snapshot.cjs +184 -0
- package/dist/production/src/migrations/snapshot.cjs.map +1 -0
- package/dist/production/src/migrations/snapshot.js +185 -0
- package/dist/production/src/migrations/snapshot.js.map +1 -0
- package/dist/production/src/model/ProjectInitializer.cjs +45 -0
- package/dist/production/src/model/ProjectInitializer.cjs.map +1 -0
- package/dist/production/src/model/ProjectInitializer.js +45 -0
- package/dist/production/src/model/ProjectInitializer.js.map +1 -0
- package/dist/production/src/model/ProjectTruncateExecutor.cjs +31 -0
- package/dist/production/src/model/ProjectTruncateExecutor.cjs.map +1 -0
- package/dist/production/src/model/ProjectTruncateExecutor.js +31 -0
- package/dist/production/src/model/ProjectTruncateExecutor.js.map +1 -0
- package/dist/production/src/model/authorization/AuthorizationActions.cjs +14 -0
- package/dist/production/src/model/authorization/AuthorizationActions.cjs.map +1 -0
- package/dist/production/src/model/authorization/AuthorizationActions.js +15 -0
- package/dist/production/src/model/authorization/AuthorizationActions.js.map +1 -0
- package/dist/production/src/model/authorization/Identity.cjs +10 -0
- package/dist/production/src/model/authorization/Identity.cjs.map +1 -0
- package/dist/production/src/model/authorization/Identity.js +10 -0
- package/dist/production/src/model/authorization/Identity.js.map +1 -0
- package/dist/production/src/model/authorization/PermissionsFactory.cjs +17 -0
- package/dist/production/src/model/authorization/PermissionsFactory.cjs.map +1 -0
- package/dist/production/src/model/authorization/PermissionsFactory.js +17 -0
- package/dist/production/src/model/authorization/PermissionsFactory.js.map +1 -0
- package/dist/production/src/model/authorization/StagePermissionsFactory.cjs +56 -0
- package/dist/production/src/model/authorization/StagePermissionsFactory.cjs.map +1 -0
- package/dist/production/src/model/authorization/StagePermissionsFactory.js +56 -0
- package/dist/production/src/model/authorization/StagePermissionsFactory.js.map +1 -0
- package/dist/production/src/model/authorization/StageScope.cjs +19 -0
- package/dist/production/src/model/authorization/StageScope.cjs.map +1 -0
- package/dist/production/src/model/authorization/StageScope.js +19 -0
- package/dist/production/src/model/authorization/StageScope.js.map +1 -0
- package/dist/production/src/model/authorization/SwitchEvaluatorNode.cjs +14 -0
- package/dist/production/src/model/authorization/SwitchEvaluatorNode.cjs.map +1 -0
- package/dist/production/src/model/authorization/SwitchEvaluatorNode.js +14 -0
- package/dist/production/src/model/authorization/SwitchEvaluatorNode.js.map +1 -0
- package/dist/production/src/model/commands/CommandBus.cjs +16 -0
- package/dist/production/src/model/commands/CommandBus.cjs.map +1 -0
- package/dist/production/src/model/commands/CommandBus.js +16 -0
- package/dist/production/src/model/commands/CommandBus.js.map +1 -0
- package/dist/production/src/model/commands/events/TruncateEventsCommand.cjs +10 -0
- package/dist/production/src/model/commands/events/TruncateEventsCommand.cjs.map +1 -0
- package/dist/production/src/model/commands/events/TruncateEventsCommand.js +10 -0
- package/dist/production/src/model/commands/events/TruncateEventsCommand.js.map +1 -0
- package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.cjs +16 -0
- package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.cjs.map +1 -0
- package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.js +16 -0
- package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.js.map +1 -0
- package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.cjs +38 -0
- package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.cjs.map +1 -0
- package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.js +38 -0
- package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.js.map +1 -0
- package/dist/production/src/model/commands/migrations/SaveMigrationCommand.cjs +28 -0
- package/dist/production/src/model/commands/migrations/SaveMigrationCommand.cjs.map +1 -0
- package/dist/production/src/model/commands/migrations/SaveMigrationCommand.js +28 -0
- package/dist/production/src/model/commands/migrations/SaveMigrationCommand.js.map +1 -0
- package/dist/production/src/model/commands/schema/SaveSchemaCommand.cjs +28 -0
- package/dist/production/src/model/commands/schema/SaveSchemaCommand.cjs.map +1 -0
- package/dist/production/src/model/commands/schema/SaveSchemaCommand.js +28 -0
- package/dist/production/src/model/commands/schema/SaveSchemaCommand.js.map +1 -0
- package/dist/production/src/model/commands/stages/CreateStageCommand.cjs +22 -0
- package/dist/production/src/model/commands/stages/CreateStageCommand.cjs.map +1 -0
- package/dist/production/src/model/commands/stages/CreateStageCommand.js +22 -0
- package/dist/production/src/model/commands/stages/CreateStageCommand.js.map +1 -0
- package/dist/production/src/model/database/DatabaseContext.cjs +29 -0
- package/dist/production/src/model/database/DatabaseContext.cjs.map +1 -0
- package/dist/production/src/model/database/DatabaseContext.js +29 -0
- package/dist/production/src/model/database/DatabaseContext.js.map +1 -0
- package/dist/production/src/model/dtos/ExecutedMigration.cjs +21 -0
- package/dist/production/src/model/dtos/ExecutedMigration.cjs.map +1 -0
- package/dist/production/src/model/dtos/ExecutedMigration.js +21 -0
- package/dist/production/src/model/dtos/ExecutedMigration.js.map +1 -0
- package/dist/production/src/model/events/EventResponseBuilder.cjs +59 -0
- package/dist/production/src/model/events/EventResponseBuilder.cjs.map +1 -0
- package/dist/production/src/model/events/EventResponseBuilder.js +59 -0
- package/dist/production/src/model/events/EventResponseBuilder.js.map +1 -0
- package/dist/production/src/model/events/EventResponseHelper.cjs +25 -0
- package/dist/production/src/model/events/EventResponseHelper.cjs.map +1 -0
- package/dist/production/src/model/events/EventResponseHelper.js +25 -0
- package/dist/production/src/model/events/EventResponseHelper.js.map +1 -0
- package/dist/production/src/model/events/identityUtils.cjs +16 -0
- package/dist/production/src/model/events/identityUtils.cjs.map +1 -0
- package/dist/production/src/model/events/identityUtils.js +16 -0
- package/dist/production/src/model/events/identityUtils.js.map +1 -0
- package/dist/production/src/model/events/types.cjs +69 -0
- package/dist/production/src/model/events/types.cjs.map +1 -0
- package/dist/production/src/model/events/types.js +69 -0
- package/dist/production/src/model/events/types.js.map +1 -0
- package/dist/production/src/model/helpers/modelHelpers.cjs +28 -0
- package/dist/production/src/model/helpers/modelHelpers.cjs.map +1 -0
- package/dist/production/src/model/helpers/modelHelpers.js +28 -0
- package/dist/production/src/model/helpers/modelHelpers.js.map +1 -0
- package/dist/production/src/model/helpers/stageHelpers.cjs +7 -0
- package/dist/production/src/model/helpers/stageHelpers.cjs.map +1 -0
- package/dist/production/src/model/helpers/stageHelpers.js +7 -0
- package/dist/production/src/model/helpers/stageHelpers.js.map +1 -0
- package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs +35 -0
- package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs.map +1 -0
- package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.js +35 -0
- package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.js.map +1 -0
- package/dist/production/src/model/migrations/ExecutedMigrationsResolver.cjs +17 -0
- package/dist/production/src/model/migrations/ExecutedMigrationsResolver.cjs.map +1 -0
- package/dist/production/src/model/migrations/ExecutedMigrationsResolver.js +17 -0
- package/dist/production/src/model/migrations/ExecutedMigrationsResolver.js.map +1 -0
- package/dist/production/src/model/migrations/MigrationAlterer.cjs +52 -0
- package/dist/production/src/model/migrations/MigrationAlterer.cjs.map +1 -0
- package/dist/production/src/model/migrations/MigrationAlterer.js +52 -0
- package/dist/production/src/model/migrations/MigrationAlterer.js.map +1 -0
- package/dist/production/src/model/migrations/ProjectMigrator.cjs +245 -0
- package/dist/production/src/model/migrations/ProjectMigrator.cjs.map +1 -0
- package/dist/production/src/model/migrations/ProjectMigrator.js +245 -0
- package/dist/production/src/model/migrations/ProjectMigrator.js.map +1 -0
- package/dist/production/src/model/migrations/SchemaProvider.cjs +55 -0
- package/dist/production/src/model/migrations/SchemaProvider.cjs.map +1 -0
- package/dist/production/src/model/migrations/SchemaProvider.js +55 -0
- package/dist/production/src/model/migrations/SchemaProvider.js.map +1 -0
- package/dist/production/src/model/queries/events/EventQueryHelpers.cjs +48 -0
- package/dist/production/src/model/queries/events/EventQueryHelpers.cjs.map +1 -0
- package/dist/production/src/model/queries/events/EventQueryHelpers.js +48 -0
- package/dist/production/src/model/queries/events/EventQueryHelpers.js.map +1 -0
- package/dist/production/src/model/queries/events/EventsQuery.cjs +66 -0
- package/dist/production/src/model/queries/events/EventsQuery.cjs.map +1 -0
- package/dist/production/src/model/queries/events/EventsQuery.js +66 -0
- package/dist/production/src/model/queries/events/EventsQuery.js.map +1 -0
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.cjs +15 -0
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.cjs.map +1 -0
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.js +15 -0
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.js.map +1 -0
- package/dist/production/src/model/queries/events/OldValuesQuery.cjs +15 -0
- package/dist/production/src/model/queries/events/OldValuesQuery.cjs.map +1 -0
- package/dist/production/src/model/queries/events/OldValuesQuery.js +15 -0
- package/dist/production/src/model/queries/events/OldValuesQuery.js.map +1 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs +18 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs.map +1 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js +18 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js.map +1 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.cjs +19 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.cjs.map +1 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.js +19 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.js.map +1 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs +18 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs.map +1 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js +18 -0
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js.map +1 -0
- package/dist/production/src/model/queries/schema/SchemaQuery.cjs +34 -0
- package/dist/production/src/model/queries/schema/SchemaQuery.cjs.map +1 -0
- package/dist/production/src/model/queries/schema/SchemaQuery.js +34 -0
- package/dist/production/src/model/queries/schema/SchemaQuery.js.map +1 -0
- package/dist/production/src/model/queries/stages/StageBySlugQuery.cjs +17 -0
- package/dist/production/src/model/queries/stages/StageBySlugQuery.cjs.map +1 -0
- package/dist/production/src/model/queries/stages/StageBySlugQuery.js +17 -0
- package/dist/production/src/model/queries/stages/StageBySlugQuery.js.map +1 -0
- package/dist/production/src/model/queries/stages/StageQueryFactory.cjs +8 -0
- package/dist/production/src/model/queries/stages/StageQueryFactory.cjs.map +1 -0
- package/dist/production/src/model/queries/stages/StageQueryFactory.js +8 -0
- package/dist/production/src/model/queries/stages/StageQueryFactory.js.map +1 -0
- package/dist/production/src/model/queries/stages/StagesQuery.cjs +12 -0
- package/dist/production/src/model/queries/stages/StagesQuery.cjs.map +1 -0
- package/dist/production/src/model/queries/stages/StagesQuery.js +12 -0
- package/dist/production/src/model/queries/stages/StagesQuery.js.map +1 -0
- package/dist/production/src/model/stages/StageCreator.cjs +20 -0
- package/dist/production/src/model/stages/StageCreator.cjs.map +1 -0
- package/dist/production/src/model/stages/StageCreator.js +20 -0
- package/dist/production/src/model/stages/StageCreator.js.map +1 -0
- package/dist/production/src/resolvers/ResolverFactory.cjs +92 -0
- package/dist/production/src/resolvers/ResolverFactory.cjs.map +1 -0
- package/dist/production/src/resolvers/ResolverFactory.js +92 -0
- package/dist/production/src/resolvers/ResolverFactory.js.map +1 -0
- package/dist/production/src/resolvers/SystemResolverContext.cjs +37 -0
- package/dist/production/src/resolvers/SystemResolverContext.cjs.map +1 -0
- package/dist/production/src/resolvers/SystemResolverContext.js +37 -0
- package/dist/production/src/resolvers/SystemResolverContext.js.map +1 -0
- package/dist/production/src/resolvers/mutation/MigrateMutationResolver.cjs +113 -0
- package/dist/production/src/resolvers/mutation/MigrateMutationResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/mutation/MigrateMutationResolver.js +113 -0
- package/dist/production/src/resolvers/mutation/MigrateMutationResolver.js.map +1 -0
- package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.cjs +48 -0
- package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.js +48 -0
- package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.js.map +1 -0
- package/dist/production/src/resolvers/mutation/TruncateMutationResolver.cjs +15 -0
- package/dist/production/src/resolvers/mutation/TruncateMutationResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/mutation/TruncateMutationResolver.js +15 -0
- package/dist/production/src/resolvers/mutation/TruncateMutationResolver.js.map +1 -0
- package/dist/production/src/resolvers/query/EventsQueryResolver.cjs +45 -0
- package/dist/production/src/resolvers/query/EventsQueryResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/query/EventsQueryResolver.js +45 -0
- package/dist/production/src/resolvers/query/EventsQueryResolver.js.map +1 -0
- package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs +29 -0
- package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.js +29 -0
- package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.js.map +1 -0
- package/dist/production/src/resolvers/query/SchemaQueryResolver.cjs +23 -0
- package/dist/production/src/resolvers/query/SchemaQueryResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/query/SchemaQueryResolver.js +23 -0
- package/dist/production/src/resolvers/query/SchemaQueryResolver.js.map +1 -0
- package/dist/production/src/resolvers/query/StagesQueryResolver.cjs +19 -0
- package/dist/production/src/resolvers/query/StagesQueryResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/query/StagesQueryResolver.js +19 -0
- package/dist/production/src/resolvers/query/StagesQueryResolver.js.map +1 -0
- package/dist/production/src/resolvers/types/EventOldValuesResolver.cjs +10 -0
- package/dist/production/src/resolvers/types/EventOldValuesResolver.cjs.map +1 -0
- package/dist/production/src/resolvers/types/EventOldValuesResolver.js +10 -0
- package/dist/production/src/resolvers/types/EventOldValuesResolver.js.map +1 -0
- package/dist/production/src/resolvers/types/OldValuesHelpers.cjs +21 -0
- package/dist/production/src/resolvers/types/OldValuesHelpers.cjs.map +1 -0
- package/dist/production/src/resolvers/types/OldValuesHelpers.js +21 -0
- package/dist/production/src/resolvers/types/OldValuesHelpers.js.map +1 -0
- package/dist/production/src/schema/dev.graphql.cjs +56 -0
- package/dist/production/src/schema/dev.graphql.cjs.map +1 -0
- package/dist/production/src/schema/dev.graphql.js +57 -0
- package/dist/production/src/schema/dev.graphql.js.map +1 -0
- package/dist/production/src/schema/system.graphql.cjs +211 -0
- package/dist/production/src/schema/system.graphql.cjs.map +1 -0
- package/dist/production/src/schema/system.graphql.js +212 -0
- package/dist/production/src/schema/system.graphql.js.map +1 -0
- package/dist/production/src/schema/types.cjs +46 -0
- package/dist/production/src/schema/types.cjs.map +1 -0
- package/dist/production/src/schema/types.js +46 -0
- package/dist/production/src/schema/types.js.map +1 -0
- package/dist/production/src/utils/MapSet.cjs +43 -0
- package/dist/production/src/utils/MapSet.cjs.map +1 -0
- package/dist/production/src/utils/MapSet.js +43 -0
- package/dist/production/src/utils/MapSet.js.map +1 -0
- package/dist/production/src/utils/Response.cjs +21 -0
- package/dist/production/src/utils/Response.cjs.map +1 -0
- package/dist/production/src/utils/Response.js +21 -0
- package/dist/production/src/utils/Response.js.map +1 -0
- package/dist/production/src/utils/assertNever.cjs +7 -0
- package/dist/production/src/utils/assertNever.cjs.map +1 -0
- package/dist/production/src/utils/assertNever.js +7 -0
- package/dist/production/src/utils/assertNever.js.map +1 -0
- package/dist/production/src/utils/batchQuery.cjs +22 -0
- package/dist/production/src/utils/batchQuery.cjs.map +1 -0
- package/dist/production/src/utils/batchQuery.js +22 -0
- package/dist/production/src/utils/batchQuery.js.map +1 -0
- package/dist/production/src/utils/exceptions.cjs +9 -0
- package/dist/production/src/utils/exceptions.cjs.map +1 -0
- package/dist/production/src/utils/exceptions.js +9 -0
- package/dist/production/src/utils/exceptions.js.map +1 -0
- package/dist/production/src/utils/tick.cjs +5 -0
- package/dist/production/src/utils/tick.cjs.map +1 -0
- package/dist/production/src/utils/tick.js +5 -0
- package/dist/production/src/utils/tick.js.map +1 -0
- package/dist/production/src/utils/tuple.cjs +5 -0
- package/dist/production/src/utils/tuple.cjs.map +1 -0
- package/dist/production/src/utils/tuple.js +5 -0
- package/dist/production/src/utils/tuple.js.map +1 -0
- package/dist/tests/cases/migrations/2020-05-06-150000-composed-primary.test.d.ts +2 -0
- package/dist/tests/cases/migrations/2020-05-06-150000-composed-primary.test.d.ts.map +1 -0
- package/dist/tests/cases/migrations/2020-06-01-103000-event-trigger-perf.test.d.ts +2 -0
- package/dist/tests/cases/migrations/2020-06-01-103000-event-trigger-perf.test.d.ts.map +1 -0
- package/dist/tests/cases/migrations/2022-10-03-110000-table-on-delete.test.d.ts +2 -0
- package/dist/tests/cases/migrations/2022-10-03-110000-table-on-delete.test.d.ts.map +1 -0
- package/dist/tests/cases/migrations/2023-09-11-174000-fix-on-delete.test.d.ts +2 -0
- package/dist/tests/cases/migrations/2023-09-11-174000-fix-on-delete.test.d.ts.map +1 -0
- package/dist/tests/cases/migrations/2023-10-19-173000-fix-unique.test.d.ts +2 -0
- package/dist/tests/cases/migrations/2023-10-19-173000-fix-unique.test.d.ts.map +1 -0
- package/dist/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.d.ts +2 -0
- package/dist/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.d.ts.map +1 -0
- package/dist/tests/cases/unit/eventsQuery.test.d.ts +2 -0
- package/dist/tests/cases/unit/eventsQuery.test.d.ts.map +1 -0
- package/dist/tests/src/constants.d.ts +2 -0
- package/dist/tests/src/constants.d.ts.map +1 -0
- package/dist/tests/src/utils.d.ts +6 -0
- package/dist/tests/src/utils.d.ts.map +1 -0
- package/dist/tests/src/uuid.d.ts +3 -0
- package/dist/tests/src/uuid.d.ts.map +1 -0
- package/dist/tests/tsconfig.tsbuildinfo +1 -0
- package/dist/types/StagingDisabledError.d.ts +3 -0
- package/dist/types/StagingDisabledError.d.ts.map +1 -0
- package/dist/types/SystemContainer.d.ts +79 -0
- package/dist/types/SystemContainer.d.ts.map +1 -0
- package/dist/types/bin/runMigrations.d.ts +2 -0
- package/dist/types/bin/runMigrations.d.ts.map +1 -0
- package/dist/types/index.d.ts +9 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/migrations/2018-08-04-102200-init.d.ts +3 -0
- package/dist/types/migrations/2018-08-04-102200-init.d.ts.map +1 -0
- package/dist/types/migrations/2018-08-05-130501-trigger-event-function.d.ts +3 -0
- package/dist/types/migrations/2018-08-05-130501-trigger-event-function.d.ts.map +1 -0
- package/dist/types/migrations/2019-01-14-143432-event-trx-id.d.ts +3 -0
- package/dist/types/migrations/2019-01-14-143432-event-trx-id.d.ts.map +1 -0
- package/dist/types/migrations/2019-02-04-154500-event-rebase.d.ts +3 -0
- package/dist/types/migrations/2019-02-04-154500-event-rebase.d.ts.map +1 -0
- package/dist/types/migrations/2019-03-18-104147-event-run-migration-struct.d.ts +3 -0
- package/dist/types/migrations/2019-03-18-104147-event-run-migration-struct.d.ts.map +1 -0
- package/dist/types/migrations/2019-07-29-103000-trigger-event-function-fix.d.ts +3 -0
- package/dist/types/migrations/2019-07-29-103000-trigger-event-function-fix.d.ts.map +1 -0
- package/dist/types/migrations/2019-11-28-100000-missing-setting-fallback.d.ts +3 -0
- package/dist/types/migrations/2019-11-28-100000-missing-setting-fallback.d.ts.map +1 -0
- package/dist/types/migrations/2020-03-27-130000-project-migrations.d.ts +4 -0
- package/dist/types/migrations/2020-03-27-130000-project-migrations.d.ts.map +1 -0
- package/dist/types/migrations/2020-05-06-150000-composed-primary.d.ts +5 -0
- package/dist/types/migrations/2020-05-06-150000-composed-primary.d.ts.map +1 -0
- package/dist/types/migrations/2020-06-01-103000-event-trigger-perf.d.ts +5 -0
- package/dist/types/migrations/2020-06-01-103000-event-trigger-perf.d.ts.map +1 -0
- package/dist/types/migrations/2021-03-23-110000-timestamp-fix.d.ts +3 -0
- package/dist/types/migrations/2021-03-23-110000-timestamp-fix.d.ts.map +1 -0
- package/dist/types/migrations/2021-05-07-155800-event-log-rework.d.ts +5 -0
- package/dist/types/migrations/2021-05-07-155800-event-log-rework.d.ts.map +1 -0
- package/dist/types/migrations/2021-05-19-1232000-event-log-fix-constraint.d.ts +5 -0
- package/dist/types/migrations/2021-05-19-1232000-event-log-fix-constraint.d.ts.map +1 -0
- package/dist/types/migrations/2021-12-21-155500-events-up.d.ts +3 -0
- package/dist/types/migrations/2021-12-21-155500-events-up.d.ts.map +1 -0
- package/dist/types/migrations/2022-02-08-132600-fn-search-path.d.ts +3 -0
- package/dist/types/migrations/2022-02-08-132600-fn-search-path.d.ts.map +1 -0
- package/dist/types/migrations/2022-02-08-140500-drop-deadcode.d.ts +3 -0
- package/dist/types/migrations/2022-02-08-140500-drop-deadcode.d.ts.map +1 -0
- package/dist/types/migrations/2022-02-08-144400-dynamic-stage-schema.d.ts +3 -0
- package/dist/types/migrations/2022-02-08-144400-dynamic-stage-schema.d.ts.map +1 -0
- package/dist/types/migrations/2022-10-03-110000-table-on-delete.d.ts +4 -0
- package/dist/types/migrations/2022-10-03-110000-table-on-delete.d.ts.map +1 -0
- package/dist/types/migrations/2023-09-11-174000-fix-on-delete.d.ts +4 -0
- package/dist/types/migrations/2023-09-11-174000-fix-on-delete.d.ts.map +1 -0
- package/dist/types/migrations/2023-10-19-173000-fix-unique.d.ts +4 -0
- package/dist/types/migrations/2023-10-19-173000-fix-unique.d.ts.map +1 -0
- package/dist/types/migrations/2023-10-24-140000-schema-nullable-checksum.d.ts +3 -0
- package/dist/types/migrations/2023-10-24-140000-schema-nullable-checksum.d.ts.map +1 -0
- package/dist/types/migrations/2024-06-28-150000-migrations-drop-sequence.d.ts +3 -0
- package/dist/types/migrations/2024-06-28-150000-migrations-drop-sequence.d.ts.map +1 -0
- package/dist/types/migrations/2024-06-28-153000-schema.d.ts +3 -0
- package/dist/types/migrations/2024-06-28-153000-schema.d.ts.map +1 -0
- package/dist/types/migrations/2024-06-28-153001-schema-init.d.ts +4 -0
- package/dist/types/migrations/2024-06-28-153001-schema-init.d.ts.map +1 -0
- package/dist/types/migrations/2024-07-29-150000-event-data-index.d.ts +3 -0
- package/dist/types/migrations/2024-07-29-150000-event-data-index.d.ts.map +1 -0
- package/dist/types/migrations/2025-03-14-110000-fix-missing-index.d.ts +4 -0
- package/dist/types/migrations/2025-03-14-110000-fix-missing-index.d.ts.map +1 -0
- package/dist/types/migrations/index.d.ts +3 -0
- package/dist/types/migrations/index.d.ts.map +1 -0
- package/dist/types/migrations/runner.d.ts +17 -0
- package/dist/types/migrations/runner.d.ts.map +1 -0
- package/dist/types/migrations/snapshot-factory.d.ts +6 -0
- package/dist/types/migrations/snapshot-factory.d.ts.map +1 -0
- package/dist/types/migrations/snapshot.d.ts +3 -0
- package/dist/types/migrations/snapshot.d.ts.map +1 -0
- package/dist/types/migrations/types.d.ts +9 -0
- package/dist/types/migrations/types.d.ts.map +1 -0
- package/dist/types/model/ProjectInitializer.d.ts +15 -0
- package/dist/types/model/ProjectInitializer.d.ts.map +1 -0
- package/dist/types/model/ProjectTruncateExecutor.d.ts +7 -0
- package/dist/types/model/ProjectTruncateExecutor.d.ts.map +1 -0
- package/dist/types/model/SchemaGetter.d.ts +6 -0
- package/dist/types/model/SchemaGetter.d.ts.map +1 -0
- package/dist/types/model/authorization/AuthorizationActions.d.ts +27 -0
- package/dist/types/model/authorization/AuthorizationActions.d.ts.map +1 -0
- package/dist/types/model/authorization/Identity.d.ts +6 -0
- package/dist/types/model/authorization/Identity.d.ts.map +1 -0
- package/dist/types/model/authorization/PermissionsFactory.d.ts +5 -0
- package/dist/types/model/authorization/PermissionsFactory.d.ts.map +1 -0
- package/dist/types/model/authorization/StagePermissionsFactory.d.ts +9 -0
- package/dist/types/model/authorization/StagePermissionsFactory.d.ts.map +1 -0
- package/dist/types/model/authorization/StageScope.d.ts +10 -0
- package/dist/types/model/authorization/StageScope.d.ts.map +1 -0
- package/dist/types/model/authorization/SwitchEvaluatorNode.d.ts +8 -0
- package/dist/types/model/authorization/SwitchEvaluatorNode.d.ts.map +1 -0
- package/dist/types/model/authorization/index.d.ts +4 -0
- package/dist/types/model/authorization/index.d.ts.map +1 -0
- package/dist/types/model/commands/Command.d.ts +15 -0
- package/dist/types/model/commands/Command.d.ts.map +1 -0
- package/dist/types/model/commands/CommandBus.d.ts +11 -0
- package/dist/types/model/commands/CommandBus.d.ts.map +1 -0
- package/dist/types/model/commands/events/TruncateEventsCommand.d.ts +5 -0
- package/dist/types/model/commands/events/TruncateEventsCommand.d.ts.map +1 -0
- package/dist/types/model/commands/events/index.d.ts +2 -0
- package/dist/types/model/commands/events/index.d.ts.map +1 -0
- package/dist/types/model/commands/index.d.ts +6 -0
- package/dist/types/model/commands/index.d.ts.map +1 -0
- package/dist/types/model/commands/migrations/DeleteMigrationCommand.d.ts +7 -0
- package/dist/types/model/commands/migrations/DeleteMigrationCommand.d.ts.map +1 -0
- package/dist/types/model/commands/migrations/ModifyMigrationCommand.d.ts +9 -0
- package/dist/types/model/commands/migrations/ModifyMigrationCommand.d.ts.map +1 -0
- package/dist/types/model/commands/migrations/SaveMigrationCommand.d.ts +8 -0
- package/dist/types/model/commands/migrations/SaveMigrationCommand.d.ts.map +1 -0
- package/dist/types/model/commands/migrations/index.d.ts +3 -0
- package/dist/types/model/commands/migrations/index.d.ts.map +1 -0
- package/dist/types/model/commands/schema/SaveSchemaCommand.d.ts +8 -0
- package/dist/types/model/commands/schema/SaveSchemaCommand.d.ts.map +1 -0
- package/dist/types/model/commands/stages/CreateStageCommand.d.ts +8 -0
- package/dist/types/model/commands/stages/CreateStageCommand.d.ts.map +1 -0
- package/dist/types/model/commands/stages/TruncateStagesCommand.d.ts +5 -0
- package/dist/types/model/commands/stages/TruncateStagesCommand.d.ts.map +1 -0
- package/dist/types/model/commands/stages/index.d.ts +3 -0
- package/dist/types/model/commands/stages/index.d.ts.map +1 -0
- package/dist/types/model/database/DatabaseContext.d.ts +19 -0
- package/dist/types/model/database/DatabaseContext.d.ts.map +1 -0
- package/dist/types/model/database/index.d.ts +2 -0
- package/dist/types/model/database/index.d.ts.map +1 -0
- package/dist/types/model/dependencies/content/ContentQueryExecutor.d.ts +36 -0
- package/dist/types/model/dependencies/content/ContentQueryExecutor.d.ts.map +1 -0
- package/dist/types/model/dependencies/index.d.ts +3 -0
- package/dist/types/model/dependencies/index.d.ts.map +1 -0
- package/dist/types/model/dependencies/tenant/IdentityFetcher.d.ts +18 -0
- package/dist/types/model/dependencies/tenant/IdentityFetcher.d.ts.map +1 -0
- package/dist/types/model/dependencies/tenant/index.d.ts +2 -0
- package/dist/types/model/dependencies/tenant/index.d.ts.map +1 -0
- package/dist/types/model/dtos/ExecutedMigration.d.ts +13 -0
- package/dist/types/model/dtos/ExecutedMigration.d.ts.map +1 -0
- package/dist/types/model/dtos/Stage.d.ts +7 -0
- package/dist/types/model/dtos/Stage.d.ts.map +1 -0
- package/dist/types/model/dtos/index.d.ts +3 -0
- package/dist/types/model/dtos/index.d.ts.map +1 -0
- package/dist/types/model/events/EventResponseBuilder.d.ts +10 -0
- package/dist/types/model/events/EventResponseBuilder.d.ts.map +1 -0
- package/dist/types/model/events/EventResponseHelper.d.ts +22 -0
- package/dist/types/model/events/EventResponseHelper.d.ts.map +1 -0
- package/dist/types/model/events/identityUtils.d.ts +3 -0
- package/dist/types/model/events/identityUtils.d.ts.map +1 -0
- package/dist/types/model/events/index.d.ts +3 -0
- package/dist/types/model/events/index.d.ts.map +1 -0
- package/dist/types/model/events/types.d.ts +56 -0
- package/dist/types/model/events/types.d.ts.map +1 -0
- package/dist/types/model/helpers/index.d.ts +3 -0
- package/dist/types/model/helpers/index.d.ts.map +1 -0
- package/dist/types/model/helpers/modelHelpers.d.ts +3 -0
- package/dist/types/model/helpers/modelHelpers.d.ts.map +1 -0
- package/dist/types/model/helpers/stageHelpers.d.ts +3 -0
- package/dist/types/model/helpers/stageHelpers.d.ts.map +1 -0
- package/dist/types/model/index.d.ts +14 -0
- package/dist/types/model/index.d.ts.map +1 -0
- package/dist/types/model/metadata/SchemaDatabaseMetadataResolverStore.d.ts +16 -0
- package/dist/types/model/metadata/SchemaDatabaseMetadataResolverStore.d.ts.map +1 -0
- package/dist/types/model/metadata/index.d.ts +2 -0
- package/dist/types/model/metadata/index.d.ts.map +1 -0
- package/dist/types/model/migrations/ExecutedMigrationsResolver.d.ts +7 -0
- package/dist/types/model/migrations/ExecutedMigrationsResolver.d.ts.map +1 -0
- package/dist/types/model/migrations/MigrationAlterer.d.ts +18 -0
- package/dist/types/model/migrations/MigrationAlterer.d.ts.map +1 -0
- package/dist/types/model/migrations/MigrationInput.d.ts +18 -0
- package/dist/types/model/migrations/MigrationInput.d.ts.map +1 -0
- package/dist/types/model/migrations/ProjectMigrator.d.ts +63 -0
- package/dist/types/model/migrations/ProjectMigrator.d.ts.map +1 -0
- package/dist/types/model/migrations/SchemaProvider.d.ts +28 -0
- package/dist/types/model/migrations/SchemaProvider.d.ts.map +1 -0
- package/dist/types/model/migrations/index.d.ts +5 -0
- package/dist/types/model/migrations/index.d.ts.map +1 -0
- package/dist/types/model/queries/events/EventQueryHelpers.d.ts +14 -0
- package/dist/types/model/queries/events/EventQueryHelpers.d.ts.map +1 -0
- package/dist/types/model/queries/events/EventsQuery.d.ts +12 -0
- package/dist/types/model/queries/events/EventsQuery.d.ts.map +1 -0
- package/dist/types/model/queries/events/LatestTransactionIdByStageQuery.d.ts +7 -0
- package/dist/types/model/queries/events/LatestTransactionIdByStageQuery.d.ts.map +1 -0
- package/dist/types/model/queries/events/OldValuesQuery.d.ts +7 -0
- package/dist/types/model/queries/events/OldValuesQuery.d.ts.map +1 -0
- package/dist/types/model/queries/events/index.d.ts +4 -0
- package/dist/types/model/queries/events/index.d.ts.map +1 -0
- package/dist/types/model/queries/index.d.ts +5 -0
- package/dist/types/model/queries/index.d.ts.map +1 -0
- package/dist/types/model/queries/migrations/ExecutedMigrationByVersionQuery.d.ts +8 -0
- package/dist/types/model/queries/migrations/ExecutedMigrationByVersionQuery.d.ts.map +1 -0
- package/dist/types/model/queries/migrations/ExecutedMigrationsQuery.d.ts +8 -0
- package/dist/types/model/queries/migrations/ExecutedMigrationsQuery.d.ts.map +1 -0
- package/dist/types/model/queries/migrations/ExecutedMigrationsQueryHelper.d.ts +14 -0
- package/dist/types/model/queries/migrations/ExecutedMigrationsQueryHelper.d.ts.map +1 -0
- package/dist/types/model/queries/migrations/index.d.ts +4 -0
- package/dist/types/model/queries/migrations/index.d.ts.map +1 -0
- package/dist/types/model/queries/schema/SchemaQuery.d.ts +8 -0
- package/dist/types/model/queries/schema/SchemaQuery.d.ts.map +1 -0
- package/dist/types/model/queries/schema/index.d.ts +2 -0
- package/dist/types/model/queries/schema/index.d.ts.map +1 -0
- package/dist/types/model/queries/stages/StageBySlugQuery.d.ts +12 -0
- package/dist/types/model/queries/stages/StageBySlugQuery.d.ts.map +1 -0
- package/dist/types/model/queries/stages/StageQueryFactory.d.ts +4 -0
- package/dist/types/model/queries/stages/StageQueryFactory.d.ts.map +1 -0
- package/dist/types/model/queries/stages/StagesQuery.d.ts +7 -0
- package/dist/types/model/queries/stages/StagesQuery.d.ts.map +1 -0
- package/dist/types/model/queries/stages/index.d.ts +4 -0
- package/dist/types/model/queries/stages/index.d.ts.map +1 -0
- package/dist/types/model/stages/StageCreator.d.ts +7 -0
- package/dist/types/model/stages/StageCreator.d.ts.map +1 -0
- package/dist/types/model/stages/index.d.ts +2 -0
- package/dist/types/model/stages/index.d.ts.map +1 -0
- package/dist/types/resolvers/Resolver.d.ts +16 -0
- package/dist/types/resolvers/Resolver.d.ts.map +1 -0
- package/dist/types/resolvers/ResolverFactory.d.ts +20 -0
- package/dist/types/resolvers/ResolverFactory.d.ts.map +1 -0
- package/dist/types/resolvers/SystemResolverContext.d.ts +21 -0
- package/dist/types/resolvers/SystemResolverContext.d.ts.map +1 -0
- package/dist/types/resolvers/index.d.ts +6 -0
- package/dist/types/resolvers/index.d.ts.map +1 -0
- package/dist/types/resolvers/mutation/MigrateMutationResolver.d.ts +13 -0
- package/dist/types/resolvers/mutation/MigrateMutationResolver.d.ts.map +1 -0
- package/dist/types/resolvers/mutation/MigrationAlterMutationResolver.d.ts +12 -0
- package/dist/types/resolvers/mutation/MigrationAlterMutationResolver.d.ts.map +1 -0
- package/dist/types/resolvers/mutation/TruncateMutationResolver.d.ts +11 -0
- package/dist/types/resolvers/mutation/TruncateMutationResolver.d.ts.map +1 -0
- package/dist/types/resolvers/mutation/index.d.ts +4 -0
- package/dist/types/resolvers/mutation/index.d.ts.map +1 -0
- package/dist/types/resolvers/query/EventsQueryResolver.d.ts +11 -0
- package/dist/types/resolvers/query/EventsQueryResolver.d.ts.map +1 -0
- package/dist/types/resolvers/query/ExecutedMigrationsQueryResolver.d.ts +8 -0
- package/dist/types/resolvers/query/ExecutedMigrationsQueryResolver.d.ts.map +1 -0
- package/dist/types/resolvers/query/SchemaQueryResolver.d.ts +7 -0
- package/dist/types/resolvers/query/SchemaQueryResolver.d.ts.map +1 -0
- package/dist/types/resolvers/query/StagesQueryResolver.d.ts +8 -0
- package/dist/types/resolvers/query/StagesQueryResolver.d.ts.map +1 -0
- package/dist/types/resolvers/query/index.d.ts +4 -0
- package/dist/types/resolvers/query/index.d.ts.map +1 -0
- package/dist/types/resolvers/types/EventOldValuesResolver.d.ts +6 -0
- package/dist/types/resolvers/types/EventOldValuesResolver.d.ts.map +1 -0
- package/dist/types/resolvers/types/OldValuesHelpers.d.ts +3 -0
- package/dist/types/resolvers/types/OldValuesHelpers.d.ts.map +1 -0
- package/dist/types/resolvers/types/index.d.ts +2 -0
- package/dist/types/resolvers/types/index.d.ts.map +1 -0
- package/dist/types/schema/dev.graphql.d.ts +4 -0
- package/dist/types/schema/dev.graphql.d.ts.map +1 -0
- package/dist/types/schema/index.d.ts +6 -0
- package/dist/types/schema/index.d.ts.map +1 -0
- package/dist/types/schema/system.graphql.d.ts +4 -0
- package/dist/types/schema/system.graphql.d.ts.map +1 -0
- package/dist/types/schema/types.d.ts +566 -0
- package/dist/types/schema/types.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/dist/types/types.d.ts +12 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils/MapSet.d.ts +10 -0
- package/dist/types/utils/MapSet.d.ts.map +1 -0
- package/dist/types/utils/Response.d.ts +13 -0
- package/dist/types/utils/Response.d.ts.map +1 -0
- package/dist/types/utils/assertNever.d.ts +2 -0
- package/dist/types/utils/assertNever.d.ts.map +1 -0
- package/dist/types/utils/batchQuery.d.ts +3 -0
- package/dist/types/utils/batchQuery.d.ts.map +1 -0
- package/dist/types/utils/exceptions.d.ts +5 -0
- package/dist/types/utils/exceptions.d.ts.map +1 -0
- package/dist/types/utils/index.d.ts +8 -0
- package/dist/types/utils/index.d.ts.map +1 -0
- package/dist/types/utils/providers.d.ts +3 -0
- package/dist/types/utils/providers.d.ts.map +1 -0
- package/dist/types/utils/set.d.ts +3 -0
- package/dist/types/utils/set.d.ts.map +1 -0
- package/dist/types/utils/tick.d.ts +2 -0
- package/dist/types/utils/tick.d.ts.map +1 -0
- package/dist/types/utils/tuple.d.ts +2 -0
- package/dist/types/utils/tuple.d.ts.map +1 -0
- package/dist/types/utils/uuid.d.ts +4 -0
- package/dist/types/utils/uuid.d.ts.map +1 -0
- package/package.json +19 -19
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
4
|
+
var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
5
|
+
EventType2["delete"] = "delete";
|
|
6
|
+
EventType2["update"] = "update";
|
|
7
|
+
EventType2["create"] = "create";
|
|
8
|
+
return EventType2;
|
|
9
|
+
})(EventType || {});
|
|
10
|
+
class UpdateEvent {
|
|
11
|
+
constructor(id, createdAt, appliedAt, identityId, transactionId, rowId, tableName, values) {
|
|
12
|
+
this.id = id;
|
|
13
|
+
this.createdAt = createdAt;
|
|
14
|
+
this.appliedAt = appliedAt;
|
|
15
|
+
this.identityId = identityId;
|
|
16
|
+
this.transactionId = transactionId;
|
|
17
|
+
this.rowId = rowId;
|
|
18
|
+
this.tableName = tableName;
|
|
19
|
+
this.values = values;
|
|
20
|
+
__publicField(
|
|
21
|
+
this,
|
|
22
|
+
"type",
|
|
23
|
+
"update"
|
|
24
|
+
/* update */
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
class CreateEvent {
|
|
29
|
+
constructor(id, createdAt, appliedAt, identityId, transactionId, rowId, tableName, values) {
|
|
30
|
+
this.id = id;
|
|
31
|
+
this.createdAt = createdAt;
|
|
32
|
+
this.appliedAt = appliedAt;
|
|
33
|
+
this.identityId = identityId;
|
|
34
|
+
this.transactionId = transactionId;
|
|
35
|
+
this.rowId = rowId;
|
|
36
|
+
this.tableName = tableName;
|
|
37
|
+
this.values = values;
|
|
38
|
+
__publicField(
|
|
39
|
+
this,
|
|
40
|
+
"type",
|
|
41
|
+
"create"
|
|
42
|
+
/* create */
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
class DeleteEvent {
|
|
47
|
+
constructor(id, createdAt, appliedAt, identityId, transactionId, rowId, tableName) {
|
|
48
|
+
this.id = id;
|
|
49
|
+
this.createdAt = createdAt;
|
|
50
|
+
this.appliedAt = appliedAt;
|
|
51
|
+
this.identityId = identityId;
|
|
52
|
+
this.transactionId = transactionId;
|
|
53
|
+
this.rowId = rowId;
|
|
54
|
+
this.tableName = tableName;
|
|
55
|
+
__publicField(
|
|
56
|
+
this,
|
|
57
|
+
"type",
|
|
58
|
+
"delete"
|
|
59
|
+
/* delete */
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export {
|
|
64
|
+
CreateEvent,
|
|
65
|
+
DeleteEvent,
|
|
66
|
+
EventType,
|
|
67
|
+
UpdateEvent
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sources":["../../../../../../packages/engine-system-api/src/model/events/types.ts"],"sourcesContent":["export enum EventType {\n\tdelete = 'delete',\n\tupdate = 'update',\n\tcreate = 'create',\n}\n\nexport type ContentEvent = UpdateEvent | CreateEvent | DeleteEvent\n\nexport interface Event {\n\treadonly type: EventType\n\treadonly id: string\n\treadonly createdAt: Date\n\treadonly transactionId: string\n\t// readonly errors?: string[]\n}\n\nexport class UpdateEvent implements Event {\n\tpublic readonly type = EventType.update\n\n\tconstructor(\n\t\tpublic readonly id: string,\n\t\tpublic readonly createdAt: Date,\n\t\tpublic readonly appliedAt: Date,\n\t\tpublic readonly identityId: string,\n\t\tpublic readonly transactionId: string,\n\t\tpublic readonly rowId: string[],\n\t\tpublic readonly tableName: string,\n\t\tpublic readonly values: { [column: string]: any },\n\t) {\n\t}\n}\n\nexport class CreateEvent implements Event {\n\tpublic readonly type = EventType.create\n\n\tconstructor(\n\t\tpublic readonly id: string,\n\t\tpublic readonly createdAt: Date,\n\t\tpublic readonly appliedAt: Date,\n\t\tpublic readonly identityId: string,\n\t\tpublic readonly transactionId: string,\n\t\tpublic readonly rowId: string[],\n\t\tpublic readonly tableName: string,\n\t\tpublic readonly values: { [column: string]: any },\n\t) {\n\t}\n}\n\nexport class DeleteEvent implements Event {\n\tpublic readonly type = EventType.delete\n\n\tconstructor(\n\t\tpublic readonly id: string,\n\t\tpublic readonly createdAt: Date,\n\t\tpublic readonly appliedAt: Date,\n\t\tpublic readonly identityId: string,\n\t\tpublic readonly transactionId: string,\n\t\tpublic readonly rowId: string[],\n\t\tpublic readonly tableName: string,\n\t) {\n\t}\n}\n"],"names":["EventType"],"mappings":";;;AAAO,IAAK,8BAAAA,eAAL;AACNA,aAAA,QAAA,IAAS;AACTA,aAAA,QAAA,IAAS;AACTA,aAAA,QAAA,IAAS;AAHE,SAAAA;AAAA,GAAA,aAAA,CAAA,CAAA;AAgBL,MAAM,YAA6B;AAAA,EAGzC,YACiB,IACA,WACA,WACA,YACA,eACA,OACA,WACA,QACf;AARe,SAAA,KAAA;AACA,SAAA,YAAA;AACA,SAAA,YAAA;AACA,SAAA,aAAA;AACA,SAAA,gBAAA;AACA,SAAA,QAAA;AACA,SAAA,YAAA;AACA,SAAA,SAAA;AAVjB;AAAA,MAAA;AAAA,MAAgB;AAAA,MAAO;AAAA;AAAA,IAAA;AAAA,EAYvB;AACD;AAEO,MAAM,YAA6B;AAAA,EAGzC,YACiB,IACA,WACA,WACA,YACA,eACA,OACA,WACA,QACf;AARe,SAAA,KAAA;AACA,SAAA,YAAA;AACA,SAAA,YAAA;AACA,SAAA,aAAA;AACA,SAAA,gBAAA;AACA,SAAA,QAAA;AACA,SAAA,YAAA;AACA,SAAA,SAAA;AAVjB;AAAA,MAAA;AAAA,MAAgB;AAAA,MAAO;AAAA;AAAA,IAAA;AAAA,EAYvB;AACD;AAEO,MAAM,YAA6B;AAAA,EAGzC,YACiB,IACA,WACA,WACA,YACA,eACA,OACA,WACf;AAPe,SAAA,KAAA;AACA,SAAA,YAAA;AACA,SAAA,YAAA;AACA,SAAA,aAAA;AACA,SAAA,gBAAA;AACA,SAAA,QAAA;AACA,SAAA,YAAA;AATjB;AAAA,MAAA;AAAA,MAAgB;AAAA,MAAO;AAAA;AAAA,IAAA;AAAA,EAWvB;AACD;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const schemaUtils = require("@contember/schema-utils");
|
|
4
|
+
const getJunctionTables = (model) => {
|
|
5
|
+
const tables = [];
|
|
6
|
+
Object.values(model.entities).forEach((entity) => {
|
|
7
|
+
schemaUtils.acceptEveryFieldVisitor(model, entity, {
|
|
8
|
+
visitManyHasManyOwning: ({ relation }) => {
|
|
9
|
+
tables.push(relation.joiningTable);
|
|
10
|
+
},
|
|
11
|
+
visitColumn: () => {
|
|
12
|
+
},
|
|
13
|
+
visitManyHasManyInverse: () => {
|
|
14
|
+
},
|
|
15
|
+
visitOneHasMany: () => {
|
|
16
|
+
},
|
|
17
|
+
visitManyHasOne: () => {
|
|
18
|
+
},
|
|
19
|
+
visitOneHasOneOwning: () => {
|
|
20
|
+
},
|
|
21
|
+
visitOneHasOneInverse: () => {
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
return tables;
|
|
26
|
+
};
|
|
27
|
+
exports.getJunctionTables = getJunctionTables;
|
|
28
|
+
//# sourceMappingURL=modelHelpers.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelHelpers.cjs","sources":["../../../../../../packages/engine-system-api/src/model/helpers/modelHelpers.ts"],"sourcesContent":["import { Model } from '@contember/schema'\nimport { acceptEveryFieldVisitor } from '@contember/schema-utils'\n\nexport const getJunctionTables = (model: Model.Schema): Model.JoiningTable[] => {\n\tconst tables: Model.JoiningTable[] = []\n\tObject.values(model.entities).forEach(entity => {\n\t\tacceptEveryFieldVisitor(model, entity, {\n\t\t\tvisitManyHasManyOwning: ({ relation }) => {\n\t\t\t\ttables.push(relation.joiningTable)\n\t\t\t},\n\t\t\tvisitColumn: () => {},\n\t\t\tvisitManyHasManyInverse: () => {},\n\t\t\tvisitOneHasMany: () => {},\n\t\t\tvisitManyHasOne: () => {},\n\t\t\tvisitOneHasOneOwning: () => {},\n\t\t\tvisitOneHasOneInverse: () => {},\n\t\t})\n\t})\n\treturn tables\n}\n"],"names":["acceptEveryFieldVisitor"],"mappings":";;;AAGO,MAAM,oBAAoB,CAAC,UAA8C;AAC/E,QAAM,SAA+B,CAAA;AACrC,SAAO,OAAO,MAAM,QAAQ,EAAE,QAAQ,CAAA,WAAU;AAC/CA,gBAAAA,wBAAwB,OAAO,QAAQ;AAAA,MACtC,wBAAwB,CAAC,EAAE,eAAe;AACzC,eAAO,KAAK,SAAS,YAAY;AAAA,MAClC;AAAA,MACA,aAAa,MAAM;AAAA,MAAC;AAAA,MACpB,yBAAyB,MAAM;AAAA,MAAC;AAAA,MAChC,iBAAiB,MAAM;AAAA,MAAC;AAAA,MACxB,iBAAiB,MAAM;AAAA,MAAC;AAAA,MACxB,sBAAsB,MAAM;AAAA,MAAC;AAAA,MAC7B,uBAAuB,MAAM;AAAA,MAAC;AAAA,IAAA,CAC9B;AAAA,EACF,CAAC;AACD,SAAO;AACR;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { acceptEveryFieldVisitor } from "@contember/schema-utils";
|
|
2
|
+
const getJunctionTables = (model) => {
|
|
3
|
+
const tables = [];
|
|
4
|
+
Object.values(model.entities).forEach((entity) => {
|
|
5
|
+
acceptEveryFieldVisitor(model, entity, {
|
|
6
|
+
visitManyHasManyOwning: ({ relation }) => {
|
|
7
|
+
tables.push(relation.joiningTable);
|
|
8
|
+
},
|
|
9
|
+
visitColumn: () => {
|
|
10
|
+
},
|
|
11
|
+
visitManyHasManyInverse: () => {
|
|
12
|
+
},
|
|
13
|
+
visitOneHasMany: () => {
|
|
14
|
+
},
|
|
15
|
+
visitManyHasOne: () => {
|
|
16
|
+
},
|
|
17
|
+
visitOneHasOneOwning: () => {
|
|
18
|
+
},
|
|
19
|
+
visitOneHasOneInverse: () => {
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
return tables;
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
getJunctionTables
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=modelHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modelHelpers.js","sources":["../../../../../../packages/engine-system-api/src/model/helpers/modelHelpers.ts"],"sourcesContent":["import { Model } from '@contember/schema'\nimport { acceptEveryFieldVisitor } from '@contember/schema-utils'\n\nexport const getJunctionTables = (model: Model.Schema): Model.JoiningTable[] => {\n\tconst tables: Model.JoiningTable[] = []\n\tObject.values(model.entities).forEach(entity => {\n\t\tacceptEveryFieldVisitor(model, entity, {\n\t\t\tvisitManyHasManyOwning: ({ relation }) => {\n\t\t\t\ttables.push(relation.joiningTable)\n\t\t\t},\n\t\t\tvisitColumn: () => {},\n\t\t\tvisitManyHasManyInverse: () => {},\n\t\t\tvisitOneHasMany: () => {},\n\t\t\tvisitManyHasOne: () => {},\n\t\t\tvisitOneHasOneOwning: () => {},\n\t\t\tvisitOneHasOneInverse: () => {},\n\t\t})\n\t})\n\treturn tables\n}\n"],"names":[],"mappings":";AAGO,MAAM,oBAAoB,CAAC,UAA8C;AAC/E,QAAM,SAA+B,CAAA;AACrC,SAAO,OAAO,MAAM,QAAQ,EAAE,QAAQ,CAAA,WAAU;AAC/C,4BAAwB,OAAO,QAAQ;AAAA,MACtC,wBAAwB,CAAC,EAAE,eAAe;AACzC,eAAO,KAAK,SAAS,YAAY;AAAA,MAClC;AAAA,MACA,aAAa,MAAM;AAAA,MAAC;AAAA,MACpB,yBAAyB,MAAM;AAAA,MAAC;AAAA,MAChC,iBAAiB,MAAM;AAAA,MAAC;AAAA,MACxB,iBAAiB,MAAM;AAAA,MAAC;AAAA,MACxB,sBAAsB,MAAM;AAAA,MAAC;AAAA,MAC7B,uBAAuB,MAAM;AAAA,MAAC;AAAA,IAAA,CAC9B;AAAA,EACF,CAAC;AACD,SAAO;AACR;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stageHelpers.cjs","sources":["../../../../../../packages/engine-system-api/src/model/helpers/stageHelpers.ts"],"sourcesContent":["import { Stage } from '../dtos'\n\nexport function formatSchemaName(stage: Pick<Stage, 'slug'>): string {\n\treturn 'stage_' + stage.slug\n}\n"],"names":[],"mappings":";;AAEO,SAAS,iBAAiB,OAAoC;AACpE,SAAO,WAAW,MAAM;AACzB;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stageHelpers.js","sources":["../../../../../../packages/engine-system-api/src/model/helpers/stageHelpers.ts"],"sourcesContent":["import { Stage } from '../dtos'\n\nexport function formatSchemaName(stage: Pick<Stage, 'slug'>): string {\n\treturn 'stage_' + stage.slug\n}\n"],"names":[],"mappings":"AAEO,SAAS,iBAAiB,OAAoC;AACpE,SAAO,WAAW,MAAM;AACzB;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
5
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
6
|
+
class SchemaDatabaseMetadataResolverStore {
|
|
7
|
+
constructor(resolver, db) {
|
|
8
|
+
this.resolver = resolver;
|
|
9
|
+
this.db = db;
|
|
10
|
+
__publicField(this, "cache", /* @__PURE__ */ new Map());
|
|
11
|
+
}
|
|
12
|
+
async getMetadata(schema) {
|
|
13
|
+
const cached = this.cache.get(schema);
|
|
14
|
+
if (cached) {
|
|
15
|
+
return cached;
|
|
16
|
+
}
|
|
17
|
+
const newValue = await this.resolver.resolveMetadata(this.db.client, schema);
|
|
18
|
+
this.cache.set(schema, newValue);
|
|
19
|
+
return newValue;
|
|
20
|
+
}
|
|
21
|
+
invalidate(schema) {
|
|
22
|
+
this.cache.delete(schema);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
class MigrationsDatabaseMetadataResolverStoreFactory {
|
|
26
|
+
constructor(resolver) {
|
|
27
|
+
this.resolver = resolver;
|
|
28
|
+
}
|
|
29
|
+
create(db) {
|
|
30
|
+
return new SchemaDatabaseMetadataResolverStore(this.resolver, db);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.MigrationsDatabaseMetadataResolverStoreFactory = MigrationsDatabaseMetadataResolverStoreFactory;
|
|
34
|
+
exports.SchemaDatabaseMetadataResolverStore = SchemaDatabaseMetadataResolverStore;
|
|
35
|
+
//# sourceMappingURL=SchemaDatabaseMetadataResolverStore.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaDatabaseMetadataResolverStore.cjs","sources":["../../../../../../packages/engine-system-api/src/model/metadata/SchemaDatabaseMetadataResolverStore.ts"],"sourcesContent":["import { DatabaseContext } from '../database'\nimport { DatabaseMetadata, DatabaseMetadataResolver } from '@contember/database'\n\nexport class SchemaDatabaseMetadataResolverStore {\n\tprivate cache: Map<string, DatabaseMetadata> = new Map()\n\n\tconstructor(\n\t\tprivate resolver: DatabaseMetadataResolver,\n\t\tprivate db: DatabaseContext,\n\t) {\n\t}\n\n\tpublic async getMetadata(schema: string): Promise<DatabaseMetadata> {\n\t\tconst cached = this.cache.get(schema)\n\t\tif (cached) {\n\t\t\treturn cached\n\t\t}\n\n\t\tconst newValue = await this.resolver.resolveMetadata(this.db.client, schema)\n\t\tthis.cache.set(schema, newValue)\n\t\treturn newValue\n\t}\n\n\tpublic invalidate(schema: string): void {\n\t\tthis.cache.delete(schema)\n\t}\n}\n\nexport class MigrationsDatabaseMetadataResolverStoreFactory {\n\tconstructor(\n\t\tprivate resolver: DatabaseMetadataResolver,\n\t) {\n\t}\n\n\tpublic create(db: DatabaseContext) {\n\t\treturn new SchemaDatabaseMetadataResolverStore(this.resolver, db)\n\t}\n}\n"],"names":[],"mappings":";;;;;AAGO,MAAM,oCAAoC;AAAA,EAGhD,YACS,UACA,IACP;AAFO,SAAA,WAAA;AACA,SAAA,KAAA;AAJT,kBAAA,MAAQ,6BAA2C,IAAA,CAAI;AAAA,EAMvD;AAAA,EAEA,MAAa,YAAY,QAA2C;AACnE,UAAM,SAAS,KAAK,MAAM,IAAI,MAAM;AACpC,QAAI,QAAQ;AACX,aAAO;AAAA,IACR;AAEA,UAAM,WAAW,MAAM,KAAK,SAAS,gBAAgB,KAAK,GAAG,QAAQ,MAAM;AAC3E,SAAK,MAAM,IAAI,QAAQ,QAAQ;AAC/B,WAAO;AAAA,EACR;AAAA,EAEO,WAAW,QAAsB;AACvC,SAAK,MAAM,OAAO,MAAM;AAAA,EACzB;AACD;AAEO,MAAM,+CAA+C;AAAA,EAC3D,YACS,UACP;AADO,SAAA,WAAA;AAAA,EAET;AAAA,EAEO,OAAO,IAAqB;AAClC,WAAO,IAAI,oCAAoC,KAAK,UAAU,EAAE;AAAA,EACjE;AACD;;;"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
|
|
4
|
+
class SchemaDatabaseMetadataResolverStore {
|
|
5
|
+
constructor(resolver, db) {
|
|
6
|
+
this.resolver = resolver;
|
|
7
|
+
this.db = db;
|
|
8
|
+
__publicField(this, "cache", /* @__PURE__ */ new Map());
|
|
9
|
+
}
|
|
10
|
+
async getMetadata(schema) {
|
|
11
|
+
const cached = this.cache.get(schema);
|
|
12
|
+
if (cached) {
|
|
13
|
+
return cached;
|
|
14
|
+
}
|
|
15
|
+
const newValue = await this.resolver.resolveMetadata(this.db.client, schema);
|
|
16
|
+
this.cache.set(schema, newValue);
|
|
17
|
+
return newValue;
|
|
18
|
+
}
|
|
19
|
+
invalidate(schema) {
|
|
20
|
+
this.cache.delete(schema);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
class MigrationsDatabaseMetadataResolverStoreFactory {
|
|
24
|
+
constructor(resolver) {
|
|
25
|
+
this.resolver = resolver;
|
|
26
|
+
}
|
|
27
|
+
create(db) {
|
|
28
|
+
return new SchemaDatabaseMetadataResolverStore(this.resolver, db);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export {
|
|
32
|
+
MigrationsDatabaseMetadataResolverStoreFactory,
|
|
33
|
+
SchemaDatabaseMetadataResolverStore
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=SchemaDatabaseMetadataResolverStore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchemaDatabaseMetadataResolverStore.js","sources":["../../../../../../packages/engine-system-api/src/model/metadata/SchemaDatabaseMetadataResolverStore.ts"],"sourcesContent":["import { DatabaseContext } from '../database'\nimport { DatabaseMetadata, DatabaseMetadataResolver } from '@contember/database'\n\nexport class SchemaDatabaseMetadataResolverStore {\n\tprivate cache: Map<string, DatabaseMetadata> = new Map()\n\n\tconstructor(\n\t\tprivate resolver: DatabaseMetadataResolver,\n\t\tprivate db: DatabaseContext,\n\t) {\n\t}\n\n\tpublic async getMetadata(schema: string): Promise<DatabaseMetadata> {\n\t\tconst cached = this.cache.get(schema)\n\t\tif (cached) {\n\t\t\treturn cached\n\t\t}\n\n\t\tconst newValue = await this.resolver.resolveMetadata(this.db.client, schema)\n\t\tthis.cache.set(schema, newValue)\n\t\treturn newValue\n\t}\n\n\tpublic invalidate(schema: string): void {\n\t\tthis.cache.delete(schema)\n\t}\n}\n\nexport class MigrationsDatabaseMetadataResolverStoreFactory {\n\tconstructor(\n\t\tprivate resolver: DatabaseMetadataResolver,\n\t) {\n\t}\n\n\tpublic create(db: DatabaseContext) {\n\t\treturn new SchemaDatabaseMetadataResolverStore(this.resolver, db)\n\t}\n}\n"],"names":[],"mappings":";;;AAGO,MAAM,oCAAoC;AAAA,EAGhD,YACS,UACA,IACP;AAFO,SAAA,WAAA;AACA,SAAA,KAAA;AAJT,kBAAA,MAAQ,6BAA2C,IAAA,CAAI;AAAA,EAMvD;AAAA,EAEA,MAAa,YAAY,QAA2C;AACnE,UAAM,SAAS,KAAK,MAAM,IAAI,MAAM;AACpC,QAAI,QAAQ;AACX,aAAO;AAAA,IACR;AAEA,UAAM,WAAW,MAAM,KAAK,SAAS,gBAAgB,KAAK,GAAG,QAAQ,MAAM;AAC3E,SAAK,MAAM,IAAI,QAAQ,QAAQ;AAC/B,WAAO;AAAA,EACR;AAAA,EAEO,WAAW,QAAsB;AACvC,SAAK,MAAM,OAAO,MAAM;AAAA,EACzB;AACD;AAEO,MAAM,+CAA+C;AAAA,EAC3D,YACS,UACP;AADO,SAAA,WAAA;AAAA,EAET;AAAA,EAEO,OAAO,IAAqB;AAClC,WAAO,IAAI,oCAAoC,KAAK,UAAU,EAAE;AAAA,EACjE;AACD;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const ExecutedMigrationByVersionQuery = require("../queries/migrations/ExecutedMigrationByVersionQuery.cjs");
|
|
4
|
+
const ExecutedMigrationsQuery = require("../queries/migrations/ExecutedMigrationsQuery.cjs");
|
|
5
|
+
require("@contember/database");
|
|
6
|
+
require("../../schema/dev.graphql.cjs");
|
|
7
|
+
require("../../schema/system.graphql.cjs");
|
|
8
|
+
class ExecutedMigrationsResolver {
|
|
9
|
+
async getMigrations(db, afterVersion) {
|
|
10
|
+
return db.queryHandler.fetch(new ExecutedMigrationsQuery.ExecutedMigrationsQuery(afterVersion));
|
|
11
|
+
}
|
|
12
|
+
async getMigrationByVersion(db, version) {
|
|
13
|
+
return db.queryHandler.fetch(new ExecutedMigrationByVersionQuery.ExecutedMigrationByVersionQuery(version));
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ExecutedMigrationsResolver = ExecutedMigrationsResolver;
|
|
17
|
+
//# sourceMappingURL=ExecutedMigrationsResolver.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecutedMigrationsResolver.cjs","sources":["../../../../../../packages/engine-system-api/src/model/migrations/ExecutedMigrationsResolver.ts"],"sourcesContent":["import { ExecutedMigration } from '../dtos'\nimport { ExecutedMigrationByVersionQuery, ExecutedMigrationsQuery } from '../queries'\nimport { DatabaseContext } from '../database'\n\nexport class ExecutedMigrationsResolver {\n\tasync getMigrations(db: DatabaseContext, afterVersion?: string): Promise<ExecutedMigration[]> {\n\t\treturn db.queryHandler.fetch(new ExecutedMigrationsQuery(afterVersion))\n\t}\n\n\tasync getMigrationByVersion(db: DatabaseContext, version: string): Promise<ExecutedMigration | null> {\n\t\treturn db.queryHandler.fetch(new ExecutedMigrationByVersionQuery(version))\n\t}\n}\n"],"names":["ExecutedMigrationsQuery","ExecutedMigrationByVersionQuery"],"mappings":";;;;;;;AAIO,MAAM,2BAA2B;AAAA,EACvC,MAAM,cAAc,IAAqB,cAAqD;AAC7F,WAAO,GAAG,aAAa,MAAM,IAAIA,wBAAAA,wBAAwB,YAAY,CAAC;AAAA,EACvE;AAAA,EAEA,MAAM,sBAAsB,IAAqB,SAAoD;AACpG,WAAO,GAAG,aAAa,MAAM,IAAIC,gCAAAA,gCAAgC,OAAO,CAAC;AAAA,EAC1E;AACD;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ExecutedMigrationByVersionQuery } from "../queries/migrations/ExecutedMigrationByVersionQuery.js";
|
|
2
|
+
import { ExecutedMigrationsQuery } from "../queries/migrations/ExecutedMigrationsQuery.js";
|
|
3
|
+
import "@contember/database";
|
|
4
|
+
import "../../schema/dev.graphql.js";
|
|
5
|
+
import "../../schema/system.graphql.js";
|
|
6
|
+
class ExecutedMigrationsResolver {
|
|
7
|
+
async getMigrations(db, afterVersion) {
|
|
8
|
+
return db.queryHandler.fetch(new ExecutedMigrationsQuery(afterVersion));
|
|
9
|
+
}
|
|
10
|
+
async getMigrationByVersion(db, version) {
|
|
11
|
+
return db.queryHandler.fetch(new ExecutedMigrationByVersionQuery(version));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
ExecutedMigrationsResolver
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=ExecutedMigrationsResolver.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExecutedMigrationsResolver.js","sources":["../../../../../../packages/engine-system-api/src/model/migrations/ExecutedMigrationsResolver.ts"],"sourcesContent":["import { ExecutedMigration } from '../dtos'\nimport { ExecutedMigrationByVersionQuery, ExecutedMigrationsQuery } from '../queries'\nimport { DatabaseContext } from '../database'\n\nexport class ExecutedMigrationsResolver {\n\tasync getMigrations(db: DatabaseContext, afterVersion?: string): Promise<ExecutedMigration[]> {\n\t\treturn db.queryHandler.fetch(new ExecutedMigrationsQuery(afterVersion))\n\t}\n\n\tasync getMigrationByVersion(db: DatabaseContext, version: string): Promise<ExecutedMigration | null> {\n\t\treturn db.queryHandler.fetch(new ExecutedMigrationByVersionQuery(version))\n\t}\n}\n"],"names":[],"mappings":";;;;;AAIO,MAAM,2BAA2B;AAAA,EACvC,MAAM,cAAc,IAAqB,cAAqD;AAC7F,WAAO,GAAG,aAAa,MAAM,IAAI,wBAAwB,YAAY,CAAC;AAAA,EACvE;AAAA,EAEA,MAAM,sBAAsB,IAAqB,SAAoD;AACpG,WAAO,GAAG,aAAa,MAAM,IAAI,gCAAgC,OAAO,CAAC;AAAA,EAC1E;AACD;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("@contember/database");
|
|
4
|
+
const DeleteMigrationCommand = require("../commands/migrations/DeleteMigrationCommand.cjs");
|
|
5
|
+
require("@contember/schema-migrations");
|
|
6
|
+
require("@contember/schema-utils");
|
|
7
|
+
const Response = require("../../utils/Response.cjs");
|
|
8
|
+
const ModifyMigrationCommand = require("../commands/migrations/ModifyMigrationCommand.cjs");
|
|
9
|
+
const SaveSchemaCommand = require("../commands/schema/SaveSchemaCommand.cjs");
|
|
10
|
+
class MigrationAlterer {
|
|
11
|
+
constructor(schemaProvider) {
|
|
12
|
+
this.schemaProvider = schemaProvider;
|
|
13
|
+
}
|
|
14
|
+
async deleteMigration(db, version) {
|
|
15
|
+
return await db.transaction(async (db2) => {
|
|
16
|
+
const result = await db2.commandBus.execute(new DeleteMigrationCommand.DeleteMigrationCommand(version));
|
|
17
|
+
if (!result) {
|
|
18
|
+
await db2.client.connection.rollback();
|
|
19
|
+
return new Response.ResponseError("notFound", `Migration ${version} was not found`);
|
|
20
|
+
}
|
|
21
|
+
await this.refreshSchema(db2);
|
|
22
|
+
return new Response.ResponseOk(void 0);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
async modifyMigration(db, version, migration) {
|
|
26
|
+
return await db.transaction(async (db2) => {
|
|
27
|
+
const result = await db2.commandBus.execute(new ModifyMigrationCommand.ModifyMigrationCommand(version, migration));
|
|
28
|
+
if (!result) {
|
|
29
|
+
await db2.client.connection.rollback();
|
|
30
|
+
return new Response.ResponseError("notFound", `Migration ${version} was not found`);
|
|
31
|
+
}
|
|
32
|
+
await this.refreshSchema(db2);
|
|
33
|
+
return new Response.ResponseOk(void 0);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
async refreshSchema(db) {
|
|
37
|
+
const schemaWithMeta = await this.schemaProvider.buildSchemaFromMigrations(db);
|
|
38
|
+
await db.commandBus.execute(new SaveSchemaCommand.SaveSchemaCommand(schemaWithMeta));
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
var DeleteMigrationErrorCode = /* @__PURE__ */ ((DeleteMigrationErrorCode2) => {
|
|
42
|
+
DeleteMigrationErrorCode2["notFound"] = "notFound";
|
|
43
|
+
return DeleteMigrationErrorCode2;
|
|
44
|
+
})(DeleteMigrationErrorCode || {});
|
|
45
|
+
var UpdateMigrationErrorCode = /* @__PURE__ */ ((UpdateMigrationErrorCode2) => {
|
|
46
|
+
UpdateMigrationErrorCode2["notFound"] = "notFound";
|
|
47
|
+
return UpdateMigrationErrorCode2;
|
|
48
|
+
})(UpdateMigrationErrorCode || {});
|
|
49
|
+
exports.DeleteMigrationErrorCode = DeleteMigrationErrorCode;
|
|
50
|
+
exports.MigrationAlterer = MigrationAlterer;
|
|
51
|
+
exports.UpdateMigrationErrorCode = UpdateMigrationErrorCode;
|
|
52
|
+
//# sourceMappingURL=MigrationAlterer.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MigrationAlterer.cjs","sources":["../../../../../../packages/engine-system-api/src/model/migrations/MigrationAlterer.ts"],"sourcesContent":["import { DatabaseContext } from '../database'\nimport { DeleteMigrationCommand } from '../commands'\nimport { Response, ResponseError, ResponseOk } from '../../utils'\nimport { Migration } from '@contember/schema-migrations'\nimport { ModifyMigrationCommand } from '../commands/migrations/ModifyMigrationCommand'\nimport { SchemaProvider } from './SchemaProvider'\nimport { SaveSchemaCommand } from '../commands/schema/SaveSchemaCommand'\n\nexport class MigrationAlterer {\n\tconstructor(\n\t\tprivate readonly schemaProvider: SchemaProvider,\n\t) {\n\t}\n\n\tpublic async deleteMigration(\n\t\tdb: DatabaseContext,\n\t\tversion: string,\n\t): Promise<Response<undefined, DeleteMigrationErrorCode>> {\n\t\treturn await db.transaction(async db => {\n\t\t\tconst result = await db.commandBus.execute(new DeleteMigrationCommand(version))\n\t\t\tif (!result) {\n\t\t\t\tawait db.client.connection.rollback()\n\t\t\t\treturn new ResponseError(DeleteMigrationErrorCode.notFound, `Migration ${version} was not found`)\n\t\t\t}\n\t\t\tawait this.refreshSchema(db)\n\t\t\treturn new ResponseOk(undefined)\n\t\t})\n\t}\n\n\tpublic async modifyMigration(\n\t\tdb: DatabaseContext,\n\t\tversion: string,\n\t\tmigration: Partial<Migration>,\n\t): Promise<Response<undefined, UpdateMigrationErrorCode>> {\n\t\treturn await db.transaction(async db => {\n\t\t\tconst result = await db.commandBus.execute(new ModifyMigrationCommand(version, migration))\n\t\t\tif (!result) {\n\t\t\t\tawait db.client.connection.rollback()\n\t\t\t\treturn new ResponseError(UpdateMigrationErrorCode.notFound, `Migration ${version} was not found`)\n\t\t\t}\n\t\t\tawait this.refreshSchema(db)\n\t\t\treturn new ResponseOk(undefined)\n\t\t})\n\t}\n\n\tprivate async refreshSchema(db: DatabaseContext): Promise<void> {\n\t\tconst schemaWithMeta = await this.schemaProvider.buildSchemaFromMigrations(db)\n\t\tawait db.commandBus.execute(new SaveSchemaCommand(schemaWithMeta))\n\t}\n}\n\nexport enum DeleteMigrationErrorCode {\n\tnotFound = 'notFound',\n}\n\nexport enum UpdateMigrationErrorCode {\n\tnotFound = 'notFound',\n}\n"],"names":["db","DeleteMigrationCommand","ResponseError","ResponseOk","ModifyMigrationCommand","SaveSchemaCommand","DeleteMigrationErrorCode","UpdateMigrationErrorCode"],"mappings":";;;;;;;;;AAQO,MAAM,iBAAiB;AAAA,EAC7B,YACkB,gBAChB;AADgB,SAAA,iBAAA;AAAA,EAElB;AAAA,EAEA,MAAa,gBACZ,IACA,SACyD;AACzD,WAAO,MAAM,GAAG,YAAY,OAAMA,QAAM;AACvC,YAAM,SAAS,MAAMA,IAAG,WAAW,QAAQ,IAAIC,uBAAAA,uBAAuB,OAAO,CAAC;AAC9E,UAAI,CAAC,QAAQ;AACZ,cAAMD,IAAG,OAAO,WAAW,SAAA;AAC3B,eAAO,IAAIE,SAAAA,cAAc,YAAmC,aAAa,OAAO,gBAAgB;AAAA,MACjG;AACA,YAAM,KAAK,cAAcF,GAAE;AAC3B,aAAO,IAAIG,SAAAA,WAAW,MAAS;AAAA,IAChC,CAAC;AAAA,EACF;AAAA,EAEA,MAAa,gBACZ,IACA,SACA,WACyD;AACzD,WAAO,MAAM,GAAG,YAAY,OAAMH,QAAM;AACvC,YAAM,SAAS,MAAMA,IAAG,WAAW,QAAQ,IAAII,uBAAAA,uBAAuB,SAAS,SAAS,CAAC;AACzF,UAAI,CAAC,QAAQ;AACZ,cAAMJ,IAAG,OAAO,WAAW,SAAA;AAC3B,eAAO,IAAIE,SAAAA,cAAc,YAAmC,aAAa,OAAO,gBAAgB;AAAA,MACjG;AACA,YAAM,KAAK,cAAcF,GAAE;AAC3B,aAAO,IAAIG,SAAAA,WAAW,MAAS;AAAA,IAChC,CAAC;AAAA,EACF;AAAA,EAEA,MAAc,cAAc,IAAoC;AAC/D,UAAM,iBAAiB,MAAM,KAAK,eAAe,0BAA0B,EAAE;AAC7E,UAAM,GAAG,WAAW,QAAQ,IAAIE,kBAAAA,kBAAkB,cAAc,CAAC;AAAA,EAClE;AACD;AAEO,IAAK,6CAAAC,8BAAL;AACNA,4BAAA,UAAA,IAAW;AADA,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;AAIL,IAAK,6CAAAC,8BAAL;AACNA,4BAAA,UAAA,IAAW;AADA,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;;;;"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "@contember/database";
|
|
2
|
+
import { DeleteMigrationCommand } from "../commands/migrations/DeleteMigrationCommand.js";
|
|
3
|
+
import "@contember/schema-migrations";
|
|
4
|
+
import "@contember/schema-utils";
|
|
5
|
+
import { ResponseError, ResponseOk } from "../../utils/Response.js";
|
|
6
|
+
import { ModifyMigrationCommand } from "../commands/migrations/ModifyMigrationCommand.js";
|
|
7
|
+
import { SaveSchemaCommand } from "../commands/schema/SaveSchemaCommand.js";
|
|
8
|
+
class MigrationAlterer {
|
|
9
|
+
constructor(schemaProvider) {
|
|
10
|
+
this.schemaProvider = schemaProvider;
|
|
11
|
+
}
|
|
12
|
+
async deleteMigration(db, version) {
|
|
13
|
+
return await db.transaction(async (db2) => {
|
|
14
|
+
const result = await db2.commandBus.execute(new DeleteMigrationCommand(version));
|
|
15
|
+
if (!result) {
|
|
16
|
+
await db2.client.connection.rollback();
|
|
17
|
+
return new ResponseError("notFound", `Migration ${version} was not found`);
|
|
18
|
+
}
|
|
19
|
+
await this.refreshSchema(db2);
|
|
20
|
+
return new ResponseOk(void 0);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
async modifyMigration(db, version, migration) {
|
|
24
|
+
return await db.transaction(async (db2) => {
|
|
25
|
+
const result = await db2.commandBus.execute(new ModifyMigrationCommand(version, migration));
|
|
26
|
+
if (!result) {
|
|
27
|
+
await db2.client.connection.rollback();
|
|
28
|
+
return new ResponseError("notFound", `Migration ${version} was not found`);
|
|
29
|
+
}
|
|
30
|
+
await this.refreshSchema(db2);
|
|
31
|
+
return new ResponseOk(void 0);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
async refreshSchema(db) {
|
|
35
|
+
const schemaWithMeta = await this.schemaProvider.buildSchemaFromMigrations(db);
|
|
36
|
+
await db.commandBus.execute(new SaveSchemaCommand(schemaWithMeta));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
var DeleteMigrationErrorCode = /* @__PURE__ */ ((DeleteMigrationErrorCode2) => {
|
|
40
|
+
DeleteMigrationErrorCode2["notFound"] = "notFound";
|
|
41
|
+
return DeleteMigrationErrorCode2;
|
|
42
|
+
})(DeleteMigrationErrorCode || {});
|
|
43
|
+
var UpdateMigrationErrorCode = /* @__PURE__ */ ((UpdateMigrationErrorCode2) => {
|
|
44
|
+
UpdateMigrationErrorCode2["notFound"] = "notFound";
|
|
45
|
+
return UpdateMigrationErrorCode2;
|
|
46
|
+
})(UpdateMigrationErrorCode || {});
|
|
47
|
+
export {
|
|
48
|
+
DeleteMigrationErrorCode,
|
|
49
|
+
MigrationAlterer,
|
|
50
|
+
UpdateMigrationErrorCode
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=MigrationAlterer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MigrationAlterer.js","sources":["../../../../../../packages/engine-system-api/src/model/migrations/MigrationAlterer.ts"],"sourcesContent":["import { DatabaseContext } from '../database'\nimport { DeleteMigrationCommand } from '../commands'\nimport { Response, ResponseError, ResponseOk } from '../../utils'\nimport { Migration } from '@contember/schema-migrations'\nimport { ModifyMigrationCommand } from '../commands/migrations/ModifyMigrationCommand'\nimport { SchemaProvider } from './SchemaProvider'\nimport { SaveSchemaCommand } from '../commands/schema/SaveSchemaCommand'\n\nexport class MigrationAlterer {\n\tconstructor(\n\t\tprivate readonly schemaProvider: SchemaProvider,\n\t) {\n\t}\n\n\tpublic async deleteMigration(\n\t\tdb: DatabaseContext,\n\t\tversion: string,\n\t): Promise<Response<undefined, DeleteMigrationErrorCode>> {\n\t\treturn await db.transaction(async db => {\n\t\t\tconst result = await db.commandBus.execute(new DeleteMigrationCommand(version))\n\t\t\tif (!result) {\n\t\t\t\tawait db.client.connection.rollback()\n\t\t\t\treturn new ResponseError(DeleteMigrationErrorCode.notFound, `Migration ${version} was not found`)\n\t\t\t}\n\t\t\tawait this.refreshSchema(db)\n\t\t\treturn new ResponseOk(undefined)\n\t\t})\n\t}\n\n\tpublic async modifyMigration(\n\t\tdb: DatabaseContext,\n\t\tversion: string,\n\t\tmigration: Partial<Migration>,\n\t): Promise<Response<undefined, UpdateMigrationErrorCode>> {\n\t\treturn await db.transaction(async db => {\n\t\t\tconst result = await db.commandBus.execute(new ModifyMigrationCommand(version, migration))\n\t\t\tif (!result) {\n\t\t\t\tawait db.client.connection.rollback()\n\t\t\t\treturn new ResponseError(UpdateMigrationErrorCode.notFound, `Migration ${version} was not found`)\n\t\t\t}\n\t\t\tawait this.refreshSchema(db)\n\t\t\treturn new ResponseOk(undefined)\n\t\t})\n\t}\n\n\tprivate async refreshSchema(db: DatabaseContext): Promise<void> {\n\t\tconst schemaWithMeta = await this.schemaProvider.buildSchemaFromMigrations(db)\n\t\tawait db.commandBus.execute(new SaveSchemaCommand(schemaWithMeta))\n\t}\n}\n\nexport enum DeleteMigrationErrorCode {\n\tnotFound = 'notFound',\n}\n\nexport enum UpdateMigrationErrorCode {\n\tnotFound = 'notFound',\n}\n"],"names":["db","DeleteMigrationErrorCode","UpdateMigrationErrorCode"],"mappings":";;;;;;;AAQO,MAAM,iBAAiB;AAAA,EAC7B,YACkB,gBAChB;AADgB,SAAA,iBAAA;AAAA,EAElB;AAAA,EAEA,MAAa,gBACZ,IACA,SACyD;AACzD,WAAO,MAAM,GAAG,YAAY,OAAMA,QAAM;AACvC,YAAM,SAAS,MAAMA,IAAG,WAAW,QAAQ,IAAI,uBAAuB,OAAO,CAAC;AAC9E,UAAI,CAAC,QAAQ;AACZ,cAAMA,IAAG,OAAO,WAAW,SAAA;AAC3B,eAAO,IAAI,cAAc,YAAmC,aAAa,OAAO,gBAAgB;AAAA,MACjG;AACA,YAAM,KAAK,cAAcA,GAAE;AAC3B,aAAO,IAAI,WAAW,MAAS;AAAA,IAChC,CAAC;AAAA,EACF;AAAA,EAEA,MAAa,gBACZ,IACA,SACA,WACyD;AACzD,WAAO,MAAM,GAAG,YAAY,OAAMA,QAAM;AACvC,YAAM,SAAS,MAAMA,IAAG,WAAW,QAAQ,IAAI,uBAAuB,SAAS,SAAS,CAAC;AACzF,UAAI,CAAC,QAAQ;AACZ,cAAMA,IAAG,OAAO,WAAW,SAAA;AAC3B,eAAO,IAAI,cAAc,YAAmC,aAAa,OAAO,gBAAgB;AAAA,MACjG;AACA,YAAM,KAAK,cAAcA,GAAE;AAC3B,aAAO,IAAI,WAAW,MAAS;AAAA,IAChC,CAAC;AAAA,EACF;AAAA,EAEA,MAAc,cAAc,IAAoC;AAC/D,UAAM,iBAAiB,MAAM,KAAK,eAAe,0BAA0B,EAAE;AAC7E,UAAM,GAAG,WAAW,QAAQ,IAAI,kBAAkB,cAAc,CAAC;AAAA,EAClE;AACD;AAEO,IAAK,6CAAAC,8BAAL;AACNA,4BAAA,UAAA,IAAW;AADA,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;AAIL,IAAK,6CAAAC,8BAAL;AACNA,4BAAA,UAAA,IAAW;AADA,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;"}
|