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.
Files changed (201) hide show
  1. package/.nyc_output/eddfc559-04e8-4f99-adef-dd9503950c80.json +1 -0
  2. package/.nyc_output/processinfo/20b0af71-c58f-402b-ac9c-4c5b7a505a79.json +1 -0
  3. package/.nyc_output/processinfo/9b0c8b3d-76ba-4549-b82e-b44e387f2419.json +1 -0
  4. package/.nyc_output/processinfo/eddfc559-04e8-4f99-adef-dd9503950c80.json +1 -0
  5. package/.nyc_output/processinfo/index.json +1 -1
  6. package/CHANGELOG.md +28 -1
  7. package/CONTRIBUTING.md +1 -0
  8. package/README.md +1 -1
  9. package/coverage/lcov-report/index.html +69 -69
  10. package/coverage/lcov.info +3804 -3599
  11. package/docs/configuring-the-deploy-cli.md +1 -1
  12. package/docs/excluding-from-management.md +0 -1
  13. package/docs/resource-specific-documentation.md +11 -8
  14. package/docs/v8_MIGRATION_GUIDE.md +46 -0
  15. package/examples/directory/README.md +0 -7
  16. package/examples/directory/config.json.example +3 -3
  17. package/examples/yaml/config.json.example +4 -4
  18. package/examples/yaml/tenant.yaml +0 -21
  19. package/lib/args.js +1 -2
  20. package/lib/args.js.map +1 -1
  21. package/lib/commands/export.js +1 -1
  22. package/lib/commands/export.js.map +1 -1
  23. package/lib/commands/import.js +1 -1
  24. package/lib/commands/import.js.map +1 -1
  25. package/lib/configFactory.js.map +1 -1
  26. package/lib/context/defaults.js +1 -2
  27. package/lib/context/defaults.js.map +1 -1
  28. package/lib/context/directory/handlers/actions.js.map +1 -1
  29. package/lib/context/directory/handlers/attackProtection.js.map +1 -1
  30. package/lib/context/directory/handlers/branding.js.map +1 -1
  31. package/lib/context/directory/handlers/clientGrants.js +3 -2
  32. package/lib/context/directory/handlers/clientGrants.js.map +1 -1
  33. package/lib/context/directory/handlers/clients.js.map +1 -1
  34. package/lib/context/directory/handlers/connections.js.map +1 -1
  35. package/lib/context/directory/handlers/databases.js.map +1 -1
  36. package/lib/context/directory/handlers/emailProvider.js.map +1 -1
  37. package/lib/context/directory/handlers/emailTemplates.js.map +1 -1
  38. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js.map +1 -1
  39. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -1
  40. package/lib/context/directory/handlers/guardianPolicies.js.map +1 -1
  41. package/lib/context/directory/handlers/hooks.js.map +1 -1
  42. package/lib/context/directory/handlers/index.js +3 -5
  43. package/lib/context/directory/handlers/index.js.map +1 -1
  44. package/lib/context/directory/handlers/organizations.js.map +1 -1
  45. package/lib/context/directory/handlers/pages.js.map +1 -1
  46. package/lib/context/directory/handlers/prompts.js.map +1 -1
  47. package/lib/context/directory/handlers/resourceServers.d.ts +1 -1
  48. package/lib/context/directory/handlers/resourceServers.js.map +1 -1
  49. package/lib/context/directory/handlers/roles.js.map +1 -1
  50. package/lib/context/directory/handlers/rules.js.map +1 -1
  51. package/lib/context/directory/handlers/tenant.js.map +1 -1
  52. package/lib/context/directory/handlers/themes.js.map +1 -1
  53. package/lib/context/directory/index.d.ts +2 -1
  54. package/lib/context/directory/index.js +3 -3
  55. package/lib/context/directory/index.js.map +1 -1
  56. package/lib/context/index.d.ts +1 -1
  57. package/lib/context/index.js +8 -3
  58. package/lib/context/index.js.map +1 -1
  59. package/lib/context/yaml/handlers/actions.js.map +1 -1
  60. package/lib/context/yaml/handlers/branding.js.map +1 -1
  61. package/lib/context/yaml/handlers/clientGrants.js +4 -2
  62. package/lib/context/yaml/handlers/clientGrants.js.map +1 -1
  63. package/lib/context/yaml/handlers/clients.js.map +1 -1
  64. package/lib/context/yaml/handlers/connections.js.map +1 -1
  65. package/lib/context/yaml/handlers/emailProvider.js.map +1 -1
  66. package/lib/context/yaml/handlers/emailTemplates.js.map +1 -1
  67. package/lib/context/yaml/handlers/guardianPolicies.d.ts +2 -2
  68. package/lib/context/yaml/handlers/hooks.js.map +1 -1
  69. package/lib/context/yaml/handlers/index.js +4 -6
  70. package/lib/context/yaml/handlers/index.js.map +1 -1
  71. package/lib/context/yaml/handlers/organizations.js.map +1 -1
  72. package/lib/context/yaml/handlers/pages.js.map +1 -1
  73. package/lib/context/yaml/handlers/resourceServers.d.ts +1 -1
  74. package/lib/context/yaml/handlers/resourceServers.js.map +1 -1
  75. package/lib/context/yaml/handlers/roles.js.map +1 -1
  76. package/lib/context/yaml/handlers/rules.js.map +1 -1
  77. package/lib/context/yaml/handlers/themes.d.ts +1 -1
  78. package/lib/context/yaml/index.d.ts +2 -1
  79. package/lib/context/yaml/index.js +4 -4
  80. package/lib/context/yaml/index.js.map +1 -1
  81. package/lib/index.d.ts +1 -1
  82. package/lib/index.js.map +1 -1
  83. package/lib/keywordPreservation.d.ts +1 -1
  84. package/lib/keywordPreservation.js.map +1 -1
  85. package/lib/readonly.js +1 -1
  86. package/lib/readonly.js.map +1 -1
  87. package/lib/sessionDurationsToMinutes.d.ts +2 -2
  88. package/lib/tools/auth0/client.d.ts +4 -2
  89. package/lib/tools/auth0/client.js +14 -4
  90. package/lib/tools/auth0/client.js.map +1 -1
  91. package/lib/tools/auth0/handlers/actions.d.ts +8 -3
  92. package/lib/tools/auth0/handlers/actions.js +19 -17
  93. package/lib/tools/auth0/handlers/actions.js.map +1 -1
  94. package/lib/tools/auth0/handlers/attackProtection.js +8 -8
  95. package/lib/tools/auth0/handlers/attackProtection.js.map +1 -1
  96. package/lib/tools/auth0/handlers/branding.js +25 -12
  97. package/lib/tools/auth0/handlers/branding.js.map +1 -1
  98. package/lib/tools/auth0/handlers/clientGrants.js +11 -3
  99. package/lib/tools/auth0/handlers/clientGrants.js.map +1 -1
  100. package/lib/tools/auth0/handlers/clients.d.ts +3 -3
  101. package/lib/tools/auth0/handlers/clients.js +3 -1
  102. package/lib/tools/auth0/handlers/clients.js.map +1 -1
  103. package/lib/tools/auth0/handlers/connections.d.ts +8 -1
  104. package/lib/tools/auth0/handlers/connections.js +18 -8
  105. package/lib/tools/auth0/handlers/connections.js.map +1 -1
  106. package/lib/tools/auth0/handlers/customDomains.js +2 -2
  107. package/lib/tools/auth0/handlers/customDomains.js.map +1 -1
  108. package/lib/tools/auth0/handlers/databases.d.ts +1 -1
  109. package/lib/tools/auth0/handlers/databases.js +14 -7
  110. package/lib/tools/auth0/handlers/databases.js.map +1 -1
  111. package/lib/tools/auth0/handlers/default.js +14 -4
  112. package/lib/tools/auth0/handlers/default.js.map +1 -1
  113. package/lib/tools/auth0/handlers/emailProvider.js +20 -11
  114. package/lib/tools/auth0/handlers/emailProvider.js.map +1 -1
  115. package/lib/tools/auth0/handlers/emailTemplates.js +23 -10
  116. package/lib/tools/auth0/handlers/emailTemplates.js.map +1 -1
  117. package/lib/tools/auth0/handlers/guardianFactorProviders.js +40 -6
  118. package/lib/tools/auth0/handlers/guardianFactorProviders.js.map +1 -1
  119. package/lib/tools/auth0/handlers/guardianFactorTemplates.js +29 -5
  120. package/lib/tools/auth0/handlers/guardianFactorTemplates.js.map +1 -1
  121. package/lib/tools/auth0/handlers/guardianFactors.js +2 -1
  122. package/lib/tools/auth0/handlers/guardianFactors.js.map +1 -1
  123. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.d.ts +1 -1
  124. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +3 -3
  125. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js.map +1 -1
  126. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.d.ts +2 -2
  127. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +3 -3
  128. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -1
  129. package/lib/tools/auth0/handlers/guardianPolicies.d.ts +2 -2
  130. package/lib/tools/auth0/handlers/guardianPolicies.js +2 -3
  131. package/lib/tools/auth0/handlers/guardianPolicies.js.map +1 -1
  132. package/lib/tools/auth0/handlers/hooks.js +8 -4
  133. package/lib/tools/auth0/handlers/hooks.js.map +1 -1
  134. package/lib/tools/auth0/handlers/index.d.ts +6 -147
  135. package/lib/tools/auth0/handlers/index.js +0 -3
  136. package/lib/tools/auth0/handlers/index.js.map +1 -1
  137. package/lib/tools/auth0/handlers/logStreams.js +1 -1
  138. package/lib/tools/auth0/handlers/logStreams.js.map +1 -1
  139. package/lib/tools/auth0/handlers/organizations.d.ts +24 -0
  140. package/lib/tools/auth0/handlers/organizations.js +134 -15
  141. package/lib/tools/auth0/handlers/organizations.js.map +1 -1
  142. package/lib/tools/auth0/handlers/pages.js +7 -6
  143. package/lib/tools/auth0/handlers/pages.js.map +1 -1
  144. package/lib/tools/auth0/handlers/prompts.d.ts +2 -3
  145. package/lib/tools/auth0/handlers/prompts.js +43 -70
  146. package/lib/tools/auth0/handlers/prompts.js.map +1 -1
  147. package/lib/tools/auth0/handlers/resourceServers.d.ts +1 -9
  148. package/lib/tools/auth0/handlers/resourceServers.js +2 -1
  149. package/lib/tools/auth0/handlers/resourceServers.js.map +1 -1
  150. package/lib/tools/auth0/handlers/roles.js +33 -12
  151. package/lib/tools/auth0/handlers/roles.js.map +1 -1
  152. package/lib/tools/auth0/handlers/rules.js +8 -3
  153. package/lib/tools/auth0/handlers/rules.js.map +1 -1
  154. package/lib/tools/auth0/handlers/rulesConfigs.js +2 -1
  155. package/lib/tools/auth0/handlers/rulesConfigs.js.map +1 -1
  156. package/lib/tools/auth0/handlers/scimHandler.d.ts +10 -11
  157. package/lib/tools/auth0/handlers/scimHandler.js +57 -46
  158. package/lib/tools/auth0/handlers/scimHandler.js.map +1 -1
  159. package/lib/tools/auth0/handlers/tenant.d.ts +5 -9
  160. package/lib/tools/auth0/handlers/tenant.js +55 -54
  161. package/lib/tools/auth0/handlers/tenant.js.map +1 -1
  162. package/lib/tools/auth0/handlers/themes.d.ts +2 -85
  163. package/lib/tools/auth0/handlers/themes.js +4 -4
  164. package/lib/tools/auth0/handlers/themes.js.map +1 -1
  165. package/lib/tools/auth0/handlers/triggers.js +8 -7
  166. package/lib/tools/auth0/handlers/triggers.js.map +1 -1
  167. package/lib/tools/auth0/index.d.ts +2 -2
  168. package/lib/tools/auth0/index.js.map +1 -1
  169. package/lib/tools/auth0/schema.js.map +1 -1
  170. package/lib/tools/calculateChanges.js +2 -3
  171. package/lib/tools/calculateChanges.js.map +1 -1
  172. package/lib/tools/constants.d.ts +2 -1
  173. package/lib/tools/constants.js +1 -1
  174. package/lib/tools/constants.js.map +1 -1
  175. package/lib/tools/deploy.js +1 -1
  176. package/lib/tools/deploy.js.map +1 -1
  177. package/lib/tools/index.d.ts +1 -1
  178. package/lib/tools/utils.js +16 -16
  179. package/lib/tools/utils.js.map +1 -1
  180. package/lib/tools/validationError.js.map +1 -1
  181. package/lib/types.d.ts +9 -205
  182. package/lib/types.js.map +1 -1
  183. package/lib/utils.d.ts +7 -69
  184. package/lib/utils.js +18 -19
  185. package/lib/utils.js.map +1 -1
  186. package/package.json +17 -13
  187. package/.nyc_output/a8ac1630-6117-4676-b6bd-070b5b5cbf85.json +0 -1
  188. package/.nyc_output/processinfo/79ceccfe-9d84-4459-a2d7-6176c1ca9036.json +0 -1
  189. package/.nyc_output/processinfo/92a189da-03b1-474f-b182-d342071e8aef.json +0 -1
  190. package/.nyc_output/processinfo/a8ac1630-6117-4676-b6bd-070b5b5cbf85.json +0 -1
  191. package/lib/context/directory/handlers/migrations.d.ts +0 -5
  192. package/lib/context/directory/handlers/migrations.js +0 -45
  193. package/lib/context/directory/handlers/migrations.js.map +0 -1
  194. package/lib/context/yaml/handlers/migrations.d.ts +0 -5
  195. package/lib/context/yaml/handlers/migrations.js +0 -25
  196. package/lib/context/yaml/handlers/migrations.js.map +0 -1
  197. package/lib/tools/auth0/handlers/migrations.d.ts +0 -15
  198. package/lib/tools/auth0/handlers/migrations.js +0 -110
  199. package/lib/tools/auth0/handlers/migrations.js.map +0 -1
  200. /package/.nyc_output/{79ceccfe-9d84-4459-a2d7-6176c1ca9036.json → 20b0af71-c58f-402b-ac9c-4c5b7a505a79.json} +0 -0
  201. /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,5 +0,0 @@
