@vendure/cloud 0.3.2 → 0.5.0-dev.20261014172655.g652e750
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/README.md +50 -11
- package/dist/cli/arguments.d.ts.map +1 -1
- package/dist/cli/arguments.js +9 -31
- package/dist/cli/arguments.js.map +1 -1
- package/dist/cli/command.d.ts.map +1 -1
- package/dist/cli/command.js +13 -30
- package/dist/cli/command.js.map +1 -1
- package/dist/cli/commands/deployment/arguments.d.ts.map +1 -1
- package/dist/cli/commands/deployment/arguments.js +1 -8
- package/dist/cli/commands/deployment/arguments.js.map +1 -1
- package/dist/cli/commands/deployment/build-logs.d.ts.map +1 -1
- package/dist/cli/commands/deployment/build-logs.js +14 -25
- package/dist/cli/commands/deployment/build-logs.js.map +1 -1
- package/dist/cli/commands/deployment/deploy.d.ts.map +1 -1
- package/dist/cli/commands/deployment/deploy.js +108 -95
- package/dist/cli/commands/deployment/deploy.js.map +1 -1
- package/dist/cli/commands/deployment/index.d.ts.map +1 -1
- package/dist/cli/commands/deployment/index.js +66 -53
- package/dist/cli/commands/deployment/index.js.map +1 -1
- package/dist/cli/commands/deployment/list.d.ts.map +1 -1
- package/dist/cli/commands/deployment/list.js +5 -5
- package/dist/cli/commands/deployment/list.js.map +1 -1
- package/dist/cli/commands/deployment/log-export.d.ts +13 -0
- package/dist/cli/commands/deployment/log-export.d.ts.map +1 -0
- package/dist/cli/commands/deployment/log-export.js +120 -0
- package/dist/cli/commands/deployment/log-export.js.map +1 -0
- package/dist/cli/commands/deployment/log-query-output.d.ts +13 -0
- package/dist/cli/commands/deployment/log-query-output.d.ts.map +1 -0
- package/dist/cli/commands/deployment/log-query-output.js +92 -0
- package/dist/cli/commands/deployment/log-query-output.js.map +1 -0
- package/dist/cli/commands/deployment/logs.d.ts +1 -0
- package/dist/cli/commands/deployment/logs.d.ts.map +1 -1
- package/dist/cli/commands/deployment/logs.js +331 -73
- package/dist/cli/commands/deployment/logs.js.map +1 -1
- package/dist/cli/commands/deployment/options.d.ts +2 -6
- package/dist/cli/commands/deployment/options.d.ts.map +1 -1
- package/dist/cli/commands/deployment/options.js +18 -15
- package/dist/cli/commands/deployment/options.js.map +1 -1
- package/dist/cli/commands/deployment/plan-format.d.ts.map +1 -1
- package/dist/cli/commands/deployment/plan-format.js +2 -2
- package/dist/cli/commands/deployment/plan-format.js.map +1 -1
- package/dist/cli/commands/deployment/plan.d.ts +1 -1
- package/dist/cli/commands/deployment/plan.d.ts.map +1 -1
- package/dist/cli/commands/deployment/plan.js +11 -14
- package/dist/cli/commands/deployment/plan.js.map +1 -1
- package/dist/cli/commands/deployment/recovery.d.ts +9 -0
- package/dist/cli/commands/deployment/recovery.d.ts.map +1 -0
- package/dist/cli/commands/deployment/recovery.js +76 -0
- package/dist/cli/commands/deployment/recovery.js.map +1 -0
- package/dist/cli/commands/deployment/rollback.d.ts.map +1 -1
- package/dist/cli/commands/deployment/rollback.js +61 -10
- package/dist/cli/commands/deployment/rollback.js.map +1 -1
- package/dist/cli/commands/deployment/shared.d.ts.map +1 -1
- package/dist/cli/commands/deployment/shared.js +4 -7
- package/dist/cli/commands/deployment/shared.js.map +1 -1
- package/dist/cli/commands/deployment/show.d.ts.map +1 -1
- package/dist/cli/commands/deployment/show.js +19 -9
- package/dist/cli/commands/deployment/show.js.map +1 -1
- package/dist/cli/commands/deployment/source.d.ts +1 -12
- package/dist/cli/commands/deployment/source.d.ts.map +1 -1
- package/dist/cli/commands/deployment/source.js +6 -14
- package/dist/cli/commands/deployment/source.js.map +1 -1
- package/dist/cli/commands/deployment/status.d.ts.map +1 -1
- package/dist/cli/commands/deployment/status.js +30 -29
- package/dist/cli/commands/deployment/status.js.map +1 -1
- package/dist/cli/commands/deployment/teardown.d.ts.map +1 -1
- package/dist/cli/commands/deployment/teardown.js +28 -26
- package/dist/cli/commands/deployment/teardown.js.map +1 -1
- package/dist/cli/commands/identity-context/context.d.ts.map +1 -1
- package/dist/cli/commands/identity-context/context.js +3 -4
- package/dist/cli/commands/identity-context/context.js.map +1 -1
- package/dist/cli/commands/identity-context/index.d.ts.map +1 -1
- package/dist/cli/commands/identity-context/index.js +16 -50
- package/dist/cli/commands/identity-context/index.js.map +1 -1
- package/dist/cli/commands/identity-context/keys.d.ts.map +1 -1
- package/dist/cli/commands/identity-context/keys.js +19 -20
- package/dist/cli/commands/identity-context/keys.js.map +1 -1
- package/dist/cli/commands/identity-context/use.d.ts.map +1 -1
- package/dist/cli/commands/identity-context/use.js +3 -4
- package/dist/cli/commands/identity-context/use.js.map +1 -1
- package/dist/cli/commands/index.d.ts.map +1 -1
- package/dist/cli/commands/index.js +9 -21
- package/dist/cli/commands/index.js.map +1 -1
- package/dist/cli/commands/project-config/config/build-fields.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/build-fields.js +2 -3
- package/dist/cli/commands/project-config/config/build-fields.js.map +1 -1
- package/dist/cli/commands/project-config/config/build.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/build.js +8 -9
- package/dist/cli/commands/project-config/config/build.js.map +1 -1
- package/dist/cli/commands/project-config/config/desired-state.d.ts +1 -1
- package/dist/cli/commands/project-config/config/desired-state.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/desired-state.js +12 -13
- package/dist/cli/commands/project-config/config/desired-state.js.map +1 -1
- package/dist/cli/commands/project-config/config/email/domain.d.ts +5 -0
- package/dist/cli/commands/project-config/config/email/domain.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/email/domain.js +83 -0
- package/dist/cli/commands/project-config/config/email/domain.js.map +1 -0
- package/dist/cli/commands/project-config/config/email/events.d.ts +4 -0
- package/dist/cli/commands/project-config/config/email/events.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/email/events.js +55 -0
- package/dist/cli/commands/project-config/config/email/events.js.map +1 -0
- package/dist/cli/commands/project-config/config/email/index.d.ts +2 -0
- package/dist/cli/commands/project-config/config/email/index.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/email/index.js +107 -0
- package/dist/cli/commands/project-config/config/email/index.js.map +1 -0
- package/dist/cli/commands/project-config/config/email/test-sending.d.ts +4 -0
- package/dist/cli/commands/project-config/config/email/test-sending.d.ts.map +1 -0
- package/dist/cli/commands/project-config/config/email/test-sending.js +69 -0
- package/dist/cli/commands/project-config/config/email/test-sending.js.map +1 -0
- package/dist/cli/commands/project-config/config/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/index.js +16 -13
- package/dist/cli/commands/project-config/config/index.js.map +1 -1
- package/dist/cli/commands/project-config/config/runtime.d.ts +2 -1
- package/dist/cli/commands/project-config/config/runtime.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/runtime.js +33 -30
- package/dist/cli/commands/project-config/config/runtime.js.map +1 -1
- package/dist/cli/commands/project-config/config/set.js +3 -3
- package/dist/cli/commands/project-config/config/set.js.map +1 -1
- package/dist/cli/commands/project-config/config/show.d.ts.map +1 -1
- package/dist/cli/commands/project-config/config/show.js +7 -7
- package/dist/cli/commands/project-config/config/show.js.map +1 -1
- package/dist/cli/commands/project-config/env/add.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/add.js +4 -3
- package/dist/cli/commands/project-config/env/add.js.map +1 -1
- package/dist/cli/commands/project-config/env/get.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/get.js +7 -2
- package/dist/cli/commands/project-config/env/get.js.map +1 -1
- package/dist/cli/commands/project-config/env/import.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/import.js +15 -8
- package/dist/cli/commands/project-config/env/import.js.map +1 -1
- package/dist/cli/commands/project-config/env/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/index.js +13 -8
- package/dist/cli/commands/project-config/env/index.js.map +1 -1
- package/dist/cli/commands/project-config/env/list.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/list.js +29 -8
- package/dist/cli/commands/project-config/env/list.js.map +1 -1
- package/dist/cli/commands/project-config/env/metadata-options.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/metadata-options.js +0 -1
- package/dist/cli/commands/project-config/env/metadata-options.js.map +1 -1
- package/dist/cli/commands/project-config/env/pull.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/pull.js +22 -8
- package/dist/cli/commands/project-config/env/pull.js.map +1 -1
- package/dist/cli/commands/project-config/env/read-value.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/read-value.js +8 -4
- package/dist/cli/commands/project-config/env/read-value.js.map +1 -1
- package/dist/cli/commands/project-config/env/rm.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/rm.js +4 -3
- package/dist/cli/commands/project-config/env/rm.js.map +1 -1
- package/dist/cli/commands/project-config/env/run.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/run.js +9 -8
- package/dist/cli/commands/project-config/env/run.js.map +1 -1
- package/dist/cli/commands/project-config/env/update.d.ts.map +1 -1
- package/dist/cli/commands/project-config/env/update.js +4 -3
- package/dist/cli/commands/project-config/env/update.js.map +1 -1
- package/dist/cli/commands/project-config/environment/create.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/create.js +5 -6
- package/dist/cli/commands/project-config/environment/create.js.map +1 -1
- package/dist/cli/commands/project-config/environment/delete.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/delete.js +6 -6
- package/dist/cli/commands/project-config/environment/delete.js.map +1 -1
- package/dist/cli/commands/project-config/environment/find.js +3 -3
- package/dist/cli/commands/project-config/environment/find.js.map +1 -1
- package/dist/cli/commands/project-config/environment/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/index.js +18 -6
- package/dist/cli/commands/project-config/environment/index.js.map +1 -1
- package/dist/cli/commands/project-config/environment/initial-superadmin.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/initial-superadmin.js +4 -5
- package/dist/cli/commands/project-config/environment/initial-superadmin.js.map +1 -1
- package/dist/cli/commands/project-config/environment/list.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/list.js +5 -5
- package/dist/cli/commands/project-config/environment/list.js.map +1 -1
- package/dist/cli/commands/project-config/environment/regions.d.ts +6 -0
- package/dist/cli/commands/project-config/environment/regions.d.ts.map +1 -0
- package/dist/cli/commands/project-config/environment/regions.js +22 -0
- package/dist/cli/commands/project-config/environment/regions.js.map +1 -0
- package/dist/cli/commands/project-config/environment/show.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/show.js +3 -4
- package/dist/cli/commands/project-config/environment/show.js.map +1 -1
- package/dist/cli/commands/project-config/environment/update.d.ts.map +1 -1
- package/dist/cli/commands/project-config/environment/update.js +3 -4
- package/dist/cli/commands/project-config/environment/update.js.map +1 -1
- package/dist/cli/commands/project-config/index.js +5 -5
- package/dist/cli/commands/project-config/index.js.map +1 -1
- package/dist/cli/commands/project-config/init/build-detection.d.ts.map +1 -1
- package/dist/cli/commands/project-config/init/build-detection.js +4 -4
- package/dist/cli/commands/project-config/init/build-detection.js.map +1 -1
- package/dist/cli/commands/project-config/init/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/init/index.js +4 -5
- package/dist/cli/commands/project-config/init/index.js.map +1 -1
- package/dist/cli/commands/project-config/init/init.d.ts.map +1 -1
- package/dist/cli/commands/project-config/init/init.js +39 -20
- package/dist/cli/commands/project-config/init/init.js.map +1 -1
- package/dist/cli/commands/project-config/options.d.ts.map +1 -1
- package/dist/cli/commands/project-config/options.js +9 -14
- package/dist/cli/commands/project-config/options.js.map +1 -1
- package/dist/cli/commands/project-config/project/create.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/create.js +3 -3
- package/dist/cli/commands/project-config/project/create.js.map +1 -1
- package/dist/cli/commands/project-config/project/delete.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/delete.js +4 -5
- package/dist/cli/commands/project-config/project/delete.js.map +1 -1
- package/dist/cli/commands/project-config/project/index.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/index.js +4 -5
- package/dist/cli/commands/project-config/project/index.js.map +1 -1
- package/dist/cli/commands/project-config/project/link.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/link.js +4 -4
- package/dist/cli/commands/project-config/project/link.js.map +1 -1
- package/dist/cli/commands/project-config/project/list.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/list.js +12 -5
- package/dist/cli/commands/project-config/project/list.js.map +1 -1
- package/dist/cli/commands/project-config/project/show.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/show.js +16 -7
- package/dist/cli/commands/project-config/project/show.js.map +1 -1
- package/dist/cli/commands/project-config/project/subscription-state.d.ts +5 -0
- package/dist/cli/commands/project-config/project/subscription-state.d.ts.map +1 -0
- package/dist/cli/commands/project-config/project/subscription-state.js +54 -0
- package/dist/cli/commands/project-config/project/subscription-state.js.map +1 -0
- package/dist/cli/commands/project-config/project/unlink.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/unlink.js +2 -3
- package/dist/cli/commands/project-config/project/unlink.js.map +1 -1
- package/dist/cli/commands/project-config/project/update.d.ts.map +1 -1
- package/dist/cli/commands/project-config/project/update.js +3 -4
- package/dist/cli/commands/project-config/project/update.js.map +1 -1
- package/dist/cli/commands/project-config/source/connect.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/connect.js +27 -29
- package/dist/cli/commands/project-config/source/connect.js.map +1 -1
- package/dist/cli/commands/project-config/source/disconnect.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/disconnect.js +4 -4
- package/dist/cli/commands/project-config/source/disconnect.js.map +1 -1
- package/dist/cli/commands/project-config/source/index.js +7 -7
- package/dist/cli/commands/project-config/source/index.js.map +1 -1
- package/dist/cli/commands/project-config/source/map.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/map.js +14 -18
- package/dist/cli/commands/project-config/source/map.js.map +1 -1
- package/dist/cli/commands/project-config/source/repos.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/repos.js +5 -5
- package/dist/cli/commands/project-config/source/repos.js.map +1 -1
- package/dist/cli/commands/project-config/source/status.d.ts.map +1 -1
- package/dist/cli/commands/project-config/source/status.js +66 -21
- package/dist/cli/commands/project-config/source/status.js.map +1 -1
- package/dist/cli/commands/runtime-data/backup.d.ts +1 -0
- package/dist/cli/commands/runtime-data/backup.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/backup.js +56 -22
- package/dist/cli/commands/runtime-data/backup.js.map +1 -1
- package/dist/cli/commands/runtime-data/index.d.ts +1 -0
- package/dist/cli/commands/runtime-data/index.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/index.js +54 -33
- package/dist/cli/commands/runtime-data/index.js.map +1 -1
- package/dist/cli/commands/runtime-data/resource.d.ts +1 -0
- package/dist/cli/commands/runtime-data/resource.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/resource.js +52 -32
- package/dist/cli/commands/runtime-data/resource.js.map +1 -1
- package/dist/cli/commands/runtime-data/restore.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/restore.js +52 -37
- package/dist/cli/commands/runtime-data/restore.js.map +1 -1
- package/dist/cli/commands/runtime-data/seeds.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/seeds.js +24 -26
- package/dist/cli/commands/runtime-data/seeds.js.map +1 -1
- package/dist/cli/commands/runtime-data/tunnel.d.ts.map +1 -1
- package/dist/cli/commands/runtime-data/tunnel.js +33 -43
- package/dist/cli/commands/runtime-data/tunnel.js.map +1 -1
- package/dist/cli/host-arguments.d.ts.map +1 -1
- package/dist/cli/host-arguments.js +10 -18
- package/dist/cli/host-arguments.js.map +1 -1
- package/dist/cli/host-nodes.js +1 -1
- package/dist/cli/host-nodes.js.map +1 -1
- package/dist/cli/index.d.ts +17 -10
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +27 -28
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/lib/api-client.d.ts +10 -5
- package/dist/cli/lib/api-client.d.ts.map +1 -1
- package/dist/cli/lib/api-client.js +23 -42
- package/dist/cli/lib/api-client.js.map +1 -1
- package/dist/cli/lib/auth.d.ts +4 -126
- package/dist/cli/lib/auth.d.ts.map +1 -1
- package/dist/cli/lib/auth.js +8 -495
- package/dist/cli/lib/auth.js.map +1 -1
- package/dist/cli/lib/cli-login.d.ts +12 -0
- package/dist/cli/lib/cli-login.d.ts.map +1 -0
- package/dist/cli/lib/cli-login.js +155 -0
- package/dist/cli/lib/cli-login.js.map +1 -0
- package/dist/cli/lib/cloud-api-url.d.ts +2 -0
- package/dist/cli/lib/cloud-api-url.d.ts.map +1 -0
- package/dist/cli/lib/cloud-api-url.js +3 -0
- package/dist/cli/lib/cloud-api-url.js.map +1 -0
- package/dist/cli/lib/commit.d.ts +4 -0
- package/dist/cli/lib/commit.d.ts.map +1 -0
- package/dist/cli/lib/commit.js +21 -0
- package/dist/cli/lib/commit.js.map +1 -0
- package/dist/cli/lib/config-revisions.d.ts +9 -0
- package/dist/cli/lib/config-revisions.d.ts.map +1 -0
- package/dist/cli/lib/config-revisions.js +52 -0
- package/dist/cli/lib/config-revisions.js.map +1 -0
- package/dist/cli/lib/config.d.ts +0 -4
- package/dist/cli/lib/config.d.ts.map +1 -1
- package/dist/cli/lib/config.js +3 -5
- package/dist/cli/lib/config.js.map +1 -1
- package/dist/cli/lib/console-pairing.d.ts +2 -0
- package/dist/cli/lib/console-pairing.d.ts.map +1 -0
- package/dist/cli/lib/console-pairing.js +58 -0
- package/dist/cli/lib/console-pairing.js.map +1 -0
- package/dist/cli/lib/contract/backup-schedule-reasons.d.ts +4 -0
- package/dist/cli/lib/contract/backup-schedule-reasons.d.ts.map +1 -0
- package/dist/cli/lib/contract/backup-schedule-reasons.js +13 -0
- package/dist/cli/lib/contract/backup-schedule-reasons.js.map +1 -0
- package/dist/cli/lib/contract/build-settings.d.ts +1 -1
- package/dist/cli/lib/contract/build-settings.d.ts.map +1 -1
- package/dist/cli/lib/contract/build-settings.js +12 -18
- package/dist/cli/lib/contract/build-settings.js.map +1 -1
- package/dist/cli/lib/contract/database.d.ts +19 -0
- package/dist/cli/lib/contract/database.d.ts.map +1 -1
- package/dist/cli/lib/contract/database.js +7 -13
- package/dist/cli/lib/contract/database.js.map +1 -1
- package/dist/cli/lib/contract/deployment-resource-labels.d.ts.map +1 -1
- package/dist/cli/lib/contract/deployment-resource-labels.js +2 -6
- package/dist/cli/lib/contract/deployment-resource-labels.js.map +1 -1
- package/dist/cli/lib/contract/deployments.d.ts +14 -0
- package/dist/cli/lib/contract/deployments.d.ts.map +1 -1
- package/dist/cli/lib/contract/deployments.js +54 -24
- package/dist/cli/lib/contract/deployments.js.map +1 -1
- package/dist/cli/lib/contract/desired-state.d.ts +6 -6
- package/dist/cli/lib/contract/desired-state.d.ts.map +1 -1
- package/dist/cli/lib/contract/desired-state.js +52 -55
- package/dist/cli/lib/contract/desired-state.js.map +1 -1
- package/dist/cli/lib/contract/env-vars.d.ts +37 -0
- package/dist/cli/lib/contract/env-vars.d.ts.map +1 -0
- package/dist/cli/lib/contract/env-vars.js +6 -0
- package/dist/cli/lib/contract/env-vars.js.map +1 -0
- package/dist/cli/lib/contract/foreign-credentials.d.ts +14 -25
- package/dist/cli/lib/contract/foreign-credentials.d.ts.map +1 -1
- package/dist/cli/lib/contract/foreign-credentials.js +19 -30
- package/dist/cli/lib/contract/foreign-credentials.js.map +1 -1
- package/dist/cli/lib/contract/logs.d.ts +120 -0
- package/dist/cli/lib/contract/logs.d.ts.map +1 -1
- package/dist/cli/lib/contract/logs.js +113 -16
- package/dist/cli/lib/contract/logs.js.map +1 -1
- package/dist/cli/lib/contract/managed-email.d.ts +57 -0
- package/dist/cli/lib/contract/managed-email.d.ts.map +1 -0
- package/dist/cli/lib/contract/managed-email.js +20 -0
- package/dist/cli/lib/contract/managed-email.js.map +1 -0
- package/dist/cli/lib/contract/permission-denied.d.ts +16 -0
- package/dist/cli/lib/contract/permission-denied.d.ts.map +1 -0
- package/dist/cli/lib/contract/permission-denied.js +20 -0
- package/dist/cli/lib/contract/permission-denied.js.map +1 -0
- package/dist/cli/lib/contract/projects.d.ts +6 -0
- package/dist/cli/lib/contract/projects.d.ts.map +1 -1
- package/dist/cli/lib/contract/projects.js +2 -3
- package/dist/cli/lib/contract/projects.js.map +1 -1
- package/dist/cli/lib/contract/public-error-details.d.ts.map +1 -1
- package/dist/cli/lib/contract/public-error-details.js +28 -43
- package/dist/cli/lib/contract/public-error-details.js.map +1 -1
- package/dist/cli/lib/contract/regions.d.ts +11 -0
- package/dist/cli/lib/contract/regions.d.ts.map +1 -0
- package/dist/cli/lib/contract/regions.js +7 -0
- package/dist/cli/lib/contract/regions.js.map +1 -0
- package/dist/cli/lib/contract/runtime-operations.d.ts +0 -1
- package/dist/cli/lib/contract/runtime-operations.d.ts.map +1 -1
- package/dist/cli/lib/contract/runtime-operations.js +11 -21
- package/dist/cli/lib/contract/runtime-operations.js.map +1 -1
- package/dist/cli/lib/contract/seeds.d.ts.map +1 -1
- package/dist/cli/lib/contract/seeds.js +12 -21
- package/dist/cli/lib/contract/seeds.js.map +1 -1
- package/dist/cli/lib/contract/source-disconnect-reasons.d.ts +4 -0
- package/dist/cli/lib/contract/source-disconnect-reasons.d.ts.map +1 -0
- package/dist/cli/lib/contract/source-disconnect-reasons.js +23 -0
- package/dist/cli/lib/contract/source-disconnect-reasons.js.map +1 -0
- package/dist/cli/lib/contract/source-repository.d.ts +1 -1
- package/dist/cli/lib/contract/source-repository.d.ts.map +1 -1
- package/dist/cli/lib/contract/source-repository.js +6 -9
- package/dist/cli/lib/contract/source-repository.js.map +1 -1
- package/dist/cli/lib/contract/wire-types.d.ts.map +1 -1
- package/dist/cli/lib/contract/wire-types.js +3 -8
- package/dist/cli/lib/contract/wire-types.js.map +1 -1
- package/dist/cli/lib/contract/wire-values.d.ts.map +1 -1
- package/dist/cli/lib/contract/wire-values.js +2 -3
- package/dist/cli/lib/contract/wire-values.js.map +1 -1
- package/dist/cli/lib/dotenv.d.ts +6 -0
- package/dist/cli/lib/dotenv.d.ts.map +1 -1
- package/dist/cli/lib/dotenv.js +62 -20
- package/dist/cli/lib/dotenv.js.map +1 -1
- package/dist/cli/lib/env-file.d.ts.map +1 -1
- package/dist/cli/lib/env-file.js +5 -11
- package/dist/cli/lib/env-file.js.map +1 -1
- package/dist/cli/lib/env-preflight.d.ts +6 -1
- package/dist/cli/lib/env-preflight.d.ts.map +1 -1
- package/dist/cli/lib/env-preflight.js +91 -63
- package/dist/cli/lib/env-preflight.js.map +1 -1
- package/dist/cli/lib/errors.d.ts +17 -19
- package/dist/cli/lib/errors.d.ts.map +1 -1
- package/dist/cli/lib/errors.js +47 -60
- package/dist/cli/lib/errors.js.map +1 -1
- package/dist/cli/lib/format.d.ts.map +1 -1
- package/dist/cli/lib/format.js +3 -5
- package/dist/cli/lib/format.js.map +1 -1
- package/dist/cli/lib/invocation.d.ts +4 -5
- package/dist/cli/lib/invocation.d.ts.map +1 -1
- package/dist/cli/lib/invocation.js +5 -33
- package/dist/cli/lib/invocation.js.map +1 -1
- package/dist/cli/lib/log-stream.d.ts.map +1 -1
- package/dist/cli/lib/log-stream.js +15 -23
- package/dist/cli/lib/log-stream.js.map +1 -1
- package/dist/cli/lib/logger.d.ts.map +1 -1
- package/dist/cli/lib/logger.js +7 -12
- package/dist/cli/lib/logger.js.map +1 -1
- package/dist/cli/lib/organization.d.ts.map +1 -1
- package/dist/cli/lib/organization.js +5 -13
- package/dist/cli/lib/organization.js.map +1 -1
- package/dist/cli/lib/platform-address.d.ts +3 -0
- package/dist/cli/lib/platform-address.d.ts.map +1 -0
- package/dist/cli/lib/platform-address.js +7 -0
- package/dist/cli/lib/platform-address.js.map +1 -0
- package/dist/cli/lib/project-link.d.ts.map +1 -1
- package/dist/cli/lib/project-link.js +2 -4
- package/dist/cli/lib/project-link.js.map +1 -1
- package/dist/cli/lib/resolve.d.ts +2 -6
- package/dist/cli/lib/resolve.d.ts.map +1 -1
- package/dist/cli/lib/resolve.js +35 -34
- package/dist/cli/lib/resolve.js.map +1 -1
- package/dist/cli/lib/source-repository-link.d.ts.map +1 -1
- package/dist/cli/lib/source-repository-link.js +6 -9
- package/dist/cli/lib/source-repository-link.js.map +1 -1
- package/dist/cli/lib/terminal-output.d.ts +12 -0
- package/dist/cli/lib/terminal-output.d.ts.map +1 -0
- package/dist/cli/lib/terminal-output.js +69 -0
- package/dist/cli/lib/terminal-output.js.map +1 -0
- package/dist/cli/lib/types.d.ts +3 -7
- package/dist/cli/lib/types.d.ts.map +1 -1
- package/dist/cli/lib/types.js.map +1 -1
- package/dist/cli/lib/utf8.d.ts +2 -0
- package/dist/cli/lib/utf8.d.ts.map +1 -0
- package/dist/cli/lib/utf8.js +12 -0
- package/dist/cli/lib/utf8.js.map +1 -0
- package/dist/cli/root-options.d.ts.map +1 -1
- package/dist/cli/root-options.js +11 -14
- package/dist/cli/root-options.js.map +1 -1
- package/dist/cli-plugin.d.ts.map +1 -1
- package/dist/cli-plugin.js +2 -6
- package/dist/cli-plugin.js.map +1 -1
- package/dist/cloud-config-module.js +2 -2
- package/dist/cloud-config-module.js.map +1 -1
- package/dist/dev/cli-host.d.ts.map +1 -1
- package/dist/dev/cli-host.js +16 -19
- package/dist/dev/cli-host.js.map +1 -1
- package/dist/dev/dashboard-vite-config.d.ts +1 -0
- package/dist/dev/dashboard-vite-config.d.ts.map +1 -1
- package/dist/dev/dashboard-vite-config.js +26 -6
- package/dist/dev/dashboard-vite-config.js.map +1 -1
- package/dist/dev/dev-command.d.ts.map +1 -1
- package/dist/dev/dev-command.js +76 -39
- package/dist/dev/dev-command.js.map +1 -1
- package/dist/dev/dev-config.d.ts +3 -0
- package/dist/dev/dev-config.d.ts.map +1 -1
- package/dist/dev/dev-config.js +43 -13
- package/dist/dev/dev-config.js.map +1 -1
- package/dist/dev/dev-migrate.js +7 -9
- package/dist/dev/dev-migrate.js.map +1 -1
- package/dist/dev/dev-process.d.ts.map +1 -1
- package/dist/dev/dev-process.js +6 -10
- package/dist/dev/dev-process.js.map +1 -1
- package/dist/dev/dev-server.js +7 -6
- package/dist/dev/dev-server.js.map +1 -1
- package/dist/dev/dev-worker.js +5 -2
- package/dist/dev/dev-worker.js.map +1 -1
- package/dist/dev/local-services.d.ts.map +1 -1
- package/dist/dev/local-services.js +152 -106
- package/dist/dev/local-services.js.map +1 -1
- package/dist/dev/project-layout.d.ts.map +1 -1
- package/dist/dev/project-layout.js +12 -17
- package/dist/dev/project-layout.js.map +1 -1
- package/dist/dev/project-plugin-scope.d.ts +2 -0
- package/dist/dev/project-plugin-scope.d.ts.map +1 -0
- package/dist/dev/project-plugin-scope.js +38 -0
- package/dist/dev/project-plugin-scope.js.map +1 -0
- package/dist/entrypoint.js +2 -0
- package/dist/entrypoint.js.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -6
- package/dist/index.js.map +1 -1
- package/dist/local-asset-server.d.ts.map +1 -1
- package/dist/local-asset-server.js +7 -13
- package/dist/local-asset-server.js.map +1 -1
- package/dist/local-cache-plugin.d.ts.map +1 -1
- package/dist/local-cache-plugin.js +20 -28
- package/dist/local-cache-plugin.js.map +1 -1
- package/dist/local-cache.d.ts.map +1 -1
- package/dist/local-cache.js +40 -55
- package/dist/local-cache.js.map +1 -1
- package/dist/local-core.d.ts +2 -0
- package/dist/local-core.d.ts.map +1 -0
- package/dist/local-core.js +13 -0
- package/dist/local-core.js.map +1 -0
- package/dist/local-dashboard-plugin.d.ts.map +1 -1
- package/dist/local-dashboard-plugin.js +6 -11
- package/dist/local-dashboard-plugin.js.map +1 -1
- package/dist/local-database.d.ts.map +1 -1
- package/dist/local-database.js +20 -23
- package/dist/local-database.js.map +1 -1
- package/dist/local-durable-execution-plugin.d.ts +15 -0
- package/dist/local-durable-execution-plugin.d.ts.map +1 -0
- package/dist/local-durable-execution-plugin.js +305 -0
- package/dist/local-durable-execution-plugin.js.map +1 -0
- package/dist/local-runtime-guard.d.ts +2 -0
- package/dist/local-runtime-guard.d.ts.map +1 -1
- package/dist/local-runtime-guard.js +40 -3
- package/dist/local-runtime-guard.js.map +1 -1
- package/dist/local-runtime.d.ts.map +1 -1
- package/dist/local-runtime.js +53 -43
- package/dist/local-runtime.js.map +1 -1
- package/package.json +20 -14
- package/dist/cli/commands/identity-context/login.d.ts +0 -2
- package/dist/cli/commands/identity-context/login.d.ts.map +0 -1
- package/dist/cli/commands/identity-context/login.js +0 -158
- package/dist/cli/commands/identity-context/login.js.map +0 -1
- package/dist/cli/commands/identity-context/logout.d.ts +0 -2
- package/dist/cli/commands/identity-context/logout.d.ts.map +0 -1
- package/dist/cli/commands/identity-context/logout.js +0 -12
- package/dist/cli/commands/identity-context/logout.js.map +0 -1
- package/dist/cli/commands/identity-context/org-switch.d.ts +0 -3
- package/dist/cli/commands/identity-context/org-switch.d.ts.map +0 -1
- package/dist/cli/commands/identity-context/org-switch.js +0 -71
- package/dist/cli/commands/identity-context/org-switch.js.map +0 -1
- package/dist/cli/commands/identity-context/whoami.d.ts +0 -3
- package/dist/cli/commands/identity-context/whoami.d.ts.map +0 -1
- package/dist/cli/commands/identity-context/whoami.js +0 -80
- package/dist/cli/commands/identity-context/whoami.js.map +0 -1
- package/dist/cli/lib/file-lock.d.ts +0 -23
- package/dist/cli/lib/file-lock.d.ts.map +0 -1
- package/dist/cli/lib/file-lock.js +0 -121
- package/dist/cli/lib/file-lock.js.map +0 -1
|
@@ -47,12 +47,8 @@ export function formatDeploymentResourceLabel(resource, context) {
|
|
|
47
47
|
if (component === "migration")
|
|
48
48
|
return "Migration job";
|
|
49
49
|
if (resource.kind === "EnvVar") {
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
// but stored `errorDetails` lines on `deployments` / `teardowns` are routed
|
|
53
|
-
// through here on every read, and `uniqueLabels` re-derives labels from
|
|
54
|
-
// {kind, name} rather than trusting the stored one. Dropping the branch only
|
|
55
|
-
// lets an old row surface the retired provider-inherited key verbatim.
|
|
50
|
+
// Stored `errorDetails` on `deployments` and `teardowns` pass through here on every read.
|
|
51
|
+
// Dropping this branch lets an old row surface a retired `NF_`-prefixed key verbatim.
|
|
56
52
|
return resource.name.startsWith("NF_")
|
|
57
53
|
? "Managed environment variables"
|
|
58
54
|
: `Environment variable ${resource.name}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment-resource-labels.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployment-resource-labels.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,+FAA+F;AAC/F,sBAAsB;AAatB,MAAM,gCAAgC,GAAG,IAAI,GAAG,CAAC;IAC/C,WAAW;IACX,QAAQ;IACR,SAAS;IACT,UAAU;IACV,mBAAmB;IACnB,UAAU;CACX,CAAC,CAAC;AAEH,MAAM,iCAAiC,GAAG,IAAI,GAAG,CAAC;IAChD,OAAO;IACP,mBAAmB;IACnB,QAAQ;IACR,WAAW;IACX,aAAa;IACb,WAAW;IACX,QAAQ;CACT,CAAC,CAAC;AAEH,MAAM,UAAU,6BAA6B,CAC3C,QAAsC,EACtC,OAAuC;IAEvC,IAAI,OAAO,QAAQ,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,QAAQ,CAAC,KAAK,CAAC;IAE9D,MAAM,SAAS,GAAG,aAAa,CAAC,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAE7F,IAAI,gCAAgC,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACrE,IAAI,CAAC,iCAAiC,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,UAAU,CAAC;IAC7E,IAAI,SAAS,KAAK,SAAS;QAAE,OAAO,+BAA+B,CAAC;IACpE,IAAI,SAAS,KAAK,cAAc;QAAE,OAAO,uBAAuB,CAAC;IACjE,IAAI,SAAS,KAAK,UAAU;QAAE,OAAO,UAAU,CAAC;IAChD,IAAI,SAAS,KAAK,OAAO;QAAE,OAAO,OAAO,CAAC;IAC1C,IAAI,SAAS,KAAK,QAAQ;QAAE,OAAO,cAAc,CAAC;IAClD,IAAI,SAAS,KAAK,aAAa;QAA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AAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;QAC5F,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,eAAe,KAAK,EAAE,CAAC;IACrE,CAAC;IACD,IAAI,QAAQ,CAAC,IAAI,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IAChD,IAAI,QAAQ,CAAC,IAAI,KAAK,WAAW;QAAE,OAAO,gBAAgB,CAAC;IAE3D,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,aAAa,CAAC,IAAY,EAAE,WAAmB,EAAE,eAAuB;IAC/E,MAAM,MAAM,GAAG,GAAG,WAAW,IAAI,eAAe,GAAG,CAAC;IACpD,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AACpE,CAAC"}
|
|
@@ -58,6 +58,18 @@ export interface TeardownStatusDetails {
|
|
|
58
58
|
export interface DeploymentIdPrefixMatchesResponse {
|
|
59
59
|
matches: string[];
|
|
60
60
|
}
|
|
61
|
+
export declare const DEPLOYMENT_FAILURE_STAGES: readonly ["BUILD_PREPARATION", "BUILD", "BUILD_HANDOFF", "DEPLOYMENT_PREPARATION", "INFRASTRUCTURE", "DATABASE_PROVISIONING", "MIGRATION", "RUNTIME_START"];
|
|
62
|
+
export type DeploymentFailureStage = (typeof DEPLOYMENT_FAILURE_STAGES)[number];
|
|
63
|
+
export declare const DEPLOYMENT_RECOVERY_ACTIONS: readonly ["DEPLOY_AGAIN", "FIX_SOURCE_AND_DEPLOY", "FIX_MIGRATION_AND_DEPLOY", "ROLLBACK", "CONTACT_SUPPORT", "INSPECT_ENVIRONMENT"];
|
|
64
|
+
export type DeploymentRecoveryAction = (typeof DEPLOYMENT_RECOVERY_ACTIONS)[number];
|
|
65
|
+
export type DeploymentRecovery = {
|
|
66
|
+
stage: DeploymentFailureStage | null;
|
|
67
|
+
stageLabel: string | null;
|
|
68
|
+
stageUnavailableReason: string | null;
|
|
69
|
+
nextAction: DeploymentRecoveryAction;
|
|
70
|
+
summary: string;
|
|
71
|
+
nextActionMessage: string;
|
|
72
|
+
};
|
|
61
73
|
export declare const ENVIRONMENT_STATUS_RESOURCE_CATEGORIES: readonly ["DATASTORE", "SERVICE"];
|
|
62
74
|
export type EnvironmentStatusResourceCategory = (typeof ENVIRONMENT_STATUS_RESOURCE_CATEGORIES)[number];
|
|
63
75
|
export type EnvironmentStatusResource = {
|
|
@@ -70,6 +82,8 @@ export declare const EnvironmentActiveWorkKind: {
|
|
|
70
82
|
readonly RUNTIME_OPERATION: "RUNTIME_OPERATION";
|
|
71
83
|
readonly SEED_APPLY: "SEED_APPLY";
|
|
72
84
|
readonly DATABASE_RESTORE: "DATABASE_RESTORE";
|
|
85
|
+
readonly RELOCATION: "RELOCATION";
|
|
86
|
+
readonly BENCHMARK_RUNTIME_PROFILE: "BENCHMARK_RUNTIME_PROFILE";
|
|
73
87
|
};
|
|
74
88
|
export type EnvironmentActiveWorkKind = (typeof EnvironmentActiveWorkKind)[keyof typeof EnvironmentActiveWorkKind];
|
|
75
89
|
export type EnvironmentActiveWork = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployments.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deployments.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployments.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,KAAK,EAAE,0BAA0B,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/F,eAAO,MAAM,2BAA2B,sD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;QAC3B,SAAS,EAAE,MAAM,CAAC;KACnB,GAAG,IAAI,CAAC;IACT,QAAQ,EAAE,KAAK,CACb,yBAAyB,GAAG;QAC1B,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;QACzC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B,CACF,CAAC;IAKF,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC1C,CAAC;AAEF,MAAM,WAAW,0BAA2B,SAAQ,0BAA0B;IAC5E,MAAM,EAAE,QAAQ,CAAC;IACjB,OAAO,EAAE;QACP,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,yBAA0B,SAAQ,0BAA0B;IAE3E,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D"}
|
|
@@ -2,45 +2,75 @@
|
|
|
2
2
|
// `@vendure-cloud/api-types`'s `index.ts` that the hosted deployment commands read. See ./README.md
|
|
3
3
|
// for why this package cannot import them, including as types.
|
|
4
4
|
//
|
|
5
|
-
// `VcRegion` comes from `./desired-state.js
|
|
6
|
-
//
|
|
7
|
-
// from `@vendure-cloud/environment-state`.
|
|
5
|
+
// `VcRegion` comes from `./desired-state.js`, as the originals import it from
|
|
6
|
+
// `@vendure-cloud/environment-state`.
|
|
8
7
|
//
|
|
9
|
-
// The write side is not mirrored. `StoredDeploymentSummary`, `ProtectedOrphan` and the
|
|
10
|
-
//
|
|
11
|
-
//
|
|
12
|
-
// `DeploymentSummary` and `ProtectedResource` in `./wire-types.js`.
|
|
8
|
+
// The write side is not mirrored. `StoredDeploymentSummary`, `ProtectedOrphan` and the functions
|
|
9
|
+
// that turn them into public summaries are the control plane's recording path. The CLI reads
|
|
10
|
+
// `DeploymentSummary` and `ProtectedResource` from `./wire-types.js`.
|
|
13
11
|
export const DEPLOYMENT_RESOURCE_ACTIONS = ["create", "update", "delete", "no-change"];
|
|
14
12
|
export const DEPLOYMENT_PLAN_ACTIONS = ["create", "update", "delete", "keep"];
|
|
15
|
-
// Whether
|
|
16
|
-
//
|
|
13
|
+
// Whether the platform could not compute the plan preview. The answer decides whether a destructive
|
|
14
|
+
// command proceeds.
|
|
17
15
|
//
|
|
18
|
-
// The parameter admits `undefined`
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
// that server's own plans were written for. Declaring the argument as a full `DeploymentPlan` would
|
|
22
|
-
// make the check look redundant and invite someone to simplify it into `!== null`, which treats a
|
|
23
|
-
// missing field as unavailable and would make every plan from an older server refuse.
|
|
16
|
+
// The parameter admits `undefined` because a control plane older than this field sends no field. A
|
|
17
|
+
// missing field reads as available, so a plan from an older server is not refused. Simplifying the
|
|
18
|
+
// check to `!== null` would treat a missing field as unavailable.
|
|
24
19
|
export function isPlanPreviewUnavailable(plan) {
|
|
25
20
|
return typeof plan.previewUnavailableReason === "string";
|
|
26
21
|
}
|
|
27
22
|
export const TEARDOWN_MODES = ["TEARDOWN", "FORCE_TEARDOWN"];
|
|
28
23
|
export const TEARDOWN_STATUSES = ["QUEUED", "RUNNING", "SUCCEEDED", "FAILED", "TIMED_OUT"];
|
|
24
|
+
// Mirrors the deployment-recovery contract from `@vendure-cloud/api-types`, which carries its
|
|
25
|
+
// reasoning. These declarations must stay character-identical to it. `cli-contract-drift.test.ts`
|
|
26
|
+
// enforces that and strips comments, so reasoning copied here would be unchecked.
|
|
27
|
+
export const DEPLOYMENT_FAILURE_STAGES = [
|
|
28
|
+
"BUILD_PREPARATION",
|
|
29
|
+
"BUILD",
|
|
30
|
+
"BUILD_HANDOFF",
|
|
31
|
+
"DEPLOYMENT_PREPARATION",
|
|
32
|
+
"INFRASTRUCTURE",
|
|
33
|
+
"DATABASE_PROVISIONING",
|
|
34
|
+
"MIGRATION",
|
|
35
|
+
"RUNTIME_START",
|
|
36
|
+
];
|
|
37
|
+
// The one thing to do next about a failed VC Deployment. It is a single action because two
|
|
38
|
+
// suggestions leave the customer choosing with less information than the platform has.
|
|
39
|
+
//
|
|
40
|
+
// The action depends on more than the stage: a rollback needs an earlier release, so a first deploy
|
|
41
|
+
// that fails at its rollout gets a different answer.
|
|
42
|
+
//
|
|
43
|
+
// `INSPECT_ENVIRONMENT` is the answer for an unknown stage and the weakest one. Every other action
|
|
44
|
+
// asserts something about what is running, and a wrong assertion sends a customer to roll back an
|
|
45
|
+
// environment that never changed.
|
|
46
|
+
export const DEPLOYMENT_RECOVERY_ACTIONS = [
|
|
47
|
+
"DEPLOY_AGAIN",
|
|
48
|
+
"FIX_SOURCE_AND_DEPLOY",
|
|
49
|
+
"FIX_MIGRATION_AND_DEPLOY",
|
|
50
|
+
"ROLLBACK",
|
|
51
|
+
"CONTACT_SUPPORT",
|
|
52
|
+
"INSPECT_ENVIRONMENT",
|
|
53
|
+
];
|
|
29
54
|
export const ENVIRONMENT_STATUS_RESOURCE_CATEGORIES = ["DATASTORE", "SERVICE"];
|
|
30
|
-
// Environment-scoped work that serializes against everything else touching the
|
|
31
|
-
//
|
|
32
|
-
// same slot, so any one of them blocks the others.
|
|
55
|
+
// Environment-scoped work that serializes against everything else touching the same VC
|
|
56
|
+
// Environment. Deploys, teardowns and runtime operations share one slot.
|
|
33
57
|
export const EnvironmentActiveWorkKind = {
|
|
34
58
|
DEPLOYMENT: "DEPLOYMENT",
|
|
35
59
|
TEARDOWN: "TEARDOWN",
|
|
36
60
|
RUNTIME_OPERATION: "RUNTIME_OPERATION",
|
|
37
|
-
// A named seed apply replaces the
|
|
38
|
-
//
|
|
39
|
-
// whichever one is running (CLO-496).
|
|
61
|
+
// A named seed apply replaces the environment's whole database, so it excludes a deploy and the
|
|
62
|
+
// refusal names whichever one is running (CLO-496).
|
|
40
63
|
SEED_APPLY: "SEED_APPLY",
|
|
41
|
-
// A restore replaces the whole
|
|
42
|
-
//
|
|
43
|
-
// that made the guard durable rather than a same-request check (CLO-499).
|
|
64
|
+
// A restore replaces the whole database from a dump, so it collides with everything above and
|
|
65
|
+
// with itself (CLO-499).
|
|
44
66
|
DATABASE_RESTORE: "DATABASE_RESTORE",
|
|
67
|
+
// A VC Relocation moves the environment's authoritative placement, so it holds the slot against
|
|
68
|
+
// everything above for days: preparation, the maintenance window wait, the cutover and the
|
|
69
|
+
// seven-day retirement are one lease (CLO-719, ADR-0031). Reporting it as a runtime operation
|
|
70
|
+
// would misstate how long a queued deploy waits.
|
|
71
|
+
RELOCATION: "RELOCATION",
|
|
72
|
+
// A leased benchmark runtime profile re-applies the stack with a temporary capacity profile and
|
|
73
|
+
// later restores it, so nothing else may change the environment meanwhile (CLO-922).
|
|
74
|
+
BENCHMARK_RUNTIME_PROFILE: "BENCHMARK_RUNTIME_PROFILE",
|
|
45
75
|
};
|
|
46
76
|
//# sourceMappingURL=deployments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployments.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,oGAAoG;AACpG,+DAA+D;AAC/D,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"deployments.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/deployments.ts"],"names":[],"mappings":"AAAA,iFAAiF;AACjF,oGAAoG;AACpG,+DAA+D;AAC/D,EAAE;AACF,8EAA8E;AAC9E,sCAAsC;AACtC,EAAE;AACF,iGAAiG;AACjG,6FAA6F;AAC7F,sEAAsE;AAMtE,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAU,CAAC;AAIhG,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAU,CAAC;AAuCvF,oGAAoG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AY;IACxB,gGAAgG;IAChG,qFAAqF;IACrF,yBAAyB,EAAE,2BAA2B;CAC9C,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const DESIRED_STATE_SCHEMA_VERSION = 1;
|
|
3
|
-
export declare const VC_REGIONS: readonly ["eu-west-1"];
|
|
3
|
+
export declare const VC_REGIONS: readonly ["eu-west-1", "us-east-1"];
|
|
4
4
|
export type VcRegion = (typeof VC_REGIONS)[number];
|
|
5
5
|
export declare const vcRegionSchema: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
6
6
|
"eu-west-1": "eu-west-1";
|
|
7
|
+
"us-east-1": "us-east-1";
|
|
7
8
|
}>>;
|
|
8
9
|
export declare const VC_ENVIRONMENT_TYPES: readonly ["dev", "uat", "staging", "production"];
|
|
9
10
|
export declare const vcEnvironmentTypeSchema: z.ZodEnum<{
|
|
@@ -41,7 +42,9 @@ export declare const ASSETS_NOT_CONFIGURABLE_MESSAGE = "Asset storage is not con
|
|
|
41
42
|
export declare const CACHE_NOT_CONFIGURABLE_MESSAGE = "The cache is not configurable. Remove the cache section: Vendure Cloud gives every VC Environment its own cache and configures Vendure to use it.";
|
|
42
43
|
export declare const DATABASE_NOT_CONFIGURABLE_MESSAGE = "The database is not configurable. Remove the database section: Vendure Cloud gives every VC Environment its own PostgreSQL database and scales it.";
|
|
43
44
|
export declare const JOB_QUEUE_NOT_CONFIGURABLE_MESSAGE = "The job queue is not configurable. Remove the jobQueue section: Vendure Cloud gives every VC Environment its own job queue and configures Vendure to use it.";
|
|
44
|
-
export declare const RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE = "Runtime service sizing is not configurable. Remove the plan field: Vendure Cloud sizes the server and the worker
|
|
45
|
+
export declare const RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE = "Runtime service sizing is not configurable. Remove the plan field: Vendure Cloud sizes the server and the worker, and support can raise the size if you need more.";
|
|
46
|
+
export declare const RUNTIME_REPLICAS_NOT_CONFIGURABLE_MESSAGE = "Replica counts are not configurable. Remove the replicas field: Vendure Cloud scales the server and the worker automatically within platform limits, and support can raise those limits if you need more.";
|
|
47
|
+
export declare const RUNTIME_WORKER_NOT_CONFIGURABLE_MESSAGE = "The worker is not configurable. Remove the worker section: Vendure Cloud sizes and scales the worker, and the port and health check path belong to the server alone.";
|
|
45
48
|
export declare const environmentDesiredStateSchema: z.ZodPipe<z.ZodUnknown, z.ZodObject<{
|
|
46
49
|
schemaVersion: z.ZodLiteral<1>;
|
|
47
50
|
environment: z.ZodObject<{
|
|
@@ -53,17 +56,14 @@ export declare const environmentDesiredStateSchema: z.ZodPipe<z.ZodUnknown, z.Zo
|
|
|
53
56
|
}>;
|
|
54
57
|
region: z.ZodPipe<z.ZodString, z.ZodEnum<{
|
|
55
58
|
"eu-west-1": "eu-west-1";
|
|
59
|
+
"us-east-1": "us-east-1";
|
|
56
60
|
}>>;
|
|
57
61
|
}, z.core.$strict>;
|
|
58
62
|
runtime: z.ZodObject<{
|
|
59
63
|
server: z.ZodObject<{
|
|
60
|
-
replicas: z.ZodNumber;
|
|
61
64
|
port: z.ZodDefault<z.ZodNumber>;
|
|
62
65
|
healthCheckPath: z.ZodDefault<z.ZodString>;
|
|
63
66
|
}, z.core.$strict>;
|
|
64
|
-
worker: z.ZodObject<{
|
|
65
|
-
replicas: z.ZodNumber;
|
|
66
|
-
}, z.core.$strict>;
|
|
67
67
|
}, z.core.$strict>;
|
|
68
68
|
search: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
69
69
|
managedService: z.ZodLiteral<"none">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"desired-state.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/desired-state.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"desired-state.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/desired-state.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,CAAC,E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,24 @@
|
|
|
2
2
|
// response `@vendure-cloud/api-types` wraps it in. See ./README.md for why this package cannot
|
|
3
3
|
// import either, including as types.
|
|
4
4
|
//
|
|
5
|
-
// The whole schema is mirrored
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
//
|
|
9
|
-
// request, and the bounds and the removed-field messages are asserted on the error path as well.
|
|
10
|
-
// CLO-685 records that decision.
|
|
5
|
+
// The whole schema is mirrored because `config <section> set` parses the document it is about to
|
|
6
|
+
// send and reads the PATCH body from the result. The server defaults `serverServiceSchema`
|
|
7
|
+
// materializes, the port and health check path, are part of what the CLI sends. Dropping the parse
|
|
8
|
+
// would change the request and the error-path bounds and removed-field messages (CLO-685).
|
|
11
9
|
//
|
|
12
|
-
// `VC_ENVIRONMENT_TYPES` is the runtime half of
|
|
13
|
-
//
|
|
14
|
-
// mirror still has one answer for the set.
|
|
10
|
+
// `VC_ENVIRONMENT_TYPES` is the runtime half of `VcEnvironmentType` in `wire-types.ts`.
|
|
11
|
+
// `test/cli-contract-parity.test.ts` asserts the two have the same members.
|
|
15
12
|
//
|
|
16
|
-
// This file imports `zod`, so a command reaches it
|
|
17
|
-
//
|
|
18
|
-
// fails if loading the CLI plugin reaches `zod`.
|
|
13
|
+
// This file imports `zod`, so a command reaches it through `await import(...)` inside its `run`.
|
|
14
|
+
// `test/cli-published-surface.test.ts` fails if loading the CLI plugin reaches `zod`.
|
|
19
15
|
import { z } from "zod";
|
|
20
16
|
export const DESIRED_STATE_SCHEMA_VERSION = 1;
|
|
21
|
-
export const VC_REGIONS = ["eu-west-1"];
|
|
17
|
+
export const VC_REGIONS = ["eu-west-1", "us-east-1"];
|
|
22
18
|
export const vcRegionSchema = z.string().trim().pipe(z.enum(VC_REGIONS));
|
|
23
19
|
export const VC_ENVIRONMENT_TYPES = ["dev", "uat", "staging", "production"];
|
|
24
20
|
export const vcEnvironmentTypeSchema = z.enum(VC_ENVIRONMENT_TYPES);
|
|
25
|
-
// The plans an addon may run on. The original
|
|
26
|
-
//
|
|
27
|
-
// parity suite compares it with the real list at runtime.
|
|
21
|
+
// The plans an addon may run on. The original slices its plan catalog at a minimum, and the catalog
|
|
22
|
+
// has no reader here, so the result is declared and the parity suite compares it at runtime.
|
|
28
23
|
export const VC_ADDON_PLANS = [
|
|
29
24
|
"vc-compute-20",
|
|
30
25
|
"vc-compute-50",
|
|
@@ -47,47 +42,31 @@ export const VC_ADDON_PLANS = [
|
|
|
47
42
|
"vc-compute-2000-40",
|
|
48
43
|
];
|
|
49
44
|
export const vcAddonPlanSchema = z.enum(VC_ADDON_PLANS);
|
|
50
|
-
const runtimeReplicasSchema = z.number().int().min(1).max(20);
|
|
51
45
|
const addonReplicasSchema = z.number().int().min(1).max(10);
|
|
52
46
|
const storageGbSchema = z.number().int().min(1).max(1000);
|
|
53
47
|
const typesenseStorageGbSchema = storageGbSchema.min(6);
|
|
54
|
-
// How many tasks a runtime service runs, and nothing about how large each one is. The task shape is
|
|
55
|
-
// the platform's, resolved from the VC Environment's type and its platform-managed capacity class
|
|
56
|
-
// (CLO-569), and no longer named in this document.
|
|
57
|
-
//
|
|
58
|
-
// `replicas` is the temporary half of that split. It stays customer-configurable because the
|
|
59
|
-
// platform has no autoscaling yet and because stop and start restore a service to the count
|
|
60
|
-
// recorded here (CLO-495). CLO-572 replaces it with platform-owned bounds and removes the field.
|
|
61
|
-
const serviceSchema = z
|
|
62
|
-
.object({
|
|
63
|
-
replicas: runtimeReplicasSchema,
|
|
64
|
-
})
|
|
65
|
-
.strict();
|
|
66
48
|
// Where the server listens and how the load balancer decides it is alive.
|
|
67
49
|
//
|
|
68
|
-
//
|
|
69
|
-
//
|
|
70
|
-
// never sets them gets what the managed build produces.
|
|
50
|
+
// Server only: the worker has no listener. Both fields have defaults, so an older VC Environment
|
|
51
|
+
// parses unchanged.
|
|
71
52
|
//
|
|
72
|
-
// They are
|
|
73
|
-
//
|
|
74
|
-
//
|
|
75
|
-
// healthy, reported as a failed deploy with nothing naming the port
|
|
53
|
+
// They are configurable because a VC Environment may run an image the platform did not build, such
|
|
54
|
+
// as a VC Deployment recorded before the managed build owned every image, or a rollback that
|
|
55
|
+
// replays one. A platform-wide constant would give that image a target group that never turns
|
|
56
|
+
// healthy, reported as a failed deploy with nothing naming the port.
|
|
76
57
|
export const DEFAULT_SERVER_PORT = 3000;
|
|
77
58
|
export const DEFAULT_SERVER_HEALTH_CHECK_PATH = "/health";
|
|
78
|
-
const serverServiceSchema =
|
|
79
|
-
.
|
|
59
|
+
const serverServiceSchema = z
|
|
60
|
+
.object({
|
|
80
61
|
port: z.number().int().min(1).max(65535).default(DEFAULT_SERVER_PORT),
|
|
81
|
-
// Rooted, because the load balancer sends it as a path and a relative one
|
|
82
|
-
// time
|
|
62
|
+
// Rooted, because the load balancer sends it as a path and AWS refuses a relative one at apply
|
|
63
|
+
// time.
|
|
83
64
|
healthCheckPath: z.string().startsWith("/").default(DEFAULT_SERVER_HEALTH_CHECK_PATH),
|
|
84
65
|
})
|
|
85
66
|
.strict();
|
|
86
|
-
// A field keeps arriving
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
// that was removed. Each removed field therefore gets its own check here, which names the field and
|
|
90
|
-
// says why it is gone.
|
|
67
|
+
// A removed field keeps arriving in stored documents and in requests from older CLIs. The strict
|
|
68
|
+
// object reports it as an unrecognized key, which reads as a misspelling. Each removed field gets
|
|
69
|
+
// its own check naming the field and why it is gone.
|
|
91
70
|
// Asset storage left with ADR-0051: a VC Environment's assets live in a bucket the platform creates
|
|
92
71
|
// and destroys with the environment, so there is nothing to choose.
|
|
93
72
|
export const ASSETS_NOT_CONFIGURABLE_MESSAGE = "Asset storage is not configurable. Remove the assets section: Vendure Cloud gives every VC Environment its own asset storage and serves it.";
|
|
@@ -103,18 +82,28 @@ export const DATABASE_NOT_CONFIGURABLE_MESSAGE = "The database is not configurab
|
|
|
103
82
|
export const JOB_QUEUE_NOT_CONFIGURABLE_MESSAGE = "The job queue is not configurable. Remove the jobQueue section: Vendure Cloud gives every VC Environment its own job queue and configures Vendure to use it.";
|
|
104
83
|
// Per-service compute plans left with ADR-0036 and CLO-569: Vendure Cloud sizes a VC Environment's
|
|
105
84
|
// server and worker from its type and its platform-managed capacity class, so there is no compute
|
|
106
|
-
// size to pick.
|
|
107
|
-
export const RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE = "Runtime service sizing is not configurable. Remove the plan field: Vendure Cloud sizes the server and the worker
|
|
85
|
+
// size to pick.
|
|
86
|
+
export const RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE = "Runtime service sizing is not configurable. Remove the plan field: Vendure Cloud sizes the server and the worker, and support can raise the size if you need more.";
|
|
87
|
+
// Replica counts left with CLO-572: Vendure Cloud scales a VC Environment's server and worker
|
|
88
|
+
// between platform-owned bounds, so a fixed count is neither used nor honoured. The message names
|
|
89
|
+
// autoscaling because a customer who set a count wanted to handle load.
|
|
90
|
+
export const RUNTIME_REPLICAS_NOT_CONFIGURABLE_MESSAGE = "Replica counts are not configurable. Remove the replicas field: Vendure Cloud scales the server and the worker automatically within platform limits, and support can raise those limits if you need more.";
|
|
91
|
+
// The whole worker section went too, because the count was all it held.
|
|
92
|
+
export const RUNTIME_WORKER_NOT_CONFIGURABLE_MESSAGE = "The worker is not configurable. Remove the worker section: Vendure Cloud sizes and scales the worker, and the port and health check path belong to the server alone.";
|
|
108
93
|
const REMOVED_FIELD_MESSAGES = {
|
|
109
94
|
assets: ASSETS_NOT_CONFIGURABLE_MESSAGE,
|
|
110
95
|
cache: CACHE_NOT_CONFIGURABLE_MESSAGE,
|
|
111
96
|
database: DATABASE_NOT_CONFIGURABLE_MESSAGE,
|
|
112
97
|
jobQueue: JOB_QUEUE_NOT_CONFIGURABLE_MESSAGE,
|
|
113
98
|
};
|
|
114
|
-
// The runtime services whose `plan`
|
|
115
|
-
//
|
|
116
|
-
// unrecognized key, which reads as a misspelling rather than as a field the platform took over.
|
|
99
|
+
// The runtime services whose `plan` and `replicas` are gone. Checked one level down for the reason
|
|
100
|
+
// given above: a strict object reports a misspelling, not a field the platform took over.
|
|
117
101
|
const REMOVED_RUNTIME_SERVICES = ["server", "worker"];
|
|
102
|
+
// The fields those services no longer carry, each with the sentence saying where it went.
|
|
103
|
+
const REMOVED_RUNTIME_SERVICE_FIELDS = {
|
|
104
|
+
plan: RUNTIME_PLAN_NOT_CONFIGURABLE_MESSAGE,
|
|
105
|
+
replicas: RUNTIME_REPLICAS_NOT_CONFIGURABLE_MESSAGE,
|
|
106
|
+
};
|
|
118
107
|
const removedFieldsSchema = z.unknown().superRefine((value, ctx) => {
|
|
119
108
|
if (typeof value !== "object" || value === null)
|
|
120
109
|
return;
|
|
@@ -130,12 +119,18 @@ const removedFieldsSchema = z.unknown().superRefine((value, ctx) => {
|
|
|
130
119
|
const service = runtime[key];
|
|
131
120
|
if (typeof service !== "object" || service === null)
|
|
132
121
|
continue;
|
|
133
|
-
|
|
134
|
-
|
|
122
|
+
for (const [field, message] of Object.entries(REMOVED_RUNTIME_SERVICE_FIELDS)) {
|
|
123
|
+
if (!(field in service))
|
|
124
|
+
continue;
|
|
125
|
+
ctx.addIssue({ code: "custom", path: ["runtime", key, field], message });
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
// The section itself, reported after its fields so the count a document set is named first.
|
|
129
|
+
if ("worker" in runtime) {
|
|
135
130
|
ctx.addIssue({
|
|
136
131
|
code: "custom",
|
|
137
|
-
path: ["runtime",
|
|
138
|
-
message:
|
|
132
|
+
path: ["runtime", "worker"],
|
|
133
|
+
message: RUNTIME_WORKER_NOT_CONFIGURABLE_MESSAGE,
|
|
139
134
|
});
|
|
140
135
|
}
|
|
141
136
|
});
|
|
@@ -148,10 +143,12 @@ const environmentDesiredStateObjectSchema = z
|
|
|
148
143
|
region: vcRegionSchema,
|
|
149
144
|
})
|
|
150
145
|
.strict(),
|
|
146
|
+
// The server only. Its fields describe where an application listens, the one thing about a
|
|
147
|
+
// runtime service left for a customer to say. Task size and count are the platform's (CLO-569,
|
|
148
|
+
// CLO-572). There is no `worker` key because nothing it held remains.
|
|
151
149
|
runtime: z
|
|
152
150
|
.object({
|
|
153
151
|
server: serverServiceSchema,
|
|
154
|
-
worker: serviceSchema,
|
|
155
152
|
})
|
|
156
153
|
.strict(),
|
|
157
154
|
search: z.discriminatedUnion("managedService", [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"desired-state.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/desired-state.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,+FAA+F;AAC/F,qCAAqC;AACrC,EAAE;AACF,
|
|
1
|
+
{"version":3,"file":"desired-state.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/desired-state.ts"],"names":[],"mappings":"AAAA,mGAAmG;AACnG,+FAA+F;AAC/F,qCAAqC;AACrC,EAAE;AACF,iGAAiG;AACjG,2FAA2F;AAC3F,mGAAmG;AACnG,2FAA2F;AAC3F,EAAE;AACF,wFAAwF;AACxF,4EAA4E;AAC5E,EAAE;AACF,iGAAiG;AACjG,sFAAsF;AAEtF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,WAAW,EAAE,WAAW,CAAU,CAAC;AAE9D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;AAEzE,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,YAAY,CAAU,CAAC;AACrF,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;AAEpE,oGAAoG;AACpG,6FAA6F;AAC7F,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,e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,GAAG,CAAC;KAC1C,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,4BAA4B,CAAC;IACtD,WAAW,EAAE,CAAC;SACX,MAAM,CAAC;QACN,IAAI,EAAE,uBAAuB;QAC7B,MAAM,EAAE,cAAc;KACvB,CAAC;SACD,MAAM,EAAE;IACX,2FAA2F;IAC3F,+FAA+F;IAC/F,sEAAsE;IACtE,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,MAAM,EAAE,mBAAmB;KAC5B,CAAC;SACD,MAAM,EAAE;IACX,MAAM,EAAE,CAAC,CAAC,kBAAkB,CAAC,gBAAgB,EAAE;QAC7C,CAAC,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE;QACxD,CAAC;aACE,MAAM,CAAC;YACN,cAAc,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;YACtC,IAAI,EAAE,iBAAiB;YACvB,QAAQ,EAAE,mBAAmB;YAC7B,SAAS,EAAE,wBAAwB;SACpC,CAAC;aACD,MAAM,EAAE;KACZ,CAAC;CACH,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ,MAAM,CAAC,MAAM,6BAA6B,GAAG,mBAAmB,CAAC,IAAI,CACnE,mCAAmC,CACpC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export type EnvVarSource = "user" | "managed";
|
|
2
|
+
export type EnvVarScope = "runtime" | "build" | "both";
|
|
3
|
+
export interface EnvVarSummary {
|
|
4
|
+
key: string;
|
|
5
|
+
source: EnvVarSource;
|
|
6
|
+
updatedAt?: string;
|
|
7
|
+
scope?: EnvVarScope;
|
|
8
|
+
sensitive?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface EnvVarDetail extends EnvVarSummary {
|
|
11
|
+
value?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface EnvVarValues {
|
|
14
|
+
values: Record<string, string>;
|
|
15
|
+
sensitiveKeys: string[];
|
|
16
|
+
}
|
|
17
|
+
export interface ConfigRevisionRef {
|
|
18
|
+
number: number;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
createdBy: {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string | null;
|
|
23
|
+
} | null;
|
|
24
|
+
}
|
|
25
|
+
export declare const CONFIG_REVISION_CHANGES: readonly ["added", "changed", "removed"];
|
|
26
|
+
export type ConfigRevisionChange = (typeof CONFIG_REVISION_CHANGES)[number];
|
|
27
|
+
export interface ConfigRevisionKeyChange {
|
|
28
|
+
key: string;
|
|
29
|
+
change: ConfigRevisionChange;
|
|
30
|
+
}
|
|
31
|
+
export interface ConfigRevisionStatusResponse {
|
|
32
|
+
latest: ConfigRevisionRef | null;
|
|
33
|
+
applied: ConfigRevisionRef | null;
|
|
34
|
+
pending: boolean;
|
|
35
|
+
changes: ConfigRevisionKeyChange[];
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=env-vars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-vars.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/env-vars.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,SAAS,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEvD,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAGD,MAAM,WAAW,YAAa,SAAQ,aAAa;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,aAAa,EAAE,MAAM,EAAE,CAAC;CACzB;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,IAAI,CAAC;CACvD;AAGD,eAAO,MAAM,uBAAuB,0CAA2C,CAAC;AAChF,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5E,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AAGD,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACjC,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,uBAAuB,EAAE,CAAC;CACpC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Mirrors `@vendure-cloud/api-types`'s `env-vars.ts`: customer environment variables and VC
|
|
2
|
+
// Configuration Revisions. See ./README.md for why this package cannot import them, including as
|
|
3
|
+
// types.
|
|
4
|
+
// `changed` covers a value, scope or sensitivity change.
|
|
5
|
+
export const CONFIG_REVISION_CHANGES = ["added", "changed", "removed"];
|
|
6
|
+
//# sourceMappingURL=env-vars.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env-vars.js","sourceRoot":"","sources":["../../../../src/cli/lib/contract/env-vars.ts"],"names":[],"mappings":"AAAA,4FAA4F;AAC5F,iGAAiG;AACjG,SAAS;AA8BT,yDAAyD;AACzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,CAAU,CAAC"}
|
|
@@ -1,31 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Credentials that other Vendure products issue, and that a Vendure Cloud
|
|
3
|
-
*
|
|
2
|
+
* Credentials that other Vendure products issue, and that a Vendure Cloud management request must
|
|
3
|
+
* never authenticate with.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* which refuses it again for every caller that is not this CLI. Restating
|
|
9
|
-
* either the prefixes or the refusal at one of those places would let them
|
|
10
|
-
* drift, and a drifted denylist is one that has a hole in it.
|
|
5
|
+
* `resolveCredential` in the CLI refuses the value before it leaves the machine, and `AuthGuard` in
|
|
6
|
+
* the control plane refuses it for every other caller. Both read this file, so the prefixes and the
|
|
7
|
+
* refusal cannot drift apart.
|
|
11
8
|
*
|
|
12
|
-
* `AdminGuard` and `StaffAuthGuard`
|
|
13
|
-
*
|
|
14
|
-
* platform issued and signs, checked locally against our own key, so a value
|
|
15
|
-
* from another Vendure product is refused there on its own and is never handed
|
|
16
|
-
* to anyone. The property this file protects — that a first-party credential
|
|
17
|
-
* is not forwarded to a third party — has nothing to reach on those routes.
|
|
9
|
+
* `AdminGuard` and `StaffAuthGuard` are not covered. They verify a staff session this platform
|
|
10
|
+
* signs, so a value from another Vendure product fails there on its own.
|
|
18
11
|
*
|
|
19
|
-
* `vce_` is the project-scoped Environment Credential that Vendure Platform
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* halves of the user-scoped Console CLI Session in
|
|
12
|
+
* `vce_` is the project-scoped Environment Credential that Vendure Platform writes to
|
|
13
|
+
* `<projectRoot>/.vendure/credentials.json` and injects into a running Vendure process. `vcli_` and
|
|
14
|
+
* `vclr_` are the access and refresh halves of the user-scoped Console CLI Session in
|
|
23
15
|
* `~/.vendure/console-credentials.json`.
|
|
24
16
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* and the boundary says so rather than forwarding it.
|
|
17
|
+
* `vcli_` is refused as an API key only. The control plane resolves a Console session sent as
|
|
18
|
+
* `Authorization: Bearer` against Console's introspection route (CLO-641), when configured to reach
|
|
19
|
+
* a Console. `--token`, `VENDURE_CLOUD_TOKEN` and `x-api-key` never reach that check.
|
|
29
20
|
*/
|
|
30
21
|
export declare const ENVIRONMENT_CREDENTIAL_PREFIX = "vce_";
|
|
31
22
|
export declare const CONSOLE_SESSION_TOKEN_PREFIX = "vcli_";
|
|
@@ -39,9 +30,7 @@ export type ForeignCredential = (typeof ForeignCredential)[keyof typeof ForeignC
|
|
|
39
30
|
/**
|
|
40
31
|
* Which foreign credential this value is, or null when it is none of them.
|
|
41
32
|
*
|
|
42
|
-
* A denylist, not a shape check
|
|
43
|
-
* alone and validated as it always was, so a legitimate credential can never be
|
|
44
|
-
* turned away by this function.
|
|
33
|
+
* A denylist, not a shape check, so a legitimate credential is never turned away here.
|
|
45
34
|
*/
|
|
46
35
|
export declare function classifyForeignCredential(value: string): ForeignCredential | null;
|
|
47
36
|
/** What the caller is told. One wording, so the CLI and the API agree. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foreign-credentials.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/foreign-credentials.ts"],"names":[],"mappings":"AAKA
|
|
1
|
+
{"version":3,"file":"foreign-credentials.d.ts","sourceRoot":"","sources":["../../../../src/cli/lib/contract/foreign-credentials.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,eAAO,MAAM,6BAA6B,SAAS,CAAC;AACpD,eAAO,MAAM,4BAA4B,UAAU,CAAC;AACpD,eAAO,MAAM,4BAA4B,UAAU,CAAC;AAEpD,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAiB3F;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAOjF;AAED,0EAA0E;AAC1E,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAExE"}
|