auth0-deploy-cli 7.14.0 → 7.14.3

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 (156) hide show
  1. package/.circleci/config.yml +40 -11
  2. package/.eslintignore +1 -0
  3. package/.nyc_output/b55d7a30-feb2-4763-a79f-030cbbcaf34c.json +1 -0
  4. package/.nyc_output/d585e288-6dff-4d1c-a029-4e45efb2ad92.json +1 -0
  5. package/.nyc_output/d6d3177f-b440-4a24-ac55-7aabf686a0a7.json +1 -0
  6. package/.nyc_output/processinfo/b55d7a30-feb2-4763-a79f-030cbbcaf34c.json +1 -0
  7. package/.nyc_output/processinfo/d585e288-6dff-4d1c-a029-4e45efb2ad92.json +1 -0
  8. package/.nyc_output/processinfo/d6d3177f-b440-4a24-ac55-7aabf686a0a7.json +1 -0
  9. package/.nyc_output/processinfo/index.json +1 -0
  10. package/.prettierignore +2 -1
  11. package/CHANGELOG.md +30 -1
  12. package/README.md +1 -0
  13. package/coverage/lcov-report/base.css +224 -0
  14. package/coverage/lcov-report/block-navigation.js +87 -0
  15. package/coverage/lcov-report/favicon.png +0 -0
  16. package/coverage/lcov-report/index.html +251 -0
  17. package/coverage/lcov-report/prettify.css +1 -0
  18. package/coverage/lcov-report/prettify.js +2 -0
  19. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  20. package/coverage/lcov-report/sorter.js +196 -0
  21. package/coverage/lcov-report/src/args.ts.html +505 -0
  22. package/coverage/lcov-report/src/commands/export.ts.html +274 -0
  23. package/coverage/lcov-report/src/commands/import.ts.html +250 -0
  24. package/coverage/lcov-report/src/commands/index.html +131 -0
  25. package/coverage/lcov-report/src/configFactory.ts.html +175 -0
  26. package/coverage/lcov-report/src/context/defaults.ts.html +196 -0
  27. package/coverage/lcov-report/src/context/directory/handlers/actions.ts.html +355 -0
  28. package/coverage/lcov-report/src/context/directory/handlers/attackProtection.ts.html +307 -0
  29. package/coverage/lcov-report/src/context/directory/handlers/branding.ts.html +448 -0
  30. package/coverage/lcov-report/src/context/directory/handlers/clientGrants.ts.html +262 -0
  31. package/coverage/lcov-report/src/context/directory/handlers/clients.ts.html +319 -0
  32. package/coverage/lcov-report/src/context/directory/handlers/connections.ts.html +370 -0
  33. package/coverage/lcov-report/src/context/directory/handlers/customDomains.ts.html +223 -0
  34. package/coverage/lcov-report/src/context/directory/handlers/databases.ts.html +544 -0
  35. package/coverage/lcov-report/src/context/directory/handlers/emailProvider.ts.html +241 -0
  36. package/coverage/lcov-report/src/context/directory/handlers/emailTemplates.ts.html +316 -0
  37. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorProviders.ts.html +256 -0
  38. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorTemplates.ts.html +247 -0
  39. package/coverage/lcov-report/src/context/directory/handlers/guardianFactors.ts.html +247 -0
  40. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorMessageTypes.ts.html +214 -0
  41. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.ts.html +226 -0
  42. package/coverage/lcov-report/src/context/directory/handlers/guardianPolicies.ts.html +214 -0
  43. package/coverage/lcov-report/src/context/directory/handlers/hooks.ts.html +274 -0
  44. package/coverage/lcov-report/src/context/directory/handlers/index.html +551 -0
  45. package/coverage/lcov-report/src/context/directory/handlers/index.ts.html +304 -0
  46. package/coverage/lcov-report/src/context/directory/handlers/logStreams.ts.html +220 -0
  47. package/coverage/lcov-report/src/context/directory/handlers/migrations.ts.html +196 -0
  48. package/coverage/lcov-report/src/context/directory/handlers/organizations.ts.html +289 -0
  49. package/coverage/lcov-report/src/context/directory/handlers/pages.ts.html +358 -0
  50. package/coverage/lcov-report/src/context/directory/handlers/prompts.ts.html +313 -0
  51. package/coverage/lcov-report/src/context/directory/handlers/resourceServers.ts.html +229 -0
  52. package/coverage/lcov-report/src/context/directory/handlers/roles.ts.html +253 -0
  53. package/coverage/lcov-report/src/context/directory/handlers/rules.ts.html +262 -0
  54. package/coverage/lcov-report/src/context/directory/handlers/rulesConfigs.ts.html +193 -0
  55. package/coverage/lcov-report/src/context/directory/handlers/tenant.ts.html +289 -0
  56. package/coverage/lcov-report/src/context/directory/handlers/themes.ts.html +232 -0
  57. package/coverage/lcov-report/src/context/directory/handlers/triggers.ts.html +214 -0
  58. package/coverage/lcov-report/src/context/directory/index.html +116 -0
  59. package/coverage/lcov-report/src/context/directory/index.ts.html +400 -0
  60. package/coverage/lcov-report/src/context/index.html +131 -0
  61. package/coverage/lcov-report/src/context/index.ts.html +475 -0
  62. package/coverage/lcov-report/src/context/yaml/handlers/actions.ts.html +349 -0
  63. package/coverage/lcov-report/src/context/yaml/handlers/attackProtection.ts.html +193 -0
  64. package/coverage/lcov-report/src/context/yaml/handlers/branding.ts.html +391 -0
  65. package/coverage/lcov-report/src/context/yaml/handlers/clientGrants.ts.html +199 -0
  66. package/coverage/lcov-report/src/context/yaml/handlers/clients.ts.html +301 -0
  67. package/coverage/lcov-report/src/context/yaml/handlers/connections.ts.html +394 -0
  68. package/coverage/lcov-report/src/context/yaml/handlers/customDomains.ts.html +151 -0
  69. package/coverage/lcov-report/src/context/yaml/handlers/databases.ts.html +346 -0
  70. package/coverage/lcov-report/src/context/yaml/handlers/emailProvider.ts.html +208 -0
  71. package/coverage/lcov-report/src/context/yaml/handlers/emailTemplates.ts.html +241 -0
  72. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorProviders.ts.html +151 -0
  73. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorTemplates.ts.html +151 -0
  74. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactors.ts.html +151 -0
  75. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.ts.html +151 -0
  76. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.ts.html +169 -0
  77. package/coverage/lcov-report/src/context/yaml/handlers/guardianPolicies.ts.html +151 -0
  78. package/coverage/lcov-report/src/context/yaml/handlers/hooks.ts.html +280 -0
  79. package/coverage/lcov-report/src/context/yaml/handlers/index.html +551 -0
  80. package/coverage/lcov-report/src/context/yaml/handlers/index.ts.html +298 -0
  81. package/coverage/lcov-report/src/context/yaml/handlers/logStreams.ts.html +151 -0
  82. package/coverage/lcov-report/src/context/yaml/handlers/migrations.ts.html +145 -0
  83. package/coverage/lcov-report/src/context/yaml/handlers/organizations.ts.html +235 -0
  84. package/coverage/lcov-report/src/context/yaml/handlers/pages.ts.html +268 -0
  85. package/coverage/lcov-report/src/context/yaml/handlers/prompts.ts.html +154 -0
  86. package/coverage/lcov-report/src/context/yaml/handlers/resourceServers.ts.html +154 -0
  87. package/coverage/lcov-report/src/context/yaml/handlers/roles.ts.html +199 -0
  88. package/coverage/lcov-report/src/context/yaml/handlers/rules.ts.html +253 -0
  89. package/coverage/lcov-report/src/context/yaml/handlers/rulesConfigs.ts.html +181 -0
  90. package/coverage/lcov-report/src/context/yaml/handlers/tenant.ts.html +235 -0
  91. package/coverage/lcov-report/src/context/yaml/handlers/themes.ts.html +154 -0
  92. package/coverage/lcov-report/src/context/yaml/handlers/triggers.ts.html +172 -0
  93. package/coverage/lcov-report/src/context/yaml/index.html +116 -0
  94. package/coverage/lcov-report/src/context/yaml/index.ts.html +568 -0
  95. package/coverage/lcov-report/src/index.html +221 -0
  96. package/coverage/lcov-report/src/index.ts.html +361 -0
  97. package/coverage/lcov-report/src/logger.ts.html +133 -0
  98. package/coverage/lcov-report/src/readonly.ts.html +346 -0
  99. package/coverage/lcov-report/src/sessionDurationsToMinutes.ts.html +154 -0
  100. package/coverage/lcov-report/src/tools/auth0/client.ts.html +604 -0
  101. package/coverage/lcov-report/src/tools/auth0/handlers/actions.ts.html +793 -0
  102. package/coverage/lcov-report/src/tools/auth0/handlers/attackProtection.ts.html +367 -0
  103. package/coverage/lcov-report/src/tools/auth0/handlers/branding.ts.html +427 -0
  104. package/coverage/lcov-report/src/tools/auth0/handlers/clientGrants.ts.html +418 -0
  105. package/coverage/lcov-report/src/tools/auth0/handlers/clients.ts.html +340 -0
  106. package/coverage/lcov-report/src/tools/auth0/handlers/connections.ts.html +598 -0
  107. package/coverage/lcov-report/src/tools/auth0/handlers/customDomains.ts.html +379 -0
  108. package/coverage/lcov-report/src/tools/auth0/handlers/databases.ts.html +436 -0
  109. package/coverage/lcov-report/src/tools/auth0/handlers/default.ts.html +1027 -0
  110. package/coverage/lcov-report/src/tools/auth0/handlers/emailProvider.ts.html +274 -0
  111. package/coverage/lcov-report/src/tools/auth0/handlers/emailTemplates.ts.html +337 -0
  112. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorProviders.ts.html +301 -0
  113. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorTemplates.ts.html +265 -0
  114. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactors.ts.html +241 -0
  115. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.ts.html +337 -0
  116. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.ts.html +331 -0
  117. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPolicies.ts.html +256 -0
  118. package/coverage/lcov-report/src/tools/auth0/handlers/hooks.ts.html +829 -0
  119. package/coverage/lcov-report/src/tools/auth0/handlers/index.html +566 -0
  120. package/coverage/lcov-report/src/tools/auth0/handlers/index.ts.html +295 -0
  121. package/coverage/lcov-report/src/tools/auth0/handlers/logStreams.ts.html +346 -0
  122. package/coverage/lcov-report/src/tools/auth0/handlers/migrations.ts.html +319 -0
  123. package/coverage/lcov-report/src/tools/auth0/handlers/organizations.ts.html +949 -0
  124. package/coverage/lcov-report/src/tools/auth0/handlers/pages.ts.html +517 -0
  125. package/coverage/lcov-report/src/tools/auth0/handlers/prompts.ts.html +913 -0
  126. package/coverage/lcov-report/src/tools/auth0/handlers/resourceServers.ts.html +412 -0
  127. package/coverage/lcov-report/src/tools/auth0/handlers/roles.ts.html +751 -0
  128. package/coverage/lcov-report/src/tools/auth0/handlers/rules.ts.html +727 -0
  129. package/coverage/lcov-report/src/tools/auth0/handlers/rulesConfigs.ts.html +256 -0
  130. package/coverage/lcov-report/src/tools/auth0/handlers/tenant.ts.html +466 -0
  131. package/coverage/lcov-report/src/tools/auth0/handlers/themes.ts.html +1882 -0
  132. package/coverage/lcov-report/src/tools/auth0/handlers/triggers.ts.html +430 -0
  133. package/coverage/lcov-report/src/tools/auth0/index.html +146 -0
  134. package/coverage/lcov-report/src/tools/auth0/index.ts.html +355 -0
  135. package/coverage/lcov-report/src/tools/auth0/schema.ts.html +184 -0
  136. package/coverage/lcov-report/src/tools/calculateChanges.ts.html +688 -0
  137. package/coverage/lcov-report/src/tools/constants.ts.html +610 -0
  138. package/coverage/lcov-report/src/tools/deploy.ts.html +181 -0
  139. package/coverage/lcov-report/src/tools/index.html +191 -0
  140. package/coverage/lcov-report/src/tools/index.ts.html +127 -0
  141. package/coverage/lcov-report/src/tools/utils.ts.html +796 -0
  142. package/coverage/lcov-report/src/tools/validationError.ts.html +127 -0
  143. package/coverage/lcov-report/src/types.ts.html +1093 -0
  144. package/coverage/lcov-report/src/utils.ts.html +679 -0
  145. package/coverage/lcov.info +7177 -0
  146. package/docs/configuring-the-deploy-cli.md +3 -3
  147. package/docs/keyword-replacement.md +22 -0
  148. package/examples/yaml/config.json.example +1 -1
  149. package/lib/commands/import.d.ts +0 -2
  150. package/lib/commands/import.js +1 -36
  151. package/lib/context/directory/handlers/connections.js +3 -2
  152. package/lib/context/directory/handlers/pages.js +7 -2
  153. package/lib/context/yaml/handlers/connections.js +5 -2
  154. package/lib/tools/auth0/handlers/themes.js +11 -3
  155. package/lib/types.d.ts +2 -2
  156. package/package.json +14 -13
