auth0-deploy-cli 7.14.3 → 7.15.2

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 (450) hide show
  1. package/.circleci/config.yml +19 -5
  2. package/.github/ISSUE_TEMPLATE/config.yml +8 -0
  3. package/.github/ISSUE_TEMPLATE/feature_request.yml +50 -0
  4. package/.github/ISSUE_TEMPLATE/report_a_bug.yml +74 -0
  5. package/.github/PULL_REQUEST_TEMPLATE.md +34 -16
  6. package/.nyc_output/{d585e288-6dff-4d1c-a029-4e45efb2ad92.json → 3cdb0d81-cef0-4ed7-ac95-af0d771ac181.json} +0 -0
  7. package/.nyc_output/{d6d3177f-b440-4a24-ac55-7aabf686a0a7.json → 57ba7a7d-33b9-4371-a340-081cbb23c86a.json} +0 -0
  8. package/.nyc_output/6abd20a0-79d3-4149-972d-d76576da86cb.json +1 -0
  9. package/.nyc_output/processinfo/3cdb0d81-cef0-4ed7-ac95-af0d771ac181.json +1 -0
  10. package/.nyc_output/processinfo/57ba7a7d-33b9-4371-a340-081cbb23c86a.json +1 -0
  11. package/.nyc_output/processinfo/6abd20a0-79d3-4149-972d-d76576da86cb.json +1 -0
  12. package/.nyc_output/processinfo/index.json +1 -1
  13. package/CHANGELOG.md +45 -1
  14. package/README.md +3 -0
  15. package/coverage/lcov-report/index.html +37 -37
  16. package/coverage/lcov-report/src/args.ts.html +1 -1
  17. package/coverage/lcov-report/src/commands/export.ts.html +1 -1
  18. package/coverage/lcov-report/src/commands/import.ts.html +1 -1
  19. package/coverage/lcov-report/src/commands/index.html +1 -1
  20. package/coverage/lcov-report/src/configFactory.ts.html +1 -1
  21. package/coverage/lcov-report/src/context/defaults.ts.html +1 -1
  22. package/coverage/lcov-report/src/context/directory/handlers/actions.ts.html +79 -28
  23. package/coverage/lcov-report/src/context/directory/handlers/attackProtection.ts.html +6 -6
  24. package/coverage/lcov-report/src/context/directory/handlers/branding.ts.html +4 -4
  25. package/coverage/lcov-report/src/context/directory/handlers/clientGrants.ts.html +16 -7
  26. package/coverage/lcov-report/src/context/directory/handlers/clients.ts.html +3 -3
  27. package/coverage/lcov-report/src/context/directory/handlers/connections.ts.html +4 -4
  28. package/coverage/lcov-report/src/context/directory/handlers/customDomains.ts.html +4 -4
  29. package/coverage/lcov-report/src/context/directory/handlers/databases.ts.html +8 -5
  30. package/coverage/lcov-report/src/context/directory/handlers/emailProvider.ts.html +3 -3
  31. package/coverage/lcov-report/src/context/directory/handlers/emailTemplates.ts.html +3 -3
  32. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorProviders.ts.html +3 -3
  33. package/coverage/lcov-report/src/context/directory/handlers/guardianFactorTemplates.ts.html +3 -3
  34. package/coverage/lcov-report/src/context/directory/handlers/guardianFactors.ts.html +3 -3
  35. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorMessageTypes.ts.html +3 -3
  36. package/coverage/lcov-report/src/context/directory/handlers/guardianPhoneFactorSelectedProvider.ts.html +3 -3
  37. package/coverage/lcov-report/src/context/directory/handlers/guardianPolicies.ts.html +3 -3
  38. package/coverage/lcov-report/src/context/directory/handlers/hooks.ts.html +3 -3
  39. package/coverage/lcov-report/src/context/directory/handlers/index.html +21 -21
  40. package/coverage/lcov-report/src/context/directory/handlers/index.ts.html +1 -1
  41. package/coverage/lcov-report/src/context/directory/handlers/logStreams.ts.html +3 -3
  42. package/coverage/lcov-report/src/context/directory/handlers/migrations.ts.html +5 -5
  43. package/coverage/lcov-report/src/context/directory/handlers/organizations.ts.html +3 -3
  44. package/coverage/lcov-report/src/context/directory/handlers/pages.ts.html +19 -25
  45. package/coverage/lcov-report/src/context/directory/handlers/prompts.ts.html +4 -4
  46. package/coverage/lcov-report/src/context/directory/handlers/resourceServers.ts.html +3 -3
  47. package/coverage/lcov-report/src/context/directory/handlers/roles.ts.html +3 -3
  48. package/coverage/lcov-report/src/context/directory/handlers/rules.ts.html +3 -3
  49. package/coverage/lcov-report/src/context/directory/handlers/rulesConfigs.ts.html +3 -3
  50. package/coverage/lcov-report/src/context/directory/handlers/tenant.ts.html +6 -6
  51. package/coverage/lcov-report/src/context/directory/handlers/themes.ts.html +4 -4
  52. package/coverage/lcov-report/src/context/directory/handlers/triggers.ts.html +3 -3
  53. package/coverage/lcov-report/src/context/directory/index.html +1 -1
  54. package/coverage/lcov-report/src/context/directory/index.ts.html +21 -21
  55. package/coverage/lcov-report/src/context/index.html +1 -1
  56. package/coverage/lcov-report/src/context/index.ts.html +1 -1
  57. package/coverage/lcov-report/src/context/yaml/handlers/actions.ts.html +55 -19
  58. package/coverage/lcov-report/src/context/yaml/handlers/attackProtection.ts.html +1 -1
  59. package/coverage/lcov-report/src/context/yaml/handlers/branding.ts.html +13 -37
  60. package/coverage/lcov-report/src/context/yaml/handlers/clientGrants.ts.html +1 -1
  61. package/coverage/lcov-report/src/context/yaml/handlers/clients.ts.html +1 -1
  62. package/coverage/lcov-report/src/context/yaml/handlers/connections.ts.html +1 -1
  63. package/coverage/lcov-report/src/context/yaml/handlers/customDomains.ts.html +1 -1
  64. package/coverage/lcov-report/src/context/yaml/handlers/databases.ts.html +8 -2
  65. package/coverage/lcov-report/src/context/yaml/handlers/emailProvider.ts.html +1 -1
  66. package/coverage/lcov-report/src/context/yaml/handlers/emailTemplates.ts.html +1 -1
  67. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorProviders.ts.html +1 -1
  68. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactorTemplates.ts.html +1 -1
  69. package/coverage/lcov-report/src/context/yaml/handlers/guardianFactors.ts.html +1 -1
  70. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  71. package/coverage/lcov-report/src/context/yaml/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  72. package/coverage/lcov-report/src/context/yaml/handlers/guardianPolicies.ts.html +1 -1
  73. package/coverage/lcov-report/src/context/yaml/handlers/hooks.ts.html +1 -1
  74. package/coverage/lcov-report/src/context/yaml/handlers/index.html +29 -29
  75. package/coverage/lcov-report/src/context/yaml/handlers/index.ts.html +1 -1
  76. package/coverage/lcov-report/src/context/yaml/handlers/logStreams.ts.html +1 -1
  77. package/coverage/lcov-report/src/context/yaml/handlers/migrations.ts.html +1 -1
  78. package/coverage/lcov-report/src/context/yaml/handlers/organizations.ts.html +1 -1
  79. package/coverage/lcov-report/src/context/yaml/handlers/pages.ts.html +15 -18
  80. package/coverage/lcov-report/src/context/yaml/handlers/prompts.ts.html +1 -1
  81. package/coverage/lcov-report/src/context/yaml/handlers/resourceServers.ts.html +1 -1
  82. package/coverage/lcov-report/src/context/yaml/handlers/roles.ts.html +1 -1
  83. package/coverage/lcov-report/src/context/yaml/handlers/rules.ts.html +1 -1
  84. package/coverage/lcov-report/src/context/yaml/handlers/rulesConfigs.ts.html +1 -1
  85. package/coverage/lcov-report/src/context/yaml/handlers/tenant.ts.html +1 -1
  86. package/coverage/lcov-report/src/context/yaml/handlers/themes.ts.html +1 -1
  87. package/coverage/lcov-report/src/context/yaml/handlers/triggers.ts.html +1 -1
  88. package/coverage/lcov-report/src/context/yaml/index.html +1 -1
  89. package/coverage/lcov-report/src/context/yaml/index.ts.html +10 -10
  90. package/coverage/lcov-report/src/index.html +1 -1
  91. package/coverage/lcov-report/src/index.ts.html +1 -1
  92. package/coverage/lcov-report/src/logger.ts.html +2 -2
  93. package/coverage/lcov-report/src/readonly.ts.html +1 -1
  94. package/coverage/lcov-report/src/sessionDurationsToMinutes.ts.html +1 -1
  95. package/coverage/lcov-report/src/tools/auth0/client.ts.html +1 -1
  96. package/coverage/lcov-report/src/tools/auth0/handlers/actions.ts.html +145 -37
  97. package/coverage/lcov-report/src/tools/auth0/handlers/attackProtection.ts.html +49 -19
  98. package/coverage/lcov-report/src/tools/auth0/handlers/branding.ts.html +27 -27
  99. package/coverage/lcov-report/src/tools/auth0/handlers/clientGrants.ts.html +1 -1
  100. package/coverage/lcov-report/src/tools/auth0/handlers/clients.ts.html +1 -1
  101. package/coverage/lcov-report/src/tools/auth0/handlers/connections.ts.html +1 -1
  102. package/coverage/lcov-report/src/tools/auth0/handlers/customDomains.ts.html +1 -1
  103. package/coverage/lcov-report/src/tools/auth0/handlers/databases.ts.html +1 -1
  104. package/coverage/lcov-report/src/tools/auth0/handlers/default.ts.html +32 -32
  105. package/coverage/lcov-report/src/tools/auth0/handlers/emailProvider.ts.html +50 -41
  106. package/coverage/lcov-report/src/tools/auth0/handlers/emailTemplates.ts.html +1 -1
  107. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorProviders.ts.html +1 -1
  108. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactorTemplates.ts.html +1 -1
  109. package/coverage/lcov-report/src/tools/auth0/handlers/guardianFactors.ts.html +1 -1
  110. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorMessageTypes.ts.html +1 -1
  111. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.ts.html +1 -1
  112. package/coverage/lcov-report/src/tools/auth0/handlers/guardianPolicies.ts.html +1 -1
  113. package/coverage/lcov-report/src/tools/auth0/handlers/hooks.ts.html +1 -1
  114. package/coverage/lcov-report/src/tools/auth0/handlers/index.html +39 -39
  115. package/coverage/lcov-report/src/tools/auth0/handlers/index.ts.html +1 -1
  116. package/coverage/lcov-report/src/tools/auth0/handlers/logStreams.ts.html +1 -1
  117. package/coverage/lcov-report/src/tools/auth0/handlers/migrations.ts.html +1 -1
  118. package/coverage/lcov-report/src/tools/auth0/handlers/organizations.ts.html +1 -1
  119. package/coverage/lcov-report/src/tools/auth0/handlers/pages.ts.html +26 -2
  120. package/coverage/lcov-report/src/tools/auth0/handlers/prompts.ts.html +1 -1
  121. package/coverage/lcov-report/src/tools/auth0/handlers/resourceServers.ts.html +1 -1
  122. package/coverage/lcov-report/src/tools/auth0/handlers/roles.ts.html +1 -1
  123. package/coverage/lcov-report/src/tools/auth0/handlers/rules.ts.html +1 -1
  124. package/coverage/lcov-report/src/tools/auth0/handlers/rulesConfigs.ts.html +1 -1
  125. package/coverage/lcov-report/src/tools/auth0/handlers/tenant.ts.html +1 -1
  126. package/coverage/lcov-report/src/tools/auth0/handlers/themes.ts.html +2 -2
  127. package/coverage/lcov-report/src/tools/auth0/handlers/triggers.ts.html +10 -10
  128. package/coverage/lcov-report/src/tools/auth0/index.html +1 -1
  129. package/coverage/lcov-report/src/tools/auth0/index.ts.html +1 -1
  130. package/coverage/lcov-report/src/tools/auth0/schema.ts.html +1 -1
  131. package/coverage/lcov-report/src/tools/calculateChanges.ts.html +15 -15
  132. package/coverage/lcov-report/src/tools/constants.ts.html +1 -1
  133. package/coverage/lcov-report/src/tools/deploy.ts.html +1 -1
  134. package/coverage/lcov-report/src/tools/index.html +1 -1
  135. package/coverage/lcov-report/src/tools/index.ts.html +2 -2
  136. package/coverage/lcov-report/src/tools/utils.ts.html +20 -20
  137. package/coverage/lcov-report/src/tools/validationError.ts.html +1 -1
  138. package/coverage/lcov-report/src/types.ts.html +39 -15
  139. package/coverage/lcov-report/src/utils.ts.html +15 -15
  140. package/coverage/lcov.info +1025 -961
  141. package/docs/excluding-from-management.md +5 -2
  142. package/docs/resource-specific-documentation.md +208 -0
  143. package/lib/args.d.ts +6 -6
  144. package/lib/args.js +1 -0
  145. package/lib/args.js.map +1 -0
  146. package/lib/commands/export.js +1 -0
  147. package/lib/commands/export.js.map +1 -0
  148. package/lib/commands/import.js +1 -0
  149. package/lib/commands/import.js.map +1 -0
  150. package/lib/commands/index.js +1 -0
  151. package/lib/commands/index.js.map +1 -0
  152. package/lib/configFactory.d.ts +1 -1
  153. package/lib/configFactory.js +1 -0
  154. package/lib/configFactory.js.map +1 -0
  155. package/lib/context/defaults.js +1 -0
  156. package/lib/context/defaults.js.map +1 -0
  157. package/lib/context/directory/handlers/actions.d.ts +1 -1
  158. package/lib/context/directory/handlers/actions.js +15 -5
  159. package/lib/context/directory/handlers/actions.js.map +1 -0
  160. package/lib/context/directory/handlers/attackProtection.d.ts +1 -1
  161. package/lib/context/directory/handlers/attackProtection.js +1 -0
  162. package/lib/context/directory/handlers/attackProtection.js.map +1 -0
  163. package/lib/context/directory/handlers/branding.d.ts +1 -1
  164. package/lib/context/directory/handlers/branding.js +1 -0
  165. package/lib/context/directory/handlers/branding.js.map +1 -0
  166. package/lib/context/directory/handlers/clientGrants.d.ts +1 -1
  167. package/lib/context/directory/handlers/clientGrants.js +4 -2
  168. package/lib/context/directory/handlers/clientGrants.js.map +1 -0
  169. package/lib/context/directory/handlers/clients.d.ts +1 -1
  170. package/lib/context/directory/handlers/clients.js +1 -0
  171. package/lib/context/directory/handlers/clients.js.map +1 -0
  172. package/lib/context/directory/handlers/connections.d.ts +1 -1
  173. package/lib/context/directory/handlers/connections.js +1 -0
  174. package/lib/context/directory/handlers/connections.js.map +1 -0
  175. package/lib/context/directory/handlers/customDomains.d.ts +1 -1
  176. package/lib/context/directory/handlers/customDomains.js +1 -0
  177. package/lib/context/directory/handlers/customDomains.js.map +1 -0
  178. package/lib/context/directory/handlers/databases.d.ts +1 -1
  179. package/lib/context/directory/handlers/databases.js +3 -1
  180. package/lib/context/directory/handlers/databases.js.map +1 -0
  181. package/lib/context/directory/handlers/emailProvider.d.ts +1 -1
  182. package/lib/context/directory/handlers/emailProvider.js +1 -0
  183. package/lib/context/directory/handlers/emailProvider.js.map +1 -0
  184. package/lib/context/directory/handlers/emailTemplates.d.ts +1 -1
  185. package/lib/context/directory/handlers/emailTemplates.js +1 -0
  186. package/lib/context/directory/handlers/emailTemplates.js.map +1 -0
  187. package/lib/context/directory/handlers/guardianFactorProviders.d.ts +1 -1
  188. package/lib/context/directory/handlers/guardianFactorProviders.js +1 -0
  189. package/lib/context/directory/handlers/guardianFactorProviders.js.map +1 -0
  190. package/lib/context/directory/handlers/guardianFactorTemplates.d.ts +1 -1
  191. package/lib/context/directory/handlers/guardianFactorTemplates.js +1 -0
  192. package/lib/context/directory/handlers/guardianFactorTemplates.js.map +1 -0
  193. package/lib/context/directory/handlers/guardianFactors.d.ts +1 -1
  194. package/lib/context/directory/handlers/guardianFactors.js +1 -0
  195. package/lib/context/directory/handlers/guardianFactors.js.map +1 -0
  196. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.d.ts +1 -1
  197. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js +1 -0
  198. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
  199. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.d.ts +1 -1
  200. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js +1 -0
  201. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
  202. package/lib/context/directory/handlers/guardianPolicies.d.ts +1 -1
  203. package/lib/context/directory/handlers/guardianPolicies.js +1 -0
  204. package/lib/context/directory/handlers/guardianPolicies.js.map +1 -0
  205. package/lib/context/directory/handlers/hooks.d.ts +1 -1
  206. package/lib/context/directory/handlers/hooks.js +1 -0
  207. package/lib/context/directory/handlers/hooks.js.map +1 -0
  208. package/lib/context/directory/handlers/index.d.ts +1 -1
  209. package/lib/context/directory/handlers/index.js +1 -0
  210. package/lib/context/directory/handlers/index.js.map +1 -0
  211. package/lib/context/directory/handlers/logStreams.d.ts +1 -1
  212. package/lib/context/directory/handlers/logStreams.js +1 -0
  213. package/lib/context/directory/handlers/logStreams.js.map +1 -0
  214. package/lib/context/directory/handlers/migrations.d.ts +1 -1
  215. package/lib/context/directory/handlers/migrations.js +1 -0
  216. package/lib/context/directory/handlers/migrations.js.map +1 -0
  217. package/lib/context/directory/handlers/organizations.d.ts +1 -1
  218. package/lib/context/directory/handlers/organizations.js +1 -0
  219. package/lib/context/directory/handlers/organizations.js.map +1 -0
  220. package/lib/context/directory/handlers/pages.d.ts +3 -2
  221. package/lib/context/directory/handlers/pages.js +5 -7
  222. package/lib/context/directory/handlers/pages.js.map +1 -0
  223. package/lib/context/directory/handlers/prompts.d.ts +1 -1
  224. package/lib/context/directory/handlers/prompts.js +1 -0
  225. package/lib/context/directory/handlers/prompts.js.map +1 -0
  226. package/lib/context/directory/handlers/resourceServers.d.ts +1 -1
  227. package/lib/context/directory/handlers/resourceServers.js +1 -0
  228. package/lib/context/directory/handlers/resourceServers.js.map +1 -0
  229. package/lib/context/directory/handlers/roles.d.ts +1 -1
  230. package/lib/context/directory/handlers/roles.js +1 -0
  231. package/lib/context/directory/handlers/roles.js.map +1 -0
  232. package/lib/context/directory/handlers/rules.d.ts +1 -1
  233. package/lib/context/directory/handlers/rules.js +1 -0
  234. package/lib/context/directory/handlers/rules.js.map +1 -0
  235. package/lib/context/directory/handlers/rulesConfigs.d.ts +1 -1
  236. package/lib/context/directory/handlers/rulesConfigs.js +1 -0
  237. package/lib/context/directory/handlers/rulesConfigs.js.map +1 -0
  238. package/lib/context/directory/handlers/tenant.d.ts +1 -1
  239. package/lib/context/directory/handlers/tenant.js +1 -0
  240. package/lib/context/directory/handlers/tenant.js.map +1 -0
  241. package/lib/context/directory/handlers/themes.d.ts +1 -1
  242. package/lib/context/directory/handlers/themes.js +1 -0
  243. package/lib/context/directory/handlers/themes.js.map +1 -0
  244. package/lib/context/directory/handlers/triggers.d.ts +1 -1
  245. package/lib/context/directory/handlers/triggers.js +1 -0
  246. package/lib/context/directory/handlers/triggers.js.map +1 -0
  247. package/lib/context/directory/index.d.ts +1 -1
  248. package/lib/context/directory/index.js +1 -0
  249. package/lib/context/directory/index.js.map +1 -0
  250. package/lib/context/index.js +1 -0
  251. package/lib/context/index.js.map +1 -0
  252. package/lib/context/yaml/handlers/actions.d.ts +3 -2
  253. package/lib/context/yaml/handlers/actions.js +14 -4
  254. package/lib/context/yaml/handlers/actions.js.map +1 -0
  255. package/lib/context/yaml/handlers/attackProtection.d.ts +1 -1
  256. package/lib/context/yaml/handlers/attackProtection.js +1 -0
  257. package/lib/context/yaml/handlers/attackProtection.js.map +1 -0
  258. package/lib/context/yaml/handlers/branding.d.ts +2 -2
  259. package/lib/context/yaml/handlers/branding.js +5 -11
  260. package/lib/context/yaml/handlers/branding.js.map +1 -0
  261. package/lib/context/yaml/handlers/clientGrants.d.ts +1 -1
  262. package/lib/context/yaml/handlers/clientGrants.js +1 -0
  263. package/lib/context/yaml/handlers/clientGrants.js.map +1 -0
  264. package/lib/context/yaml/handlers/clients.d.ts +1 -1
  265. package/lib/context/yaml/handlers/clients.js +1 -0
  266. package/lib/context/yaml/handlers/clients.js.map +1 -0
  267. package/lib/context/yaml/handlers/connections.d.ts +1 -1
  268. package/lib/context/yaml/handlers/connections.js +1 -0
  269. package/lib/context/yaml/handlers/connections.js.map +1 -0
  270. package/lib/context/yaml/handlers/customDomains.d.ts +1 -1
  271. package/lib/context/yaml/handlers/customDomains.js +1 -0
  272. package/lib/context/yaml/handlers/customDomains.js.map +1 -0
  273. package/lib/context/yaml/handlers/databases.d.ts +1 -1
  274. package/lib/context/yaml/handlers/databases.js +3 -0
  275. package/lib/context/yaml/handlers/databases.js.map +1 -0
  276. package/lib/context/yaml/handlers/emailProvider.d.ts +1 -1
  277. package/lib/context/yaml/handlers/emailProvider.js +1 -0
  278. package/lib/context/yaml/handlers/emailProvider.js.map +1 -0
  279. package/lib/context/yaml/handlers/emailTemplates.d.ts +1 -1
  280. package/lib/context/yaml/handlers/emailTemplates.js +1 -0
  281. package/lib/context/yaml/handlers/emailTemplates.js.map +1 -0
  282. package/lib/context/yaml/handlers/guardianFactorProviders.d.ts +1 -1
  283. package/lib/context/yaml/handlers/guardianFactorProviders.js +1 -0
  284. package/lib/context/yaml/handlers/guardianFactorProviders.js.map +1 -0
  285. package/lib/context/yaml/handlers/guardianFactorTemplates.d.ts +1 -1
  286. package/lib/context/yaml/handlers/guardianFactorTemplates.js +1 -0
  287. package/lib/context/yaml/handlers/guardianFactorTemplates.js.map +1 -0
  288. package/lib/context/yaml/handlers/guardianFactors.d.ts +1 -1
  289. package/lib/context/yaml/handlers/guardianFactors.js +1 -0
  290. package/lib/context/yaml/handlers/guardianFactors.js.map +1 -0
  291. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.d.ts +1 -1
  292. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js +1 -0
  293. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
  294. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.d.ts +1 -1
  295. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js +1 -0
  296. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
  297. package/lib/context/yaml/handlers/guardianPolicies.d.ts +1 -1
  298. package/lib/context/yaml/handlers/guardianPolicies.js +1 -0
  299. package/lib/context/yaml/handlers/guardianPolicies.js.map +1 -0
  300. package/lib/context/yaml/handlers/hooks.d.ts +1 -1
  301. package/lib/context/yaml/handlers/hooks.js +1 -0
  302. package/lib/context/yaml/handlers/hooks.js.map +1 -0
  303. package/lib/context/yaml/handlers/index.d.ts +1 -1
  304. package/lib/context/yaml/handlers/index.js +1 -0
  305. package/lib/context/yaml/handlers/index.js.map +1 -0
  306. package/lib/context/yaml/handlers/logStreams.d.ts +1 -1
  307. package/lib/context/yaml/handlers/logStreams.js +1 -0
  308. package/lib/context/yaml/handlers/logStreams.js.map +1 -0
  309. package/lib/context/yaml/handlers/migrations.d.ts +1 -1
  310. package/lib/context/yaml/handlers/migrations.js +1 -0
  311. package/lib/context/yaml/handlers/migrations.js.map +1 -0
  312. package/lib/context/yaml/handlers/organizations.d.ts +1 -1
  313. package/lib/context/yaml/handlers/organizations.js +1 -0
  314. package/lib/context/yaml/handlers/organizations.js.map +1 -0
  315. package/lib/context/yaml/handlers/pages.d.ts +3 -2
  316. package/lib/context/yaml/handlers/pages.js +3 -4
  317. package/lib/context/yaml/handlers/pages.js.map +1 -0
  318. package/lib/context/yaml/handlers/prompts.d.ts +1 -1
  319. package/lib/context/yaml/handlers/prompts.js +1 -0
  320. package/lib/context/yaml/handlers/prompts.js.map +1 -0
  321. package/lib/context/yaml/handlers/resourceServers.d.ts +1 -1
  322. package/lib/context/yaml/handlers/resourceServers.js +1 -0
  323. package/lib/context/yaml/handlers/resourceServers.js.map +1 -0
  324. package/lib/context/yaml/handlers/roles.d.ts +1 -1
  325. package/lib/context/yaml/handlers/roles.js +1 -0
  326. package/lib/context/yaml/handlers/roles.js.map +1 -0
  327. package/lib/context/yaml/handlers/rules.d.ts +1 -1
  328. package/lib/context/yaml/handlers/rules.js +1 -0
  329. package/lib/context/yaml/handlers/rules.js.map +1 -0
  330. package/lib/context/yaml/handlers/rulesConfigs.d.ts +1 -1
  331. package/lib/context/yaml/handlers/rulesConfigs.js +1 -0
  332. package/lib/context/yaml/handlers/rulesConfigs.js.map +1 -0
  333. package/lib/context/yaml/handlers/tenant.d.ts +1 -1
  334. package/lib/context/yaml/handlers/tenant.js +1 -0
  335. package/lib/context/yaml/handlers/tenant.js.map +1 -0
  336. package/lib/context/yaml/handlers/themes.d.ts +1 -1
  337. package/lib/context/yaml/handlers/themes.js +1 -0
  338. package/lib/context/yaml/handlers/themes.js.map +1 -0
  339. package/lib/context/yaml/handlers/triggers.d.ts +1 -1
  340. package/lib/context/yaml/handlers/triggers.js +1 -0
  341. package/lib/context/yaml/handlers/triggers.js.map +1 -0
  342. package/lib/context/yaml/index.js +1 -0
  343. package/lib/context/yaml/index.js.map +1 -0
  344. package/lib/index.js +1 -0
  345. package/lib/index.js.map +1 -0
  346. package/lib/logger.js +1 -0
  347. package/lib/logger.js.map +1 -0
  348. package/lib/readonly.js +1 -0
  349. package/lib/readonly.js.map +1 -0
  350. package/lib/sessionDurationsToMinutes.js +1 -0
  351. package/lib/sessionDurationsToMinutes.js.map +1 -0
  352. package/lib/tools/auth0/client.js +1 -0
  353. package/lib/tools/auth0/client.js.map +1 -0
  354. package/lib/tools/auth0/handlers/actions.d.ts +29 -5
  355. package/lib/tools/auth0/handlers/actions.js +14 -4
  356. package/lib/tools/auth0/handlers/actions.js.map +1 -0
  357. package/lib/tools/auth0/handlers/attackProtection.js +22 -11
  358. package/lib/tools/auth0/handlers/attackProtection.js.map +1 -0
  359. package/lib/tools/auth0/handlers/branding.js +22 -11
  360. package/lib/tools/auth0/handlers/branding.js.map +1 -0
  361. package/lib/tools/auth0/handlers/clientGrants.js +1 -0
  362. package/lib/tools/auth0/handlers/clientGrants.js.map +1 -0
  363. package/lib/tools/auth0/handlers/clients.js +1 -0
  364. package/lib/tools/auth0/handlers/clients.js.map +1 -0
  365. package/lib/tools/auth0/handlers/connections.js +1 -0
  366. package/lib/tools/auth0/handlers/connections.js.map +1 -0
  367. package/lib/tools/auth0/handlers/customDomains.js +1 -0
  368. package/lib/tools/auth0/handlers/customDomains.js.map +1 -0
  369. package/lib/tools/auth0/handlers/databases.js +1 -0
  370. package/lib/tools/auth0/handlers/databases.js.map +1 -0
  371. package/lib/tools/auth0/handlers/default.d.ts +1 -1
  372. package/lib/tools/auth0/handlers/default.js +1 -0
  373. package/lib/tools/auth0/handlers/default.js.map +1 -0
  374. package/lib/tools/auth0/handlers/emailProvider.js +26 -23
  375. package/lib/tools/auth0/handlers/emailProvider.js.map +1 -0
  376. package/lib/tools/auth0/handlers/emailTemplates.js +1 -0
  377. package/lib/tools/auth0/handlers/emailTemplates.js.map +1 -0
  378. package/lib/tools/auth0/handlers/guardianFactorProviders.js +1 -0
  379. package/lib/tools/auth0/handlers/guardianFactorProviders.js.map +1 -0
  380. package/lib/tools/auth0/handlers/guardianFactorTemplates.js +1 -0
  381. package/lib/tools/auth0/handlers/guardianFactorTemplates.js.map +1 -0
  382. package/lib/tools/auth0/handlers/guardianFactors.js +1 -0
  383. package/lib/tools/auth0/handlers/guardianFactors.js.map +1 -0
  384. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +1 -0
  385. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
  386. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +1 -0
  387. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
  388. package/lib/tools/auth0/handlers/guardianPolicies.js +1 -0
  389. package/lib/tools/auth0/handlers/guardianPolicies.js.map +1 -0
  390. package/lib/tools/auth0/handlers/hooks.js +1 -0
  391. package/lib/tools/auth0/handlers/hooks.js.map +1 -0
  392. package/lib/tools/auth0/handlers/index.js +1 -0
  393. package/lib/tools/auth0/handlers/index.js.map +1 -0
  394. package/lib/tools/auth0/handlers/logStreams.js +1 -0
  395. package/lib/tools/auth0/handlers/logStreams.js.map +1 -0
  396. package/lib/tools/auth0/handlers/migrations.js +1 -0
  397. package/lib/tools/auth0/handlers/migrations.js.map +1 -0
  398. package/lib/tools/auth0/handlers/organizations.js +1 -0
  399. package/lib/tools/auth0/handlers/organizations.js.map +1 -0
  400. package/lib/tools/auth0/handlers/pages.d.ts +7 -0
  401. package/lib/tools/auth0/handlers/pages.js +1 -0
  402. package/lib/tools/auth0/handlers/pages.js.map +1 -0
  403. package/lib/tools/auth0/handlers/prompts.d.ts +6 -6
  404. package/lib/tools/auth0/handlers/prompts.js +1 -0
  405. package/lib/tools/auth0/handlers/prompts.js.map +1 -0
  406. package/lib/tools/auth0/handlers/resourceServers.js +1 -0
  407. package/lib/tools/auth0/handlers/resourceServers.js.map +1 -0
  408. package/lib/tools/auth0/handlers/roles.js +1 -0
  409. package/lib/tools/auth0/handlers/roles.js.map +1 -0
  410. package/lib/tools/auth0/handlers/rules.js +1 -0
  411. package/lib/tools/auth0/handlers/rules.js.map +1 -0
  412. package/lib/tools/auth0/handlers/rulesConfigs.js +1 -0
  413. package/lib/tools/auth0/handlers/rulesConfigs.js.map +1 -0
  414. package/lib/tools/auth0/handlers/tenant.d.ts +1 -1
  415. package/lib/tools/auth0/handlers/tenant.js +1 -0
  416. package/lib/tools/auth0/handlers/tenant.js.map +1 -0
  417. package/lib/tools/auth0/handlers/themes.js +1 -0
  418. package/lib/tools/auth0/handlers/themes.js.map +1 -0
  419. package/lib/tools/auth0/handlers/triggers.js +1 -0
  420. package/lib/tools/auth0/handlers/triggers.js.map +1 -0
  421. package/lib/tools/auth0/index.d.ts +1 -1
  422. package/lib/tools/auth0/index.js +1 -0
  423. package/lib/tools/auth0/index.js.map +1 -0
  424. package/lib/tools/auth0/schema.js +1 -0
  425. package/lib/tools/auth0/schema.js.map +1 -0
  426. package/lib/tools/calculateChanges.js +1 -0
  427. package/lib/tools/calculateChanges.js.map +1 -0
  428. package/lib/tools/constants.js +1 -0
  429. package/lib/tools/constants.js.map +1 -0
  430. package/lib/tools/deploy.js +1 -0
  431. package/lib/tools/deploy.js.map +1 -0
  432. package/lib/tools/index.js +1 -0
  433. package/lib/tools/index.js.map +1 -0
  434. package/lib/tools/utils.js +1 -0
  435. package/lib/tools/utils.js.map +1 -0
  436. package/lib/tools/validationError.js +1 -0
  437. package/lib/tools/validationError.js.map +1 -0
  438. package/lib/types.d.ts +40 -32
  439. package/lib/types.js +1 -0
  440. package/lib/types.js.map +1 -0
  441. package/lib/utils.d.ts +5 -5
  442. package/lib/utils.js +1 -0
  443. package/lib/utils.js.map +1 -0
  444. package/opslevel.yml +6 -0
  445. package/package.json +10 -9
  446. package/tsconfig.json +1 -0
  447. package/.nyc_output/b55d7a30-feb2-4763-a79f-030cbbcaf34c.json +0 -1
  448. package/.nyc_output/processinfo/b55d7a30-feb2-4763-a79f-030cbbcaf34c.json +0 -1
  449. package/.nyc_output/processinfo/d585e288-6dff-4d1c-a029-4e45efb2ad92.json +0 -1
  450. package/.nyc_output/processinfo/d6d3177f-b440-4a24-ac55-7aabf686a0a7.json +0 -1
