@endora-commerce/platform 0.100.0

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 (657) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +58 -0
  3. package/dist/cli/dispatch.d.ts +146 -0
  4. package/dist/cli/dispatch.d.ts.map +1 -0
  5. package/dist/cli/dispatch.js +259 -0
  6. package/dist/cli/dispatch.js.map +1 -0
  7. package/dist/cli/index.d.ts +58 -0
  8. package/dist/cli/index.d.ts.map +1 -0
  9. package/dist/cli/index.js +58 -0
  10. package/dist/cli/index.js.map +1 -0
  11. package/dist/cli/module-commands.d.ts +118 -0
  12. package/dist/cli/module-commands.d.ts.map +1 -0
  13. package/dist/cli/module-commands.js +120 -0
  14. package/dist/cli/module-commands.js.map +1 -0
  15. package/dist/commands/actor.d.ts +19 -0
  16. package/dist/commands/actor.d.ts.map +1 -0
  17. package/dist/commands/actor.js +45 -0
  18. package/dist/commands/actor.js.map +1 -0
  19. package/dist/commands/audit-from-context.d.ts +24 -0
  20. package/dist/commands/audit-from-context.d.ts.map +1 -0
  21. package/dist/commands/audit-from-context.js +28 -0
  22. package/dist/commands/audit-from-context.js.map +1 -0
  23. package/dist/commands/command-bus.d.ts +40 -0
  24. package/dist/commands/command-bus.d.ts.map +1 -0
  25. package/dist/commands/command-bus.js +46 -0
  26. package/dist/commands/command-bus.js.map +1 -0
  27. package/dist/commands/command.d.ts +76 -0
  28. package/dist/commands/command.d.ts.map +1 -0
  29. package/dist/commands/command.js +2 -0
  30. package/dist/commands/command.js.map +1 -0
  31. package/dist/commands/index.d.ts +65 -0
  32. package/dist/commands/index.d.ts.map +1 -0
  33. package/dist/commands/index.js +57 -0
  34. package/dist/commands/index.js.map +1 -0
  35. package/dist/commands/reversible.d.ts +66 -0
  36. package/dist/commands/reversible.d.ts.map +1 -0
  37. package/dist/commands/reversible.js +41 -0
  38. package/dist/commands/reversible.js.map +1 -0
  39. package/dist/composition/compose-app.d.ts +305 -0
  40. package/dist/composition/compose-app.d.ts.map +1 -0
  41. package/dist/composition/compose-app.js +939 -0
  42. package/dist/composition/compose-app.js.map +1 -0
  43. package/dist/composition/index.d.ts +92 -0
  44. package/dist/composition/index.d.ts.map +1 -0
  45. package/dist/composition/index.js +175 -0
  46. package/dist/composition/index.js.map +1 -0
  47. package/dist/composition/newsletter-token-secret.d.ts +19 -0
  48. package/dist/composition/newsletter-token-secret.d.ts.map +1 -0
  49. package/dist/composition/newsletter-token-secret.js +24 -0
  50. package/dist/composition/newsletter-token-secret.js.map +1 -0
  51. package/dist/composition/process-runs-workers.d.ts +17 -0
  52. package/dist/composition/process-runs-workers.d.ts.map +1 -0
  53. package/dist/composition/process-runs-workers.js +19 -0
  54. package/dist/composition/process-runs-workers.js.map +1 -0
  55. package/dist/db/baseline-migration-inventory.d.ts +15 -0
  56. package/dist/db/baseline-migration-inventory.d.ts.map +1 -0
  57. package/dist/db/baseline-migration-inventory.js +115 -0
  58. package/dist/db/baseline-migration-inventory.js.map +1 -0
  59. package/dist/db/configured-entities.d.ts +74 -0
  60. package/dist/db/configured-entities.d.ts.map +1 -0
  61. package/dist/db/configured-entities.js +20 -0
  62. package/dist/db/configured-entities.js.map +1 -0
  63. package/dist/db/configured-migrations.d.ts +199 -0
  64. package/dist/db/configured-migrations.d.ts.map +1 -0
  65. package/dist/db/configured-migrations.js +181 -0
  66. package/dist/db/configured-migrations.js.map +1 -0
  67. package/dist/db/index.d.ts +54 -0
  68. package/dist/db/index.d.ts.map +1 -0
  69. package/dist/db/index.js +54 -0
  70. package/dist/db/index.js.map +1 -0
  71. package/dist/db/migrate.d.ts +21 -0
  72. package/dist/db/migrate.d.ts.map +1 -0
  73. package/dist/db/migrate.js +48 -0
  74. package/dist/db/migrate.js.map +1 -0
  75. package/dist/db/migration-order.d.ts +159 -0
  76. package/dist/db/migration-order.d.ts.map +1 -0
  77. package/dist/db/migration-order.js +273 -0
  78. package/dist/db/migration-order.js.map +1 -0
  79. package/dist/db/mikro-orm.config.d.ts +51 -0
  80. package/dist/db/mikro-orm.config.d.ts.map +1 -0
  81. package/dist/db/mikro-orm.config.js +64 -0
  82. package/dist/db/mikro-orm.config.js.map +1 -0
  83. package/dist/db/orm.d.ts +40 -0
  84. package/dist/db/orm.d.ts.map +1 -0
  85. package/dist/db/orm.js +25 -0
  86. package/dist/db/orm.js.map +1 -0
  87. package/dist/db/platform-schema.d.ts +102 -0
  88. package/dist/db/platform-schema.d.ts.map +1 -0
  89. package/dist/db/platform-schema.js +79 -0
  90. package/dist/db/platform-schema.js.map +1 -0
  91. package/dist/db/pluralizing-naming-strategy.d.ts +16 -0
  92. package/dist/db/pluralizing-naming-strategy.d.ts.map +1 -0
  93. package/dist/db/pluralizing-naming-strategy.js +66 -0
  94. package/dist/db/pluralizing-naming-strategy.js.map +1 -0
  95. package/dist/demo/guard.d.ts +101 -0
  96. package/dist/demo/guard.d.ts.map +1 -0
  97. package/dist/demo/guard.js +168 -0
  98. package/dist/demo/guard.js.map +1 -0
  99. package/dist/demo/host-command.d.ts +133 -0
  100. package/dist/demo/host-command.d.ts.map +1 -0
  101. package/dist/demo/host-command.js +113 -0
  102. package/dist/demo/host-command.js.map +1 -0
  103. package/dist/demo/index.d.ts +82 -0
  104. package/dist/demo/index.d.ts.map +1 -0
  105. package/dist/demo/index.js +82 -0
  106. package/dist/demo/index.js.map +1 -0
  107. package/dist/demo/packages.d.ts +67 -0
  108. package/dist/demo/packages.d.ts.map +1 -0
  109. package/dist/demo/packages.js +132 -0
  110. package/dist/demo/packages.js.map +1 -0
  111. package/dist/demo/plan.d.ts +111 -0
  112. package/dist/demo/plan.d.ts.map +1 -0
  113. package/dist/demo/plan.js +74 -0
  114. package/dist/demo/plan.js.map +1 -0
  115. package/dist/demo/report.d.ts +17 -0
  116. package/dist/demo/report.d.ts.map +1 -0
  117. package/dist/demo/report.js +85 -0
  118. package/dist/demo/report.js.map +1 -0
  119. package/dist/demo/runner.d.ts +207 -0
  120. package/dist/demo/runner.d.ts.map +1 -0
  121. package/dist/demo/runner.js +169 -0
  122. package/dist/demo/runner.js.map +1 -0
  123. package/dist/demo/scope.d.ts +44 -0
  124. package/dist/demo/scope.d.ts.map +1 -0
  125. package/dist/demo/scope.js +44 -0
  126. package/dist/demo/scope.js.map +1 -0
  127. package/dist/env/index.d.ts +68 -0
  128. package/dist/env/index.d.ts.map +1 -0
  129. package/dist/env/index.js +427 -0
  130. package/dist/env/index.js.map +1 -0
  131. package/dist/events/bus.d.ts +29 -0
  132. package/dist/events/bus.d.ts.map +1 -0
  133. package/dist/events/bus.js +67 -0
  134. package/dist/events/bus.js.map +1 -0
  135. package/dist/events/index.d.ts +19 -0
  136. package/dist/events/index.d.ts.map +1 -0
  137. package/dist/events/index.js +19 -0
  138. package/dist/events/index.js.map +1 -0
  139. package/dist/http/cursor.d.ts +10 -0
  140. package/dist/http/cursor.d.ts.map +1 -0
  141. package/dist/http/cursor.js +20 -0
  142. package/dist/http/cursor.js.map +1 -0
  143. package/dist/http/error-envelope.d.ts +127 -0
  144. package/dist/http/error-envelope.d.ts.map +1 -0
  145. package/dist/http/error-envelope.js +402 -0
  146. package/dist/http/error-envelope.js.map +1 -0
  147. package/dist/http/health.d.ts +88 -0
  148. package/dist/http/health.d.ts.map +1 -0
  149. package/dist/http/health.js +77 -0
  150. package/dist/http/health.js.map +1 -0
  151. package/dist/http/index.d.ts +50 -0
  152. package/dist/http/index.d.ts.map +1 -0
  153. package/dist/http/index.js +50 -0
  154. package/dist/http/index.js.map +1 -0
  155. package/dist/http/interceptors/dispatch.d.ts +14 -0
  156. package/dist/http/interceptors/dispatch.d.ts.map +1 -0
  157. package/dist/http/interceptors/dispatch.js +113 -0
  158. package/dist/http/interceptors/dispatch.js.map +1 -0
  159. package/dist/http/interceptors/index.d.ts +6 -0
  160. package/dist/http/interceptors/index.d.ts.map +1 -0
  161. package/dist/http/interceptors/index.js +5 -0
  162. package/dist/http/interceptors/index.js.map +1 -0
  163. package/dist/http/interceptors/registry.d.ts +44 -0
  164. package/dist/http/interceptors/registry.d.ts.map +1 -0
  165. package/dist/http/interceptors/registry.js +123 -0
  166. package/dist/http/interceptors/registry.js.map +1 -0
  167. package/dist/http/interceptors/route-table.d.ts +33 -0
  168. package/dist/http/interceptors/route-table.d.ts.map +1 -0
  169. package/dist/http/interceptors/route-table.js +39 -0
  170. package/dist/http/interceptors/route-table.js.map +1 -0
  171. package/dist/http/interceptors/types.d.ts +101 -0
  172. package/dist/http/interceptors/types.d.ts.map +1 -0
  173. package/dist/http/interceptors/types.js +2 -0
  174. package/dist/http/interceptors/types.js.map +1 -0
  175. package/dist/http/interceptors/validation.d.ts +22 -0
  176. package/dist/http/interceptors/validation.d.ts.map +1 -0
  177. package/dist/http/interceptors/validation.js +39 -0
  178. package/dist/http/interceptors/validation.js.map +1 -0
  179. package/dist/http/logger.d.ts +9 -0
  180. package/dist/http/logger.d.ts.map +1 -0
  181. package/dist/http/logger.js +25 -0
  182. package/dist/http/logger.js.map +1 -0
  183. package/dist/http/openapi.d.ts +21 -0
  184. package/dist/http/openapi.d.ts.map +1 -0
  185. package/dist/http/openapi.js +114 -0
  186. package/dist/http/openapi.js.map +1 -0
  187. package/dist/http/product-audience.d.ts +78 -0
  188. package/dist/http/product-audience.d.ts.map +1 -0
  189. package/dist/http/product-audience.js +92 -0
  190. package/dist/http/product-audience.js.map +1 -0
  191. package/dist/http/request-actor.d.ts +82 -0
  192. package/dist/http/request-actor.d.ts.map +1 -0
  193. package/dist/http/request-actor.js +2 -0
  194. package/dist/http/request-actor.js.map +1 -0
  195. package/dist/http/server.d.ts +60 -0
  196. package/dist/http/server.d.ts.map +1 -0
  197. package/dist/http/server.js +117 -0
  198. package/dist/http/server.js.map +1 -0
  199. package/dist/http/storefront-revalidator.d.ts +29 -0
  200. package/dist/http/storefront-revalidator.d.ts.map +1 -0
  201. package/dist/http/storefront-revalidator.js +34 -0
  202. package/dist/http/storefront-revalidator.js.map +1 -0
  203. package/dist/http/test-actor-carrier.d.ts +28 -0
  204. package/dist/http/test-actor-carrier.d.ts.map +1 -0
  205. package/dist/http/test-actor-carrier.js +10 -0
  206. package/dist/http/test-actor-carrier.js.map +1 -0
  207. package/dist/http/trusted-proxy.d.ts +48 -0
  208. package/dist/http/trusted-proxy.d.ts.map +1 -0
  209. package/dist/http/trusted-proxy.js +136 -0
  210. package/dist/http/trusted-proxy.js.map +1 -0
  211. package/dist/kernel/audit/audit-log-entry.entity.d.ts +33 -0
  212. package/dist/kernel/audit/audit-log-entry.entity.d.ts.map +1 -0
  213. package/dist/kernel/audit/audit-log-entry.entity.js +102 -0
  214. package/dist/kernel/audit/audit-log-entry.entity.js.map +1 -0
  215. package/dist/kernel/audit/audit-log-service.d.ts +63 -0
  216. package/dist/kernel/audit/audit-log-service.d.ts.map +1 -0
  217. package/dist/kernel/audit/audit-log-service.js +107 -0
  218. package/dist/kernel/audit/audit-log-service.js.map +1 -0
  219. package/dist/kernel/cache/in-process-cache-registry.d.ts +93 -0
  220. package/dist/kernel/cache/in-process-cache-registry.d.ts.map +1 -0
  221. package/dist/kernel/cache/in-process-cache-registry.js +78 -0
  222. package/dist/kernel/cache/in-process-cache-registry.js.map +1 -0
  223. package/dist/kernel/cache/shared-drop-marks.d.ts +39 -0
  224. package/dist/kernel/cache/shared-drop-marks.d.ts.map +1 -0
  225. package/dist/kernel/cache/shared-drop-marks.js +68 -0
  226. package/dist/kernel/cache/shared-drop-marks.js.map +1 -0
  227. package/dist/kernel/compose.d.ts +234 -0
  228. package/dist/kernel/compose.d.ts.map +1 -0
  229. package/dist/kernel/compose.js +279 -0
  230. package/dist/kernel/compose.js.map +1 -0
  231. package/dist/kernel/container.d.ts +95 -0
  232. package/dist/kernel/container.d.ts.map +1 -0
  233. package/dist/kernel/container.js +90 -0
  234. package/dist/kernel/container.js.map +1 -0
  235. package/dist/kernel/contribution-sinks.d.ts +106 -0
  236. package/dist/kernel/contribution-sinks.d.ts.map +1 -0
  237. package/dist/kernel/contribution-sinks.js +153 -0
  238. package/dist/kernel/contribution-sinks.js.map +1 -0
  239. package/dist/kernel/crypto/password-hasher.d.ts +3 -0
  240. package/dist/kernel/crypto/password-hasher.d.ts.map +1 -0
  241. package/dist/kernel/crypto/password-hasher.js +44 -0
  242. package/dist/kernel/crypto/password-hasher.js.map +1 -0
  243. package/dist/kernel/i18n/error-envelope-options.d.ts +56 -0
  244. package/dist/kernel/i18n/error-envelope-options.d.ts.map +1 -0
  245. package/dist/kernel/i18n/error-envelope-options.js +46 -0
  246. package/dist/kernel/i18n/error-envelope-options.js.map +1 -0
  247. package/dist/kernel/i18n/error-translation.d.ts +144 -0
  248. package/dist/kernel/i18n/error-translation.d.ts.map +1 -0
  249. package/dist/kernel/i18n/error-translation.js +84 -0
  250. package/dist/kernel/i18n/error-translation.js.map +1 -0
  251. package/dist/kernel/i18n/request-language.d.ts +80 -0
  252. package/dist/kernel/i18n/request-language.d.ts.map +1 -0
  253. package/dist/kernel/i18n/request-language.js +168 -0
  254. package/dist/kernel/i18n/request-language.js.map +1 -0
  255. package/dist/kernel/index.d.ts +142 -0
  256. package/dist/kernel/index.d.ts.map +1 -0
  257. package/dist/kernel/index.js +160 -0
  258. package/dist/kernel/index.js.map +1 -0
  259. package/dist/kernel/lazy-port.d.ts +59 -0
  260. package/dist/kernel/lazy-port.d.ts.map +1 -0
  261. package/dist/kernel/lazy-port.js +78 -0
  262. package/dist/kernel/lazy-port.js.map +1 -0
  263. package/dist/kernel/lifecycle/activation-resolver.d.ts +63 -0
  264. package/dist/kernel/lifecycle/activation-resolver.d.ts.map +1 -0
  265. package/dist/kernel/lifecycle/activation-resolver.js +70 -0
  266. package/dist/kernel/lifecycle/activation-resolver.js.map +1 -0
  267. package/dist/kernel/lifecycle/capability-registry.d.ts +145 -0
  268. package/dist/kernel/lifecycle/capability-registry.d.ts.map +1 -0
  269. package/dist/kernel/lifecycle/capability-registry.js +170 -0
  270. package/dist/kernel/lifecycle/capability-registry.js.map +1 -0
  271. package/dist/kernel/lifecycle/effective-state.d.ts +126 -0
  272. package/dist/kernel/lifecycle/effective-state.d.ts.map +1 -0
  273. package/dist/kernel/lifecycle/effective-state.js +111 -0
  274. package/dist/kernel/lifecycle/effective-state.js.map +1 -0
  275. package/dist/kernel/lifecycle/module-registration.entity.d.ts +57 -0
  276. package/dist/kernel/lifecycle/module-registration.entity.d.ts.map +1 -0
  277. package/dist/kernel/lifecycle/module-registration.entity.js +111 -0
  278. package/dist/kernel/lifecycle/module-registration.entity.js.map +1 -0
  279. package/dist/kernel/lifecycle/plugin-helpers.d.ts +165 -0
  280. package/dist/kernel/lifecycle/plugin-helpers.d.ts.map +1 -0
  281. package/dist/kernel/lifecycle/plugin-helpers.js +395 -0
  282. package/dist/kernel/lifecycle/plugin-helpers.js.map +1 -0
  283. package/dist/kernel/lifecycle/registry-cache.d.ts +318 -0
  284. package/dist/kernel/lifecycle/registry-cache.d.ts.map +1 -0
  285. package/dist/kernel/lifecycle/registry-cache.js +509 -0
  286. package/dist/kernel/lifecycle/registry-cache.js.map +1 -0
  287. package/dist/kernel/lifecycle/required-modules.d.ts +137 -0
  288. package/dist/kernel/lifecycle/required-modules.d.ts.map +1 -0
  289. package/dist/kernel/lifecycle/required-modules.js +80 -0
  290. package/dist/kernel/lifecycle/required-modules.js.map +1 -0
  291. package/dist/kernel/lifecycle/unique-module-ids.d.ts +58 -0
  292. package/dist/kernel/lifecycle/unique-module-ids.d.ts.map +1 -0
  293. package/dist/kernel/lifecycle/unique-module-ids.js +82 -0
  294. package/dist/kernel/lifecycle/unique-module-ids.js.map +1 -0
  295. package/dist/kernel/logging.d.ts +116 -0
  296. package/dist/kernel/logging.d.ts.map +1 -0
  297. package/dist/kernel/logging.js +71 -0
  298. package/dist/kernel/logging.js.map +1 -0
  299. package/dist/kernel/module-context.d.ts +563 -0
  300. package/dist/kernel/module-context.d.ts.map +1 -0
  301. package/dist/kernel/module-context.js +670 -0
  302. package/dist/kernel/module-context.js.map +1 -0
  303. package/dist/kernel/ports/audit.d.ts +115 -0
  304. package/dist/kernel/ports/audit.d.ts.map +1 -0
  305. package/dist/kernel/ports/audit.js +2 -0
  306. package/dist/kernel/ports/audit.js.map +1 -0
  307. package/dist/kernel/ports/organizations.d.ts +56 -0
  308. package/dist/kernel/ports/organizations.d.ts.map +1 -0
  309. package/dist/kernel/ports/organizations.js +2 -0
  310. package/dist/kernel/ports/organizations.js.map +1 -0
  311. package/dist/kernel/ports/provide.d.ts +14 -0
  312. package/dist/kernel/ports/provide.d.ts.map +1 -0
  313. package/dist/kernel/ports/provide.js +50 -0
  314. package/dist/kernel/ports/provide.js.map +1 -0
  315. package/dist/kernel/ports/require-admin.d.ts +61 -0
  316. package/dist/kernel/ports/require-admin.d.ts.map +1 -0
  317. package/dist/kernel/ports/require-admin.js +2 -0
  318. package/dist/kernel/ports/require-admin.js.map +1 -0
  319. package/dist/kernel/ports/require-customer.d.ts +17 -0
  320. package/dist/kernel/ports/require-customer.d.ts.map +1 -0
  321. package/dist/kernel/ports/require-customer.js +2 -0
  322. package/dist/kernel/ports/require-customer.js.map +1 -0
  323. package/dist/kernel/ports/sales-channel.d.ts +84 -0
  324. package/dist/kernel/ports/sales-channel.d.ts.map +1 -0
  325. package/dist/kernel/ports/sales-channel.js +2 -0
  326. package/dist/kernel/ports/sales-channel.js.map +1 -0
  327. package/dist/kernel/ports/settings.d.ts +59 -0
  328. package/dist/kernel/ports/settings.d.ts.map +1 -0
  329. package/dist/kernel/ports/settings.js +2 -0
  330. package/dist/kernel/ports/settings.js.map +1 -0
  331. package/dist/kernel/public-api-base-url.d.ts +98 -0
  332. package/dist/kernel/public-api-base-url.d.ts.map +1 -0
  333. package/dist/kernel/public-api-base-url.js +144 -0
  334. package/dist/kernel/public-api-base-url.js.map +1 -0
  335. package/dist/kernel/request-scope-hook.d.ts +63 -0
  336. package/dist/kernel/request-scope-hook.d.ts.map +1 -0
  337. package/dist/kernel/request-scope-hook.js +67 -0
  338. package/dist/kernel/request-scope-hook.js.map +1 -0
  339. package/dist/kernel/sales-channels/channel-bridge-registry.d.ts +109 -0
  340. package/dist/kernel/sales-channels/channel-bridge-registry.d.ts.map +1 -0
  341. package/dist/kernel/sales-channels/channel-bridge-registry.js +75 -0
  342. package/dist/kernel/sales-channels/channel-bridge-registry.js.map +1 -0
  343. package/dist/kernel/sales-channels/compose.d.ts +69 -0
  344. package/dist/kernel/sales-channels/compose.d.ts.map +1 -0
  345. package/dist/kernel/sales-channels/compose.js +43 -0
  346. package/dist/kernel/sales-channels/compose.js.map +1 -0
  347. package/dist/kernel/sales-channels/default-channel-reconciler.d.ts +66 -0
  348. package/dist/kernel/sales-channels/default-channel-reconciler.d.ts.map +1 -0
  349. package/dist/kernel/sales-channels/default-channel-reconciler.js +91 -0
  350. package/dist/kernel/sales-channels/default-channel-reconciler.js.map +1 -0
  351. package/dist/kernel/sales-channels/no-system-default-channel.error.d.ts +28 -0
  352. package/dist/kernel/sales-channels/no-system-default-channel.error.d.ts.map +1 -0
  353. package/dist/kernel/sales-channels/no-system-default-channel.error.js +33 -0
  354. package/dist/kernel/sales-channels/no-system-default-channel.error.js.map +1 -0
  355. package/dist/kernel/sales-channels/request-channel-assortment.d.ts +72 -0
  356. package/dist/kernel/sales-channels/request-channel-assortment.d.ts.map +1 -0
  357. package/dist/kernel/sales-channels/request-channel-assortment.js +83 -0
  358. package/dist/kernel/sales-channels/request-channel-assortment.js.map +1 -0
  359. package/dist/kernel/sales-channels/sales-channel-membership.service.d.ts +157 -0
  360. package/dist/kernel/sales-channels/sales-channel-membership.service.d.ts.map +1 -0
  361. package/dist/kernel/sales-channels/sales-channel-membership.service.js +302 -0
  362. package/dist/kernel/sales-channels/sales-channel-membership.service.js.map +1 -0
  363. package/dist/kernel/sales-channels/sales-channel-resolver.middleware.d.ts +76 -0
  364. package/dist/kernel/sales-channels/sales-channel-resolver.middleware.d.ts.map +1 -0
  365. package/dist/kernel/sales-channels/sales-channel-resolver.middleware.js +184 -0
  366. package/dist/kernel/sales-channels/sales-channel-resolver.middleware.js.map +1 -0
  367. package/dist/kernel/sales-channels/sales-channel-resolver.service.d.ts +82 -0
  368. package/dist/kernel/sales-channels/sales-channel-resolver.service.d.ts.map +1 -0
  369. package/dist/kernel/sales-channels/sales-channel-resolver.service.js +126 -0
  370. package/dist/kernel/sales-channels/sales-channel-resolver.service.js.map +1 -0
  371. package/dist/kernel/sales-channels/sales-channel.entity.d.ts +50 -0
  372. package/dist/kernel/sales-channels/sales-channel.entity.d.ts.map +1 -0
  373. package/dist/kernel/sales-channels/sales-channel.entity.js +132 -0
  374. package/dist/kernel/sales-channels/sales-channel.entity.js.map +1 -0
  375. package/dist/kernel/sales-channels/sales-channels-cache.d.ts +170 -0
  376. package/dist/kernel/sales-channels/sales-channels-cache.d.ts.map +1 -0
  377. package/dist/kernel/sales-channels/sales-channels-cache.js +243 -0
  378. package/dist/kernel/sales-channels/sales-channels-cache.js.map +1 -0
  379. package/dist/kernel/scope.d.ts +153 -0
  380. package/dist/kernel/scope.d.ts.map +1 -0
  381. package/dist/kernel/scope.js +172 -0
  382. package/dist/kernel/scope.js.map +1 -0
  383. package/dist/kernel/settings/compose.d.ts +49 -0
  384. package/dist/kernel/settings/compose.d.ts.map +1 -0
  385. package/dist/kernel/settings/compose.js +21 -0
  386. package/dist/kernel/settings/compose.js.map +1 -0
  387. package/dist/kernel/settings/manifest-reconciler.d.ts +78 -0
  388. package/dist/kernel/settings/manifest-reconciler.d.ts.map +1 -0
  389. package/dist/kernel/settings/manifest-reconciler.js +343 -0
  390. package/dist/kernel/settings/manifest-reconciler.js.map +1 -0
  391. package/dist/kernel/settings/secret-value-codec.d.ts +52 -0
  392. package/dist/kernel/settings/secret-value-codec.d.ts.map +1 -0
  393. package/dist/kernel/settings/secret-value-codec.js +102 -0
  394. package/dist/kernel/settings/secret-value-codec.js.map +1 -0
  395. package/dist/kernel/settings/setting-group.entity.d.ts +25 -0
  396. package/dist/kernel/settings/setting-group.entity.d.ts.map +1 -0
  397. package/dist/kernel/settings/setting-group.entity.js +79 -0
  398. package/dist/kernel/settings/setting-group.entity.js.map +1 -0
  399. package/dist/kernel/settings/setting-value.entity.d.ts +23 -0
  400. package/dist/kernel/settings/setting-value.entity.d.ts.map +1 -0
  401. package/dist/kernel/settings/setting-value.entity.js +66 -0
  402. package/dist/kernel/settings/setting-value.entity.js.map +1 -0
  403. package/dist/kernel/settings/setting.entity.d.ts +56 -0
  404. package/dist/kernel/settings/setting.entity.d.ts.map +1 -0
  405. package/dist/kernel/settings/setting.entity.js +147 -0
  406. package/dist/kernel/settings/setting.entity.js.map +1 -0
  407. package/dist/kernel/settings/settings-cache.d.ts +158 -0
  408. package/dist/kernel/settings/settings-cache.d.ts.map +1 -0
  409. package/dist/kernel/settings/settings-cache.js +253 -0
  410. package/dist/kernel/settings/settings-cache.js.map +1 -0
  411. package/dist/kernel/settings/settings.service.d.ts +142 -0
  412. package/dist/kernel/settings/settings.service.d.ts.map +1 -0
  413. package/dist/kernel/settings/settings.service.js +294 -0
  414. package/dist/kernel/settings/settings.service.js.map +1 -0
  415. package/dist/lifecycle/backend.d.ts +51 -0
  416. package/dist/lifecycle/backend.d.ts.map +1 -0
  417. package/dist/lifecycle/backend.js +40 -0
  418. package/dist/lifecycle/backend.js.map +1 -0
  419. package/dist/lifecycle/commands/activation.commands.d.ts +97 -0
  420. package/dist/lifecycle/commands/activation.commands.d.ts.map +1 -0
  421. package/dist/lifecycle/commands/activation.commands.js +142 -0
  422. package/dist/lifecycle/commands/activation.commands.js.map +1 -0
  423. package/dist/lifecycle/commands/disable.d.ts +3 -0
  424. package/dist/lifecycle/commands/disable.d.ts.map +1 -0
  425. package/dist/lifecycle/commands/disable.js +126 -0
  426. package/dist/lifecycle/commands/disable.js.map +1 -0
  427. package/dist/lifecycle/commands/enable.d.ts +3 -0
  428. package/dist/lifecycle/commands/enable.d.ts.map +1 -0
  429. package/dist/lifecycle/commands/enable.js +102 -0
  430. package/dist/lifecycle/commands/enable.js.map +1 -0
  431. package/dist/lifecycle/commands/install.d.ts +3 -0
  432. package/dist/lifecycle/commands/install.d.ts.map +1 -0
  433. package/dist/lifecycle/commands/install.js +263 -0
  434. package/dist/lifecycle/commands/install.js.map +1 -0
  435. package/dist/lifecycle/commands/operator-entry.d.ts +104 -0
  436. package/dist/lifecycle/commands/operator-entry.d.ts.map +1 -0
  437. package/dist/lifecycle/commands/operator-entry.js +127 -0
  438. package/dist/lifecycle/commands/operator-entry.js.map +1 -0
  439. package/dist/lifecycle/commands/operator-runtime.d.ts +147 -0
  440. package/dist/lifecycle/commands/operator-runtime.d.ts.map +1 -0
  441. package/dist/lifecycle/commands/operator-runtime.js +40 -0
  442. package/dist/lifecycle/commands/operator-runtime.js.map +1 -0
  443. package/dist/lifecycle/commands/status.d.ts +3 -0
  444. package/dist/lifecycle/commands/status.d.ts.map +1 -0
  445. package/dist/lifecycle/commands/status.js +108 -0
  446. package/dist/lifecycle/commands/status.js.map +1 -0
  447. package/dist/lifecycle/commands/uninstall.d.ts +3 -0
  448. package/dist/lifecycle/commands/uninstall.d.ts.map +1 -0
  449. package/dist/lifecycle/commands/uninstall.js +223 -0
  450. package/dist/lifecycle/commands/uninstall.js.map +1 -0
  451. package/dist/lifecycle/divergence-declaration.d.ts +74 -0
  452. package/dist/lifecycle/divergence-declaration.d.ts.map +1 -0
  453. package/dist/lifecycle/divergence-declaration.js +92 -0
  454. package/dist/lifecycle/divergence-declaration.js.map +1 -0
  455. package/dist/lifecycle/i18n/en.json +4 -0
  456. package/dist/lifecycle/i18n/pl.json +4 -0
  457. package/dist/lifecycle/index.d.ts +110 -0
  458. package/dist/lifecycle/index.d.ts.map +1 -0
  459. package/dist/lifecycle/index.js +189 -0
  460. package/dist/lifecycle/index.js.map +1 -0
  461. package/dist/lifecycle/manifest-registry.d.ts +244 -0
  462. package/dist/lifecycle/manifest-registry.d.ts.map +1 -0
  463. package/dist/lifecycle/manifest-registry.js +223 -0
  464. package/dist/lifecycle/manifest-registry.js.map +1 -0
  465. package/dist/lifecycle/manifest.d.ts +166 -0
  466. package/dist/lifecycle/manifest.d.ts.map +1 -0
  467. package/dist/lifecycle/manifest.js +121 -0
  468. package/dist/lifecycle/manifest.js.map +1 -0
  469. package/dist/lifecycle/plugin.d.ts +56 -0
  470. package/dist/lifecycle/plugin.d.ts.map +1 -0
  471. package/dist/lifecycle/plugin.js +59 -0
  472. package/dist/lifecycle/plugin.js.map +1 -0
  473. package/dist/lifecycle/resident.d.ts +16 -0
  474. package/dist/lifecycle/resident.d.ts.map +1 -0
  475. package/dist/lifecycle/resident.js +59 -0
  476. package/dist/lifecycle/resident.js.map +1 -0
  477. package/dist/lifecycle/routes.admin.d.ts +57 -0
  478. package/dist/lifecycle/routes.admin.d.ts.map +1 -0
  479. package/dist/lifecycle/routes.admin.js +162 -0
  480. package/dist/lifecycle/routes.admin.js.map +1 -0
  481. package/dist/lifecycle/routes.storefront.d.ts +26 -0
  482. package/dist/lifecycle/routes.storefront.d.ts.map +1 -0
  483. package/dist/lifecycle/routes.storefront.js +36 -0
  484. package/dist/lifecycle/routes.storefront.js.map +1 -0
  485. package/dist/lifecycle/services/deactivation-ledger.d.ts +216 -0
  486. package/dist/lifecycle/services/deactivation-ledger.d.ts.map +1 -0
  487. package/dist/lifecycle/services/deactivation-ledger.js +171 -0
  488. package/dist/lifecycle/services/deactivation-ledger.js.map +1 -0
  489. package/dist/lifecycle/services/dep-graph.d.ts +119 -0
  490. package/dist/lifecycle/services/dep-graph.d.ts.map +1 -0
  491. package/dist/lifecycle/services/dep-graph.js +334 -0
  492. package/dist/lifecycle/services/dep-graph.js.map +1 -0
  493. package/dist/lifecycle/services/gating-graph.d.ts +164 -0
  494. package/dist/lifecycle/services/gating-graph.d.ts.map +1 -0
  495. package/dist/lifecycle/services/gating-graph.js +203 -0
  496. package/dist/lifecycle/services/gating-graph.js.map +1 -0
  497. package/dist/lifecycle/services/lock.d.ts +27 -0
  498. package/dist/lifecycle/services/lock.d.ts.map +1 -0
  499. package/dist/lifecycle/services/lock.js +82 -0
  500. package/dist/lifecycle/services/lock.js.map +1 -0
  501. package/dist/lifecycle/services/manifest-loader.d.ts +125 -0
  502. package/dist/lifecycle/services/manifest-loader.d.ts.map +1 -0
  503. package/dist/lifecycle/services/manifest-loader.js +210 -0
  504. package/dist/lifecycle/services/manifest-loader.js.map +1 -0
  505. package/dist/lifecycle/services/migration-ownership.d.ts +36 -0
  506. package/dist/lifecycle/services/migration-ownership.d.ts.map +1 -0
  507. package/dist/lifecycle/services/migration-ownership.js +15 -0
  508. package/dist/lifecycle/services/migration-ownership.js.map +1 -0
  509. package/dist/lifecycle/services/module-id-claims.d.ts +38 -0
  510. package/dist/lifecycle/services/module-id-claims.d.ts.map +1 -0
  511. package/dist/lifecycle/services/module-id-claims.js +123 -0
  512. package/dist/lifecycle/services/module-id-claims.js.map +1 -0
  513. package/dist/lifecycle/services/module-origin.d.ts +55 -0
  514. package/dist/lifecycle/services/module-origin.d.ts.map +1 -0
  515. package/dist/lifecycle/services/module-origin.js +47 -0
  516. package/dist/lifecycle/services/module-origin.js.map +1 -0
  517. package/dist/lifecycle/services/orchestrator.d.ts +235 -0
  518. package/dist/lifecycle/services/orchestrator.d.ts.map +1 -0
  519. package/dist/lifecycle/services/orchestrator.js +954 -0
  520. package/dist/lifecycle/services/orchestrator.js.map +1 -0
  521. package/dist/lifecycle/services/presence-load.d.ts +281 -0
  522. package/dist/lifecycle/services/presence-load.d.ts.map +1 -0
  523. package/dist/lifecycle/services/presence-load.js +437 -0
  524. package/dist/lifecycle/services/presence-load.js.map +1 -0
  525. package/dist/lifecycle/services/static-registry.d.ts +47 -0
  526. package/dist/lifecycle/services/static-registry.d.ts.map +1 -0
  527. package/dist/lifecycle/services/static-registry.js +41 -0
  528. package/dist/lifecycle/services/static-registry.js.map +1 -0
  529. package/dist/migrations/20260424T165847_core_foundation_init.d.ts +25 -0
  530. package/dist/migrations/20260424T165847_core_foundation_init.d.ts.map +1 -0
  531. package/dist/migrations/20260424T165847_core_foundation_init.js +238 -0
  532. package/dist/migrations/20260424T165847_core_foundation_init.js.map +1 -0
  533. package/dist/migrations/20260425T050720_core_commerce_init.d.ts +19 -0
  534. package/dist/migrations/20260425T050720_core_commerce_init.d.ts.map +1 -0
  535. package/dist/migrations/20260425T050720_core_commerce_init.js +200 -0
  536. package/dist/migrations/20260425T050720_core_commerce_init.js.map +1 -0
  537. package/dist/migrations/20260430T101450_core_settings_init.d.ts +25 -0
  538. package/dist/migrations/20260430T101450_core_settings_init.d.ts.map +1 -0
  539. package/dist/migrations/20260430T101450_core_settings_init.js +113 -0
  540. package/dist/migrations/20260430T101450_core_settings_init.js.map +1 -0
  541. package/dist/migrations/20260430T170044_core_sales_channels_promote.d.ts +67 -0
  542. package/dist/migrations/20260430T170044_core_sales_channels_promote.d.ts.map +1 -0
  543. package/dist/migrations/20260430T170044_core_sales_channels_promote.js +101 -0
  544. package/dist/migrations/20260430T170044_core_sales_channels_promote.js.map +1 -0
  545. package/dist/migrations/20260506T200657_core_module_lifecycle_init.d.ts +21 -0
  546. package/dist/migrations/20260506T200657_core_module_lifecycle_init.d.ts.map +1 -0
  547. package/dist/migrations/20260506T200657_core_module_lifecycle_init.js +41 -0
  548. package/dist/migrations/20260506T200657_core_module_lifecycle_init.js.map +1 -0
  549. package/dist/migrations/20260514T111329_core_settings_global_value.d.ts +30 -0
  550. package/dist/migrations/20260514T111329_core_settings_global_value.d.ts.map +1 -0
  551. package/dist/migrations/20260514T111329_core_settings_global_value.js +34 -0
  552. package/dist/migrations/20260514T111329_core_settings_global_value.js.map +1 -0
  553. package/dist/migrations/20260611T140411_core_settings_secret_value_type.d.ts +26 -0
  554. package/dist/migrations/20260611T140411_core_settings_secret_value_type.d.ts.map +1 -0
  555. package/dist/migrations/20260611T140411_core_settings_secret_value_type.js +63 -0
  556. package/dist/migrations/20260611T140411_core_settings_secret_value_type.js.map +1 -0
  557. package/dist/migrations/20260611T140419_core_settings_enum_options.d.ts +19 -0
  558. package/dist/migrations/20260611T140419_core_settings_enum_options.d.ts.map +1 -0
  559. package/dist/migrations/20260611T140419_core_settings_enum_options.js +23 -0
  560. package/dist/migrations/20260611T140419_core_settings_enum_options.js.map +1 -0
  561. package/dist/migrations/20260629T090100_core_settings_hidden_flag.d.ts +20 -0
  562. package/dist/migrations/20260629T090100_core_settings_hidden_flag.d.ts.map +1 -0
  563. package/dist/migrations/20260629T090100_core_settings_hidden_flag.js +24 -0
  564. package/dist/migrations/20260629T090100_core_settings_hidden_flag.js.map +1 -0
  565. package/dist/migrations/20260717T134752_core_tenant_scope_indexes.d.ts +27 -0
  566. package/dist/migrations/20260717T134752_core_tenant_scope_indexes.d.ts.map +1 -0
  567. package/dist/migrations/20260717T134752_core_tenant_scope_indexes.js +32 -0
  568. package/dist/migrations/20260717T134752_core_tenant_scope_indexes.js.map +1 -0
  569. package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.d.ts +24 -0
  570. package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.d.ts.map +1 -0
  571. package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.js +57 -0
  572. package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.js.map +1 -0
  573. package/dist/migrations/20260816T203339_core_retire_core_activation_settings.d.ts +39 -0
  574. package/dist/migrations/20260816T203339_core_retire_core_activation_settings.d.ts.map +1 -0
  575. package/dist/migrations/20260816T203339_core_retire_core_activation_settings.js +59 -0
  576. package/dist/migrations/20260816T203339_core_retire_core_activation_settings.js.map +1 -0
  577. package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.d.ts +34 -0
  578. package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.d.ts.map +1 -0
  579. package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.js +38 -0
  580. package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.js.map +1 -0
  581. package/dist/migrations/baseline-migrations.generated.d.ts +2 -0
  582. package/dist/migrations/baseline-migrations.generated.d.ts.map +1 -0
  583. package/dist/migrations/baseline-migrations.generated.js +136 -0
  584. package/dist/migrations/baseline-migrations.generated.js.map +1 -0
  585. package/dist/migrations/index.d.ts +62 -0
  586. package/dist/migrations/index.d.ts.map +1 -0
  587. package/dist/migrations/index.js +75 -0
  588. package/dist/migrations/index.js.map +1 -0
  589. package/dist/overlay/deployment-roots.d.ts +37 -0
  590. package/dist/overlay/deployment-roots.d.ts.map +1 -0
  591. package/dist/overlay/deployment-roots.js +90 -0
  592. package/dist/overlay/deployment-roots.js.map +1 -0
  593. package/dist/overlay/index.d.ts +62 -0
  594. package/dist/overlay/index.d.ts.map +1 -0
  595. package/dist/overlay/index.js +62 -0
  596. package/dist/overlay/index.js.map +1 -0
  597. package/dist/overlay/overlay-runtime.d.ts +173 -0
  598. package/dist/overlay/overlay-runtime.d.ts.map +1 -0
  599. package/dist/overlay/overlay-runtime.js +281 -0
  600. package/dist/overlay/overlay-runtime.js.map +1 -0
  601. package/dist/overlay/resolve-overlay.d.ts +41 -0
  602. package/dist/overlay/resolve-overlay.d.ts.map +1 -0
  603. package/dist/overlay/resolve-overlay.js +72 -0
  604. package/dist/overlay/resolve-overlay.js.map +1 -0
  605. package/dist/packages/index.d.ts +57 -0
  606. package/dist/packages/index.d.ts.map +1 -0
  607. package/dist/packages/index.js +57 -0
  608. package/dist/packages/index.js.map +1 -0
  609. package/dist/packages/installed-packages.d.ts +79 -0
  610. package/dist/packages/installed-packages.d.ts.map +1 -0
  611. package/dist/packages/installed-packages.js +312 -0
  612. package/dist/packages/installed-packages.js.map +1 -0
  613. package/dist/packages/package-entity-lookup.d.ts +120 -0
  614. package/dist/packages/package-entity-lookup.d.ts.map +1 -0
  615. package/dist/packages/package-entity-lookup.js +17 -0
  616. package/dist/packages/package-entity-lookup.js.map +1 -0
  617. package/dist/packages/package-runtime.d.ts +177 -0
  618. package/dist/packages/package-runtime.d.ts.map +1 -0
  619. package/dist/packages/package-runtime.js +386 -0
  620. package/dist/packages/package-runtime.js.map +1 -0
  621. package/dist/tenancy/derived-scope.d.ts +43 -0
  622. package/dist/tenancy/derived-scope.d.ts.map +1 -0
  623. package/dist/tenancy/derived-scope.js +76 -0
  624. package/dist/tenancy/derived-scope.js.map +1 -0
  625. package/dist/tenancy/escape-hatch.d.ts +30 -0
  626. package/dist/tenancy/escape-hatch.d.ts.map +1 -0
  627. package/dist/tenancy/escape-hatch.js +50 -0
  628. package/dist/tenancy/escape-hatch.js.map +1 -0
  629. package/dist/tenancy/filters.d.ts +87 -0
  630. package/dist/tenancy/filters.d.ts.map +1 -0
  631. package/dist/tenancy/filters.js +126 -0
  632. package/dist/tenancy/filters.js.map +1 -0
  633. package/dist/tenancy/index.d.ts +63 -0
  634. package/dist/tenancy/index.d.ts.map +1 -0
  635. package/dist/tenancy/index.js +61 -0
  636. package/dist/tenancy/index.js.map +1 -0
  637. package/dist/tenancy/org-scoped.decorator.d.ts +150 -0
  638. package/dist/tenancy/org-scoped.decorator.d.ts.map +1 -0
  639. package/dist/tenancy/org-scoped.decorator.js +339 -0
  640. package/dist/tenancy/org-scoped.decorator.js.map +1 -0
  641. package/dist/tenancy/org-write-guard.d.ts +106 -0
  642. package/dist/tenancy/org-write-guard.d.ts.map +1 -0
  643. package/dist/tenancy/org-write-guard.js +141 -0
  644. package/dist/tenancy/org-write-guard.js.map +1 -0
  645. package/dist/tenancy/resolve-tenant-context.d.ts +91 -0
  646. package/dist/tenancy/resolve-tenant-context.d.ts.map +1 -0
  647. package/dist/tenancy/resolve-tenant-context.js +85 -0
  648. package/dist/tenancy/resolve-tenant-context.js.map +1 -0
  649. package/dist/tenancy/scoped-em.d.ts +10 -0
  650. package/dist/tenancy/scoped-em.d.ts.map +1 -0
  651. package/dist/tenancy/scoped-em.js +11 -0
  652. package/dist/tenancy/scoped-em.js.map +1 -0
  653. package/dist/tenancy/tenant-context.d.ts +154 -0
  654. package/dist/tenancy/tenant-context.d.ts.map +1 -0
  655. package/dist/tenancy/tenant-context.js +109 -0
  656. package/dist/tenancy/tenant-context.js.map +1 -0
  657. package/package.json +123 -0
