auth0-deploy-cli 7.24.3 → 8.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nyc_output/eddfc559-04e8-4f99-adef-dd9503950c80.json +1 -0
- package/.nyc_output/processinfo/20b0af71-c58f-402b-ac9c-4c5b7a505a79.json +1 -0
- package/.nyc_output/processinfo/9b0c8b3d-76ba-4549-b82e-b44e387f2419.json +1 -0
- package/.nyc_output/processinfo/eddfc559-04e8-4f99-adef-dd9503950c80.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +28 -1
- package/CONTRIBUTING.md +1 -0
- package/README.md +1 -1
- package/coverage/lcov-report/index.html +69 -69
- package/coverage/lcov.info +3804 -3599
- package/docs/configuring-the-deploy-cli.md +1 -1
- package/docs/excluding-from-management.md +0 -1
- package/docs/resource-specific-documentation.md +11 -8
- package/docs/v8_MIGRATION_GUIDE.md +46 -0
- package/examples/directory/README.md +0 -7
- package/examples/directory/config.json.example +3 -3
- package/examples/yaml/config.json.example +4 -4
- package/examples/yaml/tenant.yaml +0 -21
- package/lib/args.js +1 -2
- package/lib/args.js.map +1 -1
- package/lib/commands/export.js +1 -1
- package/lib/commands/export.js.map +1 -1
- package/lib/commands/import.js +1 -1
- package/lib/commands/import.js.map +1 -1
- package/lib/configFactory.js.map +1 -1
- package/lib/context/defaults.js +1 -2
- package/lib/context/defaults.js.map +1 -1
- package/lib/context/directory/handlers/actions.js.map +1 -1
- package/lib/context/directory/handlers/attackProtection.js.map +1 -1
- package/lib/context/directory/handlers/branding.js.map +1 -1
- package/lib/context/directory/handlers/clientGrants.js +3 -2
- package/lib/context/directory/handlers/clientGrants.js.map +1 -1
- package/lib/context/directory/handlers/clients.js.map +1 -1
- package/lib/context/directory/handlers/connections.js.map +1 -1
- package/lib/context/directory/handlers/databases.js.map +1 -1
- package/lib/context/directory/handlers/emailProvider.js.map +1 -1
- package/lib/context/directory/handlers/emailTemplates.js.map +1 -1
- package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js.map +1 -1
- package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -1
- package/lib/context/directory/handlers/guardianPolicies.js.map +1 -1
- package/lib/context/directory/handlers/hooks.js.map +1 -1
- package/lib/context/directory/handlers/index.js +3 -5
- package/lib/context/directory/handlers/index.js.map +1 -1
- package/lib/context/directory/handlers/organizations.js.map +1 -1
- package/lib/context/directory/handlers/pages.js.map +1 -1
- package/lib/context/directory/handlers/prompts.js.map +1 -1
- package/lib/context/directory/handlers/resourceServers.d.ts +1 -1
- package/lib/context/directory/handlers/resourceServers.js.map +1 -1
- package/lib/context/directory/handlers/roles.js.map +1 -1
- package/lib/context/directory/handlers/rules.js.map +1 -1
- package/lib/context/directory/handlers/tenant.js.map +1 -1
- package/lib/context/directory/handlers/themes.js.map +1 -1
- package/lib/context/directory/index.d.ts +2 -1
- package/lib/context/directory/index.js +3 -3
- package/lib/context/directory/index.js.map +1 -1
- package/lib/context/index.d.ts +1 -1
- package/lib/context/index.js +8 -3
- package/lib/context/index.js.map +1 -1
- package/lib/context/yaml/handlers/actions.js.map +1 -1
- package/lib/context/yaml/handlers/branding.js.map +1 -1
- package/lib/context/yaml/handlers/clientGrants.js +4 -2
- package/lib/context/yaml/handlers/clientGrants.js.map +1 -1
- package/lib/context/yaml/handlers/clients.js.map +1 -1
- package/lib/context/yaml/handlers/connections.js.map +1 -1
- package/lib/context/yaml/handlers/emailProvider.js.map +1 -1
- package/lib/context/yaml/handlers/emailTemplates.js.map +1 -1
- package/lib/context/yaml/handlers/guardianPolicies.d.ts +2 -2
- package/lib/context/yaml/handlers/hooks.js.map +1 -1
- package/lib/context/yaml/handlers/index.js +4 -6
- package/lib/context/yaml/handlers/index.js.map +1 -1
- package/lib/context/yaml/handlers/organizations.js.map +1 -1
- package/lib/context/yaml/handlers/pages.js.map +1 -1
- package/lib/context/yaml/handlers/resourceServers.d.ts +1 -1
- package/lib/context/yaml/handlers/resourceServers.js.map +1 -1
- package/lib/context/yaml/handlers/roles.js.map +1 -1
- package/lib/context/yaml/handlers/rules.js.map +1 -1
- package/lib/context/yaml/handlers/themes.d.ts +1 -1
- package/lib/context/yaml/index.d.ts +2 -1
- package/lib/context/yaml/index.js +4 -4
- package/lib/context/yaml/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js.map +1 -1
- package/lib/keywordPreservation.d.ts +1 -1
- package/lib/keywordPreservation.js.map +1 -1
- package/lib/readonly.js +1 -1
- package/lib/readonly.js.map +1 -1
- package/lib/sessionDurationsToMinutes.d.ts +2 -2
- package/lib/tools/auth0/client.d.ts +4 -2
- package/lib/tools/auth0/client.js +14 -4
- package/lib/tools/auth0/client.js.map +1 -1
- package/lib/tools/auth0/handlers/actions.d.ts +8 -3
- package/lib/tools/auth0/handlers/actions.js +19 -17
- package/lib/tools/auth0/handlers/actions.js.map +1 -1
- package/lib/tools/auth0/handlers/attackProtection.js +8 -8
- package/lib/tools/auth0/handlers/attackProtection.js.map +1 -1
- package/lib/tools/auth0/handlers/branding.js +25 -12
- package/lib/tools/auth0/handlers/branding.js.map +1 -1
- package/lib/tools/auth0/handlers/clientGrants.js +11 -3
- package/lib/tools/auth0/handlers/clientGrants.js.map +1 -1
- package/lib/tools/auth0/handlers/clients.d.ts +3 -3
- package/lib/tools/auth0/handlers/clients.js +3 -1
- package/lib/tools/auth0/handlers/clients.js.map +1 -1
- package/lib/tools/auth0/handlers/connections.d.ts +8 -1
- package/lib/tools/auth0/handlers/connections.js +18 -8
- package/lib/tools/auth0/handlers/connections.js.map +1 -1
- package/lib/tools/auth0/handlers/customDomains.js +2 -2
- package/lib/tools/auth0/handlers/customDomains.js.map +1 -1
- package/lib/tools/auth0/handlers/databases.d.ts +1 -1
- package/lib/tools/auth0/handlers/databases.js +14 -7
- package/lib/tools/auth0/handlers/databases.js.map +1 -1
- package/lib/tools/auth0/handlers/default.js +14 -4
- package/lib/tools/auth0/handlers/default.js.map +1 -1
- package/lib/tools/auth0/handlers/emailProvider.js +20 -11
- package/lib/tools/auth0/handlers/emailProvider.js.map +1 -1
- package/lib/tools/auth0/handlers/emailTemplates.js +23 -10
- package/lib/tools/auth0/handlers/emailTemplates.js.map +1 -1
- package/lib/tools/auth0/handlers/guardianFactorProviders.js +40 -6
- package/lib/tools/auth0/handlers/guardianFactorProviders.js.map +1 -1
- package/lib/tools/auth0/handlers/guardianFactorTemplates.js +29 -5
- package/lib/tools/auth0/handlers/guardianFactorTemplates.js.map +1 -1
- package/lib/tools/auth0/handlers/guardianFactors.js +2 -1
- package/lib/tools/auth0/handlers/guardianFactors.js.map +1 -1
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.d.ts +1 -1
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +3 -3
- package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js.map +1 -1
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.d.ts +2 -2
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +3 -3
- package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -1
- package/lib/tools/auth0/handlers/guardianPolicies.d.ts +2 -2
- package/lib/tools/auth0/handlers/guardianPolicies.js +2 -3
- package/lib/tools/auth0/handlers/guardianPolicies.js.map +1 -1
- package/lib/tools/auth0/handlers/hooks.js +8 -4
- package/lib/tools/auth0/handlers/hooks.js.map +1 -1
- package/lib/tools/auth0/handlers/index.d.ts +6 -147
- package/lib/tools/auth0/handlers/index.js +0 -3
- package/lib/tools/auth0/handlers/index.js.map +1 -1
- package/lib/tools/auth0/handlers/logStreams.js +1 -1
- package/lib/tools/auth0/handlers/logStreams.js.map +1 -1
- package/lib/tools/auth0/handlers/organizations.d.ts +24 -0
- package/lib/tools/auth0/handlers/organizations.js +134 -15
- package/lib/tools/auth0/handlers/organizations.js.map +1 -1
- package/lib/tools/auth0/handlers/pages.js +7 -6
- package/lib/tools/auth0/handlers/pages.js.map +1 -1
- package/lib/tools/auth0/handlers/prompts.d.ts +2 -3
- package/lib/tools/auth0/handlers/prompts.js +43 -70
- package/lib/tools/auth0/handlers/prompts.js.map +1 -1
- package/lib/tools/auth0/handlers/resourceServers.d.ts +1 -9
- package/lib/tools/auth0/handlers/resourceServers.js +2 -1
- package/lib/tools/auth0/handlers/resourceServers.js.map +1 -1
- package/lib/tools/auth0/handlers/roles.js +33 -12
- package/lib/tools/auth0/handlers/roles.js.map +1 -1
- package/lib/tools/auth0/handlers/rules.js +8 -3
- package/lib/tools/auth0/handlers/rules.js.map +1 -1
- package/lib/tools/auth0/handlers/rulesConfigs.js +2 -1
- package/lib/tools/auth0/handlers/rulesConfigs.js.map +1 -1
- package/lib/tools/auth0/handlers/scimHandler.d.ts +10 -11
- package/lib/tools/auth0/handlers/scimHandler.js +57 -46
- package/lib/tools/auth0/handlers/scimHandler.js.map +1 -1
- package/lib/tools/auth0/handlers/tenant.d.ts +5 -9
- package/lib/tools/auth0/handlers/tenant.js +55 -54
- package/lib/tools/auth0/handlers/tenant.js.map +1 -1
- package/lib/tools/auth0/handlers/themes.d.ts +2 -85
- package/lib/tools/auth0/handlers/themes.js +4 -4
- package/lib/tools/auth0/handlers/themes.js.map +1 -1
- package/lib/tools/auth0/handlers/triggers.js +8 -7
- package/lib/tools/auth0/handlers/triggers.js.map +1 -1
- package/lib/tools/auth0/index.d.ts +2 -2
- package/lib/tools/auth0/index.js.map +1 -1
- package/lib/tools/auth0/schema.js.map +1 -1
- package/lib/tools/calculateChanges.js +2 -3
- package/lib/tools/calculateChanges.js.map +1 -1
- package/lib/tools/constants.d.ts +2 -1
- package/lib/tools/constants.js +1 -1
- package/lib/tools/constants.js.map +1 -1
- package/lib/tools/deploy.js +1 -1
- package/lib/tools/deploy.js.map +1 -1
- package/lib/tools/index.d.ts +1 -1
- package/lib/tools/utils.js +16 -16
- package/lib/tools/utils.js.map +1 -1
- package/lib/tools/validationError.js.map +1 -1
- package/lib/types.d.ts +9 -205
- package/lib/types.js.map +1 -1
- package/lib/utils.d.ts +7 -69
- package/lib/utils.js +18 -19
- package/lib/utils.js.map +1 -1
- package/package.json +17 -13
- package/.nyc_output/a8ac1630-6117-4676-b6bd-070b5b5cbf85.json +0 -1
- package/.nyc_output/processinfo/79ceccfe-9d84-4459-a2d7-6176c1ca9036.json +0 -1
- package/.nyc_output/processinfo/92a189da-03b1-474f-b182-d342071e8aef.json +0 -1
- package/.nyc_output/processinfo/a8ac1630-6117-4676-b6bd-070b5b5cbf85.json +0 -1
- package/lib/context/directory/handlers/migrations.d.ts +0 -5
- package/lib/context/directory/handlers/migrations.js +0 -45
- package/lib/context/directory/handlers/migrations.js.map +0 -1
- package/lib/context/yaml/handlers/migrations.d.ts +0 -5
- package/lib/context/yaml/handlers/migrations.js +0 -25
- package/lib/context/yaml/handlers/migrations.js.map +0 -1
- package/lib/tools/auth0/handlers/migrations.d.ts +0 -15
- package/lib/tools/auth0/handlers/migrations.js +0 -110
- package/lib/tools/auth0/handlers/migrations.js.map +0 -1
- /package/.nyc_output/{79ceccfe-9d84-4459-a2d7-6176c1ca9036.json → 20b0af71-c58f-402b-ac9c-4c5b7a505a79.json} +0 -0
- /package/.nyc_output/{92a189da-03b1-474f-b182-d342071e8aef.json → 9b0c8b3d-76ba-4549-b82e-b44e387f2419.json} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":null,"pid":166,"argv":["/usr/local/bin/node","/usr/local/bin/npm","run","test"],"execArgv":[],"cwd":"/home/circleci/repo","time":1729070405245,"ppid":155,"coverageFilename":"/home/circleci/repo/.nyc_output/79ceccfe-9d84-4459-a2d7-6176c1ca9036.json","externalId":"","uuid":"79ceccfe-9d84-4459-a2d7-6176c1ca9036","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":"79ceccfe-9d84-4459-a2d7-6176c1ca9036","pid":178,"argv":["/usr/local/bin/node","/home/circleci/repo/node_modules/.bin/ts-mocha","-p","tsconfig.json","--recursive","test/**/*.test*","--exclude","test/e2e/*","--timeout","7500"],"execArgv":[],"cwd":"/home/circleci/repo","time":1729070405435,"ppid":177,"coverageFilename":"/home/circleci/repo/.nyc_output/92a189da-03b1-474f-b182-d342071e8aef.json","externalId":"","uuid":"92a189da-03b1-474f-b182-d342071e8aef","files":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"parent":"92a189da-03b1-474f-b182-d342071e8aef","pid":185,"argv":["/usr/local/bin/node","/home/circleci/repo/node_modules/mocha/bin/mocha.js","-r","/home/circleci/repo/node_modules/ts-mocha/src/index.js","--recursive","test/**/*.test*","--exclude","test/e2e/*","--timeout","7500"],"execArgv":[],"cwd":"/home/circleci/repo","time":1729070405543,"ppid":178,"coverageFilename":"/home/circleci/repo/.nyc_output/a8ac1630-6117-4676-b6bd-070b5b5cbf85.json","externalId":"","uuid":"a8ac1630-6117-4676-b6bd-070b5b5cbf85","files":["/home/circleci/repo/src/logger.ts","/home/circleci/repo/src/context/index.ts","/home/circleci/repo/src/context/yaml/index.ts","/home/circleci/repo/src/tools/index.ts","/home/circleci/repo/src/tools/constants.ts","/home/circleci/repo/src/tools/deploy.ts","/home/circleci/repo/src/tools/auth0/index.ts","/home/circleci/repo/src/tools/auth0/client.ts","/home/circleci/repo/src/tools/utils.ts","/home/circleci/repo/src/tools/auth0/schema.ts","/home/circleci/repo/src/tools/auth0/handlers/index.ts","/home/circleci/repo/src/tools/auth0/handlers/rules.ts","/home/circleci/repo/src/tools/validationError.ts","/home/circleci/repo/src/tools/auth0/handlers/default.ts","/home/circleci/repo/src/tools/calculateChanges.ts","/home/circleci/repo/src/tools/auth0/handlers/rulesConfigs.ts","/home/circleci/repo/src/tools/auth0/handlers/hooks.ts","/home/circleci/repo/src/tools/auth0/handlers/pages.ts","/home/circleci/repo/src/tools/auth0/handlers/resourceServers.ts","/home/circleci/repo/src/tools/auth0/handlers/databases.ts","/home/circleci/repo/src/tools/auth0/handlers/connections.ts","/home/circleci/repo/src/tools/auth0/handlers/scimHandler.ts","/home/circleci/repo/src/tools/auth0/handlers/clients.ts","/home/circleci/repo/src/tools/auth0/handlers/tenant.ts","/home/circleci/repo/src/tools/auth0/handlers/emailProvider.ts","/home/circleci/repo/src/tools/auth0/handlers/emailTemplates.ts","/home/circleci/repo/src/tools/auth0/handlers/clientGrants.ts","/home/circleci/repo/src/tools/auth0/handlers/guardianFactors.ts","/home/circleci/repo/src/tools/auth0/handlers/guardianFactorProviders.ts","/home/circleci/repo/src/tools/auth0/handlers/guardianFactorTemplates.ts","/home/circleci/repo/src/tools/auth0/handlers/guardianPolicies.ts","/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.ts","/home/circleci/repo/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.ts","/home/circleci/repo/src/tools/auth0/handlers/roles.ts","/home/circleci/repo/src/tools/auth0/handlers/branding.ts","/home/circleci/repo/src/tools/auth0/handlers/prompts.ts","/home/circleci/repo/src/types.ts","/home/circleci/repo/src/tools/auth0/handlers/migrations.ts","/home/circleci/repo/src/tools/auth0/handlers/actions.ts","/home/circleci/repo/src/tools/auth0/handlers/triggers.ts","/home/circleci/repo/src/tools/auth0/handlers/organizations.ts","/home/circleci/repo/src/tools/auth0/handlers/attackProtection.ts","/home/circleci/repo/src/tools/auth0/handlers/logStreams.ts","/home/circleci/repo/src/tools/auth0/handlers/customDomains.ts","/home/circleci/repo/src/tools/auth0/handlers/themes.ts","/home/circleci/repo/src/utils.ts","/home/circleci/repo/src/context/yaml/handlers/index.ts","/home/circleci/repo/src/context/yaml/handlers/pages.ts","/home/circleci/repo/src/context/yaml/handlers/rules.ts","/home/circleci/repo/src/context/yaml/handlers/hooks.ts","/home/circleci/repo/src/context/yaml/handlers/clients.ts","/home/circleci/repo/src/context/yaml/handlers/tenant.ts","/home/circleci/repo/src/sessionDurationsToMinutes.ts","/home/circleci/repo/src/context/yaml/handlers/emailProvider.ts","/home/circleci/repo/src/context/defaults.ts","/home/circleci/repo/src/context/yaml/handlers/connections.ts","/home/circleci/repo/src/context/yaml/handlers/databases.ts","/home/circleci/repo/src/context/yaml/handlers/emailTemplates.ts","/home/circleci/repo/src/context/yaml/handlers/clientGrants.ts","/home/circleci/repo/src/context/yaml/handlers/rulesConfigs.ts","/home/circleci/repo/src/context/yaml/handlers/resourceServers.ts","/home/circleci/repo/src/context/yaml/handlers/guardianFactors.ts","/home/circleci/repo/src/context/yaml/handlers/guardianFactorProviders.ts","/home/circleci/repo/src/context/yaml/handlers/guardianFactorTemplates.ts","/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.ts","/home/circleci/repo/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.ts","/home/circleci/repo/src/context/yaml/handlers/guardianPolicies.ts","/home/circleci/repo/src/context/yaml/handlers/roles.ts","/home/circleci/repo/src/context/yaml/handlers/organizations.ts","/home/circleci/repo/src/context/yaml/handlers/migrations.ts","/home/circleci/repo/src/context/yaml/handlers/actions.ts","/home/circleci/repo/src/context/yaml/handlers/triggers.ts","/home/circleci/repo/src/context/yaml/handlers/attackProtection.ts","/home/circleci/repo/src/context/yaml/handlers/branding.ts","/home/circleci/repo/src/context/yaml/handlers/logStreams.ts","/home/circleci/repo/src/context/yaml/handlers/prompts.ts","/home/circleci/repo/src/context/yaml/handlers/customDomains.ts","/home/circleci/repo/src/context/yaml/handlers/themes.ts","/home/circleci/repo/src/readonly.ts","/home/circleci/repo/src/keywordPreservation.ts","/home/circleci/repo/src/context/directory/index.ts","/home/circleci/repo/src/context/directory/handlers/index.ts","/home/circleci/repo/src/context/directory/handlers/pages.ts","/home/circleci/repo/src/context/directory/handlers/rules.ts","/home/circleci/repo/src/context/directory/handlers/hooks.ts","/home/circleci/repo/src/context/directory/handlers/clients.ts","/home/circleci/repo/src/context/directory/handlers/tenant.ts","/home/circleci/repo/src/context/directory/handlers/emailProvider.ts","/home/circleci/repo/src/context/directory/handlers/connections.ts","/home/circleci/repo/src/context/directory/handlers/databases.ts","/home/circleci/repo/src/context/directory/handlers/emailTemplates.ts","/home/circleci/repo/src/context/directory/handlers/clientGrants.ts","/home/circleci/repo/src/context/directory/handlers/rulesConfigs.ts","/home/circleci/repo/src/context/directory/handlers/resourceServers.ts","/home/circleci/repo/src/context/directory/handlers/guardianFactors.ts","/home/circleci/repo/src/context/directory/handlers/guardianFactorProviders.ts","/home/circleci/repo/src/context/directory/handlers/guardianFactorTemplates.ts","/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorMessageTypes.ts","/home/circleci/repo/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.ts","/home/circleci/repo/src/context/directory/handlers/guardianPolicies.ts","/home/circleci/repo/src/context/directory/handlers/roles.ts","/home/circleci/repo/src/context/directory/handlers/migrations.ts","/home/circleci/repo/src/context/directory/handlers/actions.ts","/home/circleci/repo/src/context/directory/handlers/organizations.ts","/home/circleci/repo/src/context/directory/handlers/triggers.ts","/home/circleci/repo/src/context/directory/handlers/attackProtection.ts","/home/circleci/repo/src/context/directory/handlers/branding.ts","/home/circleci/repo/src/context/directory/handlers/logStreams.ts","/home/circleci/repo/src/context/directory/handlers/prompts.ts","/home/circleci/repo/src/context/directory/handlers/customDomains.ts","/home/circleci/repo/src/context/directory/handlers/themes.ts","/home/circleci/repo/src/index.ts","/home/circleci/repo/src/args.ts","/home/circleci/repo/src/commands/import.ts","/home/circleci/repo/src/configFactory.ts","/home/circleci/repo/src/commands/export.ts"]}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
const path_1 = __importDefault(require("path"));
|
|
16
|
-
const utils_1 = require("../../../utils");
|
|
17
|
-
function parse(context) {
|
|
18
|
-
const baseFolder = path_1.default.join(context.filePath);
|
|
19
|
-
if (!(0, utils_1.existsMustBeDir)(baseFolder))
|
|
20
|
-
return { migrations: null }; // Skip
|
|
21
|
-
const migrationsFile = path_1.default.join(baseFolder, 'migrations.json');
|
|
22
|
-
if (!(0, utils_1.isFile)(migrationsFile))
|
|
23
|
-
return { migrations: null };
|
|
24
|
-
/* eslint-disable camelcase */
|
|
25
|
-
const migrations = (0, utils_1.loadJSON)(migrationsFile, {
|
|
26
|
-
mappings: context.mappings,
|
|
27
|
-
disableKeywordReplacement: context.disableKeywordReplacement,
|
|
28
|
-
});
|
|
29
|
-
return { migrations };
|
|
30
|
-
}
|
|
31
|
-
function dump(context) {
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
const { migrations } = context.assets;
|
|
34
|
-
if (!migrations || Object.keys(migrations).length === 0)
|
|
35
|
-
return; // Skip, nothing to dump
|
|
36
|
-
const migrationsFile = path_1.default.join(context.filePath, 'migrations.json');
|
|
37
|
-
(0, utils_1.dumpJSON)(migrationsFile, migrations);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
const migrationsHandler = {
|
|
41
|
-
parse,
|
|
42
|
-
dump,
|
|
43
|
-
};
|
|
44
|
-
exports.default = migrationsHandler;
|
|
45
|
-
//# sourceMappingURL=migrations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3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@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
function parseAndDump(context) {
|
|
13
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
14
|
-
const { migrations } = context.assets;
|
|
15
|
-
if (!migrations)
|
|
16
|
-
return { migrations: null };
|
|
17
|
-
return { migrations };
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
const migrationsHandler = {
|
|
21
|
-
parse: parseAndDump,
|
|
22
|
-
dump: parseAndDump,
|
|
23
|
-
};
|
|
24
|
-
exports.default = migrationsHandler;
|
|
25
|
-
//# sourceMappingURL=migrations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/migrations.ts"],"names":[],"mappings":";;;;;;;;;;;AAMA,SAAe,YAAY,CAAC,OAAoB;;QAC9C,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAEtC,IAAI,CAAC,UAAU;YAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;QAE7C,OAAO,EAAE,UAAU,EAAE,CAAC;IACxB,CAAC;CAAA;AAED,MAAM,iBAAiB,GAAkC;IACvD,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,YAAY;CACnB,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import DefaultHandler from './default';
|
|
2
|
-
import { Asset, Assets } from '../../../types';
|
|
3
|
-
export declare const schema: {
|
|
4
|
-
type: string;
|
|
5
|
-
additionalProperties: {
|
|
6
|
-
type: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default class MigrationsHandler extends DefaultHandler {
|
|
10
|
-
constructor(options: DefaultHandler);
|
|
11
|
-
getType(): Promise<Asset[] | {}>;
|
|
12
|
-
processChanges(assets: Assets): Promise<void>;
|
|
13
|
-
logUnavailableMigrations(ignoreUnavailableMigrations: boolean, ignoredMigrations: string[]): void;
|
|
14
|
-
removeUnavailableMigrations(migrations: Asset[]): Promise<Asset[]>;
|
|
15
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
22
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
-
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
-
__setModuleDefault(result, mod);
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
32
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
33
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
34
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
35
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
36
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
37
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42
|
-
};
|
|
43
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44
|
-
exports.schema = void 0;
|
|
45
|
-
const default_1 = __importStar(require("./default"));
|
|
46
|
-
const logger_1 = __importDefault(require("../../../logger"));
|
|
47
|
-
exports.schema = {
|
|
48
|
-
type: 'object',
|
|
49
|
-
additionalProperties: { type: 'boolean' },
|
|
50
|
-
};
|
|
51
|
-
class MigrationsHandler extends default_1.default {
|
|
52
|
-
constructor(options) {
|
|
53
|
-
super(Object.assign(Object.assign({}, options), { type: 'migrations' }));
|
|
54
|
-
}
|
|
55
|
-
//TODO: standardize empty object literal with more intentional empty indicator
|
|
56
|
-
getType() {
|
|
57
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
try {
|
|
59
|
-
const migrations = yield this.client.migrations.getMigrations();
|
|
60
|
-
return migrations.flags;
|
|
61
|
-
}
|
|
62
|
-
catch (err) {
|
|
63
|
-
if (err.statusCode === 404)
|
|
64
|
-
return {};
|
|
65
|
-
throw err;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
// Run at the end since switching a flag will depend on other applying other changes
|
|
70
|
-
processChanges(assets) {
|
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
const { migrations } = assets;
|
|
73
|
-
if (migrations && Object.keys(migrations).length > 0) {
|
|
74
|
-
const flags = yield this.removeUnavailableMigrations(migrations);
|
|
75
|
-
if (Object.keys(flags).length > 0) {
|
|
76
|
-
yield this.client.migrations.updateMigrations({ flags });
|
|
77
|
-
this.updated += 1;
|
|
78
|
-
this.didUpdate(flags);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
logUnavailableMigrations(ignoreUnavailableMigrations, ignoredMigrations) {
|
|
84
|
-
if (ignoreUnavailableMigrations) {
|
|
85
|
-
logger_1.default.info(`The following migrations are not available '${ignoredMigrations.join(',')}'. The migrations will be ignored because you have AUTH0_IGNORE_UNAVAILABLE_MIGRATIONS=true in your configuration.`);
|
|
86
|
-
}
|
|
87
|
-
else {
|
|
88
|
-
logger_1.default.warn(`The following disabled migrations are not available '${ignoredMigrations.join(',')}'. The migrations will be ignored, remove the migrations to avoid future warnings.`);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
removeUnavailableMigrations(migrations) {
|
|
92
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
const flags = Object.assign({}, migrations);
|
|
94
|
-
const ignoreUnavailableMigrations = !!this.config('AUTH0_IGNORE_UNAVAILABLE_MIGRATIONS');
|
|
95
|
-
const existingMigrations = yield this.getType();
|
|
96
|
-
const unavailableMigrations = Object.keys(flags).filter((flag) => !(flag in existingMigrations));
|
|
97
|
-
const ignoredMigrations = unavailableMigrations.filter((flag) => ignoreUnavailableMigrations || flags[flag] === false);
|
|
98
|
-
if (ignoredMigrations.length > 0) {
|
|
99
|
-
this.logUnavailableMigrations(ignoreUnavailableMigrations, ignoredMigrations);
|
|
100
|
-
ignoredMigrations.forEach((flag) => delete flags[flag]);
|
|
101
|
-
}
|
|
102
|
-
return flags;
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, default_1.order)('150')
|
|
108
|
-
], MigrationsHandler.prototype, "processChanges", null);
|
|
109
|
-
exports.default = MigrationsHandler;
|
|
110
|
-
//# sourceMappingURL=migrations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.js","sourceRoot":"","sources":["../../../../src/tools/auth0/handlers/migrations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qDAAkD;AAClD,6DAAkC;AAGrB,QAAA,MAAM,GAAG;IACpB,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;CAC1C,CAAC;AAEF,MAAqB,iBAAkB,SAAQ,iBAAc;IAC3D,YAAY,OAAuB;QACjC,KAAK,iCACA,OAAO,KACV,IAAI,EAAE,YAAY,IAClB,CAAC;IACL,CAAC;IAED,8EAA8E;IACxE,OAAO;;YACX,IAAI;gBACF,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;gBAChE,OAAO,U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