@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.
- package/LICENSE +21 -0
- package/README.md +58 -0
- package/dist/cli/dispatch.d.ts +146 -0
- package/dist/cli/dispatch.d.ts.map +1 -0
- package/dist/cli/dispatch.js +259 -0
- package/dist/cli/dispatch.js.map +1 -0
- package/dist/cli/index.d.ts +58 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +58 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/module-commands.d.ts +118 -0
- package/dist/cli/module-commands.d.ts.map +1 -0
- package/dist/cli/module-commands.js +120 -0
- package/dist/cli/module-commands.js.map +1 -0
- package/dist/commands/actor.d.ts +19 -0
- package/dist/commands/actor.d.ts.map +1 -0
- package/dist/commands/actor.js +45 -0
- package/dist/commands/actor.js.map +1 -0
- package/dist/commands/audit-from-context.d.ts +24 -0
- package/dist/commands/audit-from-context.d.ts.map +1 -0
- package/dist/commands/audit-from-context.js +28 -0
- package/dist/commands/audit-from-context.js.map +1 -0
- package/dist/commands/command-bus.d.ts +40 -0
- package/dist/commands/command-bus.d.ts.map +1 -0
- package/dist/commands/command-bus.js +46 -0
- package/dist/commands/command-bus.js.map +1 -0
- package/dist/commands/command.d.ts +76 -0
- package/dist/commands/command.d.ts.map +1 -0
- package/dist/commands/command.js +2 -0
- package/dist/commands/command.js.map +1 -0
- package/dist/commands/index.d.ts +65 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +57 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/reversible.d.ts +66 -0
- package/dist/commands/reversible.d.ts.map +1 -0
- package/dist/commands/reversible.js +41 -0
- package/dist/commands/reversible.js.map +1 -0
- package/dist/composition/compose-app.d.ts +305 -0
- package/dist/composition/compose-app.d.ts.map +1 -0
- package/dist/composition/compose-app.js +939 -0
- package/dist/composition/compose-app.js.map +1 -0
- package/dist/composition/index.d.ts +92 -0
- package/dist/composition/index.d.ts.map +1 -0
- package/dist/composition/index.js +175 -0
- package/dist/composition/index.js.map +1 -0
- package/dist/composition/newsletter-token-secret.d.ts +19 -0
- package/dist/composition/newsletter-token-secret.d.ts.map +1 -0
- package/dist/composition/newsletter-token-secret.js +24 -0
- package/dist/composition/newsletter-token-secret.js.map +1 -0
- package/dist/composition/process-runs-workers.d.ts +17 -0
- package/dist/composition/process-runs-workers.d.ts.map +1 -0
- package/dist/composition/process-runs-workers.js +19 -0
- package/dist/composition/process-runs-workers.js.map +1 -0
- package/dist/db/baseline-migration-inventory.d.ts +15 -0
- package/dist/db/baseline-migration-inventory.d.ts.map +1 -0
- package/dist/db/baseline-migration-inventory.js +115 -0
- package/dist/db/baseline-migration-inventory.js.map +1 -0
- package/dist/db/configured-entities.d.ts +74 -0
- package/dist/db/configured-entities.d.ts.map +1 -0
- package/dist/db/configured-entities.js +20 -0
- package/dist/db/configured-entities.js.map +1 -0
- package/dist/db/configured-migrations.d.ts +199 -0
- package/dist/db/configured-migrations.d.ts.map +1 -0
- package/dist/db/configured-migrations.js +181 -0
- package/dist/db/configured-migrations.js.map +1 -0
- package/dist/db/index.d.ts +54 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +54 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/migrate.d.ts +21 -0
- package/dist/db/migrate.d.ts.map +1 -0
- package/dist/db/migrate.js +48 -0
- package/dist/db/migrate.js.map +1 -0
- package/dist/db/migration-order.d.ts +159 -0
- package/dist/db/migration-order.d.ts.map +1 -0
- package/dist/db/migration-order.js +273 -0
- package/dist/db/migration-order.js.map +1 -0
- package/dist/db/mikro-orm.config.d.ts +51 -0
- package/dist/db/mikro-orm.config.d.ts.map +1 -0
- package/dist/db/mikro-orm.config.js +64 -0
- package/dist/db/mikro-orm.config.js.map +1 -0
- package/dist/db/orm.d.ts +40 -0
- package/dist/db/orm.d.ts.map +1 -0
- package/dist/db/orm.js +25 -0
- package/dist/db/orm.js.map +1 -0
- package/dist/db/platform-schema.d.ts +102 -0
- package/dist/db/platform-schema.d.ts.map +1 -0
- package/dist/db/platform-schema.js +79 -0
- package/dist/db/platform-schema.js.map +1 -0
- package/dist/db/pluralizing-naming-strategy.d.ts +16 -0
- package/dist/db/pluralizing-naming-strategy.d.ts.map +1 -0
- package/dist/db/pluralizing-naming-strategy.js +66 -0
- package/dist/db/pluralizing-naming-strategy.js.map +1 -0
- package/dist/demo/guard.d.ts +101 -0
- package/dist/demo/guard.d.ts.map +1 -0
- package/dist/demo/guard.js +168 -0
- package/dist/demo/guard.js.map +1 -0
- package/dist/demo/host-command.d.ts +133 -0
- package/dist/demo/host-command.d.ts.map +1 -0
- package/dist/demo/host-command.js +113 -0
- package/dist/demo/host-command.js.map +1 -0
- package/dist/demo/index.d.ts +82 -0
- package/dist/demo/index.d.ts.map +1 -0
- package/dist/demo/index.js +82 -0
- package/dist/demo/index.js.map +1 -0
- package/dist/demo/packages.d.ts +67 -0
- package/dist/demo/packages.d.ts.map +1 -0
- package/dist/demo/packages.js +132 -0
- package/dist/demo/packages.js.map +1 -0
- package/dist/demo/plan.d.ts +111 -0
- package/dist/demo/plan.d.ts.map +1 -0
- package/dist/demo/plan.js +74 -0
- package/dist/demo/plan.js.map +1 -0
- package/dist/demo/report.d.ts +17 -0
- package/dist/demo/report.d.ts.map +1 -0
- package/dist/demo/report.js +85 -0
- package/dist/demo/report.js.map +1 -0
- package/dist/demo/runner.d.ts +207 -0
- package/dist/demo/runner.d.ts.map +1 -0
- package/dist/demo/runner.js +169 -0
- package/dist/demo/runner.js.map +1 -0
- package/dist/demo/scope.d.ts +44 -0
- package/dist/demo/scope.d.ts.map +1 -0
- package/dist/demo/scope.js +44 -0
- package/dist/demo/scope.js.map +1 -0
- package/dist/env/index.d.ts +68 -0
- package/dist/env/index.d.ts.map +1 -0
- package/dist/env/index.js +427 -0
- package/dist/env/index.js.map +1 -0
- package/dist/events/bus.d.ts +29 -0
- package/dist/events/bus.d.ts.map +1 -0
- package/dist/events/bus.js +67 -0
- package/dist/events/bus.js.map +1 -0
- package/dist/events/index.d.ts +19 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +19 -0
- package/dist/events/index.js.map +1 -0
- package/dist/http/cursor.d.ts +10 -0
- package/dist/http/cursor.d.ts.map +1 -0
- package/dist/http/cursor.js +20 -0
- package/dist/http/cursor.js.map +1 -0
- package/dist/http/error-envelope.d.ts +127 -0
- package/dist/http/error-envelope.d.ts.map +1 -0
- package/dist/http/error-envelope.js +402 -0
- package/dist/http/error-envelope.js.map +1 -0
- package/dist/http/health.d.ts +88 -0
- package/dist/http/health.d.ts.map +1 -0
- package/dist/http/health.js +77 -0
- package/dist/http/health.js.map +1 -0
- package/dist/http/index.d.ts +50 -0
- package/dist/http/index.d.ts.map +1 -0
- package/dist/http/index.js +50 -0
- package/dist/http/index.js.map +1 -0
- package/dist/http/interceptors/dispatch.d.ts +14 -0
- package/dist/http/interceptors/dispatch.d.ts.map +1 -0
- package/dist/http/interceptors/dispatch.js +113 -0
- package/dist/http/interceptors/dispatch.js.map +1 -0
- package/dist/http/interceptors/index.d.ts +6 -0
- package/dist/http/interceptors/index.d.ts.map +1 -0
- package/dist/http/interceptors/index.js +5 -0
- package/dist/http/interceptors/index.js.map +1 -0
- package/dist/http/interceptors/registry.d.ts +44 -0
- package/dist/http/interceptors/registry.d.ts.map +1 -0
- package/dist/http/interceptors/registry.js +123 -0
- package/dist/http/interceptors/registry.js.map +1 -0
- package/dist/http/interceptors/route-table.d.ts +33 -0
- package/dist/http/interceptors/route-table.d.ts.map +1 -0
- package/dist/http/interceptors/route-table.js +39 -0
- package/dist/http/interceptors/route-table.js.map +1 -0
- package/dist/http/interceptors/types.d.ts +101 -0
- package/dist/http/interceptors/types.d.ts.map +1 -0
- package/dist/http/interceptors/types.js +2 -0
- package/dist/http/interceptors/types.js.map +1 -0
- package/dist/http/interceptors/validation.d.ts +22 -0
- package/dist/http/interceptors/validation.d.ts.map +1 -0
- package/dist/http/interceptors/validation.js +39 -0
- package/dist/http/interceptors/validation.js.map +1 -0
- package/dist/http/logger.d.ts +9 -0
- package/dist/http/logger.d.ts.map +1 -0
- package/dist/http/logger.js +25 -0
- package/dist/http/logger.js.map +1 -0
- package/dist/http/openapi.d.ts +21 -0
- package/dist/http/openapi.d.ts.map +1 -0
- package/dist/http/openapi.js +114 -0
- package/dist/http/openapi.js.map +1 -0
- package/dist/http/product-audience.d.ts +78 -0
- package/dist/http/product-audience.d.ts.map +1 -0
- package/dist/http/product-audience.js +92 -0
- package/dist/http/product-audience.js.map +1 -0
- package/dist/http/request-actor.d.ts +82 -0
- package/dist/http/request-actor.d.ts.map +1 -0
- package/dist/http/request-actor.js +2 -0
- package/dist/http/request-actor.js.map +1 -0
- package/dist/http/server.d.ts +60 -0
- package/dist/http/server.d.ts.map +1 -0
- package/dist/http/server.js +117 -0
- package/dist/http/server.js.map +1 -0
- package/dist/http/storefront-revalidator.d.ts +29 -0
- package/dist/http/storefront-revalidator.d.ts.map +1 -0
- package/dist/http/storefront-revalidator.js +34 -0
- package/dist/http/storefront-revalidator.js.map +1 -0
- package/dist/http/test-actor-carrier.d.ts +28 -0
- package/dist/http/test-actor-carrier.d.ts.map +1 -0
- package/dist/http/test-actor-carrier.js +10 -0
- package/dist/http/test-actor-carrier.js.map +1 -0
- package/dist/http/trusted-proxy.d.ts +48 -0
- package/dist/http/trusted-proxy.d.ts.map +1 -0
- package/dist/http/trusted-proxy.js +136 -0
- package/dist/http/trusted-proxy.js.map +1 -0
- package/dist/kernel/audit/audit-log-entry.entity.d.ts +33 -0
- package/dist/kernel/audit/audit-log-entry.entity.d.ts.map +1 -0
- package/dist/kernel/audit/audit-log-entry.entity.js +102 -0
- package/dist/kernel/audit/audit-log-entry.entity.js.map +1 -0
- package/dist/kernel/audit/audit-log-service.d.ts +63 -0
- package/dist/kernel/audit/audit-log-service.d.ts.map +1 -0
- package/dist/kernel/audit/audit-log-service.js +107 -0
- package/dist/kernel/audit/audit-log-service.js.map +1 -0
- package/dist/kernel/cache/in-process-cache-registry.d.ts +93 -0
- package/dist/kernel/cache/in-process-cache-registry.d.ts.map +1 -0
- package/dist/kernel/cache/in-process-cache-registry.js +78 -0
- package/dist/kernel/cache/in-process-cache-registry.js.map +1 -0
- package/dist/kernel/cache/shared-drop-marks.d.ts +39 -0
- package/dist/kernel/cache/shared-drop-marks.d.ts.map +1 -0
- package/dist/kernel/cache/shared-drop-marks.js +68 -0
- package/dist/kernel/cache/shared-drop-marks.js.map +1 -0
- package/dist/kernel/compose.d.ts +234 -0
- package/dist/kernel/compose.d.ts.map +1 -0
- package/dist/kernel/compose.js +279 -0
- package/dist/kernel/compose.js.map +1 -0
- package/dist/kernel/container.d.ts +95 -0
- package/dist/kernel/container.d.ts.map +1 -0
- package/dist/kernel/container.js +90 -0
- package/dist/kernel/container.js.map +1 -0
- package/dist/kernel/contribution-sinks.d.ts +106 -0
- package/dist/kernel/contribution-sinks.d.ts.map +1 -0
- package/dist/kernel/contribution-sinks.js +153 -0
- package/dist/kernel/contribution-sinks.js.map +1 -0
- package/dist/kernel/crypto/password-hasher.d.ts +3 -0
- package/dist/kernel/crypto/password-hasher.d.ts.map +1 -0
- package/dist/kernel/crypto/password-hasher.js +44 -0
- package/dist/kernel/crypto/password-hasher.js.map +1 -0
- package/dist/kernel/i18n/error-envelope-options.d.ts +56 -0
- package/dist/kernel/i18n/error-envelope-options.d.ts.map +1 -0
- package/dist/kernel/i18n/error-envelope-options.js +46 -0
- package/dist/kernel/i18n/error-envelope-options.js.map +1 -0
- package/dist/kernel/i18n/error-translation.d.ts +144 -0
- package/dist/kernel/i18n/error-translation.d.ts.map +1 -0
- package/dist/kernel/i18n/error-translation.js +84 -0
- package/dist/kernel/i18n/error-translation.js.map +1 -0
- package/dist/kernel/i18n/request-language.d.ts +80 -0
- package/dist/kernel/i18n/request-language.d.ts.map +1 -0
- package/dist/kernel/i18n/request-language.js +168 -0
- package/dist/kernel/i18n/request-language.js.map +1 -0
- package/dist/kernel/index.d.ts +142 -0
- package/dist/kernel/index.d.ts.map +1 -0
- package/dist/kernel/index.js +160 -0
- package/dist/kernel/index.js.map +1 -0
- package/dist/kernel/lazy-port.d.ts +59 -0
- package/dist/kernel/lazy-port.d.ts.map +1 -0
- package/dist/kernel/lazy-port.js +78 -0
- package/dist/kernel/lazy-port.js.map +1 -0
- package/dist/kernel/lifecycle/activation-resolver.d.ts +63 -0
- package/dist/kernel/lifecycle/activation-resolver.d.ts.map +1 -0
- package/dist/kernel/lifecycle/activation-resolver.js +70 -0
- package/dist/kernel/lifecycle/activation-resolver.js.map +1 -0
- package/dist/kernel/lifecycle/capability-registry.d.ts +145 -0
- package/dist/kernel/lifecycle/capability-registry.d.ts.map +1 -0
- package/dist/kernel/lifecycle/capability-registry.js +170 -0
- package/dist/kernel/lifecycle/capability-registry.js.map +1 -0
- package/dist/kernel/lifecycle/effective-state.d.ts +126 -0
- package/dist/kernel/lifecycle/effective-state.d.ts.map +1 -0
- package/dist/kernel/lifecycle/effective-state.js +111 -0
- package/dist/kernel/lifecycle/effective-state.js.map +1 -0
- package/dist/kernel/lifecycle/module-registration.entity.d.ts +57 -0
- package/dist/kernel/lifecycle/module-registration.entity.d.ts.map +1 -0
- package/dist/kernel/lifecycle/module-registration.entity.js +111 -0
- package/dist/kernel/lifecycle/module-registration.entity.js.map +1 -0
- package/dist/kernel/lifecycle/plugin-helpers.d.ts +165 -0
- package/dist/kernel/lifecycle/plugin-helpers.d.ts.map +1 -0
- package/dist/kernel/lifecycle/plugin-helpers.js +395 -0
- package/dist/kernel/lifecycle/plugin-helpers.js.map +1 -0
- package/dist/kernel/lifecycle/registry-cache.d.ts +318 -0
- package/dist/kernel/lifecycle/registry-cache.d.ts.map +1 -0
- package/dist/kernel/lifecycle/registry-cache.js +509 -0
- package/dist/kernel/lifecycle/registry-cache.js.map +1 -0
- package/dist/kernel/lifecycle/required-modules.d.ts +137 -0
- package/dist/kernel/lifecycle/required-modules.d.ts.map +1 -0
- package/dist/kernel/lifecycle/required-modules.js +80 -0
- package/dist/kernel/lifecycle/required-modules.js.map +1 -0
- package/dist/kernel/lifecycle/unique-module-ids.d.ts +58 -0
- package/dist/kernel/lifecycle/unique-module-ids.d.ts.map +1 -0
- package/dist/kernel/lifecycle/unique-module-ids.js +82 -0
- package/dist/kernel/lifecycle/unique-module-ids.js.map +1 -0
- package/dist/kernel/logging.d.ts +116 -0
- package/dist/kernel/logging.d.ts.map +1 -0
- package/dist/kernel/logging.js +71 -0
- package/dist/kernel/logging.js.map +1 -0
- package/dist/kernel/module-context.d.ts +563 -0
- package/dist/kernel/module-context.d.ts.map +1 -0
- package/dist/kernel/module-context.js +670 -0
- package/dist/kernel/module-context.js.map +1 -0
- package/dist/kernel/ports/audit.d.ts +115 -0
- package/dist/kernel/ports/audit.d.ts.map +1 -0
- package/dist/kernel/ports/audit.js +2 -0
- package/dist/kernel/ports/audit.js.map +1 -0
- package/dist/kernel/ports/organizations.d.ts +56 -0
- package/dist/kernel/ports/organizations.d.ts.map +1 -0
- package/dist/kernel/ports/organizations.js +2 -0
- package/dist/kernel/ports/organizations.js.map +1 -0
- package/dist/kernel/ports/provide.d.ts +14 -0
- package/dist/kernel/ports/provide.d.ts.map +1 -0
- package/dist/kernel/ports/provide.js +50 -0
- package/dist/kernel/ports/provide.js.map +1 -0
- package/dist/kernel/ports/require-admin.d.ts +61 -0
- package/dist/kernel/ports/require-admin.d.ts.map +1 -0
- package/dist/kernel/ports/require-admin.js +2 -0
- package/dist/kernel/ports/require-admin.js.map +1 -0
- package/dist/kernel/ports/require-customer.d.ts +17 -0
- package/dist/kernel/ports/require-customer.d.ts.map +1 -0
- package/dist/kernel/ports/require-customer.js +2 -0
- package/dist/kernel/ports/require-customer.js.map +1 -0
- package/dist/kernel/ports/sales-channel.d.ts +84 -0
- package/dist/kernel/ports/sales-channel.d.ts.map +1 -0
- package/dist/kernel/ports/sales-channel.js +2 -0
- package/dist/kernel/ports/sales-channel.js.map +1 -0
- package/dist/kernel/ports/settings.d.ts +59 -0
- package/dist/kernel/ports/settings.d.ts.map +1 -0
- package/dist/kernel/ports/settings.js +2 -0
- package/dist/kernel/ports/settings.js.map +1 -0
- package/dist/kernel/public-api-base-url.d.ts +98 -0
- package/dist/kernel/public-api-base-url.d.ts.map +1 -0
- package/dist/kernel/public-api-base-url.js +144 -0
- package/dist/kernel/public-api-base-url.js.map +1 -0
- package/dist/kernel/request-scope-hook.d.ts +63 -0
- package/dist/kernel/request-scope-hook.d.ts.map +1 -0
- package/dist/kernel/request-scope-hook.js +67 -0
- package/dist/kernel/request-scope-hook.js.map +1 -0
- package/dist/kernel/sales-channels/channel-bridge-registry.d.ts +109 -0
- package/dist/kernel/sales-channels/channel-bridge-registry.d.ts.map +1 -0
- package/dist/kernel/sales-channels/channel-bridge-registry.js +75 -0
- package/dist/kernel/sales-channels/channel-bridge-registry.js.map +1 -0
- package/dist/kernel/sales-channels/compose.d.ts +69 -0
- package/dist/kernel/sales-channels/compose.d.ts.map +1 -0
- package/dist/kernel/sales-channels/compose.js +43 -0
- package/dist/kernel/sales-channels/compose.js.map +1 -0
- package/dist/kernel/sales-channels/default-channel-reconciler.d.ts +66 -0
- package/dist/kernel/sales-channels/default-channel-reconciler.d.ts.map +1 -0
- package/dist/kernel/sales-channels/default-channel-reconciler.js +91 -0
- package/dist/kernel/sales-channels/default-channel-reconciler.js.map +1 -0
- package/dist/kernel/sales-channels/no-system-default-channel.error.d.ts +28 -0
- package/dist/kernel/sales-channels/no-system-default-channel.error.d.ts.map +1 -0
- package/dist/kernel/sales-channels/no-system-default-channel.error.js +33 -0
- package/dist/kernel/sales-channels/no-system-default-channel.error.js.map +1 -0
- package/dist/kernel/sales-channels/request-channel-assortment.d.ts +72 -0
- package/dist/kernel/sales-channels/request-channel-assortment.d.ts.map +1 -0
- package/dist/kernel/sales-channels/request-channel-assortment.js +83 -0
- package/dist/kernel/sales-channels/request-channel-assortment.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-membership.service.d.ts +157 -0
- package/dist/kernel/sales-channels/sales-channel-membership.service.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-membership.service.js +302 -0
- package/dist/kernel/sales-channels/sales-channel-membership.service.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.middleware.d.ts +76 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.middleware.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.middleware.js +184 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.middleware.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.service.d.ts +82 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.service.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.service.js +126 -0
- package/dist/kernel/sales-channels/sales-channel-resolver.service.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channel.entity.d.ts +50 -0
- package/dist/kernel/sales-channels/sales-channel.entity.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channel.entity.js +132 -0
- package/dist/kernel/sales-channels/sales-channel.entity.js.map +1 -0
- package/dist/kernel/sales-channels/sales-channels-cache.d.ts +170 -0
- package/dist/kernel/sales-channels/sales-channels-cache.d.ts.map +1 -0
- package/dist/kernel/sales-channels/sales-channels-cache.js +243 -0
- package/dist/kernel/sales-channels/sales-channels-cache.js.map +1 -0
- package/dist/kernel/scope.d.ts +153 -0
- package/dist/kernel/scope.d.ts.map +1 -0
- package/dist/kernel/scope.js +172 -0
- package/dist/kernel/scope.js.map +1 -0
- package/dist/kernel/settings/compose.d.ts +49 -0
- package/dist/kernel/settings/compose.d.ts.map +1 -0
- package/dist/kernel/settings/compose.js +21 -0
- package/dist/kernel/settings/compose.js.map +1 -0
- package/dist/kernel/settings/manifest-reconciler.d.ts +78 -0
- package/dist/kernel/settings/manifest-reconciler.d.ts.map +1 -0
- package/dist/kernel/settings/manifest-reconciler.js +343 -0
- package/dist/kernel/settings/manifest-reconciler.js.map +1 -0
- package/dist/kernel/settings/secret-value-codec.d.ts +52 -0
- package/dist/kernel/settings/secret-value-codec.d.ts.map +1 -0
- package/dist/kernel/settings/secret-value-codec.js +102 -0
- package/dist/kernel/settings/secret-value-codec.js.map +1 -0
- package/dist/kernel/settings/setting-group.entity.d.ts +25 -0
- package/dist/kernel/settings/setting-group.entity.d.ts.map +1 -0
- package/dist/kernel/settings/setting-group.entity.js +79 -0
- package/dist/kernel/settings/setting-group.entity.js.map +1 -0
- package/dist/kernel/settings/setting-value.entity.d.ts +23 -0
- package/dist/kernel/settings/setting-value.entity.d.ts.map +1 -0
- package/dist/kernel/settings/setting-value.entity.js +66 -0
- package/dist/kernel/settings/setting-value.entity.js.map +1 -0
- package/dist/kernel/settings/setting.entity.d.ts +56 -0
- package/dist/kernel/settings/setting.entity.d.ts.map +1 -0
- package/dist/kernel/settings/setting.entity.js +147 -0
- package/dist/kernel/settings/setting.entity.js.map +1 -0
- package/dist/kernel/settings/settings-cache.d.ts +158 -0
- package/dist/kernel/settings/settings-cache.d.ts.map +1 -0
- package/dist/kernel/settings/settings-cache.js +253 -0
- package/dist/kernel/settings/settings-cache.js.map +1 -0
- package/dist/kernel/settings/settings.service.d.ts +142 -0
- package/dist/kernel/settings/settings.service.d.ts.map +1 -0
- package/dist/kernel/settings/settings.service.js +294 -0
- package/dist/kernel/settings/settings.service.js.map +1 -0
- package/dist/lifecycle/backend.d.ts +51 -0
- package/dist/lifecycle/backend.d.ts.map +1 -0
- package/dist/lifecycle/backend.js +40 -0
- package/dist/lifecycle/backend.js.map +1 -0
- package/dist/lifecycle/commands/activation.commands.d.ts +97 -0
- package/dist/lifecycle/commands/activation.commands.d.ts.map +1 -0
- package/dist/lifecycle/commands/activation.commands.js +142 -0
- package/dist/lifecycle/commands/activation.commands.js.map +1 -0
- package/dist/lifecycle/commands/disable.d.ts +3 -0
- package/dist/lifecycle/commands/disable.d.ts.map +1 -0
- package/dist/lifecycle/commands/disable.js +126 -0
- package/dist/lifecycle/commands/disable.js.map +1 -0
- package/dist/lifecycle/commands/enable.d.ts +3 -0
- package/dist/lifecycle/commands/enable.d.ts.map +1 -0
- package/dist/lifecycle/commands/enable.js +102 -0
- package/dist/lifecycle/commands/enable.js.map +1 -0
- package/dist/lifecycle/commands/install.d.ts +3 -0
- package/dist/lifecycle/commands/install.d.ts.map +1 -0
- package/dist/lifecycle/commands/install.js +263 -0
- package/dist/lifecycle/commands/install.js.map +1 -0
- package/dist/lifecycle/commands/operator-entry.d.ts +104 -0
- package/dist/lifecycle/commands/operator-entry.d.ts.map +1 -0
- package/dist/lifecycle/commands/operator-entry.js +127 -0
- package/dist/lifecycle/commands/operator-entry.js.map +1 -0
- package/dist/lifecycle/commands/operator-runtime.d.ts +147 -0
- package/dist/lifecycle/commands/operator-runtime.d.ts.map +1 -0
- package/dist/lifecycle/commands/operator-runtime.js +40 -0
- package/dist/lifecycle/commands/operator-runtime.js.map +1 -0
- package/dist/lifecycle/commands/status.d.ts +3 -0
- package/dist/lifecycle/commands/status.d.ts.map +1 -0
- package/dist/lifecycle/commands/status.js +108 -0
- package/dist/lifecycle/commands/status.js.map +1 -0
- package/dist/lifecycle/commands/uninstall.d.ts +3 -0
- package/dist/lifecycle/commands/uninstall.d.ts.map +1 -0
- package/dist/lifecycle/commands/uninstall.js +223 -0
- package/dist/lifecycle/commands/uninstall.js.map +1 -0
- package/dist/lifecycle/divergence-declaration.d.ts +74 -0
- package/dist/lifecycle/divergence-declaration.d.ts.map +1 -0
- package/dist/lifecycle/divergence-declaration.js +92 -0
- package/dist/lifecycle/divergence-declaration.js.map +1 -0
- package/dist/lifecycle/i18n/en.json +4 -0
- package/dist/lifecycle/i18n/pl.json +4 -0
- package/dist/lifecycle/index.d.ts +110 -0
- package/dist/lifecycle/index.d.ts.map +1 -0
- package/dist/lifecycle/index.js +189 -0
- package/dist/lifecycle/index.js.map +1 -0
- package/dist/lifecycle/manifest-registry.d.ts +244 -0
- package/dist/lifecycle/manifest-registry.d.ts.map +1 -0
- package/dist/lifecycle/manifest-registry.js +223 -0
- package/dist/lifecycle/manifest-registry.js.map +1 -0
- package/dist/lifecycle/manifest.d.ts +166 -0
- package/dist/lifecycle/manifest.d.ts.map +1 -0
- package/dist/lifecycle/manifest.js +121 -0
- package/dist/lifecycle/manifest.js.map +1 -0
- package/dist/lifecycle/plugin.d.ts +56 -0
- package/dist/lifecycle/plugin.d.ts.map +1 -0
- package/dist/lifecycle/plugin.js +59 -0
- package/dist/lifecycle/plugin.js.map +1 -0
- package/dist/lifecycle/resident.d.ts +16 -0
- package/dist/lifecycle/resident.d.ts.map +1 -0
- package/dist/lifecycle/resident.js +59 -0
- package/dist/lifecycle/resident.js.map +1 -0
- package/dist/lifecycle/routes.admin.d.ts +57 -0
- package/dist/lifecycle/routes.admin.d.ts.map +1 -0
- package/dist/lifecycle/routes.admin.js +162 -0
- package/dist/lifecycle/routes.admin.js.map +1 -0
- package/dist/lifecycle/routes.storefront.d.ts +26 -0
- package/dist/lifecycle/routes.storefront.d.ts.map +1 -0
- package/dist/lifecycle/routes.storefront.js +36 -0
- package/dist/lifecycle/routes.storefront.js.map +1 -0
- package/dist/lifecycle/services/deactivation-ledger.d.ts +216 -0
- package/dist/lifecycle/services/deactivation-ledger.d.ts.map +1 -0
- package/dist/lifecycle/services/deactivation-ledger.js +171 -0
- package/dist/lifecycle/services/deactivation-ledger.js.map +1 -0
- package/dist/lifecycle/services/dep-graph.d.ts +119 -0
- package/dist/lifecycle/services/dep-graph.d.ts.map +1 -0
- package/dist/lifecycle/services/dep-graph.js +334 -0
- package/dist/lifecycle/services/dep-graph.js.map +1 -0
- package/dist/lifecycle/services/gating-graph.d.ts +164 -0
- package/dist/lifecycle/services/gating-graph.d.ts.map +1 -0
- package/dist/lifecycle/services/gating-graph.js +203 -0
- package/dist/lifecycle/services/gating-graph.js.map +1 -0
- package/dist/lifecycle/services/lock.d.ts +27 -0
- package/dist/lifecycle/services/lock.d.ts.map +1 -0
- package/dist/lifecycle/services/lock.js +82 -0
- package/dist/lifecycle/services/lock.js.map +1 -0
- package/dist/lifecycle/services/manifest-loader.d.ts +125 -0
- package/dist/lifecycle/services/manifest-loader.d.ts.map +1 -0
- package/dist/lifecycle/services/manifest-loader.js +210 -0
- package/dist/lifecycle/services/manifest-loader.js.map +1 -0
- package/dist/lifecycle/services/migration-ownership.d.ts +36 -0
- package/dist/lifecycle/services/migration-ownership.d.ts.map +1 -0
- package/dist/lifecycle/services/migration-ownership.js +15 -0
- package/dist/lifecycle/services/migration-ownership.js.map +1 -0
- package/dist/lifecycle/services/module-id-claims.d.ts +38 -0
- package/dist/lifecycle/services/module-id-claims.d.ts.map +1 -0
- package/dist/lifecycle/services/module-id-claims.js +123 -0
- package/dist/lifecycle/services/module-id-claims.js.map +1 -0
- package/dist/lifecycle/services/module-origin.d.ts +55 -0
- package/dist/lifecycle/services/module-origin.d.ts.map +1 -0
- package/dist/lifecycle/services/module-origin.js +47 -0
- package/dist/lifecycle/services/module-origin.js.map +1 -0
- package/dist/lifecycle/services/orchestrator.d.ts +235 -0
- package/dist/lifecycle/services/orchestrator.d.ts.map +1 -0
- package/dist/lifecycle/services/orchestrator.js +954 -0
- package/dist/lifecycle/services/orchestrator.js.map +1 -0
- package/dist/lifecycle/services/presence-load.d.ts +281 -0
- package/dist/lifecycle/services/presence-load.d.ts.map +1 -0
- package/dist/lifecycle/services/presence-load.js +437 -0
- package/dist/lifecycle/services/presence-load.js.map +1 -0
- package/dist/lifecycle/services/static-registry.d.ts +47 -0
- package/dist/lifecycle/services/static-registry.d.ts.map +1 -0
- package/dist/lifecycle/services/static-registry.js +41 -0
- package/dist/lifecycle/services/static-registry.js.map +1 -0
- package/dist/migrations/20260424T165847_core_foundation_init.d.ts +25 -0
- package/dist/migrations/20260424T165847_core_foundation_init.d.ts.map +1 -0
- package/dist/migrations/20260424T165847_core_foundation_init.js +238 -0
- package/dist/migrations/20260424T165847_core_foundation_init.js.map +1 -0
- package/dist/migrations/20260425T050720_core_commerce_init.d.ts +19 -0
- package/dist/migrations/20260425T050720_core_commerce_init.d.ts.map +1 -0
- package/dist/migrations/20260425T050720_core_commerce_init.js +200 -0
- package/dist/migrations/20260425T050720_core_commerce_init.js.map +1 -0
- package/dist/migrations/20260430T101450_core_settings_init.d.ts +25 -0
- package/dist/migrations/20260430T101450_core_settings_init.d.ts.map +1 -0
- package/dist/migrations/20260430T101450_core_settings_init.js +113 -0
- package/dist/migrations/20260430T101450_core_settings_init.js.map +1 -0
- package/dist/migrations/20260430T170044_core_sales_channels_promote.d.ts +67 -0
- package/dist/migrations/20260430T170044_core_sales_channels_promote.d.ts.map +1 -0
- package/dist/migrations/20260430T170044_core_sales_channels_promote.js +101 -0
- package/dist/migrations/20260430T170044_core_sales_channels_promote.js.map +1 -0
- package/dist/migrations/20260506T200657_core_module_lifecycle_init.d.ts +21 -0
- package/dist/migrations/20260506T200657_core_module_lifecycle_init.d.ts.map +1 -0
- package/dist/migrations/20260506T200657_core_module_lifecycle_init.js +41 -0
- package/dist/migrations/20260506T200657_core_module_lifecycle_init.js.map +1 -0
- package/dist/migrations/20260514T111329_core_settings_global_value.d.ts +30 -0
- package/dist/migrations/20260514T111329_core_settings_global_value.d.ts.map +1 -0
- package/dist/migrations/20260514T111329_core_settings_global_value.js +34 -0
- package/dist/migrations/20260514T111329_core_settings_global_value.js.map +1 -0
- package/dist/migrations/20260611T140411_core_settings_secret_value_type.d.ts +26 -0
- package/dist/migrations/20260611T140411_core_settings_secret_value_type.d.ts.map +1 -0
- package/dist/migrations/20260611T140411_core_settings_secret_value_type.js +63 -0
- package/dist/migrations/20260611T140411_core_settings_secret_value_type.js.map +1 -0
- package/dist/migrations/20260611T140419_core_settings_enum_options.d.ts +19 -0
- package/dist/migrations/20260611T140419_core_settings_enum_options.d.ts.map +1 -0
- package/dist/migrations/20260611T140419_core_settings_enum_options.js +23 -0
- package/dist/migrations/20260611T140419_core_settings_enum_options.js.map +1 -0
- package/dist/migrations/20260629T090100_core_settings_hidden_flag.d.ts +20 -0
- package/dist/migrations/20260629T090100_core_settings_hidden_flag.d.ts.map +1 -0
- package/dist/migrations/20260629T090100_core_settings_hidden_flag.js +24 -0
- package/dist/migrations/20260629T090100_core_settings_hidden_flag.js.map +1 -0
- package/dist/migrations/20260717T134752_core_tenant_scope_indexes.d.ts +27 -0
- package/dist/migrations/20260717T134752_core_tenant_scope_indexes.d.ts.map +1 -0
- package/dist/migrations/20260717T134752_core_tenant_scope_indexes.js +32 -0
- package/dist/migrations/20260717T134752_core_tenant_scope_indexes.js.map +1 -0
- package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.d.ts +24 -0
- package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.d.ts.map +1 -0
- package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.js +57 -0
- package/dist/migrations/20260721T011510_core_settings_credential_ref_value_type.js.map +1 -0
- package/dist/migrations/20260816T203339_core_retire_core_activation_settings.d.ts +39 -0
- package/dist/migrations/20260816T203339_core_retire_core_activation_settings.d.ts.map +1 -0
- package/dist/migrations/20260816T203339_core_retire_core_activation_settings.js +59 -0
- package/dist/migrations/20260816T203339_core_retire_core_activation_settings.js.map +1 -0
- package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.d.ts +34 -0
- package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.d.ts.map +1 -0
- package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.js +38 -0
- package/dist/migrations/20260919T101500_core_module_registrations_boot_converged.js.map +1 -0
- package/dist/migrations/baseline-migrations.generated.d.ts +2 -0
- package/dist/migrations/baseline-migrations.generated.d.ts.map +1 -0
- package/dist/migrations/baseline-migrations.generated.js +136 -0
- package/dist/migrations/baseline-migrations.generated.js.map +1 -0
- package/dist/migrations/index.d.ts +62 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +75 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/overlay/deployment-roots.d.ts +37 -0
- package/dist/overlay/deployment-roots.d.ts.map +1 -0
- package/dist/overlay/deployment-roots.js +90 -0
- package/dist/overlay/deployment-roots.js.map +1 -0
- package/dist/overlay/index.d.ts +62 -0
- package/dist/overlay/index.d.ts.map +1 -0
- package/dist/overlay/index.js +62 -0
- package/dist/overlay/index.js.map +1 -0
- package/dist/overlay/overlay-runtime.d.ts +173 -0
- package/dist/overlay/overlay-runtime.d.ts.map +1 -0
- package/dist/overlay/overlay-runtime.js +281 -0
- package/dist/overlay/overlay-runtime.js.map +1 -0
- package/dist/overlay/resolve-overlay.d.ts +41 -0
- package/dist/overlay/resolve-overlay.d.ts.map +1 -0
- package/dist/overlay/resolve-overlay.js +72 -0
- package/dist/overlay/resolve-overlay.js.map +1 -0
- package/dist/packages/index.d.ts +57 -0
- package/dist/packages/index.d.ts.map +1 -0
- package/dist/packages/index.js +57 -0
- package/dist/packages/index.js.map +1 -0
- package/dist/packages/installed-packages.d.ts +79 -0
- package/dist/packages/installed-packages.d.ts.map +1 -0
- package/dist/packages/installed-packages.js +312 -0
- package/dist/packages/installed-packages.js.map +1 -0
- package/dist/packages/package-entity-lookup.d.ts +120 -0
- package/dist/packages/package-entity-lookup.d.ts.map +1 -0
- package/dist/packages/package-entity-lookup.js +17 -0
- package/dist/packages/package-entity-lookup.js.map +1 -0
- package/dist/packages/package-runtime.d.ts +177 -0
- package/dist/packages/package-runtime.d.ts.map +1 -0
- package/dist/packages/package-runtime.js +386 -0
- package/dist/packages/package-runtime.js.map +1 -0
- package/dist/tenancy/derived-scope.d.ts +43 -0
- package/dist/tenancy/derived-scope.d.ts.map +1 -0
- package/dist/tenancy/derived-scope.js +76 -0
- package/dist/tenancy/derived-scope.js.map +1 -0
- package/dist/tenancy/escape-hatch.d.ts +30 -0
- package/dist/tenancy/escape-hatch.d.ts.map +1 -0
- package/dist/tenancy/escape-hatch.js +50 -0
- package/dist/tenancy/escape-hatch.js.map +1 -0
- package/dist/tenancy/filters.d.ts +87 -0
- package/dist/tenancy/filters.d.ts.map +1 -0
- package/dist/tenancy/filters.js +126 -0
- package/dist/tenancy/filters.js.map +1 -0
- package/dist/tenancy/index.d.ts +63 -0
- package/dist/tenancy/index.d.ts.map +1 -0
- package/dist/tenancy/index.js +61 -0
- package/dist/tenancy/index.js.map +1 -0
- package/dist/tenancy/org-scoped.decorator.d.ts +150 -0
- package/dist/tenancy/org-scoped.decorator.d.ts.map +1 -0
- package/dist/tenancy/org-scoped.decorator.js +339 -0
- package/dist/tenancy/org-scoped.decorator.js.map +1 -0
- package/dist/tenancy/org-write-guard.d.ts +106 -0
- package/dist/tenancy/org-write-guard.d.ts.map +1 -0
- package/dist/tenancy/org-write-guard.js +141 -0
- package/dist/tenancy/org-write-guard.js.map +1 -0
- package/dist/tenancy/resolve-tenant-context.d.ts +91 -0
- package/dist/tenancy/resolve-tenant-context.d.ts.map +1 -0
- package/dist/tenancy/resolve-tenant-context.js +85 -0
- package/dist/tenancy/resolve-tenant-context.js.map +1 -0
- package/dist/tenancy/scoped-em.d.ts +10 -0
- package/dist/tenancy/scoped-em.d.ts.map +1 -0
- package/dist/tenancy/scoped-em.js +11 -0
- package/dist/tenancy/scoped-em.js.map +1 -0
- package/dist/tenancy/tenant-context.d.ts +154 -0
- package/dist/tenancy/tenant-context.d.ts.map +1 -0
- package/dist/tenancy/tenant-context.js +109 -0
- package/dist/tenancy/tenant-context.js.map +1 -0
- package/package.json +123 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Sales Channels module — feature 005 / data-model.md.
|
|
4
|
+
*
|
|
5
|
+
* The `sales_channels` table itself was created back in foundation 001;
|
|
6
|
+
* this migration promotes it from a thin catalog-owned record into the
|
|
7
|
+
* full Sales-Channel registry the spec describes:
|
|
8
|
+
*
|
|
9
|
+
* - Adds the missing identity columns (`logo_asset_id`, `theme_code`,
|
|
10
|
+
* `languages` jsonb, `currencies` jsonb, `active`, `system_default`,
|
|
11
|
+
* `version`) and the partial unique index that enforces the
|
|
12
|
+
* "exactly-one system default" invariant (FR-002).
|
|
13
|
+
* - Backfills the new jsonb arrays from the existing scalar
|
|
14
|
+
* `default_language` / `default_currency` columns and copies
|
|
15
|
+
* `status='active'` into the new boolean `active` flag.
|
|
16
|
+
*
|
|
17
|
+
* It also added a NULLABLE `sales_channel_id` column to `quote_requests`
|
|
18
|
+
* (FR-006) until `specs/120-migration-closure-bridge-ownership/` Phase 3. That
|
|
19
|
+
* column, its `ON DELETE RESTRICT` foreign key and its index are now
|
|
20
|
+
* `Migration20260912T125614QuoteRequestsQuoteRequestChannelAttribution`'s,
|
|
21
|
+
* under the same rule as the bridges below: the platform declares no
|
|
22
|
+
* dependencies, so it can never be ordered after a module's table, and
|
|
23
|
+
* `quote_requests` is not the platform's. The column is still NULLABLE and
|
|
24
|
+
* T060 (US3) still owns the backfill and the NOT NULL flip.
|
|
25
|
+
*
|
|
26
|
+
* It created eight M:N sales-channel bridge tables (FR-009) until
|
|
27
|
+
* `specs/120-migration-closure-bridge-ownership/` Phase 2. Each one now belongs
|
|
28
|
+
* to the module that owns its far side, under D-226's ownership rule: a bridge
|
|
29
|
+
* between an always-present near side and a switchable far side is the far
|
|
30
|
+
* side's. The class name and every statement below it are unchanged, so a
|
|
31
|
+
* database that already applied this migration is offered nothing — the storage
|
|
32
|
+
* keys on the class name and holds no checksum — and the eight far-side
|
|
33
|
+
* migrations are `create table if not exists` no-ops on it. On a fresh database
|
|
34
|
+
* they create the same eight tables from the same statements, later in the
|
|
35
|
+
* order, which is where they have to be for an instance that omits one of those
|
|
36
|
+
* modules to migrate at all.
|
|
37
|
+
*
|
|
38
|
+
* Deferred (intentionally NOT in this migration):
|
|
39
|
+
*
|
|
40
|
+
* - `sales_channel_inventory_locations` — the inventory module does
|
|
41
|
+
* not yet have an `inventory_locations` table. The bridge will be
|
|
42
|
+
* added in the same migration that introduces that table; until
|
|
43
|
+
* then, FR-009's "Inventory" item is unimplemented and is tracked
|
|
44
|
+
* by tasks.md T054 / data-model.md § Entities note.
|
|
45
|
+
* - The legacy `is_public` and `status` columns are kept as-is for
|
|
46
|
+
* one release cycle (R-12) so this migration is fully reversible.
|
|
47
|
+
* A later cleanup migration will drop them once every consumer has
|
|
48
|
+
* moved to `active`.
|
|
49
|
+
* - Inserting / promoting the `Default` row — the boot-time
|
|
50
|
+
* reconciler (`default-channel-reconciler.ts`) is the single source
|
|
51
|
+
* of truth (R-4).
|
|
52
|
+
*
|
|
53
|
+
* The down() reverses every up() step; the legacy columns are not
|
|
54
|
+
* touched. It no longer drops the eight bridge tables, nor the
|
|
55
|
+
* `quote_requests` column, because this migration no longer creates either —
|
|
56
|
+
* each migration that took a statement drops its own.
|
|
57
|
+
*
|
|
58
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
59
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
60
|
+
* leaving it under `sales_channels` made `modules:uninstall --hard sales_channels` drop
|
|
61
|
+
* kernel schema.
|
|
62
|
+
*/
|
|
63
|
+
export declare class Migration20260430T170044CoreSalesChannelsPromote extends Migration {
|
|
64
|
+
up(): Promise<void>;
|
|
65
|
+
down(): Promise<void>;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=20260430T170044_core_sales_channels_promote.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260430T170044_core_sales_channels_promote.d.ts","sourceRoot":"","sources":["../../src/migrations/20260430T170044_core_sales_channels_promote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,qBAAa,gDAAiD,SAAQ,SAAS;IAC9D,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAkDnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAgBrC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Sales Channels module — feature 005 / data-model.md.
|
|
4
|
+
*
|
|
5
|
+
* The `sales_channels` table itself was created back in foundation 001;
|
|
6
|
+
* this migration promotes it from a thin catalog-owned record into the
|
|
7
|
+
* full Sales-Channel registry the spec describes:
|
|
8
|
+
*
|
|
9
|
+
* - Adds the missing identity columns (`logo_asset_id`, `theme_code`,
|
|
10
|
+
* `languages` jsonb, `currencies` jsonb, `active`, `system_default`,
|
|
11
|
+
* `version`) and the partial unique index that enforces the
|
|
12
|
+
* "exactly-one system default" invariant (FR-002).
|
|
13
|
+
* - Backfills the new jsonb arrays from the existing scalar
|
|
14
|
+
* `default_language` / `default_currency` columns and copies
|
|
15
|
+
* `status='active'` into the new boolean `active` flag.
|
|
16
|
+
*
|
|
17
|
+
* It also added a NULLABLE `sales_channel_id` column to `quote_requests`
|
|
18
|
+
* (FR-006) until `specs/120-migration-closure-bridge-ownership/` Phase 3. That
|
|
19
|
+
* column, its `ON DELETE RESTRICT` foreign key and its index are now
|
|
20
|
+
* `Migration20260912T125614QuoteRequestsQuoteRequestChannelAttribution`'s,
|
|
21
|
+
* under the same rule as the bridges below: the platform declares no
|
|
22
|
+
* dependencies, so it can never be ordered after a module's table, and
|
|
23
|
+
* `quote_requests` is not the platform's. The column is still NULLABLE and
|
|
24
|
+
* T060 (US3) still owns the backfill and the NOT NULL flip.
|
|
25
|
+
*
|
|
26
|
+
* It created eight M:N sales-channel bridge tables (FR-009) until
|
|
27
|
+
* `specs/120-migration-closure-bridge-ownership/` Phase 2. Each one now belongs
|
|
28
|
+
* to the module that owns its far side, under D-226's ownership rule: a bridge
|
|
29
|
+
* between an always-present near side and a switchable far side is the far
|
|
30
|
+
* side's. The class name and every statement below it are unchanged, so a
|
|
31
|
+
* database that already applied this migration is offered nothing — the storage
|
|
32
|
+
* keys on the class name and holds no checksum — and the eight far-side
|
|
33
|
+
* migrations are `create table if not exists` no-ops on it. On a fresh database
|
|
34
|
+
* they create the same eight tables from the same statements, later in the
|
|
35
|
+
* order, which is where they have to be for an instance that omits one of those
|
|
36
|
+
* modules to migrate at all.
|
|
37
|
+
*
|
|
38
|
+
* Deferred (intentionally NOT in this migration):
|
|
39
|
+
*
|
|
40
|
+
* - `sales_channel_inventory_locations` — the inventory module does
|
|
41
|
+
* not yet have an `inventory_locations` table. The bridge will be
|
|
42
|
+
* added in the same migration that introduces that table; until
|
|
43
|
+
* then, FR-009's "Inventory" item is unimplemented and is tracked
|
|
44
|
+
* by tasks.md T054 / data-model.md § Entities note.
|
|
45
|
+
* - The legacy `is_public` and `status` columns are kept as-is for
|
|
46
|
+
* one release cycle (R-12) so this migration is fully reversible.
|
|
47
|
+
* A later cleanup migration will drop them once every consumer has
|
|
48
|
+
* moved to `active`.
|
|
49
|
+
* - Inserting / promoting the `Default` row — the boot-time
|
|
50
|
+
* reconciler (`default-channel-reconciler.ts`) is the single source
|
|
51
|
+
* of truth (R-4).
|
|
52
|
+
*
|
|
53
|
+
* The down() reverses every up() step; the legacy columns are not
|
|
54
|
+
* touched. It no longer drops the eight bridge tables, nor the
|
|
55
|
+
* `quote_requests` column, because this migration no longer creates either —
|
|
56
|
+
* each migration that took a statement drops its own.
|
|
57
|
+
*
|
|
58
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
59
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
60
|
+
* leaving it under `sales_channels` made `modules:uninstall --hard sales_channels` drop
|
|
61
|
+
* kernel schema.
|
|
62
|
+
*/
|
|
63
|
+
export class Migration20260430T170044CoreSalesChannelsPromote extends Migration {
|
|
64
|
+
async up() {
|
|
65
|
+
// -- 1. Identity columns ------------------------------------------------
|
|
66
|
+
this.addSql('alter table "sales_channels" add column "logo_asset_id" uuid null;');
|
|
67
|
+
this.addSql('alter table "sales_channels" add constraint "sales_channels_logo_asset_fk" ' +
|
|
68
|
+
'foreign key ("logo_asset_id") references "assets" ("id") on delete set null;');
|
|
69
|
+
this.addSql('alter table "sales_channels" add column "theme_code" varchar(64) null;');
|
|
70
|
+
this.addSql('alter table "sales_channels" add column "languages" jsonb not null default \'[]\'::jsonb;');
|
|
71
|
+
this.addSql('alter table "sales_channels" add column "currencies" jsonb not null default \'[]\'::jsonb;');
|
|
72
|
+
this.addSql('alter table "sales_channels" add column "active" boolean not null default true;');
|
|
73
|
+
this.addSql('alter table "sales_channels" add column "system_default" boolean not null default false;');
|
|
74
|
+
this.addSql('alter table "sales_channels" add column "version" int not null default 1;');
|
|
75
|
+
// -- 2. Backfills (data-only; safe and idempotent) ----------------------
|
|
76
|
+
// Seed the new jsonb arrays from the existing scalar defaults.
|
|
77
|
+
this.addSql('update "sales_channels" set "languages" = jsonb_build_array("default_language") ' +
|
|
78
|
+
"where jsonb_array_length(\"languages\") = 0;");
|
|
79
|
+
this.addSql('update "sales_channels" set "currencies" = jsonb_build_array("default_currency") ' +
|
|
80
|
+
"where jsonb_array_length(\"currencies\") = 0;");
|
|
81
|
+
// Mirror legacy `status='active'` into the new boolean.
|
|
82
|
+
this.addSql("update \"sales_channels\" set \"active\" = (\"status\" = 'active');");
|
|
83
|
+
// -- 3. Partial unique index (FR-002) -----------------------------------
|
|
84
|
+
this.addSql('create unique index "sales_channels_one_system_default" ' +
|
|
85
|
+
'on "sales_channels" ("system_default") where "system_default" = true;');
|
|
86
|
+
}
|
|
87
|
+
async down() {
|
|
88
|
+
// 3. Partial unique index
|
|
89
|
+
this.addSql('drop index if exists "sales_channels_one_system_default";');
|
|
90
|
+
// 1. Identity columns
|
|
91
|
+
this.addSql('alter table "sales_channels" drop column if exists "version";');
|
|
92
|
+
this.addSql('alter table "sales_channels" drop column if exists "system_default";');
|
|
93
|
+
this.addSql('alter table "sales_channels" drop column if exists "active";');
|
|
94
|
+
this.addSql('alter table "sales_channels" drop column if exists "currencies";');
|
|
95
|
+
this.addSql('alter table "sales_channels" drop column if exists "languages";');
|
|
96
|
+
this.addSql('alter table "sales_channels" drop column if exists "theme_code";');
|
|
97
|
+
this.addSql('alter table "sales_channels" drop constraint if exists "sales_channels_logo_asset_fk";');
|
|
98
|
+
this.addSql('alter table "sales_channels" drop column if exists "logo_asset_id";');
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
//# sourceMappingURL=20260430T170044_core_sales_channels_promote.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260430T170044_core_sales_channels_promote.js","sourceRoot":"","sources":["../../src/migrations/20260430T170044_core_sales_channels_promote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4DG;AACH,MAAM,OAAO,gDAAiD,SAAQ,SAAS;IACpE,KAAK,CAAC,EAAE;QACf,0EAA0E;QAC1E,IAAI,CAAC,MAAM,CACT,oEAAoE,CACrE,CAAC;QACF,IAAI,CAAC,MAAM,CACT,6EAA6E;YAC3E,8EAA8E,CACjF,CAAC;QACF,IAAI,CAAC,MAAM,CACT,wEAAwE,CACzE,CAAC;QACF,IAAI,CAAC,MAAM,CACT,2FAA2F,CAC5F,CAAC;QACF,IAAI,CAAC,MAAM,CACT,4FAA4F,CAC7F,CAAC;QACF,IAAI,CAAC,MAAM,CACT,iFAAiF,CAClF,CAAC;QACF,IAAI,CAAC,MAAM,CACT,0FAA0F,CAC3F,CAAC;QACF,IAAI,CAAC,MAAM,CACT,2EAA2E,CAC5E,CAAC;QAEF,0EAA0E;QAC1E,+DAA+D;QAC/D,IAAI,CAAC,MAAM,CACT,kFAAkF;YAChF,8CAA8C,CACjD,CAAC;QACF,IAAI,CAAC,MAAM,CACT,mFAAmF;YACjF,+CAA+C,CAClD,CAAC;QACF,wDAAwD;QACxD,IAAI,CAAC,MAAM,CACT,qEAAqE,CACtE,CAAC;QAEF,0EAA0E;QAC1E,IAAI,CAAC,MAAM,CACT,0DAA0D;YACxD,uEAAuE,CAC1E,CAAC;IACJ,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,0BAA0B;QAC1B,IAAI,CAAC,MAAM,CAAC,2DAA2D,CAAC,CAAC;QAEzE,sBAAsB;QACtB,IAAI,CAAC,MAAM,CAAC,+DAA+D,CAAC,CAAC;QAC7E,IAAI,CAAC,MAAM,CAAC,sEAAsE,CAAC,CAAC;QACpF,IAAI,CAAC,MAAM,CAAC,8DAA8D,CAAC,CAAC;QAC5E,IAAI,CAAC,MAAM,CAAC,kEAAkE,CAAC,CAAC;QAChF,IAAI,CAAC,MAAM,CAAC,iEAAiE,CAAC,CAAC;QAC/E,IAAI,CAAC,MAAM,CAAC,kEAAkE,CAAC,CAAC;QAChF,IAAI,CAAC,MAAM,CACT,wFAAwF,CACzF,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,qEAAqE,CAAC,CAAC;IACrF,CAAC;CACF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Module Lifecycle subsystem — feature 018 / data-model.md.
|
|
4
|
+
*
|
|
5
|
+
* Schema changes (one atomic migration):
|
|
6
|
+
* - new table `module_registrations` — persisted runtime state of every
|
|
7
|
+
* module the system has ever installed. PK is the module id (matches
|
|
8
|
+
* manifest `id`); state CHECK enforces the four-state FSM
|
|
9
|
+
* (installing / installed / disabled / uninstalled).
|
|
10
|
+
* - btree index `idx_module_registrations_state` to support
|
|
11
|
+
* `module:status --filter=<state>` (low cardinality but cheap).
|
|
12
|
+
*
|
|
13
|
+
* No seed rows. Existing modules are recorded in this table only after
|
|
14
|
+
* their first `module:install <id>` run (which is what the retrofit pass
|
|
15
|
+
* upgrades the existing settings-only manifests into).
|
|
16
|
+
*/
|
|
17
|
+
export declare class Migration20260506T200657CoreModuleLifecycleInit extends Migration {
|
|
18
|
+
up(): Promise<void>;
|
|
19
|
+
down(): Promise<void>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=20260506T200657_core_module_lifecycle_init.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260506T200657_core_module_lifecycle_init.d.ts","sourceRoot":"","sources":["../../src/migrations/20260506T200657_core_module_lifecycle_init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;GAcG;AACH,qBAAa,+CAAgD,SAAQ,SAAS;IAC7D,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAsBnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Module Lifecycle subsystem — feature 018 / data-model.md.
|
|
4
|
+
*
|
|
5
|
+
* Schema changes (one atomic migration):
|
|
6
|
+
* - new table `module_registrations` — persisted runtime state of every
|
|
7
|
+
* module the system has ever installed. PK is the module id (matches
|
|
8
|
+
* manifest `id`); state CHECK enforces the four-state FSM
|
|
9
|
+
* (installing / installed / disabled / uninstalled).
|
|
10
|
+
* - btree index `idx_module_registrations_state` to support
|
|
11
|
+
* `module:status --filter=<state>` (low cardinality but cheap).
|
|
12
|
+
*
|
|
13
|
+
* No seed rows. Existing modules are recorded in this table only after
|
|
14
|
+
* their first `module:install <id>` run (which is what the retrofit pass
|
|
15
|
+
* upgrades the existing settings-only manifests into).
|
|
16
|
+
*/
|
|
17
|
+
export class Migration20260506T200657CoreModuleLifecycleInit extends Migration {
|
|
18
|
+
async up() {
|
|
19
|
+
this.addSql(`
|
|
20
|
+
create table "module_registrations" (
|
|
21
|
+
"module_id" varchar(80) not null,
|
|
22
|
+
"state" varchar(16) not null,
|
|
23
|
+
"version" varchar(32) not null,
|
|
24
|
+
"installed_at" timestamptz not null,
|
|
25
|
+
"last_state_change_at" timestamptz not null,
|
|
26
|
+
"last_install_failed_at" timestamptz null,
|
|
27
|
+
"last_install_error" text null,
|
|
28
|
+
"created_at" timestamptz not null default now(),
|
|
29
|
+
"updated_at" timestamptz not null default now(),
|
|
30
|
+
constraint "module_registrations_pkey" primary key ("module_id"),
|
|
31
|
+
constraint "module_registrations_state_check" check ("state" in
|
|
32
|
+
('installing', 'installed', 'disabled', 'uninstalled'))
|
|
33
|
+
);
|
|
34
|
+
`);
|
|
35
|
+
this.addSql(`create index "idx_module_registrations_state" on "module_registrations" ("state");`);
|
|
36
|
+
}
|
|
37
|
+
async down() {
|
|
38
|
+
this.addSql(`drop table if exists "module_registrations";`);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=20260506T200657_core_module_lifecycle_init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260506T200657_core_module_lifecycle_init.js","sourceRoot":"","sources":["../../src/migrations/20260506T200657_core_module_lifecycle_init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;GAcG;AACH,MAAM,OAAO,+CAAgD,SAAQ,SAAS;IACnE,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC;;;;;;;;;;;;;;;KAeX,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CACT,oFAAoF,CACrF,CAAC;IACJ,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Add a platform-wide "global override" tier to settings.
|
|
4
|
+
*
|
|
5
|
+
* Before: resolver chain was per-channel `setting_values` row → manifest
|
|
6
|
+
* `settings.default_value`. "All channels" admin writes broadcast a row
|
|
7
|
+
* to every channel.
|
|
8
|
+
*
|
|
9
|
+
* After: chain is per-channel `setting_values` row → `settings.global_value`
|
|
10
|
+
* (when non-NULL) → manifest `settings.default_value`. "All channels" admin
|
|
11
|
+
* writes update `global_value` only; per-channel rows are untouched. Channels
|
|
12
|
+
* without an explicit override inherit `global_value` when present, otherwise
|
|
13
|
+
* fall back to the manifest default.
|
|
14
|
+
*
|
|
15
|
+
* A NULL `global_value` means "no global override set" — the admin has not
|
|
16
|
+
* customised the platform-wide value, so the manifest default applies. An
|
|
17
|
+
* admin who legitimately wants a literal JSON null at the global tier still
|
|
18
|
+
* needs the per-channel route; this is an accepted edge case (see
|
|
19
|
+
* specs/004-settings-module/data-model.md once it's updated).
|
|
20
|
+
*
|
|
21
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
22
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
23
|
+
* leaving it under `settings` made `modules:uninstall --hard settings` drop
|
|
24
|
+
* kernel schema.
|
|
25
|
+
*/
|
|
26
|
+
export declare class Migration20260514T111329CoreSettingsGlobalValue extends Migration {
|
|
27
|
+
up(): Promise<void>;
|
|
28
|
+
down(): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=20260514T111329_core_settings_global_value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260514T111329_core_settings_global_value.d.ts","sourceRoot":"","sources":["../../src/migrations/20260514T111329_core_settings_global_value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,+CAAgD,SAAQ,SAAS;IAC7D,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAMnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Add a platform-wide "global override" tier to settings.
|
|
4
|
+
*
|
|
5
|
+
* Before: resolver chain was per-channel `setting_values` row → manifest
|
|
6
|
+
* `settings.default_value`. "All channels" admin writes broadcast a row
|
|
7
|
+
* to every channel.
|
|
8
|
+
*
|
|
9
|
+
* After: chain is per-channel `setting_values` row → `settings.global_value`
|
|
10
|
+
* (when non-NULL) → manifest `settings.default_value`. "All channels" admin
|
|
11
|
+
* writes update `global_value` only; per-channel rows are untouched. Channels
|
|
12
|
+
* without an explicit override inherit `global_value` when present, otherwise
|
|
13
|
+
* fall back to the manifest default.
|
|
14
|
+
*
|
|
15
|
+
* A NULL `global_value` means "no global override set" — the admin has not
|
|
16
|
+
* customised the platform-wide value, so the manifest default applies. An
|
|
17
|
+
* admin who legitimately wants a literal JSON null at the global tier still
|
|
18
|
+
* needs the per-channel route; this is an accepted edge case (see
|
|
19
|
+
* specs/004-settings-module/data-model.md once it's updated).
|
|
20
|
+
*
|
|
21
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
22
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
23
|
+
* leaving it under `settings` made `modules:uninstall --hard settings` drop
|
|
24
|
+
* kernel schema.
|
|
25
|
+
*/
|
|
26
|
+
export class Migration20260514T111329CoreSettingsGlobalValue extends Migration {
|
|
27
|
+
async up() {
|
|
28
|
+
this.addSql('alter table "settings" add column "global_value" jsonb null;');
|
|
29
|
+
}
|
|
30
|
+
async down() {
|
|
31
|
+
this.addSql('alter table "settings" drop column "global_value";');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=20260514T111329_core_settings_global_value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260514T111329_core_settings_global_value.js","sourceRoot":"","sources":["../../src/migrations/20260514T111329_core_settings_global_value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,OAAO,+CAAgD,SAAQ,SAAS;IACnE,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CACT,8DAA8D,CAC/D,CAAC;IACJ,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,oDAAoD,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Settings `secret` value type (feature 043, FR-021 / research §R10).
|
|
4
|
+
*
|
|
5
|
+
* 1. Extends the `setting_value_type` Postgres enum with `'secret'`. The enum
|
|
6
|
+
* is recreated (rename → create → re-point column → drop old) instead of
|
|
7
|
+
* `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
|
+
* Values present in a CREATE TYPE carry no such restriction.
|
|
11
|
+
* 2. Retrofits `search.llm.embedder_api_key` (feature 006) to the new type so
|
|
12
|
+
* the boot reconciler sees no `valueType` diff against the updated search
|
|
13
|
+
* manifest. The stored value itself needs no rewrite: a legacy plaintext
|
|
14
|
+
* string keeps resolving via the codec's passthrough and is re-encrypted
|
|
15
|
+
* on the next admin write.
|
|
16
|
+
*
|
|
17
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
18
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
19
|
+
* leaving it under `settings` made `modules:uninstall --hard settings` drop
|
|
20
|
+
* kernel schema.
|
|
21
|
+
*/
|
|
22
|
+
export declare class Migration20260611T140411CoreSettingsSecretValueType extends Migration {
|
|
23
|
+
up(): Promise<void>;
|
|
24
|
+
down(): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=20260611T140411_core_settings_secret_value_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260611T140411_core_settings_secret_value_type.d.ts","sourceRoot":"","sources":["../../src/migrations/20260611T140411_core_settings_secret_value_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,mDAAoD,SAAQ,SAAS;IACjE,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAoBnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAqBrC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Settings `secret` value type (feature 043, FR-021 / research §R10).
|
|
4
|
+
*
|
|
5
|
+
* 1. Extends the `setting_value_type` Postgres enum with `'secret'`. The enum
|
|
6
|
+
* is recreated (rename → create → re-point column → drop old) instead of
|
|
7
|
+
* `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
|
+
* Values present in a CREATE TYPE carry no such restriction.
|
|
11
|
+
* 2. Retrofits `search.llm.embedder_api_key` (feature 006) to the new type so
|
|
12
|
+
* the boot reconciler sees no `valueType` diff against the updated search
|
|
13
|
+
* manifest. The stored value itself needs no rewrite: a legacy plaintext
|
|
14
|
+
* string keeps resolving via the codec's passthrough and is re-encrypted
|
|
15
|
+
* on the next admin write.
|
|
16
|
+
*
|
|
17
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
18
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
19
|
+
* leaving it under `settings` made `modules:uninstall --hard settings` drop
|
|
20
|
+
* kernel schema.
|
|
21
|
+
*/
|
|
22
|
+
export class Migration20260611T140411CoreSettingsSecretValueType extends Migration {
|
|
23
|
+
async up() {
|
|
24
|
+
this.addSql(`alter type "setting_value_type" rename to "setting_value_type_old";`);
|
|
25
|
+
this.addSql(`
|
|
26
|
+
create type "setting_value_type" as enum
|
|
27
|
+
('string', 'number', 'boolean', 'json', 'string_list', 'secret');
|
|
28
|
+
`);
|
|
29
|
+
this.addSql(`
|
|
30
|
+
alter table "settings"
|
|
31
|
+
alter column "value_type" type "setting_value_type"
|
|
32
|
+
using "value_type"::text::"setting_value_type";
|
|
33
|
+
`);
|
|
34
|
+
this.addSql(`drop type "setting_value_type_old";`);
|
|
35
|
+
this.addSql(`
|
|
36
|
+
update "settings"
|
|
37
|
+
set "value_type" = 'secret'
|
|
38
|
+
where "code" = 'search.llm.embedder_api_key';
|
|
39
|
+
`);
|
|
40
|
+
}
|
|
41
|
+
async down() {
|
|
42
|
+
// Every secret row (the retrofitted search key plus any reconciler-created
|
|
43
|
+
// secrets, e.g. prompt_actions.api_key) must leave the enum value before
|
|
44
|
+
// the narrowing cast below.
|
|
45
|
+
this.addSql(`
|
|
46
|
+
update "settings"
|
|
47
|
+
set "value_type" = 'string'
|
|
48
|
+
where "value_type" = 'secret';
|
|
49
|
+
`);
|
|
50
|
+
this.addSql(`alter type "setting_value_type" rename to "setting_value_type_old";`);
|
|
51
|
+
this.addSql(`
|
|
52
|
+
create type "setting_value_type" as enum
|
|
53
|
+
('string', 'number', 'boolean', 'json', 'string_list');
|
|
54
|
+
`);
|
|
55
|
+
this.addSql(`
|
|
56
|
+
alter table "settings"
|
|
57
|
+
alter column "value_type" type "setting_value_type"
|
|
58
|
+
using "value_type"::text::"setting_value_type";
|
|
59
|
+
`);
|
|
60
|
+
this.addSql(`drop type "setting_value_type_old";`);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=20260611T140411_core_settings_secret_value_type.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260611T140411_core_settings_secret_value_type.js","sourceRoot":"","sources":["../../src/migrations/20260611T140411_core_settings_secret_value_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAM,OAAO,mDAAoD,SAAQ,SAAS;IACvE,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;;;;KAIX,CAAC,CAAC;IACL,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,2EAA2E;QAC3E,yEAAyE;QACzE,4BAA4B;QAC5B,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,19 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Settings enum options (task: Speculation Rules eagerness dropdown).
|
|
4
|
+
*
|
|
5
|
+
* Adds a nullable `enum_options` JSONB column to `settings`. When non-null the
|
|
6
|
+
* setting is an enum-style `string` setting: the admin renders a dropdown and
|
|
7
|
+
* the backend constrains writes to the listed values. NULL keeps the legacy
|
|
8
|
+
* free-text behaviour, so the column is purely additive and needs no backfill.
|
|
9
|
+
*
|
|
10
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
11
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
12
|
+
* leaving it under `settings` made `modules:uninstall --hard settings` drop
|
|
13
|
+
* kernel schema.
|
|
14
|
+
*/
|
|
15
|
+
export declare class Migration20260611T140419CoreSettingsEnumOptions extends Migration {
|
|
16
|
+
up(): Promise<void>;
|
|
17
|
+
down(): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=20260611T140419_core_settings_enum_options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260611T140419_core_settings_enum_options.d.ts","sourceRoot":"","sources":["../../src/migrations/20260611T140419_core_settings_enum_options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;GAYG;AACH,qBAAa,+CAAgD,SAAQ,SAAS;IAC7D,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAInB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Settings enum options (task: Speculation Rules eagerness dropdown).
|
|
4
|
+
*
|
|
5
|
+
* Adds a nullable `enum_options` JSONB column to `settings`. When non-null the
|
|
6
|
+
* setting is an enum-style `string` setting: the admin renders a dropdown and
|
|
7
|
+
* the backend constrains writes to the listed values. NULL keeps the legacy
|
|
8
|
+
* free-text behaviour, so the column is purely additive and needs no backfill.
|
|
9
|
+
*
|
|
10
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
11
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
12
|
+
* leaving it under `settings` made `modules:uninstall --hard settings` drop
|
|
13
|
+
* kernel schema.
|
|
14
|
+
*/
|
|
15
|
+
export class Migration20260611T140419CoreSettingsEnumOptions extends Migration {
|
|
16
|
+
async up() {
|
|
17
|
+
this.addSql(`alter table "settings" add column "enum_options" jsonb null;`);
|
|
18
|
+
}
|
|
19
|
+
async down() {
|
|
20
|
+
this.addSql(`alter table "settings" drop column "enum_options";`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=20260611T140419_core_settings_enum_options.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260611T140419_core_settings_enum_options.js","sourceRoot":"","sources":["../../src/migrations/20260611T140419_core_settings_enum_options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;GAYG;AACH,MAAM,OAAO,+CAAgD,SAAQ,SAAS;IACnE,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,8DAA8D,CAAC,CAAC;IAC9E,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,oDAAoD,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Settings hidden flag (single-source-of-truth for module-owned settings).
|
|
4
|
+
*
|
|
5
|
+
* Adds a non-null `hidden` boolean column (default false) to `settings`. When
|
|
6
|
+
* true the setting is excluded from the generic admin Settings screen and
|
|
7
|
+
* managed only through its owning module's dedicated UI (e.g. the PWA settings
|
|
8
|
+
* page), while remaining fully readable/writable by code. Purely additive —
|
|
9
|
+
* existing rows default to visible, so no backfill is required.
|
|
10
|
+
*
|
|
11
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
12
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
13
|
+
* leaving it under `settings` made `modules:uninstall --hard settings` drop
|
|
14
|
+
* kernel schema.
|
|
15
|
+
*/
|
|
16
|
+
export declare class Migration20260629T090100CoreSettingsHiddenFlag extends Migration {
|
|
17
|
+
up(): Promise<void>;
|
|
18
|
+
down(): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=20260629T090100_core_settings_hidden_flag.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260629T090100_core_settings_hidden_flag.d.ts","sourceRoot":"","sources":["../../src/migrations/20260629T090100_core_settings_hidden_flag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;GAaG;AACH,qBAAa,8CAA+C,SAAQ,SAAS;IAC5D,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAInB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAGrC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Settings hidden flag (single-source-of-truth for module-owned settings).
|
|
4
|
+
*
|
|
5
|
+
* Adds a non-null `hidden` boolean column (default false) to `settings`. When
|
|
6
|
+
* true the setting is excluded from the generic admin Settings screen and
|
|
7
|
+
* managed only through its owning module's dedicated UI (e.g. the PWA settings
|
|
8
|
+
* page), while remaining fully readable/writable by code. Purely additive —
|
|
9
|
+
* existing rows default to visible, so no backfill is required.
|
|
10
|
+
*
|
|
11
|
+
* Filed under `core` since feature 072 T020. The kernel owns the tables this
|
|
12
|
+
* migration writes to, and a hard uninstall reverts by registry `moduleId`, so
|
|
13
|
+
* leaving it under `settings` made `modules:uninstall --hard settings` drop
|
|
14
|
+
* kernel schema.
|
|
15
|
+
*/
|
|
16
|
+
export class Migration20260629T090100CoreSettingsHiddenFlag extends Migration {
|
|
17
|
+
async up() {
|
|
18
|
+
this.addSql(`alter table "settings" add column "hidden" boolean not null default false;`);
|
|
19
|
+
}
|
|
20
|
+
async down() {
|
|
21
|
+
this.addSql(`alter table "settings" drop column "hidden";`);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=20260629T090100_core_settings_hidden_flag.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260629T090100_core_settings_hidden_flag.js","sourceRoot":"","sources":["../../src/migrations/20260629T090100_core_settings_hidden_flag.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;GAaG;AACH,MAAM,OAAO,8CAA+C,SAAQ,SAAS;IAClE,KAAK,CAAC,EAAE;QACf,IAAI,CAAC,MAAM,CAAC,4EAA4E,CAAC,CAAC;IAC5F,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,IAAI,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAC;IAC9D,CAAC;CACF"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Feature 050 — index the tenant-key columns the guard filters on, where the
|
|
4
|
+
* index audit (research §R5) found a gap. Most org/customer-scoped tables were
|
|
5
|
+
* already indexed on their tenant key; these three were not.
|
|
6
|
+
*
|
|
7
|
+
* **It is empty since `specs/120-migration-closure-bridge-ownership/` Phase 3,
|
|
8
|
+
* and the class stays.** All three indexes were on module-owned tables —
|
|
9
|
+
* `analytics_events` twice and `newsletter_subscribers` once — and under D-226
|
|
10
|
+
* the platform may name only what it creates itself: it declares no
|
|
11
|
+
* dependencies, so it can never be ordered after a module's table, and an
|
|
12
|
+
* instance omitting `analytics` or `newsletter` could not migrate a fresh
|
|
13
|
+
* database at all. The statements moved to
|
|
14
|
+
* `Migration20260912T125655AnalyticsEventsTenantScopeIndexes` and
|
|
15
|
+
* `Migration20260912T125702NewsletterSubscriberTenantScopeIndex`, verbatim.
|
|
16
|
+
*
|
|
17
|
+
* The class name is on `BASELINE_MIGRATIONS` and cannot go: `mikro_orm_migrations`
|
|
18
|
+
* persists the name and no checksum, so every database that has already applied
|
|
19
|
+
* this migration is offered nothing, and deleting the class would make it
|
|
20
|
+
* pending nowhere while moving 70-odd frozen positions. An empty `up()` is what
|
|
21
|
+
* a migration whose whole body moved elsewhere looks like.
|
|
22
|
+
*/
|
|
23
|
+
export declare class Migration20260717T134752CoreTenantScopeIndexes extends Migration {
|
|
24
|
+
up(): Promise<void>;
|
|
25
|
+
down(): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=20260717T134752_core_tenant_scope_indexes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260717T134752_core_tenant_scope_indexes.d.ts","sourceRoot":"","sources":["../../src/migrations/20260717T134752_core_tenant_scope_indexes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAAa,8CAA+C,SAAQ,SAAS;IAC5D,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAInB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAIrC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Migration } from '@mikro-orm/migrations';
|
|
2
|
+
/**
|
|
3
|
+
* Feature 050 — index the tenant-key columns the guard filters on, where the
|
|
4
|
+
* index audit (research §R5) found a gap. Most org/customer-scoped tables were
|
|
5
|
+
* already indexed on their tenant key; these three were not.
|
|
6
|
+
*
|
|
7
|
+
* **It is empty since `specs/120-migration-closure-bridge-ownership/` Phase 3,
|
|
8
|
+
* and the class stays.** All three indexes were on module-owned tables —
|
|
9
|
+
* `analytics_events` twice and `newsletter_subscribers` once — and under D-226
|
|
10
|
+
* the platform may name only what it creates itself: it declares no
|
|
11
|
+
* dependencies, so it can never be ordered after a module's table, and an
|
|
12
|
+
* instance omitting `analytics` or `newsletter` could not migrate a fresh
|
|
13
|
+
* database at all. The statements moved to
|
|
14
|
+
* `Migration20260912T125655AnalyticsEventsTenantScopeIndexes` and
|
|
15
|
+
* `Migration20260912T125702NewsletterSubscriberTenantScopeIndex`, verbatim.
|
|
16
|
+
*
|
|
17
|
+
* The class name is on `BASELINE_MIGRATIONS` and cannot go: `mikro_orm_migrations`
|
|
18
|
+
* persists the name and no checksum, so every database that has already applied
|
|
19
|
+
* this migration is offered nothing, and deleting the class would make it
|
|
20
|
+
* pending nowhere while moving 70-odd frozen positions. An empty `up()` is what
|
|
21
|
+
* a migration whose whole body moved elsewhere looks like.
|
|
22
|
+
*/
|
|
23
|
+
export class Migration20260717T134752CoreTenantScopeIndexes extends Migration {
|
|
24
|
+
async up() {
|
|
25
|
+
// Moved to the two modules that own the tables — see the class comment.
|
|
26
|
+
}
|
|
27
|
+
async down() {
|
|
28
|
+
// Nothing to reverse: each moved statement is reversed by the migration
|
|
29
|
+
// that now carries it.
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=20260717T134752_core_tenant_scope_indexes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260717T134752_core_tenant_scope_indexes.js","sourceRoot":"","sources":["../../src/migrations/20260717T134752_core_tenant_scope_indexes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,OAAO,8CAA+C,SAAQ,SAAS;IAClE,KAAK,CAAC,EAAE;QACf,wEAAwE;IAC1E,CAAC;IAEQ,KAAK,CAAC,IAAI;QACjB,wEAAwE;QACxE,uBAAuB;IACzB,CAAC;CACF"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 declare class Migration20260721T011510CoreSettingsCredentialRefValueType extends Migration {
|
|
21
|
+
up(): Promise<void>;
|
|
22
|
+
down(): Promise<void>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=20260721T011510_core_settings_credential_ref_value_type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"20260721T011510_core_settings_credential_ref_value_type.d.ts","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,qBAAa,0DAA2D,SAAQ,SAAS;IACxE,EAAE,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBnB,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAsBrC"}
|