@@ -66,14 +66,17 @@ roles: # roles configuration is not omitted
66
66
 
67
67
  ### Empty
68
68
 
69
- Resource configuration that is explicitly defined as empty. For set-based configurations like hooks, organizations and actions, setting these configurations to an empty set expresses an intentional emptying of those resources. In practice, this would signal a deletion, so long as the [`AUTH0_ALLOW_DELETE` deletion configuration property](configuring-the-deploy-cli.md#AUTH0_ALLOW_DELETE) is enabled. For non-set-based resource configuration like tenant and branding, the concept of emptiness does not apply, will not trigger any deletions or removals.
69
+ Resource configuration that is explicitly defined as empty. For set-based configurations like hooks, organizations and actions, setting these configurations to an empty set expresses an intentional emptying of those resources. In practice, this would signal a deletion, so long as the [`AUTH0_ALLOW_DELETE` deletion configuration property](configuring-the-deploy-cli.md#AUTH0_ALLOW_DELETE) is enabled.
70
+
71
+ For non-set-based resource configuration like tenant, email provider and branding, the expected behavior when applying an explicitly empty configuration value will depend on the resource. The `tenant`, `branding`, `attackProtection`, and `guardianPhoneFactorSelectedProvider` resources cannot be deleted whereas the `emailProvider` resource can be deleted.
70
72
 
71
73
  #### Example of emptiness
72
74
 
73
75
  ```yaml
74
76
  hooks: [] # Empty hooks
75
77
  connections: [] # Empty connections
76
- tenant: {} # Effectively a no-op, emptiness does not apply to non-set resource config
78
+ tenant: {} # Effectively a no-op, cannot delete tenant
79
+ emailProvider: {} # Will delete email provider
77
80
  ```
78
81
 
79
82
  ---
@@ -0,0 +1,208 @@
1
+ # Resource-specific Documentation
2
+
3
+ In general, the Deploy CLI resource configuration files closely match the payload schemas of the [Management API](https://auth0.com/docs/api/management/v2).
4
+
5
+ However, there are some notable nuances to be aware of:
6
+
7
+ ## Client Grants
8
+
9
+ The Deploy CLI's own client grant is intentionally not exported nor configurable by itself. This is done to prevent breaking changes, otherwise the tool could potentially revoke access or otherwise crash in the midst of an import. In a multi-tenant, multi-environment context, it is expect that new tenants will have a designated client already established for the Deploy CLI, as mentioned in the [getting started instructions](./../README.md#create-a-dedicated-auth0-application).
10
+
11
+ ## Prompts
12
+
13
+ Multilingual custom text prompts follow a particular hierarchy. Under the root-level `prompts` resource property is a proprietary `customText` property that is used to bundle custom text translations with other prompts settings. Underneath `customText` is the two-character language code. Thirdly is the prompt ID, followed by the screen ID, followed by text ID.
14
+
15
+ **Hierarchy**
16
+
17
+ ```yaml
18
+ prompts:
19
+ customText:
20
+ <LANGUAGE>: # two character language code
21
+ <PROMPT_ID>: # prompt ID
22
+ <SCREEN_ID>: # prompt screen ID
23
+ <TEXT_ID>: 'Some text'
24
+ ```
25
+
26
+ **Example**
27
+
28
+ ```yaml
29
+ prompts:
30
+ identifier_first: true
31
+ universal_login_experience: classic
32
+ customText:
33
+ en:
34
+ login:
35
+ login:
36
+ description: Login description in english
37
+ buttonText: Button text
38
+ mfa:
39
+ mfa-detect-browser-capabilities:
40
+ pickAuthenticatorText: 'Try another method'
41
+ reloadButtonText: 'Reload'
42
+ noJSErrorTitle: 'JavaScript Required'
43
+ mfa-login-options:
44
+ pageTitle: 'Log in to ${clientName}'
45
+ authenticatorNamesSMS: 'SMS'
46
+ ```
47
+
48
+ ## Databases
49
+
50
+ When managing database connections, the values of `options.customScripts` point to specific javascript files relative to
51
+ the path of the output folder. Otherwise, the payload closely matches that of the [Management API](https://auth0.com/docs/api/management/v2#!/Connections/post_connections).
52
+
53
+ **YAML Example**
54
+
55
+ ```
56
+ Folder structure when in YAML mode.
57
+
58
+ ./databases/
59
+ /Username-Password-Authentication
60
+ /change_password.js
61
+ /create.js
62
+ /delete.js
63
+ /get_user.js
64
+ /login.js
65
+ /verify.js
66
+ ./tenant.yaml
67
+ ```
68
+
69
+ ```yaml
70
+ # Contents of ./tenant.yaml
71
+ databases:
72
+ - name: Username-Password-Authentication
73
+ # ...
74
+ options:
75
+ # ...
76
+ customScripts:
77
+ change_password: ./databases/Username-Password-Authentication/change_password.js
78
+ create: ./databases/Username-Password-Authentication/create.js
79
+ delete: ./databases/Username-Password-Authentication/delete.js
80
+ get_user: ./databases/Username-Password-Authentication/get_user.js
81
+ login: ./databases/Username-Password-Authentication/login.js
82
+ verify: ./databases/Username-Password-Authentication/verify.js
83
+ ```
84
+
85
+ **Directory Example**
86
+
87
+ ```
88
+ Folder structure when in directory mode.
89
+
90
+ ./database-connections/
91
+ ./Username-Password-Authentication/
92
+ ./change_password.js
93
+ ./create.js
94
+ ./database.json
95
+ ./delete.js
96
+ ./get_user.js
97
+ ./login.js
98
+ ./verify.js
99
+ ```
100
+
101
+
102
+ Contents of `database.json`
103
+ ```json
104
+ {
105
+ "options": {
106
+ "customScripts": {
107
+ "change_password": "./change_password.js",
108
+ "create": "./create.js",
109
+ "delete": "./delete.js",
110
+ "get_user": "./get_user.js",
111
+ "login": "./login.js",
112
+ "verify": "./verify.js"
113
+ }
114
+ }
115
+ }
116
+ ```
117
+
118
+ ## Universal Login
119
+
120
+ ### Pages
121
+
122
+ When overriding the Universal Login with custom HTML, the error, login, multi-factor authentication and password reset
123
+ contents are organized in specific HTML pages.
124
+
125
+ **YAML Example**
126
+
127
+ ```
128
+ Folder structure when in YAML mode.
129
+
130
+ ./pages/
131
+ /error_page.html
132
+ /guardian_multifactor.html
133
+ /login.html
134
+ /password_reset.html
135
+ ./tenant.yaml
136
+ ```
137
+
138
+ ```yaml
139
+ # Contents of ./tenant.yaml
140
+ pages:
141
+ - name: error_page
142
+ html: ./pages/error_page.html
143
+ show_log_link: false
144
+ url: https://mycompany.org/error
145
+ - name: guardian_multifactor
146
+ enabled: true
147
+ html: ./pages/guardian_multifactor.html
148
+ - name: login
149
+ enabled: false
150
+ html: ./pages/login.html
151
+ - name: password_reset
152
+ enabled: true
153
+ html: ./pages/password_reset.html
154
+ ```
155
+
156
+ **Directory Example**
157
+
158
+ ```
159
+ Folder structure when in directory mode.
160
+
161
+ ./pages/
162
+ ./error_page.html
163
+ ./error_page.json
164
+ ./guardian_multifactor.html
165
+ ./guardian_multifactor.json
166
+ ./login.html
167
+ ./login.json
168
+ ./password_reset.html
169
+ ./password_reset.json
170
+ ```
171
+
172
+
173
+ Contents of `login.json`
174
+ ```json
175
+ {
176
+ "name": "login",
177
+ "enabled": false,
178
+ "html": "./login.html"
179
+ }
180
+ ```
181
+
182
+ Contents of `error_page.json`
183
+ ```json
184
+ {
185
+ "html": "./error_page.html",
186
+ "show_log_link": false,
187
+ "url": "https://mycompany.org/error",
188
+ "name": "error_page"
189
+ }
190
+ ```
191
+
192
+ Contents of `guardian_multifactor.json`
193
+ ```json
194
+ {
195
+ "enabled": true,
196
+ "html": "./guardian_multifactor.html",
197
+ "name": "guardian_multifactor"
198
+ }
199
+ ```
200
+
201
+ Contents of `password_reset.json`
202
+ ```json
203
+ {
204
+ "enabled": true,
205
+ "html": "./password_reset.html",
206
+ "name": "password_reset"
207
+ }
208
+ ```
package/lib/args.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Config } from './types';
2
- declare type SharedParams = {
2
+ type SharedParams = {
3
3
  proxy_url?: string;
4
4
  debug?: boolean;
5
5
  config_file?: string;
@@ -8,17 +8,17 @@ declare type SharedParams = {
8
8
  base_path?: string;
9
9
  config?: Partial<Config>;
10
10
  };
11
- declare type ImportSpecificParams = {
11
+ type ImportSpecificParams = {
12
12
  input_file: string;
13
13
  };
14
- declare type ExportSpecificParams = {
14
+ type ExportSpecificParams = {
15
15
  format: 'yaml' | 'directory';
16
16
  output_folder: string;
17
17
  export_ids?: boolean;
18
18
  };
19
- export declare type ExportParams = ExportSpecificParams & SharedParams;
20
- export declare type ImportParams = ImportSpecificParams & SharedParams;
21
- export declare type CliParams = (ExportParams | ImportParams) & {
19
+ export type ExportParams = ExportSpecificParams & SharedParams;
20
+ export type ImportParams = ImportSpecificParams & SharedParams;
21
+ export type CliParams = (ExportParams | ImportParams) & {
22
22
  _: ['export' | 'import' | 'deploy' | 'dump'];
23
23
  };
24
24
  declare function getParams(): CliParams;
package/lib/args.js CHANGED
@@ -96,3 +96,4 @@ exports.getParams = getParams;
96
96
  exports.default = {
97
97
  getParams,
98
98
  };
99
+ //# sourceMappingURL=args.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AA8B1B,SAAS,SAAS;IAChB,MAAM,IAAI,GAAG,eAAK;SACf,aAAa,CAAC,CAAC,EAAE,uBAAuB,CAAC;SACzC,KAAK,CAAC,kBAAkB,CAAC;SACzB,MAAM,CAAC,OAAO,EAAE;QACf,KAAK,EAAE,GAAG;QACV,QAAQ,EAAE,+BAA+B;QACzC,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AAQ,EAAE,6DAA6D;YACvE,OAAO,EAAE,IAAI;YACb,OAAO,EAAE,IAAI;SACd;QACD,UAAU,EAAE;YACV,KAAK,EAAE,GAAG;YACV,QAAQ,EAAE,+CAA+C;YACzD,IAAI,EAAE,SAAS;YACf,OAAO,EAAE,KAAK;SACf;KACF,CAAC;SACD,OAAO,CACN,oDAAoD,EACpD,4CAA4C,CAC7C;SACA,OAAO,CACN,yDAAyD,EACzD,iDAAiD,CAClD;SACA,OAAO,CAAC,yCAAyC,EAAE,uBAAuB,CAAC;SAC3E,OAAO,CAAC,2CAA2C,EAAE,uBAAuB,CAAC;SAC7E,OAAO,CACN,kDAAkD,EAClD,4CAA4C,CAC7C;SACA,OAAO,CACN,uDAAuD,EACvD,iDAAiD,CAClD;SACA,OAAO,CAAC,yCAAyC,EAAE,uBAAuB,CAAC;SAC3E,OAAO,CAAC,2CAA2C,EAAE,uBAAuB,CAAC;SAC7E,QAAQ,CACP,kHAAkH,CACnH;SACA,IAAI,CAAC,IAAI,CAAC,CAAC;IACd,yIAAyI;IACzI,OAAO,IAAI,CAAC,IAAI,CAAC;AACnB,CAAC;AAMQ,8BAAS;AAJlB,kBAAe;IACb,SAAS;CACV,CAAC"}
@@ -53,3 +53,4 @@ function exportCMD(params) {
53
53
  });
54
54
  }
55
55
  exports.default = exportCMD;
56
+ //# sourceMappingURL=export.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"export.js","sourceRoot":"","sources":["../../src/commands/export.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,oDAA4B;AAE5B,uDAA4B;AAC5B,oCAAuC;AACvC,4CAAgD;AAIhD,SAA8B,SAAS,CAAC,MAAoB;;QAC1D,MAAM,EACJ,aAAa,EAAE,YAAY,EAC3B,SAAS,EAAE,QAAQ,EACnB,WAAW,EAAE,UAAU,EACvB,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,SAAS,EACrB,MAAM,EAAE,YAAY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AE,CAAC;QAErB,MAAM,MAAM,GAAG,IAAA,6BAAa,GAAE,CAAC;QAC/B,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,eAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;QAE5C,iGAAiG;QACjG,MAAM,IAAA,cAAW,EAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAE9D,gBAAG,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;IAChC,CAAC;CAAA;AA/CD,4BA+CC"}
@@ -11,3 +11,4 @@ exports.default = {
11
11
  deploy: import_1.default,
12
12
  dump: export_1.default,
13
13
  };
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/commands/index.ts"],"names":[],"mappings":";;;;;AAAA,sDAAiC;AACjC,sDAAiC;AAEjC,kBAAe;IACb,MAAM,EAAE,gBAAS;IACjB,MAAM,EAAE,gBAAS;IACjB,MAAM,EAAE,gBAAS;IACjB,IAAI,EAAE,gBAAS;CAChB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { Config } from './types';
2
- export declare type ConfigFunction = (arg0: keyof Config) => any;
2
+ export type ConfigFunction = (arg0: keyof Config) => any;
3
3
  export declare const configFactory: () => {
4
4
  (key: keyof Config): any;
5
5
  setProvider(providerFunction: ConfigFunction): void;
@@ -22,3 +22,4 @@ const configFactory = () => {
22
22
  return config;
23
23
  };
24
24
  exports.configFactory = configFactory;
25
+ //# sourceMappingURL=configFactory.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configFactory.js","sourceRoot":"","sources":["../src/configFactory.ts"],"names":[],"mappings":";;;AAIO,MAAM,aAAa,GAAG,GAAG,EAAE;IAChC,MAAM,QAAQ,GAAoB,EAAE,CAAC;IACrC,IAAI,eAAe,GAA0B,IAAI,CAAC;IAElD,MAAM,MAAM,GAAG,SAAS,SAAS,CAAC,GAAiB;QACjD,IAAI,QAAQ,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE;YAC7B,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;SACtB;QAED,IAAI,CAAC,eAAe,EAAE;YACpB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAC;SAC9D;QAED,OAAO,eAAe,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC,CAAC;IAEF,MAAM,CAAC,WAAW,GAAG,SAAS,WAAW,CAAC,gBAAgC;QACxE,eAAe,GAAG,gBAAgB,CAAC;IACrC,CAAC,CAAC;IAEF,MAAM,CAAC,QAAQ,GAAG,SAAS,QAAQ,CAAC,GAAiB,EAAE,KAAU;QAC/D,QAAQ,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;IACxB,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAzBW,QAAA,aAAa,iBAyBxB"}
@@ -19,3 +19,4 @@ function emailProviderDefaults(emailProvider) {
19
19
  return updated;
20
20
  }
21
21
  exports.emailProviderDefaults = emailProviderDefaults;
22
+ //# sourceMappingURL=defaults.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.js","sourceRoot":"","sources":["../../src/context/defaults.ts"],"names":[],"mappings":";;;AAAA,SAAgB,qBAAqB,CAAC,aAAa;IACjD,sBAAsB;IACtB,MAAM,OAAO,qBAAQ,aAAa,CAAE,CAAC;IAErC,MAAM,eAAe,GAAG,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC;IAEzE,6DAA6D;IAC7D,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAEzB,IAAI,eAAe,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QAClC,OAAO,CAAC,WAAW,mBACjB,OAAO,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,YAAY,IACzC,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC,CAC/B,CAAC;KACH;IAED,IAAI,IAAI,KAAK,MAAM,EAAE;QACnB,OAAO,CAAC,WAAW,mBACjB,SAAS,EAAE,mBAAmB,EAC9B,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAE,eAAe,EAC1B,SAAS,EAAE,eAAe,IACvB,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC,CAC/B,CAAC;KACH;IAED,IAAI,IAAI,KAAK,KAAK,EAAE;QAClB,OAAO,CAAC,WAAW,mBACjB,WAAW,EAAE,uBAAuB,EACpC,eAAe,EAAE,2BAA2B,EAC5C,MAAM,EAAE,oBAAoB,IACzB,CAAC,OAAO,CAAC,WAAW,IAAI,EAAE,CAAC,CAC/B,CAAC;KACH;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AApCD,sDAoCC"}
@@ -1,5 +1,5 @@
1
1
  import { DirectoryHandler } from '.';
2
2
  import { Asset, ParsedAsset } from '../../../types';
3
- declare type ParsedActions = ParsedAsset<'actions', Asset[]>;
3
+ type ParsedActions = ParsedAsset<'actions', Asset[]>;
4
4
  declare const actionsHandler: DirectoryHandler<ParsedActions>;
5
5
  export default actionsHandler;
@@ -18,6 +18,7 @@ const path_1 = __importDefault(require("path"));
18
18
  const tools_1 = require("../../../tools");
19
19
  const utils_1 = require("../../../utils");
20
20
  const logger_1 = __importDefault(require("../../../logger"));
21
+ const actions_1 = require("../../../tools/auth0/handlers/actions");
21
22
  function parse(context) {
22
23
  const actionsFolder = path_1.default.join(context.filePath, tools_1.constants.ACTIONS_DIRECTORY);
23
24
  if (!(0, utils_1.existsMustBeDir)(actionsFolder))
@@ -27,13 +28,12 @@ function parse(context) {
27
28
  const action = Object.assign({}, (0, utils_1.loadJSON)(file, context.mappings));
28
29
  const actionFolder = path_1.default.join(tools_1.constants.ACTIONS_DIRECTORY, `${action.name}`);
29
30
  if (action.code) {
30
- action.code = context.loadFile(action.code, actionFolder);
31
+ const toUnixPath = somePath => somePath.replace(/[\\/]+/g, '/').replace(/^([a-zA-Z]+:|\.\/)/, '');
32
+ action.code = context.loadFile(toUnixPath(action.code), actionFolder);
31
33
  }
32
34
  return action;
33
35
  });
34
- return {
35
- actions,
36
- };
36
+ return { actions };
37
37
  }
38
38
  function mapSecrets(secrets) {
39
39
  if (secrets && secrets.length > 0) {
@@ -64,6 +64,7 @@ function mapToAction(filePath, action) {
64
64
  secrets: mapSecrets(action.secrets),
65
65
  supported_triggers: action.supported_triggers,
66
66
  deployed: action.deployed || action.all_changes_deployed,
67
+ installed_integration_id: action.installed_integration_id,
67
68
  };
68
69
  }
69
70
  function dump(context) {
@@ -71,10 +72,18 @@ function dump(context) {
71
72
  const { actions } = context.assets;
72
73
  if (!actions)
73
74
  return;
75
+ // Marketplace actions are not currently supported for management (See ESD-23225)
76
+ const filteredActions = actions.filter((action) => {
77
+ if ((0, actions_1.isMarketplaceAction)(action)) {
78
+ logger_1.default.warn(`Skipping export of marketplace action "${action.name}". Management of marketplace actions are not currently supported.`);
79
+ return false;
80
+ }
81
+ return true;
82
+ });
74
83
  // Create Actions folder
75
84
  const actionsFolder = path_1.default.join(context.filePath, tools_1.constants.ACTIONS_DIRECTORY);
76
85
  fs_extra_1.default.ensureDirSync(actionsFolder);
77
- actions.forEach((action) => {
86
+ filteredActions.forEach((action) => {
78
87
  // Dump template metadata
79
88
  const name = (0, utils_1.sanitize)(action.name);
80
89
  const actionFile = path_1.default.join(actionsFolder, `${name}.json`);
@@ -88,3 +97,4 @@ const actionsHandler = {
88
97
  dump,
89
98
  };
90
99
  exports.default = actionsHandler;
100
+ //# sourceMappingURL=actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,sCAAsC;AACtC,wDAA0B;AAC1B,gDAAwB;AACxB,0CAA2C;AAE3C,0CAA+E;AAC/E,6DAAkC;AAIlC,mEAAoF;AAIpF,SAAS,KAAK,CAAC,OAAyB;I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sset<'attackProtection', {
3
+ type ParsedAttackProtection = ParsedAsset<'attackProtection', {
4
4
  breachedPasswordDetection: Asset;
5
5
  bruteForceProtection: Asset;
6
6
  suspiciousIpThrottling: Asset;
@@ -60,3 +60,4 @@ const attackProtectionHandler = {
60
60
  dump,
61
61
  };
62
62
  exports.default = attackProtectionHandler;
63
+ //# sourceMappingURL=attackProtection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attackProtection.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/attackProtection.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wDAA0B;AAC1B,gDAAwB;AACxB,0CAA2C;AAC3C,0CAAqE;AAcrE,SAAS,qBAAqB,CAAC,QAAgB;IAM7C,MAAM,SAAS,GAAG,cAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAS,CAAC,2BAA2B,CAAC,CAAC;IAE7E,OAAO;QACL,SAAS,EAAE,SAAS;QACpB,yBAAyB,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC;QACnF,oBAAoB,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,6BAA6B,CAAC;QACzE,sBAAsB,EAAE,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,+BAA+B,CAAC;KAC9E,CAAC;AACJ,CAAC;AAED,SAAS,KAAK,CAAC,OAAyB;IACtC,MAAM,KAAK,GAAG,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAEtD,IAAI,CAAC,IAAA,uBAAe,EAAC,KAAK,CAAC,SAAS,CAAC,EAAE;QACrC,OAAO;YACL,gBAAgB,EAAE,IAAI;SACvB,CAAC;KACH;IAED,MAAM,yBAAyB,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,yBAAyB,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC9F,MAAM,oBAAoB,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,oBAAoB,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IACpF,MAAM,sBAAsB,GAAG,IAAA,gBAAQ,EAAC,KAAK,CAAC,sBAAsB,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAExF,OAAO;QACL,gBAAgB,EAAE;YAChB,yBAAyB;YACzB,oBAAoB;YACpB,sBAAsB;SACvB;KACF,CAAC;AACJ,CAAC;AAED,SAAe,IAAI,CAAC,OAAyB;;QAC3C,MAAM,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAE5C,IAAI,CAAC,gBAAgB;YAAE,OAAO;QAE9B,MAAM,KAAK,GAAG,qBAAqB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtD,kBAAE,CAAC,aAAa,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAElC,IAAA,gBAAQ,EAAC,KAAK,CAAC,yBAAyB,EAAE,gBAAgB,CAAC,yBAAyB,CAAC,CAAC;QACtF,IAAA,gBAAQ,EAAC,KAAK,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,oBAAoB,CAAC,CAAC;QAC5E,IAAA,gBAAQ,EAAC,KAAK,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,sBAAsB,CAAC,CAAC;IAClF,CAAC;CAAA;AAED,MAAM,uBAAuB,GAA6C;IACxE,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,uBAAuB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { DirectoryHandler } from '.';
2
2
  import { Asset, ParsedAsset } from '../../../types';
3
- declare type ParsedBranding = ParsedAsset<'branding', Asset>;
3
+ type ParsedBranding = ParsedAsset<'branding', Asset>;
4
4
  declare const brandingHandler: DirectoryHandler<ParsedBranding>;
5
5
  export default brandingHandler;
@@ -88,3 +88,4 @@ const brandingHandler = {
88
88
  dump,
89
89
  };
90
90
  exports.default = brandingHandler;
91
+ //# sourceMappingURL=branding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"branding.js","sourceRoot":"","s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
+ type ParsedClientGrants = ParsedAsset<'clientGrants', Asset[]>;
4
4
  declare const clientGrantsHandler: DirectoryHandler<ParsedClientGrants>;
5
5
  export default clientGrantsHandler;
@@ -38,9 +38,10 @@ function dump(context) {
38
38
  // Convert client_id to the client name for readability
39
39
  clientGrants.forEach((grant) => {
40
40
  const dumpGrant = Object.assign({}, grant);
41
- if (context.assets.clientsOrig)
41
+ if (context.assets.clientsOrig) {
42
42
  dumpGrant.client_id = (0, utils_1.convertClientIdToName)(dumpGrant.client_id, context.assets.clientsOrig);
43
- const name = (0, utils_1.sanitize)(`${dumpGrant.client_id} (${dumpGrant.audience})`);
43
+ }
44
+ const name = (0, utils_1.sanitize)(`${dumpGrant.client_id}`);
44
45
  const grantFile = path_1.default.join(grantsFolder, `${name}.json`);
45
46
  (0, utils_1.dumpJSON)(grantFile, dumpGrant);
46
47
  });
@@ -51,3 +52,4 @@ const clientGrantsHandler = {
51
52
  dump,
52
53
  };
53
54
  exports.default = clientGrantsHandler;
55
+ //# sourceMappingURL=clientGrants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clientGrants.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/clientGrants.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wDAA0B;AAC1B,gDAAwB;AACxB,0CAA2C;AAE3C,0CAOwB;AAOxB,SAAS,KAAK,CAAC,OAAyB;IACtC,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,iBAAS,CAAC,wBAAwB,CAAC,CAAC;IACrF,IAAI,CAAC,IAAA,uBAAe,EAAC,YAAY,CAAC;QAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO;IAE1E,MAAM,UAAU,GAAG,IAAA,gBAAQ,EAAC,YAAY,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAErD,MAAM,YAAY,GAAG,UAAU;SAC5B,GAAG,CAAC,CAAC,CAAC,EAAE,EA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1
  import { Asset, ParsedAsset } from '../../../types';
2
2
  import { DirectoryHandler } from '.';
3
- declare type ParsedClients = ParsedAsset<'clients', Asset[]>;
3
+ type ParsedClients = ParsedAsset<'clients', Asset[]>;
4
4
  declare const clientsHandler: DirectoryHandler<ParsedClients>;
5
5
  export default clientsHandler;
@@ -64,3 +64,4 @@ const clientsHandler = {
64
64
  dump,
65
65
  };
66
66
  exports.default = clientsHandler;
67
+ //# sourceMappingURL=clients.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clients.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/clients.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wDAA0B;AAC1B,gDAAwB;AACxB,0CAAuE;AAEvE,6DAAkC;AAClC,0CAQwB;AAOxB,SAAS,KAAK,CAAC,OAAyB;IACtC,MAAM,aAAa,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,iBAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/E,IAAI,CAAC,IAAA,uBAAe,EAAC,aAAa,CAAC;QAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO;IAEtE,MAAM,UAAU,GAAG,IAAA,gBAAQ,EAAC,aAAa,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAEtD,MAAM,OAAO,GAAG,UAAU;SACvB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACT,MAAM,MAAM,GAAG,IAAA,gBAAQ,EAAC,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QAE7C,IAAI,MAAM,CAAC,iBAAiB,EAAE;YAC5B,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;YAExE,IAAI,IAAA,cAAM,EAAC,YAAY,CAAC,EAAE;gBACxB,MAAM,CAAC,iBAAiB,GAAG,IAAA,kCAA0B,EAAC,YAAY,EAAE,OAAO,CAAC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C;QAClD,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAED,MAAM,cAAc,GAAoC;IACtD,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,cAAc,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { DirectoryHandler } from '.';
2
2
  import { Asset, ParsedAsset } from '../../../types';
3
- declare type ParsedConnections = ParsedAsset<'connections', Asset[]>;
3
+ type ParsedConnections = ParsedAsset<'connections', Asset[]>;
4
4
  declare const connectionsHandler: DirectoryHandler<ParsedConnections>;
5
5
  export default connectionsHandler;
@@ -72,3 +72,4 @@ const connectionsHandler = {
72
72
  dump,
73
73
  };
74
74
  exports.default = connectionsHandler;
75
+ //# sourceMappingURL=connections.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connections.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/connections.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wDAA0B;AAC1B,gDAAwB;AACxB,0CAAuE;AAEvE,6DAAkC;AAClC,0CASwB;AAOxB,SAAS,KAAK,CAAC,OAAyB;IACtC,MAAM,mBAAmB,GACvB,OAAO,CAAC,MAAM,CAAC,2BAA2B,IAAI,iBAAS,CAAC,qBAAqB,CAAC;IAChF,MAAM,iBAAiB,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;IAC3E,IAAI,CAAC,IAAA,uBAAe,EAAC,iBAAiB,CAAC;QAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO;IAE9E,MAAM,UAAU,GAAG,IAAA,gBAAQ,EAAC,iBAAiB,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAE1D,MAAM,WAAW,GAAG,UAAU;SAC3B,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACT,MAAM,UAAU,GAAG,IAAA,gBAAQ,EAAC,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;QAEjD,IAAI,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vF,CAAC,CACH,CAAC;YAEF,MAAM,cAAc,GAAG,IAAA,gBAAQ,EAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;YAEvD,IAAI,gBAAgB,CAAC,QAAQ,KAAK,OAAO,EAAE;gBACzC,IAAA,kBAAU,EAAC,gBAAgB,EAAE,oBAAoB,CAAC,CAAC;gBACnD,MAAM,IAAI,GAAG,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC;gBACjD,MAAM,mBAAmB,GAAG,cAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,GAAG,cAAc,OAAO,CAAC,CAAC;gBAEnF,gBAAG,CAAC,IAAI,CAAC,WAAW,mBAAmB,EAAE,CAAC,CAAC;gBAC3C,kBAAE,CAAC,aAAa,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAC;gBAE5C,gBAAgB,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,GAAG,KAAK,cAAc,OAAO,CAAC;aAClE;YAED,MAAM,cAAc,GAAG,cAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,GAAG,cAAc,OAAO,CAAC,CAAC;YAC9E,IAAA,gBAAQ,EAAC,cAAc,EAAE,gBAAgB,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAED,MAAM,kBAAkB,GAAwC;IAC9D,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { DirectoryHandler } from '.';
2
2
  import { Asset, ParsedAsset } from '../../../types';
3
- declare type ParsedCustomDomains = ParsedAsset<'customDomains', Asset[]>;
3
+ type ParsedCustomDomains = ParsedAsset<'customDomains', Asset[]>;
4
4
  declare const customDomainsHandler: DirectoryHandler<ParsedCustomDomains>;
5
5
  export default customDomainsHandler;
@@ -44,3 +44,4 @@ const customDomainsHandler = {
44
44
  dump,
45
45
  };
46
46
  exports.default = customDomainsHandler;
47
+ //# sourceMappingURL=customDomains.js.map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,iBAAiB,EAAE,aAAa,CAAC,CAAC;IAC7C,CAAC;CAAA;AAED,MAAM,oBAAoB,GAA0C;IAClE,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { DirectoryHandler } from '.';
2
2
  import { Asset, ParsedAsset } from '../../../types';
3
- declare type ParsedDatabases = ParsedAsset<'databases', Asset[]>;
3
+ type ParsedDatabases = ParsedAsset<'databases', Asset[]>;
4
4
  declare const databasesHandler: DirectoryHandler<ParsedDatabases>;
5
5
  export default databasesHandler;
@@ -83,13 +83,14 @@ function dump(context) {
83
83
  enabled_clients: (0, utils_1.mapClientID2NameSorted)(database.enabled_clients, context.assets.clientsOrig || []),
84
84
  })), { options: Object.assign(Object.assign({}, database.options), (database.options.customScripts && {
85
85
  customScripts: Object.entries(database.options.customScripts)
86
- //@ts-ignore
86
+ //@ts-ignore because we'll fix this in subsequent PR
87
87
  .sort(sortCustomScripts)
88
88
  .reduce((scripts, [name, script]) => {
89
89
  // Dump custom script to file
90
90
  const scriptName = (0, utils_1.sanitize)(`${name}.js`);
91
91
  const scriptFile = path_1.default.join(dbFolder, scriptName);
92
92
  logger_1.default.info(`Writing ${scriptFile}`);
93
+ //@ts-ignore because we'll fix this in subsequent PR
93
94
  fs_extra_1.default.writeFileSync(scriptFile, script);
94
95
  scripts[name] = `./${scriptName}`;
95
96
  return scripts;
@@ -105,3 +106,4 @@ const databasesHandler = {
105
106
  dump,
106
107
  };
107
108
  exports.default = databasesHandler;
109
+ //# sourceMappingURL=databases.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"databases.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/databases.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,wDAA0B;AAC1B,0CAAuE;AAEvE,6DAAkC;AAClC,0CAOwB;AAqBxB,SAAS,WAAW,CAAC,MAAc,EAAE,QAAQ;IAC3C,MAAM,QAAQ,G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AC;wBAClC,OAAO,OAAO,CAAC;oBACjB,CAAC,EAAE,EAAE,CAAC;iBACT,CAAC,IAEL,CAAC;YAEF,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,eAAe,CAAC,CAAC;YAC1D,IAAA,gBAAQ,EAAC,YAAY,EAAE,SAAS,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC;CAAA;AAED,MAAM,gBAAgB,GAAsC;IAC1D,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { DirectoryHandler } from '.';
2
2
  import { Asset, ParsedAsset } from '../../../types';
3
- declare type ParsedEmailProvider = ParsedAsset<'emailProvider', Asset>;
3
+ type ParsedEmailProvider = ParsedAsset<'emailProvider', Asset>;
4
4
  declare const emailProviderHandler: DirectoryHandler<ParsedEmailProvider>;
5
5
  export default emailProviderHandler;
@@ -53,3 +53,4 @@ const emailProviderHandler = {
53
53
  dump,
54
54
  };
55
55
  exports.default = emailProviderHandler;
56
+ //# sourceMappingURL=emailProvider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"emailProvider.js","sourceRoot":"","sources":["../../../../src/context/directory/handlers/emailProvider.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,wDAA0B;AAC1B,gDAAwB;AACxB,0CAA2C;AAE3C,0CAA6E;AAC7E,6CAAuD;AAOvD,SAAS,KAAK,CAAC,OAAyB;IACtC,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,iBAAS,CAAC,yBAAyB,CAAC,CAAC;IACtF,IAAI,CAAC,IAAA,uBAAe,EAAC,YAAY,CAAC;QAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO;IAE3E,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;IAE9D,IAAI,IAAA,cAAM,EAAC,YAAY,CAAC,EAAE;QACxB,OAAO;YACL,aAAa,EAAE,IAAA,gBAAQ,EAAC,YAAY,EAAE,OAAO,CAAC,QAAQ,CAAC;SACxD,CAAC;KACH;IAED,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,CAAC;AACjC,CAAC;AAED,SAAe,IAAI,CAAC,OAAyB;;QAC3C,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,aAAa;YAAE,OAAO,CAAC,wBAAwB;QAEnE,MAAM,aAAa,GAAwC,CAAC,GAAG,EAAE;;YAC/D,MAAM,gBAAgB,GAAG,CAAA,MAAA,OAAO,CAAC,MAAM,CAAC,OAAO,0CAAE,QAAQ,KAAI,EAAE,CAAC;YAChE,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE;gBAC/C,6DAA6D;gBAC7D,OAAO,IAAA,gCAAqB,EAAC,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;aAC5D;YACD,OAAO,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC;QACtC,CAAC,CAAC,EAAE,CAAC;QAEL,MAAM,YAAY,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,iBAAS,CAAC,yBAAyB,CAAC,CAAC;QACtF,kBAAE,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC;QAE/B,MAAM,iBAAiB,GAAG,cAAI,CAAC,IAAI,CAAC,YAAY,EAAE,eAAe,CAAC,CAAC;QACnE,IAAA,gBAAQ,EAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IAC7C,CAAC;CAAA;AAED,MAAM,oBAAoB,GAA0C;IAClE,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { DirectoryHandler } from '.';
2
2
  import { Asset, ParsedAsset } from '../../../types';
3
- declare type ParsedEmailTemplates = ParsedAsset<'emailTemplates', Asset[]>;
3
+ type ParsedEmailTemplates = ParsedAsset<'emailTemplates', Asset[]>;
4
4
  declare const emailTemplatesHandler: DirectoryHandler<ParsedEmailTemplates>;
5
5
  export default emailTemplatesHandler;
@@ -73,3 +73,4 @@ const emailTemplatesHandler = {
73
73
  dump,
74
74
  };
75
75
  exports.default = emailTemplatesHandler;
76
+ //# sourceMappingURL=emailTemplates.js.map