@contember/engine-system-api 2.1.0-alpha.3 → 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.
Files changed (1088) hide show
  1. package/graphql.codegen.yml +1 -1
  2. package/package.json +25 -20
  3. package/src/SystemContainer.ts +61 -56
  4. package/src/bin/runMigrations.ts +1 -5
  5. package/src/index.ts +5 -5
  6. package/src/migrations/2018-08-04-102200-init.ts +1 -1
  7. package/src/migrations/2018-08-05-130501-trigger-event-function.ts +1 -1
  8. package/src/migrations/2019-01-14-143432-event-trx-id.ts +1 -1
  9. package/src/migrations/2019-02-04-154500-event-rebase.ts +1 -1
  10. package/src/migrations/2019-03-18-104147-event-run-migration-struct.ts +1 -1
  11. package/src/migrations/2019-07-29-103000-trigger-event-function-fix.ts +1 -1
  12. package/src/migrations/2019-11-28-100000-missing-setting-fallback.ts +1 -1
  13. package/src/migrations/2020-03-27-130000-project-migrations.ts +1 -1
  14. package/src/migrations/2020-05-06-150000-composed-primary.ts +1 -1
  15. package/src/migrations/2020-06-01-103000-event-trigger-perf.ts +1 -1
  16. package/src/migrations/2021-03-23-110000-timestamp-fix.ts +1 -1
  17. package/src/migrations/2021-05-07-155800-event-log-rework.ts +1 -1
  18. package/src/migrations/2021-05-19-1232000-event-log-fix-constraint.ts +1 -1
  19. package/src/migrations/2021-12-21-155500-events-up.ts +1 -1
  20. package/src/migrations/2022-02-08-132600-fn-search-path.ts +1 -1
  21. package/src/migrations/2022-02-08-140500-drop-deadcode.ts +1 -1
  22. package/src/migrations/2022-02-08-144400-dynamic-stage-schema.ts +1 -1
  23. package/src/migrations/2022-10-03-110000-table-on-delete.ts +11 -7
  24. package/src/migrations/2023-09-11-174000-fix-on-delete.ts +14 -8
  25. package/src/migrations/2023-10-19-173000-fix-unique.ts +5 -4
  26. package/src/migrations/2023-10-24-140000-schema-nullable-checksum.ts +1 -1
  27. package/src/migrations/2024-06-28-150000-migrations-drop-sequence.ts +1 -1
  28. package/src/migrations/2024-06-28-153000-schema.ts +1 -1
  29. package/src/migrations/2024-06-28-153001-schema-init.ts +1 -2
  30. package/src/migrations/2024-07-29-150000-event-data-index.ts +1 -1
  31. package/src/migrations/2025-03-14-110000-fix-missing-index.ts +5 -3
  32. package/src/migrations/runner.ts +12 -12
  33. package/src/migrations/snapshot-factory.ts +0 -1
  34. package/src/model/ProjectInitializer.ts +19 -14
  35. package/src/model/commands/Command.ts +1 -1
  36. package/src/model/commands/CommandBus.ts +1 -3
  37. package/src/model/commands/migrations/SaveMigrationCommand.ts +1 -2
  38. package/src/model/database/DatabaseContext.ts +1 -2
  39. package/src/model/dtos/ExecutedMigration.ts +0 -1
  40. package/src/model/dtos/Stage.ts +0 -1
  41. package/src/model/events/types.ts +0 -1
  42. package/src/model/metadata/SchemaDatabaseMetadataResolverStore.ts +0 -2
  43. package/src/model/migrations/ProjectMigrator.ts +37 -21
  44. package/src/model/migrations/SchemaProvider.ts +5 -6
  45. package/src/model/queries/events/EventsQuery.ts +3 -7
  46. package/src/model/queries/events/OldValuesQuery.ts +4 -4
  47. package/src/model/queries/schema/SchemaQuery.ts +1 -3
  48. package/src/model/stages/StageCreator.ts +0 -2
  49. package/src/resolvers/ResolverFactory.ts +3 -4
  50. package/src/resolvers/SystemResolverContext.ts +3 -1
  51. package/src/resolvers/mutation/MigrateMutationResolver.ts +38 -37
  52. package/src/resolvers/mutation/MigrationAlterMutationResolver.ts +0 -1
  53. package/src/resolvers/query/EventsQueryResolver.ts +8 -6
  54. package/src/schema/types.ts +69 -43
  55. package/tests/cases/migrations/2020-05-06-150000-composed-primary.test.ts +10 -9
  56. package/tests/cases/migrations/2020-06-01-103000-event-trigger-perf.test.ts +10 -10
  57. package/tests/cases/migrations/2022-10-03-110000-table-on-delete.test.ts +32 -34
  58. package/tests/cases/migrations/2023-09-11-174000-fix-on-delete.test.ts +65 -67
  59. package/tests/cases/migrations/2023-10-19-173000-fix-unique.test.ts +23 -25
  60. package/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.ts +18 -19
  61. package/tests/cases/unit/eventsQuery.test.ts +22 -15
  62. package/dist/development/index.cjs +0 -73
  63. package/dist/development/index.cjs.map +0 -1
  64. package/dist/development/index.js +0 -70
  65. package/dist/development/index.js.map +0 -1
  66. package/dist/development/src/SystemContainer.cjs +0 -49
  67. package/dist/development/src/SystemContainer.cjs.map +0 -1
  68. package/dist/development/src/SystemContainer.js +0 -49
  69. package/dist/development/src/SystemContainer.js.map +0 -1
  70. package/dist/development/src/migrations/2018-08-04-102200-init.cjs +0 -36
  71. package/dist/development/src/migrations/2018-08-04-102200-init.cjs.map +0 -1
  72. package/dist/development/src/migrations/2018-08-04-102200-init.js +0 -37
  73. package/dist/development/src/migrations/2018-08-04-102200-init.js.map +0 -1
  74. package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.cjs +0 -98
  75. package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.cjs.map +0 -1
  76. package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.js +0 -99
  77. package/dist/development/src/migrations/2018-08-05-130501-trigger-event-function.js.map +0 -1
  78. package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.cjs +0 -16
  79. package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.cjs.map +0 -1
  80. package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.js +0 -17
  81. package/dist/development/src/migrations/2019-01-14-143432-event-trx-id.js.map +0 -1
  82. package/dist/development/src/migrations/2019-02-04-154500-event-rebase.cjs +0 -58
  83. package/dist/development/src/migrations/2019-02-04-154500-event-rebase.cjs.map +0 -1
  84. package/dist/development/src/migrations/2019-02-04-154500-event-rebase.js +0 -59
  85. package/dist/development/src/migrations/2019-02-04-154500-event-rebase.js.map +0 -1
  86. package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs +0 -11
  87. package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs.map +0 -1
  88. package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.js +0 -12
  89. package/dist/development/src/migrations/2019-03-18-104147-event-run-migration-struct.js.map +0 -1
  90. package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs +0 -65
  91. package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs.map +0 -1
  92. package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.js +0 -66
  93. package/dist/development/src/migrations/2019-07-29-103000-trigger-event-function-fix.js.map +0 -1
  94. package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs +0 -20
  95. package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs.map +0 -1
  96. package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.js +0 -21
  97. package/dist/development/src/migrations/2019-11-28-100000-missing-setting-fallback.js.map +0 -1
  98. package/dist/development/src/migrations/2020-03-27-130000-project-migrations.cjs +0 -21
  99. package/dist/development/src/migrations/2020-03-27-130000-project-migrations.cjs.map +0 -1
  100. package/dist/development/src/migrations/2020-03-27-130000-project-migrations.js +0 -22
  101. package/dist/development/src/migrations/2020-03-27-130000-project-migrations.js.map +0 -1
  102. package/dist/development/src/migrations/2020-05-06-150000-composed-primary.cjs +0 -188
  103. package/dist/development/src/migrations/2020-05-06-150000-composed-primary.cjs.map +0 -1
  104. package/dist/development/src/migrations/2020-05-06-150000-composed-primary.js +0 -189
  105. package/dist/development/src/migrations/2020-05-06-150000-composed-primary.js.map +0 -1
  106. package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.cjs +0 -128
  107. package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.cjs.map +0 -1
  108. package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.js +0 -129
  109. package/dist/development/src/migrations/2020-06-01-103000-event-trigger-perf.js.map +0 -1
  110. package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.cjs +0 -14
  111. package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.cjs.map +0 -1
  112. package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.js +0 -15
  113. package/dist/development/src/migrations/2021-03-23-110000-timestamp-fix.js.map +0 -1
  114. package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.cjs +0 -286
  115. package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.cjs.map +0 -1
  116. package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.js +0 -287
  117. package/dist/development/src/migrations/2021-05-07-155800-event-log-rework.js.map +0 -1
  118. package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs +0 -44
  119. package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs.map +0 -1
  120. package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js +0 -45
  121. package/dist/development/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js.map +0 -1
  122. package/dist/development/src/migrations/2021-12-21-155500-events-up.cjs +0 -14
  123. package/dist/development/src/migrations/2021-12-21-155500-events-up.cjs.map +0 -1
  124. package/dist/development/src/migrations/2021-12-21-155500-events-up.js +0 -15
  125. package/dist/development/src/migrations/2021-12-21-155500-events-up.js.map +0 -1
  126. package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.cjs +0 -15
  127. package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.cjs.map +0 -1
  128. package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.js +0 -16
  129. package/dist/development/src/migrations/2022-02-08-132600-fn-search-path.js.map +0 -1
  130. package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.cjs +0 -10
  131. package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.cjs.map +0 -1
  132. package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.js +0 -11
  133. package/dist/development/src/migrations/2022-02-08-140500-drop-deadcode.js.map +0 -1
  134. package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs +0 -49
  135. package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs.map +0 -1
  136. package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.js +0 -50
  137. package/dist/development/src/migrations/2022-02-08-144400-dynamic-stage-schema.js.map +0 -1
  138. package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.cjs +0 -59
  139. package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.cjs.map +0 -1
  140. package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.js +0 -60
  141. package/dist/development/src/migrations/2022-10-03-110000-table-on-delete.js.map +0 -1
  142. package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.cjs +0 -65
  143. package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.cjs.map +0 -1
  144. package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.js +0 -66
  145. package/dist/development/src/migrations/2023-09-11-174000-fix-on-delete.js.map +0 -1
  146. package/dist/development/src/migrations/2023-10-19-173000-fix-unique.cjs +0 -43
  147. package/dist/development/src/migrations/2023-10-19-173000-fix-unique.cjs.map +0 -1
  148. package/dist/development/src/migrations/2023-10-19-173000-fix-unique.js +0 -44
  149. package/dist/development/src/migrations/2023-10-19-173000-fix-unique.js.map +0 -1
  150. package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs +0 -11
  151. package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs.map +0 -1
  152. package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.js +0 -12
  153. package/dist/development/src/migrations/2023-10-24-140000-schema-nullable-checksum.js.map +0 -1
  154. package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs +0 -15
  155. package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs.map +0 -1
  156. package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.js +0 -16
  157. package/dist/development/src/migrations/2024-06-28-150000-migrations-drop-sequence.js.map +0 -1
  158. package/dist/development/src/migrations/2024-06-28-153000-schema.cjs +0 -18
  159. package/dist/development/src/migrations/2024-06-28-153000-schema.cjs.map +0 -1
  160. package/dist/development/src/migrations/2024-06-28-153000-schema.js +0 -19
  161. package/dist/development/src/migrations/2024-06-28-153000-schema.js.map +0 -1
  162. package/dist/development/src/migrations/2024-06-28-153001-schema-init.cjs +0 -12
  163. package/dist/development/src/migrations/2024-06-28-153001-schema-init.cjs.map +0 -1
  164. package/dist/development/src/migrations/2024-06-28-153001-schema-init.js +0 -13
  165. package/dist/development/src/migrations/2024-06-28-153001-schema-init.js.map +0 -1
  166. package/dist/development/src/migrations/2024-07-29-150000-event-data-index.cjs +0 -11
  167. package/dist/development/src/migrations/2024-07-29-150000-event-data-index.cjs.map +0 -1
  168. package/dist/development/src/migrations/2024-07-29-150000-event-data-index.js +0 -12
  169. package/dist/development/src/migrations/2024-07-29-150000-event-data-index.js.map +0 -1
  170. package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.cjs +0 -60
  171. package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.cjs.map +0 -1
  172. package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.js +0 -61
  173. package/dist/development/src/migrations/2025-03-14-110000-fix-missing-index.js.map +0 -1
  174. package/dist/development/src/migrations/runner.cjs +0 -106
  175. package/dist/development/src/migrations/runner.cjs.map +0 -1
  176. package/dist/development/src/migrations/runner.js +0 -106
  177. package/dist/development/src/migrations/runner.js.map +0 -1
  178. package/dist/development/src/migrations/snapshot-factory.cjs +0 -44
  179. package/dist/development/src/migrations/snapshot-factory.cjs.map +0 -1
  180. package/dist/development/src/migrations/snapshot-factory.js +0 -44
  181. package/dist/development/src/migrations/snapshot-factory.js.map +0 -1
  182. package/dist/development/src/migrations/snapshot.cjs +0 -184
  183. package/dist/development/src/migrations/snapshot.cjs.map +0 -1
  184. package/dist/development/src/migrations/snapshot.js +0 -185
  185. package/dist/development/src/migrations/snapshot.js.map +0 -1
  186. package/dist/development/src/model/ProjectInitializer.cjs +0 -41
  187. package/dist/development/src/model/ProjectInitializer.cjs.map +0 -1
  188. package/dist/development/src/model/ProjectInitializer.js +0 -41
  189. package/dist/development/src/model/ProjectInitializer.js.map +0 -1
  190. package/dist/development/src/model/ProjectTruncateExecutor.cjs +0 -31
  191. package/dist/development/src/model/ProjectTruncateExecutor.cjs.map +0 -1
  192. package/dist/development/src/model/ProjectTruncateExecutor.js +0 -31
  193. package/dist/development/src/model/ProjectTruncateExecutor.js.map +0 -1
  194. package/dist/development/src/model/authorization/AuthorizationActions.cjs +0 -14
  195. package/dist/development/src/model/authorization/AuthorizationActions.cjs.map +0 -1
  196. package/dist/development/src/model/authorization/AuthorizationActions.js +0 -15
  197. package/dist/development/src/model/authorization/AuthorizationActions.js.map +0 -1
  198. package/dist/development/src/model/authorization/Identity.cjs +0 -10
  199. package/dist/development/src/model/authorization/Identity.cjs.map +0 -1
  200. package/dist/development/src/model/authorization/Identity.js +0 -10
  201. package/dist/development/src/model/authorization/Identity.js.map +0 -1
  202. package/dist/development/src/model/authorization/PermissionsFactory.cjs +0 -17
  203. package/dist/development/src/model/authorization/PermissionsFactory.cjs.map +0 -1
  204. package/dist/development/src/model/authorization/PermissionsFactory.js +0 -17
  205. package/dist/development/src/model/authorization/PermissionsFactory.js.map +0 -1
  206. package/dist/development/src/model/authorization/StagePermissionsFactory.cjs +0 -56
  207. package/dist/development/src/model/authorization/StagePermissionsFactory.cjs.map +0 -1
  208. package/dist/development/src/model/authorization/StagePermissionsFactory.js +0 -56
  209. package/dist/development/src/model/authorization/StagePermissionsFactory.js.map +0 -1
  210. package/dist/development/src/model/authorization/StageScope.cjs +0 -19
  211. package/dist/development/src/model/authorization/StageScope.cjs.map +0 -1
  212. package/dist/development/src/model/authorization/StageScope.js +0 -19
  213. package/dist/development/src/model/authorization/StageScope.js.map +0 -1
  214. package/dist/development/src/model/authorization/SwitchEvaluatorNode.cjs +0 -14
  215. package/dist/development/src/model/authorization/SwitchEvaluatorNode.cjs.map +0 -1
  216. package/dist/development/src/model/authorization/SwitchEvaluatorNode.js +0 -14
  217. package/dist/development/src/model/authorization/SwitchEvaluatorNode.js.map +0 -1
  218. package/dist/development/src/model/commands/CommandBus.cjs +0 -18
  219. package/dist/development/src/model/commands/CommandBus.cjs.map +0 -1
  220. package/dist/development/src/model/commands/CommandBus.js +0 -18
  221. package/dist/development/src/model/commands/CommandBus.js.map +0 -1
  222. package/dist/development/src/model/commands/events/TruncateEventsCommand.cjs +0 -10
  223. package/dist/development/src/model/commands/events/TruncateEventsCommand.cjs.map +0 -1
  224. package/dist/development/src/model/commands/events/TruncateEventsCommand.js +0 -10
  225. package/dist/development/src/model/commands/events/TruncateEventsCommand.js.map +0 -1
  226. package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.cjs +0 -16
  227. package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.cjs.map +0 -1
  228. package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.js +0 -16
  229. package/dist/development/src/model/commands/migrations/DeleteMigrationCommand.js.map +0 -1
  230. package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.cjs +0 -38
  231. package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.cjs.map +0 -1
  232. package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.js +0 -38
  233. package/dist/development/src/model/commands/migrations/ModifyMigrationCommand.js.map +0 -1
  234. package/dist/development/src/model/commands/migrations/SaveMigrationCommand.cjs +0 -28
  235. package/dist/development/src/model/commands/migrations/SaveMigrationCommand.cjs.map +0 -1
  236. package/dist/development/src/model/commands/migrations/SaveMigrationCommand.js +0 -28
  237. package/dist/development/src/model/commands/migrations/SaveMigrationCommand.js.map +0 -1
  238. package/dist/development/src/model/commands/schema/SaveSchemaCommand.cjs +0 -28
  239. package/dist/development/src/model/commands/schema/SaveSchemaCommand.cjs.map +0 -1
  240. package/dist/development/src/model/commands/schema/SaveSchemaCommand.js +0 -28
  241. package/dist/development/src/model/commands/schema/SaveSchemaCommand.js.map +0 -1
  242. package/dist/development/src/model/commands/stages/CreateStageCommand.cjs +0 -22
  243. package/dist/development/src/model/commands/stages/CreateStageCommand.cjs.map +0 -1
  244. package/dist/development/src/model/commands/stages/CreateStageCommand.js +0 -22
  245. package/dist/development/src/model/commands/stages/CreateStageCommand.js.map +0 -1
  246. package/dist/development/src/model/database/DatabaseContext.cjs +0 -29
  247. package/dist/development/src/model/database/DatabaseContext.cjs.map +0 -1
  248. package/dist/development/src/model/database/DatabaseContext.js +0 -29
  249. package/dist/development/src/model/database/DatabaseContext.js.map +0 -1
  250. package/dist/development/src/model/dtos/ExecutedMigration.cjs +0 -21
  251. package/dist/development/src/model/dtos/ExecutedMigration.cjs.map +0 -1
  252. package/dist/development/src/model/dtos/ExecutedMigration.js +0 -21
  253. package/dist/development/src/model/dtos/ExecutedMigration.js.map +0 -1
  254. package/dist/development/src/model/events/EventResponseBuilder.cjs +0 -59
  255. package/dist/development/src/model/events/EventResponseBuilder.cjs.map +0 -1
  256. package/dist/development/src/model/events/EventResponseBuilder.js +0 -59
  257. package/dist/development/src/model/events/EventResponseBuilder.js.map +0 -1
  258. package/dist/development/src/model/events/EventResponseHelper.cjs +0 -25
  259. package/dist/development/src/model/events/EventResponseHelper.cjs.map +0 -1
  260. package/dist/development/src/model/events/EventResponseHelper.js +0 -25
  261. package/dist/development/src/model/events/EventResponseHelper.js.map +0 -1
  262. package/dist/development/src/model/events/identityUtils.cjs +0 -16
  263. package/dist/development/src/model/events/identityUtils.cjs.map +0 -1
  264. package/dist/development/src/model/events/identityUtils.js +0 -16
  265. package/dist/development/src/model/events/identityUtils.js.map +0 -1
  266. package/dist/development/src/model/events/types.cjs +0 -69
  267. package/dist/development/src/model/events/types.cjs.map +0 -1
  268. package/dist/development/src/model/events/types.js +0 -69
  269. package/dist/development/src/model/events/types.js.map +0 -1
  270. package/dist/development/src/model/helpers/modelHelpers.cjs +0 -28
  271. package/dist/development/src/model/helpers/modelHelpers.cjs.map +0 -1
  272. package/dist/development/src/model/helpers/modelHelpers.js +0 -28
  273. package/dist/development/src/model/helpers/modelHelpers.js.map +0 -1
  274. package/dist/development/src/model/helpers/stageHelpers.cjs +0 -7
  275. package/dist/development/src/model/helpers/stageHelpers.cjs.map +0 -1
  276. package/dist/development/src/model/helpers/stageHelpers.js +0 -7
  277. package/dist/development/src/model/helpers/stageHelpers.js.map +0 -1
  278. package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs +0 -35
  279. package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs.map +0 -1
  280. package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.js +0 -35
  281. package/dist/development/src/model/metadata/SchemaDatabaseMetadataResolverStore.js.map +0 -1
  282. package/dist/development/src/model/migrations/ExecutedMigrationsResolver.cjs +0 -17
  283. package/dist/development/src/model/migrations/ExecutedMigrationsResolver.cjs.map +0 -1
  284. package/dist/development/src/model/migrations/ExecutedMigrationsResolver.js +0 -17
  285. package/dist/development/src/model/migrations/ExecutedMigrationsResolver.js.map +0 -1
  286. package/dist/development/src/model/migrations/MigrationAlterer.cjs +0 -52
  287. package/dist/development/src/model/migrations/MigrationAlterer.cjs.map +0 -1
  288. package/dist/development/src/model/migrations/MigrationAlterer.js +0 -52
  289. package/dist/development/src/model/migrations/MigrationAlterer.js.map +0 -1
  290. package/dist/development/src/model/migrations/ProjectMigrator.cjs +0 -233
  291. package/dist/development/src/model/migrations/ProjectMigrator.cjs.map +0 -1
  292. package/dist/development/src/model/migrations/ProjectMigrator.js +0 -233
  293. package/dist/development/src/model/migrations/ProjectMigrator.js.map +0 -1
  294. package/dist/development/src/model/migrations/SchemaProvider.cjs +0 -58
  295. package/dist/development/src/model/migrations/SchemaProvider.cjs.map +0 -1
  296. package/dist/development/src/model/migrations/SchemaProvider.js +0 -58
  297. package/dist/development/src/model/migrations/SchemaProvider.js.map +0 -1
  298. package/dist/development/src/model/queries/events/EventQueryHelpers.cjs +0 -48
  299. package/dist/development/src/model/queries/events/EventQueryHelpers.cjs.map +0 -1
  300. package/dist/development/src/model/queries/events/EventQueryHelpers.js +0 -48
  301. package/dist/development/src/model/queries/events/EventQueryHelpers.js.map +0 -1
  302. package/dist/development/src/model/queries/events/EventsQuery.cjs +0 -70
  303. package/dist/development/src/model/queries/events/EventsQuery.cjs.map +0 -1
  304. package/dist/development/src/model/queries/events/EventsQuery.js +0 -70
  305. package/dist/development/src/model/queries/events/EventsQuery.js.map +0 -1
  306. package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.cjs +0 -15
  307. package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.cjs.map +0 -1
  308. package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.js +0 -15
  309. package/dist/development/src/model/queries/events/LatestTransactionIdByStageQuery.js.map +0 -1
  310. package/dist/development/src/model/queries/events/OldValuesQuery.cjs +0 -19
  311. package/dist/development/src/model/queries/events/OldValuesQuery.cjs.map +0 -1
  312. package/dist/development/src/model/queries/events/OldValuesQuery.js +0 -19
  313. package/dist/development/src/model/queries/events/OldValuesQuery.js.map +0 -1
  314. package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs +0 -18
  315. package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs.map +0 -1
  316. package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js +0 -18
  317. package/dist/development/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js.map +0 -1
  318. package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.cjs +0 -19
  319. package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.cjs.map +0 -1
  320. package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.js +0 -19
  321. package/dist/development/src/model/queries/migrations/ExecutedMigrationsQuery.js.map +0 -1
  322. package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs +0 -18
  323. package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs.map +0 -1
  324. package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js +0 -18
  325. package/dist/development/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js.map +0 -1
  326. package/dist/development/src/model/queries/schema/SchemaQuery.cjs +0 -34
  327. package/dist/development/src/model/queries/schema/SchemaQuery.cjs.map +0 -1
  328. package/dist/development/src/model/queries/schema/SchemaQuery.js +0 -34
  329. package/dist/development/src/model/queries/schema/SchemaQuery.js.map +0 -1
  330. package/dist/development/src/model/queries/stages/StageBySlugQuery.cjs +0 -17
  331. package/dist/development/src/model/queries/stages/StageBySlugQuery.cjs.map +0 -1
  332. package/dist/development/src/model/queries/stages/StageBySlugQuery.js +0 -17
  333. package/dist/development/src/model/queries/stages/StageBySlugQuery.js.map +0 -1
  334. package/dist/development/src/model/queries/stages/StageQueryFactory.cjs +0 -8
  335. package/dist/development/src/model/queries/stages/StageQueryFactory.cjs.map +0 -1
  336. package/dist/development/src/model/queries/stages/StageQueryFactory.js +0 -8
  337. package/dist/development/src/model/queries/stages/StageQueryFactory.js.map +0 -1
  338. package/dist/development/src/model/queries/stages/StagesQuery.cjs +0 -12
  339. package/dist/development/src/model/queries/stages/StagesQuery.cjs.map +0 -1
  340. package/dist/development/src/model/queries/stages/StagesQuery.js +0 -12
  341. package/dist/development/src/model/queries/stages/StagesQuery.js.map +0 -1
  342. package/dist/development/src/model/stages/StageCreator.cjs +0 -22
  343. package/dist/development/src/model/stages/StageCreator.cjs.map +0 -1
  344. package/dist/development/src/model/stages/StageCreator.js +0 -22
  345. package/dist/development/src/model/stages/StageCreator.js.map +0 -1
  346. package/dist/development/src/resolvers/ResolverFactory.cjs +0 -92
  347. package/dist/development/src/resolvers/ResolverFactory.cjs.map +0 -1
  348. package/dist/development/src/resolvers/ResolverFactory.js +0 -92
  349. package/dist/development/src/resolvers/ResolverFactory.js.map +0 -1
  350. package/dist/development/src/resolvers/SystemResolverContext.cjs +0 -37
  351. package/dist/development/src/resolvers/SystemResolverContext.cjs.map +0 -1
  352. package/dist/development/src/resolvers/SystemResolverContext.js +0 -37
  353. package/dist/development/src/resolvers/SystemResolverContext.js.map +0 -1
  354. package/dist/development/src/resolvers/mutation/MigrateMutationResolver.cjs +0 -113
  355. package/dist/development/src/resolvers/mutation/MigrateMutationResolver.cjs.map +0 -1
  356. package/dist/development/src/resolvers/mutation/MigrateMutationResolver.js +0 -113
  357. package/dist/development/src/resolvers/mutation/MigrateMutationResolver.js.map +0 -1
  358. package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.cjs +0 -48
  359. package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.cjs.map +0 -1
  360. package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.js +0 -48
  361. package/dist/development/src/resolvers/mutation/MigrationAlterMutationResolver.js.map +0 -1
  362. package/dist/development/src/resolvers/mutation/TruncateMutationResolver.cjs +0 -15
  363. package/dist/development/src/resolvers/mutation/TruncateMutationResolver.cjs.map +0 -1
  364. package/dist/development/src/resolvers/mutation/TruncateMutationResolver.js +0 -15
  365. package/dist/development/src/resolvers/mutation/TruncateMutationResolver.js.map +0 -1
  366. package/dist/development/src/resolvers/query/EventsQueryResolver.cjs +0 -43
  367. package/dist/development/src/resolvers/query/EventsQueryResolver.cjs.map +0 -1
  368. package/dist/development/src/resolvers/query/EventsQueryResolver.js +0 -43
  369. package/dist/development/src/resolvers/query/EventsQueryResolver.js.map +0 -1
  370. package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs +0 -29
  371. package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs.map +0 -1
  372. package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.js +0 -29
  373. package/dist/development/src/resolvers/query/ExecutedMigrationsQueryResolver.js.map +0 -1
  374. package/dist/development/src/resolvers/query/SchemaQueryResolver.cjs +0 -23
  375. package/dist/development/src/resolvers/query/SchemaQueryResolver.cjs.map +0 -1
  376. package/dist/development/src/resolvers/query/SchemaQueryResolver.js +0 -23
  377. package/dist/development/src/resolvers/query/SchemaQueryResolver.js.map +0 -1
  378. package/dist/development/src/resolvers/query/StagesQueryResolver.cjs +0 -19
  379. package/dist/development/src/resolvers/query/StagesQueryResolver.cjs.map +0 -1
  380. package/dist/development/src/resolvers/query/StagesQueryResolver.js +0 -19
  381. package/dist/development/src/resolvers/query/StagesQueryResolver.js.map +0 -1
  382. package/dist/development/src/resolvers/types/EventOldValuesResolver.cjs +0 -10
  383. package/dist/development/src/resolvers/types/EventOldValuesResolver.cjs.map +0 -1
  384. package/dist/development/src/resolvers/types/EventOldValuesResolver.js +0 -10
  385. package/dist/development/src/resolvers/types/EventOldValuesResolver.js.map +0 -1
  386. package/dist/development/src/resolvers/types/OldValuesHelpers.cjs +0 -21
  387. package/dist/development/src/resolvers/types/OldValuesHelpers.cjs.map +0 -1
  388. package/dist/development/src/resolvers/types/OldValuesHelpers.js +0 -21
  389. package/dist/development/src/resolvers/types/OldValuesHelpers.js.map +0 -1
  390. package/dist/development/src/schema/dev.graphql.cjs +0 -56
  391. package/dist/development/src/schema/dev.graphql.cjs.map +0 -1
  392. package/dist/development/src/schema/dev.graphql.js +0 -57
  393. package/dist/development/src/schema/dev.graphql.js.map +0 -1
  394. package/dist/development/src/schema/system.graphql.cjs +0 -211
  395. package/dist/development/src/schema/system.graphql.cjs.map +0 -1
  396. package/dist/development/src/schema/system.graphql.js +0 -212
  397. package/dist/development/src/schema/system.graphql.js.map +0 -1
  398. package/dist/development/src/schema/types.cjs +0 -46
  399. package/dist/development/src/schema/types.cjs.map +0 -1
  400. package/dist/development/src/schema/types.js +0 -46
  401. package/dist/development/src/schema/types.js.map +0 -1
  402. package/dist/development/src/utils/MapSet.cjs +0 -43
  403. package/dist/development/src/utils/MapSet.cjs.map +0 -1
  404. package/dist/development/src/utils/MapSet.js +0 -43
  405. package/dist/development/src/utils/MapSet.js.map +0 -1
  406. package/dist/development/src/utils/Response.cjs +0 -21
  407. package/dist/development/src/utils/Response.cjs.map +0 -1
  408. package/dist/development/src/utils/Response.js +0 -21
  409. package/dist/development/src/utils/Response.js.map +0 -1
  410. package/dist/development/src/utils/assertNever.cjs +0 -7
  411. package/dist/development/src/utils/assertNever.cjs.map +0 -1
  412. package/dist/development/src/utils/assertNever.js +0 -7
  413. package/dist/development/src/utils/assertNever.js.map +0 -1
  414. package/dist/development/src/utils/batchQuery.cjs +0 -22
  415. package/dist/development/src/utils/batchQuery.cjs.map +0 -1
  416. package/dist/development/src/utils/batchQuery.js +0 -22
  417. package/dist/development/src/utils/batchQuery.js.map +0 -1
  418. package/dist/development/src/utils/exceptions.cjs +0 -9
  419. package/dist/development/src/utils/exceptions.cjs.map +0 -1
  420. package/dist/development/src/utils/exceptions.js +0 -9
  421. package/dist/development/src/utils/exceptions.js.map +0 -1
  422. package/dist/development/src/utils/tick.cjs +0 -5
  423. package/dist/development/src/utils/tick.cjs.map +0 -1
  424. package/dist/development/src/utils/tick.js +0 -5
  425. package/dist/development/src/utils/tick.js.map +0 -1
  426. package/dist/development/src/utils/tuple.cjs +0 -5
  427. package/dist/development/src/utils/tuple.cjs.map +0 -1
  428. package/dist/development/src/utils/tuple.js +0 -5
  429. package/dist/development/src/utils/tuple.js.map +0 -1
  430. package/dist/production/index.cjs +0 -73
  431. package/dist/production/index.cjs.map +0 -1
  432. package/dist/production/index.js +0 -70
  433. package/dist/production/index.js.map +0 -1
  434. package/dist/production/src/SystemContainer.cjs +0 -49
  435. package/dist/production/src/SystemContainer.cjs.map +0 -1
  436. package/dist/production/src/SystemContainer.js +0 -49
  437. package/dist/production/src/SystemContainer.js.map +0 -1
  438. package/dist/production/src/migrations/2018-08-04-102200-init.cjs +0 -36
  439. package/dist/production/src/migrations/2018-08-04-102200-init.cjs.map +0 -1
  440. package/dist/production/src/migrations/2018-08-04-102200-init.js +0 -37
  441. package/dist/production/src/migrations/2018-08-04-102200-init.js.map +0 -1
  442. package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.cjs +0 -98
  443. package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.cjs.map +0 -1
  444. package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.js +0 -99
  445. package/dist/production/src/migrations/2018-08-05-130501-trigger-event-function.js.map +0 -1
  446. package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.cjs +0 -16
  447. package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.cjs.map +0 -1
  448. package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.js +0 -17
  449. package/dist/production/src/migrations/2019-01-14-143432-event-trx-id.js.map +0 -1
  450. package/dist/production/src/migrations/2019-02-04-154500-event-rebase.cjs +0 -58
  451. package/dist/production/src/migrations/2019-02-04-154500-event-rebase.cjs.map +0 -1
  452. package/dist/production/src/migrations/2019-02-04-154500-event-rebase.js +0 -59
  453. package/dist/production/src/migrations/2019-02-04-154500-event-rebase.js.map +0 -1
  454. package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs +0 -11
  455. package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.cjs.map +0 -1
  456. package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.js +0 -12
  457. package/dist/production/src/migrations/2019-03-18-104147-event-run-migration-struct.js.map +0 -1
  458. package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs +0 -65
  459. package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.cjs.map +0 -1
  460. package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.js +0 -66
  461. package/dist/production/src/migrations/2019-07-29-103000-trigger-event-function-fix.js.map +0 -1
  462. package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs +0 -20
  463. package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.cjs.map +0 -1
  464. package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.js +0 -21
  465. package/dist/production/src/migrations/2019-11-28-100000-missing-setting-fallback.js.map +0 -1
  466. package/dist/production/src/migrations/2020-03-27-130000-project-migrations.cjs +0 -21
  467. package/dist/production/src/migrations/2020-03-27-130000-project-migrations.cjs.map +0 -1
  468. package/dist/production/src/migrations/2020-03-27-130000-project-migrations.js +0 -22
  469. package/dist/production/src/migrations/2020-03-27-130000-project-migrations.js.map +0 -1
  470. package/dist/production/src/migrations/2020-05-06-150000-composed-primary.cjs +0 -188
  471. package/dist/production/src/migrations/2020-05-06-150000-composed-primary.cjs.map +0 -1
  472. package/dist/production/src/migrations/2020-05-06-150000-composed-primary.js +0 -189
  473. package/dist/production/src/migrations/2020-05-06-150000-composed-primary.js.map +0 -1
  474. package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.cjs +0 -128
  475. package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.cjs.map +0 -1
  476. package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.js +0 -129
  477. package/dist/production/src/migrations/2020-06-01-103000-event-trigger-perf.js.map +0 -1
  478. package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.cjs +0 -14
  479. package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.cjs.map +0 -1
  480. package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.js +0 -15
  481. package/dist/production/src/migrations/2021-03-23-110000-timestamp-fix.js.map +0 -1
  482. package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.cjs +0 -286
  483. package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.cjs.map +0 -1
  484. package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.js +0 -287
  485. package/dist/production/src/migrations/2021-05-07-155800-event-log-rework.js.map +0 -1
  486. package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs +0 -44
  487. package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.cjs.map +0 -1
  488. package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js +0 -45
  489. package/dist/production/src/migrations/2021-05-19-1232000-event-log-fix-constraint.js.map +0 -1
  490. package/dist/production/src/migrations/2021-12-21-155500-events-up.cjs +0 -14
  491. package/dist/production/src/migrations/2021-12-21-155500-events-up.cjs.map +0 -1
  492. package/dist/production/src/migrations/2021-12-21-155500-events-up.js +0 -15
  493. package/dist/production/src/migrations/2021-12-21-155500-events-up.js.map +0 -1
  494. package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.cjs +0 -15
  495. package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.cjs.map +0 -1
  496. package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.js +0 -16
  497. package/dist/production/src/migrations/2022-02-08-132600-fn-search-path.js.map +0 -1
  498. package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.cjs +0 -10
  499. package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.cjs.map +0 -1
  500. package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.js +0 -11
  501. package/dist/production/src/migrations/2022-02-08-140500-drop-deadcode.js.map +0 -1
  502. package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs +0 -49
  503. package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.cjs.map +0 -1
  504. package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.js +0 -50
  505. package/dist/production/src/migrations/2022-02-08-144400-dynamic-stage-schema.js.map +0 -1
  506. package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.cjs +0 -59
  507. package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.cjs.map +0 -1
  508. package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.js +0 -60
  509. package/dist/production/src/migrations/2022-10-03-110000-table-on-delete.js.map +0 -1
  510. package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.cjs +0 -65
  511. package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.cjs.map +0 -1
  512. package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.js +0 -66
  513. package/dist/production/src/migrations/2023-09-11-174000-fix-on-delete.js.map +0 -1
  514. package/dist/production/src/migrations/2023-10-19-173000-fix-unique.cjs +0 -43
  515. package/dist/production/src/migrations/2023-10-19-173000-fix-unique.cjs.map +0 -1
  516. package/dist/production/src/migrations/2023-10-19-173000-fix-unique.js +0 -44
  517. package/dist/production/src/migrations/2023-10-19-173000-fix-unique.js.map +0 -1
  518. package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs +0 -11
  519. package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.cjs.map +0 -1
  520. package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.js +0 -12
  521. package/dist/production/src/migrations/2023-10-24-140000-schema-nullable-checksum.js.map +0 -1
  522. package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs +0 -15
  523. package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.cjs.map +0 -1
  524. package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.js +0 -16
  525. package/dist/production/src/migrations/2024-06-28-150000-migrations-drop-sequence.js.map +0 -1
  526. package/dist/production/src/migrations/2024-06-28-153000-schema.cjs +0 -18
  527. package/dist/production/src/migrations/2024-06-28-153000-schema.cjs.map +0 -1
  528. package/dist/production/src/migrations/2024-06-28-153000-schema.js +0 -19
  529. package/dist/production/src/migrations/2024-06-28-153000-schema.js.map +0 -1
  530. package/dist/production/src/migrations/2024-06-28-153001-schema-init.cjs +0 -12
  531. package/dist/production/src/migrations/2024-06-28-153001-schema-init.cjs.map +0 -1
  532. package/dist/production/src/migrations/2024-06-28-153001-schema-init.js +0 -13
  533. package/dist/production/src/migrations/2024-06-28-153001-schema-init.js.map +0 -1
  534. package/dist/production/src/migrations/2024-07-29-150000-event-data-index.cjs +0 -11
  535. package/dist/production/src/migrations/2024-07-29-150000-event-data-index.cjs.map +0 -1
  536. package/dist/production/src/migrations/2024-07-29-150000-event-data-index.js +0 -12
  537. package/dist/production/src/migrations/2024-07-29-150000-event-data-index.js.map +0 -1
  538. package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.cjs +0 -60
  539. package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.cjs.map +0 -1
  540. package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.js +0 -61
  541. package/dist/production/src/migrations/2025-03-14-110000-fix-missing-index.js.map +0 -1
  542. package/dist/production/src/migrations/runner.cjs +0 -106
  543. package/dist/production/src/migrations/runner.cjs.map +0 -1
  544. package/dist/production/src/migrations/runner.js +0 -106
  545. package/dist/production/src/migrations/runner.js.map +0 -1
  546. package/dist/production/src/migrations/snapshot-factory.cjs +0 -44
  547. package/dist/production/src/migrations/snapshot-factory.cjs.map +0 -1
  548. package/dist/production/src/migrations/snapshot-factory.js +0 -44
  549. package/dist/production/src/migrations/snapshot-factory.js.map +0 -1
  550. package/dist/production/src/migrations/snapshot.cjs +0 -184
  551. package/dist/production/src/migrations/snapshot.cjs.map +0 -1
  552. package/dist/production/src/migrations/snapshot.js +0 -185
  553. package/dist/production/src/migrations/snapshot.js.map +0 -1
  554. package/dist/production/src/model/ProjectInitializer.cjs +0 -41
  555. package/dist/production/src/model/ProjectInitializer.cjs.map +0 -1
  556. package/dist/production/src/model/ProjectInitializer.js +0 -41
  557. package/dist/production/src/model/ProjectInitializer.js.map +0 -1
  558. package/dist/production/src/model/ProjectTruncateExecutor.cjs +0 -31
  559. package/dist/production/src/model/ProjectTruncateExecutor.cjs.map +0 -1
  560. package/dist/production/src/model/ProjectTruncateExecutor.js +0 -31
  561. package/dist/production/src/model/ProjectTruncateExecutor.js.map +0 -1
  562. package/dist/production/src/model/authorization/AuthorizationActions.cjs +0 -14
  563. package/dist/production/src/model/authorization/AuthorizationActions.cjs.map +0 -1
  564. package/dist/production/src/model/authorization/AuthorizationActions.js +0 -15
  565. package/dist/production/src/model/authorization/AuthorizationActions.js.map +0 -1
  566. package/dist/production/src/model/authorization/Identity.cjs +0 -10
  567. package/dist/production/src/model/authorization/Identity.cjs.map +0 -1
  568. package/dist/production/src/model/authorization/Identity.js +0 -10
  569. package/dist/production/src/model/authorization/Identity.js.map +0 -1
  570. package/dist/production/src/model/authorization/PermissionsFactory.cjs +0 -17
  571. package/dist/production/src/model/authorization/PermissionsFactory.cjs.map +0 -1
  572. package/dist/production/src/model/authorization/PermissionsFactory.js +0 -17
  573. package/dist/production/src/model/authorization/PermissionsFactory.js.map +0 -1
  574. package/dist/production/src/model/authorization/StagePermissionsFactory.cjs +0 -56
  575. package/dist/production/src/model/authorization/StagePermissionsFactory.cjs.map +0 -1
  576. package/dist/production/src/model/authorization/StagePermissionsFactory.js +0 -56
  577. package/dist/production/src/model/authorization/StagePermissionsFactory.js.map +0 -1
  578. package/dist/production/src/model/authorization/StageScope.cjs +0 -19
  579. package/dist/production/src/model/authorization/StageScope.cjs.map +0 -1
  580. package/dist/production/src/model/authorization/StageScope.js +0 -19
  581. package/dist/production/src/model/authorization/StageScope.js.map +0 -1
  582. package/dist/production/src/model/authorization/SwitchEvaluatorNode.cjs +0 -14
  583. package/dist/production/src/model/authorization/SwitchEvaluatorNode.cjs.map +0 -1
  584. package/dist/production/src/model/authorization/SwitchEvaluatorNode.js +0 -14
  585. package/dist/production/src/model/authorization/SwitchEvaluatorNode.js.map +0 -1
  586. package/dist/production/src/model/commands/CommandBus.cjs +0 -18
  587. package/dist/production/src/model/commands/CommandBus.cjs.map +0 -1
  588. package/dist/production/src/model/commands/CommandBus.js +0 -18
  589. package/dist/production/src/model/commands/CommandBus.js.map +0 -1
  590. package/dist/production/src/model/commands/events/TruncateEventsCommand.cjs +0 -10
  591. package/dist/production/src/model/commands/events/TruncateEventsCommand.cjs.map +0 -1
  592. package/dist/production/src/model/commands/events/TruncateEventsCommand.js +0 -10
  593. package/dist/production/src/model/commands/events/TruncateEventsCommand.js.map +0 -1
  594. package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.cjs +0 -16
  595. package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.cjs.map +0 -1
  596. package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.js +0 -16
  597. package/dist/production/src/model/commands/migrations/DeleteMigrationCommand.js.map +0 -1
  598. package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.cjs +0 -38
  599. package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.cjs.map +0 -1
  600. package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.js +0 -38
  601. package/dist/production/src/model/commands/migrations/ModifyMigrationCommand.js.map +0 -1
  602. package/dist/production/src/model/commands/migrations/SaveMigrationCommand.cjs +0 -28
  603. package/dist/production/src/model/commands/migrations/SaveMigrationCommand.cjs.map +0 -1
  604. package/dist/production/src/model/commands/migrations/SaveMigrationCommand.js +0 -28
  605. package/dist/production/src/model/commands/migrations/SaveMigrationCommand.js.map +0 -1
  606. package/dist/production/src/model/commands/schema/SaveSchemaCommand.cjs +0 -28
  607. package/dist/production/src/model/commands/schema/SaveSchemaCommand.cjs.map +0 -1
  608. package/dist/production/src/model/commands/schema/SaveSchemaCommand.js +0 -28
  609. package/dist/production/src/model/commands/schema/SaveSchemaCommand.js.map +0 -1
  610. package/dist/production/src/model/commands/stages/CreateStageCommand.cjs +0 -22
  611. package/dist/production/src/model/commands/stages/CreateStageCommand.cjs.map +0 -1
  612. package/dist/production/src/model/commands/stages/CreateStageCommand.js +0 -22
  613. package/dist/production/src/model/commands/stages/CreateStageCommand.js.map +0 -1
  614. package/dist/production/src/model/database/DatabaseContext.cjs +0 -29
  615. package/dist/production/src/model/database/DatabaseContext.cjs.map +0 -1
  616. package/dist/production/src/model/database/DatabaseContext.js +0 -29
  617. package/dist/production/src/model/database/DatabaseContext.js.map +0 -1
  618. package/dist/production/src/model/dtos/ExecutedMigration.cjs +0 -21
  619. package/dist/production/src/model/dtos/ExecutedMigration.cjs.map +0 -1
  620. package/dist/production/src/model/dtos/ExecutedMigration.js +0 -21
  621. package/dist/production/src/model/dtos/ExecutedMigration.js.map +0 -1
  622. package/dist/production/src/model/events/EventResponseBuilder.cjs +0 -59
  623. package/dist/production/src/model/events/EventResponseBuilder.cjs.map +0 -1
  624. package/dist/production/src/model/events/EventResponseBuilder.js +0 -59
  625. package/dist/production/src/model/events/EventResponseBuilder.js.map +0 -1
  626. package/dist/production/src/model/events/EventResponseHelper.cjs +0 -25
  627. package/dist/production/src/model/events/EventResponseHelper.cjs.map +0 -1
  628. package/dist/production/src/model/events/EventResponseHelper.js +0 -25
  629. package/dist/production/src/model/events/EventResponseHelper.js.map +0 -1
  630. package/dist/production/src/model/events/identityUtils.cjs +0 -16
  631. package/dist/production/src/model/events/identityUtils.cjs.map +0 -1
  632. package/dist/production/src/model/events/identityUtils.js +0 -16
  633. package/dist/production/src/model/events/identityUtils.js.map +0 -1
  634. package/dist/production/src/model/events/types.cjs +0 -69
  635. package/dist/production/src/model/events/types.cjs.map +0 -1
  636. package/dist/production/src/model/events/types.js +0 -69
  637. package/dist/production/src/model/events/types.js.map +0 -1
  638. package/dist/production/src/model/helpers/modelHelpers.cjs +0 -28
  639. package/dist/production/src/model/helpers/modelHelpers.cjs.map +0 -1
  640. package/dist/production/src/model/helpers/modelHelpers.js +0 -28
  641. package/dist/production/src/model/helpers/modelHelpers.js.map +0 -1
  642. package/dist/production/src/model/helpers/stageHelpers.cjs +0 -7
  643. package/dist/production/src/model/helpers/stageHelpers.cjs.map +0 -1
  644. package/dist/production/src/model/helpers/stageHelpers.js +0 -7
  645. package/dist/production/src/model/helpers/stageHelpers.js.map +0 -1
  646. package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs +0 -35
  647. package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.cjs.map +0 -1
  648. package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.js +0 -35
  649. package/dist/production/src/model/metadata/SchemaDatabaseMetadataResolverStore.js.map +0 -1
  650. package/dist/production/src/model/migrations/ExecutedMigrationsResolver.cjs +0 -17
  651. package/dist/production/src/model/migrations/ExecutedMigrationsResolver.cjs.map +0 -1
  652. package/dist/production/src/model/migrations/ExecutedMigrationsResolver.js +0 -17
  653. package/dist/production/src/model/migrations/ExecutedMigrationsResolver.js.map +0 -1
  654. package/dist/production/src/model/migrations/MigrationAlterer.cjs +0 -52
  655. package/dist/production/src/model/migrations/MigrationAlterer.cjs.map +0 -1
  656. package/dist/production/src/model/migrations/MigrationAlterer.js +0 -52
  657. package/dist/production/src/model/migrations/MigrationAlterer.js.map +0 -1
  658. package/dist/production/src/model/migrations/ProjectMigrator.cjs +0 -233
  659. package/dist/production/src/model/migrations/ProjectMigrator.cjs.map +0 -1
  660. package/dist/production/src/model/migrations/ProjectMigrator.js +0 -233
  661. package/dist/production/src/model/migrations/ProjectMigrator.js.map +0 -1
  662. package/dist/production/src/model/migrations/SchemaProvider.cjs +0 -58
  663. package/dist/production/src/model/migrations/SchemaProvider.cjs.map +0 -1
  664. package/dist/production/src/model/migrations/SchemaProvider.js +0 -58
  665. package/dist/production/src/model/migrations/SchemaProvider.js.map +0 -1
  666. package/dist/production/src/model/queries/events/EventQueryHelpers.cjs +0 -48
  667. package/dist/production/src/model/queries/events/EventQueryHelpers.cjs.map +0 -1
  668. package/dist/production/src/model/queries/events/EventQueryHelpers.js +0 -48
  669. package/dist/production/src/model/queries/events/EventQueryHelpers.js.map +0 -1
  670. package/dist/production/src/model/queries/events/EventsQuery.cjs +0 -70
  671. package/dist/production/src/model/queries/events/EventsQuery.cjs.map +0 -1
  672. package/dist/production/src/model/queries/events/EventsQuery.js +0 -70
  673. package/dist/production/src/model/queries/events/EventsQuery.js.map +0 -1
  674. package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.cjs +0 -15
  675. package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.cjs.map +0 -1
  676. package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.js +0 -15
  677. package/dist/production/src/model/queries/events/LatestTransactionIdByStageQuery.js.map +0 -1
  678. package/dist/production/src/model/queries/events/OldValuesQuery.cjs +0 -19
  679. package/dist/production/src/model/queries/events/OldValuesQuery.cjs.map +0 -1
  680. package/dist/production/src/model/queries/events/OldValuesQuery.js +0 -19
  681. package/dist/production/src/model/queries/events/OldValuesQuery.js.map +0 -1
  682. package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs +0 -18
  683. package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.cjs.map +0 -1
  684. package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js +0 -18
  685. package/dist/production/src/model/queries/migrations/ExecutedMigrationByVersionQuery.js.map +0 -1
  686. package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.cjs +0 -19
  687. package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.cjs.map +0 -1
  688. package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.js +0 -19
  689. package/dist/production/src/model/queries/migrations/ExecutedMigrationsQuery.js.map +0 -1
  690. package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs +0 -18
  691. package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.cjs.map +0 -1
  692. package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js +0 -18
  693. package/dist/production/src/model/queries/migrations/ExecutedMigrationsQueryHelper.js.map +0 -1
  694. package/dist/production/src/model/queries/schema/SchemaQuery.cjs +0 -34
  695. package/dist/production/src/model/queries/schema/SchemaQuery.cjs.map +0 -1
  696. package/dist/production/src/model/queries/schema/SchemaQuery.js +0 -34
  697. package/dist/production/src/model/queries/schema/SchemaQuery.js.map +0 -1
  698. package/dist/production/src/model/queries/stages/StageBySlugQuery.cjs +0 -17
  699. package/dist/production/src/model/queries/stages/StageBySlugQuery.cjs.map +0 -1
  700. package/dist/production/src/model/queries/stages/StageBySlugQuery.js +0 -17
  701. package/dist/production/src/model/queries/stages/StageBySlugQuery.js.map +0 -1
  702. package/dist/production/src/model/queries/stages/StageQueryFactory.cjs +0 -8
  703. package/dist/production/src/model/queries/stages/StageQueryFactory.cjs.map +0 -1
  704. package/dist/production/src/model/queries/stages/StageQueryFactory.js +0 -8
  705. package/dist/production/src/model/queries/stages/StageQueryFactory.js.map +0 -1
  706. package/dist/production/src/model/queries/stages/StagesQuery.cjs +0 -12
  707. package/dist/production/src/model/queries/stages/StagesQuery.cjs.map +0 -1
  708. package/dist/production/src/model/queries/stages/StagesQuery.js +0 -12
  709. package/dist/production/src/model/queries/stages/StagesQuery.js.map +0 -1
  710. package/dist/production/src/model/stages/StageCreator.cjs +0 -22
  711. package/dist/production/src/model/stages/StageCreator.cjs.map +0 -1
  712. package/dist/production/src/model/stages/StageCreator.js +0 -22
  713. package/dist/production/src/model/stages/StageCreator.js.map +0 -1
  714. package/dist/production/src/resolvers/ResolverFactory.cjs +0 -92
  715. package/dist/production/src/resolvers/ResolverFactory.cjs.map +0 -1
  716. package/dist/production/src/resolvers/ResolverFactory.js +0 -92
  717. package/dist/production/src/resolvers/ResolverFactory.js.map +0 -1
  718. package/dist/production/src/resolvers/SystemResolverContext.cjs +0 -37
  719. package/dist/production/src/resolvers/SystemResolverContext.cjs.map +0 -1
  720. package/dist/production/src/resolvers/SystemResolverContext.js +0 -37
  721. package/dist/production/src/resolvers/SystemResolverContext.js.map +0 -1
  722. package/dist/production/src/resolvers/mutation/MigrateMutationResolver.cjs +0 -113
  723. package/dist/production/src/resolvers/mutation/MigrateMutationResolver.cjs.map +0 -1
  724. package/dist/production/src/resolvers/mutation/MigrateMutationResolver.js +0 -113
  725. package/dist/production/src/resolvers/mutation/MigrateMutationResolver.js.map +0 -1
  726. package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.cjs +0 -48
  727. package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.cjs.map +0 -1
  728. package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.js +0 -48
  729. package/dist/production/src/resolvers/mutation/MigrationAlterMutationResolver.js.map +0 -1
  730. package/dist/production/src/resolvers/mutation/TruncateMutationResolver.cjs +0 -15
  731. package/dist/production/src/resolvers/mutation/TruncateMutationResolver.cjs.map +0 -1
  732. package/dist/production/src/resolvers/mutation/TruncateMutationResolver.js +0 -15
  733. package/dist/production/src/resolvers/mutation/TruncateMutationResolver.js.map +0 -1
  734. package/dist/production/src/resolvers/query/EventsQueryResolver.cjs +0 -43
  735. package/dist/production/src/resolvers/query/EventsQueryResolver.cjs.map +0 -1
  736. package/dist/production/src/resolvers/query/EventsQueryResolver.js +0 -43
  737. package/dist/production/src/resolvers/query/EventsQueryResolver.js.map +0 -1
  738. package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs +0 -29
  739. package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.cjs.map +0 -1
  740. package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.js +0 -29
  741. package/dist/production/src/resolvers/query/ExecutedMigrationsQueryResolver.js.map +0 -1
  742. package/dist/production/src/resolvers/query/SchemaQueryResolver.cjs +0 -23
  743. package/dist/production/src/resolvers/query/SchemaQueryResolver.cjs.map +0 -1
  744. package/dist/production/src/resolvers/query/SchemaQueryResolver.js +0 -23
  745. package/dist/production/src/resolvers/query/SchemaQueryResolver.js.map +0 -1
  746. package/dist/production/src/resolvers/query/StagesQueryResolver.cjs +0 -19
  747. package/dist/production/src/resolvers/query/StagesQueryResolver.cjs.map +0 -1
  748. package/dist/production/src/resolvers/query/StagesQueryResolver.js +0 -19
  749. package/dist/production/src/resolvers/query/StagesQueryResolver.js.map +0 -1
  750. package/dist/production/src/resolvers/types/EventOldValuesResolver.cjs +0 -10
  751. package/dist/production/src/resolvers/types/EventOldValuesResolver.cjs.map +0 -1
  752. package/dist/production/src/resolvers/types/EventOldValuesResolver.js +0 -10
  753. package/dist/production/src/resolvers/types/EventOldValuesResolver.js.map +0 -1
  754. package/dist/production/src/resolvers/types/OldValuesHelpers.cjs +0 -21
  755. package/dist/production/src/resolvers/types/OldValuesHelpers.cjs.map +0 -1
  756. package/dist/production/src/resolvers/types/OldValuesHelpers.js +0 -21
  757. package/dist/production/src/resolvers/types/OldValuesHelpers.js.map +0 -1
  758. package/dist/production/src/schema/dev.graphql.cjs +0 -56
  759. package/dist/production/src/schema/dev.graphql.cjs.map +0 -1
  760. package/dist/production/src/schema/dev.graphql.js +0 -57
  761. package/dist/production/src/schema/dev.graphql.js.map +0 -1
  762. package/dist/production/src/schema/system.graphql.cjs +0 -211
  763. package/dist/production/src/schema/system.graphql.cjs.map +0 -1
  764. package/dist/production/src/schema/system.graphql.js +0 -212
  765. package/dist/production/src/schema/system.graphql.js.map +0 -1
  766. package/dist/production/src/schema/types.cjs +0 -46
  767. package/dist/production/src/schema/types.cjs.map +0 -1
  768. package/dist/production/src/schema/types.js +0 -46
  769. package/dist/production/src/schema/types.js.map +0 -1
  770. package/dist/production/src/utils/MapSet.cjs +0 -43
  771. package/dist/production/src/utils/MapSet.cjs.map +0 -1
  772. package/dist/production/src/utils/MapSet.js +0 -43
  773. package/dist/production/src/utils/MapSet.js.map +0 -1
  774. package/dist/production/src/utils/Response.cjs +0 -21
  775. package/dist/production/src/utils/Response.cjs.map +0 -1
  776. package/dist/production/src/utils/Response.js +0 -21
  777. package/dist/production/src/utils/Response.js.map +0 -1
  778. package/dist/production/src/utils/assertNever.cjs +0 -7
  779. package/dist/production/src/utils/assertNever.cjs.map +0 -1
  780. package/dist/production/src/utils/assertNever.js +0 -7
  781. package/dist/production/src/utils/assertNever.js.map +0 -1
  782. package/dist/production/src/utils/batchQuery.cjs +0 -22
  783. package/dist/production/src/utils/batchQuery.cjs.map +0 -1
  784. package/dist/production/src/utils/batchQuery.js +0 -22
  785. package/dist/production/src/utils/batchQuery.js.map +0 -1
  786. package/dist/production/src/utils/exceptions.cjs +0 -9
  787. package/dist/production/src/utils/exceptions.cjs.map +0 -1
  788. package/dist/production/src/utils/exceptions.js +0 -9
  789. package/dist/production/src/utils/exceptions.js.map +0 -1
  790. package/dist/production/src/utils/tick.cjs +0 -5
  791. package/dist/production/src/utils/tick.cjs.map +0 -1
  792. package/dist/production/src/utils/tick.js +0 -5
  793. package/dist/production/src/utils/tick.js.map +0 -1
  794. package/dist/production/src/utils/tuple.cjs +0 -5
  795. package/dist/production/src/utils/tuple.cjs.map +0 -1
  796. package/dist/production/src/utils/tuple.js +0 -5
  797. package/dist/production/src/utils/tuple.js.map +0 -1
  798. package/dist/tests/cases/migrations/2020-05-06-150000-composed-primary.test.d.ts +0 -2
  799. package/dist/tests/cases/migrations/2020-05-06-150000-composed-primary.test.d.ts.map +0 -1
  800. package/dist/tests/cases/migrations/2020-06-01-103000-event-trigger-perf.test.d.ts +0 -2
  801. package/dist/tests/cases/migrations/2020-06-01-103000-event-trigger-perf.test.d.ts.map +0 -1
  802. package/dist/tests/cases/migrations/2022-10-03-110000-table-on-delete.test.d.ts +0 -2
  803. package/dist/tests/cases/migrations/2022-10-03-110000-table-on-delete.test.d.ts.map +0 -1
  804. package/dist/tests/cases/migrations/2023-09-11-174000-fix-on-delete.test.d.ts +0 -2
  805. package/dist/tests/cases/migrations/2023-09-11-174000-fix-on-delete.test.d.ts.map +0 -1
  806. package/dist/tests/cases/migrations/2023-10-19-173000-fix-unique.test.d.ts +0 -2
  807. package/dist/tests/cases/migrations/2023-10-19-173000-fix-unique.test.d.ts.map +0 -1
  808. package/dist/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.d.ts +0 -2
  809. package/dist/tests/cases/migrations/2025-03-14-110000-fix-missing-index.test.d.ts.map +0 -1
  810. package/dist/tests/cases/unit/eventsQuery.test.d.ts +0 -2
  811. package/dist/tests/cases/unit/eventsQuery.test.d.ts.map +0 -1
  812. package/dist/tests/src/constants.d.ts +0 -2
  813. package/dist/tests/src/constants.d.ts.map +0 -1
  814. package/dist/tests/src/utils.d.ts +0 -6
  815. package/dist/tests/src/utils.d.ts.map +0 -1
  816. package/dist/tests/src/uuid.d.ts +0 -3
  817. package/dist/tests/src/uuid.d.ts.map +0 -1
  818. package/dist/tests/tsconfig.tsbuildinfo +0 -1
  819. package/dist/types/StagingDisabledError.d.ts +0 -3
  820. package/dist/types/StagingDisabledError.d.ts.map +0 -1
  821. package/dist/types/SystemContainer.d.ts +0 -79
  822. package/dist/types/SystemContainer.d.ts.map +0 -1
  823. package/dist/types/bin/runMigrations.d.ts +0 -2
  824. package/dist/types/bin/runMigrations.d.ts.map +0 -1
  825. package/dist/types/index.d.ts +0 -9
  826. package/dist/types/index.d.ts.map +0 -1
  827. package/dist/types/migrations/2018-08-04-102200-init.d.ts +0 -3
  828. package/dist/types/migrations/2018-08-04-102200-init.d.ts.map +0 -1
  829. package/dist/types/migrations/2018-08-05-130501-trigger-event-function.d.ts +0 -3
  830. package/dist/types/migrations/2018-08-05-130501-trigger-event-function.d.ts.map +0 -1
  831. package/dist/types/migrations/2019-01-14-143432-event-trx-id.d.ts +0 -3
  832. package/dist/types/migrations/2019-01-14-143432-event-trx-id.d.ts.map +0 -1
  833. package/dist/types/migrations/2019-02-04-154500-event-rebase.d.ts +0 -3
  834. package/dist/types/migrations/2019-02-04-154500-event-rebase.d.ts.map +0 -1
  835. package/dist/types/migrations/2019-03-18-104147-event-run-migration-struct.d.ts +0 -3
  836. package/dist/types/migrations/2019-03-18-104147-event-run-migration-struct.d.ts.map +0 -1
  837. package/dist/types/migrations/2019-07-29-103000-trigger-event-function-fix.d.ts +0 -3
  838. package/dist/types/migrations/2019-07-29-103000-trigger-event-function-fix.d.ts.map +0 -1
  839. package/dist/types/migrations/2019-11-28-100000-missing-setting-fallback.d.ts +0 -3
  840. package/dist/types/migrations/2019-11-28-100000-missing-setting-fallback.d.ts.map +0 -1
  841. package/dist/types/migrations/2020-03-27-130000-project-migrations.d.ts +0 -4
  842. package/dist/types/migrations/2020-03-27-130000-project-migrations.d.ts.map +0 -1
  843. package/dist/types/migrations/2020-05-06-150000-composed-primary.d.ts +0 -5
  844. package/dist/types/migrations/2020-05-06-150000-composed-primary.d.ts.map +0 -1
  845. package/dist/types/migrations/2020-06-01-103000-event-trigger-perf.d.ts +0 -5
  846. package/dist/types/migrations/2020-06-01-103000-event-trigger-perf.d.ts.map +0 -1
  847. package/dist/types/migrations/2021-03-23-110000-timestamp-fix.d.ts +0 -3
  848. package/dist/types/migrations/2021-03-23-110000-timestamp-fix.d.ts.map +0 -1
  849. package/dist/types/migrations/2021-05-07-155800-event-log-rework.d.ts +0 -5
  850. package/dist/types/migrations/2021-05-07-155800-event-log-rework.d.ts.map +0 -1
  851. package/dist/types/migrations/2021-05-19-1232000-event-log-fix-constraint.d.ts +0 -5
  852. package/dist/types/migrations/2021-05-19-1232000-event-log-fix-constraint.d.ts.map +0 -1
  853. package/dist/types/migrations/2021-12-21-155500-events-up.d.ts +0 -3
  854. package/dist/types/migrations/2021-12-21-155500-events-up.d.ts.map +0 -1
  855. package/dist/types/migrations/2022-02-08-132600-fn-search-path.d.ts +0 -3
  856. package/dist/types/migrations/2022-02-08-132600-fn-search-path.d.ts.map +0 -1
  857. package/dist/types/migrations/2022-02-08-140500-drop-deadcode.d.ts +0 -3
  858. package/dist/types/migrations/2022-02-08-140500-drop-deadcode.d.ts.map +0 -1
  859. package/dist/types/migrations/2022-02-08-144400-dynamic-stage-schema.d.ts +0 -3
  860. package/dist/types/migrations/2022-02-08-144400-dynamic-stage-schema.d.ts.map +0 -1
  861. package/dist/types/migrations/2022-10-03-110000-table-on-delete.d.ts +0 -4
  862. package/dist/types/migrations/2022-10-03-110000-table-on-delete.d.ts.map +0 -1
  863. package/dist/types/migrations/2023-09-11-174000-fix-on-delete.d.ts +0 -4
  864. package/dist/types/migrations/2023-09-11-174000-fix-on-delete.d.ts.map +0 -1
  865. package/dist/types/migrations/2023-10-19-173000-fix-unique.d.ts +0 -4
  866. package/dist/types/migrations/2023-10-19-173000-fix-unique.d.ts.map +0 -1
  867. package/dist/types/migrations/2023-10-24-140000-schema-nullable-checksum.d.ts +0 -3
  868. package/dist/types/migrations/2023-10-24-140000-schema-nullable-checksum.d.ts.map +0 -1
  869. package/dist/types/migrations/2024-06-28-150000-migrations-drop-sequence.d.ts +0 -3
  870. package/dist/types/migrations/2024-06-28-150000-migrations-drop-sequence.d.ts.map +0 -1
  871. package/dist/types/migrations/2024-06-28-153000-schema.d.ts +0 -3
  872. package/dist/types/migrations/2024-06-28-153000-schema.d.ts.map +0 -1
  873. package/dist/types/migrations/2024-06-28-153001-schema-init.d.ts +0 -4
  874. package/dist/types/migrations/2024-06-28-153001-schema-init.d.ts.map +0 -1
  875. package/dist/types/migrations/2024-07-29-150000-event-data-index.d.ts +0 -3
  876. package/dist/types/migrations/2024-07-29-150000-event-data-index.d.ts.map +0 -1
  877. package/dist/types/migrations/2025-03-14-110000-fix-missing-index.d.ts +0 -4
  878. package/dist/types/migrations/2025-03-14-110000-fix-missing-index.d.ts.map +0 -1
  879. package/dist/types/migrations/index.d.ts +0 -3
  880. package/dist/types/migrations/index.d.ts.map +0 -1
  881. package/dist/types/migrations/runner.d.ts +0 -17
  882. package/dist/types/migrations/runner.d.ts.map +0 -1
  883. package/dist/types/migrations/snapshot-factory.d.ts +0 -6
  884. package/dist/types/migrations/snapshot-factory.d.ts.map +0 -1
  885. package/dist/types/migrations/snapshot.d.ts +0 -3
  886. package/dist/types/migrations/snapshot.d.ts.map +0 -1
  887. package/dist/types/migrations/types.d.ts +0 -9
  888. package/dist/types/migrations/types.d.ts.map +0 -1
  889. package/dist/types/model/ProjectInitializer.d.ts +0 -15
  890. package/dist/types/model/ProjectInitializer.d.ts.map +0 -1
  891. package/dist/types/model/ProjectTruncateExecutor.d.ts +0 -7
  892. package/dist/types/model/ProjectTruncateExecutor.d.ts.map +0 -1
  893. package/dist/types/model/SchemaGetter.d.ts +0 -6
  894. package/dist/types/model/SchemaGetter.d.ts.map +0 -1
  895. package/dist/types/model/authorization/AuthorizationActions.d.ts +0 -27
  896. package/dist/types/model/authorization/AuthorizationActions.d.ts.map +0 -1
  897. package/dist/types/model/authorization/Identity.d.ts +0 -6
  898. package/dist/types/model/authorization/Identity.d.ts.map +0 -1
  899. package/dist/types/model/authorization/PermissionsFactory.d.ts +0 -5
  900. package/dist/types/model/authorization/PermissionsFactory.d.ts.map +0 -1
  901. package/dist/types/model/authorization/StagePermissionsFactory.d.ts +0 -9
  902. package/dist/types/model/authorization/StagePermissionsFactory.d.ts.map +0 -1
  903. package/dist/types/model/authorization/StageScope.d.ts +0 -10
  904. package/dist/types/model/authorization/StageScope.d.ts.map +0 -1
  905. package/dist/types/model/authorization/SwitchEvaluatorNode.d.ts +0 -8
  906. package/dist/types/model/authorization/SwitchEvaluatorNode.d.ts.map +0 -1
  907. package/dist/types/model/authorization/index.d.ts +0 -4
  908. package/dist/types/model/authorization/index.d.ts.map +0 -1
  909. package/dist/types/model/commands/Command.d.ts +0 -15
  910. package/dist/types/model/commands/Command.d.ts.map +0 -1
  911. package/dist/types/model/commands/CommandBus.d.ts +0 -11
  912. package/dist/types/model/commands/CommandBus.d.ts.map +0 -1
  913. package/dist/types/model/commands/events/TruncateEventsCommand.d.ts +0 -5
  914. package/dist/types/model/commands/events/TruncateEventsCommand.d.ts.map +0 -1
  915. package/dist/types/model/commands/events/index.d.ts +0 -2
  916. package/dist/types/model/commands/events/index.d.ts.map +0 -1
  917. package/dist/types/model/commands/index.d.ts +0 -6
  918. package/dist/types/model/commands/index.d.ts.map +0 -1
  919. package/dist/types/model/commands/migrations/DeleteMigrationCommand.d.ts +0 -7
  920. package/dist/types/model/commands/migrations/DeleteMigrationCommand.d.ts.map +0 -1
  921. package/dist/types/model/commands/migrations/ModifyMigrationCommand.d.ts +0 -9
  922. package/dist/types/model/commands/migrations/ModifyMigrationCommand.d.ts.map +0 -1
  923. package/dist/types/model/commands/migrations/SaveMigrationCommand.d.ts +0 -8
  924. package/dist/types/model/commands/migrations/SaveMigrationCommand.d.ts.map +0 -1
  925. package/dist/types/model/commands/migrations/index.d.ts +0 -3
  926. package/dist/types/model/commands/migrations/index.d.ts.map +0 -1
  927. package/dist/types/model/commands/schema/SaveSchemaCommand.d.ts +0 -8
  928. package/dist/types/model/commands/schema/SaveSchemaCommand.d.ts.map +0 -1
  929. package/dist/types/model/commands/stages/CreateStageCommand.d.ts +0 -8
  930. package/dist/types/model/commands/stages/CreateStageCommand.d.ts.map +0 -1
  931. package/dist/types/model/commands/stages/TruncateStagesCommand.d.ts +0 -5
  932. package/dist/types/model/commands/stages/TruncateStagesCommand.d.ts.map +0 -1
  933. package/dist/types/model/commands/stages/index.d.ts +0 -3
  934. package/dist/types/model/commands/stages/index.d.ts.map +0 -1
  935. package/dist/types/model/database/DatabaseContext.d.ts +0 -19
  936. package/dist/types/model/database/DatabaseContext.d.ts.map +0 -1
  937. package/dist/types/model/database/index.d.ts +0 -2
  938. package/dist/types/model/database/index.d.ts.map +0 -1
  939. package/dist/types/model/dependencies/content/ContentQueryExecutor.d.ts +0 -36
  940. package/dist/types/model/dependencies/content/ContentQueryExecutor.d.ts.map +0 -1
  941. package/dist/types/model/dependencies/index.d.ts +0 -3
  942. package/dist/types/model/dependencies/index.d.ts.map +0 -1
  943. package/dist/types/model/dependencies/tenant/IdentityFetcher.d.ts +0 -18
  944. package/dist/types/model/dependencies/tenant/IdentityFetcher.d.ts.map +0 -1
  945. package/dist/types/model/dependencies/tenant/index.d.ts +0 -2
  946. package/dist/types/model/dependencies/tenant/index.d.ts.map +0 -1
  947. package/dist/types/model/dtos/ExecutedMigration.d.ts +0 -13
  948. package/dist/types/model/dtos/ExecutedMigration.d.ts.map +0 -1
  949. package/dist/types/model/dtos/Stage.d.ts +0 -7
  950. package/dist/types/model/dtos/Stage.d.ts.map +0 -1
  951. package/dist/types/model/dtos/index.d.ts +0 -3
  952. package/dist/types/model/dtos/index.d.ts.map +0 -1
  953. package/dist/types/model/events/EventResponseBuilder.d.ts +0 -10
  954. package/dist/types/model/events/EventResponseBuilder.d.ts.map +0 -1
  955. package/dist/types/model/events/EventResponseHelper.d.ts +0 -22
  956. package/dist/types/model/events/EventResponseHelper.d.ts.map +0 -1
  957. package/dist/types/model/events/identityUtils.d.ts +0 -3
  958. package/dist/types/model/events/identityUtils.d.ts.map +0 -1
  959. package/dist/types/model/events/index.d.ts +0 -3
  960. package/dist/types/model/events/index.d.ts.map +0 -1
  961. package/dist/types/model/events/types.d.ts +0 -56
  962. package/dist/types/model/events/types.d.ts.map +0 -1
  963. package/dist/types/model/helpers/index.d.ts +0 -3
  964. package/dist/types/model/helpers/index.d.ts.map +0 -1
  965. package/dist/types/model/helpers/modelHelpers.d.ts +0 -3
  966. package/dist/types/model/helpers/modelHelpers.d.ts.map +0 -1
  967. package/dist/types/model/helpers/stageHelpers.d.ts +0 -3
  968. package/dist/types/model/helpers/stageHelpers.d.ts.map +0 -1
  969. package/dist/types/model/index.d.ts +0 -14
  970. package/dist/types/model/index.d.ts.map +0 -1
  971. package/dist/types/model/metadata/SchemaDatabaseMetadataResolverStore.d.ts +0 -16
  972. package/dist/types/model/metadata/SchemaDatabaseMetadataResolverStore.d.ts.map +0 -1
  973. package/dist/types/model/metadata/index.d.ts +0 -2
  974. package/dist/types/model/metadata/index.d.ts.map +0 -1
  975. package/dist/types/model/migrations/ExecutedMigrationsResolver.d.ts +0 -7
  976. package/dist/types/model/migrations/ExecutedMigrationsResolver.d.ts.map +0 -1
  977. package/dist/types/model/migrations/MigrationAlterer.d.ts +0 -18
  978. package/dist/types/model/migrations/MigrationAlterer.d.ts.map +0 -1
  979. package/dist/types/model/migrations/MigrationInput.d.ts +0 -18
  980. package/dist/types/model/migrations/MigrationInput.d.ts.map +0 -1
  981. package/dist/types/model/migrations/ProjectMigrator.d.ts +0 -62
  982. package/dist/types/model/migrations/ProjectMigrator.d.ts.map +0 -1
  983. package/dist/types/model/migrations/SchemaProvider.d.ts +0 -28
  984. package/dist/types/model/migrations/SchemaProvider.d.ts.map +0 -1
  985. package/dist/types/model/migrations/index.d.ts +0 -5
  986. package/dist/types/model/migrations/index.d.ts.map +0 -1
  987. package/dist/types/model/queries/events/EventQueryHelpers.d.ts +0 -14
  988. package/dist/types/model/queries/events/EventQueryHelpers.d.ts.map +0 -1
  989. package/dist/types/model/queries/events/EventsQuery.d.ts +0 -12
  990. package/dist/types/model/queries/events/EventsQuery.d.ts.map +0 -1
  991. package/dist/types/model/queries/events/LatestTransactionIdByStageQuery.d.ts +0 -7
  992. package/dist/types/model/queries/events/LatestTransactionIdByStageQuery.d.ts.map +0 -1
  993. package/dist/types/model/queries/events/OldValuesQuery.d.ts +0 -7
  994. package/dist/types/model/queries/events/OldValuesQuery.d.ts.map +0 -1
  995. package/dist/types/model/queries/events/index.d.ts +0 -4
  996. package/dist/types/model/queries/events/index.d.ts.map +0 -1
  997. package/dist/types/model/queries/index.d.ts +0 -5
  998. package/dist/types/model/queries/index.d.ts.map +0 -1
  999. package/dist/types/model/queries/migrations/ExecutedMigrationByVersionQuery.d.ts +0 -8
  1000. package/dist/types/model/queries/migrations/ExecutedMigrationByVersionQuery.d.ts.map +0 -1
  1001. package/dist/types/model/queries/migrations/ExecutedMigrationsQuery.d.ts +0 -8
  1002. package/dist/types/model/queries/migrations/ExecutedMigrationsQuery.d.ts.map +0 -1
  1003. package/dist/types/model/queries/migrations/ExecutedMigrationsQueryHelper.d.ts +0 -14
  1004. package/dist/types/model/queries/migrations/ExecutedMigrationsQueryHelper.d.ts.map +0 -1
  1005. package/dist/types/model/queries/migrations/index.d.ts +0 -4
  1006. package/dist/types/model/queries/migrations/index.d.ts.map +0 -1
  1007. package/dist/types/model/queries/schema/SchemaQuery.d.ts +0 -8
  1008. package/dist/types/model/queries/schema/SchemaQuery.d.ts.map +0 -1
  1009. package/dist/types/model/queries/schema/index.d.ts +0 -2
  1010. package/dist/types/model/queries/schema/index.d.ts.map +0 -1
  1011. package/dist/types/model/queries/stages/StageBySlugQuery.d.ts +0 -12
  1012. package/dist/types/model/queries/stages/StageBySlugQuery.d.ts.map +0 -1
  1013. package/dist/types/model/queries/stages/StageQueryFactory.d.ts +0 -4
  1014. package/dist/types/model/queries/stages/StageQueryFactory.d.ts.map +0 -1
  1015. package/dist/types/model/queries/stages/StagesQuery.d.ts +0 -7
  1016. package/dist/types/model/queries/stages/StagesQuery.d.ts.map +0 -1
  1017. package/dist/types/model/queries/stages/index.d.ts +0 -4
  1018. package/dist/types/model/queries/stages/index.d.ts.map +0 -1
  1019. package/dist/types/model/stages/StageCreator.d.ts +0 -8
  1020. package/dist/types/model/stages/StageCreator.d.ts.map +0 -1
  1021. package/dist/types/model/stages/index.d.ts +0 -2
  1022. package/dist/types/model/stages/index.d.ts.map +0 -1
  1023. package/dist/types/resolvers/Resolver.d.ts +0 -16
  1024. package/dist/types/resolvers/Resolver.d.ts.map +0 -1
  1025. package/dist/types/resolvers/ResolverFactory.d.ts +0 -20
  1026. package/dist/types/resolvers/ResolverFactory.d.ts.map +0 -1
  1027. package/dist/types/resolvers/SystemResolverContext.d.ts +0 -21
  1028. package/dist/types/resolvers/SystemResolverContext.d.ts.map +0 -1
  1029. package/dist/types/resolvers/index.d.ts +0 -6
  1030. package/dist/types/resolvers/index.d.ts.map +0 -1
  1031. package/dist/types/resolvers/mutation/MigrateMutationResolver.d.ts +0 -13
  1032. package/dist/types/resolvers/mutation/MigrateMutationResolver.d.ts.map +0 -1
  1033. package/dist/types/resolvers/mutation/MigrationAlterMutationResolver.d.ts +0 -12
  1034. package/dist/types/resolvers/mutation/MigrationAlterMutationResolver.d.ts.map +0 -1
  1035. package/dist/types/resolvers/mutation/TruncateMutationResolver.d.ts +0 -11
  1036. package/dist/types/resolvers/mutation/TruncateMutationResolver.d.ts.map +0 -1
  1037. package/dist/types/resolvers/mutation/index.d.ts +0 -4
  1038. package/dist/types/resolvers/mutation/index.d.ts.map +0 -1
  1039. package/dist/types/resolvers/query/EventsQueryResolver.d.ts +0 -11
  1040. package/dist/types/resolvers/query/EventsQueryResolver.d.ts.map +0 -1
  1041. package/dist/types/resolvers/query/ExecutedMigrationsQueryResolver.d.ts +0 -8
  1042. package/dist/types/resolvers/query/ExecutedMigrationsQueryResolver.d.ts.map +0 -1
  1043. package/dist/types/resolvers/query/SchemaQueryResolver.d.ts +0 -7
  1044. package/dist/types/resolvers/query/SchemaQueryResolver.d.ts.map +0 -1
  1045. package/dist/types/resolvers/query/StagesQueryResolver.d.ts +0 -8
  1046. package/dist/types/resolvers/query/StagesQueryResolver.d.ts.map +0 -1
  1047. package/dist/types/resolvers/query/index.d.ts +0 -4
  1048. package/dist/types/resolvers/query/index.d.ts.map +0 -1
  1049. package/dist/types/resolvers/types/EventOldValuesResolver.d.ts +0 -6
  1050. package/dist/types/resolvers/types/EventOldValuesResolver.d.ts.map +0 -1
  1051. package/dist/types/resolvers/types/OldValuesHelpers.d.ts +0 -3
  1052. package/dist/types/resolvers/types/OldValuesHelpers.d.ts.map +0 -1
  1053. package/dist/types/resolvers/types/index.d.ts +0 -2
  1054. package/dist/types/resolvers/types/index.d.ts.map +0 -1
  1055. package/dist/types/schema/dev.graphql.d.ts +0 -4
  1056. package/dist/types/schema/dev.graphql.d.ts.map +0 -1
  1057. package/dist/types/schema/index.d.ts +0 -6
  1058. package/dist/types/schema/index.d.ts.map +0 -1
  1059. package/dist/types/schema/system.graphql.d.ts +0 -4
  1060. package/dist/types/schema/system.graphql.d.ts.map +0 -1
  1061. package/dist/types/schema/types.d.ts +0 -566
  1062. package/dist/types/schema/types.d.ts.map +0 -1
  1063. package/dist/types/tsconfig.tsbuildinfo +0 -1
  1064. package/dist/types/types.d.ts +0 -12
  1065. package/dist/types/types.d.ts.map +0 -1
  1066. package/dist/types/utils/MapSet.d.ts +0 -10
  1067. package/dist/types/utils/MapSet.d.ts.map +0 -1
  1068. package/dist/types/utils/Response.d.ts +0 -13
  1069. package/dist/types/utils/Response.d.ts.map +0 -1
  1070. package/dist/types/utils/assertNever.d.ts +0 -2
  1071. package/dist/types/utils/assertNever.d.ts.map +0 -1
  1072. package/dist/types/utils/batchQuery.d.ts +0 -3
  1073. package/dist/types/utils/batchQuery.d.ts.map +0 -1
  1074. package/dist/types/utils/exceptions.d.ts +0 -5
  1075. package/dist/types/utils/exceptions.d.ts.map +0 -1
  1076. package/dist/types/utils/index.d.ts +0 -8
  1077. package/dist/types/utils/index.d.ts.map +0 -1
  1078. package/dist/types/utils/providers.d.ts +0 -3
  1079. package/dist/types/utils/providers.d.ts.map +0 -1
  1080. package/dist/types/utils/set.d.ts +0 -3
  1081. package/dist/types/utils/set.d.ts.map +0 -1
  1082. package/dist/types/utils/tick.d.ts +0 -2
  1083. package/dist/types/utils/tick.d.ts.map +0 -1
  1084. package/dist/types/utils/tuple.d.ts +0 -2
  1085. package/dist/types/utils/tuple.d.ts.map +0 -1
  1086. package/dist/types/utils/uuid.d.ts +0 -4
  1087. package/dist/types/utils/uuid.d.ts.map +0 -1
  1088. package/tests/.eslintrc.cjs +0 -5
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Database = require("@contember/database");
4
- class TruncateEventsCommand {
5
- async execute({ db }) {
6
- return await Database.DeleteBuilder.create().from("event_data").execute(db);
7
- }
8
- }
9
- exports.TruncateEventsCommand = TruncateEventsCommand;
10
- //# sourceMappingURL=TruncateEventsCommand.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TruncateEventsCommand.cjs","sources":["../../../../../../../packages/engine-system-api/src/model/commands/events/TruncateEventsCommand.ts"],"sourcesContent":["import { DeleteBuilder } from '@contember/database'\nimport { Command } from '../Command'\n\nexport class TruncateEventsCommand implements Command<number> {\n\tpublic async execute({ db }: Command.Args): Promise<number> {\n\t\treturn await DeleteBuilder.create().from('event_data').execute(db)\n\t}\n}\n"],"names":["DeleteBuilder"],"mappings":";;;AAGO,MAAM,sBAAiD;AAAA,EAC7D,MAAa,QAAQ,EAAE,MAAqC;AACpD,WAAA,MAAMA,uBAAc,OAAO,EAAE,KAAK,YAAY,EAAE,QAAQ,EAAE;AAAA,EAAA;AAEnE;;"}
@@ -1,10 +0,0 @@
1
- import { DeleteBuilder } from "@contember/database";
2
- class TruncateEventsCommand {
3
- async execute({ db }) {
4
- return await DeleteBuilder.create().from("event_data").execute(db);
5
- }
6
- }
7
- export {
8
- TruncateEventsCommand
9
- };
10
- //# sourceMappingURL=TruncateEventsCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TruncateEventsCommand.js","sources":["../../../../../../../packages/engine-system-api/src/model/commands/events/TruncateEventsCommand.ts"],"sourcesContent":["import { DeleteBuilder } from '@contember/database'\nimport { Command } from '../Command'\n\nexport class TruncateEventsCommand implements Command<number> {\n\tpublic async execute({ db }: Command.Args): Promise<number> {\n\t\treturn await DeleteBuilder.create().from('event_data').execute(db)\n\t}\n}\n"],"names":[],"mappings":";AAGO,MAAM,sBAAiD;AAAA,EAC7D,MAAa,QAAQ,EAAE,MAAqC;AACpD,WAAA,MAAM,cAAc,OAAO,EAAE,KAAK,YAAY,EAAE,QAAQ,EAAE;AAAA,EAAA;AAEnE;"}
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Database = require("@contember/database");
4
- class DeleteMigrationCommand {
5
- constructor(version) {
6
- this.version = version;
7
- }
8
- async execute({ db }) {
9
- const result = await Database.DeleteBuilder.create().from("schema_migration").where({
10
- version: this.version
11
- }).execute(db);
12
- return result > 0;
13
- }
14
- }
15
- exports.DeleteMigrationCommand = DeleteMigrationCommand;
16
- //# sourceMappingURL=DeleteMigrationCommand.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteMigrationCommand.cjs","sources":["../../../../../../../packages/engine-system-api/src/model/commands/migrations/DeleteMigrationCommand.ts"],"sourcesContent":["import { DeleteBuilder } from '@contember/database'\nimport { Command } from '../Command'\n\nexport class DeleteMigrationCommand implements Command<boolean> {\n\tconstructor(private readonly version: string) {}\n\n\tpublic async execute({ db }: Command.Args): Promise<boolean> {\n\t\tconst result = await DeleteBuilder.create() //\n\t\t\t.from('schema_migration')\n\t\t\t.where({\n\t\t\t\tversion: this.version,\n\t\t\t})\n\t\t\t.execute(db)\n\t\treturn result > 0\n\t}\n}\n"],"names":["DeleteBuilder"],"mappings":";;;AAGO,MAAM,uBAAmD;AAAA,EAC/D,YAA6B,SAAiB;AAAjB,SAAA,UAAA;AAAA,EAAA;AAAA,EAE7B,MAAa,QAAQ,EAAE,MAAsC;AACtD,UAAA,SAAS,MAAMA,uBAAc,SACjC,KAAK,kBAAkB,EACvB,MAAM;AAAA,MACN,SAAS,KAAK;AAAA,IAAA,CACd,EACA,QAAQ,EAAE;AACZ,WAAO,SAAS;AAAA,EAAA;AAElB;;"}
@@ -1,16 +0,0 @@
1
- import { DeleteBuilder } from "@contember/database";
2
- class DeleteMigrationCommand {
3
- constructor(version) {
4
- this.version = version;
5
- }
6
- async execute({ db }) {
7
- const result = await DeleteBuilder.create().from("schema_migration").where({
8
- version: this.version
9
- }).execute(db);
10
- return result > 0;
11
- }
12
- }
13
- export {
14
- DeleteMigrationCommand
15
- };
16
- //# sourceMappingURL=DeleteMigrationCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeleteMigrationCommand.js","sources":["../../../../../../../packages/engine-system-api/src/model/commands/migrations/DeleteMigrationCommand.ts"],"sourcesContent":["import { DeleteBuilder } from '@contember/database'\nimport { Command } from '../Command'\n\nexport class DeleteMigrationCommand implements Command<boolean> {\n\tconstructor(private readonly version: string) {}\n\n\tpublic async execute({ db }: Command.Args): Promise<boolean> {\n\t\tconst result = await DeleteBuilder.create() //\n\t\t\t.from('schema_migration')\n\t\t\t.where({\n\t\t\t\tversion: this.version,\n\t\t\t})\n\t\t\t.execute(db)\n\t\treturn result > 0\n\t}\n}\n"],"names":[],"mappings":";AAGO,MAAM,uBAAmD;AAAA,EAC/D,YAA6B,SAAiB;AAAjB,SAAA,UAAA;AAAA,EAAA;AAAA,EAE7B,MAAa,QAAQ,EAAE,MAAsC;AACtD,UAAA,SAAS,MAAM,cAAc,SACjC,KAAK,kBAAkB,EACvB,MAAM;AAAA,MACN,SAAS,KAAK;AAAA,IAAA,CACd,EACA,QAAQ,EAAE;AACZ,WAAO,SAAS;AAAA,EAAA;AAElB;"}
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Database = require("@contember/database");
4
- const schemaMigrations = require("@contember/schema-migrations");
5
- const ExecutedMigrationByVersionQuery = require("../../queries/migrations/ExecutedMigrationByVersionQuery.cjs");
6
- require("../../../schema/dev.graphql.cjs");
7
- require("../../../schema/system.graphql.cjs");
8
- class ModifyMigrationCommand {
9
- constructor(version, migration) {
10
- this.version = version;
11
- this.migration = migration;
12
- }
13
- async execute({ db }) {
14
- const current = await db.createQueryHandler().fetch(new ExecutedMigrationByVersionQuery.ExecutedMigrationByVersionQuery(this.version));
15
- if (!current) {
16
- return false;
17
- }
18
- const newMigration = {
19
- version: current.version,
20
- name: current.name,
21
- formatVersion: current.formatVersion,
22
- modifications: current.modifications,
23
- ...this.migration
24
- };
25
- const values = {
26
- version: newMigration.version,
27
- name: newMigration.name,
28
- migration: JSON.stringify(newMigration),
29
- checksum: schemaMigrations.calculateMigrationChecksum(newMigration)
30
- };
31
- await Database.UpdateBuilder.create().table("schema_migration").values(values).where({
32
- version: this.version
33
- }).execute(db);
34
- return true;
35
- }
36
- }
37
- exports.ModifyMigrationCommand = ModifyMigrationCommand;
38
- //# sourceMappingURL=ModifyMigrationCommand.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModifyMigrationCommand.cjs","sources":["../../../../../../../packages/engine-system-api/src/model/commands/migrations/ModifyMigrationCommand.ts"],"sourcesContent":["import { QueryBuilder, UpdateBuilder } from '@contember/database'\nimport { calculateMigrationChecksum, Migration } from '@contember/schema-migrations'\nimport { Command } from '../Command'\nimport { ExecutedMigrationByVersionQuery } from '../../queries'\n\nexport class ModifyMigrationCommand implements Command<boolean> {\n\tconstructor(private readonly version: string, private readonly migration: Partial<Migration>) {}\n\n\tpublic async execute({ db }: Command.Args): Promise<boolean> {\n\t\tconst current = await db.createQueryHandler().fetch(new ExecutedMigrationByVersionQuery(this.version))\n\t\tif (!current) {\n\t\t\treturn false\n\t\t}\n\t\tconst newMigration = {\n\t\t\tversion: current.version,\n\t\t\tname: current.name,\n\t\t\tformatVersion: current.formatVersion,\n\t\t\tmodifications: current.modifications,\n\t\t\t...this.migration,\n\t\t}\n\t\tconst values: QueryBuilder.Values = {\n\t\t\tversion: newMigration.version,\n\t\t\tname: newMigration.name,\n\t\t\tmigration: JSON.stringify(newMigration),\n\t\t\tchecksum: calculateMigrationChecksum(newMigration),\n\t\t}\n\t\tawait UpdateBuilder.create() //\n\t\t\t.table('schema_migration')\n\t\t\t.values(values)\n\t\t\t.where({\n\t\t\t\tversion: this.version,\n\t\t\t})\n\t\t\t.execute(db)\n\t\treturn true\n\t}\n}\n"],"names":["ExecutedMigrationByVersionQuery","calculateMigrationChecksum","UpdateBuilder"],"mappings":";;;;;;;AAKO,MAAM,uBAAmD;AAAA,EAC/D,YAA6B,SAAkC,WAA+B;AAAjE,SAAA,UAAA;AAAkC,SAAA,YAAA;AAAA,EAAA;AAAA,EAE/D,MAAa,QAAQ,EAAE,MAAsC;AACtD,UAAA,UAAU,MAAM,GAAG,mBAAmB,EAAE,MAAM,IAAIA,gCAAA,gCAAgC,KAAK,OAAO,CAAC;AACrG,QAAI,CAAC,SAAS;AACN,aAAA;AAAA,IAAA;AAER,UAAM,eAAe;AAAA,MACpB,SAAS,QAAQ;AAAA,MACjB,MAAM,QAAQ;AAAA,MACd,eAAe,QAAQ;AAAA,MACvB,eAAe,QAAQ;AAAA,MACvB,GAAG,KAAK;AAAA,IACT;AACA,UAAM,SAA8B;AAAA,MACnC,SAAS,aAAa;AAAA,MACtB,MAAM,aAAa;AAAA,MACnB,WAAW,KAAK,UAAU,YAAY;AAAA,MACtC,UAAUC,4CAA2B,YAAY;AAAA,IAClD;AACM,UAAAC,SAAA,cAAc,SAClB,MAAM,kBAAkB,EACxB,OAAO,MAAM,EACb,MAAM;AAAA,MACN,SAAS,KAAK;AAAA,IAAA,CACd,EACA,QAAQ,EAAE;AACL,WAAA;AAAA,EAAA;AAET;;"}
@@ -1,38 +0,0 @@
1
- import { UpdateBuilder as UpdateBuilder$1 } from "@contember/database";
2
- import { calculateMigrationChecksum } from "@contember/schema-migrations";
3
- import { ExecutedMigrationByVersionQuery } from "../../queries/migrations/ExecutedMigrationByVersionQuery.js";
4
- import "../../../schema/dev.graphql.js";
5
- import "../../../schema/system.graphql.js";
6
- class ModifyMigrationCommand {
7
- constructor(version, migration) {
8
- this.version = version;
9
- this.migration = migration;
10
- }
11
- async execute({ db }) {
12
- const current = await db.createQueryHandler().fetch(new ExecutedMigrationByVersionQuery(this.version));
13
- if (!current) {
14
- return false;
15
- }
16
- const newMigration = {
17
- version: current.version,
18
- name: current.name,
19
- formatVersion: current.formatVersion,
20
- modifications: current.modifications,
21
- ...this.migration
22
- };
23
- const values = {
24
- version: newMigration.version,
25
- name: newMigration.name,
26
- migration: JSON.stringify(newMigration),
27
- checksum: calculateMigrationChecksum(newMigration)
28
- };
29
- await UpdateBuilder$1.create().table("schema_migration").values(values).where({
30
- version: this.version
31
- }).execute(db);
32
- return true;
33
- }
34
- }
35
- export {
36
- ModifyMigrationCommand
37
- };
38
- //# sourceMappingURL=ModifyMigrationCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ModifyMigrationCommand.js","sources":["../../../../../../../packages/engine-system-api/src/model/commands/migrations/ModifyMigrationCommand.ts"],"sourcesContent":["import { QueryBuilder, UpdateBuilder } from '@contember/database'\nimport { calculateMigrationChecksum, Migration } from '@contember/schema-migrations'\nimport { Command } from '../Command'\nimport { ExecutedMigrationByVersionQuery } from '../../queries'\n\nexport class ModifyMigrationCommand implements Command<boolean> {\n\tconstructor(private readonly version: string, private readonly migration: Partial<Migration>) {}\n\n\tpublic async execute({ db }: Command.Args): Promise<boolean> {\n\t\tconst current = await db.createQueryHandler().fetch(new ExecutedMigrationByVersionQuery(this.version))\n\t\tif (!current) {\n\t\t\treturn false\n\t\t}\n\t\tconst newMigration = {\n\t\t\tversion: current.version,\n\t\t\tname: current.name,\n\t\t\tformatVersion: current.formatVersion,\n\t\t\tmodifications: current.modifications,\n\t\t\t...this.migration,\n\t\t}\n\t\tconst values: QueryBuilder.Values = {\n\t\t\tversion: newMigration.version,\n\t\t\tname: newMigration.name,\n\t\t\tmigration: JSON.stringify(newMigration),\n\t\t\tchecksum: calculateMigrationChecksum(newMigration),\n\t\t}\n\t\tawait UpdateBuilder.create() //\n\t\t\t.table('schema_migration')\n\t\t\t.values(values)\n\t\t\t.where({\n\t\t\t\tversion: this.version,\n\t\t\t})\n\t\t\t.execute(db)\n\t\treturn true\n\t}\n}\n"],"names":["UpdateBuilder"],"mappings":";;;;;AAKO,MAAM,uBAAmD;AAAA,EAC/D,YAA6B,SAAkC,WAA+B;AAAjE,SAAA,UAAA;AAAkC,SAAA,YAAA;AAAA,EAAA;AAAA,EAE/D,MAAa,QAAQ,EAAE,MAAsC;AACtD,UAAA,UAAU,MAAM,GAAG,mBAAmB,EAAE,MAAM,IAAI,gCAAgC,KAAK,OAAO,CAAC;AACrG,QAAI,CAAC,SAAS;AACN,aAAA;AAAA,IAAA;AAER,UAAM,eAAe;AAAA,MACpB,SAAS,QAAQ;AAAA,MACjB,MAAM,QAAQ;AAAA,MACd,eAAe,QAAQ;AAAA,MACvB,eAAe,QAAQ;AAAA,MACvB,GAAG,KAAK;AAAA,IACT;AACA,UAAM,SAA8B;AAAA,MACnC,SAAS,aAAa;AAAA,MACtB,MAAM,aAAa;AAAA,MACnB,WAAW,KAAK,UAAU,YAAY;AAAA,MACtC,UAAU,2BAA2B,YAAY;AAAA,IAClD;AACM,UAAAA,gBAAc,SAClB,MAAM,kBAAkB,EACxB,OAAO,MAAM,EACb,MAAM;AAAA,MACN,SAAS,KAAK;AAAA,IAAA,CACd,EACA,QAAQ,EAAE;AACL,WAAA;AAAA,EAAA;AAET;"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Database = require("@contember/database");
4
- const schemaMigrations = require("@contember/schema-migrations");
5
- class SaveMigrationCommand {
6
- constructor(migration) {
7
- this.migration = migration;
8
- }
9
- async execute({ db }) {
10
- const { type, ...migrationData } = this.migration;
11
- if ("queries" in migrationData) {
12
- migrationData.queries = [];
13
- }
14
- const values = {
15
- version: this.migration.version,
16
- name: this.migration.name,
17
- type,
18
- migration: JSON.stringify(migrationData),
19
- checksum: this.migration.type === "schema" ? schemaMigrations.calculateMigrationChecksum(this.migration) : null
20
- };
21
- const latestId = (await Database.SelectBuilder.create().from("schema_migration").select(new Database.Literal("max(id)"), "id").getResult(db))[0]?.id ?? 0;
22
- const newId = latestId + 1;
23
- await Database.InsertBuilder.create().into("schema_migration").values({ id: newId, ...values }).execute(db);
24
- return newId;
25
- }
26
- }
27
- exports.SaveMigrationCommand = SaveMigrationCommand;
28
- //# sourceMappingURL=SaveMigrationCommand.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SaveMigrationCommand.cjs","sources":["../../../../../../../packages/engine-system-api/src/model/commands/migrations/SaveMigrationCommand.ts"],"sourcesContent":["import { InsertBuilder, Literal, QueryBuilder, SelectBuilder } from '@contember/database'\nimport { calculateMigrationChecksum } from '@contember/schema-migrations'\nimport { Command } from '../Command'\nimport { MigrationInput } from '../../migrations/MigrationInput'\n\nexport class SaveMigrationCommand implements Command<number> {\n\tconstructor(private readonly migration: MigrationInput) {}\n\n\tpublic async execute({ db }: Command.Args): Promise<number> {\n\t\tconst { type, ...migrationData } = this.migration\n\n\t\tif ('queries' in migrationData) {\n\t\t\t// in case of content migration, we don't want to store the queries\n\t\t\tmigrationData.queries = []\n\t\t}\n\n\t\tconst values: QueryBuilder.Values = {\n\t\t\tversion: this.migration.version,\n\t\t\tname: this.migration.name,\n\t\t\ttype,\n\t\t\tmigration: JSON.stringify(migrationData),\n\t\t\tchecksum: this.migration.type === 'schema' ? calculateMigrationChecksum(this.migration) : null,\n\t\t}\n\n\t\tconst latestId = (await SelectBuilder.create<{ id: number }>()\n\t\t\t.from('schema_migration')\n\t\t\t.select(new Literal('max(id)'), 'id')\n\t\t\t.getResult(db)\n\t\t)[0]?.id ?? 0\n\n\t\tconst newId = latestId + 1\n\t\tconst result = await InsertBuilder.create()\n\t\t\t.into('schema_migration')\n\t\t\t.values({ id: newId, ...values })\n\t\t\t.execute(db)\n\n\t\treturn newId\n\t}\n}\n"],"names":["calculateMigrationChecksum","SelectBuilder","Literal","InsertBuilder"],"mappings":";;;;AAKO,MAAM,qBAAgD;AAAA,EAC5D,YAA6B,WAA2B;AAA3B,SAAA,YAAA;AAAA,EAAA;AAAA,EAE7B,MAAa,QAAQ,EAAE,MAAqC;AAC3D,UAAM,EAAE,MAAM,GAAG,kBAAkB,KAAK;AAExC,QAAI,aAAa,eAAe;AAE/B,oBAAc,UAAU,CAAC;AAAA,IAAA;AAG1B,UAAM,SAA8B;AAAA,MACnC,SAAS,KAAK,UAAU;AAAA,MACxB,MAAM,KAAK,UAAU;AAAA,MACrB;AAAA,MACA,WAAW,KAAK,UAAU,aAAa;AAAA,MACvC,UAAU,KAAK,UAAU,SAAS,WAAWA,4CAA2B,KAAK,SAAS,IAAI;AAAA,IAC3F;AAEM,UAAA,YAAY,MAAMC,uBAAc,SACpC,KAAK,kBAAkB,EACvB,OAAO,IAAIC,iBAAQ,SAAS,GAAG,IAAI,EACnC,UAAU,EAAE,GACZ,CAAC,GAAG,MAAM;AAEZ,UAAM,QAAQ,WAAW;AACV,UAAMC,SAAA,cAAc,OAAO,EACxC,KAAK,kBAAkB,EACvB,OAAO,EAAE,IAAI,OAAO,GAAG,QAAQ,EAC/B,QAAQ,EAAE;AAEL,WAAA;AAAA,EAAA;AAET;;"}
@@ -1,28 +0,0 @@
1
- import { SelectBuilder, Literal, InsertBuilder as InsertBuilder$1 } from "@contember/database";
2
- import { calculateMigrationChecksum } from "@contember/schema-migrations";
3
- class SaveMigrationCommand {
4
- constructor(migration) {
5
- this.migration = migration;
6
- }
7
- async execute({ db }) {
8
- const { type, ...migrationData } = this.migration;
9
- if ("queries" in migrationData) {
10
- migrationData.queries = [];
11
- }
12
- const values = {
13
- version: this.migration.version,
14
- name: this.migration.name,
15
- type,
16
- migration: JSON.stringify(migrationData),
17
- checksum: this.migration.type === "schema" ? calculateMigrationChecksum(this.migration) : null
18
- };
19
- const latestId = (await SelectBuilder.create().from("schema_migration").select(new Literal("max(id)"), "id").getResult(db))[0]?.id ?? 0;
20
- const newId = latestId + 1;
21
- await InsertBuilder$1.create().into("schema_migration").values({ id: newId, ...values }).execute(db);
22
- return newId;
23
- }
24
- }
25
- export {
26
- SaveMigrationCommand
27
- };
28
- //# sourceMappingURL=SaveMigrationCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SaveMigrationCommand.js","sources":["../../../../../../../packages/engine-system-api/src/model/commands/migrations/SaveMigrationCommand.ts"],"sourcesContent":["import { InsertBuilder, Literal, QueryBuilder, SelectBuilder } from '@contember/database'\nimport { calculateMigrationChecksum } from '@contember/schema-migrations'\nimport { Command } from '../Command'\nimport { MigrationInput } from '../../migrations/MigrationInput'\n\nexport class SaveMigrationCommand implements Command<number> {\n\tconstructor(private readonly migration: MigrationInput) {}\n\n\tpublic async execute({ db }: Command.Args): Promise<number> {\n\t\tconst { type, ...migrationData } = this.migration\n\n\t\tif ('queries' in migrationData) {\n\t\t\t// in case of content migration, we don't want to store the queries\n\t\t\tmigrationData.queries = []\n\t\t}\n\n\t\tconst values: QueryBuilder.Values = {\n\t\t\tversion: this.migration.version,\n\t\t\tname: this.migration.name,\n\t\t\ttype,\n\t\t\tmigration: JSON.stringify(migrationData),\n\t\t\tchecksum: this.migration.type === 'schema' ? calculateMigrationChecksum(this.migration) : null,\n\t\t}\n\n\t\tconst latestId = (await SelectBuilder.create<{ id: number }>()\n\t\t\t.from('schema_migration')\n\t\t\t.select(new Literal('max(id)'), 'id')\n\t\t\t.getResult(db)\n\t\t)[0]?.id ?? 0\n\n\t\tconst newId = latestId + 1\n\t\tconst result = await InsertBuilder.create()\n\t\t\t.into('schema_migration')\n\t\t\t.values({ id: newId, ...values })\n\t\t\t.execute(db)\n\n\t\treturn newId\n\t}\n}\n"],"names":["InsertBuilder"],"mappings":";;AAKO,MAAM,qBAAgD;AAAA,EAC5D,YAA6B,WAA2B;AAA3B,SAAA,YAAA;AAAA,EAAA;AAAA,EAE7B,MAAa,QAAQ,EAAE,MAAqC;AAC3D,UAAM,EAAE,MAAM,GAAG,kBAAkB,KAAK;AAExC,QAAI,aAAa,eAAe;AAE/B,oBAAc,UAAU,CAAC;AAAA,IAAA;AAG1B,UAAM,SAA8B;AAAA,MACnC,SAAS,KAAK,UAAU;AAAA,MACxB,MAAM,KAAK,UAAU;AAAA,MACrB;AAAA,MACA,WAAW,KAAK,UAAU,aAAa;AAAA,MACvC,UAAU,KAAK,UAAU,SAAS,WAAW,2BAA2B,KAAK,SAAS,IAAI;AAAA,IAC3F;AAEM,UAAA,YAAY,MAAM,cAAc,SACpC,KAAK,kBAAkB,EACvB,OAAO,IAAI,QAAQ,SAAS,GAAG,IAAI,EACnC,UAAU,EAAE,GACZ,CAAC,GAAG,MAAM;AAEZ,UAAM,QAAQ,WAAW;AACV,UAAMA,gBAAc,OAAO,EACxC,KAAK,kBAAkB,EACvB,OAAO,EAAE,IAAI,OAAO,GAAG,QAAQ,EAC/B,QAAQ,EAAE;AAEL,WAAA;AAAA,EAAA;AAET;"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Database = require("@contember/database");
4
- class SaveSchemaCommand {
5
- constructor(input) {
6
- this.input = input;
7
- }
8
- async execute({ db }) {
9
- if (!this.input.meta.updatedAt) {
10
- throw new Error("Cannot persist empty schema");
11
- }
12
- await Database.InsertBuilder.create().into("schema").values({
13
- schema: this.input.schema,
14
- updated_at: this.input.meta.updatedAt.toISOString(),
15
- checksum: this.input.meta.checksum,
16
- version: this.input.meta.version,
17
- migration_id: this.input.meta.id
18
- }).onConflict(Database.ConflictActionType.update, ["id"], {
19
- schema: (expr) => expr.select(["excluded", "schema"]),
20
- updated_at: (expr) => expr.select(["excluded", "updated_at"]),
21
- checksum: (expr) => expr.select(["excluded", "checksum"]),
22
- version: (expr) => expr.select(["excluded", "version"]),
23
- migration_id: (expr) => expr.select(["excluded", "migration_id"])
24
- }).execute(db);
25
- }
26
- }
27
- exports.SaveSchemaCommand = SaveSchemaCommand;
28
- //# sourceMappingURL=SaveSchemaCommand.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SaveSchemaCommand.cjs","sources":["../../../../../../../packages/engine-system-api/src/model/commands/schema/SaveSchemaCommand.ts"],"sourcesContent":["import { ConflictActionType, InsertBuilder } from '@contember/database'\nimport { Command } from '../Command'\nimport { SchemaWithMeta } from '../../migrations'\n\nexport class SaveSchemaCommand implements Command<void> {\n\tconstructor(private readonly input: SchemaWithMeta) {}\n\n\tpublic async execute({ db }: Command.Args): Promise<void> {\n\t\tif (!this.input.meta.updatedAt) {\n\t\t\tthrow new Error('Cannot persist empty schema')\n\t\t}\n\n\t\tawait InsertBuilder.create()\n\t\t\t.into('schema')\n\t\t\t.values({\n\t\t\t\tschema: this.input.schema,\n\t\t\t\tupdated_at: this.input.meta.updatedAt.toISOString(),\n\t\t\t\tchecksum: this.input.meta.checksum,\n\t\t\t\tversion: this.input.meta.version,\n\t\t\t\tmigration_id: this.input.meta.id,\n\t\t\t})\n\t\t\t.onConflict(ConflictActionType.update, ['id'], {\n\t\t\t\tschema: expr => expr.select(['excluded', 'schema']),\n\t\t\t\tupdated_at: expr => expr.select(['excluded', 'updated_at']),\n\t\t\t\tchecksum: expr => expr.select(['excluded', 'checksum']),\n\t\t\t\tversion: expr => expr.select(['excluded', 'version']),\n\t\t\t\tmigration_id: expr => expr.select(['excluded', 'migration_id']),\n\t\t\t})\n\t\t\t.execute(db)\n\t}\n}\n"],"names":["InsertBuilder","ConflictActionType"],"mappings":";;;AAIO,MAAM,kBAA2C;AAAA,EACvD,YAA6B,OAAuB;AAAvB,SAAA,QAAA;AAAA,EAAA;AAAA,EAE7B,MAAa,QAAQ,EAAE,MAAmC;AACzD,QAAI,CAAC,KAAK,MAAM,KAAK,WAAW;AACzB,YAAA,IAAI,MAAM,6BAA6B;AAAA,IAAA;AAG9C,UAAMA,SAAAA,cAAc,OAAO,EACzB,KAAK,QAAQ,EACb,OAAO;AAAA,MACP,QAAQ,KAAK,MAAM;AAAA,MACnB,YAAY,KAAK,MAAM,KAAK,UAAU,YAAY;AAAA,MAClD,UAAU,KAAK,MAAM,KAAK;AAAA,MAC1B,SAAS,KAAK,MAAM,KAAK;AAAA,MACzB,cAAc,KAAK,MAAM,KAAK;AAAA,IAC9B,CAAA,EACA,WAAWC,SAAAA,mBAAmB,QAAQ,CAAC,IAAI,GAAG;AAAA,MAC9C,QAAQ,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,QAAQ,CAAC;AAAA,MAClD,YAAY,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,YAAY,CAAC;AAAA,MAC1D,UAAU,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,UAAU,CAAC;AAAA,MACtD,SAAS,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,SAAS,CAAC;AAAA,MACpD,cAAc,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,cAAc,CAAC;AAAA,IAAA,CAC9D,EACA,QAAQ,EAAE;AAAA,EAAA;AAEd;;"}
@@ -1,28 +0,0 @@
1
- import { InsertBuilder as InsertBuilder$1, ConflictActionType } from "@contember/database";
2
- class SaveSchemaCommand {
3
- constructor(input) {
4
- this.input = input;
5
- }
6
- async execute({ db }) {
7
- if (!this.input.meta.updatedAt) {
8
- throw new Error("Cannot persist empty schema");
9
- }
10
- await InsertBuilder$1.create().into("schema").values({
11
- schema: this.input.schema,
12
- updated_at: this.input.meta.updatedAt.toISOString(),
13
- checksum: this.input.meta.checksum,
14
- version: this.input.meta.version,
15
- migration_id: this.input.meta.id
16
- }).onConflict(ConflictActionType.update, ["id"], {
17
- schema: (expr) => expr.select(["excluded", "schema"]),
18
- updated_at: (expr) => expr.select(["excluded", "updated_at"]),
19
- checksum: (expr) => expr.select(["excluded", "checksum"]),
20
- version: (expr) => expr.select(["excluded", "version"]),
21
- migration_id: (expr) => expr.select(["excluded", "migration_id"])
22
- }).execute(db);
23
- }
24
- }
25
- export {
26
- SaveSchemaCommand
27
- };
28
- //# sourceMappingURL=SaveSchemaCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SaveSchemaCommand.js","sources":["../../../../../../../packages/engine-system-api/src/model/commands/schema/SaveSchemaCommand.ts"],"sourcesContent":["import { ConflictActionType, InsertBuilder } from '@contember/database'\nimport { Command } from '../Command'\nimport { SchemaWithMeta } from '../../migrations'\n\nexport class SaveSchemaCommand implements Command<void> {\n\tconstructor(private readonly input: SchemaWithMeta) {}\n\n\tpublic async execute({ db }: Command.Args): Promise<void> {\n\t\tif (!this.input.meta.updatedAt) {\n\t\t\tthrow new Error('Cannot persist empty schema')\n\t\t}\n\n\t\tawait InsertBuilder.create()\n\t\t\t.into('schema')\n\t\t\t.values({\n\t\t\t\tschema: this.input.schema,\n\t\t\t\tupdated_at: this.input.meta.updatedAt.toISOString(),\n\t\t\t\tchecksum: this.input.meta.checksum,\n\t\t\t\tversion: this.input.meta.version,\n\t\t\t\tmigration_id: this.input.meta.id,\n\t\t\t})\n\t\t\t.onConflict(ConflictActionType.update, ['id'], {\n\t\t\t\tschema: expr => expr.select(['excluded', 'schema']),\n\t\t\t\tupdated_at: expr => expr.select(['excluded', 'updated_at']),\n\t\t\t\tchecksum: expr => expr.select(['excluded', 'checksum']),\n\t\t\t\tversion: expr => expr.select(['excluded', 'version']),\n\t\t\t\tmigration_id: expr => expr.select(['excluded', 'migration_id']),\n\t\t\t})\n\t\t\t.execute(db)\n\t}\n}\n"],"names":["InsertBuilder"],"mappings":";AAIO,MAAM,kBAA2C;AAAA,EACvD,YAA6B,OAAuB;AAAvB,SAAA,QAAA;AAAA,EAAA;AAAA,EAE7B,MAAa,QAAQ,EAAE,MAAmC;AACzD,QAAI,CAAC,KAAK,MAAM,KAAK,WAAW;AACzB,YAAA,IAAI,MAAM,6BAA6B;AAAA,IAAA;AAG9C,UAAMA,gBAAc,OAAO,EACzB,KAAK,QAAQ,EACb,OAAO;AAAA,MACP,QAAQ,KAAK,MAAM;AAAA,MACnB,YAAY,KAAK,MAAM,KAAK,UAAU,YAAY;AAAA,MAClD,UAAU,KAAK,MAAM,KAAK;AAAA,MAC1B,SAAS,KAAK,MAAM,KAAK;AAAA,MACzB,cAAc,KAAK,MAAM,KAAK;AAAA,IAC9B,CAAA,EACA,WAAW,mBAAmB,QAAQ,CAAC,IAAI,GAAG;AAAA,MAC9C,QAAQ,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,QAAQ,CAAC;AAAA,MAClD,YAAY,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,YAAY,CAAC;AAAA,MAC1D,UAAU,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,UAAU,CAAC;AAAA,MACtD,SAAS,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,SAAS,CAAC;AAAA,MACpD,cAAc,CAAQ,SAAA,KAAK,OAAO,CAAC,YAAY,cAAc,CAAC;AAAA,IAAA,CAC9D,EACA,QAAQ,EAAE;AAAA,EAAA;AAEd;"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Database = require("@contember/database");
4
- const stageHelpers = require("../../helpers/stageHelpers.cjs");
5
- require("@contember/schema-utils");
6
- class CreateStageCommand {
7
- constructor(stage) {
8
- this.stage = stage;
9
- }
10
- async execute({ db, providers }) {
11
- const schemaName = this.stage.schema ?? stageHelpers.formatSchemaName(this.stage);
12
- await Database.InsertBuilder.create().into("stage").values({
13
- id: providers.uuid(),
14
- name: this.stage.name,
15
- slug: this.stage.slug,
16
- schema: schemaName
17
- }).execute(db);
18
- await db.query("CREATE SCHEMA IF NOT EXISTS " + Database.wrapIdentifier(schemaName));
19
- }
20
- }
21
- exports.CreateStageCommand = CreateStageCommand;
22
- //# sourceMappingURL=CreateStageCommand.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateStageCommand.cjs","sources":["../../../../../../../packages/engine-system-api/src/model/commands/stages/CreateStageCommand.ts"],"sourcesContent":["import { InsertBuilder, wrapIdentifier } from '@contember/database'\nimport { StageConfig } from '../../../types'\nimport { Command } from '../Command'\nimport { formatSchemaName } from '../../helpers'\n\nexport class CreateStageCommand implements Command<void> {\n\tconstructor(private readonly stage: StageConfig) {}\n\n\tpublic async execute({ db, providers }: Command.Args): Promise<void> {\n\t\tconst schemaName = this.stage.schema ?? formatSchemaName(this.stage)\n\t\tawait InsertBuilder.create()\n\t\t\t.into('stage')\n\t\t\t.values({\n\t\t\t\tid: providers.uuid(),\n\t\t\t\tname: this.stage.name,\n\t\t\t\tslug: this.stage.slug,\n\t\t\t\tschema: schemaName,\n\t\t\t})\n\t\t\t.execute(db)\n\n\t\tawait db.query('CREATE SCHEMA IF NOT EXISTS ' + wrapIdentifier(schemaName))\n\t}\n}\n"],"names":["formatSchemaName","InsertBuilder","wrapIdentifier"],"mappings":";;;;;AAKO,MAAM,mBAA4C;AAAA,EACxD,YAA6B,OAAoB;AAApB,SAAA,QAAA;AAAA,EAAA;AAAA,EAE7B,MAAa,QAAQ,EAAE,IAAI,aAA0C;AACpE,UAAM,aAAa,KAAK,MAAM,UAAUA,aAAA,iBAAiB,KAAK,KAAK;AACnE,UAAMC,SAAAA,cAAc,OAAO,EACzB,KAAK,OAAO,EACZ,OAAO;AAAA,MACP,IAAI,UAAU,KAAK;AAAA,MACnB,MAAM,KAAK,MAAM;AAAA,MACjB,MAAM,KAAK,MAAM;AAAA,MACjB,QAAQ;AAAA,IAAA,CACR,EACA,QAAQ,EAAE;AAEZ,UAAM,GAAG,MAAM,iCAAiCC,SAAA,eAAe,UAAU,CAAC;AAAA,EAAA;AAE5E;;"}
@@ -1,22 +0,0 @@
1
- import { InsertBuilder as InsertBuilder$1, wrapIdentifier } from "@contember/database";
2
- import { formatSchemaName } from "../../helpers/stageHelpers.js";
3
- import "@contember/schema-utils";
4
- class CreateStageCommand {
5
- constructor(stage) {
6
- this.stage = stage;
7
- }
8
- async execute({ db, providers }) {
9
- const schemaName = this.stage.schema ?? formatSchemaName(this.stage);
10
- await InsertBuilder$1.create().into("stage").values({
11
- id: providers.uuid(),
12
- name: this.stage.name,
13
- slug: this.stage.slug,
14
- schema: schemaName
15
- }).execute(db);
16
- await db.query("CREATE SCHEMA IF NOT EXISTS " + wrapIdentifier(schemaName));
17
- }
18
- }
19
- export {
20
- CreateStageCommand
21
- };
22
- //# sourceMappingURL=CreateStageCommand.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CreateStageCommand.js","sources":["../../../../../../../packages/engine-system-api/src/model/commands/stages/CreateStageCommand.ts"],"sourcesContent":["import { InsertBuilder, wrapIdentifier } from '@contember/database'\nimport { StageConfig } from '../../../types'\nimport { Command } from '../Command'\nimport { formatSchemaName } from '../../helpers'\n\nexport class CreateStageCommand implements Command<void> {\n\tconstructor(private readonly stage: StageConfig) {}\n\n\tpublic async execute({ db, providers }: Command.Args): Promise<void> {\n\t\tconst schemaName = this.stage.schema ?? formatSchemaName(this.stage)\n\t\tawait InsertBuilder.create()\n\t\t\t.into('stage')\n\t\t\t.values({\n\t\t\t\tid: providers.uuid(),\n\t\t\t\tname: this.stage.name,\n\t\t\t\tslug: this.stage.slug,\n\t\t\t\tschema: schemaName,\n\t\t\t})\n\t\t\t.execute(db)\n\n\t\tawait db.query('CREATE SCHEMA IF NOT EXISTS ' + wrapIdentifier(schemaName))\n\t}\n}\n"],"names":["InsertBuilder"],"mappings":";;;AAKO,MAAM,mBAA4C;AAAA,EACxD,YAA6B,OAAoB;AAApB,SAAA,QAAA;AAAA,EAAA;AAAA,EAE7B,MAAa,QAAQ,EAAE,IAAI,aAA0C;AACpE,UAAM,aAAa,KAAK,MAAM,UAAU,iBAAiB,KAAK,KAAK;AACnE,UAAMA,gBAAc,OAAO,EACzB,KAAK,OAAO,EACZ,OAAO;AAAA,MACP,IAAI,UAAU,KAAK;AAAA,MACnB,MAAM,KAAK,MAAM;AAAA,MACjB,MAAM,KAAK,MAAM;AAAA,MACjB,QAAQ;AAAA,IAAA,CACR,EACA,QAAQ,EAAE;AAEZ,UAAM,GAAG,MAAM,iCAAiC,eAAe,UAAU,CAAC;AAAA,EAAA;AAE5E;"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const Database = require("@contember/database");
4
- const CommandBus = require("../commands/CommandBus.cjs");
5
- require("@contember/schema-migrations");
6
- require("@contember/schema-utils");
7
- class DatabaseContextFactory {
8
- constructor(schemaName, providers) {
9
- this.schemaName = schemaName;
10
- this.providers = providers;
11
- }
12
- create(connection) {
13
- const client = new Database.Client(connection, this.schemaName, { module: "system" });
14
- return createDatabaseContext(client, this.providers);
15
- }
16
- }
17
- const createDatabaseContext = (client, providers) => ({
18
- client,
19
- queryHandler: client.createQueryHandler(),
20
- transaction: (cb) => client.transaction(async (client2) => {
21
- await client2.query(Database.Connection.REPEATABLE_READ);
22
- return cb(createDatabaseContext(client2, providers));
23
- }),
24
- scope: (cb) => client.scope((client2) => cb(createDatabaseContext(client2, providers))),
25
- commandBus: new CommandBus.CommandBus(client, providers),
26
- locked: (lock, cb) => client.locked(lock, (client2) => cb(createDatabaseContext(client2, providers)))
27
- });
28
- exports.DatabaseContextFactory = DatabaseContextFactory;
29
- //# sourceMappingURL=DatabaseContext.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatabaseContext.cjs","sources":["../../../../../../packages/engine-system-api/src/model/database/DatabaseContext.ts"],"sourcesContent":["import { Client, Connection, DatabaseQueryable } from '@contember/database'\nimport { QueryHandler } from '@contember/queryable'\nimport { UuidProvider } from '../../utils'\nimport { CommandBus } from '../commands'\n\nexport interface DatabaseContext<ConnectionType extends Connection.ConnectionLike = Connection.ConnectionLike> {\n\tclient: Client<ConnectionType>\n\tqueryHandler: QueryHandler<DatabaseQueryable>\n\ttransaction: <T>(cb: (db: DatabaseContext<Connection.TransactionLike>) => Promise<T> | T) => Promise<T>\n\tscope: <T>(cb: (db: DatabaseContext<ConnectionType & Connection.AcquiredConnectionLike>) => Promise<T> | T) => Promise<T>\n\tlocked: <T>(lock: number, cb: (db: DatabaseContext<Connection.ConnectionLike>) => Promise<T> | T) => Promise<T>\n\tcommandBus: CommandBus\n}\n\nexport class DatabaseContextFactory {\n\tconstructor(\n\t\tpublic readonly schemaName: string,\n\t\tprivate readonly providers: UuidProvider,\n\t) {}\n\n\tpublic create(connection: Connection.ConnectionLike): DatabaseContext {\n\t\tconst client = new Client(connection, this.schemaName, { module: 'system' })\n\t\treturn createDatabaseContext(client, this.providers)\n\t}\n}\n\nconst createDatabaseContext = <ConnectionType extends Connection.ConnectionLike = Connection.ConnectionLike>(\n\tclient: Client<ConnectionType>,\n\tproviders: UuidProvider,\n): DatabaseContext<ConnectionType> => ({\n\tclient,\n\tqueryHandler: client.createQueryHandler(),\n\ttransaction: cb =>\n\t\tclient.transaction(async client => {\n\t\t\tawait client.query(Connection.REPEATABLE_READ)\n\t\t\treturn cb(createDatabaseContext(client, providers))\n\t\t}),\n\tscope: cb =>\n\t\tclient.scope(client => cb(createDatabaseContext(client, providers))),\n\tcommandBus: new CommandBus(client, providers),\n\tlocked: (lock, cb) => client.locked(lock, client => cb(createDatabaseContext(client, providers))),\n})\n"],"names":["Client","client","Connection","CommandBus"],"mappings":";;;;;;AAcO,MAAM,uBAAuB;AAAA,EACnC,YACiB,YACC,WAChB;AAFe,SAAA,aAAA;AACC,SAAA,YAAA;AAAA,EAAA;AAAA,EAGX,OAAO,YAAwD;AAC/D,UAAA,SAAS,IAAIA,SAAAA,OAAO,YAAY,KAAK,YAAY,EAAE,QAAQ,UAAU;AACpE,WAAA,sBAAsB,QAAQ,KAAK,SAAS;AAAA,EAAA;AAErD;AAEA,MAAM,wBAAwB,CAC7B,QACA,eACsC;AAAA,EACtC;AAAA,EACA,cAAc,OAAO,mBAAmB;AAAA,EACxC,aAAa,CAAA,OACZ,OAAO,YAAY,OAAMC,YAAU;AAC5BA,UAAAA,QAAO,MAAMC,SAAA,WAAW,eAAe;AAC7C,WAAO,GAAG,sBAAsBD,SAAQ,SAAS,CAAC;AAAA,EAAA,CAClD;AAAA,EACF,OAAO,CACN,OAAA,OAAO,MAAM,CAAAA,YAAU,GAAG,sBAAsBA,SAAQ,SAAS,CAAC,CAAC;AAAA,EACpE,YAAY,IAAIE,WAAAA,WAAW,QAAQ,SAAS;AAAA,EAC5C,QAAQ,CAAC,MAAM,OAAO,OAAO,OAAO,MAAM,CAAAF,YAAU,GAAG,sBAAsBA,SAAQ,SAAS,CAAC,CAAC;AACjG;;"}
@@ -1,29 +0,0 @@
1
- import { Client, Connection } from "@contember/database";
2
- import { CommandBus } from "../commands/CommandBus.js";
3
- import "@contember/schema-migrations";
4
- import "@contember/schema-utils";
5
- class DatabaseContextFactory {
6
- constructor(schemaName, providers) {
7
- this.schemaName = schemaName;
8
- this.providers = providers;
9
- }
10
- create(connection) {
11
- const client = new Client(connection, this.schemaName, { module: "system" });
12
- return createDatabaseContext(client, this.providers);
13
- }
14
- }
15
- const createDatabaseContext = (client, providers) => ({
16
- client,
17
- queryHandler: client.createQueryHandler(),
18
- transaction: (cb) => client.transaction(async (client2) => {
19
- await client2.query(Connection.REPEATABLE_READ);
20
- return cb(createDatabaseContext(client2, providers));
21
- }),
22
- scope: (cb) => client.scope((client2) => cb(createDatabaseContext(client2, providers))),
23
- commandBus: new CommandBus(client, providers),
24
- locked: (lock, cb) => client.locked(lock, (client2) => cb(createDatabaseContext(client2, providers)))
25
- });
26
- export {
27
- DatabaseContextFactory
28
- };
29
- //# sourceMappingURL=DatabaseContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DatabaseContext.js","sources":["../../../../../../packages/engine-system-api/src/model/database/DatabaseContext.ts"],"sourcesContent":["import { Client, Connection, DatabaseQueryable } from '@contember/database'\nimport { QueryHandler } from '@contember/queryable'\nimport { UuidProvider } from '../../utils'\nimport { CommandBus } from '../commands'\n\nexport interface DatabaseContext<ConnectionType extends Connection.ConnectionLike = Connection.ConnectionLike> {\n\tclient: Client<ConnectionType>\n\tqueryHandler: QueryHandler<DatabaseQueryable>\n\ttransaction: <T>(cb: (db: DatabaseContext<Connection.TransactionLike>) => Promise<T> | T) => Promise<T>\n\tscope: <T>(cb: (db: DatabaseContext<ConnectionType & Connection.AcquiredConnectionLike>) => Promise<T> | T) => Promise<T>\n\tlocked: <T>(lock: number, cb: (db: DatabaseContext<Connection.ConnectionLike>) => Promise<T> | T) => Promise<T>\n\tcommandBus: CommandBus\n}\n\nexport class DatabaseContextFactory {\n\tconstructor(\n\t\tpublic readonly schemaName: string,\n\t\tprivate readonly providers: UuidProvider,\n\t) {}\n\n\tpublic create(connection: Connection.ConnectionLike): DatabaseContext {\n\t\tconst client = new Client(connection, this.schemaName, { module: 'system' })\n\t\treturn createDatabaseContext(client, this.providers)\n\t}\n}\n\nconst createDatabaseContext = <ConnectionType extends Connection.ConnectionLike = Connection.ConnectionLike>(\n\tclient: Client<ConnectionType>,\n\tproviders: UuidProvider,\n): DatabaseContext<ConnectionType> => ({\n\tclient,\n\tqueryHandler: client.createQueryHandler(),\n\ttransaction: cb =>\n\t\tclient.transaction(async client => {\n\t\t\tawait client.query(Connection.REPEATABLE_READ)\n\t\t\treturn cb(createDatabaseContext(client, providers))\n\t\t}),\n\tscope: cb =>\n\t\tclient.scope(client => cb(createDatabaseContext(client, providers))),\n\tcommandBus: new CommandBus(client, providers),\n\tlocked: (lock, cb) => client.locked(lock, client => cb(createDatabaseContext(client, providers))),\n})\n"],"names":["client"],"mappings":";;;;AAcO,MAAM,uBAAuB;AAAA,EACnC,YACiB,YACC,WAChB;AAFe,SAAA,aAAA;AACC,SAAA,YAAA;AAAA,EAAA;AAAA,EAGX,OAAO,YAAwD;AAC/D,UAAA,SAAS,IAAI,OAAO,YAAY,KAAK,YAAY,EAAE,QAAQ,UAAU;AACpE,WAAA,sBAAsB,QAAQ,KAAK,SAAS;AAAA,EAAA;AAErD;AAEA,MAAM,wBAAwB,CAC7B,QACA,eACsC;AAAA,EACtC;AAAA,EACA,cAAc,OAAO,mBAAmB;AAAA,EACxC,aAAa,CAAA,OACZ,OAAO,YAAY,OAAMA,YAAU;AAC5BA,UAAAA,QAAO,MAAM,WAAW,eAAe;AAC7C,WAAO,GAAG,sBAAsBA,SAAQ,SAAS,CAAC;AAAA,EAAA,CAClD;AAAA,EACF,OAAO,CACN,OAAA,OAAO,MAAM,CAAAA,YAAU,GAAG,sBAAsBA,SAAQ,SAAS,CAAC,CAAC;AAAA,EACpE,YAAY,IAAI,WAAW,QAAQ,SAAS;AAAA,EAC5C,QAAQ,CAAC,MAAM,OAAO,OAAO,OAAO,MAAM,CAAAA,YAAU,GAAG,sBAAsBA,SAAQ,SAAS,CAAC,CAAC;AACjG;"}
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const schemaMigrations = require("@contember/schema-migrations");
4
- var __defProp = Object.defineProperty;
5
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
6
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
7
- class ExecutedMigration {
8
- constructor(id, name, formatVersion, modifications, executedAt, checksum, type) {
9
- this.id = id;
10
- this.name = name;
11
- this.formatVersion = formatVersion;
12
- this.modifications = modifications;
13
- this.executedAt = executedAt;
14
- this.checksum = checksum;
15
- this.type = type;
16
- __publicField(this, "version");
17
- this.version = schemaMigrations.MigrationVersionHelper.extractVersion(name);
18
- }
19
- }
20
- exports.ExecutedMigration = ExecutedMigration;
21
- //# sourceMappingURL=ExecutedMigration.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExecutedMigration.cjs","sources":["../../../../../../packages/engine-system-api/src/model/dtos/ExecutedMigration.ts"],"sourcesContent":["import { Migration, MigrationVersionHelper } from '@contember/schema-migrations'\n\nexport class ExecutedMigration implements Migration {\n\tpublic readonly version: string\n\n\tconstructor(\n\t\tpublic readonly id: number,\n\t\tpublic readonly name: string,\n\t\tpublic readonly formatVersion: number,\n\t\tpublic readonly modifications: Migration.Modification[],\n\t\tpublic readonly executedAt: Date,\n\t\tpublic readonly checksum: string | null,\n\t\tpublic readonly type: 'schema' | 'content',\n\n\t) {\n\t\tthis.version = MigrationVersionHelper.extractVersion(name)\n\t}\n}\n"],"names":["MigrationVersionHelper"],"mappings":";;;;;;AAEO,MAAM,kBAAuC;AAAA,EAGnD,YACiB,IACA,MACA,eACA,eACA,YACA,UACA,MAEf;AARe,SAAA,KAAA;AACA,SAAA,OAAA;AACA,SAAA,gBAAA;AACA,SAAA,gBAAA;AACA,SAAA,aAAA;AACA,SAAA,WAAA;AACA,SAAA,OAAA;AATD,kBAAA,MAAA,SAAA;AAYV,SAAA,UAAUA,wCAAuB,eAAe,IAAI;AAAA,EAAA;AAE3D;;"}
@@ -1,21 +0,0 @@
1
- import { MigrationVersionHelper } from "@contember/schema-migrations";
2
- var __defProp = Object.defineProperty;
3
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
- var __publicField = (obj, key, value) => __defNormalProp(obj, key + "", value);
5
- class ExecutedMigration {
6
- constructor(id, name, formatVersion, modifications, executedAt, checksum, type) {
7
- this.id = id;
8
- this.name = name;
9
- this.formatVersion = formatVersion;
10
- this.modifications = modifications;
11
- this.executedAt = executedAt;
12
- this.checksum = checksum;
13
- this.type = type;
14
- __publicField(this, "version");
15
- this.version = MigrationVersionHelper.extractVersion(name);
16
- }
17
- }
18
- export {
19
- ExecutedMigration
20
- };
21
- //# sourceMappingURL=ExecutedMigration.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExecutedMigration.js","sources":["../../../../../../packages/engine-system-api/src/model/dtos/ExecutedMigration.ts"],"sourcesContent":["import { Migration, MigrationVersionHelper } from '@contember/schema-migrations'\n\nexport class ExecutedMigration implements Migration {\n\tpublic readonly version: string\n\n\tconstructor(\n\t\tpublic readonly id: number,\n\t\tpublic readonly name: string,\n\t\tpublic readonly formatVersion: number,\n\t\tpublic readonly modifications: Migration.Modification[],\n\t\tpublic readonly executedAt: Date,\n\t\tpublic readonly checksum: string | null,\n\t\tpublic readonly type: 'schema' | 'content',\n\n\t) {\n\t\tthis.version = MigrationVersionHelper.extractVersion(name)\n\t}\n}\n"],"names":[],"mappings":";;;;AAEO,MAAM,kBAAuC;AAAA,EAGnD,YACiB,IACA,MACA,eACA,eACA,YACA,UACA,MAEf;AARe,SAAA,KAAA;AACA,SAAA,OAAA;AACA,SAAA,gBAAA;AACA,SAAA,gBAAA;AACA,SAAA,aAAA;AACA,SAAA,WAAA;AACA,SAAA,OAAA;AATD,kBAAA,MAAA,SAAA;AAYV,SAAA,UAAU,uBAAuB,eAAe,IAAI;AAAA,EAAA;AAE3D;"}
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const types = require("./types.cjs");
4
- const types$1 = require("../../schema/types.cjs");
5
- require("../../schema/dev.graphql.cjs");
6
- require("../../schema/system.graphql.cjs");
7
- const assertNever = require("../../utils/assertNever.cjs");
8
- const identityUtils = require("./identityUtils.cjs");
9
- const EventResponseHelper = require("./EventResponseHelper.cjs");
10
- class EventResponseBuilder {
11
- constructor(identityFetcher) {
12
- this.identityFetcher = identityFetcher;
13
- }
14
- async buildResponse(events) {
15
- const apiEventTypeMapping = {
16
- [types.EventType.create]: types$1.EventType.Create,
17
- [types.EventType.update]: types$1.EventType.Update,
18
- [types.EventType.delete]: types$1.EventType.Delete
19
- };
20
- const identityIds = events.map((it) => it.identityId).filter((it, index, ids) => ids.indexOf(it) === index);
21
- const identities = await this.identityFetcher.fetchIdentities(identityIds);
22
- const identitiesMap = Object.fromEntries(identities.map((it) => [it.identityId, it]));
23
- return events.map((it) => {
24
- const commonData = {
25
- createdAt: it.createdAt,
26
- appliedAt: it.appliedAt,
27
- id: it.id,
28
- type: apiEventTypeMapping[it.type],
29
- description: this.formatDescription(it),
30
- transactionId: it.transactionId,
31
- identityId: it.identityId,
32
- identityDescription: identityUtils.formatIdentity(identitiesMap[it.identityId])
33
- };
34
- switch (it.type) {
35
- case types.EventType.create:
36
- return (() => EventResponseHelper.appendCreateSpecificData(commonData, it))();
37
- case types.EventType.update:
38
- return (() => EventResponseHelper.appendUpdateSpecificData(commonData, it))();
39
- case types.EventType.delete:
40
- return (() => EventResponseHelper.appendDeleteSpecificData(commonData, it))();
41
- }
42
- assertNever.assertNever();
43
- });
44
- }
45
- formatDescription(event) {
46
- switch (event.type) {
47
- case types.EventType.create:
48
- return `Creating ${event.tableName}#${event.rowId.join(";")}`;
49
- case types.EventType.update:
50
- return `Updating ${event.tableName}#${event.rowId.join(";")}`;
51
- case types.EventType.delete:
52
- return `Deleting ${event.tableName}#${event.rowId.join(";")}`;
53
- default:
54
- return assertNever.assertNever();
55
- }
56
- }
57
- }
58
- exports.EventResponseBuilder = EventResponseBuilder;
59
- //# sourceMappingURL=EventResponseBuilder.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventResponseBuilder.cjs","sources":["../../../../../../packages/engine-system-api/src/model/events/EventResponseBuilder.ts"],"sourcesContent":["import { ContentEvent, EventType } from './types'\nimport { CreateEvent, DeleteEvent, EventType as ApiEventType, UpdateEvent } from '../../schema'\nimport { assertNever } from '../../utils'\nimport { IdentityFetcher } from '../dependencies'\nimport { formatIdentity } from './identityUtils'\nimport { appendCreateSpecificData, appendDeleteSpecificData, appendUpdateSpecificData } from './EventResponseHelper'\n\nexport class EventResponseBuilder {\n\tconstructor(private readonly identityFetcher: IdentityFetcher) {}\n\n\tpublic async buildResponse(events: ContentEvent[]): Promise<(CreateEvent | DeleteEvent | UpdateEvent)[]> {\n\t\tconst apiEventTypeMapping = {\n\t\t\t[EventType.create]: ApiEventType.Create,\n\t\t\t[EventType.update]: ApiEventType.Update,\n\t\t\t[EventType.delete]: ApiEventType.Delete,\n\t\t}\n\t\tconst identityIds = events.map(it => it.identityId).filter((it, index, ids) => ids.indexOf(it) === index)\n\t\tconst identities = await this.identityFetcher.fetchIdentities(identityIds)\n\t\tconst identitiesMap = Object.fromEntries(identities.map(it => [it.identityId, it]))\n\n\t\treturn events.map(it => {\n\t\t\tconst commonData = {\n\t\t\t\tcreatedAt: it.createdAt,\n\t\t\t\tappliedAt: it.appliedAt,\n\t\t\t\tid: it.id,\n\t\t\t\ttype: apiEventTypeMapping[it.type],\n\t\t\t\tdescription: this.formatDescription(it),\n\t\t\t\ttransactionId: it.transactionId,\n\t\t\t\tidentityId: it.identityId,\n\t\t\t\tidentityDescription: formatIdentity(identitiesMap[it.identityId]),\n\t\t\t}\n\t\t\tswitch (it.type) {\n\t\t\t\tcase EventType.create:\n\t\t\t\t\treturn ((): CreateEvent => appendCreateSpecificData(commonData, it))()\n\t\t\t\tcase EventType.update:\n\t\t\t\t\treturn ((): UpdateEvent => appendUpdateSpecificData(commonData, it))()\n\t\t\t\tcase EventType.delete:\n\t\t\t\t\treturn ((): DeleteEvent => appendDeleteSpecificData(commonData, it))()\n\t\t\t}\n\t\t\tassertNever(it)\n\t\t})\n\t}\n\n\tprivate formatDescription(event: ContentEvent): string {\n\t\tswitch (event.type) {\n\t\t\tcase EventType.create:\n\t\t\t\treturn `Creating ${event.tableName}#${event.rowId.join(';')}`\n\t\t\tcase EventType.update:\n\t\t\t\treturn `Updating ${event.tableName}#${event.rowId.join(';')}`\n\t\t\tcase EventType.delete:\n\t\t\t\treturn `Deleting ${event.tableName}#${event.rowId.join(';')}`\n\t\t\tdefault:\n\t\t\t\treturn assertNever(event)\n\t\t}\n\t}\n}\n"],"names":["EventType","ApiEventType","formatIdentity","appendCreateSpecificData","appendUpdateSpecificData","appendDeleteSpecificData","assertNever"],"mappings":";;;;;;;;;AAOO,MAAM,qBAAqB;AAAA,EACjC,YAA6B,iBAAkC;AAAlC,SAAA,kBAAA;AAAA,EAAA;AAAA,EAE7B,MAAa,cAAc,QAA8E;AACxG,UAAM,sBAAsB;AAAA,MAC3B,CAACA,MAAA,UAAU,MAAM,GAAGC,QAAAA,UAAa;AAAA,MACjC,CAACD,MAAA,UAAU,MAAM,GAAGC,QAAAA,UAAa;AAAA,MACjC,CAACD,MAAA,UAAU,MAAM,GAAGC,kBAAa;AAAA,IAClC;AACA,UAAM,cAAc,OAAO,IAAI,CAAM,OAAA,GAAG,UAAU,EAAE,OAAO,CAAC,IAAI,OAAO,QAAQ,IAAI,QAAQ,EAAE,MAAM,KAAK;AACxG,UAAM,aAAa,MAAM,KAAK,gBAAgB,gBAAgB,WAAW;AACnE,UAAA,gBAAgB,OAAO,YAAY,WAAW,IAAI,CAAM,OAAA,CAAC,GAAG,YAAY,EAAE,CAAC,CAAC;AAE3E,WAAA,OAAO,IAAI,CAAM,OAAA;AACvB,YAAM,aAAa;AAAA,QAClB,WAAW,GAAG;AAAA,QACd,WAAW,GAAG;AAAA,QACd,IAAI,GAAG;AAAA,QACP,MAAM,oBAAoB,GAAG,IAAI;AAAA,QACjC,aAAa,KAAK,kBAAkB,EAAE;AAAA,QACtC,eAAe,GAAG;AAAA,QAClB,YAAY,GAAG;AAAA,QACf,qBAAqBC,cAAA,eAAe,cAAc,GAAG,UAAU,CAAC;AAAA,MACjE;AACA,cAAQ,GAAG,MAAM;AAAA,QAChB,KAAKF,MAAU,UAAA;AACd,kBAAQ,MAAmBG,oBAAAA,yBAAyB,YAAY,EAAE,GAAG;AAAA,QACtE,KAAKH,MAAU,UAAA;AACd,kBAAQ,MAAmBI,oBAAAA,yBAAyB,YAAY,EAAE,GAAG;AAAA,QACtE,KAAKJ,MAAU,UAAA;AACd,kBAAQ,MAAmBK,oBAAAA,yBAAyB,YAAY,EAAE,GAAG;AAAA,MAAA;AAEvEC,kBAAAA,YAAc;AAAA,IAAA,CACd;AAAA,EAAA;AAAA,EAGM,kBAAkB,OAA6B;AACtD,YAAQ,MAAM,MAAM;AAAA,MACnB,KAAKN,MAAU,UAAA;AACP,eAAA,YAAY,MAAM,SAAS,IAAI,MAAM,MAAM,KAAK,GAAG,CAAC;AAAA,MAC5D,KAAKA,MAAU,UAAA;AACP,eAAA,YAAY,MAAM,SAAS,IAAI,MAAM,MAAM,KAAK,GAAG,CAAC;AAAA,MAC5D,KAAKA,MAAU,UAAA;AACP,eAAA,YAAY,MAAM,SAAS,IAAI,MAAM,MAAM,KAAK,GAAG,CAAC;AAAA,MAC5D;AACC,eAAOM,wBAAiB;AAAA,IAAA;AAAA,EAC1B;AAEF;;"}