@contember/engine-system-api 2.1.0-alpha.30 → 2.1.0-alpha.35
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/graphql.codegen.yml +1 -1
- package/package.json +25 -20
- package/src/SystemContainer.ts +61 -56
- package/src/bin/runMigrations.ts +1 -5
- package/src/index.ts +5 -5
- package/src/migrations/2018-08-04-102200-init.ts +1 -1
- package/src/migrations/2018-08-05-130501-trigger-event-function.ts +1 -1
- package/src/migrations/2019-01-14-143432-event-trx-id.ts +1 -1
- package/src/migrations/2019-02-04-154500-event-rebase.ts +1 -1
- package/src/migrations/2019-03-18-104147-event-run-migration-struct.ts +1 -1
- package/src/migrations/2019-07-29-103000-trigger-event-function-fix.ts +1 -1
- package/src/migrations/2019-11-28-100000-missing-setting-fallback.ts +1 -1
- package/src/migrations/2020-03-27-130000-project-migrations.ts +1 -1
- package/src/migrations/2020-05-06-150000-composed-primary.ts +1 -1
- package/src/migrations/2020-06-01-103000-event-trigger-perf.ts +1 -1
- package/src/migrations/2021-03-23-110000-timestamp-fix.ts +1 -1
- package/src/migrations/2021-05-07-155800-event-log-rework.ts +1 -1
- package/src/migrations/2021-05-19-1232000-event-log-fix-constraint.ts +1 -1
- package/src/migrations/2021-12-21-155500-events-up.ts +1 -1
- package/src/migrations/2022-02-08-132600-fn-search-path.ts +1 -1
- package/src/migrations/2022-02-08-140500-drop-deadcode.ts +1 -1
- package/src/migrations/2022-02-08-144400-dynamic-stage-schema.ts +1 -1
- package/src/migrations/2022-10-03-110000-table-on-delete.ts +11 -7
- package/src/migrations/2023-09-11-174000-fix-on-delete.ts +14 -8
- package/src/migrations/2023-10-19-173000-fix-unique.ts +5 -4
- package/src/migrations/2023-10-24-140000-schema-nullable-checksum.ts +1 -1
- package/src/migrations/2024-06-28-150000-migrations-drop-sequence.ts +1 -1
- package/src/migrations/2024-06-28-153000-schema.ts +1 -1
- package/src/migrations/2024-06-28-153001-schema-init.ts +1 -2
- package/src/migrations/2024-07-29-150000-event-data-index.ts +1 -1
- package/src/migrations/2025-03-14-110000-fix-missing-index.ts +2 -3
- package/src/migrations/runner.ts +12 -12
- package/src/migrations/snapshot-factory.ts +0 -1
- package/src/model/ProjectInitializer.ts +19 -14
- package/src/model/commands/Command.ts +1 -1
- package/src/model/commands/CommandBus.ts +1 -3
- package/src/model/commands/migrations/SaveMigrationCommand.ts +1 -2
- package/src/model/database/DatabaseContext.ts +1 -2
- package/src/model/dtos/ExecutedMigration.ts +0 -1
- package/src/model/dtos/Stage.ts +0 -1
- package/src/model/events/types.ts +0 -1
- package/src/model/metadata/SchemaDatabaseMetadataResolverStore.ts +0 -2
- package/src/model/migrations/ProjectMigrator.ts +16 -16
- package/src/model/migrations/SchemaProvider.ts +1 -1
- package/src/model/queries/events/EventsQuery.ts +3 -7
- package/src/model/queries/events/OldValuesQuery.ts +4 -4
- package/src/model/queries/schema/SchemaQuery.ts +1 -3
- package/src/model/stages/StageCreator.ts +0 -2
- package/src/resolvers/ResolverFactory.ts +3 -4
- package/src/resolvers/SystemResolverContext.ts +3 -1
- package/src/resolvers/mutation/MigrateMutationResolver.ts +38 -37
- package/src/resolvers/mutation/MigrationAlterMutationResolver.ts +0 -1
- package/src/resolvers/query/EventsQueryResolver.ts +8 -6
- package/src/schema/types.ts +69 -43
- package/tests/cases/migrations/2020-05-06-150000-composed-primary.test.ts +10 -9
- package/tests/cases/migrations/2020-06-01-103000-event-trigger-perf.test.ts +10 -10
- package/tests/cases/migrations/2022-10-03-110000-table-on-delete.test.ts +32 -34
- package/tests/cases/migrations/2023-09-11-174000-fix-on-delete.test.ts +65 -67
- package/tests/cases/migrations/2023-10-19-173000-fix-unique.test.ts +23 -25
- package/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.ts +18 -19
- package/tests/cases/unit/eventsQuery.test.ts +22 -15
- package/dist/development/index.cjs +0 -73
- package/dist/development/index.cjs.map +0 -1
- package/dist/development/index.js +0 -70
- package/dist/development/index.js.map +0 -1
- package/dist/development/src/SystemContainer.cjs +0 -49
- package/dist/development/src/SystemContainer.cjs.map +0 -1
- package/dist/development/src/SystemContainer.js +0 -49
- package/dist/development/src/SystemContainer.js.map +0 -1
- package/dist/development/src/migrations/2018-08-04-102200-init.cjs +0 -36
- package/dist/development/src/migrations/2018-08-04-102200-init.cjs.map +0 -1
- package/dist/development/src/migrations/2018-08-04-102200-init.js +0 -37
- package/dist/development/src/migrations/2018-08-04-102200-init.js.map +0 -1
- package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.cjs +0 -98
- package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.cjs.map +0 -1
- package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.js +0 -99
- package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.js.map +0 -1
- package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.cjs +0 -16
- package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.cjs.map +0 -1
- package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.js +0 -17
- package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.js.map +0 -1
- package/dist/development/src/migrations/2019-02-04-154500-event-rebase.cjs +0 -58
- package/dist/development/src/migrations/2019-02-04-154500-event-rebase.cjs.map +0 -1
- package/dist/development/src/migrations/2019-02-04-154500-event-rebase.js +0 -59
- package/dist/development/src/migrations/2019-02-04-154500-event-rebase.js.map +0 -1
- package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs +0 -11
- package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs.map +0 -1
- package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.js +0 -12
- package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.js.map +0 -1
- package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs +0 -65
- package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs.map +0 -1
- package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.js +0 -66
- package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.js.map +0 -1
- package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs +0 -20
- package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs.map +0 -1
- package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.js +0 -21
- package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.js.map +0 -1
- package/dist/development/src/migrations/2020-03-27-130000-project-migrations.cjs +0 -21
- package/dist/development/src/migrations/2020-03-27-130000-project-migrations.cjs.map +0 -1
- package/dist/development/src/migrations/2020-03-27-130000-project-migrations.js +0 -22
- package/dist/development/src/migrations/2020-03-27-130000-project-migrations.js.map +0 -1
- package/dist/development/src/migrations/2020-05-06-150000-composed-primary.cjs +0 -188
- package/dist/development/src/migrations/2020-05-06-150000-composed-primary.cjs.map +0 -1
- package/dist/development/src/migrations/2020-05-06-150000-composed-primary.js +0 -189
- package/dist/development/src/migrations/2020-05-06-150000-composed-primary.js.map +0 -1
- package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.cjs +0 -128
- package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.cjs.map +0 -1
- package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.js +0 -129
- package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.js.map +0 -1
- package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.cjs +0 -14
- package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.cjs.map +0 -1
- package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.js +0 -15
- package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.js.map +0 -1
- package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.cjs +0 -286
- package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.cjs.map +0 -1
- package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.js +0 -287
- package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.js.map +0 -1
- package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs +0 -44
- package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs.map +0 -1
- package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js +0 -45
- package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js.map +0 -1
- package/dist/development/src/migrations/2021-12-21-155500-events-up.cjs +0 -14
- package/dist/development/src/migrations/2021-12-21-155500-events-up.cjs.map +0 -1
- package/dist/development/src/migrations/2021-12-21-155500-events-up.js +0 -15
- package/dist/development/src/migrations/2021-12-21-155500-events-up.js.map +0 -1
- package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.cjs +0 -15
- package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.cjs.map +0 -1
- package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.js +0 -16
- package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.js.map +0 -1
- package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.cjs +0 -10
- package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.cjs.map +0 -1
- package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.js +0 -11
- package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.js.map +0 -1
- package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs +0 -49
- package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs.map +0 -1
- package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.js +0 -50
- package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.js.map +0 -1
- package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.cjs +0 -59
- package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.cjs.map +0 -1
- package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.js +0 -60
- package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.js.map +0 -1
- package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.cjs +0 -65
- package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.cjs.map +0 -1
- package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.js +0 -66
- package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.js.map +0 -1
- package/dist/development/src/migrations/2023-10-19-173000-fix-unique.cjs +0 -43
- package/dist/development/src/migrations/2023-10-19-173000-fix-unique.cjs.map +0 -1
- package/dist/development/src/migrations/2023-10-19-173000-fix-unique.js +0 -44
- package/dist/development/src/migrations/2023-10-19-173000-fix-unique.js.map +0 -1
- package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs +0 -11
- package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs.map +0 -1
- package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.js +0 -12
- package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.js.map +0 -1
- package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs +0 -15
- package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs.map +0 -1
- package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.js +0 -16
- package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.js.map +0 -1
- package/dist/development/src/migrations/2024-06-28-153000-schema.cjs +0 -18
- package/dist/development/src/migrations/2024-06-28-153000-schema.cjs.map +0 -1
- package/dist/development/src/migrations/2024-06-28-153000-schema.js +0 -19
- package/dist/development/src/migrations/2024-06-28-153000-schema.js.map +0 -1
- package/dist/development/src/migrations/2024-06-28-153001-schema-init.cjs +0 -12
- package/dist/development/src/migrations/2024-06-28-153001-schema-init.cjs.map +0 -1
- package/dist/development/src/migrations/2024-06-28-153001-schema-init.js +0 -13
- package/dist/development/src/migrations/2024-06-28-153001-schema-init.js.map +0 -1
- package/dist/development/src/migrations/2024-07-29-150000-event-data-index.cjs +0 -11
- package/dist/development/src/migrations/2024-07-29-150000-event-data-index.cjs.map +0 -1
- package/dist/development/src/migrations/2024-07-29-150000-event-data-index.js +0 -12
- package/dist/development/src/migrations/2024-07-29-150000-event-data-index.js.map +0 -1
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.cjs +0 -63
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.cjs.map +0 -1
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.js +0 -64
- package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.js.map +0 -1
- package/dist/development/src/migrations/runner.cjs +0 -106
- package/dist/development/src/migrations/runner.cjs.map +0 -1
- package/dist/development/src/migrations/runner.js +0 -106
- package/dist/development/src/migrations/runner.js.map +0 -1
- package/dist/development/src/migrations/snapshot-factory.cjs +0 -44
- package/dist/development/src/migrations/snapshot-factory.cjs.map +0 -1
- package/dist/development/src/migrations/snapshot-factory.js +0 -44
- package/dist/development/src/migrations/snapshot-factory.js.map +0 -1
- package/dist/development/src/migrations/snapshot.cjs +0 -184
- package/dist/development/src/migrations/snapshot.cjs.map +0 -1
- package/dist/development/src/migrations/snapshot.js +0 -185
- package/dist/development/src/migrations/snapshot.js.map +0 -1
- package/dist/development/src/model/ProjectInitializer.cjs +0 -41
- package/dist/development/src/model/ProjectInitializer.cjs.map +0 -1
- package/dist/development/src/model/ProjectInitializer.js +0 -41
- package/dist/development/src/model/ProjectInitializer.js.map +0 -1
- package/dist/development/src/model/ProjectTruncateExecutor.cjs +0 -31
- package/dist/development/src/model/ProjectTruncateExecutor.cjs.map +0 -1
- package/dist/development/src/model/ProjectTruncateExecutor.js +0 -31
- package/dist/development/src/model/ProjectTruncateExecutor.js.map +0 -1
- package/dist/development/src/model/authorization/AuthorizationActions.cjs +0 -14
- package/dist/development/src/model/authorization/AuthorizationActions.cjs.map +0 -1
- package/dist/development/src/model/authorization/AuthorizationActions.js +0 -15
- package/dist/development/src/model/authorization/AuthorizationActions.js.map +0 -1
- package/dist/development/src/model/authorization/Identity.cjs +0 -10
- package/dist/development/src/model/authorization/Identity.cjs.map +0 -1
- package/dist/development/src/model/authorization/Identity.js +0 -10
- package/dist/development/src/model/authorization/Identity.js.map +0 -1
- package/dist/development/src/model/authorization/PermissionsFactory.cjs +0 -17
- package/dist/development/src/model/authorization/PermissionsFactory.cjs.map +0 -1
- package/dist/development/src/model/authorization/PermissionsFactory.js +0 -17
- package/dist/development/src/model/authorization/PermissionsFactory.js.map +0 -1
- package/dist/development/src/model/authorization/StagePermissionsFactory.cjs +0 -56
- package/dist/development/src/model/authorization/StagePermissionsFactory.cjs.map +0 -1
- package/dist/development/src/model/authorization/StagePermissionsFactory.js +0 -56
- package/dist/development/src/model/authorization/StagePermissionsFactory.js.map +0 -1
- package/dist/development/src/model/authorization/StageScope.cjs +0 -19
- package/dist/development/src/model/authorization/StageScope.cjs.map +0 -1
- package/dist/development/src/model/authorization/StageScope.js +0 -19
- package/dist/development/src/model/authorization/StageScope.js.map +0 -1
- package/dist/development/src/model/authorization/SwitchEvaluatorNode.cjs +0 -14
- package/dist/development/src/model/authorization/SwitchEvaluatorNode.cjs.map +0 -1
- package/dist/development/src/model/authorization/SwitchEvaluatorNode.js +0 -14
- package/dist/development/src/model/authorization/SwitchEvaluatorNode.js.map +0 -1
- package/dist/development/src/model/commands/CommandBus.cjs +0 -18
- package/dist/development/src/model/commands/CommandBus.cjs.map +0 -1
- package/dist/development/src/model/commands/CommandBus.js +0 -18
- package/dist/development/src/model/commands/CommandBus.js.map +0 -1
- package/dist/development/src/model/commands/events/TruncateEventsCommand.cjs +0 -10
- package/dist/development/src/model/commands/events/TruncateEventsCommand.cjs.map +0 -1
- package/dist/development/src/model/commands/events/TruncateEventsCommand.js +0 -10
- package/dist/development/src/model/commands/events/TruncateEventsCommand.js.map +0 -1
- package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.cjs +0 -16
- package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.cjs.map +0 -1
- package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.js +0 -16
- package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.js.map +0 -1
- package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.cjs +0 -38
- package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.cjs.map +0 -1
- package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.js +0 -38
- package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.js.map +0 -1
- package/dist/development/src/model/commands/migrations/SaveMigrationCommand.cjs +0 -28
- package/dist/development/src/model/commands/migrations/SaveMigrationCommand.cjs.map +0 -1
- package/dist/development/src/model/commands/migrations/SaveMigrationCommand.js +0 -28
- package/dist/development/src/model/commands/migrations/SaveMigrationCommand.js.map +0 -1
- package/dist/development/src/model/commands/schema/SaveSchemaCommand.cjs +0 -28
- package/dist/development/src/model/commands/schema/SaveSchemaCommand.cjs.map +0 -1
- package/dist/development/src/model/commands/schema/SaveSchemaCommand.js +0 -28
- package/dist/development/src/model/commands/schema/SaveSchemaCommand.js.map +0 -1
- package/dist/development/src/model/commands/stages/CreateStageCommand.cjs +0 -22
- package/dist/development/src/model/commands/stages/CreateStageCommand.cjs.map +0 -1
- package/dist/development/src/model/commands/stages/CreateStageCommand.js +0 -22
- package/dist/development/src/model/commands/stages/CreateStageCommand.js.map +0 -1
- package/dist/development/src/model/database/DatabaseContext.cjs +0 -29
- package/dist/development/src/model/database/DatabaseContext.cjs.map +0 -1
- package/dist/development/src/model/database/DatabaseContext.js +0 -29
- package/dist/development/src/model/database/DatabaseContext.js.map +0 -1
- package/dist/development/src/model/dtos/ExecutedMigration.cjs +0 -21
- package/dist/development/src/model/dtos/ExecutedMigration.cjs.map +0 -1
- package/dist/development/src/model/dtos/ExecutedMigration.js +0 -21
- package/dist/development/src/model/dtos/ExecutedMigration.js.map +0 -1
- package/dist/development/src/model/events/EventResponseBuilder.cjs +0 -59
- package/dist/development/src/model/events/EventResponseBuilder.cjs.map +0 -1
- package/dist/development/src/model/events/EventResponseBuilder.js +0 -59
- package/dist/development/src/model/events/EventResponseBuilder.js.map +0 -1
- package/dist/development/src/model/events/EventResponseHelper.cjs +0 -25
- package/dist/development/src/model/events/EventResponseHelper.cjs.map +0 -1
- package/dist/development/src/model/events/EventResponseHelper.js +0 -25
- package/dist/development/src/model/events/EventResponseHelper.js.map +0 -1
- package/dist/development/src/model/events/identityUtils.cjs +0 -16
- package/dist/development/src/model/events/identityUtils.cjs.map +0 -1
- package/dist/development/src/model/events/identityUtils.js +0 -16
- package/dist/development/src/model/events/identityUtils.js.map +0 -1
- package/dist/development/src/model/events/types.cjs +0 -69
- package/dist/development/src/model/events/types.cjs.map +0 -1
- package/dist/development/src/model/events/types.js +0 -69
- package/dist/development/src/model/events/types.js.map +0 -1
- package/dist/development/src/model/helpers/modelHelpers.cjs +0 -28
- package/dist/development/src/model/helpers/modelHelpers.cjs.map +0 -1
- package/dist/development/src/model/helpers/modelHelpers.js +0 -28
- package/dist/development/src/model/helpers/modelHelpers.js.map +0 -1
- package/dist/development/src/model/helpers/stageHelpers.cjs +0 -7
- package/dist/development/src/model/helpers/stageHelpers.cjs.map +0 -1
- package/dist/development/src/model/helpers/stageHelpers.js +0 -7
- package/dist/development/src/model/helpers/stageHelpers.js.map +0 -1
- package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs +0 -35
- package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs.map +0 -1
- package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.js +0 -35
- package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.js.map +0 -1
- package/dist/development/src/model/migrations/ExecutedMigrationsResolver.cjs +0 -17
- package/dist/development/src/model/migrations/ExecutedMigrationsResolver.cjs.map +0 -1
- package/dist/development/src/model/migrations/ExecutedMigrationsResolver.js +0 -17
- package/dist/development/src/model/migrations/ExecutedMigrationsResolver.js.map +0 -1
- package/dist/development/src/model/migrations/MigrationAlterer.cjs +0 -52
- package/dist/development/src/model/migrations/MigrationAlterer.cjs.map +0 -1
- package/dist/development/src/model/migrations/MigrationAlterer.js +0 -52
- package/dist/development/src/model/migrations/MigrationAlterer.js.map +0 -1
- package/dist/development/src/model/migrations/ProjectMigrator.cjs +0 -243
- package/dist/development/src/model/migrations/ProjectMigrator.cjs.map +0 -1
- package/dist/development/src/model/migrations/ProjectMigrator.js +0 -243
- package/dist/development/src/model/migrations/ProjectMigrator.js.map +0 -1
- package/dist/development/src/model/migrations/SchemaProvider.cjs +0 -55
- package/dist/development/src/model/migrations/SchemaProvider.cjs.map +0 -1
- package/dist/development/src/model/migrations/SchemaProvider.js +0 -55
- package/dist/development/src/model/migrations/SchemaProvider.js.map +0 -1
- package/dist/development/src/model/queries/events/EventQueryHelpers.cjs +0 -48
- package/dist/development/src/model/queries/events/EventQueryHelpers.cjs.map +0 -1
- package/dist/development/src/model/queries/events/EventQueryHelpers.js +0 -48
- package/dist/development/src/model/queries/events/EventQueryHelpers.js.map +0 -1
- package/dist/development/src/model/queries/events/EventsQuery.cjs +0 -70
- package/dist/development/src/model/queries/events/EventsQuery.cjs.map +0 -1
- package/dist/development/src/model/queries/events/EventsQuery.js +0 -70
- package/dist/development/src/model/queries/events/EventsQuery.js.map +0 -1
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.cjs +0 -15
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.cjs.map +0 -1
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.js +0 -15
- package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.js.map +0 -1
- package/dist/development/src/model/queries/events/OldValuesQuery.cjs +0 -19
- package/dist/development/src/model/queries/events/OldValuesQuery.cjs.map +0 -1
- package/dist/development/src/model/queries/events/OldValuesQuery.js +0 -19
- package/dist/development/src/model/queries/events/OldValuesQuery.js.map +0 -1
- package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs +0 -18
- package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs.map +0 -1
- package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js +0 -18
- package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js.map +0 -1
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.cjs +0 -19
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.cjs.map +0 -1
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.js +0 -19
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.js.map +0 -1
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs +0 -18
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs.map +0 -1
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js +0 -18
- package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js.map +0 -1
- package/dist/development/src/model/queries/schema/SchemaQuery.cjs +0 -34
- package/dist/development/src/model/queries/schema/SchemaQuery.cjs.map +0 -1
- package/dist/development/src/model/queries/schema/SchemaQuery.js +0 -34
- package/dist/development/src/model/queries/schema/SchemaQuery.js.map +0 -1
- package/dist/development/src/model/queries/stages/StageBySlugQuery.cjs +0 -17
- package/dist/development/src/model/queries/stages/StageBySlugQuery.cjs.map +0 -1
- package/dist/development/src/model/queries/stages/StageBySlugQuery.js +0 -17
- package/dist/development/src/model/queries/stages/StageBySlugQuery.js.map +0 -1
- package/dist/development/src/model/queries/stages/StageQueryFactory.cjs +0 -8
- package/dist/development/src/model/queries/stages/StageQueryFactory.cjs.map +0 -1
- package/dist/development/src/model/queries/stages/StageQueryFactory.js +0 -8
- package/dist/development/src/model/queries/stages/StageQueryFactory.js.map +0 -1
- package/dist/development/src/model/queries/stages/StagesQuery.cjs +0 -12
- package/dist/development/src/model/queries/stages/StagesQuery.cjs.map +0 -1
- package/dist/development/src/model/queries/stages/StagesQuery.js +0 -12
- package/dist/development/src/model/queries/stages/StagesQuery.js.map +0 -1
- package/dist/development/src/model/stages/StageCreator.cjs +0 -22
- package/dist/development/src/model/stages/StageCreator.cjs.map +0 -1
- package/dist/development/src/model/stages/StageCreator.js +0 -22
- package/dist/development/src/model/stages/StageCreator.js.map +0 -1
- package/dist/development/src/resolvers/ResolverFactory.cjs +0 -92
- package/dist/development/src/resolvers/ResolverFactory.cjs.map +0 -1
- package/dist/development/src/resolvers/ResolverFactory.js +0 -92
- package/dist/development/src/resolvers/ResolverFactory.js.map +0 -1
- package/dist/development/src/resolvers/SystemResolverContext.cjs +0 -37
- package/dist/development/src/resolvers/SystemResolverContext.cjs.map +0 -1
- package/dist/development/src/resolvers/SystemResolverContext.js +0 -37
- package/dist/development/src/resolvers/SystemResolverContext.js.map +0 -1
- package/dist/development/src/resolvers/mutation/MigrateMutationResolver.cjs +0 -113
- package/dist/development/src/resolvers/mutation/MigrateMutationResolver.cjs.map +0 -1
- package/dist/development/src/resolvers/mutation/MigrateMutationResolver.js +0 -113
- package/dist/development/src/resolvers/mutation/MigrateMutationResolver.js.map +0 -1
- package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.cjs +0 -48
- package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.cjs.map +0 -1
- package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.js +0 -48
- package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.js.map +0 -1
- package/dist/development/src/resolvers/mutation/TruncateMutationResolver.cjs +0 -15
- package/dist/development/src/resolvers/mutation/TruncateMutationResolver.cjs.map +0 -1
- package/dist/development/src/resolvers/mutation/TruncateMutationResolver.js +0 -15
- package/dist/development/src/resolvers/mutation/TruncateMutationResolver.js.map +0 -1
- package/dist/development/src/resolvers/query/EventsQueryResolver.cjs +0 -43
- package/dist/development/src/resolvers/query/EventsQueryResolver.cjs.map +0 -1
- package/dist/development/src/resolvers/query/EventsQueryResolver.js +0 -43
- package/dist/development/src/resolvers/query/EventsQueryResolver.js.map +0 -1
- package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs +0 -29
- package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs.map +0 -1
- package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.js +0 -29
- package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.js.map +0 -1
- package/dist/development/src/resolvers/query/SchemaQueryResolver.cjs +0 -23
- package/dist/development/src/resolvers/query/SchemaQueryResolver.cjs.map +0 -1
- package/dist/development/src/resolvers/query/SchemaQueryResolver.js +0 -23
- package/dist/development/src/resolvers/query/SchemaQueryResolver.js.map +0 -1
- package/dist/development/src/resolvers/query/StagesQueryResolver.cjs +0 -19
- package/dist/development/src/resolvers/query/StagesQueryResolver.cjs.map +0 -1
- package/dist/development/src/resolvers/query/StagesQueryResolver.js +0 -19
- package/dist/development/src/resolvers/query/StagesQueryResolver.js.map +0 -1
- package/dist/development/src/resolvers/types/EventOldValuesResolver.cjs +0 -10
- package/dist/development/src/resolvers/types/EventOldValuesResolver.cjs.map +0 -1
- package/dist/development/src/resolvers/types/EventOldValuesResolver.js +0 -10
- package/dist/development/src/resolvers/types/EventOldValuesResolver.js.map +0 -1
- package/dist/development/src/resolvers/types/OldValuesHelpers.cjs +0 -21
- package/dist/development/src/resolvers/types/OldValuesHelpers.cjs.map +0 -1
- package/dist/development/src/resolvers/types/OldValuesHelpers.js +0 -21
- package/dist/development/src/resolvers/types/OldValuesHelpers.js.map +0 -1
- package/dist/development/src/schema/dev.graphql.cjs +0 -56
- package/dist/development/src/schema/dev.graphql.cjs.map +0 -1
- package/dist/development/src/schema/dev.graphql.js +0 -57
- package/dist/development/src/schema/dev.graphql.js.map +0 -1
- package/dist/development/src/schema/system.graphql.cjs +0 -211
- package/dist/development/src/schema/system.graphql.cjs.map +0 -1
- package/dist/development/src/schema/system.graphql.js +0 -212
- package/dist/development/src/schema/system.graphql.js.map +0 -1
- package/dist/development/src/schema/types.cjs +0 -46
- package/dist/development/src/schema/types.cjs.map +0 -1
- package/dist/development/src/schema/types.js +0 -46
- package/dist/development/src/schema/types.js.map +0 -1
- package/dist/development/src/utils/MapSet.cjs +0 -43
- package/dist/development/src/utils/MapSet.cjs.map +0 -1
- package/dist/development/src/utils/MapSet.js +0 -43
- package/dist/development/src/utils/MapSet.js.map +0 -1
- package/dist/development/src/utils/Response.cjs +0 -21
- package/dist/development/src/utils/Response.cjs.map +0 -1
- package/dist/development/src/utils/Response.js +0 -21
- package/dist/development/src/utils/Response.js.map +0 -1
- package/dist/development/src/utils/assertNever.cjs +0 -7
- package/dist/development/src/utils/assertNever.cjs.map +0 -1
- package/dist/development/src/utils/assertNever.js +0 -7
- package/dist/development/src/utils/assertNever.js.map +0 -1
- package/dist/development/src/utils/batchQuery.cjs +0 -22
- package/dist/development/src/utils/batchQuery.cjs.map +0 -1
- package/dist/development/src/utils/batchQuery.js +0 -22
- package/dist/development/src/utils/batchQuery.js.map +0 -1
- package/dist/development/src/utils/exceptions.cjs +0 -9
- package/dist/development/src/utils/exceptions.cjs.map +0 -1
- package/dist/development/src/utils/exceptions.js +0 -9
- package/dist/development/src/utils/exceptions.js.map +0 -1
- package/dist/development/src/utils/tick.cjs +0 -5
- package/dist/development/src/utils/tick.cjs.map +0 -1
- package/dist/development/src/utils/tick.js +0 -5
- package/dist/development/src/utils/tick.js.map +0 -1
- package/dist/development/src/utils/tuple.cjs +0 -5
- package/dist/development/src/utils/tuple.cjs.map +0 -1
- package/dist/development/src/utils/tuple.js +0 -5
- package/dist/development/src/utils/tuple.js.map +0 -1
- package/dist/production/index.cjs +0 -73
- package/dist/production/index.cjs.map +0 -1
- package/dist/production/index.js +0 -70
- package/dist/production/index.js.map +0 -1
- package/dist/production/src/SystemContainer.cjs +0 -49
- package/dist/production/src/SystemContainer.cjs.map +0 -1
- package/dist/production/src/SystemContainer.js +0 -49
- package/dist/production/src/SystemContainer.js.map +0 -1
- package/dist/production/src/migrations/2018-08-04-102200-init.cjs +0 -36
- package/dist/production/src/migrations/2018-08-04-102200-init.cjs.map +0 -1
- package/dist/production/src/migrations/2018-08-04-102200-init.js +0 -37
- package/dist/production/src/migrations/2018-08-04-102200-init.js.map +0 -1
- package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.cjs +0 -98
- package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.cjs.map +0 -1
- package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.js +0 -99
- package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.js.map +0 -1
- package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.cjs +0 -16
- package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.cjs.map +0 -1
- package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.js +0 -17
- package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.js.map +0 -1
- package/dist/production/src/migrations/2019-02-04-154500-event-rebase.cjs +0 -58
- package/dist/production/src/migrations/2019-02-04-154500-event-rebase.cjs.map +0 -1
- package/dist/production/src/migrations/2019-02-04-154500-event-rebase.js +0 -59
- package/dist/production/src/migrations/2019-02-04-154500-event-rebase.js.map +0 -1
- package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs +0 -11
- package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs.map +0 -1
- package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.js +0 -12
- package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.js.map +0 -1
- package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs +0 -65
- package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs.map +0 -1
- package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.js +0 -66
- package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.js.map +0 -1
- package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs +0 -20
- package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs.map +0 -1
- package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.js +0 -21
- package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.js.map +0 -1
- package/dist/production/src/migrations/2020-03-27-130000-project-migrations.cjs +0 -21
- package/dist/production/src/migrations/2020-03-27-130000-project-migrations.cjs.map +0 -1
- package/dist/production/src/migrations/2020-03-27-130000-project-migrations.js +0 -22
- package/dist/production/src/migrations/2020-03-27-130000-project-migrations.js.map +0 -1
- package/dist/production/src/migrations/2020-05-06-150000-composed-primary.cjs +0 -188
- package/dist/production/src/migrations/2020-05-06-150000-composed-primary.cjs.map +0 -1
- package/dist/production/src/migrations/2020-05-06-150000-composed-primary.js +0 -189
- package/dist/production/src/migrations/2020-05-06-150000-composed-primary.js.map +0 -1
- package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.cjs +0 -128
- package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.cjs.map +0 -1
- package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.js +0 -129
- package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.js.map +0 -1
- package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.cjs +0 -14
- package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.cjs.map +0 -1
- package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.js +0 -15
- package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.js.map +0 -1
- package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.cjs +0 -286
- package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.cjs.map +0 -1
- package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.js +0 -287
- package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.js.map +0 -1
- package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs +0 -44
- package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs.map +0 -1
- package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js +0 -45
- package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js.map +0 -1
- package/dist/production/src/migrations/2021-12-21-155500-events-up.cjs +0 -14
- package/dist/production/src/migrations/2021-12-21-155500-events-up.cjs.map +0 -1
- package/dist/production/src/migrations/2021-12-21-155500-events-up.js +0 -15
- package/dist/production/src/migrations/2021-12-21-155500-events-up.js.map +0 -1
- package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.cjs +0 -15
- package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.cjs.map +0 -1
- package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.js +0 -16
- package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.js.map +0 -1
- package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.cjs +0 -10
- package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.cjs.map +0 -1
- package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.js +0 -11
- package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.js.map +0 -1
- package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs +0 -49
- package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs.map +0 -1
- package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.js +0 -50
- package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.js.map +0 -1
- package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.cjs +0 -59
- package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.cjs.map +0 -1
- package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.js +0 -60
- package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.js.map +0 -1
- package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.cjs +0 -65
- package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.cjs.map +0 -1
- package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.js +0 -66
- package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.js.map +0 -1
- package/dist/production/src/migrations/2023-10-19-173000-fix-unique.cjs +0 -43
- package/dist/production/src/migrations/2023-10-19-173000-fix-unique.cjs.map +0 -1
- package/dist/production/src/migrations/2023-10-19-173000-fix-unique.js +0 -44
- package/dist/production/src/migrations/2023-10-19-173000-fix-unique.js.map +0 -1
- package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs +0 -11
- package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs.map +0 -1
- package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.js +0 -12
- package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.js.map +0 -1
- package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs +0 -15
- package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs.map +0 -1
- package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.js +0 -16
- package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.js.map +0 -1
- package/dist/production/src/migrations/2024-06-28-153000-schema.cjs +0 -18
- package/dist/production/src/migrations/2024-06-28-153000-schema.cjs.map +0 -1
- package/dist/production/src/migrations/2024-06-28-153000-schema.js +0 -19
- package/dist/production/src/migrations/2024-06-28-153000-schema.js.map +0 -1
- package/dist/production/src/migrations/2024-06-28-153001-schema-init.cjs +0 -12
- package/dist/production/src/migrations/2024-06-28-153001-schema-init.cjs.map +0 -1
- package/dist/production/src/migrations/2024-06-28-153001-schema-init.js +0 -13
- package/dist/production/src/migrations/2024-06-28-153001-schema-init.js.map +0 -1
- package/dist/production/src/migrations/2024-07-29-150000-event-data-index.cjs +0 -11
- package/dist/production/src/migrations/2024-07-29-150000-event-data-index.cjs.map +0 -1
- package/dist/production/src/migrations/2024-07-29-150000-event-data-index.js +0 -12
- package/dist/production/src/migrations/2024-07-29-150000-event-data-index.js.map +0 -1
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.cjs +0 -63
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.cjs.map +0 -1
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.js +0 -64
- package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.js.map +0 -1
- package/dist/production/src/migrations/runner.cjs +0 -106
- package/dist/production/src/migrations/runner.cjs.map +0 -1
- package/dist/production/src/migrations/runner.js +0 -106
- package/dist/production/src/migrations/runner.js.map +0 -1
- package/dist/production/src/migrations/snapshot-factory.cjs +0 -44
- package/dist/production/src/migrations/snapshot-factory.cjs.map +0 -1
- package/dist/production/src/migrations/snapshot-factory.js +0 -44
- package/dist/production/src/migrations/snapshot-factory.js.map +0 -1
- package/dist/production/src/migrations/snapshot.cjs +0 -184
- package/dist/production/src/migrations/snapshot.cjs.map +0 -1
- package/dist/production/src/migrations/snapshot.js +0 -185
- package/dist/production/src/migrations/snapshot.js.map +0 -1
- package/dist/production/src/model/ProjectInitializer.cjs +0 -41
- package/dist/production/src/model/ProjectInitializer.cjs.map +0 -1
- package/dist/production/src/model/ProjectInitializer.js +0 -41
- package/dist/production/src/model/ProjectInitializer.js.map +0 -1
- package/dist/production/src/model/ProjectTruncateExecutor.cjs +0 -31
- package/dist/production/src/model/ProjectTruncateExecutor.cjs.map +0 -1
- package/dist/production/src/model/ProjectTruncateExecutor.js +0 -31
- package/dist/production/src/model/ProjectTruncateExecutor.js.map +0 -1
- package/dist/production/src/model/authorization/AuthorizationActions.cjs +0 -14
- package/dist/production/src/model/authorization/AuthorizationActions.cjs.map +0 -1
- package/dist/production/src/model/authorization/AuthorizationActions.js +0 -15
- package/dist/production/src/model/authorization/AuthorizationActions.js.map +0 -1
- package/dist/production/src/model/authorization/Identity.cjs +0 -10
- package/dist/production/src/model/authorization/Identity.cjs.map +0 -1
- package/dist/production/src/model/authorization/Identity.js +0 -10
- package/dist/production/src/model/authorization/Identity.js.map +0 -1
- package/dist/production/src/model/authorization/PermissionsFactory.cjs +0 -17
- package/dist/production/src/model/authorization/PermissionsFactory.cjs.map +0 -1
- package/dist/production/src/model/authorization/PermissionsFactory.js +0 -17
- package/dist/production/src/model/authorization/PermissionsFactory.js.map +0 -1
- package/dist/production/src/model/authorization/StagePermissionsFactory.cjs +0 -56
- package/dist/production/src/model/authorization/StagePermissionsFactory.cjs.map +0 -1
- package/dist/production/src/model/authorization/StagePermissionsFactory.js +0 -56
- package/dist/production/src/model/authorization/StagePermissionsFactory.js.map +0 -1
- package/dist/production/src/model/authorization/StageScope.cjs +0 -19
- package/dist/production/src/model/authorization/StageScope.cjs.map +0 -1
- package/dist/production/src/model/authorization/StageScope.js +0 -19
- package/dist/production/src/model/authorization/StageScope.js.map +0 -1
- package/dist/production/src/model/authorization/SwitchEvaluatorNode.cjs +0 -14
- package/dist/production/src/model/authorization/SwitchEvaluatorNode.cjs.map +0 -1
- package/dist/production/src/model/authorization/SwitchEvaluatorNode.js +0 -14
- package/dist/production/src/model/authorization/SwitchEvaluatorNode.js.map +0 -1
- package/dist/production/src/model/commands/CommandBus.cjs +0 -18
- package/dist/production/src/model/commands/CommandBus.cjs.map +0 -1
- package/dist/production/src/model/commands/CommandBus.js +0 -18
- package/dist/production/src/model/commands/CommandBus.js.map +0 -1
- package/dist/production/src/model/commands/events/TruncateEventsCommand.cjs +0 -10
- package/dist/production/src/model/commands/events/TruncateEventsCommand.cjs.map +0 -1
- package/dist/production/src/model/commands/events/TruncateEventsCommand.js +0 -10
- package/dist/production/src/model/commands/events/TruncateEventsCommand.js.map +0 -1
- package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.cjs +0 -16
- package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.cjs.map +0 -1
- package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.js +0 -16
- package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.js.map +0 -1
- package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.cjs +0 -38
- package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.cjs.map +0 -1
- package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.js +0 -38
- package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.js.map +0 -1
- package/dist/production/src/model/commands/migrations/SaveMigrationCommand.cjs +0 -28
- package/dist/production/src/model/commands/migrations/SaveMigrationCommand.cjs.map +0 -1
- package/dist/production/src/model/commands/migrations/SaveMigrationCommand.js +0 -28
- package/dist/production/src/model/commands/migrations/SaveMigrationCommand.js.map +0 -1
- package/dist/production/src/model/commands/schema/SaveSchemaCommand.cjs +0 -28
- package/dist/production/src/model/commands/schema/SaveSchemaCommand.cjs.map +0 -1
- package/dist/production/src/model/commands/schema/SaveSchemaCommand.js +0 -28
- package/dist/production/src/model/commands/schema/SaveSchemaCommand.js.map +0 -1
- package/dist/production/src/model/commands/stages/CreateStageCommand.cjs +0 -22
- package/dist/production/src/model/commands/stages/CreateStageCommand.cjs.map +0 -1
- package/dist/production/src/model/commands/stages/CreateStageCommand.js +0 -22
- package/dist/production/src/model/commands/stages/CreateStageCommand.js.map +0 -1
- package/dist/production/src/model/database/DatabaseContext.cjs +0 -29
- package/dist/production/src/model/database/DatabaseContext.cjs.map +0 -1
- package/dist/production/src/model/database/DatabaseContext.js +0 -29
- package/dist/production/src/model/database/DatabaseContext.js.map +0 -1
- package/dist/production/src/model/dtos/ExecutedMigration.cjs +0 -21
- package/dist/production/src/model/dtos/ExecutedMigration.cjs.map +0 -1
- package/dist/production/src/model/dtos/ExecutedMigration.js +0 -21
- package/dist/production/src/model/dtos/ExecutedMigration.js.map +0 -1
- package/dist/production/src/model/events/EventResponseBuilder.cjs +0 -59
- package/dist/production/src/model/events/EventResponseBuilder.cjs.map +0 -1
- package/dist/production/src/model/events/EventResponseBuilder.js +0 -59
- package/dist/production/src/model/events/EventResponseBuilder.js.map +0 -1
- package/dist/production/src/model/events/EventResponseHelper.cjs +0 -25
- package/dist/production/src/model/events/EventResponseHelper.cjs.map +0 -1
- package/dist/production/src/model/events/EventResponseHelper.js +0 -25
- package/dist/production/src/model/events/EventResponseHelper.js.map +0 -1
- package/dist/production/src/model/events/identityUtils.cjs +0 -16
- package/dist/production/src/model/events/identityUtils.cjs.map +0 -1
- package/dist/production/src/model/events/identityUtils.js +0 -16
- package/dist/production/src/model/events/identityUtils.js.map +0 -1
- package/dist/production/src/model/events/types.cjs +0 -69
- package/dist/production/src/model/events/types.cjs.map +0 -1
- package/dist/production/src/model/events/types.js +0 -69
- package/dist/production/src/model/events/types.js.map +0 -1
- package/dist/production/src/model/helpers/modelHelpers.cjs +0 -28
- package/dist/production/src/model/helpers/modelHelpers.cjs.map +0 -1
- package/dist/production/src/model/helpers/modelHelpers.js +0 -28
- package/dist/production/src/model/helpers/modelHelpers.js.map +0 -1
- package/dist/production/src/model/helpers/stageHelpers.cjs +0 -7
- package/dist/production/src/model/helpers/stageHelpers.cjs.map +0 -1
- package/dist/production/src/model/helpers/stageHelpers.js +0 -7
- package/dist/production/src/model/helpers/stageHelpers.js.map +0 -1
- package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs +0 -35
- package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs.map +0 -1
- package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.js +0 -35
- package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.js.map +0 -1
- package/dist/production/src/model/migrations/ExecutedMigrationsResolver.cjs +0 -17
- package/dist/production/src/model/migrations/ExecutedMigrationsResolver.cjs.map +0 -1
- package/dist/production/src/model/migrations/ExecutedMigrationsResolver.js +0 -17
- package/dist/production/src/model/migrations/ExecutedMigrationsResolver.js.map +0 -1
- package/dist/production/src/model/migrations/MigrationAlterer.cjs +0 -52
- package/dist/production/src/model/migrations/MigrationAlterer.cjs.map +0 -1
- package/dist/production/src/model/migrations/MigrationAlterer.js +0 -52
- package/dist/production/src/model/migrations/MigrationAlterer.js.map +0 -1
- package/dist/production/src/model/migrations/ProjectMigrator.cjs +0 -243
- package/dist/production/src/model/migrations/ProjectMigrator.cjs.map +0 -1
- package/dist/production/src/model/migrations/ProjectMigrator.js +0 -243
- package/dist/production/src/model/migrations/ProjectMigrator.js.map +0 -1
- package/dist/production/src/model/migrations/SchemaProvider.cjs +0 -55
- package/dist/production/src/model/migrations/SchemaProvider.cjs.map +0 -1
- package/dist/production/src/model/migrations/SchemaProvider.js +0 -55
- package/dist/production/src/model/migrations/SchemaProvider.js.map +0 -1
- package/dist/production/src/model/queries/events/EventQueryHelpers.cjs +0 -48
- package/dist/production/src/model/queries/events/EventQueryHelpers.cjs.map +0 -1
- package/dist/production/src/model/queries/events/EventQueryHelpers.js +0 -48
- package/dist/production/src/model/queries/events/EventQueryHelpers.js.map +0 -1
- package/dist/production/src/model/queries/events/EventsQuery.cjs +0 -70
- package/dist/production/src/model/queries/events/EventsQuery.cjs.map +0 -1
- package/dist/production/src/model/queries/events/EventsQuery.js +0 -70
- package/dist/production/src/model/queries/events/EventsQuery.js.map +0 -1
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.cjs +0 -15
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.cjs.map +0 -1
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.js +0 -15
- package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.js.map +0 -1
- package/dist/production/src/model/queries/events/OldValuesQuery.cjs +0 -19
- package/dist/production/src/model/queries/events/OldValuesQuery.cjs.map +0 -1
- package/dist/production/src/model/queries/events/OldValuesQuery.js +0 -19
- package/dist/production/src/model/queries/events/OldValuesQuery.js.map +0 -1
- package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs +0 -18
- package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs.map +0 -1
- package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js +0 -18
- package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js.map +0 -1
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.cjs +0 -19
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.cjs.map +0 -1
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.js +0 -19
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.js.map +0 -1
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs +0 -18
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs.map +0 -1
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js +0 -18
- package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js.map +0 -1
- package/dist/production/src/model/queries/schema/SchemaQuery.cjs +0 -34
- package/dist/production/src/model/queries/schema/SchemaQuery.cjs.map +0 -1
- package/dist/production/src/model/queries/schema/SchemaQuery.js +0 -34
- package/dist/production/src/model/queries/schema/SchemaQuery.js.map +0 -1
- package/dist/production/src/model/queries/stages/StageBySlugQuery.cjs +0 -17
- package/dist/production/src/model/queries/stages/StageBySlugQuery.cjs.map +0 -1
- package/dist/production/src/model/queries/stages/StageBySlugQuery.js +0 -17
- package/dist/production/src/model/queries/stages/StageBySlugQuery.js.map +0 -1
- package/dist/production/src/model/queries/stages/StageQueryFactory.cjs +0 -8
- package/dist/production/src/model/queries/stages/StageQueryFactory.cjs.map +0 -1
- package/dist/production/src/model/queries/stages/StageQueryFactory.js +0 -8
- package/dist/production/src/model/queries/stages/StageQueryFactory.js.map +0 -1
- package/dist/production/src/model/queries/stages/StagesQuery.cjs +0 -12
- package/dist/production/src/model/queries/stages/StagesQuery.cjs.map +0 -1
- package/dist/production/src/model/queries/stages/StagesQuery.js +0 -12
- package/dist/production/src/model/queries/stages/StagesQuery.js.map +0 -1
- package/dist/production/src/model/stages/StageCreator.cjs +0 -22
- package/dist/production/src/model/stages/StageCreator.cjs.map +0 -1
- package/dist/production/src/model/stages/StageCreator.js +0 -22
- package/dist/production/src/model/stages/StageCreator.js.map +0 -1
- package/dist/production/src/resolvers/ResolverFactory.cjs +0 -92
- package/dist/production/src/resolvers/ResolverFactory.cjs.map +0 -1
- package/dist/production/src/resolvers/ResolverFactory.js +0 -92
- package/dist/production/src/resolvers/ResolverFactory.js.map +0 -1
- package/dist/production/src/resolvers/SystemResolverContext.cjs +0 -37
- package/dist/production/src/resolvers/SystemResolverContext.cjs.map +0 -1
- package/dist/production/src/resolvers/SystemResolverContext.js +0 -37
- package/dist/production/src/resolvers/SystemResolverContext.js.map +0 -1
- package/dist/production/src/resolvers/mutation/MigrateMutationResolver.cjs +0 -113
- package/dist/production/src/resolvers/mutation/MigrateMutationResolver.cjs.map +0 -1
- package/dist/production/src/resolvers/mutation/MigrateMutationResolver.js +0 -113
- package/dist/production/src/resolvers/mutation/MigrateMutationResolver.js.map +0 -1
- package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.cjs +0 -48
- package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.cjs.map +0 -1
- package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.js +0 -48
- package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.js.map +0 -1
- package/dist/production/src/resolvers/mutation/TruncateMutationResolver.cjs +0 -15
- package/dist/production/src/resolvers/mutation/TruncateMutationResolver.cjs.map +0 -1
- package/dist/production/src/resolvers/mutation/TruncateMutationResolver.js +0 -15
- package/dist/production/src/resolvers/mutation/TruncateMutationResolver.js.map +0 -1
- package/dist/production/src/resolvers/query/EventsQueryResolver.cjs +0 -43
- package/dist/production/src/resolvers/query/EventsQueryResolver.cjs.map +0 -1
- package/dist/production/src/resolvers/query/EventsQueryResolver.js +0 -43
- package/dist/production/src/resolvers/query/EventsQueryResolver.js.map +0 -1
- package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs +0 -29
- package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs.map +0 -1
- package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.js +0 -29
- package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.js.map +0 -1
- package/dist/production/src/resolvers/query/SchemaQueryResolver.cjs +0 -23
- package/dist/production/src/resolvers/query/SchemaQueryResolver.cjs.map +0 -1
- package/dist/production/src/resolvers/query/SchemaQueryResolver.js +0 -23
- package/dist/production/src/resolvers/query/SchemaQueryResolver.js.map +0 -1
- package/dist/production/src/resolvers/query/StagesQueryResolver.cjs +0 -19
- package/dist/production/src/resolvers/query/StagesQueryResolver.cjs.map +0 -1
- package/dist/production/src/resolvers/query/StagesQueryResolver.js +0 -19
- package/dist/production/src/resolvers/query/StagesQueryResolver.js.map +0 -1
- package/dist/production/src/resolvers/types/EventOldValuesResolver.cjs +0 -10
- package/dist/production/src/resolvers/types/EventOldValuesResolver.cjs.map +0 -1
- package/dist/production/src/resolvers/types/EventOldValuesResolver.js +0 -10
- package/dist/production/src/resolvers/types/EventOldValuesResolver.js.map +0 -1
- package/dist/production/src/resolvers/types/OldValuesHelpers.cjs +0 -21
- package/dist/production/src/resolvers/types/OldValuesHelpers.cjs.map +0 -1
- package/dist/production/src/resolvers/types/OldValuesHelpers.js +0 -21
- package/dist/production/src/resolvers/types/OldValuesHelpers.js.map +0 -1
- package/dist/production/src/schema/dev.graphql.cjs +0 -56
- package/dist/production/src/schema/dev.graphql.cjs.map +0 -1
- package/dist/production/src/schema/dev.graphql.js +0 -57
- package/dist/production/src/schema/dev.graphql.js.map +0 -1
- package/dist/production/src/schema/system.graphql.cjs +0 -211
- package/dist/production/src/schema/system.graphql.cjs.map +0 -1
- package/dist/production/src/schema/system.graphql.js +0 -212
- package/dist/production/src/schema/system.graphql.js.map +0 -1
- package/dist/production/src/schema/types.cjs +0 -46
- package/dist/production/src/schema/types.cjs.map +0 -1
- package/dist/production/src/schema/types.js +0 -46
- package/dist/production/src/schema/types.js.map +0 -1
- package/dist/production/src/utils/MapSet.cjs +0 -43
- package/dist/production/src/utils/MapSet.cjs.map +0 -1
- package/dist/production/src/utils/MapSet.js +0 -43
- package/dist/production/src/utils/MapSet.js.map +0 -1
- package/dist/production/src/utils/Response.cjs +0 -21
- package/dist/production/src/utils/Response.cjs.map +0 -1
- package/dist/production/src/utils/Response.js +0 -21
- package/dist/production/src/utils/Response.js.map +0 -1
- package/dist/production/src/utils/assertNever.cjs +0 -7
- package/dist/production/src/utils/assertNever.cjs.map +0 -1
- package/dist/production/src/utils/assertNever.js +0 -7
- package/dist/production/src/utils/assertNever.js.map +0 -1
- package/dist/production/src/utils/batchQuery.cjs +0 -22
- package/dist/production/src/utils/batchQuery.cjs.map +0 -1
- package/dist/production/src/utils/batchQuery.js +0 -22
- package/dist/production/src/utils/batchQuery.js.map +0 -1
- package/dist/production/src/utils/exceptions.cjs +0 -9
- package/dist/production/src/utils/exceptions.cjs.map +0 -1
- package/dist/production/src/utils/exceptions.js +0 -9
- package/dist/production/src/utils/exceptions.js.map +0 -1
- package/dist/production/src/utils/tick.cjs +0 -5
- package/dist/production/src/utils/tick.cjs.map +0 -1
- package/dist/production/src/utils/tick.js +0 -5
- package/dist/production/src/utils/tick.js.map +0 -1
- package/dist/production/src/utils/tuple.cjs +0 -5
- package/dist/production/src/utils/tuple.cjs.map +0 -1
- package/dist/production/src/utils/tuple.js +0 -5
- package/dist/production/src/utils/tuple.js.map +0 -1
- package/dist/tests/cases/migrations/2020-05-06-150000-composed-primary.test.d.ts +0 -2
- package/dist/tests/cases/migrations/2020-05-06-150000-composed-primary.test.d.ts.map +0 -1
- package/dist/tests/cases/migrations/2020-06-01-103000-event-trigger-perf.test.d.ts +0 -2
- package/dist/tests/cases/migrations/2020-06-01-103000-event-trigger-perf.test.d.ts.map +0 -1
- package/dist/tests/cases/migrations/2022-10-03-110000-table-on-delete.test.d.ts +0 -2
- package/dist/tests/cases/migrations/2022-10-03-110000-table-on-delete.test.d.ts.map +0 -1
- package/dist/tests/cases/migrations/2023-09-11-174000-fix-on-delete.test.d.ts +0 -2
- package/dist/tests/cases/migrations/2023-09-11-174000-fix-on-delete.test.d.ts.map +0 -1
- package/dist/tests/cases/migrations/2023-10-19-173000-fix-unique.test.d.ts +0 -2
- package/dist/tests/cases/migrations/2023-10-19-173000-fix-unique.test.d.ts.map +0 -1
- package/dist/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.d.ts +0 -2
- package/dist/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.d.ts.map +0 -1
- package/dist/tests/cases/unit/eventsQuery.test.d.ts +0 -2
- package/dist/tests/cases/unit/eventsQuery.test.d.ts.map +0 -1
- package/dist/tests/src/constants.d.ts +0 -2
- package/dist/tests/src/constants.d.ts.map +0 -1
- package/dist/tests/src/utils.d.ts +0 -6
- package/dist/tests/src/utils.d.ts.map +0 -1
- package/dist/tests/src/uuid.d.ts +0 -3
- package/dist/tests/src/uuid.d.ts.map +0 -1
- package/dist/tests/tsconfig.tsbuildinfo +0 -1
- package/dist/types/StagingDisabledError.d.ts +0 -3
- package/dist/types/StagingDisabledError.d.ts.map +0 -1
- package/dist/types/SystemContainer.d.ts +0 -79
- package/dist/types/SystemContainer.d.ts.map +0 -1
- package/dist/types/bin/runMigrations.d.ts +0 -2
- package/dist/types/bin/runMigrations.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -9
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/migrations/2018-08-04-102200-init.d.ts +0 -3
- package/dist/types/migrations/2018-08-04-102200-init.d.ts.map +0 -1
- package/dist/types/migrations/2018-08-05-130501-trigger-event-function.d.ts +0 -3
- package/dist/types/migrations/2018-08-05-130501-trigger-event-function.d.ts.map +0 -1
- package/dist/types/migrations/2019-01-14-143432-event-trx-id.d.ts +0 -3
- package/dist/types/migrations/2019-01-14-143432-event-trx-id.d.ts.map +0 -1
- package/dist/types/migrations/2019-02-04-154500-event-rebase.d.ts +0 -3
- package/dist/types/migrations/2019-02-04-154500-event-rebase.d.ts.map +0 -1
- package/dist/types/migrations/2019-03-18-104147-event-run-migration-struct.d.ts +0 -3
- package/dist/types/migrations/2019-03-18-104147-event-run-migration-struct.d.ts.map +0 -1
- package/dist/types/migrations/2019-07-29-103000-trigger-event-function-fix.d.ts +0 -3
- package/dist/types/migrations/2019-07-29-103000-trigger-event-function-fix.d.ts.map +0 -1
- package/dist/types/migrations/2019-11-28-100000-missing-setting-fallback.d.ts +0 -3
- package/dist/types/migrations/2019-11-28-100000-missing-setting-fallback.d.ts.map +0 -1
- package/dist/types/migrations/2020-03-27-130000-project-migrations.d.ts +0 -4
- package/dist/types/migrations/2020-03-27-130000-project-migrations.d.ts.map +0 -1
- package/dist/types/migrations/2020-05-06-150000-composed-primary.d.ts +0 -5
- package/dist/types/migrations/2020-05-06-150000-composed-primary.d.ts.map +0 -1
- package/dist/types/migrations/2020-06-01-103000-event-trigger-perf.d.ts +0 -5
- package/dist/types/migrations/2020-06-01-103000-event-trigger-perf.d.ts.map +0 -1
- package/dist/types/migrations/2021-03-23-110000-timestamp-fix.d.ts +0 -3
- package/dist/types/migrations/2021-03-23-110000-timestamp-fix.d.ts.map +0 -1
- package/dist/types/migrations/2021-05-07-155800-event-log-rework.d.ts +0 -5
- package/dist/types/migrations/2021-05-07-155800-event-log-rework.d.ts.map +0 -1
- package/dist/types/migrations/2021-05-19-1232000-event-log-fix-constraint.d.ts +0 -5
- package/dist/types/migrations/2021-05-19-1232000-event-log-fix-constraint.d.ts.map +0 -1
- package/dist/types/migrations/2021-12-21-155500-events-up.d.ts +0 -3
- package/dist/types/migrations/2021-12-21-155500-events-up.d.ts.map +0 -1
- package/dist/types/migrations/2022-02-08-132600-fn-search-path.d.ts +0 -3
- package/dist/types/migrations/2022-02-08-132600-fn-search-path.d.ts.map +0 -1
- package/dist/types/migrations/2022-02-08-140500-drop-deadcode.d.ts +0 -3
- package/dist/types/migrations/2022-02-08-140500-drop-deadcode.d.ts.map +0 -1
- package/dist/types/migrations/2022-02-08-144400-dynamic-stage-schema.d.ts +0 -3
- package/dist/types/migrations/2022-02-08-144400-dynamic-stage-schema.d.ts.map +0 -1
- package/dist/types/migrations/2022-10-03-110000-table-on-delete.d.ts +0 -4
- package/dist/types/migrations/2022-10-03-110000-table-on-delete.d.ts.map +0 -1
- package/dist/types/migrations/2023-09-11-174000-fix-on-delete.d.ts +0 -4
- package/dist/types/migrations/2023-09-11-174000-fix-on-delete.d.ts.map +0 -1
- package/dist/types/migrations/2023-10-19-173000-fix-unique.d.ts +0 -4
- package/dist/types/migrations/2023-10-19-173000-fix-unique.d.ts.map +0 -1
- package/dist/types/migrations/2023-10-24-140000-schema-nullable-checksum.d.ts +0 -3
- package/dist/types/migrations/2023-10-24-140000-schema-nullable-checksum.d.ts.map +0 -1
- package/dist/types/migrations/2024-06-28-150000-migrations-drop-sequence.d.ts +0 -3
- package/dist/types/migrations/2024-06-28-150000-migrations-drop-sequence.d.ts.map +0 -1
- package/dist/types/migrations/2024-06-28-153000-schema.d.ts +0 -3
- package/dist/types/migrations/2024-06-28-153000-schema.d.ts.map +0 -1
- package/dist/types/migrations/2024-06-28-153001-schema-init.d.ts +0 -4
- package/dist/types/migrations/2024-06-28-153001-schema-init.d.ts.map +0 -1
- package/dist/types/migrations/2024-07-29-150000-event-data-index.d.ts +0 -3
- package/dist/types/migrations/2024-07-29-150000-event-data-index.d.ts.map +0 -1
- package/dist/types/migrations/2025-03-14-110000-fix-missing-index.d.ts +0 -4
- package/dist/types/migrations/2025-03-14-110000-fix-missing-index.d.ts.map +0 -1
- package/dist/types/migrations/index.d.ts +0 -3
- package/dist/types/migrations/index.d.ts.map +0 -1
- package/dist/types/migrations/runner.d.ts +0 -17
- package/dist/types/migrations/runner.d.ts.map +0 -1
- package/dist/types/migrations/snapshot-factory.d.ts +0 -6
- package/dist/types/migrations/snapshot-factory.d.ts.map +0 -1
- package/dist/types/migrations/snapshot.d.ts +0 -3
- package/dist/types/migrations/snapshot.d.ts.map +0 -1
- package/dist/types/migrations/types.d.ts +0 -9
- package/dist/types/migrations/types.d.ts.map +0 -1
- package/dist/types/model/ProjectInitializer.d.ts +0 -15
- package/dist/types/model/ProjectInitializer.d.ts.map +0 -1
- package/dist/types/model/ProjectTruncateExecutor.d.ts +0 -7
- package/dist/types/model/ProjectTruncateExecutor.d.ts.map +0 -1
- package/dist/types/model/SchemaGetter.d.ts +0 -6
- package/dist/types/model/SchemaGetter.d.ts.map +0 -1
- package/dist/types/model/authorization/AuthorizationActions.d.ts +0 -27
- package/dist/types/model/authorization/AuthorizationActions.d.ts.map +0 -1
- package/dist/types/model/authorization/Identity.d.ts +0 -6
- package/dist/types/model/authorization/Identity.d.ts.map +0 -1
- package/dist/types/model/authorization/PermissionsFactory.d.ts +0 -5
- package/dist/types/model/authorization/PermissionsFactory.d.ts.map +0 -1
- package/dist/types/model/authorization/StagePermissionsFactory.d.ts +0 -9
- package/dist/types/model/authorization/StagePermissionsFactory.d.ts.map +0 -1
- package/dist/types/model/authorization/StageScope.d.ts +0 -10
- package/dist/types/model/authorization/StageScope.d.ts.map +0 -1
- package/dist/types/model/authorization/SwitchEvaluatorNode.d.ts +0 -8
- package/dist/types/model/authorization/SwitchEvaluatorNode.d.ts.map +0 -1
- package/dist/types/model/authorization/index.d.ts +0 -4
- package/dist/types/model/authorization/index.d.ts.map +0 -1
- package/dist/types/model/commands/Command.d.ts +0 -15
- package/dist/types/model/commands/Command.d.ts.map +0 -1
- package/dist/types/model/commands/CommandBus.d.ts +0 -11
- package/dist/types/model/commands/CommandBus.d.ts.map +0 -1
- package/dist/types/model/commands/events/TruncateEventsCommand.d.ts +0 -5
- package/dist/types/model/commands/events/TruncateEventsCommand.d.ts.map +0 -1
- package/dist/types/model/commands/events/index.d.ts +0 -2
- package/dist/types/model/commands/events/index.d.ts.map +0 -1
- package/dist/types/model/commands/index.d.ts +0 -6
- package/dist/types/model/commands/index.d.ts.map +0 -1
- package/dist/types/model/commands/migrations/DeleteMigrationCommand.d.ts +0 -7
- package/dist/types/model/commands/migrations/DeleteMigrationCommand.d.ts.map +0 -1
- package/dist/types/model/commands/migrations/ModifyMigrationCommand.d.ts +0 -9
- package/dist/types/model/commands/migrations/ModifyMigrationCommand.d.ts.map +0 -1
- package/dist/types/model/commands/migrations/SaveMigrationCommand.d.ts +0 -8
- package/dist/types/model/commands/migrations/SaveMigrationCommand.d.ts.map +0 -1
- package/dist/types/model/commands/migrations/index.d.ts +0 -3
- package/dist/types/model/commands/migrations/index.d.ts.map +0 -1
- package/dist/types/model/commands/schema/SaveSchemaCommand.d.ts +0 -8
- package/dist/types/model/commands/schema/SaveSchemaCommand.d.ts.map +0 -1
- package/dist/types/model/commands/stages/CreateStageCommand.d.ts +0 -8
- package/dist/types/model/commands/stages/CreateStageCommand.d.ts.map +0 -1
- package/dist/types/model/commands/stages/TruncateStagesCommand.d.ts +0 -5
- package/dist/types/model/commands/stages/TruncateStagesCommand.d.ts.map +0 -1
- package/dist/types/model/commands/stages/index.d.ts +0 -3
- package/dist/types/model/commands/stages/index.d.ts.map +0 -1
- package/dist/types/model/database/DatabaseContext.d.ts +0 -19
- package/dist/types/model/database/DatabaseContext.d.ts.map +0 -1
- package/dist/types/model/database/index.d.ts +0 -2
- package/dist/types/model/database/index.d.ts.map +0 -1
- package/dist/types/model/dependencies/content/ContentQueryExecutor.d.ts +0 -36
- package/dist/types/model/dependencies/content/ContentQueryExecutor.d.ts.map +0 -1
- package/dist/types/model/dependencies/index.d.ts +0 -3
- package/dist/types/model/dependencies/index.d.ts.map +0 -1
- package/dist/types/model/dependencies/tenant/IdentityFetcher.d.ts +0 -18
- package/dist/types/model/dependencies/tenant/IdentityFetcher.d.ts.map +0 -1
- package/dist/types/model/dependencies/tenant/index.d.ts +0 -2
- package/dist/types/model/dependencies/tenant/index.d.ts.map +0 -1
- package/dist/types/model/dtos/ExecutedMigration.d.ts +0 -13
- package/dist/types/model/dtos/ExecutedMigration.d.ts.map +0 -1
- package/dist/types/model/dtos/Stage.d.ts +0 -7
- package/dist/types/model/dtos/Stage.d.ts.map +0 -1
- package/dist/types/model/dtos/index.d.ts +0 -3
- package/dist/types/model/dtos/index.d.ts.map +0 -1
- package/dist/types/model/events/EventResponseBuilder.d.ts +0 -10
- package/dist/types/model/events/EventResponseBuilder.d.ts.map +0 -1
- package/dist/types/model/events/EventResponseHelper.d.ts +0 -22
- package/dist/types/model/events/EventResponseHelper.d.ts.map +0 -1
- package/dist/types/model/events/identityUtils.d.ts +0 -3
- package/dist/types/model/events/identityUtils.d.ts.map +0 -1
- package/dist/types/model/events/index.d.ts +0 -3
- package/dist/types/model/events/index.d.ts.map +0 -1
- package/dist/types/model/events/types.d.ts +0 -56
- package/dist/types/model/events/types.d.ts.map +0 -1
- package/dist/types/model/helpers/index.d.ts +0 -3
- package/dist/types/model/helpers/index.d.ts.map +0 -1
- package/dist/types/model/helpers/modelHelpers.d.ts +0 -3
- package/dist/types/model/helpers/modelHelpers.d.ts.map +0 -1
- package/dist/types/model/helpers/stageHelpers.d.ts +0 -3
- package/dist/types/model/helpers/stageHelpers.d.ts.map +0 -1
- package/dist/types/model/index.d.ts +0 -14
- package/dist/types/model/index.d.ts.map +0 -1
- package/dist/types/model/metadata/SchemaDatabaseMetadataResolverStore.d.ts +0 -16
- package/dist/types/model/metadata/SchemaDatabaseMetadataResolverStore.d.ts.map +0 -1
- package/dist/types/model/metadata/index.d.ts +0 -2
- package/dist/types/model/metadata/index.d.ts.map +0 -1
- package/dist/types/model/migrations/ExecutedMigrationsResolver.d.ts +0 -7
- package/dist/types/model/migrations/ExecutedMigrationsResolver.d.ts.map +0 -1
- package/dist/types/model/migrations/MigrationAlterer.d.ts +0 -18
- package/dist/types/model/migrations/MigrationAlterer.d.ts.map +0 -1
- package/dist/types/model/migrations/MigrationInput.d.ts +0 -18
- package/dist/types/model/migrations/MigrationInput.d.ts.map +0 -1
- package/dist/types/model/migrations/ProjectMigrator.d.ts +0 -63
- package/dist/types/model/migrations/ProjectMigrator.d.ts.map +0 -1
- package/dist/types/model/migrations/SchemaProvider.d.ts +0 -28
- package/dist/types/model/migrations/SchemaProvider.d.ts.map +0 -1
- package/dist/types/model/migrations/index.d.ts +0 -5
- package/dist/types/model/migrations/index.d.ts.map +0 -1
- package/dist/types/model/queries/events/EventQueryHelpers.d.ts +0 -14
- package/dist/types/model/queries/events/EventQueryHelpers.d.ts.map +0 -1
- package/dist/types/model/queries/events/EventsQuery.d.ts +0 -12
- package/dist/types/model/queries/events/EventsQuery.d.ts.map +0 -1
- package/dist/types/model/queries/events/LatestTransactionIdByStageQuery.d.ts +0 -7
- package/dist/types/model/queries/events/LatestTransactionIdByStageQuery.d.ts.map +0 -1
- package/dist/types/model/queries/events/OldValuesQuery.d.ts +0 -7
- package/dist/types/model/queries/events/OldValuesQuery.d.ts.map +0 -1
- package/dist/types/model/queries/events/index.d.ts +0 -4
- package/dist/types/model/queries/events/index.d.ts.map +0 -1
- package/dist/types/model/queries/index.d.ts +0 -5
- package/dist/types/model/queries/index.d.ts.map +0 -1
- package/dist/types/model/queries/migrations/ExecutedMigrationByVersionQuery.d.ts +0 -8
- package/dist/types/model/queries/migrations/ExecutedMigrationByVersionQuery.d.ts.map +0 -1
- package/dist/types/model/queries/migrations/ExecutedMigrationsQuery.d.ts +0 -8
- package/dist/types/model/queries/migrations/ExecutedMigrationsQuery.d.ts.map +0 -1
- package/dist/types/model/queries/migrations/ExecutedMigrationsQueryHelper.d.ts +0 -14
- package/dist/types/model/queries/migrations/ExecutedMigrationsQueryHelper.d.ts.map +0 -1
- package/dist/types/model/queries/migrations/index.d.ts +0 -4
- package/dist/types/model/queries/migrations/index.d.ts.map +0 -1
- package/dist/types/model/queries/schema/SchemaQuery.d.ts +0 -8
- package/dist/types/model/queries/schema/SchemaQuery.d.ts.map +0 -1
- package/dist/types/model/queries/schema/index.d.ts +0 -2
- package/dist/types/model/queries/schema/index.d.ts.map +0 -1
- package/dist/types/model/queries/stages/StageBySlugQuery.d.ts +0 -12
- package/dist/types/model/queries/stages/StageBySlugQuery.d.ts.map +0 -1
- package/dist/types/model/queries/stages/StageQueryFactory.d.ts +0 -4
- package/dist/types/model/queries/stages/StageQueryFactory.d.ts.map +0 -1
- package/dist/types/model/queries/stages/StagesQuery.d.ts +0 -7
- package/dist/types/model/queries/stages/StagesQuery.d.ts.map +0 -1
- package/dist/types/model/queries/stages/index.d.ts +0 -4
- package/dist/types/model/queries/stages/index.d.ts.map +0 -1
- package/dist/types/model/stages/StageCreator.d.ts +0 -8
- package/dist/types/model/stages/StageCreator.d.ts.map +0 -1
- package/dist/types/model/stages/index.d.ts +0 -2
- package/dist/types/model/stages/index.d.ts.map +0 -1
- package/dist/types/resolvers/Resolver.d.ts +0 -16
- package/dist/types/resolvers/Resolver.d.ts.map +0 -1
- package/dist/types/resolvers/ResolverFactory.d.ts +0 -20
- package/dist/types/resolvers/ResolverFactory.d.ts.map +0 -1
- package/dist/types/resolvers/SystemResolverContext.d.ts +0 -21
- package/dist/types/resolvers/SystemResolverContext.d.ts.map +0 -1
- package/dist/types/resolvers/index.d.ts +0 -6
- package/dist/types/resolvers/index.d.ts.map +0 -1
- package/dist/types/resolvers/mutation/MigrateMutationResolver.d.ts +0 -13
- package/dist/types/resolvers/mutation/MigrateMutationResolver.d.ts.map +0 -1
- package/dist/types/resolvers/mutation/MigrationAlterMutationResolver.d.ts +0 -12
- package/dist/types/resolvers/mutation/MigrationAlterMutationResolver.d.ts.map +0 -1
- package/dist/types/resolvers/mutation/TruncateMutationResolver.d.ts +0 -11
- package/dist/types/resolvers/mutation/TruncateMutationResolver.d.ts.map +0 -1
- package/dist/types/resolvers/mutation/index.d.ts +0 -4
- package/dist/types/resolvers/mutation/index.d.ts.map +0 -1
- package/dist/types/resolvers/query/EventsQueryResolver.d.ts +0 -11
- package/dist/types/resolvers/query/EventsQueryResolver.d.ts.map +0 -1
- package/dist/types/resolvers/query/ExecutedMigrationsQueryResolver.d.ts +0 -8
- package/dist/types/resolvers/query/ExecutedMigrationsQueryResolver.d.ts.map +0 -1
- package/dist/types/resolvers/query/SchemaQueryResolver.d.ts +0 -7
- package/dist/types/resolvers/query/SchemaQueryResolver.d.ts.map +0 -1
- package/dist/types/resolvers/query/StagesQueryResolver.d.ts +0 -8
- package/dist/types/resolvers/query/StagesQueryResolver.d.ts.map +0 -1
- package/dist/types/resolvers/query/index.d.ts +0 -4
- package/dist/types/resolvers/query/index.d.ts.map +0 -1
- package/dist/types/resolvers/types/EventOldValuesResolver.d.ts +0 -6
- package/dist/types/resolvers/types/EventOldValuesResolver.d.ts.map +0 -1
- package/dist/types/resolvers/types/OldValuesHelpers.d.ts +0 -3
- package/dist/types/resolvers/types/OldValuesHelpers.d.ts.map +0 -1
- package/dist/types/resolvers/types/index.d.ts +0 -2
- package/dist/types/resolvers/types/index.d.ts.map +0 -1
- package/dist/types/schema/dev.graphql.d.ts +0 -4
- package/dist/types/schema/dev.graphql.d.ts.map +0 -1
- package/dist/types/schema/index.d.ts +0 -6
- package/dist/types/schema/index.d.ts.map +0 -1
- package/dist/types/schema/system.graphql.d.ts +0 -4
- package/dist/types/schema/system.graphql.d.ts.map +0 -1
- package/dist/types/schema/types.d.ts +0 -566
- package/dist/types/schema/types.d.ts.map +0 -1
- package/dist/types/tsconfig.tsbuildinfo +0 -1
- package/dist/types/types.d.ts +0 -12
- package/dist/types/types.d.ts.map +0 -1
- package/dist/types/utils/MapSet.d.ts +0 -10
- package/dist/types/utils/MapSet.d.ts.map +0 -1
- package/dist/types/utils/Response.d.ts +0 -13
- package/dist/types/utils/Response.d.ts.map +0 -1
- package/dist/types/utils/assertNever.d.ts +0 -2
- package/dist/types/utils/assertNever.d.ts.map +0 -1
- package/dist/types/utils/batchQuery.d.ts +0 -3
- package/dist/types/utils/batchQuery.d.ts.map +0 -1
- package/dist/types/utils/exceptions.d.ts +0 -5
- package/dist/types/utils/exceptions.d.ts.map +0 -1
- package/dist/types/utils/index.d.ts +0 -8
- package/dist/types/utils/index.d.ts.map +0 -1
- package/dist/types/utils/providers.d.ts +0 -3
- package/dist/types/utils/providers.d.ts.map +0 -1
- package/dist/types/utils/set.d.ts +0 -3
- package/dist/types/utils/set.d.ts.map +0 -1
- package/dist/types/utils/tick.d.ts +0 -2
- package/dist/types/utils/tick.d.ts.map +0 -1
- package/dist/types/utils/tuple.d.ts +0 -2
- package/dist/types/utils/tuple.d.ts.map +0 -1
- package/dist/types/utils/uuid.d.ts +0 -4
- package/dist/types/utils/uuid.d.ts.map +0 -1
- package/tests/.eslintrc.cjs +0 -5
|
@@ -1,69 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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\n"],"names":["EventType"],"mappings":";;;AAAY,IAAA,8BAAAA,eAAL;AACNA,aAAA,QAAS,IAAA;AACTA,aAAA,QAAS,IAAA;AACTA,aAAA,QAAS,IAAA;AAHEA,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,EAAA;AAaxB;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,EAAA;AAaxB;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,EAAA;AAYxB;"}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":";;;AAGa,MAAA,oBAAoB,CAAC,UAA8C;AAC/E,QAAM,SAA+B,CAAC;AACtC,SAAO,OAAO,MAAM,QAAQ,EAAE,QAAQ,CAAU,WAAA;AAC/CA,gBAAA,wBAAwB,OAAO,QAAQ;AAAA,MACtC,wBAAwB,CAAC,EAAE,eAAe;AAClC,eAAA,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,MAAA;AAAA,IAAC,CAC9B;AAAA,EAAA,CACD;AACM,SAAA;AACR;;"}
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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":";AAGa,MAAA,oBAAoB,CAAC,UAA8C;AAC/E,QAAM,SAA+B,CAAC;AACtC,SAAO,OAAO,MAAM,QAAQ,EAAE,QAAQ,CAAU,WAAA;AAC/C,4BAAwB,OAAO,QAAQ;AAAA,MACtC,wBAAwB,CAAC,EAAE,eAAe;AAClC,eAAA,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,MAAA;AAAA,IAAC,CAC9B;AAAA,EAAA,CACD;AACM,SAAA;AACR;"}
|
|
@@ -1 +0,0 @@
|
|
|
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;;"}
|
|
@@ -1 +0,0 @@
|
|
|
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;"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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\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\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,EAIhD,YACS,UACA,IACP;AAFO,SAAA,WAAA;AACA,SAAA,KAAA;AAJD,kBAAA,MAAA,6BAA2C,IAAI,CAAA;AAAA,EAAA;AAAA,EAQvD,MAAa,YAAY,QAA2C;AACnE,UAAM,SAAS,KAAK,MAAM,IAAI,MAAM;AACpC,QAAI,QAAQ;AACJ,aAAA;AAAA,IAAA;AAGF,UAAA,WAAW,MAAM,KAAK,SAAS,gBAAgB,KAAK,GAAG,QAAQ,MAAM;AACtE,SAAA,MAAM,IAAI,QAAQ,QAAQ;AACxB,WAAA;AAAA,EAAA;AAAA,EAGD,WAAW,QAAsB;AAClC,SAAA,MAAM,OAAO,MAAM;AAAA,EAAA;AAE1B;AAGO,MAAM,+CAA+C;AAAA,EAC3D,YACS,UACP;AADO,SAAA,WAAA;AAAA,EAAA;AAAA,EAIF,OAAO,IAAqB;AAClC,WAAO,IAAI,oCAAoC,KAAK,UAAU,EAAE;AAAA,EAAA;AAElE;;;"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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\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\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,EAIhD,YACS,UACA,IACP;AAFO,SAAA,WAAA;AACA,SAAA,KAAA;AAJD,kBAAA,MAAA,6BAA2C,IAAI,CAAA;AAAA,EAAA;AAAA,EAQvD,MAAa,YAAY,QAA2C;AACnE,UAAM,SAAS,KAAK,MAAM,IAAI,MAAM;AACpC,QAAI,QAAQ;AACJ,aAAA;AAAA,IAAA;AAGF,UAAA,WAAW,MAAM,KAAK,SAAS,gBAAgB,KAAK,GAAG,QAAQ,MAAM;AACtE,SAAA,MAAM,IAAI,QAAQ,QAAQ;AACxB,WAAA;AAAA,EAAA;AAAA,EAGD,WAAW,QAAsB;AAClC,SAAA,MAAM,OAAO,MAAM;AAAA,EAAA;AAE1B;AAGO,MAAM,+CAA+C;AAAA,EAC3D,YACS,UACP;AADO,SAAA,WAAA;AAAA,EAAA;AAAA,EAIF,OAAO,IAAqB;AAClC,WAAO,IAAI,oCAAoC,KAAK,UAAU,EAAE;AAAA,EAAA;AAElE;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,wBAAA,wBAAwB,YAAY,CAAC;AAAA,EAAA;AAAA,EAGvE,MAAM,sBAAsB,IAAqB,SAAoD;AACpG,WAAO,GAAG,aAAa,MAAM,IAAIC,gCAAA,gCAAgC,OAAO,CAAC;AAAA,EAAA;AAE3E;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAA;AAAA,EAGvE,MAAM,sBAAsB,IAAqB,SAAoD;AACpG,WAAO,GAAG,aAAa,MAAM,IAAI,gCAAgC,OAAO,CAAC;AAAA,EAAA;AAE3E;"}
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAA;AAAA,EAIlB,MAAa,gBACZ,IACA,SACyD;AACzD,WAAO,MAAM,GAAG,YAAY,OAAMA,QAAM;AACjC,YAAA,SAAS,MAAMA,IAAG,WAAW,QAAQ,IAAIC,uBAAAA,uBAAuB,OAAO,CAAC;AAC9E,UAAI,CAAC,QAAQ;AACND,cAAAA,IAAG,OAAO,WAAW,SAAS;AACpC,eAAO,IAAIE,SAAA,cAAc,YAAmC,aAAa,OAAO,gBAAgB;AAAA,MAAA;AAE3F,YAAA,KAAK,cAAcF,GAAE;AACpB,aAAA,IAAIG,SAAAA,WAAW,MAAS;AAAA,IAAA,CAC/B;AAAA,EAAA;AAAA,EAGF,MAAa,gBACZ,IACA,SACA,WACyD;AACzD,WAAO,MAAM,GAAG,YAAY,OAAMH,QAAM;AACjC,YAAA,SAAS,MAAMA,IAAG,WAAW,QAAQ,IAAII,uBAAA,uBAAuB,SAAS,SAAS,CAAC;AACzF,UAAI,CAAC,QAAQ;AACNJ,cAAAA,IAAG,OAAO,WAAW,SAAS;AACpC,eAAO,IAAIE,SAAA,cAAc,YAAmC,aAAa,OAAO,gBAAgB;AAAA,MAAA;AAE3F,YAAA,KAAK,cAAcF,GAAE;AACpB,aAAA,IAAIG,SAAAA,WAAW,MAAS;AAAA,IAAA,CAC/B;AAAA,EAAA;AAAA,EAGF,MAAc,cAAc,IAAoC;AAC/D,UAAM,iBAAiB,MAAM,KAAK,eAAe,0BAA0B,EAAE;AAC7E,UAAM,GAAG,WAAW,QAAQ,IAAIE,kBAAA,kBAAkB,cAAc,CAAC;AAAA,EAAA;AAEnE;AAEY,IAAA,6CAAAC,8BAAL;AACNA,4BAAA,UAAW,IAAA;AADAA,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;AAIA,IAAA,6CAAAC,8BAAL;AACNA,4BAAA,UAAW,IAAA;AADAA,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;;;;"}
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,EAAA;AAAA,EAIlB,MAAa,gBACZ,IACA,SACyD;AACzD,WAAO,MAAM,GAAG,YAAY,OAAMA,QAAM;AACjC,YAAA,SAAS,MAAMA,IAAG,WAAW,QAAQ,IAAI,uBAAuB,OAAO,CAAC;AAC9E,UAAI,CAAC,QAAQ;AACNA,cAAAA,IAAG,OAAO,WAAW,SAAS;AACpC,eAAO,IAAI,cAAc,YAAmC,aAAa,OAAO,gBAAgB;AAAA,MAAA;AAE3F,YAAA,KAAK,cAAcA,GAAE;AACpB,aAAA,IAAI,WAAW,MAAS;AAAA,IAAA,CAC/B;AAAA,EAAA;AAAA,EAGF,MAAa,gBACZ,IACA,SACA,WACyD;AACzD,WAAO,MAAM,GAAG,YAAY,OAAMA,QAAM;AACjC,YAAA,SAAS,MAAMA,IAAG,WAAW,QAAQ,IAAI,uBAAuB,SAAS,SAAS,CAAC;AACzF,UAAI,CAAC,QAAQ;AACNA,cAAAA,IAAG,OAAO,WAAW,SAAS;AACpC,eAAO,IAAI,cAAc,YAAmC,aAAa,OAAO,gBAAgB;AAAA,MAAA;AAE3F,YAAA,KAAK,cAAcA,GAAE;AACpB,aAAA,IAAI,WAAW,MAAS;AAAA,IAAA,CAC/B;AAAA,EAAA;AAAA,EAGF,MAAc,cAAc,IAAoC;AAC/D,UAAM,iBAAiB,MAAM,KAAK,eAAe,0BAA0B,EAAE;AAC7E,UAAM,GAAG,WAAW,QAAQ,IAAI,kBAAkB,cAAc,CAAC;AAAA,EAAA;AAEnE;AAEY,IAAA,6CAAAC,8BAAL;AACNA,4BAAA,UAAW,IAAA;AADAA,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;AAIA,IAAA,6CAAAC,8BAAL;AACNA,4BAAA,UAAW,IAAA;AADAA,SAAAA;AAAA,GAAA,4BAAA,CAAA,CAAA;"}
|