1
- import { DirectoryHandler } from '.';
2
- import { Asset, ParsedAsset } from '../../../types';
3
- type ParsedMigrations = ParsedAsset<'migrations', Asset[]>;
4
- declare const migrationsHandler: DirectoryHandler<ParsedMigrations>;
5
- export default migrationsHandler;
@@ -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,"file":"migrations.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/migrations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,0CAA6E;AAO7E,SAAS,KAAK,CAAC,OAAyB;IACtC,MAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC/C,IAAI,CAAC,IAAA,uBAAe,EAAC,UAAU,CAAC;QAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO;IAEtE,MAAM,cAAc,GAAG,cAAI,CAAC,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;IAEhE,IAAI,CAAC,IAAA,cAAM,EAAC,cAAc,CAAC;QAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;IAEzD,8BAA8B;IAC9B,MAAM,UAAU,GAAG,IAAA,gBAAQ,EAAC,cAAc,EAAE;QAC1C,QAAQ,EAAE,OAAO,CAAC,QAAQ;QAC1B,yBAAyB,EAAE,OAAO,CAAC,yBAAyB;KAC7D,CAAC,CAAC;IAEH,OAAO,EAAE,UAAU,EAAE,CAAC;AACxB,CAAC;AAED,SAAe,IAAI,CAAC,OAAyB;;QAC3C,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAEtC,IAAI,CAAC,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,KAAK,CAAC;YAAE,OAAO,CAAC,wBAAwB;QAEzF,MAAM,cAAc,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;QACtE,IAAA,gBAAQ,EAAC,cAAc,EAAE,UAAU,CAAC,CAAC;IACvC,CAAC;CAAA;AAED,MAAM,iBAAiB,GAAuC;IAC5D,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
@@ -1,5 +0,0 @@
1
- import { YAMLHandler } from '.';
2
- import { Asset, ParsedAsset } from '../../../types';
3
- type ParsedMigrations = ParsedAsset<'migrations', Asset[]>;
4
- declare const migrationsHandler: YAMLHandler<ParsedMigrations>;
5
- export default migrationsHandler;
@@ -1,25 +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
- 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,UAAU,CAAC,KAAK,CAAC;aACzB;YAAC,OAAO,GAAG,EAAE;gBACZ,IAAI,GAAG,CAAC,UAAU,KAAK,GAAG;oBAAE,OAAO,EAAE,CAAC;gBACtC,MAAM,GAAG,CAAC;aACX;QACH,CAAC;KAAA;IAED,oFAAoF;IAE9E,cAAc,CAAC,MAAc;;YACjC,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;YAE9B,IAAI,UAAU,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;gBACpD,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,UAAU,CAAC,CAAC;gBAEjE,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;oBACjC,MAAM,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;oBACzD,IAAI,CAAC,OAAO,IAAI,CAAC,CAAC;oBAClB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;iBACvB;aACF;QACH,CAAC;KAAA;IAED,wBAAwB,CAAC,2BAAoC,EAAE,iBAA2B;QACxF,IAAI,2BAA2B,EAAE;YAC/B,gBAAG,CAAC,IAAI,CACN,+CAA+C,iBAAiB,CAAC,IAAI,CACnE,GAAG,CACJ,oHAAoH,CACtH,CAAC;SACH;aAAM;YACL,gBAAG,CAAC,IAAI,CACN,wDAAwD,iBAAiB,CAAC,IAAI,CAC5E,GAAG,CACJ,oFAAoF,CACtF,CAAC;SACH;IACH,CAAC;IAEK,2BAA2B,CAAC,UAAmB;;YACnD,MAAM,KAAK,qBAAQ,UAAU,CAAE,CAAC;YAChC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC;YACzF,MAAM,kBAAkB,GAAG,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;YAChD,MAAM,qBAAqB,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CACrD,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,IAAI,kBAAkB,CAAC,CACxC,CAAC;YACF,MAAM,iBAAiB,GAAG,qBAAqB,CAAC,MAAM,CACpD,CAAC,IAAI,EAAE,EAAE,CAAC,2BAA2B,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,KAAK,CAC/D,CAAC;YAEF,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;gBAChC,IAAI,CAAC,wBAAwB,CAAC,2BAA2B,EAAE,iBAAiB,CAAC,CAAC;gBAC9E,iBAAiB,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;aACzD;YACD,OAAO,KAAK,CAAC;QACf,CAAC;KAAA;CACF;AA/CO;IADL,IAAA,eAAK,EAAC,KAAK,CAAC;uDAaZ;AAjCH,oCAoEC"}