@@ -0,0 +1,57 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Settings `credential_ref` value type (feature 058, US2).
4
+ *
5
+ * 1. Extends the `setting_value_type` Postgres enum with `'credential_ref'`.
6
+ * The enum is recreated (rename → create → re-point column → drop old)
7
+ * instead of `ALTER TYPE ... ADD VALUE` because the migrator runs with
8
+ * `allOrNothing: true` (one master transaction) and PostgreSQL forbids
9
+ * using an enum value added via ADD VALUE inside the same transaction.
10
+ * Mirrors `069_settings_secret_value_type.ts`.
11
+ * 2. Adds the nullable `settings.configuration_type` column — the configuration
12
+ * type a `credential_ref` setting is constrained to (upserted by the
13
+ * reconciler from the manifest entry's `configurationType`).
14
+ *
15
+ * Filed under `core` since feature 072 T020. The kernel owns the tables this
16
+ * migration writes to, and a hard uninstall reverts by registry `moduleId`, so
17
+ * leaving it under `settings` made `modules:uninstall --hard settings` drop
18
+ * kernel schema.
19
+ */
20
+ export class Migration20260721T011510CoreSettingsCredentialRefValueType extends Migration {
21
+ async up() {
22
+ this.addSql(`alter type "setting_value_type" rename to "setting_value_type_old";`);
23
+ this.addSql(`
24
+ create type "setting_value_type" as enum
25
+ ('string', 'number', 'boolean', 'json', 'string_list', 'secret', 'credential_ref');
26
+ `);
27
+ this.addSql(`
28
+ alter table "settings"
29
+ alter column "value_type" type "setting_value_type"
30
+ using "value_type"::text::"setting_value_type";
31
+ `);
32
+ this.addSql(`drop type "setting_value_type_old";`);
33
+ this.addSql(`alter table "settings" add column "configuration_type" varchar(64) null;`);
34
+ }
35
+ async down() {
36
+ this.addSql(`alter table "settings" drop column "configuration_type";`);
37
+ // Every credential_ref row must leave the enum value before the narrowing
38
+ // cast below.
39
+ this.addSql(`
40
+ update "settings"
41
+ set "value_type" = 'string'
42
+ where "value_type" = 'credential_ref';
43
+ `);
44
+ this.addSql(`alter type "setting_value_type" rename to "setting_value_type_old";`);
45
+ this.addSql(`
46
+ create type "setting_value_type" as enum
47
+ ('string', 'number', 'boolean', 'json', 'string_list', 'secret');
48
+ `);
49
+ this.addSql(`
50
+ alter table "settings"
51
+ alter column "value_type" type "setting_value_type"
52
+ using "value_type"::text::"setting_value_type";
53
+ `);
54
+ this.addSql(`drop type "setting_value_type_old";`);
55
+ }
56
+ }
57
+ //# sourceMappingURL=20260721T011510_core_settings_credential_ref_value_type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20260721T011510_core_settings_credential_ref_value_type.js","sourceRoot":"","sources":["../../src/migrations/20260721T011510_core_settings_credential_ref_value_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,OAAO,0DAA2D,SAAQ,SAAS;IAC9E,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,qEAAqE,CAAC,CAAC;QACnF,IAAI,CAAC,MAAM,CAAC;;;KAGX,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC;;;;KAIX,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC;QAEnD,IAAI,CAAC,MAAM,CAAC,0EAA0E,CAAC,CAAC;IAC1F,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,0DAA0D,CAAC,CAAC;QAExE,0EAA0E;QAC1E,cAAc;QACd,IAAI,CAAC,MAAM,CAAC;;;;KAIX,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,qEAAqE,CAAC,CAAC;QACnF,IAAI,CAAC,MAAM,CAAC;;;KAGX,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC;;;;KAIX,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC;IACrD,CAAC;CACF"}
@@ -0,0 +1,39 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Feature 074, FR-010a — delete the six activation Setting rows whose modules
4
+ * became core.
5
+ *
6
+ * `settings`, `sales_channels`, `carts`, `taxes`, `price_lists` and
7
+ * `audit_logs` each declared `<module>.enabled` and pointed
8
+ * `activation.settingCode` at it. Phase 1 replaces those controls with
9
+ * `nonDeactivatable`, which resolves `settingCode` to `null` — and that is
10
+ * exactly what makes the leftover rows harmful rather than merely stale:
11
+ * `SettingsAdminService.classify()` marks a row activation-protected only while
12
+ * `activationControlOwner(code)` still matches its owner, so the moment the
13
+ * declaration goes the row falls through to `{ editable: true,
14
+ * activationControl: false }`. A core module is always present, so `editable`
15
+ * is `true`. The result would be a live boolean on the Settings screen,
16
+ * labelled as the module's enablement, that changes nothing — the
17
+ * present-but-ignored shape Principle XVII prohibits, and strictly worse than
18
+ * the locked control it replaced.
19
+ *
20
+ * Dropping the manifest declaration does not remove the row.
21
+ * `kernel/settings/manifest-reconciler.ts` detects rows a module no longer
22
+ * declares and reports them as `orphanSettings` **for warning purposes only**,
23
+ * deliberately, so a boot process never destroys an operator's stored values.
24
+ * Every existing database therefore keeps all six rows forever unless a
25
+ * migration removes them, which is what this one does.
26
+ *
27
+ * It is filed under `core` rather than as six per-module migrations because the
28
+ * `settings` table is kernel-owned (see `*_core_settings_*.ts` in this
29
+ * directory) and a module migration must not write another owner's table.
30
+ *
31
+ * No schema change. `setting_values` and `setting_sales_channels` both
32
+ * reference `settings (id)` with `on delete cascade`, so the per-channel
33
+ * overrides and channel scopes of these rows go with them.
34
+ */
35
+ export declare class Migration20260816T203339CoreRetireCoreActivationSettings extends Migration {
36
+ up(): Promise<void>;
37
+ down(): Promise<void>;
38
+ }
39
+ //# sourceMappingURL=20260816T203339_core_retire_core_activation_settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20260816T203339_core_retire_core_activation_settings.d.ts","sourceRoot":"","sources":["../../src/migrations/20260816T203339_core_retire_core_activation_settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,qBAAa,wDAAyD,SAAQ,SAAS;IACtE,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAcnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CASrC"}
@@ -0,0 +1,59 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * Feature 074, FR-010a — delete the six activation Setting rows whose modules
4
+ * became core.
5
+ *
6
+ * `settings`, `sales_channels`, `carts`, `taxes`, `price_lists` and
7
+ * `audit_logs` each declared `<module>.enabled` and pointed
8
+ * `activation.settingCode` at it. Phase 1 replaces those controls with
9
+ * `nonDeactivatable`, which resolves `settingCode` to `null` — and that is
10
+ * exactly what makes the leftover rows harmful rather than merely stale:
11
+ * `SettingsAdminService.classify()` marks a row activation-protected only while
12
+ * `activationControlOwner(code)` still matches its owner, so the moment the
13
+ * declaration goes the row falls through to `{ editable: true,
14
+ * activationControl: false }`. A core module is always present, so `editable`
15
+ * is `true`. The result would be a live boolean on the Settings screen,
16
+ * labelled as the module's enablement, that changes nothing — the
17
+ * present-but-ignored shape Principle XVII prohibits, and strictly worse than
18
+ * the locked control it replaced.
19
+ *
20
+ * Dropping the manifest declaration does not remove the row.
21
+ * `kernel/settings/manifest-reconciler.ts` detects rows a module no longer
22
+ * declares and reports them as `orphanSettings` **for warning purposes only**,
23
+ * deliberately, so a boot process never destroys an operator's stored values.
24
+ * Every existing database therefore keeps all six rows forever unless a
25
+ * migration removes them, which is what this one does.
26
+ *
27
+ * It is filed under `core` rather than as six per-module migrations because the
28
+ * `settings` table is kernel-owned (see `*_core_settings_*.ts` in this
29
+ * directory) and a module migration must not write another owner's table.
30
+ *
31
+ * No schema change. `setting_values` and `setting_sales_channels` both
32
+ * reference `settings (id)` with `on delete cascade`, so the per-channel
33
+ * overrides and channel scopes of these rows go with them.
34
+ */
35
+ export class Migration20260816T203339CoreRetireCoreActivationSettings extends Migration {
36
+ async up() {
37
+ this.addSql(`
38
+ delete from "settings"
39
+ where "code" in (
40
+ 'settings.enabled',
41
+ 'sales_channels.enabled',
42
+ 'carts.enabled',
43
+ 'taxes.enabled',
44
+ 'price_lists.enabled',
45
+ 'audit_logs.enabled'
46
+ );
47
+ `);
48
+ }
49
+ async down() {
50
+ // Deliberately empty, and it is not an oversight. The rows are not schema:
51
+ // the boot reconciler creates a declared Setting from its manifest, so the
52
+ // way back is to restore the six `activation: { settingCode, default }`
53
+ // declarations and let the reconciler re-create the rows on the next start.
54
+ // Re-inserting them here would need a group id, an owner and a default that
55
+ // this migration would have to invent, and would produce rows no manifest
56
+ // declares — the orphan state the `up` exists to clear.
57
+ }
58
+ }
59
+ //# sourceMappingURL=20260816T203339_core_retire_core_activation_settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20260816T203339_core_retire_core_activation_settings.js","sourceRoot":"","sources":["../../src/migrations/20260816T203339_core_retire_core_activation_settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAM,OAAO,wDAAyD,SAAQ,SAAS;IAC5E,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC;;;;;;;;;;KAUX,CAAC,CAAC;IACL,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,2EAA2E;QAC3E,2EAA2E;QAC3E,wEAAwE;QACxE,4EAA4E;QAC5E,4EAA4E;QAC5E,0EAA0E;QAC1E,wDAAwD;IAC1D,CAAC;CACF"}
@@ -0,0 +1,34 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * `module_registrations.boot_converged_at` — the marker that says a row was
4
+ * written by boot convergence and no install has run.
5
+ *
6
+ * ## What it closes
7
+ *
8
+ * `reconcileExistingModules` inserts `state='installed'` for every shipped
9
+ * manifest with no row, from `composeApp`, and runs no install hook. `install`
10
+ * then short-circuited on `state === 'installed'` and answered
11
+ * `already-installed`, so a database whose first action after the migrations was
12
+ * a boot could never run any `installHook`, and nothing said so. This column is
13
+ * the one datum that tells the two kinds of `installed` row apart.
14
+ *
15
+ * ## Purely additive, and the absence of a backfill is provable
16
+ *
17
+ * The column is nullable and every existing row keeps `null`, which reads as
18
+ * *"an install produced this"*. That is correct for all of them: until feature
19
+ * 134's W7 the tree had **no `installHook` at all** — `custom_fields`'
20
+ * `uninstallHook` was the only lifecycle hook in it — so no historical
21
+ * `installed` row can have skipped one. A blanket backfill would assert the
22
+ * opposite of the truth for every row a real `module:install` wrote.
23
+ *
24
+ * The four-state FSM is untouched: this says nothing about `state` and adds no
25
+ * constraint to it. Filed under `core` like every other migration in this
26
+ * package — the kernel owns the table, and a hard uninstall reverts by registry
27
+ * `moduleId`, so filing it under a module would make that module's
28
+ * `--hard` uninstall drop kernel schema.
29
+ */
30
+ export declare class Migration20260919T101500CoreModuleRegistrationsBootConverged extends Migration {
31
+ up(): Promise<void>;
32
+ down(): Promise<void>;
33
+ }
34
+ //# sourceMappingURL=20260919T101500_core_module_registrations_boot_converged.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20260919T101500_core_module_registrations_boot_converged.d.ts","sourceRoot":"","sources":["../../src/migrations/20260919T101500_core_module_registrations_boot_converged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,qBAAa,4DAA6D,SAAQ,SAAS;IAC1E,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
@@ -0,0 +1,38 @@
1
+ import { Migration } from '@mikro-orm/migrations';
2
+ /**
3
+ * `module_registrations.boot_converged_at` — the marker that says a row was
4
+ * written by boot convergence and no install has run.
5
+ *
6
+ * ## What it closes
7
+ *
8
+ * `reconcileExistingModules` inserts `state='installed'` for every shipped
9
+ * manifest with no row, from `composeApp`, and runs no install hook. `install`
10
+ * then short-circuited on `state === 'installed'` and answered
11
+ * `already-installed`, so a database whose first action after the migrations was
12
+ * a boot could never run any `installHook`, and nothing said so. This column is
13
+ * the one datum that tells the two kinds of `installed` row apart.
14
+ *
15
+ * ## Purely additive, and the absence of a backfill is provable
16
+ *
17
+ * The column is nullable and every existing row keeps `null`, which reads as
18
+ * *"an install produced this"*. That is correct for all of them: until feature
19
+ * 134's W7 the tree had **no `installHook` at all** — `custom_fields`'
20
+ * `uninstallHook` was the only lifecycle hook in it — so no historical
21
+ * `installed` row can have skipped one. A blanket backfill would assert the
22
+ * opposite of the truth for every row a real `module:install` wrote.
23
+ *
24
+ * The four-state FSM is untouched: this says nothing about `state` and adds no
25
+ * constraint to it. Filed under `core` like every other migration in this
26
+ * package — the kernel owns the table, and a hard uninstall reverts by registry
27
+ * `moduleId`, so filing it under a module would make that module's
28
+ * `--hard` uninstall drop kernel schema.
29
+ */
30
+ export class Migration20260919T101500CoreModuleRegistrationsBootConverged extends Migration {
31
+ async up() {
32
+ this.addSql(`alter table "module_registrations" add column "boot_converged_at" timestamptz null;`);
33
+ }
34
+ async down() {
35
+ this.addSql(`alter table "module_registrations" drop column "boot_converged_at";`);
36
+ }
37
+ }
38
+ //# sourceMappingURL=20260919T101500_core_module_registrations_boot_converged.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"20260919T101500_core_module_registrations_boot_converged.js","sourceRoot":"","sources":["../../src/migrations/20260919T101500_core_module_registrations_boot_converged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,OAAO,4DAA6D,SAAQ,SAAS;IAChF,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,qFAAqF,CACtF,CAAC;IACJ,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,qEAAqE,CAAC,CAAC;IACrF,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export declare const BASELINE_MIGRATIONS: readonly string[];
2
+ //# sourceMappingURL=baseline-migrations.generated.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseline-migrations.generated.d.ts","sourceRoot":"","sources":["../../src/migrations/baseline-migrations.generated.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,mBAAmB,EAAE,SAAS,MAAM,EAiHhD,CAAC"}
@@ -0,0 +1,136 @@
1
+ // AUTO-GENERATED by scripts/generate-composer.ts — DO NOT EDIT.
2
+ // Run `pnpm --filter backend run composer:generate` (or rebuild the backend)
3
+ // to refresh. Editing this file by hand is undone by the next build, and
4
+ // `pnpm --filter backend run overlay:check` fails on the drift.
5
+ //
6
+ // The frozen historical prefix, by identity — every migration whose position is
7
+ // history rather than a consequence of the manifest graph, in the order history
8
+ // applied it.
9
+ //
10
+ // Normative: specs/110-instance-repository/contracts/instance-migration-order.md.
11
+ // The reason it is the platform's, and the reason membership is a name rather
12
+ // than an origin, are in ./index.ts. The reason it may not be recomputed from
13
+ // the manifest graph is BASELINE_THROUGH's own doc block: that block predates
14
+ // feature 065, its modules' `dependencies` arrays contradict the order it was
15
+ // applied in in 37 places, and re-deriving it produces an order a fresh database
16
+ // cannot apply.
17
+ //
18
+ // **Closed. It never grows or drains** (R1.4): it holds the immutable platform
19
+ // history through BASELINE_THROUGH (20260801T000000). A deployment projects
20
+ // this order onto the owners it installed; extraction cannot delete an identity
21
+ // an existing database already recorded.
22
+ export const BASELINE_MIGRATIONS = [
23
+ 'Migration20260424T165847CoreFoundationInit',
24
+ 'Migration20260424T190112QuoteRequestsInit',
25
+ 'Migration20260424T205317OrganizationsInit',
26
+ 'Migration20260425T050720CoreCommerceInit',
27
+ 'Migration20260425T051700OrganizationsInvitationsInit',
28
+ 'Migration20260425T053028AdminUsersInit',
29
+ 'Migration20260425T055041CustomerAccountsPasswordResetTokens',
30
+ 'Migration20260425T063333CreditLimitsInit',
31
+ 'Migration20260425T091359WebhooksUs7Init',
32
+ 'Migration20260425T143139AnalyticsInit',
33
+ 'Migration20260425T154404SeoInit',
34
+ 'Migration20260425T161557LanguagesCurrenciesInit',
35
+ 'Migration20260425T162418CmsPagesInit',
36
+ 'Migration20260426T075235PriceListsPricingInit',
37
+ 'Migration20260426T081516TaxesPromotionsInit',
38
+ 'Migration20260426T135443ShoppingListsInit',
39
+ 'Migration20260429T064146CatalogAttributeSetsInit',
40
+ 'Migration20260429T070004CatalogProductAttributeExtensions',
41
+ 'Migration20260429T102322CatalogProductTypeAndVirtualFields',
42
+ 'Migration20260429T111839CatalogGalleryItemsAndLabels',
43
+ 'Migration20260429T112543CatalogProductAttachments',
44
+ 'Migration20260429T123726CatalogProductLinks',
45
+ 'Migration20260429T130803CatalogGroupedAndBundle',
46
+ 'Migration20260430T101450CoreSettingsInit',
47
+ 'Migration20260430T170044CoreSalesChannelsPromote',
48
+ 'Migration20260501T123145SearchPhraseRecordsInit',
49
+ 'Migration20260501T185834ComparisonsInit',
50
+ 'Migration20260501T185835CatalogProductAttributeIsComparable',
51
+ 'Migration20260503T141344QuoteRequestsWorkflow',
52
+ 'Migration20260503T182812InventoryWorkflow',
53
+ 'Migration20260504T125655PriceListsEngine',
54
+ 'Migration20260505T060113CatalogAttributeOptionsAndFlags',
55
+ 'Migration20260505T074605PromotionsCriteria',
56
+ 'Migration20260505T102206AssetsLibraryInit',
57
+ 'Migration20260505T130214CmsInit',
58
+ 'Migration20260505T193836MegamenuInit',
59
+ 'Migration20260506T081055BlogInit',
60
+ 'Migration20260506T112634DictionariesDictionaryInit',
61
+ 'Migration20260506T200657CoreModuleLifecycleInit',
62
+ 'Migration20260507T091405I18nAdminI18nInit',
63
+ 'Migration20260507T142354AdminActionsInit',
64
+ 'Migration20260514T111329CoreSettingsGlobalValue',
65
+ 'Migration20260515T082629CatalogAttributeMassEditable',
66
+ 'Migration20260526T124736CatalogProductStatusInactive',
67
+ 'Migration20260611T140346CatalogProductValueOverridesInit',
68
+ 'Migration20260611T140347InventoryWarehouseDefaultLowStockThreshold',
69
+ 'Migration20260611T140348InventoryPerWarehouseLowStockThresholds',
70
+ 'Migration20260611T140349OrganizationsConsolidation',
71
+ 'Migration20260611T140350AdminNotificationsInit',
72
+ 'Migration20260611T140351CustomerAccountsOrganizationOptional',
73
+ 'Migration20260611T140352CartsConsolidation',
74
+ 'Migration20260611T140353PaymentMethodsAdapter',
75
+ 'Migration20260611T140354DeliveryMethodsShippingMethodsAdapterAndShipments',
76
+ 'Migration20260611T140355OrdersBusinessId',
77
+ 'Migration20260611T140356OrdersStatusModel',
78
+ 'Migration20260611T140357OrdersOrderCommentsAndSavedViews',
79
+ 'Migration20260611T140358OrganizationsOrgOrderConfirmationEmails',
80
+ 'Migration20260611T140359QuickOrderDefaultPreferences',
81
+ 'Migration20260611T140400CatalogAttributeQuickSearchable',
82
+ 'Migration20260611T140401OrdersOrderStatusDefaultName',
83
+ 'Migration20260611T140402OrganizationsOrgFulfilmentStrategy',
84
+ 'Migration20260611T140403CustomerAccountsLifecycle',
85
+ 'Migration20260611T140404CustomersCustomerAddressesInit',
86
+ 'Migration20260611T140405OrdersOrderStatusColor',
87
+ 'Migration20260611T140406OrdersOrderSavedViewColumns',
88
+ 'Migration20260611T140407CatalogBulkOperations',
89
+ 'Migration20260611T140408CatalogBulkOperationLogs',
90
+ 'Migration20260611T140409MfaInit',
91
+ 'Migration20260611T140410PromptActionsInit',
92
+ 'Migration20260611T140411CoreSettingsSecretValueType',
93
+ 'Migration20260611T140412CatalogProductPackagingUnits',
94
+ 'Migration20260611T140413CartsCartItemPackaging',
95
+ 'Migration20260611T140414OrdersOrderItemPackaging',
96
+ 'Migration20260611T140415QuoteRequestsQrItemPackaging',
97
+ 'Migration20260611T140416DeliveryMethodsFixInPersonPickupAdapter',
98
+ 'Migration20260611T140417QuoteRequestsBusinessId',
99
+ 'Migration20260611T140418ShoppingListsDefault',
100
+ 'Migration20260611T140419CoreSettingsEnumOptions',
101
+ 'Migration20260617T095510QuoteRequestsBackfillAdminCreatedAwaiting',
102
+ 'Migration20260618T100727PromotionsEngine',
103
+ 'Migration20260618T130459OrdersOrderAppliedPromotions',
104
+ 'Migration20260625T144227ReturnsInit',
105
+ 'Migration20260625T144228PwaInit',
106
+ 'Migration20260629T090100CoreSettingsHiddenFlag',
107
+ 'Migration20260629T113442TransactionalEmailsInit',
108
+ 'Migration20260629T125121InvoicesModule',
109
+ 'Migration20260629T200954NewsletterInit',
110
+ 'Migration20260708T101135StripeInit',
111
+ 'Migration20260715T103358StripePaymentRefundedAmount',
112
+ 'Migration20260715T171116GoogleAnalyticsInit',
113
+ 'Migration20260717T134752CoreTenantScopeIndexes',
114
+ 'Migration20260717T151403OrganizationsPersonalOrganizations',
115
+ 'Migration20260718T060659CatalogBulkOperationRevertState',
116
+ 'Migration20260718T200338CustomFieldsInit',
117
+ 'Migration20260718T200339OrdersOrderCustomFieldValues',
118
+ 'Migration20260718T200340OrganizationsOrganizationCustomFieldValues',
119
+ 'Migration20260718T200341CustomerAccountsCustomerAccountCustomFieldValues',
120
+ 'Migration20260718T200342QuoteRequestsQuoteRequestCustomFieldValues',
121
+ 'Migration20260718T200343CatalogCategoryCustomFieldValues',
122
+ 'Migration20260720T044254OrganizationsOrgHierarchy',
123
+ 'Migration20260720T044255CustomerAccountsCustomerSubtreeRollup',
124
+ 'Migration20260721T011509CredentialsInit',
125
+ 'Migration20260721T011510CoreSettingsCredentialRefValueType',
126
+ 'Migration20260722T224358KsefInit',
127
+ 'Migration20260723T230401CatalogAttributesOnCustomFields',
128
+ 'Migration20260724T173916ApiKeysDistributorBinding',
129
+ 'Migration20260724T193611OrdersOrderPlacementIntents',
130
+ 'Migration20260724T203140WebhooksOrgFilter',
131
+ 'Migration20260727T200555WebhooksDropExternalIntegrations',
132
+ 'Migration20260727T233211LinkedinAdsInit',
133
+ 'Migration20260728T002715MetaAdsInit',
134
+ 'Migration20260729T132507TpayInit',
135
+ ];
136
+ //# sourceMappingURL=baseline-migrations.generated.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"baseline-migrations.generated.js","sourceRoot":"","sources":["../../src/migrations/baseline-migrations.generated.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,6EAA6E;AAC7E,yEAAyE;AACzE,gEAAgE;AAChE,EAAE;AACF,gFAAgF;AAChF,gFAAgF;AAChF,cAAc;AACd,EAAE;AACF,kFAAkF;AAClF,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,8EAA8E;AAC9E,iFAAiF;AACjF,gBAAgB;AAChB,EAAE;AACF,+EAA+E;AAC/E,4EAA4E;AAC5E,gFAAgF;AAChF,yCAAyC;AAEzC,MAAM,CAAC,MAAM,mBAAmB,GAAsB;IACpD,4CAA4C;IAC5C,2CAA2C;IAC3C,2CAA2C;IAC3C,0CAA0C;IAC1C,sDAAsD;IACtD,wCAAwC;IACxC,6DAA6D;IAC7D,0CAA0C;IAC1C,yCAAyC;IACzC,uCAAuC;IACvC,iCAAiC;IACjC,iDAAiD;IACjD,sCAAsC;IACtC,+CAA+C;IAC/C,6CAA6C;IAC7C,2CAA2C;IAC3C,kDAAkD;IAClD,2DAA2D;IAC3D,4DAA4D;IAC5D,sDAAsD;IACtD,mDAAmD;IACnD,6CAA6C;IAC7C,iDAAiD;IACjD,0CAA0C;IAC1C,kDAAkD;IAClD,iDAAiD;IACjD,yCAAyC;IACzC,6DAA6D;IAC7D,+CAA+C;IAC/C,2CAA2C;IAC3C,0CAA0C;IAC1C,yDAAyD;IACzD,4CAA4C;IAC5C,2CAA2C;IAC3C,iCAAiC;IACjC,sCAAsC;IACtC,kCAAkC;IAClC,oDAAoD;IACpD,iDAAiD;IACjD,2CAA2C;IAC3C,0CAA0C;IAC1C,iDAAiD;IACjD,sDAAsD;IACtD,sDAAsD;IACtD,0DAA0D;IAC1D,oEAAoE;IACpE,iEAAiE;IACjE,oDAAoD;IACpD,gDAAgD;IAChD,8DAA8D;IAC9D,4CAA4C;IAC5C,+CAA+C;IAC/C,2EAA2E;IAC3E,0CAA0C;IAC1C,2CAA2C;IAC3C,0DAA0D;IAC1D,iEAAiE;IACjE,sDAAsD;IACtD,yDAAyD;IACzD,sDAAsD;IACtD,4DAA4D;IAC5D,mDAAmD;IACnD,wDAAwD;IACxD,gDAAgD;IAChD,qDAAqD;IACrD,+CAA+C;IAC/C,kDAAkD;IAClD,iCAAiC;IACjC,2CAA2C;IAC3C,qDAAqD;IACrD,sDAAsD;IACtD,gDAAgD;IAChD,kDAAkD;IAClD,sDAAsD;IACtD,iEAAiE;IACjE,iDAAiD;IACjD,8CAA8C;IAC9C,iDAAiD;IACjD,mEAAmE;IACnE,0CAA0C;IAC1C,sDAAsD;IACtD,qCAAqC;IACrC,iCAAiC;IACjC,gDAAgD;IAChD,iDAAiD;IACjD,wCAAwC;IACxC,wCAAwC;IACxC,oCAAoC;IACpC,qDAAqD;IACrD,6CAA6C;IAC7C,gDAAgD;IAChD,4DAA4D;IAC5D,yDAAyD;IACzD,0CAA0C;IAC1C,sDAAsD;IACtD,oEAAoE;IACpE,0EAA0E;IAC1E,oEAAoE;IACpE,0DAA0D;IAC1D,mDAAmD;IACnD,+DAA+D;IAC/D,yCAAyC;IACzC,4DAA4D;IAC5D,kCAAkC;IAClC,yDAAyD;IACzD,mDAAmD;IACnD,qDAAqD;IACrD,2CAA2C;IAC3C,0DAA0D;IAC1D,yCAAyC;IACzC,qCAAqC;IACrC,kCAAkC;CACnC,CAAC"}
@@ -0,0 +1,62 @@
1
+ /**
2
+ * `./migrations` — the platform's seventh subpath, and the platform's own claim
3
+ * about its schema history.
4
+ *
5
+ * ## What is on it
6
+ *
7
+ * {@link BASELINE_MIGRATIONS}: the frozen historical prefix, as an ordered list
8
+ * of migration class names.
9
+ * `specs/110-instance-repository/contracts/instance-migration-order.md` is
10
+ * normative and §1 is where every alternative to it is refused with the reason.
11
+ *
12
+ * The short version. The order a migration corpus is applied in is a frozen
13
+ * historical prefix — the pre-065 block, whose order is history and which the
14
+ * manifest graph contradicts in 37 places — followed by the modules, module by
15
+ * module, in a topological order of that graph. Membership of the prefix used
16
+ * to be `origin === 'core' && timestamp <= BASELINE_THROUGH`: *"came out of
17
+ * this repository's build"*. That is a different question from *"is one of the
18
+ * migrations whose order is history"*, and the two coincide exactly while every
19
+ * module is compiled into the application. Measured over the real registry the
20
+ * moment they come apart: the prefix falls from **112** entries to **11**, 181
21
+ * of 182 positions move, and six migrations — three of them `core`'s — land
22
+ * before the migration that creates a table they touch. An instance installing
23
+ * the same modules could not migrate a fresh database at all, failing at
24
+ * `Migration20260505T102206AssetsLibraryInit` with
25
+ * `relation "cms_pages" does not exist`.
26
+ *
27
+ * So membership is by **identity**, and the identities are here.
28
+ *
29
+ * ## Why the platform carries it
30
+ *
31
+ * R1.5. It is data about *this platform's* history, a client receives it by
32
+ * installing the platform, and a client receives a correction to it by
33
+ * `pnpm update`. The alternative — an instance carrying the order — makes a
34
+ * fact about our history the client's to hold, in a tree we cannot grep.
35
+ *
36
+ * ## Why no module may name it
37
+ *
38
+ * It is declared by the `exports` map and carried by no published barrel, which
39
+ * is D-160.14's third state: `node` and `tsc` resolve it, and
40
+ * `check:platform-surface` gives a module reaching it a finding of its own
41
+ * (`host-internal-subpath`). The reader is the host's ORM configuration, which
42
+ * is the one program that composes an execution order. A module's own
43
+ * `./migrations` subpath is the other side of the same conversation and is
44
+ * unaffected: it publishes that module's classes, and this publishes the order
45
+ * the platform applies them in.
46
+ */
47
+ export { BASELINE_MIGRATIONS } from './baseline-migrations.generated.js';
48
+ export { BASELINE_MIGRATION_INVENTORY, type BaselineMigrationIdentity, } from '../db/baseline-migration-inventory.js';
49
+ export { Migration20260424T165847CoreFoundationInit } from './20260424T165847_core_foundation_init.js';
50
+ export { Migration20260425T050720CoreCommerceInit } from './20260425T050720_core_commerce_init.js';
51
+ export { Migration20260430T101450CoreSettingsInit } from './20260430T101450_core_settings_init.js';
52
+ export { Migration20260430T170044CoreSalesChannelsPromote } from './20260430T170044_core_sales_channels_promote.js';
53
+ export { Migration20260506T200657CoreModuleLifecycleInit } from './20260506T200657_core_module_lifecycle_init.js';
54
+ export { Migration20260514T111329CoreSettingsGlobalValue } from './20260514T111329_core_settings_global_value.js';
55
+ export { Migration20260611T140411CoreSettingsSecretValueType } from './20260611T140411_core_settings_secret_value_type.js';
56
+ export { Migration20260611T140419CoreSettingsEnumOptions } from './20260611T140419_core_settings_enum_options.js';
57
+ export { Migration20260629T090100CoreSettingsHiddenFlag } from './20260629T090100_core_settings_hidden_flag.js';
58
+ export { Migration20260717T134752CoreTenantScopeIndexes } from './20260717T134752_core_tenant_scope_indexes.js';
59
+ export { Migration20260721T011510CoreSettingsCredentialRefValueType } from './20260721T011510_core_settings_credential_ref_value_type.js';
60
+ export { Migration20260816T203339CoreRetireCoreActivationSettings } from './20260816T203339_core_retire_core_activation_settings.js';
61
+ export { Migration20260919T101500CoreModuleRegistrationsBootConverged } from './20260919T101500_core_module_registrations_boot_converged.js';
62
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EACL,4BAA4B,EAC5B,KAAK,yBAAyB,GAC/B,MAAM,uCAAuC,CAAC;AAe/C,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AACvG,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,gDAAgD,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,+CAA+C,EAAE,MAAM,iDAAiD,CAAC;AAClH,OAAO,EAAE,+CAA+C,EAAE,MAAM,iDAAiD,CAAC;AAClH,OAAO,EAAE,mDAAmD,EAAE,MAAM,sDAAsD,CAAC;AAC3H,OAAO,EAAE,+CAA+C,EAAE,MAAM,iDAAiD,CAAC;AAClH,OAAO,EAAE,8CAA8C,EAAE,MAAM,gDAAgD,CAAC;AAChH,OAAO,EAAE,8CAA8C,EAAE,MAAM,gDAAgD,CAAC;AAChH,OAAO,EAAE,0DAA0D,EAAE,MAAM,8DAA8D,CAAC;AAC1I,OAAO,EAAE,wDAAwD,EAAE,MAAM,2DAA2D,CAAC;AACrI,OAAO,EAAE,4DAA4D,EAAE,MAAM,+DAA+D,CAAC"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * `./migrations` — the platform's seventh subpath, and the platform's own claim
3
+ * about its schema history.
4
+ *
5
+ * ## What is on it
6
+ *
7
+ * {@link BASELINE_MIGRATIONS}: the frozen historical prefix, as an ordered list
8
+ * of migration class names.
9
+ * `specs/110-instance-repository/contracts/instance-migration-order.md` is
10
+ * normative and §1 is where every alternative to it is refused with the reason.
11
+ *
12
+ * The short version. The order a migration corpus is applied in is a frozen
13
+ * historical prefix — the pre-065 block, whose order is history and which the
14
+ * manifest graph contradicts in 37 places — followed by the modules, module by
15
+ * module, in a topological order of that graph. Membership of the prefix used
16
+ * to be `origin === 'core' && timestamp <= BASELINE_THROUGH`: *"came out of
17
+ * this repository's build"*. That is a different question from *"is one of the
18
+ * migrations whose order is history"*, and the two coincide exactly while every
19
+ * module is compiled into the application. Measured over the real registry the
20
+ * moment they come apart: the prefix falls from **112** entries to **11**, 181
21
+ * of 182 positions move, and six migrations — three of them `core`'s — land
22
+ * before the migration that creates a table they touch. An instance installing
23
+ * the same modules could not migrate a fresh database at all, failing at
24
+ * `Migration20260505T102206AssetsLibraryInit` with
25
+ * `relation "cms_pages" does not exist`.
26
+ *
27
+ * So membership is by **identity**, and the identities are here.
28
+ *
29
+ * ## Why the platform carries it
30
+ *
31
+ * R1.5. It is data about *this platform's* history, a client receives it by
32
+ * installing the platform, and a client receives a correction to it by
33
+ * `pnpm update`. The alternative — an instance carrying the order — makes a
34
+ * fact about our history the client's to hold, in a tree we cannot grep.
35
+ *
36
+ * ## Why no module may name it
37
+ *
38
+ * It is declared by the `exports` map and carried by no published barrel, which
39
+ * is D-160.14's third state: `node` and `tsc` resolve it, and
40
+ * `check:platform-surface` gives a module reaching it a finding of its own
41
+ * (`host-internal-subpath`). The reader is the host's ORM configuration, which
42
+ * is the one program that composes an execution order. A module's own
43
+ * `./migrations` subpath is the other side of the same conversation and is
44
+ * unaffected: it publishes that module's classes, and this publishes the order
45
+ * the platform applies them in.
46
+ */
47
+ export { BASELINE_MIGRATIONS } from './baseline-migrations.generated.js';
48
+ export { BASELINE_MIGRATION_INVENTORY, } from '../db/baseline-migration-inventory.js';
49
+ // --- the platform's own thirteen migrations -------------------------------
50
+ //
51
+ // Named exports and no `migrations` array, and the asymmetry with a module
52
+ // package's `./migrations` barrel is deliberate. That array exists because
53
+ // `packages/package-runtime.ts` reads it out of an **installed** package's
54
+ // export and refuses the package when it is absent; the platform is not a
55
+ // module package and is discovered by nothing, so an array here would be a
56
+ // claim nothing reads. What is read is each class **by name**, by
57
+ // `backend/src/db/migrations-registry.generated.ts`, which the generator emits
58
+ // against this specifier — and a migration class name is contract in a way an
59
+ // entity class name is not: `mikro_orm_migrations` persists it, so it is a
60
+ // string every already-migrated database holds. A class that is in neither this
61
+ // barrel nor the registry is a migration that does not run.
62
+ export { Migration20260424T165847CoreFoundationInit } from './20260424T165847_core_foundation_init.js';
63
+ export { Migration20260425T050720CoreCommerceInit } from './20260425T050720_core_commerce_init.js';
64
+ export { Migration20260430T101450CoreSettingsInit } from './20260430T101450_core_settings_init.js';
65
+ export { Migration20260430T170044CoreSalesChannelsPromote } from './20260430T170044_core_sales_channels_promote.js';
66
+ export { Migration20260506T200657CoreModuleLifecycleInit } from './20260506T200657_core_module_lifecycle_init.js';
67
+ export { Migration20260514T111329CoreSettingsGlobalValue } from './20260514T111329_core_settings_global_value.js';
68
+ export { Migration20260611T140411CoreSettingsSecretValueType } from './20260611T140411_core_settings_secret_value_type.js';
69
+ export { Migration20260611T140419CoreSettingsEnumOptions } from './20260611T140419_core_settings_enum_options.js';
70
+ export { Migration20260629T090100CoreSettingsHiddenFlag } from './20260629T090100_core_settings_hidden_flag.js';
71
+ export { Migration20260717T134752CoreTenantScopeIndexes } from './20260717T134752_core_tenant_scope_indexes.js';
72
+ export { Migration20260721T011510CoreSettingsCredentialRefValueType } from './20260721T011510_core_settings_credential_ref_value_type.js';
73
+ export { Migration20260816T203339CoreRetireCoreActivationSettings } from './20260816T203339_core_retire_core_activation_settings.js';
74
+ export { Migration20260919T101500CoreModuleRegistrationsBootConverged } from './20260919T101500_core_module_registrations_boot_converged.js';
75
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EACL,4BAA4B,GAE7B,MAAM,uCAAuC,CAAC;AAE/C,6EAA6E;AAC7E,EAAE;AACF,2EAA2E;AAC3E,2EAA2E;AAC3E,2EAA2E;AAC3E,0EAA0E;AAC1E,2EAA2E;AAC3E,kEAAkE;AAClE,+EAA+E;AAC/E,8EAA8E;AAC9E,2EAA2E;AAC3E,gFAAgF;AAChF,4DAA4D;AAC5D,OAAO,EAAE,0CAA0C,EAAE,MAAM,2CAA2C,CAAC;AACvG,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,wCAAwC,EAAE,MAAM,yCAAyC,CAAC;AACnG,OAAO,EAAE,gDAAgD,EAAE,MAAM,kDAAkD,CAAC;AACpH,OAAO,EAAE,+CAA+C,EAAE,MAAM,iDAAiD,CAAC;AAClH,OAAO,EAAE,+CAA+C,EAAE,MAAM,iDAAiD,CAAC;AAClH,OAAO,EAAE,mDAAmD,EAAE,MAAM,sDAAsD,CAAC;AAC3H,OAAO,EAAE,+CAA+C,EAAE,MAAM,iDAAiD,CAAC;AAClH,OAAO,EAAE,8CAA8C,EAAE,MAAM,gDAAgD,CAAC;AAChH,OAAO,EAAE,8CAA8C,EAAE,MAAM,gDAAgD,CAAC;AAChH,OAAO,EAAE,0DAA0D,EAAE,MAAM,8DAA8D,CAAC;AAC1I,OAAO,EAAE,wDAAwD,EAAE,MAAM,2DAA2D,CAAC;AACrI,OAAO,EAAE,4DAA4D,EAAE,MAAM,+DAA+D,CAAC"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * The active deployment name, or `null` for a bare-core build.
3
+ *
4
+ * Read from `DEPLOYMENT`; blank/whitespace is treated as unset. It names no
5
+ * path, which is why it moved whole: the environment is the same environment in
6
+ * every tree.
7
+ *
8
+ * `env` is an argument rather than an ambient read because one process resolves
9
+ * both answers — a suite proves a module present with the deployment selected
10
+ * and absent without it, in one run.
11
+ */
12
+ export declare function selectedDeployment(env?: NodeJS.ProcessEnv): string | null;
13
+ /**
14
+ * Absolute path to a deployment's overlay modules root (whether or not it
15
+ * exists), under the supplied deployment root.
16
+ */
17
+ export declare function overlayModulesRootFor(deploymentRoot: string, deployment: string): string;
18
+ /**
19
+ * Every deployment under the supplied root, sorted — one directory under
20
+ * `<deploymentRoot>/apps/`.
21
+ *
22
+ * `DEPLOYMENT` selects which one a *build* composes; this is the whole set, and
23
+ * it exists so the determinism gate can verify each deployment's committed
24
+ * artefacts without being run once per deployment (issue #120). An artefact only
25
+ * a run nobody makes would check is an artefact nothing checks.
26
+ *
27
+ * A root with no `apps/` is the empty list rather than a throw: a tree that
28
+ * ships no deployment is bare core, which is a supported state and not an error.
29
+ */
30
+ export declare function deploymentsOnDisk(deploymentRoot: string): readonly string[];
31
+ /**
32
+ * The active overlay modules root, or `null` when there is no deployment or the
33
+ * deployment ships no overlay directory. A non-directory path resolves to null
34
+ * (core-only) rather than raising — a missing overlay is not an error.
35
+ */
36
+ export declare function activeOverlayModulesRoot(deploymentRoot: string, env?: NodeJS.ProcessEnv): string | null;
37
+ //# sourceMappingURL=deployment-roots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployment-roots.d.ts","sourceRoot":"","sources":["../../src/overlay/deployment-roots.ts"],"names":[],"mappings":"AA0BA;;;;;;;;;;GAUG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,IAAI,CAKtF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAExF;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,MAAM,EAAE,CAO3E;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,cAAc,EAAE,MAAM,EACtB,GAAG,GAAE,MAAM,CAAC,UAAwB,GACnC,MAAM,GAAG,IAAI,CAUf"}