@@ -1,11 +1,28 @@
1
- # Javascript Node CircleCI 2.0 configuration file
2
- #
3
- # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4
- #
5
1
  version: 2.1
6
2
 
3
+ orbs:
4
+ codecov: codecov/codecov@3
5
+
7
6
  jobs:
8
- test:
7
+ e2e_test_as_node_module:
8
+ docker:
9
+ - image: cimg/node:current
10
+ working_directory: ~/repo
11
+ steps:
12
+ - checkout
13
+ - run: npm ci
14
+ - run: AUTH0_HTTP_RECORDINGS="lockdown" npm run test:e2e:node-module
15
+
16
+ e2e_test_as_cli:
17
+ docker:
18
+ - image: cimg/node:current
19
+ working_directory: ~/repo
20
+ steps:
21
+ - checkout
22
+ - run: npm ci
23
+ - run: npm run test:e2e:cli
24
+
25
+ unit_test:
9
26
  parameters:
10
27
  v:
11
28
  type: string
@@ -25,10 +42,11 @@ jobs:
25
42
  paths:
26
43
  - node_modules
27
44
  - run: npm run lint
28
- - run: npm test
45
+ - run: npm run test:coverage
29
46
  - persist_to_workspace:
30
47
  root: ~/repo
31
48
  paths: .
49
+ - codecov/upload
32
50
 
33
51
  deploy:
34
52
  parameters:
@@ -47,19 +65,30 @@ jobs:
47
65
  - run:
48
66
  name: Publish package
49
67
  command: npm publish
68
+
50
69
  workflows:
51
70
  version: 2
52
- test:
71
+
72
+ e2e_test:
73
+ jobs:
74
+ - e2e_test_as_node_module
75
+ - e2e_test_as_cli:
76
+ filters:
77
+ branches:
78
+ only: master
79
+
80
+ unit_test:
53
81
  jobs:
54
- - test:
82
+ - unit_test:
55
83
  name: test_lts
56
84
  v: "lts"
57
- - test:
85
+ - unit_test:
58
86
  name: test_current
59
- v: "18.0.0"
87
+ v: "current"
88
+
60
89
  test_and_deploy:
61
90
  jobs:
62
- - test:
91
+ - unit_test:
63
92
  name: test_lts
64
93
  v: "lts"
65
94
  filters:
package/.eslintignore CHANGED
@@ -1,4 +1,5 @@
1
1
  examples/
2
+ test/e2e/testdata/**/**
2
3
  local/
3
4
  node_modules/
4
5
  lib/