@codiac.io/codiac-cli 1.3.82 → 1.3.84
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 +1 -1
- package/dist/apis/api-plus-local/api-client-plus-local.d.ts +4 -3
- package/dist/apis/api-plus-local/api-client-plus-local.js +3 -3
- package/dist/apis/api-plus-local/api-client-plus-local.js.map +1 -1
- package/dist/apis/auth-client/common/token-utils.d.ts +11 -0
- package/dist/apis/auth-client/common/token-utils.js +84 -0
- package/dist/apis/auth-client/common/token-utils.js.map +1 -0
- package/dist/apis/auth-client/i-auth-client.d.ts +83 -0
- package/dist/apis/auth-client/i-auth-client.js +3 -0
- package/dist/apis/auth-client/i-auth-client.js.map +1 -0
- package/dist/apis/codiac-api/common/api-client-base.d.ts +11 -0
- package/dist/apis/codiac-api/common/api-client-base.js +45 -12
- package/dist/apis/codiac-api/common/api-client-base.js.map +1 -1
- package/dist/apis/codiac-api/common/api-crud-client-base.js +2 -2
- package/dist/apis/codiac-api/common/api-crud-client-base.js.map +1 -1
- package/dist/apis/codiac-api/common/token-utils.d.ts +11 -0
- package/dist/apis/codiac-api/common/token-utils.js +84 -0
- package/dist/apis/codiac-api/common/token-utils.js.map +1 -0
- package/dist/apis/codiac-api/gen/client-config.d.ts +2 -2
- package/dist/apis/codiac-api/gen/client-config.js +9 -9
- package/dist/apis/codiac-api/gen/client-config.js.map +1 -1
- package/dist/apis/codiac-api/gen/client.d.ts +17 -12
- package/dist/apis/codiac-api/gen/client.js +36 -85
- package/dist/apis/codiac-api/gen/client.js.map +1 -1
- package/dist/apis/codiac-api/gen/contracts/index.d.ts +1 -0
- package/dist/apis/codiac-api/gen/contracts/index.js +6 -0
- package/dist/apis/codiac-api/gen/contracts/index.js.map +1 -0
- package/dist/apis/codiac-api/gen/contracts/transformers.gen.d.ts +765 -0
- package/dist/apis/codiac-api/gen/contracts/transformers.gen.js +7179 -0
- package/dist/apis/codiac-api/gen/contracts/transformers.gen.js.map +1 -0
- package/dist/apis/codiac-api/gen/contracts/types.gen.d.ts +18382 -0
- package/dist/apis/codiac-api/gen/contracts/types.gen.js +350 -0
- package/dist/apis/codiac-api/gen/contracts/types.gen.js.map +1 -0
- package/dist/apis/codiac-api/i-client.d.ts +2436 -0
- package/dist/apis/codiac-api/i-client.js +3 -0
- package/dist/apis/codiac-api/i-client.js.map +1 -0
- package/dist/apis/codiac-api-nats/common/creds.d.ts +8 -0
- package/dist/apis/codiac-api-nats/common/creds.js +19 -0
- package/dist/apis/codiac-api-nats/common/creds.js.map +1 -0
- package/dist/apis/codiac-api-nats/common/token-utils.d.ts +11 -0
- package/dist/apis/codiac-api-nats/common/token-utils.js +84 -0
- package/dist/apis/codiac-api-nats/common/token-utils.js.map +1 -0
- package/dist/apis/codiac-api-nats/common/token.d.ts +4 -0
- package/dist/apis/codiac-api-nats/common/token.js +16 -0
- package/dist/apis/codiac-api-nats/common/token.js.map +1 -0
- package/dist/apis/codiac-api-nats/common/types.d.ts +8 -0
- package/dist/apis/codiac-api-nats/common/types.js +3 -0
- package/dist/apis/codiac-api-nats/common/types.js.map +1 -0
- package/dist/apis/codiac-api-nats/common/utils.d.ts +56 -0
- package/dist/apis/codiac-api-nats/common/utils.js +323 -0
- package/dist/apis/codiac-api-nats/common/utils.js.map +1 -0
- package/dist/apis/codiac-api-nats/gen/client.d.ts +2571 -0
- package/dist/apis/codiac-api-nats/gen/client.js +15794 -0
- package/dist/apis/codiac-api-nats/gen/client.js.map +1 -0
- package/dist/apis/codiac-api-nats/gen/config.d.ts +17 -0
- package/dist/apis/codiac-api-nats/gen/config.js +17 -0
- package/dist/apis/codiac-api-nats/gen/config.js.map +1 -0
- package/dist/apis/codiac-api-nats/gen/contracts/index.d.ts +1 -0
- package/dist/apis/codiac-api-nats/gen/contracts/index.js +6 -0
- package/dist/apis/codiac-api-nats/gen/contracts/index.js.map +1 -0
- package/dist/apis/codiac-api-nats/gen/contracts/transformers.gen.d.ts +765 -0
- package/dist/apis/codiac-api-nats/gen/contracts/transformers.gen.js +7179 -0
- package/dist/apis/codiac-api-nats/gen/contracts/transformers.gen.js.map +1 -0
- package/dist/apis/codiac-api-nats/gen/contracts/types.gen.d.ts +18388 -0
- package/dist/apis/codiac-api-nats/gen/contracts/types.gen.js +350 -0
- package/dist/apis/codiac-api-nats/gen/contracts/types.gen.js.map +1 -0
- package/dist/apis/{codiac-api/gen/contracts.d.ts → codiac-api-nats/gen/contracts.ng.d.ts} +247 -245
- package/dist/apis/{codiac-api/gen/contracts.js → codiac-api-nats/gen/contracts.ng.js} +27 -57
- package/dist/apis/codiac-api-nats/gen/contracts.ng.js.map +1 -0
- package/dist/apis/codiac-api-nats/index.d.ts +3 -0
- package/dist/apis/codiac-api-nats/index.js +7 -0
- package/dist/apis/codiac-api-nats/index.js.map +1 -0
- package/dist/apis/codiac-relay/common/api-client-base.js +23 -13
- package/dist/apis/codiac-relay/common/api-client-base.js.map +1 -1
- package/dist/apis/codiac-relay/common/api-crud-client-base.js +2 -2
- package/dist/apis/codiac-relay/common/api-crud-client-base.js.map +1 -1
- package/dist/apis/codiac-relay/common/api-user-creds.d.ts +2 -2
- package/dist/apis/codiac-relay/common/api-user-creds.js +1 -2
- package/dist/apis/codiac-relay/common/api-user-creds.js.map +1 -1
- package/dist/apis/codiac-relay/common/token-utils.d.ts +11 -0
- package/dist/apis/codiac-relay/common/token-utils.js +84 -0
- package/dist/apis/codiac-relay/common/token-utils.js.map +1 -0
- package/dist/apis/codiac-relay/gen/client.d.ts +22 -9
- package/dist/apis/codiac-relay/gen/client.js +37 -9
- package/dist/apis/codiac-relay/gen/client.js.map +1 -1
- package/dist/apis/codiac-relay/gen/contracts/index.d.ts +1 -0
- package/dist/apis/codiac-relay/gen/contracts/index.js +6 -0
- package/dist/apis/codiac-relay/gen/contracts/index.js.map +1 -0
- package/dist/apis/codiac-relay/gen/contracts/transformers.gen.d.ts +307 -0
- package/dist/apis/codiac-relay/gen/contracts/transformers.gen.js +3612 -0
- package/dist/apis/codiac-relay/gen/contracts/transformers.gen.js.map +1 -0
- package/dist/apis/codiac-relay/gen/contracts/types.gen.d.ts +15725 -0
- package/dist/apis/codiac-relay/gen/contracts/types.gen.js +396 -0
- package/dist/apis/codiac-relay/gen/contracts/types.gen.js.map +1 -0
- package/dist/apis/codiac-relay/gen/contracts-legacy.js +4696 -0
- package/dist/apis/codiac-relay/gen/contracts-legacy.js.map +1 -0
- package/dist/apis/codiac-relay/i-client.d.ts +883 -0
- package/dist/apis/codiac-relay/i-client.js +3 -0
- package/dist/apis/codiac-relay/i-client.js.map +1 -0
- package/dist/bootstrapper-for-auth-dmz-commands.d.ts +7 -0
- package/dist/bootstrapper-for-auth-dmz-commands.js +30 -0
- package/dist/bootstrapper-for-auth-dmz-commands.js.map +1 -0
- package/dist/bootstrapper-for-codiac-cli.d.ts +8 -0
- package/dist/bootstrapper-for-codiac-cli.js +101 -0
- package/dist/bootstrapper-for-codiac-cli.js.map +1 -0
- package/dist/bootstrapper-for-enterprise-commands.d.ts +7 -0
- package/dist/bootstrapper-for-enterprise-commands.js +119 -0
- package/dist/bootstrapper-for-enterprise-commands.js.map +1 -0
- package/dist/bootstrapper-for-tenantless-commands.d.ts +7 -0
- package/dist/bootstrapper-for-tenantless-commands.js +51 -0
- package/dist/bootstrapper-for-tenantless-commands.js.map +1 -0
- package/dist/cli-common/command-base.d.ts +10 -9
- package/dist/cli-common/command-base.js +0 -70
- package/dist/cli-common/command-base.js.map +1 -1
- package/dist/cli-common/test/tenant-contextualizer.spec.js +4 -4
- package/dist/cli-common/test/tenant-contextualizer.spec.js.map +1 -1
- package/dist/codiac-entities/asset-request.d.ts +6 -0
- package/dist/codiac-entities/asset-request.js +3 -0
- package/dist/codiac-entities/asset-request.js.map +1 -0
- package/dist/codiac-entities/csp-feature-enum.d.ts +9 -0
- package/dist/codiac-entities/csp-feature-enum.js +11 -0
- package/dist/codiac-entities/csp-feature-enum.js.map +1 -0
- package/dist/codiac-entities/csp-support-map.d.ts +22 -0
- package/dist/codiac-entities/csp-support-map.js +7 -0
- package/dist/codiac-entities/csp-support-map.js.map +1 -0
- package/dist/codiac-entities/ingress-exposure-enum.d.ts +14 -0
- package/dist/codiac-entities/ingress-exposure-enum.js +19 -0
- package/dist/codiac-entities/ingress-exposure-enum.js.map +1 -0
- package/dist/command-base-enterprise.d.ts +19 -5
- package/dist/command-base-enterprise.js +59 -94
- package/dist/command-base-enterprise.js.map +1 -1
- package/dist/command-base-exec-tenant.js +8 -2
- package/dist/command-base-exec-tenant.js.map +1 -1
- package/dist/command-base-exec.js +8 -2
- package/dist/command-base-exec.js.map +1 -1
- package/dist/command-base-tenantless.d.ts +0 -3
- package/dist/command-base-tenantless.js +2 -53
- package/dist/command-base-tenantless.js.map +1 -1
- package/dist/commands/asset/create.js +2 -2
- package/dist/commands/asset/create.js.map +1 -1
- package/dist/commands/asset/deploy.d.ts +2 -1
- package/dist/commands/asset/deploy.js +4 -2
- package/dist/commands/asset/deploy.js.map +1 -1
- package/dist/commands/asset/list.js +4 -1
- package/dist/commands/asset/list.js.map +1 -1
- package/dist/commands/asset/probe/create.js +8 -1
- package/dist/commands/asset/probe/create.js.map +1 -1
- package/dist/commands/asset/probe/delete.js +2 -1
- package/dist/commands/asset/probe/delete.js.map +1 -1
- package/dist/commands/asset/probe/list.js +3 -2
- package/dist/commands/asset/probe/list.js.map +1 -1
- package/dist/commands/asset/recycle.js +3 -0
- package/dist/commands/asset/recycle.js.map +1 -1
- package/dist/commands/asset/undeploy.js +7 -0
- package/dist/commands/asset/undeploy.js.map +1 -1
- package/dist/commands/asset/view.js +13 -6
- package/dist/commands/asset/view.js.map +1 -1
- package/dist/commands/asset/volume/create.js +107 -98
- package/dist/commands/asset/volume/create.js.map +1 -1
- package/dist/commands/asset/volume/delete.js +50 -41
- package/dist/commands/asset/volume/delete.js.map +1 -1
- package/dist/commands/asset/volume/list.js +24 -14
- package/dist/commands/asset/volume/list.js.map +1 -1
- package/dist/commands/asset/where.d.ts +2 -1
- package/dist/commands/asset/where.js.map +1 -1
- package/dist/commands/auth/cabinet/allow.js +4 -3
- package/dist/commands/auth/cabinet/allow.js.map +1 -1
- package/dist/commands/auth/cabinet/allowed.js +8 -7
- package/dist/commands/auth/cabinet/allowed.js.map +1 -1
- package/dist/commands/auth/enterprise/allow/onEnvironments.js +4 -3
- package/dist/commands/auth/enterprise/allow/onEnvironments.js.map +1 -1
- package/dist/commands/auth/enterprise/allow.js +4 -3
- package/dist/commands/auth/enterprise/allow.js.map +1 -1
- package/dist/commands/auth/enterprise/allowed.js +8 -7
- package/dist/commands/auth/enterprise/allowed.js.map +1 -1
- package/dist/commands/auth/environment/allow/onCabinets.js +4 -3
- package/dist/commands/auth/environment/allow/onCabinets.js.map +1 -1
- package/dist/commands/auth/environment/allow.js +4 -3
- package/dist/commands/auth/environment/allow.js.map +1 -1
- package/dist/commands/auth/environment/allowed.js +8 -7
- package/dist/commands/auth/environment/allowed.js.map +1 -1
- package/dist/commands/auth/register.d.ts +3 -6
- package/dist/commands/auth/register.js +11 -38
- package/dist/commands/auth/register.js.map +1 -1
- package/dist/commands/auth/role/list.js +2 -1
- package/dist/commands/auth/role/list.js.map +1 -1
- package/dist/commands/auth/user/list.js +2 -1
- package/dist/commands/auth/user/list.js.map +1 -1
- package/dist/commands/build.js +2 -1
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/cabinet/list.js +6 -3
- package/dist/commands/cabinet/list.js.map +1 -1
- package/dist/commands/cabinet/obliterate.js +1 -1
- package/dist/commands/cabinet/obliterate.js.map +1 -1
- package/dist/commands/cli.d.ts +1 -0
- package/dist/commands/cli.js +1 -0
- package/dist/commands/cli.js.map +1 -1
- package/dist/commands/cluster/scaling/update.js +4 -3
- package/dist/commands/cluster/scaling/update.js.map +1 -1
- package/dist/commands/config/add.js +9 -3
- package/dist/commands/config/add.js.map +1 -1
- package/dist/commands/config/delete.js +6 -1
- package/dist/commands/config/delete.js.map +1 -1
- package/dist/commands/config/deploy.js +4 -0
- package/dist/commands/config/deploy.js.map +1 -1
- package/dist/commands/config/import.js +108 -98
- package/dist/commands/config/import.js.map +1 -1
- package/dist/commands/config/settings/get.js +9 -2
- package/dist/commands/config/settings/get.js.map +1 -1
- package/dist/commands/config/view.js +73 -59
- package/dist/commands/config/view.js.map +1 -1
- package/dist/commands/csp/login.js +13 -2
- package/dist/commands/csp/login.js.map +1 -1
- package/dist/commands/csp/logout.js +9 -2
- package/dist/commands/csp/logout.js.map +1 -1
- package/dist/commands/deploy.js +3 -0
- package/dist/commands/deploy.js.map +1 -1
- package/dist/commands/enterprise/create.js +1 -1
- package/dist/commands/enterprise/create.js.map +1 -1
- package/dist/commands/enterprise/list.js +7 -2
- package/dist/commands/enterprise/list.js.map +1 -1
- package/dist/commands/env/add.js +107 -97
- package/dist/commands/env/add.js.map +1 -1
- package/dist/commands/environment/cluster/attach.js.map +1 -1
- package/dist/commands/environment/cluster/detach.js.map +1 -1
- package/dist/commands/environment/list.js +6 -3
- package/dist/commands/environment/list.js.map +1 -1
- package/dist/commands/filestore/capture.d.ts +4 -3
- package/dist/commands/filestore/capture.js +13 -9
- package/dist/commands/filestore/capture.js.map +1 -1
- package/dist/commands/filestore/list.js +9 -8
- package/dist/commands/filestore/list.js.map +1 -1
- package/dist/commands/host/delete.d.ts +1 -0
- package/dist/commands/host/delete.js +17 -11
- package/dist/commands/host/delete.js.map +1 -1
- package/dist/commands/host/list.js +2 -1
- package/dist/commands/host/list.js.map +1 -1
- package/dist/commands/host/map.d.ts +4 -0
- package/dist/commands/host/map.js +150 -80
- package/dist/commands/host/map.js.map +1 -1
- package/dist/commands/host/view.js +2 -1
- package/dist/commands/host/view.js.map +1 -1
- package/dist/commands/imageRegistry/capture.js +6 -5
- package/dist/commands/imageRegistry/capture.js.map +1 -1
- package/dist/commands/imageRegistry/forget.js +5 -4
- package/dist/commands/imageRegistry/forget.js.map +1 -1
- package/dist/commands/imageRegistry/pullSecret/set.js +10 -9
- package/dist/commands/imageRegistry/pullSecret/set.js.map +1 -1
- package/dist/commands/imageRegistry/pullSecret/unset.js +5 -4
- package/dist/commands/imageRegistry/pullSecret/unset.js.map +1 -1
- package/dist/commands/images/add.js +37 -28
- package/dist/commands/images/add.js.map +1 -1
- package/dist/commands/kit/create.js +3 -2
- package/dist/commands/kit/create.js.map +1 -1
- package/dist/commands/login.d.ts +0 -2
- package/dist/commands/login.js +4 -6
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.js +3 -0
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/noc/cluster/capture.js +1 -1
- package/dist/commands/noc/cluster/capture.js.map +1 -1
- package/dist/commands/noc/cluster/create.js +9 -8
- package/dist/commands/noc/cluster/create.js.map +1 -1
- package/dist/commands/noc/cluster/deinit.js +13 -6
- package/dist/commands/noc/cluster/deinit.js.map +1 -1
- package/dist/commands/noc/cluster/destroy.js +3 -2
- package/dist/commands/noc/cluster/destroy.js.map +1 -1
- package/dist/commands/noc/cluster/forget.js +1 -1
- package/dist/commands/noc/cluster/forget.js.map +1 -1
- package/dist/commands/noc/cluster/grant.js +61 -49
- package/dist/commands/noc/cluster/grant.js.map +1 -1
- package/dist/commands/noc/cluster/init.js +13 -6
- package/dist/commands/noc/cluster/init.js.map +1 -1
- package/dist/commands/noc/cluster/journal.js +2 -1
- package/dist/commands/noc/cluster/journal.js.map +1 -1
- package/dist/commands/noc/cluster/list.js +8 -3
- package/dist/commands/noc/cluster/list.js.map +1 -1
- package/dist/commands/noc/cluster/recreate.js +26 -16
- package/dist/commands/noc/cluster/recreate.js.map +1 -1
- package/dist/commands/portal.js +3 -0
- package/dist/commands/portal.js.map +1 -1
- package/dist/commands/secretStore/capture.js +36 -36
- package/dist/commands/secretStore/capture.js.map +1 -1
- package/dist/commands/secretStore/forget.js +32 -33
- package/dist/commands/secretStore/forget.js.map +1 -1
- package/dist/commands/secretStore/list.js +6 -4
- package/dist/commands/secretStore/list.js.map +1 -1
- package/dist/commands/tenant/create.js +34 -32
- package/dist/commands/tenant/create.js.map +1 -1
- package/dist/commands/tenant/switch.js +30 -34
- package/dist/commands/tenant/switch.js.map +1 -1
- package/dist/commands/whereami.js +3 -0
- package/dist/commands/whereami.js.map +1 -1
- package/dist/message-contracts/index.d.ts +2 -0
- package/dist/message-contracts/index.js +6 -0
- package/dist/message-contracts/index.js.map +1 -0
- package/dist/message-contracts/workunit-contracts.d.ts +72 -0
- package/dist/message-contracts/workunit-contracts.js +26 -0
- package/dist/message-contracts/workunit-contracts.js.map +1 -0
- package/dist/ops/entities/cli-config.d.ts +10 -0
- package/dist/ops/entities/cli-config.js +6 -1
- package/dist/ops/entities/cli-config.js.map +1 -1
- package/dist/relay/contracts/contracts.d.ts +4 -4
- package/dist/relay/contracts/contracts.js +4 -4
- package/dist/relay/contracts/index.d.ts +1 -0
- package/dist/relay/contracts/index.js +1 -0
- package/dist/relay/contracts/index.js.map +1 -1
- package/dist/relay/contracts/manual-supplement.d.ts +105 -0
- package/dist/relay/contracts/manual-supplement.js +27 -0
- package/dist/relay/contracts/manual-supplement.js.map +1 -0
- package/dist/relay/relay-container.js +1 -1
- package/dist/relay/relay-container.js.map +1 -1
- package/dist/sdk/codiac-sdk-for-cli.d.ts +2 -0
- package/dist/sdk/codiac-sdk-for-cli.js +19 -0
- package/dist/sdk/codiac-sdk-for-cli.js.map +1 -1
- package/dist/sdk/i-file-store-configurator.d.ts +1 -1
- package/dist/sdk/i-login-configurator.d.ts +2 -2
- package/dist/sdk-adapters/artifact-hub/helm-resource-configurator.d.ts +4 -4
- package/dist/sdk-adapters/artifact-hub/helm-resource-configurator.js.map +1 -1
- package/dist/sdk-adapters/aws/aws-resource-configurator.d.ts +5 -4
- package/dist/sdk-adapters/aws/aws-resource-configurator.js +8 -7
- package/dist/sdk-adapters/aws/aws-resource-configurator.js.map +1 -1
- package/dist/sdk-adapters/azure/az-interactive-login-configurator.d.ts +2 -2
- package/dist/sdk-adapters/azure/az-interactive-login-configurator.js.map +1 -1
- package/dist/sdk-adapters/azure/azure-resource-configurator.d.ts +3 -3
- package/dist/sdk-adapters/azure/azure-resource-configurator.js +9 -8
- package/dist/sdk-adapters/azure/azure-resource-configurator.js.map +1 -1
- package/dist/sdk-adapters/azure/entities/azure-filestore-def.d.ts +27 -0
- package/dist/sdk-adapters/azure/entities/azure-filestore-def.js +3 -0
- package/dist/sdk-adapters/azure/entities/azure-filestore-def.js.map +1 -0
- package/dist/sdk-adapters/docker-hub/docker-hub-resource-configurator.d.ts +4 -4
- package/dist/sdk-adapters/docker-hub/docker-hub-resource-configurator.js +12 -3
- package/dist/sdk-adapters/docker-hub/docker-hub-resource-configurator.js.map +1 -1
- package/dist/sdk-adapters/local-machine/local-machine-login-configurator.d.ts +2 -2
- package/dist/sdk-adapters/local-machine/local-machine-login-configurator.js.map +1 -1
- package/dist/sdk-adapters/local-machine/local-machine-resource-configurator.js +4 -4
- package/dist/sdk-adapters/local-machine/local-machine-resource-configurator.js.map +1 -1
- package/dist/uilogic/cloud-provider-contextualizer.d.ts +2 -2
- package/dist/uilogic/cloud-provider-contextualizer.js +2 -2
- package/dist/uilogic/cloud-provider-contextualizer.js.map +1 -1
- package/dist/uilogic/cloud-resource-configurator-factory.d.ts +9 -2
- package/dist/uilogic/cloud-resource-configurator-factory.js +24 -6
- package/dist/uilogic/cloud-resource-configurator-factory.js.map +1 -1
- package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.d.ts +4 -4
- package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js +3 -5
- package/dist/uilogic/cloud-resource-configurators/unsupported-resource-configurator.js.map +1 -1
- package/dist/uilogic/config-ui-utils.d.ts +2 -2
- package/dist/uilogic/config-ui-utils.js +13 -13
- package/dist/uilogic/config-ui-utils.js.map +1 -1
- package/dist/uilogic/enterprise-contextualizer.d.ts +2 -2
- package/dist/uilogic/enterprise-contextualizer.js +1 -4
- package/dist/uilogic/enterprise-contextualizer.js.map +1 -1
- package/dist/uilogic/environment-contextualizer.d.ts +2 -2
- package/dist/uilogic/environment-contextualizer.js.map +1 -1
- package/dist/uilogic/image-configurator.d.ts +4 -5
- package/dist/uilogic/image-configurator.js.map +1 -1
- package/dist/uilogic/image-contextualizer.js.map +1 -1
- package/dist/uilogic/image-registry-contextualizer.d.ts +3 -3
- package/dist/uilogic/image-registry-contextualizer.js +2 -6
- package/dist/uilogic/image-registry-contextualizer.js.map +1 -1
- package/dist/uilogic/lrp-watcher-predef.js +2 -2
- package/dist/uilogic/lrp-watcher-predef.js.map +1 -1
- package/dist/uilogic/lrp-watcher-utils.d.ts +1 -1
- package/dist/uilogic/lrp-watcher-utils.js +4 -4
- package/dist/uilogic/lrp-watcher-utils.js.map +1 -1
- package/dist/uilogic/lrp-watcher.d.ts +1 -1
- package/dist/uilogic/lrp-watcher.js +4 -3
- package/dist/uilogic/lrp-watcher.js.map +1 -1
- package/dist/uilogic/rootmap-ui-utils.d.ts +2 -5
- package/dist/uilogic/rootmap-ui-utils.js.map +1 -1
- package/dist/uilogic/tenant-contextualizer.d.ts +2 -2
- package/dist/uilogic/tenant-contextualizer.js +41 -29
- package/dist/uilogic/tenant-contextualizer.js.map +1 -1
- package/dist/uilogic/type-safety-utils.d.ts +12 -1
- package/dist/uilogic/type-safety-utils.js +19 -1
- package/dist/uilogic/type-safety-utils.js.map +1 -1
- package/dist/user-context-loader.d.ts +2 -2
- package/dist/user-context-loader.js +5 -4
- package/dist/user-context-loader.js.map +1 -1
- package/oclif.manifest.json +21 -21
- package/package.json +16 -12
- package/dist/apis/codiac-api/gen/contracts.js.map +0 -1
- package/dist/apis/codiac-relay/gen/contracts.d.ts +0 -4792
- package/dist/apis/codiac-relay/gen/contracts.js +0 -635
- package/dist/apis/codiac-relay/gen/contracts.js.map +0 -1
- package/dist/cli-common/ImagesList.js +0 -67
- package/dist/cli-common/ImagesList.js.map +0 -1
- /package/dist/{cli-common/ImagesList.d.ts → apis/codiac-relay/gen/contracts-legacy.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/secretStore/list.ts"],"names":[],"mappings":";;;;;AAAA,sCAAyC;AACzC,6BAA6B;AAG7B,+DAAyD;AACzD,mEAAiE;AAEjE,6CAA0C;AAC1C,4BAA6B;AAC7B,8EAAyE;AAEzE,iEAA8F;AAC9F,qDAAyG;
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/secretStore/list.ts"],"names":[],"mappings":";;;;;AAAA,sCAAyC;AACzC,6BAA6B;AAG7B,+DAAyD;AACzD,mEAAiE;AAEjE,6CAA0C;AAC1C,4BAA6B;AAC7B,8EAAyE;AAEzE,iEAA8F;AAC9F,qDAAyG;AACzG,uEAAkE;AAOlE,MAAa,kBAAkB;IAE7B;;OAEG;IACI,MAAM,CAAC,eAAe,CAAC,IAAuB;QACnD,QAAQ,IAAI,EAAE;YACZ,KAAK,6BAAiB,CAAC,WAAW,CAAC,CAAC,OAAO,aAAa,CAAC;YACzD,KAAK,6BAAiB,CAAC,UAAU,CAAC,CAAC,OAAO,UAAU,CAAC;YACrD,KAAK,6BAAiB,CAAC,MAAM,CAAC,CAAC,OAAO,aAAa,CAAC;YACpD,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAC;SACjC;IACH,CAAC;IAEM,MAAM,CAAC,eAAe,CAAC,MAAsB;;QAClD,OAAO,MAAA,MAAA,MAAA,MAAgB,MAAM,CAAC,QAAS,0CAAE,QAAQ,mCAAI,MAAiB,MAAM,CAAC,QAAS,0CAAE,MAAM,mCAAU,MAAO,CAAC,QAAQ,mCAAU,MAAO,CAAC,MAAM,CAAC;IACnJ,CAAC;IAEM,MAAM,CAAC,cAAc,CAAC,MAAsB,EAAE,MAAqB;;QACxE,IAAI,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAC7C,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,C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WAAW,EAAE,4GAA4G,EAAE,CAAC;IACtL,IAAI,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,WAAW,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,kHAAkH,EAAE,CAAC;IAC5L,WAAW,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,EAAE,WAAW,EAAE,sGAAsG,EAAE,CAAC;IAClL,eAAe,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,CAAC,EAAE,WAAW,EAAE,ycAAyc,EAAE,CAAC;CAClhB,CAAA;AAEM,oBAAI,GAAG,EACb,CAAA"}
|
|
@@ -14,43 +14,45 @@ class TenantCreate extends command_base_enterprise_1.CommandBaseEnterprise {
|
|
|
14
14
|
this.bootstrap();
|
|
15
15
|
let params = yield this.parse(TenantCreate);
|
|
16
16
|
return this.exec.runWithDefaults(params, (args, flags) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
var _a;
|
|
18
|
+
try {
|
|
19
|
+
(_a = this._relayContainer) === null || _a === void 0 ? void 0 : _a.ready$.subscribe(() => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
20
|
+
// this._ui.userMessage(`This command is not yet supported.`);
|
|
21
|
+
if (this._projCfg && this._projCfg.tenantCode !== undefined && this._projCfg.tenantCode !== ops_1.DxConstants.UNREGISTERED_TENANT_CODE) {
|
|
22
|
+
// this._ui.userMessage(`Cannot switch tenant from within a project folder.`)
|
|
23
|
+
throw new Error(`Cannot switch tenant from within a project folder with a tenant declared.`);
|
|
24
|
+
}
|
|
25
|
+
let contextor = new uilogic_1.TenantContextualizer(this.cliEnviro, this._projCfg, this.authClient, this.projCfgRepo, this._ui, this._styler, this.logger);
|
|
26
|
+
this._userCntx = yield this.establishTenantContext(this._userCntx, contextor);
|
|
27
|
+
let newCtnx = yield contextor.establishPrincipalContext(this._userCntx);
|
|
28
|
+
newCtnx = yield this.promptForNewTenant(this._userCntx, contextor, flags.name, flags.code);
|
|
29
|
+
if (newCtnx !== undefined) {
|
|
30
|
+
this._userCntx = newCtnx;
|
|
31
|
+
this.bindUserInIoc(this._userCntx);
|
|
32
|
+
if (this._userCntx.currentTenantCode) {
|
|
33
|
+
this._ui.userMessage(`Switched to tenant [${this._styler.hilite(this._userCntx.currentTenantCode)}]`);
|
|
25
34
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
let newCtnx = yield contextor.establishPrincipalContext(this._userCntx);
|
|
29
|
-
newCtnx = yield this.promptForNewTenant(this._userCntx, contextor, flags.name, flags.code);
|
|
30
|
-
if (newCtnx !== undefined) {
|
|
31
|
-
this._userCntx = newCtnx;
|
|
32
|
-
this.bindUserInIoc(this._userCntx);
|
|
33
|
-
if (this._userCntx.currentTenantCode) {
|
|
34
|
-
this._ui.userMessage(`Switched to tenant [${this._styler.hilite(this._userCntx.currentTenantCode)}]`);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
this._ui.userMessage(`Current user context is tenant-less.`);
|
|
38
|
-
}
|
|
35
|
+
else {
|
|
36
|
+
this._ui.userMessage(`Current user context is tenant-less.`);
|
|
39
37
|
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
}
|
|
41
|
+
catch (err) {
|
|
42
|
+
this.handleError(err);
|
|
43
|
+
}
|
|
44
|
+
finally {
|
|
45
|
+
yield this.closeConnections();
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
47
48
|
}));
|
|
48
49
|
}
|
|
49
50
|
catch (err) {
|
|
50
|
-
this.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
this.handleError(err);
|
|
52
|
+
}
|
|
53
|
+
finally {
|
|
54
|
+
yield this.closeConnections();
|
|
55
|
+
return;
|
|
54
56
|
}
|
|
55
57
|
});
|
|
56
58
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/tenant/create.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAC1B,sCAA0C;AAC1C,iDAA+C;AAG/C,mCAAwC;AACxC,2EAAqE;AACrE,2CAAqD;AAErD,MAAqB,YAAa,SAAQ,+CAAqB;IAevD,GAAG;;YACP,IAAI;gBACF,IAAI,CAAC,SAAS,EAAE,CAAC;gBACjB,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;gBAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAO,IAAI,EAAE,KAAK,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../src/commands/tenant/create.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAC1B,sCAA0C;AAC1C,iDAA+C;AAG/C,mCAAwC;AACxC,2EAAqE;AACrE,2CAAqD;AAErD,MAAqB,YAAa,SAAQ,+CAAqB;IAevD,GAAG;;YACP,IAAI;gBACF,IAAI,CAAC,SAAS,EAAE,CAAC;gBACjB,IAAI,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;gBAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,EAAE,CAAO,IAAI,EAAE,KAAK,EAAE,EAAE;;oBAC7D,IAAI;wBACF,MAAA,IAAI,CAAC,eAAe,0CAAE,MAAM,CACzB,SAAS,CAAC,GAAS,EAAE;4BAEpB,8DAA8D;4BAE9D,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,KAAK,SAAS,IAAI,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E,CAAC;CACxF,CAAC;AAEK,kBAAK,mCACP,wBAAW,CAAC,WAAW,KAC1B,IAAI,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,uCAAuC,EAAE,CAAC,EACvF,IAAI,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,6KAA6K,EAAE,CAAC,EAC7N,MAAM,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC,EAC9G,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAChC"}
|
|
@@ -10,43 +10,39 @@ const ops_1 = require("../../ops");
|
|
|
10
10
|
class TenantCreate extends command_base_enterprise_1.CommandBaseEnterprise {
|
|
11
11
|
run() {
|
|
12
12
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// this._ui.userMessage(`Cannot switch tenant from within a project folder.`)
|
|
20
|
-
throw new Error(`Current tenant [${this._styler.hilite(this._projCfg.tenantCode)}]; cannot switch tenant from this folder; it exists within a workspace declared for that tenant (see the nearest codiac.json file).`);
|
|
21
|
-
}
|
|
22
|
-
// this._userCntx = await this.promptForNewTenant(this._userCntx, contextor);
|
|
23
|
-
let contextor = new uilogic_1.TenantContextualizer(this.cliEnviro, this._projCfg, this._codiacApi, this._codiacApi, this.projCfgRepo, this._ui, this._styler, this.logger);
|
|
24
|
-
this._userCntx = yield this.establishTenantContext(this._userCntx, contextor);
|
|
25
|
-
let newCntx;
|
|
26
|
-
if (args.code) {
|
|
27
|
-
newCntx = yield contextor.trySwitchTenant(this._userCntx, args.code);
|
|
28
|
-
}
|
|
29
|
-
newCntx = newCntx !== null && newCntx !== void 0 ? newCntx : yield contextor.trySelectFromMyTenants(this._userCntx, false);
|
|
30
|
-
if (newCntx !== undefined) {
|
|
31
|
-
this._userCntx = newCntx;
|
|
32
|
-
this.bindUserInIoc(this._userCntx);
|
|
33
|
-
if (this._userCntx.currentTenantCode) {
|
|
34
|
-
this._ui.userMessage(`Switched to tenant [${this._styler.hilite(this._userCntx.currentTenantCode)}]`);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
this._ui.userMessage(`Current user context is tenant-less.`);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
13
|
+
try {
|
|
14
|
+
this.bootstrap();
|
|
15
|
+
const { args, flags } = yield this.parse(TenantCreate);
|
|
16
|
+
if (this._projCfg && this._projCfg.tenantCode !== undefined && this._projCfg.tenantCode !== ops_1.DxConstants.UNREGISTERED_TENANT_CODE) {
|
|
17
|
+
// this._ui.userMessage(`Cannot switch tenant from within a project folder.`)
|
|
18
|
+
throw new Error(`Current tenant [${this._styler.hilite(this._projCfg.tenantCode)}]; cannot switch tenant from this folder; it exists within a workspace declared for that tenant (see the nearest codiac.json file).`);
|
|
40
19
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
20
|
+
// this._userCntx = await this.promptForNewTenant(this._userCntx, contextor);
|
|
21
|
+
let contextor = new uilogic_1.TenantContextualizer(this.cliEnviro, this._projCfg, this.authClient, this.projCfgRepo, this._ui, this._styler, this.logger);
|
|
22
|
+
this._userCntx = yield this.establishTenantContext(this._userCntx, contextor);
|
|
23
|
+
let newCntx;
|
|
24
|
+
if (args.code) {
|
|
25
|
+
newCntx = yield contextor.trySwitchTenant(this._userCntx, args.code);
|
|
45
26
|
}
|
|
46
|
-
|
|
47
|
-
|
|
27
|
+
newCntx = newCntx !== null && newCntx !== void 0 ? newCntx : yield contextor.trySelectFromMyTenants(this._userCntx, false);
|
|
28
|
+
if (newCntx !== undefined) {
|
|
29
|
+
this._userCntx = newCntx;
|
|
30
|
+
this.bindUserInIoc(this._userCntx);
|
|
31
|
+
if (this._userCntx.currentTenantCode) {
|
|
32
|
+
this._ui.userMessage(`Switched to tenant [${this._styler.hilite(this._userCntx.currentTenantCode)}]`);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this._ui.userMessage(`Current user context is tenant-less.`);
|
|
36
|
+
}
|
|
48
37
|
}
|
|
49
|
-
}
|
|
38
|
+
}
|
|
39
|
+
catch (err) {
|
|
40
|
+
this.handleError(err);
|
|
41
|
+
}
|
|
42
|
+
finally {
|
|
43
|
+
yield this.closeConnections();
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
50
46
|
});
|
|
51
47
|
}
|
|
52
48
|
/** Logs the user in as needed, and persists the new context object to the local machine. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../src/commands/tenant/switch.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAC1B,sCAA0C;AAC1C,iDAA+C;AAC/C,2EAAqE;AAErE,2CAAqD;AAErD,mCAAwC;AAExC,MAAqB,YAAa,SAAQ,+CAAqB;IAYvD,GAAG;;YACP,
|
|
1
|
+
{"version":3,"file":"switch.js","sourceRoot":"","sources":["../../../src/commands/tenant/switch.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAC1B,sCAA0C;AAC1C,iDAA+C;AAC/C,2EAAqE;AAErE,2CAAqD;AAErD,mCAAwC;AAExC,MAAqB,YAAa,SAAQ,+CAAqB;IAYvD,GAAG;;YACP,IAAI;gBACF,IAAI,CAAC,SAAS,EAAE,CAAC;gBACjB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;gBAEvD,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,KAAK,SAAS,IAAI,IAAI,CAAC,QAAQ,CAAC,UAAU,KA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,MAAM,MAAM,CAAC,KAAK,CAAC;yBAChC,IAAI,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE;wBAChD,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;qBAC9C;iBACJ;gBAAC,OAAO,GAAG,EAAE;oBACV,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,6CAA6C,OAAO,aAAa,IAAI,CAAC,SAAS,CAAC,iBAAiB,MAAM,GAAG,CAAC,IAAI,IAAI,EAAE,IAAI,GAAG,CAAC,OAAO,IAAI,EAAE,EAAE,EAAE,GAAG,CAAC,CAAA;oBACpK,WAAW,GAAG,kCAAe,CAAC;iBACjC;wBAAS;oBACN,kEAAkE;oBAClE,OAAO,CAAC,WAAY,CAAC,CAAC;iBACzB;YACL,CAAC,CAAA,CAAC,CAAC;QACP,CAAC;KAAA;;AAjIL,2BAkIC;AAjIU,oBAAW,GAAG,sHAAsH,CAAC;AAErI,cAAK,GAAG;IACX,IAAI,EAAE,YAAK,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;IAC/B,uCAAuC;IACvC,IAAI,EAAE,YAAK,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC;IAC/D,mCAAmC;IACnC,KAAK,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;CACtC,CAAA;AAEM,aAAI,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./terminal-command-request"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./workunit-contracts"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/message-contracts/index.ts"],"names":[],"mappings":";;;AAAA,qEAA2C;AAC3C,+DAAqC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export interface AsyncAck {
|
|
2
|
+
/** Identifier linking this unique transaction execution to its related parent callers and child transactions. */
|
|
3
|
+
correlationId: string;
|
|
4
|
+
taskMap: TaskMap;
|
|
5
|
+
}
|
|
6
|
+
/** Specs describing an available WebSocket on which the client and server
|
|
7
|
+
* can exchange messages related to a given transaction. */
|
|
8
|
+
export interface CommChannelRef {
|
|
9
|
+
socketId: string;
|
|
10
|
+
}
|
|
11
|
+
/** Applicable ONLY to `OperationStateEnum.Completed` */
|
|
12
|
+
export type OperationCompletionCodeEnum = "Cancelled" | "Failed" | "Skipped" | "Success";
|
|
13
|
+
/** Applicable ONLY to `OperationStateEnum.Completed` */
|
|
14
|
+
export declare const OperationCompletionCodeEnum: {
|
|
15
|
+
/** Operation was underway but was manually interrupted before it completed. */
|
|
16
|
+
readonly Cancelled: "Cancelled";
|
|
17
|
+
/** Unsuccessful, not necessarily due to an error. */
|
|
18
|
+
readonly Failed: "Failed";
|
|
19
|
+
/** No work to do (eg: already exists, or conditions were not met). */
|
|
20
|
+
readonly Skipped: "Skipped";
|
|
21
|
+
readonly Success: "Success";
|
|
22
|
+
};
|
|
23
|
+
export type OperationStateEnum = "NotStarted" | "Processing" | "Completed";
|
|
24
|
+
export declare const OperationStateEnum: {
|
|
25
|
+
readonly NotStarted: "NotStarted";
|
|
26
|
+
readonly Processing: "Processing";
|
|
27
|
+
readonly Completed: "Completed";
|
|
28
|
+
};
|
|
29
|
+
export interface OperationStatus {
|
|
30
|
+
/** Human-readable identifier for the operation
|
|
31
|
+
* being described by this object. */
|
|
32
|
+
opCode: string;
|
|
33
|
+
/** Friendly, plain-language, present-tense heading for the operation,
|
|
34
|
+
* verb-"ing"-noun, and with NO trailing ellipsis.
|
|
35
|
+
* eg: `"Creating cluster"`
|
|
36
|
+
*
|
|
37
|
+
* (aka: present-participle, gerund). */
|
|
38
|
+
opIngTitle: string;
|
|
39
|
+
/** Basic tri-state indicating whether the operation is running or not (eg: has not yet started, is running or has completed). */
|
|
40
|
+
state: OperationStateEnum;
|
|
41
|
+
completionCode?: OperationCompletionCodeEnum;
|
|
42
|
+
/** The identifying login (eg: email) of the user that invoked the operation. */
|
|
43
|
+
user: string;
|
|
44
|
+
/** Identifying human readable tenant code. */
|
|
45
|
+
tenant: string;
|
|
46
|
+
/** optional, for use as interim processing output or completion failure reason.
|
|
47
|
+
* eg: "Waiting for Azure completion". */
|
|
48
|
+
message?: string;
|
|
49
|
+
}
|
|
50
|
+
/** Hierarchy of opCodes by which status messages
|
|
51
|
+
* will be marked within the overall correlation.
|
|
52
|
+
*
|
|
53
|
+
* In other words, a user-friendly rendition of the intended call stack,
|
|
54
|
+
* so that real-time status messages can be rendered in sequential order
|
|
55
|
+
* by any client listening to the status stream. */
|
|
56
|
+
export interface TaskMap {
|
|
57
|
+
/** Human-readable identifier for the operation
|
|
58
|
+
* being described by this object.
|
|
59
|
+
*
|
|
60
|
+
* Must be 1-40 alphanumeric or underscore characters,
|
|
61
|
+
* no spaces or special characters
|
|
62
|
+
* (RegEx: `/^\w{1,40}$/` or: `/^[A-Za-z0-9_]{1,40}$/`). */
|
|
63
|
+
opCode: string;
|
|
64
|
+
/** Friendly, plain-language, present-tense heading for the operation,
|
|
65
|
+
* verb-"ing"-noun, and with NO trailing ellipsis.
|
|
66
|
+
* eg: `"Creating cluster"`
|
|
67
|
+
*
|
|
68
|
+
* *(aka: present-participle, or gerund)*. */
|
|
69
|
+
opIngTitle: string;
|
|
70
|
+
/** (optional) The ordered list of sub processes called by this one. */
|
|
71
|
+
tasks?: TaskMap[] | undefined;
|
|
72
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// NOTE:
|
|
3
|
+
// These contracts are from the relay,
|
|
4
|
+
// but dont end up in the openApi spec
|
|
5
|
+
// because they are used after
|
|
6
|
+
// the original triggering endpoint gets hit.
|
|
7
|
+
// This doesnt explain AsyncAck,
|
|
8
|
+
// which doesnt show up because it's a base class.
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.OperationStateEnum = exports.OperationCompletionCodeEnum = void 0;
|
|
11
|
+
/** Applicable ONLY to `OperationStateEnum.Completed` */
|
|
12
|
+
exports.OperationCompletionCodeEnum = {
|
|
13
|
+
/** Operation was underway but was manually interrupted before it completed. */
|
|
14
|
+
Cancelled: "Cancelled",
|
|
15
|
+
/** Unsuccessful, not necessarily due to an error. */
|
|
16
|
+
Failed: "Failed",
|
|
17
|
+
/** No work to do (eg: already exists, or conditions were not met). */
|
|
18
|
+
Skipped: "Skipped",
|
|
19
|
+
Success: "Success",
|
|
20
|
+
};
|
|
21
|
+
exports.OperationStateEnum = {
|
|
22
|
+
NotStarted: "NotStarted",
|
|
23
|
+
Processing: "Processing",
|
|
24
|
+
Completed: "Completed"
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=workunit-contracts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workunit-contracts.js","sourceRoot":"","sources":["../../src/message-contracts/workunit-contracts.ts"],"names":[],"mappings":";AAAA,UAAU;AACV,uCAAuC;AACvC,uCAAuC;AACvC,+BAA+B;AAC/B,6CAA6C;AAC7C,iCAAiC;AACjC,kDAAkD;;;AAqBlD,wDAAwD;AAC3C,QAAA,2BAA2B,GAAG;IACzC,+EAA+E;IAC/E,SAAS,EAAE,WAAW;IACtB,qDAAqD;IACrD,MAAM,EAAE,QAAQ;IAChB,yEAAyE;IACzE,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC;AAKE,QAAA,kBAAkB,GAAG;IAChC,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;CACd,CAAC"}
|
|
@@ -38,6 +38,8 @@ export declare class CliConfig {
|
|
|
38
38
|
authApiBaseUrl: string | undefined;
|
|
39
39
|
/** The url for the Toyhauler API, for use with the package: toyhauler-api-client. */
|
|
40
40
|
codiacApiBaseUrl: string | undefined;
|
|
41
|
+
/** Override for the url to the nats service. */
|
|
42
|
+
codiacNatsUrl?: string | undefined;
|
|
41
43
|
/** Declares that the console should render all output details
|
|
42
44
|
* LogLevels rendered for each setting are as follows:
|
|
43
45
|
* normal: notice, warn, error, and fatal;
|
|
@@ -53,6 +55,7 @@ export declare class CliConfig {
|
|
|
53
55
|
* eg: `1.2.3-4` becomes `1.2.3-thisBranch.5` */
|
|
54
56
|
addBranchNameToPrereleases: boolean | undefined;
|
|
55
57
|
localEntities: boolean | undefined;
|
|
58
|
+
apiClientKind?: ApiClientKindEnum;
|
|
56
59
|
}
|
|
57
60
|
/** User setting for console output volume.
|
|
58
61
|
* LogLevels rendered for each setting are as follows:
|
|
@@ -64,3 +67,10 @@ export declare enum Verbosity {
|
|
|
64
67
|
detail = "detail",
|
|
65
68
|
debug = "debug"
|
|
66
69
|
}
|
|
70
|
+
/** Declaration of which client to use to access the api, Rest vs Nats. */
|
|
71
|
+
export type ApiClientKindEnum = "rest" | "nats";
|
|
72
|
+
/** Declaration of which client to use to access the api, Rest vs Nats. */
|
|
73
|
+
export declare const ApiClientKindEnum: {
|
|
74
|
+
readonly rest: "rest";
|
|
75
|
+
readonly nats: "nats";
|
|
76
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Verbosity = exports.CliConfig = exports.ProjectEnviro = exports.CliEnviro = void 0;
|
|
3
|
+
exports.ApiClientKindEnum = exports.Verbosity = exports.CliConfig = exports.ProjectEnviro = exports.CliEnviro = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const inversify_1 = require("inversify");
|
|
6
6
|
/** Basic local environment info about the current instance of the cli process.
|
|
@@ -61,4 +61,9 @@ var Verbosity;
|
|
|
61
61
|
Verbosity["detail"] = "detail";
|
|
62
62
|
Verbosity["debug"] = "debug";
|
|
63
63
|
})(Verbosity = exports.Verbosity || (exports.Verbosity = {}));
|
|
64
|
+
/** Declaration of which client to use to access the api, Rest vs Nats. */
|
|
65
|
+
exports.ApiClientKindEnum = {
|
|
66
|
+
rest: "rest",
|
|
67
|
+
nats: "nats"
|
|
68
|
+
};
|
|
64
69
|
//# sourceMappingURL=cli-config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-config.js","sourceRoot":"","sources":["../../../src/ops/entities/cli-config.ts"],"names":[],"mappings":";;;;AACA,yCAAuC;AAGvC;GACG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAS;IACpB,YAAY,YAAoB,EAAE,kBAA0B,EAAE,OAAe,EAAE,YAAoB;QACjG,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,sCAAsC;IACxC,CAAC;CA8BF,CAAA;AArCY,SAAS;IADrB,IAAA,sBAAU,GAAE;;GACA,SAAS,CAqCrB;AArCY,8BAAS;AAyCtB;GACG;AAEI,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAAmB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAEtC,CAAC;CACF,CAAA;AAJY,aAAa;IADzB,IAAA,sBAAU,GAAE;;GACA,aAAa,CAIzB;AAJY,sCAAa;AAM1B;;GAEG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAS;IAGpB;
|
|
1
|
+
{"version":3,"file":"cli-config.js","sourceRoot":"","sources":["../../../src/ops/entities/cli-config.ts"],"names":[],"mappings":";;;;AACA,yCAAuC;AAGvC;GACG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAS;IACpB,YAAY,YAAoB,EAAE,kBAA0B,EAAE,OAAe,EAAE,YAAoB;QACjG,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,sCAAsC;IACxC,CAAC;CA8BF,CAAA;AArCY,SAAS;IADrB,IAAA,sBAAU,GAAE;;GACA,SAAS,CAqCrB;AArCY,8BAAS;AAyCtB;GACG;AAEI,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YAAmB,WAAmB;QAAnB,gBAAW,GAAX,WAAW,CAAQ;IAEtC,CAAC;CACF,CAAA;AAJY,aAAa;IADzB,IAAA,sBAAU,GAAE;;GACA,aAAa,CAIzB;AAJY,sCAAa;AAM1B;;GAEG;AAEI,IAAM,SAAS,GAAf,MAAM,SAAS;IAGpB;QAaA;;;;0CAIkC;QAC3B,cAAS,GAAc,SAAS,CAAC,MAAM,CAAC;IAhB/C,CAAC;;AAJsB,kBAAQ,GAAG,mBAAmB,CAAC;AAD3C,SAAS;IADrB,IAAA,sBAAU,GAAE;;GACA,SAAS,CAmCrB;AAnCY,8BAAS;AAsCtB;;;;kCAIkC;AAClC,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;IACjB,4BAAe,CAAA;AACjB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAOD,0EAA0E;AAC7D,QAAA,iBAAiB,GAAG;IAC/B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAC"}
|
|
@@ -107,10 +107,10 @@ export interface IStorageAccountEndpointUrls {
|
|
|
107
107
|
}
|
|
108
108
|
/** Supported file store adapters that can be mapped to a reserved folder on an asset. */
|
|
109
109
|
export declare enum FileStoreTypeEnum {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
azureFileStorage = "AzureFileStorage",
|
|
111
|
+
azureBlobStorage = "AzureBlobStorage",
|
|
112
|
+
azureDisk = "AzureDisk",
|
|
113
|
+
hostMachineFolder = "HostMachineFolder"
|
|
114
114
|
}
|
|
115
115
|
/** An object representation of a config file, assembled from ScopedSettings.
|
|
116
116
|
* This document can take any form, and is constructed solely from settings and values,
|
|
@@ -145,10 +145,10 @@ exports.AwsSecretStore = AwsSecretStore;
|
|
|
145
145
|
/** Supported file store adapters that can be mapped to a reserved folder on an asset. */
|
|
146
146
|
var FileStoreTypeEnum;
|
|
147
147
|
(function (FileStoreTypeEnum) {
|
|
148
|
-
FileStoreTypeEnum["
|
|
149
|
-
FileStoreTypeEnum["
|
|
150
|
-
FileStoreTypeEnum["
|
|
151
|
-
FileStoreTypeEnum["
|
|
148
|
+
FileStoreTypeEnum["azureFileStorage"] = "AzureFileStorage";
|
|
149
|
+
FileStoreTypeEnum["azureBlobStorage"] = "AzureBlobStorage";
|
|
150
|
+
FileStoreTypeEnum["azureDisk"] = "AzureDisk";
|
|
151
|
+
FileStoreTypeEnum["hostMachineFolder"] = "HostMachineFolder";
|
|
152
152
|
})(FileStoreTypeEnum = exports.FileStoreTypeEnum || (exports.FileStoreTypeEnum = {}));
|
|
153
153
|
// /** Abstraction and specification for a share on a file store,
|
|
154
154
|
// * to be mapped to a reserved folder on an asset.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/relay/contracts/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/relay/contracts/index.ts"],"names":[],"mappings":";;;AAAA,sDAA4B;AAC5B,8DAAoC"}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { IVersionRef, KvpStoreTypesEnum } from "../../apis/codiac-relay/contracts";
|
|
2
|
+
export type AutoscalingProfile = {
|
|
3
|
+
max: number;
|
|
4
|
+
min?: number | undefined;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
metrics?: {
|
|
7
|
+
[key: string]: IAutoscalingMetric | ('disabled' | 'enabled');
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
/** Parameters declaring the thresholds for autoscaling against a single given metric
|
|
11
|
+
* (such as declaring a target of 65% memory utilization). */
|
|
12
|
+
export type IAutoscalingMetric = {
|
|
13
|
+
targetValue?: number | undefined;
|
|
14
|
+
targetUnits?: string | undefined;
|
|
15
|
+
disabled?: boolean | undefined;
|
|
16
|
+
};
|
|
17
|
+
export type CpuSpec = {};
|
|
18
|
+
export type DeployedState = {
|
|
19
|
+
version: EnterpriseVersionConfig;
|
|
20
|
+
configState: object;
|
|
21
|
+
deployedOn: Date;
|
|
22
|
+
deployedBy: string;
|
|
23
|
+
};
|
|
24
|
+
export type EnterpriseVersionConfig = {
|
|
25
|
+
enterprise: string;
|
|
26
|
+
entityType: string;
|
|
27
|
+
entityName: string;
|
|
28
|
+
version: string;
|
|
29
|
+
tags?: Tag[] | undefined;
|
|
30
|
+
contents?: IVersionRef[] | undefined;
|
|
31
|
+
contentHash?: string | undefined;
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
createdBy: string;
|
|
34
|
+
modifiedBy: string;
|
|
35
|
+
created: Date;
|
|
36
|
+
modified: Date;
|
|
37
|
+
/** Markdown block of instructions or other descriptions from the author about this particular version. */
|
|
38
|
+
notes?: string | undefined;
|
|
39
|
+
/** Key-value pairs (aka: property bag) for this particular version. */
|
|
40
|
+
labels?: Label[] | undefined;
|
|
41
|
+
/** Starting point for threaded discussions on this particular version. */
|
|
42
|
+
comments?: Comment[] | undefined;
|
|
43
|
+
};
|
|
44
|
+
export type Tag = {
|
|
45
|
+
name: string;
|
|
46
|
+
ownerType: string;
|
|
47
|
+
ownerId: string;
|
|
48
|
+
enterprise: string;
|
|
49
|
+
id?: string | undefined;
|
|
50
|
+
createdBy: string;
|
|
51
|
+
modifiedBy: string;
|
|
52
|
+
created: Date;
|
|
53
|
+
modified: Date;
|
|
54
|
+
};
|
|
55
|
+
/** A key-value pair applied to an entity in an enterprise. */
|
|
56
|
+
export type Label = {
|
|
57
|
+
value: string;
|
|
58
|
+
name: string;
|
|
59
|
+
ownerType: string;
|
|
60
|
+
ownerId: string;
|
|
61
|
+
enterprise: string;
|
|
62
|
+
id?: string | undefined;
|
|
63
|
+
createdBy: string;
|
|
64
|
+
modifiedBy: string;
|
|
65
|
+
created: Date;
|
|
66
|
+
modified: Date;
|
|
67
|
+
};
|
|
68
|
+
/** Metadata describing an existing concrete instance
|
|
69
|
+
* of a FileStoreDef resource within a cloud provider. */
|
|
70
|
+
export type FileStoreInfrx = {
|
|
71
|
+
providerSubscriptionId: string;
|
|
72
|
+
resourceId: string;
|
|
73
|
+
};
|
|
74
|
+
/** The information needed to access an individual key value pair
|
|
75
|
+
* from a predefined data store. */
|
|
76
|
+
export type KvpReference = {
|
|
77
|
+
type: KvpStoreTypesEnum;
|
|
78
|
+
name: string;
|
|
79
|
+
key: any;
|
|
80
|
+
};
|
|
81
|
+
/** A time signature declaring an hour of the day for a day of the week (eg: "Mondays at 8am").
|
|
82
|
+
*
|
|
83
|
+
* This entity is NOT an actual in time, but instead is essentially a template,
|
|
84
|
+
* which, only when applied to an actual calendar,
|
|
85
|
+
* can then produce a concrete point in time. */
|
|
86
|
+
export type WeeklyTime = {
|
|
87
|
+
day: "fr" | "mo" | "sa" | "su" | "th" | "tu" | "we";
|
|
88
|
+
hr24: "0" | "1" | "10" | "11" | "12" | "13" | "14" | "15" | "16" | "17" | "18" | "19" | "2" | "20" | "21" | "22" | "23" | "3" | "4" | "5" | "6" | "7" | "8" | "9";
|
|
89
|
+
/** DEVNOTE: Do these need to be strings? why not integers? */
|
|
90
|
+
m?: string | undefined;
|
|
91
|
+
};
|
|
92
|
+
/** Indicates which authentication flow is to be used with the given credentials. */
|
|
93
|
+
export type CredentialType = "client_credentials" | "username_password" | "refresh_token";
|
|
94
|
+
/** Indicates which authentication flow is to be used with the given credentials. */
|
|
95
|
+
export declare const CredentialType: {
|
|
96
|
+
client_credentials: string;
|
|
97
|
+
username_password: string;
|
|
98
|
+
refresh_token: string;
|
|
99
|
+
};
|
|
100
|
+
export type AnyAllNoneEnum = "any" | "all" | "none";
|
|
101
|
+
export declare const AnyAllNoneEnum: {
|
|
102
|
+
any: string;
|
|
103
|
+
all: string;
|
|
104
|
+
none: string;
|
|
105
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// ==============================================================
|
|
3
|
+
//
|
|
4
|
+
// Supplements the generated relay client contracts
|
|
5
|
+
//
|
|
6
|
+
// ...by supplying the types
|
|
7
|
+
// that did not get explicitly generated.
|
|
8
|
+
//
|
|
9
|
+
// Most of these (esp the enums) were generated
|
|
10
|
+
// as inline anonymous types instead of type aliases
|
|
11
|
+
//
|
|
12
|
+
// ==============================================================
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.AnyAllNoneEnum = exports.CredentialType = void 0;
|
|
15
|
+
/** Indicates which authentication flow is to be used with the given credentials. */
|
|
16
|
+
exports.CredentialType = {
|
|
17
|
+
client_credentials: "client_credentials",
|
|
18
|
+
username_password: "username_password",
|
|
19
|
+
refresh_token: "refresh_token"
|
|
20
|
+
};
|
|
21
|
+
// WHY DIDNT THE CLIENT GEN GIVE US THIS?
|
|
22
|
+
exports.AnyAllNoneEnum = {
|
|
23
|
+
any: "any",
|
|
24
|
+
all: "all",
|
|
25
|
+
none: "none"
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=manual-supplement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manual-supplement.js","sourceRoot":"","sources":["../../../src/relay/contracts/manual-supplement.ts"],"names":[],"mappings":";AAAA,iEAAiE;AACjE,EAAE;AACF,sDAAsD;AACtD,EAAE;AACF,+BAA+B;AAC/B,4CAA4C;AAC5C,EAAE;AACF,kDAAkD;AAClD,uDAAuD;AACvD,EAAE;AACF,iEAAiE;;;AAsHjE,oFAAoF;AACvE,QAAA,cAAc,GAAG;IAC5B,kBAAkB,EAAE,oBAAoB;IACxC,iBAAiB,EAAE,mBAAmB;IACtC,aAAa,EAAE,eAAe;CAC/B,CAAA;AAMD,yCAAyC;AAC5B,QAAA,cAAc,GAAG;IAC5B,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACb,CAAA"}
|
|
@@ -18,7 +18,7 @@ const INTERFACES_CLI_1 = require("../ops/INTERFACES_CLI");
|
|
|
18
18
|
const Docker = require("dockerode");
|
|
19
19
|
const entities_1 = require("../ops/entities");
|
|
20
20
|
const DEFAULT_IMAGE_NAME = "codiacimages/codiac-relay";
|
|
21
|
-
exports.DEFAULT_IMAGE_TAG = "1.
|
|
21
|
+
exports.DEFAULT_IMAGE_TAG = "1.6.9";
|
|
22
22
|
const DEFAULT_CONTAINER_NAME = "codiac-relay";
|
|
23
23
|
const DEFAULT_HEALTH_CHECK_URL = "http://localhost:5799/heartbeat-json"; // /ready-state";
|
|
24
24
|
const DEFAULT_RETRY_TIMOUT_IN_MINUTES = 1;
|