auth0-deploy-cli 8.20.4-beta.0 → 8.22.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 (318) hide show
  1. package/.circleci/config.yml +5 -46
  2. package/.eslintignore +5 -0
  3. package/.eslintrc +69 -0
  4. package/CHANGELOG.md +30 -6
  5. package/lib/args.js +1 -0
  6. package/lib/args.js.map +1 -0
  7. package/lib/commands/export.js +49 -41
  8. package/lib/commands/export.js.map +1 -0
  9. package/lib/commands/import.js +43 -36
  10. package/lib/commands/import.js.map +1 -0
  11. package/lib/commands/index.js +1 -0
  12. package/lib/commands/index.js.map +1 -0
  13. package/lib/configFactory.js +1 -0
  14. package/lib/configFactory.js.map +1 -0
  15. package/lib/context/defaults.js +10 -38
  16. package/lib/context/defaults.js.map +1 -0
  17. package/lib/context/directory/handlers/actions.js +39 -40
  18. package/lib/context/directory/handlers/actions.js.map +1 -0
  19. package/lib/context/directory/handlers/attackProtection.js +34 -22
  20. package/lib/context/directory/handlers/attackProtection.js.map +1 -0
  21. package/lib/context/directory/handlers/branding.js +21 -12
  22. package/lib/context/directory/handlers/branding.js.map +1 -0
  23. package/lib/context/directory/handlers/clientGrants.js +62 -52
  24. package/lib/context/directory/handlers/clientGrants.js.map +1 -0
  25. package/lib/context/directory/handlers/clients.js +60 -17
  26. package/lib/context/directory/handlers/clients.js.map +1 -0
  27. package/lib/context/directory/handlers/connectionProfiles.d.ts +11 -0
  28. package/lib/context/directory/handlers/connectionProfiles.js +59 -0
  29. package/lib/context/directory/handlers/connectionProfiles.js.map +1 -0
  30. package/lib/context/directory/handlers/connections.js +41 -32
  31. package/lib/context/directory/handlers/connections.js.map +1 -0
  32. package/lib/context/directory/handlers/customDomains.js +21 -9
  33. package/lib/context/directory/handlers/customDomains.js.map +1 -0
  34. package/lib/context/directory/handlers/databases.js +35 -37
  35. package/lib/context/directory/handlers/databases.js.map +1 -0
  36. package/lib/context/directory/handlers/emailProvider.js +36 -22
  37. package/lib/context/directory/handlers/emailProvider.js.map +1 -0
  38. package/lib/context/directory/handlers/emailTemplates.js +29 -20
  39. package/lib/context/directory/handlers/emailTemplates.js.map +1 -0
  40. package/lib/context/directory/handlers/flowVaultConnections.js +49 -39
  41. package/lib/context/directory/handlers/flowVaultConnections.js.map +1 -0
  42. package/lib/context/directory/handlers/flows.js +48 -38
  43. package/lib/context/directory/handlers/flows.js.map +1 -0
  44. package/lib/context/directory/handlers/forms.js +48 -38
  45. package/lib/context/directory/handlers/forms.js.map +1 -0
  46. package/lib/context/directory/handlers/guardianFactorProviders.js +21 -9
  47. package/lib/context/directory/handlers/guardianFactorProviders.js.map +1 -0
  48. package/lib/context/directory/handlers/guardianFactorTemplates.js +21 -9
  49. package/lib/context/directory/handlers/guardianFactorTemplates.js.map +1 -0
  50. package/lib/context/directory/handlers/guardianFactors.js +21 -9
  51. package/lib/context/directory/handlers/guardianFactors.js.map +1 -0
  52. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js +20 -8
  53. package/lib/context/directory/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
  54. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js +20 -8
  55. package/lib/context/directory/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
  56. package/lib/context/directory/handlers/guardianPolicies.js +20 -8
  57. package/lib/context/directory/handlers/guardianPolicies.js.map +1 -0
  58. package/lib/context/directory/handlers/hooks.js +34 -24
  59. package/lib/context/directory/handlers/hooks.js.map +1 -0
  60. package/lib/context/directory/handlers/index.js +3 -0
  61. package/lib/context/directory/handlers/index.js.map +1 -0
  62. package/lib/context/directory/handlers/logStreams.js +24 -12
  63. package/lib/context/directory/handlers/logStreams.js.map +1 -0
  64. package/lib/context/directory/handlers/networkACLs.js +34 -22
  65. package/lib/context/directory/handlers/networkACLs.js.map +1 -0
  66. package/lib/context/directory/handlers/organizations.js +44 -39
  67. package/lib/context/directory/handlers/organizations.js.map +1 -0
  68. package/lib/context/directory/handlers/pages.js +37 -31
  69. package/lib/context/directory/handlers/pages.js.map +1 -0
  70. package/lib/context/directory/handlers/phoneProvider.js +24 -12
  71. package/lib/context/directory/handlers/phoneProvider.js.map +1 -0
  72. package/lib/context/directory/handlers/prompts.js +76 -58
  73. package/lib/context/directory/handlers/prompts.js.map +1 -0
  74. package/lib/context/directory/handlers/resourceServers.d.ts +1 -1
  75. package/lib/context/directory/handlers/resourceServers.js +30 -18
  76. package/lib/context/directory/handlers/resourceServers.js.map +1 -0
  77. package/lib/context/directory/handlers/roles.js +31 -21
  78. package/lib/context/directory/handlers/roles.js.map +1 -0
  79. package/lib/context/directory/handlers/rules.js +32 -22
  80. package/lib/context/directory/handlers/rules.js.map +1 -0
  81. package/lib/context/directory/handlers/rulesConfigs.js +15 -3
  82. package/lib/context/directory/handlers/rulesConfigs.js.map +1 -0
  83. package/lib/context/directory/handlers/selfServiceProfiles.js +40 -28
  84. package/lib/context/directory/handlers/selfServiceProfiles.js.map +1 -0
  85. package/lib/context/directory/handlers/tenant.js +34 -14
  86. package/lib/context/directory/handlers/tenant.js.map +1 -0
  87. package/lib/context/directory/handlers/themes.js +21 -9
  88. package/lib/context/directory/handlers/themes.js.map +1 -0
  89. package/lib/context/directory/handlers/triggers.d.ts +1 -1
  90. package/lib/context/directory/handlers/triggers.js +26 -16
  91. package/lib/context/directory/handlers/triggers.js.map +1 -0
  92. package/lib/context/directory/handlers/userAttributeProfiles.d.ts +1 -1
  93. package/lib/context/directory/handlers/userAttributeProfiles.js +26 -16
  94. package/lib/context/directory/handlers/userAttributeProfiles.js.map +1 -0
  95. package/lib/context/directory/index.js +80 -66
  96. package/lib/context/directory/index.js.map +1 -0
  97. package/lib/context/index.js +20 -9
  98. package/lib/context/index.js.map +1 -0
  99. package/lib/context/yaml/handlers/actions.js +41 -39
  100. package/lib/context/yaml/handlers/actions.js.map +1 -0
  101. package/lib/context/yaml/handlers/attackProtection.js +41 -27
  102. package/lib/context/yaml/handlers/attackProtection.js.map +1 -0
  103. package/lib/context/yaml/handlers/branding.js +69 -47
  104. package/lib/context/yaml/handlers/branding.js.map +1 -0
  105. package/lib/context/yaml/handlers/clientGrants.js +40 -26
  106. package/lib/context/yaml/handlers/clientGrants.js.map +1 -0
  107. package/lib/context/yaml/handlers/clients.js +85 -41
  108. package/lib/context/yaml/handlers/clients.js.map +1 -0
  109. package/lib/context/yaml/handlers/connectionProfiles.d.ts +11 -0
  110. package/lib/context/yaml/handlers/connectionProfiles.js +44 -0
  111. package/lib/context/yaml/handlers/connectionProfiles.js.map +1 -0
  112. package/lib/context/yaml/handlers/connections.js +67 -63
  113. package/lib/context/yaml/handlers/connections.js.map +1 -0
  114. package/lib/context/yaml/handlers/customDomains.js +19 -7
  115. package/lib/context/yaml/handlers/customDomains.js.map +1 -0
  116. package/lib/context/yaml/handlers/databases.js +65 -63
  117. package/lib/context/yaml/handlers/databases.js.map +1 -0
  118. package/lib/context/yaml/handlers/emailProvider.js +37 -22
  119. package/lib/context/yaml/handlers/emailProvider.js.map +1 -0
  120. package/lib/context/yaml/handlers/emailTemplates.js +39 -28
  121. package/lib/context/yaml/handlers/emailTemplates.js.map +1 -0
  122. package/lib/context/yaml/handlers/flowVaultConnections.js +50 -36
  123. package/lib/context/yaml/handlers/flowVaultConnections.js.map +1 -0
  124. package/lib/context/yaml/handlers/flows.js +66 -55
  125. package/lib/context/yaml/handlers/flows.js.map +1 -0
  126. package/lib/context/yaml/handlers/forms.js +66 -55
  127. package/lib/context/yaml/handlers/forms.js.map +1 -0
  128. package/lib/context/yaml/handlers/guardianFactorProviders.js +19 -7
  129. package/lib/context/yaml/handlers/guardianFactorProviders.js.map +1 -0
  130. package/lib/context/yaml/handlers/guardianFactorTemplates.js +19 -7
  131. package/lib/context/yaml/handlers/guardianFactorTemplates.js.map +1 -0
  132. package/lib/context/yaml/handlers/guardianFactors.js +19 -7
  133. package/lib/context/yaml/handlers/guardianFactors.js.map +1 -0
  134. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js +19 -7
  135. package/lib/context/yaml/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
  136. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js +19 -7
  137. package/lib/context/yaml/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
  138. package/lib/context/yaml/handlers/guardianPolicies.js +19 -7
  139. package/lib/context/yaml/handlers/guardianPolicies.js.map +1 -0
  140. package/lib/context/yaml/handlers/hooks.js +48 -34
  141. package/lib/context/yaml/handlers/hooks.js.map +1 -0
  142. package/lib/context/yaml/handlers/index.js +3 -0
  143. package/lib/context/yaml/handlers/index.js.map +1 -0
  144. package/lib/context/yaml/handlers/logStreams.js +30 -16
  145. package/lib/context/yaml/handlers/logStreams.js.map +1 -0
  146. package/lib/context/yaml/handlers/networkACLs.js +39 -25
  147. package/lib/context/yaml/handlers/networkACLs.js.map +1 -0
  148. package/lib/context/yaml/handlers/organizations.js +46 -37
  149. package/lib/context/yaml/handlers/organizations.js.map +1 -0
  150. package/lib/context/yaml/handlers/pages.js +39 -31
  151. package/lib/context/yaml/handlers/pages.js.map +1 -0
  152. package/lib/context/yaml/handlers/phoneProvider.js +31 -17
  153. package/lib/context/yaml/handlers/phoneProvider.js.map +1 -0
  154. package/lib/context/yaml/handlers/prompts.js +47 -22
  155. package/lib/context/yaml/handlers/prompts.js.map +1 -0
  156. package/lib/context/yaml/handlers/resourceServers.d.ts +1 -1
  157. package/lib/context/yaml/handlers/resourceServers.js +33 -21
  158. package/lib/context/yaml/handlers/resourceServers.js.map +1 -0
  159. package/lib/context/yaml/handlers/roles.js +33 -19
  160. package/lib/context/yaml/handlers/roles.js.map +1 -0
  161. package/lib/context/yaml/handlers/rules.js +39 -28
  162. package/lib/context/yaml/handlers/rules.js.map +1 -0
  163. package/lib/context/yaml/handlers/rulesConfigs.js +28 -14
  164. package/lib/context/yaml/handlers/rulesConfigs.js.map +1 -0
  165. package/lib/context/yaml/handlers/selfServiceProfiles.js +43 -29
  166. package/lib/context/yaml/handlers/selfServiceProfiles.js.map +1 -0
  167. package/lib/context/yaml/handlers/tenant.js +41 -19
  168. package/lib/context/yaml/handlers/tenant.js.map +1 -0
  169. package/lib/context/yaml/handlers/themes.js +19 -7
  170. package/lib/context/yaml/handlers/themes.js.map +1 -0
  171. package/lib/context/yaml/handlers/triggers.d.ts +1 -1
  172. package/lib/context/yaml/handlers/triggers.js +29 -15
  173. package/lib/context/yaml/handlers/triggers.js.map +1 -0
  174. package/lib/context/yaml/handlers/userAttributeProfiles.d.ts +1 -1
  175. package/lib/context/yaml/handlers/userAttributeProfiles.js +19 -7
  176. package/lib/context/yaml/handlers/userAttributeProfiles.js.map +1 -0
  177. package/lib/context/yaml/index.js +128 -120
  178. package/lib/context/yaml/index.js.map +1 -0
  179. package/lib/index.d.ts +96 -4
  180. package/lib/index.js +34 -24
  181. package/lib/index.js.map +1 -0
  182. package/lib/keywordPreservation.d.ts +1 -1
  183. package/lib/keywordPreservation.js +6 -10
  184. package/lib/keywordPreservation.js.map +1 -0
  185. package/lib/logger.js +1 -0
  186. package/lib/logger.js.map +1 -0
  187. package/lib/readonly.js +4 -3
  188. package/lib/readonly.js.map +1 -0
  189. package/lib/sessionDurationsToMinutes.js +1 -0
  190. package/lib/sessionDurationsToMinutes.js.map +1 -0
  191. package/lib/tools/auth0/client.js +127 -108
  192. package/lib/tools/auth0/client.js.map +1 -0
  193. package/lib/tools/auth0/handlers/actions.d.ts +26 -8
  194. package/lib/tools/auth0/handlers/actions.js +149 -138
  195. package/lib/tools/auth0/handlers/actions.js.map +1 -0
  196. package/lib/tools/auth0/handlers/attackProtection.js +92 -80
  197. package/lib/tools/auth0/handlers/attackProtection.js.map +1 -0
  198. package/lib/tools/auth0/handlers/branding.js +99 -75
  199. package/lib/tools/auth0/handlers/branding.js.map +1 -0
  200. package/lib/tools/auth0/handlers/clientGrants.d.ts +9 -2
  201. package/lib/tools/auth0/handlers/clientGrants.js +72 -65
  202. package/lib/tools/auth0/handlers/clientGrants.js.map +1 -0
  203. package/lib/tools/auth0/handlers/clients.d.ts +96 -7
  204. package/lib/tools/auth0/handlers/clients.js +221 -66
  205. package/lib/tools/auth0/handlers/clients.js.map +1 -0
  206. package/lib/tools/auth0/handlers/connectionProfiles.d.ts +182 -0
  207. package/lib/tools/auth0/handlers/connectionProfiles.js +239 -0
  208. package/lib/tools/auth0/handlers/connectionProfiles.js.map +1 -0
  209. package/lib/tools/auth0/handlers/connections.d.ts +1 -3
  210. package/lib/tools/auth0/handlers/connections.js +135 -130
  211. package/lib/tools/auth0/handlers/connections.js.map +1 -0
  212. package/lib/tools/auth0/handlers/customDomains.d.ts +1 -4
  213. package/lib/tools/auth0/handlers/customDomains.js +53 -43
  214. package/lib/tools/auth0/handlers/customDomains.js.map +1 -0
  215. package/lib/tools/auth0/handlers/databases.js +114 -94
  216. package/lib/tools/auth0/handlers/databases.js.map +1 -0
  217. package/lib/tools/auth0/handlers/default.d.ts +2 -2
  218. package/lib/tools/auth0/handlers/default.js +171 -210
  219. package/lib/tools/auth0/handlers/default.js.map +1 -0
  220. package/lib/tools/auth0/handlers/emailProvider.js +52 -41
  221. package/lib/tools/auth0/handlers/emailProvider.js.map +1 -0
  222. package/lib/tools/auth0/handlers/emailTemplates.js +71 -49
  223. package/lib/tools/auth0/handlers/emailTemplates.js.map +1 -0
  224. package/lib/tools/auth0/handlers/flowVaultConnections.d.ts +12 -5
  225. package/lib/tools/auth0/handlers/flowVaultConnections.js +143 -108
  226. package/lib/tools/auth0/handlers/flowVaultConnections.js.map +1 -0
  227. package/lib/tools/auth0/handlers/flows.d.ts +3 -2
  228. package/lib/tools/auth0/handlers/flows.js +129 -92
  229. package/lib/tools/auth0/handlers/flows.js.map +1 -0
  230. package/lib/tools/auth0/handlers/forms.d.ts +3 -3
  231. package/lib/tools/auth0/handlers/forms.js +112 -98
  232. package/lib/tools/auth0/handlers/forms.js.map +1 -0
  233. package/lib/tools/auth0/handlers/guardianFactorProviders.js +84 -61
  234. package/lib/tools/auth0/handlers/guardianFactorProviders.js.map +1 -0
  235. package/lib/tools/auth0/handlers/guardianFactorTemplates.js +68 -46
  236. package/lib/tools/auth0/handlers/guardianFactorTemplates.js.map +1 -0
  237. package/lib/tools/auth0/handlers/guardianFactors.js +45 -35
  238. package/lib/tools/auth0/handlers/guardianFactors.js.map +1 -0
  239. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js +45 -29
  240. package/lib/tools/auth0/handlers/guardianPhoneFactorMessageTypes.js.map +1 -0
  241. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js +45 -29
  242. package/lib/tools/auth0/handlers/guardianPhoneFactorSelectedProvider.js.map +1 -0
  243. package/lib/tools/auth0/handlers/guardianPolicies.js +35 -20
  244. package/lib/tools/auth0/handlers/guardianPolicies.js.map +1 -0
  245. package/lib/tools/auth0/handlers/hooks.js +153 -123
  246. package/lib/tools/auth0/handlers/hooks.js.map +1 -0
  247. package/lib/tools/auth0/handlers/index.js +3 -0
  248. package/lib/tools/auth0/handlers/index.js.map +1 -0
  249. package/lib/tools/auth0/handlers/logStreams.js +47 -42
  250. package/lib/tools/auth0/handlers/logStreams.js.map +1 -0
  251. package/lib/tools/auth0/handlers/networkACLs.d.ts +4 -5
  252. package/lib/tools/auth0/handlers/networkACLs.js +133 -115
  253. package/lib/tools/auth0/handlers/networkACLs.js.map +1 -0
  254. package/lib/tools/auth0/handlers/organizations.d.ts +9 -10
  255. package/lib/tools/auth0/handlers/organizations.js +429 -360
  256. package/lib/tools/auth0/handlers/organizations.js.map +1 -0
  257. package/lib/tools/auth0/handlers/pages.js +83 -74
  258. package/lib/tools/auth0/handlers/pages.js.map +1 -0
  259. package/lib/tools/auth0/handlers/phoneProvider.d.ts +2 -2
  260. package/lib/tools/auth0/handlers/phoneProvider.js +82 -69
  261. package/lib/tools/auth0/handlers/phoneProvider.js.map +1 -0
  262. package/lib/tools/auth0/handlers/prompts.d.ts +5 -5
  263. package/lib/tools/auth0/handlers/prompts.js +235 -240
  264. package/lib/tools/auth0/handlers/prompts.js.map +1 -0
  265. package/lib/tools/auth0/handlers/resourceServers.d.ts +2 -3
  266. package/lib/tools/auth0/handlers/resourceServers.js +106 -57
  267. package/lib/tools/auth0/handlers/resourceServers.js.map +1 -0
  268. package/lib/tools/auth0/handlers/roles.js +178 -162
  269. package/lib/tools/auth0/handlers/roles.js.map +1 -0
  270. package/lib/tools/auth0/handlers/rules.js +162 -144
  271. package/lib/tools/auth0/handlers/rules.js.map +1 -0
  272. package/lib/tools/auth0/handlers/rulesConfigs.js +39 -30
  273. package/lib/tools/auth0/handlers/rulesConfigs.js.map +1 -0
  274. package/lib/tools/auth0/handlers/scimHandler.d.ts +3 -4
  275. package/lib/tools/auth0/handlers/scimHandler.js +132 -110
  276. package/lib/tools/auth0/handlers/scimHandler.js.map +1 -0
  277. package/lib/tools/auth0/handlers/selfServiceProfiles.d.ts +5 -13
  278. package/lib/tools/auth0/handlers/selfServiceProfiles.js +204 -170
  279. package/lib/tools/auth0/handlers/selfServiceProfiles.js.map +1 -0
  280. package/lib/tools/auth0/handlers/tenant.d.ts +3 -5
  281. package/lib/tools/auth0/handlers/tenant.js +52 -45
  282. package/lib/tools/auth0/handlers/tenant.js.map +1 -0
  283. package/lib/tools/auth0/handlers/themes.d.ts +12 -12
  284. package/lib/tools/auth0/handlers/themes.js +102 -86
  285. package/lib/tools/auth0/handlers/themes.js.map +1 -0
  286. package/lib/tools/auth0/handlers/triggers.js +75 -59
  287. package/lib/tools/auth0/handlers/triggers.js.map +1 -0
  288. package/lib/tools/auth0/handlers/userAttributeProfiles.d.ts +4 -4
  289. package/lib/tools/auth0/handlers/userAttributeProfiles.js +63 -56
  290. package/lib/tools/auth0/handlers/userAttributeProfiles.js.map +1 -0
  291. package/lib/tools/auth0/index.js +48 -35
  292. package/lib/tools/auth0/index.js.map +1 -0
  293. package/lib/tools/auth0/schema.js +4 -6
  294. package/lib/tools/auth0/schema.js.map +1 -0
  295. package/lib/tools/calculateChanges.js +15 -24
  296. package/lib/tools/calculateChanges.js.map +1 -0
  297. package/lib/tools/constants.d.ts +3 -2
  298. package/lib/tools/constants.js +2 -0
  299. package/lib/tools/constants.js.map +1 -0
  300. package/lib/tools/deploy.js +29 -17
  301. package/lib/tools/deploy.js.map +1 -0
  302. package/lib/tools/index.d.ts +89 -3
  303. package/lib/tools/index.js +2 -3
  304. package/lib/tools/index.js.map +1 -0
  305. package/lib/tools/utils.d.ts +1 -1
  306. package/lib/tools/utils.js +22 -12
  307. package/lib/tools/utils.js.map +1 -0
  308. package/lib/tools/validationError.js +1 -0
  309. package/lib/tools/validationError.js.map +1 -0
  310. package/lib/types.d.ts +8 -9
  311. package/lib/types.js +1 -0
  312. package/lib/types.js.map +1 -0
  313. package/lib/utils.d.ts +58 -3
  314. package/lib/utils.js +5 -8
  315. package/lib/utils.js.map +1 -0
  316. package/package.json +12 -13
  317. package/tsconfig.json +3 -4
  318. package/eslint.config.js +0 -130
@@ -1,4 +1,13 @@
1
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
+ };
2
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
3
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
13
  };
@@ -7,39 +16,41 @@ const path_1 = __importDefault(require("path"));
7
16
  const fs_extra_1 = __importDefault(require("fs-extra"));
8
17
  const utils_1 = require("../../../utils");
9
18
  const logger_1 = __importDefault(require("../../../logger"));
10
- async function parse(context) {
11
- const { rules } = context.assets;
12
- if (!rules)
13
- return { rules: null };
14
- return {
15
- rules: [
16
- ...rules.map((rule) => ({
17
- ...rule,
18
- script: context.loadFile(rule.script),
19
- })),
20
- ],
21
- };
19
+ function parse(context) {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const { rules } = context.assets;
22
+ if (!rules)
23
+ return { rules: null };
24
+ return {
25
+ rules: [
26
+ ...rules.map((rule) => (Object.assign(Object.assign({}, rule), { script: context.loadFile(rule.script) }))),
27
+ ],
28
+ };
29
+ });
22
30
  }
23
- async function dump(context) {
24
- let { rules } = context.assets;
25
- if (!rules) {
26
- return { rules: null };
27
- }
28
- // Create Rules folder
29
- const rulesFolder = path_1.default.join(context.basePath, 'rules');
30
- fs_extra_1.default.ensureDirSync(rulesFolder);
31
- rules = rules.map((rule) => {
32
- // Dump rule to file
33
- const scriptName = (0, utils_1.sanitize)(`${rule.name}.js`);
34
- const scriptFile = path_1.default.join(rulesFolder, scriptName);
35
- logger_1.default.info(`Writing ${scriptFile}`);
36
- fs_extra_1.default.writeFileSync(scriptFile, rule.script);
37
- return { ...rule, script: `./rules/${scriptName}` };
31
+ function dump(context) {
32
+ return __awaiter(this, void 0, void 0, function* () {
33
+ let { rules } = context.assets;
34
+ if (!rules) {
35
+ return { rules: null };
36
+ }
37
+ // Create Rules folder
38
+ const rulesFolder = path_1.default.join(context.basePath, 'rules');
39
+ fs_extra_1.default.ensureDirSync(rulesFolder);
40
+ rules = rules.map((rule) => {
41
+ // Dump rule to file
42
+ const scriptName = (0, utils_1.sanitize)(`${rule.name}.js`);
43
+ const scriptFile = path_1.default.join(rulesFolder, scriptName);
44
+ logger_1.default.info(`Writing ${scriptFile}`);
45
+ fs_extra_1.default.writeFileSync(scriptFile, rule.script);
46
+ return Object.assign(Object.assign({}, rule), { script: `./rules/${scriptName}` });
47
+ });
48
+ return { rules };
38
49
  });
39
- return { rules };
40
50
  }
41
51
  const rulesHandler = {
42
52
  parse,
43
53
  dump,
44
54
  };
45
55
  exports.default = rulesHandler;
56
+ //# sourceMappingURL=rules.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rules.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/rules.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,wDAA0B;AAE1B,0CAA0C;AAC1C,6DAAkC;AAQlC,SAAe,KAAK,CAAC,OAAoB;;QACvC,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAEjC,IAAI,CAAC,KAAK;YAAE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QAEnC,OAAO;YACL,KAAK,EAAE;gBACL,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,iCAClB,IAAI,KACP,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,IACrC,CAAC;aACJ;SACF,CAAC;IACJ,CAAC;CAAA;AAED,SAAe,IAAI,CAAC,OAAoB;;QACtC,IAAI,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAE/B,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;QACzB,CAAC;QAED,sBAAsB;QACtB,MAAM,WAAW,GAAG,cAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACzD,kBAAE,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;QAE9B,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACzB,oBAAoB;YACpB,MAAM,UAAU,GAAG,IAAA,gBAAQ,EAAC,GAAG,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC;YAC/C,MAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC;YACtD,gBAAG,CAAC,IAAI,CAAC,WAAW,UAAU,EAAE,CAAC,CAAC;YAClC,kBAAE,CAAC,aAAa,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAC1C,uCAAY,IAAI,KAAE,MAAM,EAAE,WAAW,UAAU,EAAE,IAAG;QACtD,CAAC,CAAC,CAAC;QAEH,OAAO,EAAE,KAAK,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,MAAM,YAAY,GAA6B;IAC7C,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,YAAY,CAAC"}
@@ -1,23 +1,37 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- async function parse(context) {
4
- const { rulesConfigs } = context.assets;
5
- if (!rulesConfigs)
6
- return { rulesConfigs: null };
7
- return {
8
- rulesConfigs,
9
- };
12
+ function parse(context) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ const { rulesConfigs } = context.assets;
15
+ if (!rulesConfigs)
16
+ return { rulesConfigs: null };
17
+ return {
18
+ rulesConfigs,
19
+ };
20
+ });
10
21
  }
11
- async function dump(context) {
12
- const { rulesConfigs } = context.assets;
13
- if (!rulesConfigs)
14
- return { rulesConfigs: null };
15
- return {
16
- rulesConfigs: [], // even if they exist, do not export rulesConfigs as its values cannot be extracted
17
- };
22
+ function dump(context) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const { rulesConfigs } = context.assets;
25
+ if (!rulesConfigs)
26
+ return { rulesConfigs: null };
27
+ return {
28
+ rulesConfigs: [], // even if they exist, do not export rulesConfigs as its values cannot be extracted
29
+ };
30
+ });
18
31
  }
19
32
  const rulesConfigsHandler = {
20
33
  parse,
21
34
  dump,
22
35
  };
23
36
  exports.default = rulesConfigsHandler;
37
+ //# sourceMappingURL=rulesConfigs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rulesConfigs.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/rulesConfigs.ts"],"names":[],"mappings":";;;;;;;;;;;AAMA,SAAe,KAAK,CAAC,OAAoB;;QACvC,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAExC,IAAI,CAAC,YAAY;YAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;QAEjD,OAAO;YACL,YAAY;SACb,CAAC;IACJ,CAAC;CAAA;AAED,SAAe,IAAI,CAAC,OAAoB;;QACtC,MAAM,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAExC,IAAI,CAAC,YAAY;YAAE,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;QAEjD,OAAO;YACL,YAAY,EAAE,EAAE,EAAE,mFAAmF;SACtG,CAAC;IACJ,CAAC;CAAA;AAED,MAAM,mBAAmB,GAAoC;IAC3D,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
@@ -1,42 +1,56 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- async function parse(context) {
4
- const { selfServiceProfiles } = context.assets;
5
- if (!selfServiceProfiles)
6
- return { selfServiceProfiles: null };
7
- return {
8
- selfServiceProfiles,
9
- };
12
+ function parse(context) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ const { selfServiceProfiles } = context.assets;
15
+ if (!selfServiceProfiles)
16
+ return { selfServiceProfiles: null };
17
+ return {
18
+ selfServiceProfiles,
19
+ };
20
+ });
10
21
  }
11
- async function dump(context) {
12
- const { userAttributeProfiles } = context.assets;
13
- let { selfServiceProfiles } = context.assets;
14
- if (!selfServiceProfiles)
15
- return { selfServiceProfiles: null };
16
- selfServiceProfiles = selfServiceProfiles.map((profile) => {
17
- if ('created_at' in profile) {
18
- delete profile.created_at;
19
- }
20
- if ('updated_at' in profile) {
21
- delete profile.updated_at;
22
- }
23
- if (profile.user_attribute_profile_id) {
24
- const p = userAttributeProfiles?.find((uap) => uap.id === profile.user_attribute_profile_id);
25
- profile.user_attribute_profile_id = p?.name || profile.user_attribute_profile_id;
26
- if (profile.user_attributes?.length === 0) {
27
- delete profile.user_attributes;
22
+ function dump(context) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const { userAttributeProfiles } = context.assets;
25
+ let { selfServiceProfiles } = context.assets;
26
+ if (!selfServiceProfiles)
27
+ return { selfServiceProfiles: null };
28
+ selfServiceProfiles = selfServiceProfiles.map((profile) => {
29
+ var _a;
30
+ if ('created_at' in profile) {
31
+ delete profile.created_at;
32
+ }
33
+ if ('updated_at' in profile) {
34
+ delete profile.updated_at;
35
+ }
36
+ if (profile.user_attribute_profile_id) {
37
+ const p = userAttributeProfiles === null || userAttributeProfiles === void 0 ? void 0 : userAttributeProfiles.find((uap) => uap.id === profile.user_attribute_profile_id);
38
+ profile.user_attribute_profile_id = (p === null || p === void 0 ? void 0 : p.name) || profile.user_attribute_profile_id;
39
+ if (((_a = profile.user_attributes) === null || _a === void 0 ? void 0 : _a.length) === 0) {
40
+ // @ts-expect-error - ignore type error here as we know that user_attributes can be removed.
41
+ delete profile.user_attributes;
42
+ }
28
43
  }
29
- }
44
+ return Object.assign({}, profile);
45
+ });
30
46
  return {
31
- ...profile,
47
+ selfServiceProfiles,
32
48
  };
33
49
  });
34
- return {
35
- selfServiceProfiles,
36
- };
37
50
  }
38
51
  const selfServiceProfileHandler = {
39
52
  parse,
40
53
  dump,
41
54
  };
42
55
  exports.default = selfServiceProfileHandler;
56
+ //# sourceMappingURL=selfServiceProfiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selfServiceProfiles.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/selfServiceProfiles.ts"],"names":[],"mappings":";;;;;;;;;;;AAUA,SAAe,KAAK,CAAC,OAAoB;;QACvC,MAAM,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAE/C,IAAI,CAAC,mBAAmB;YAAE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC;QAE/D,OAAO;YACL,mBAAmB;SACpB,CAAC;IACJ,CAAC;CAAA;AAED,SAAe,IAAI,CAAC,OAAoB;;QACtC,MAAM,EAAE,qBAAqB,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QACjD,IAAI,EAAE,mBAAmB,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAC7C,IAAI,CAAC,mBAAmB;YAAE,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC;QAE/D,mBAAmB,GAAG,mBAAmB,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE;;YACxD,IAAI,YAAY,IAAI,OAAO,EAAE,CAAC;gBAC5B,OAAO,OAAO,CAAC,UAAU,CAAC;YAC5B,CAAC;YAED,IAAI,YAAY,IAAI,OAAO,EAAE,CAAC;gBAC5B,OAAO,OAAO,CAAC,UAAU,CAAC;YAC5B,CAAC;YAED,IAAI,OAAO,CAAC,yBAAyB,EAAE,CAAC;gBACtC,MAAM,CAAC,GAAG,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,OAAO,CAAC,yBAAyB,CAAC,CAAC;gBAC7F,OAAO,CAAC,yBAAyB,GAAG,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,KAAI,OAAO,CAAC,yBAAyB,CAAC;gBAEjF,IAAI,CAAA,MAAA,OAAO,CAAC,eAAe,0CAAE,MAAM,MAAK,CAAC,EAAE,CAAC;oBAC1C,4FAA4F;oBAC5F,OAAO,OAAO,CAAC,eAAe,CAAC;gBACjC,CAAC;YACH,CAAC;YAED,yBACK,OAAO,EACV;QACJ,CAAC,CAAC,CAAC;QAEH,OAAO;YACL,mBAAmB;SACpB,CAAC;IACJ,CAAC;CAAA;AAED,MAAM,yBAAyB,GAA2C;IACxE,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,yBAAyB,CAAC"}
@@ -1,30 +1,52 @@
1
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 __rest = (this && this.__rest) || function (s, e) {
12
+ var t = {};
13
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
14
+ t[p] = s[p];
15
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
16
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
17
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
18
+ t[p[i]] = s[p[i]];
19
+ }
20
+ return t;
21
+ };
2
22
  Object.defineProperty(exports, "__esModule", { value: true });
3
23
  const utils_1 = require("../../../utils");
4
24
  const sessionDurationsToMinutes_1 = require("../../../sessionDurationsToMinutes");
5
- async function parse(context) {
6
- if (!context.assets.tenant)
7
- return { tenant: null };
8
- /* eslint-disable camelcase */
9
- const { session_lifetime, idle_session_lifetime, ...tenant } = context.assets.tenant;
10
- (0, utils_1.clearTenantFlags)(tenant);
11
- const sessionDurations = (0, sessionDurationsToMinutes_1.sessionDurationsToMinutes)({ session_lifetime, idle_session_lifetime });
12
- return {
13
- tenant: {
14
- ...tenant,
15
- ...sessionDurations,
16
- },
17
- };
25
+ function parse(context) {
26
+ return __awaiter(this, void 0, void 0, function* () {
27
+ if (!context.assets.tenant)
28
+ return { tenant: null };
29
+ /* eslint-disable camelcase */
30
+ const _a = context.assets.tenant, { session_lifetime, idle_session_lifetime } = _a, tenant = __rest(_a, ["session_lifetime", "idle_session_lifetime"]);
31
+ (0, utils_1.clearTenantFlags)(tenant);
32
+ const sessionDurations = (0, sessionDurationsToMinutes_1.sessionDurationsToMinutes)({ session_lifetime, idle_session_lifetime });
33
+ return {
34
+ tenant: Object.assign(Object.assign({}, tenant), sessionDurations),
35
+ };
36
+ });
18
37
  }
19
- async function dump(context) {
20
- const tenant = context.assets.tenant;
21
- if (!tenant)
22
- return { tenant: null };
23
- (0, utils_1.clearTenantFlags)(tenant);
24
- return { tenant };
38
+ function dump(context) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const tenant = context.assets.tenant;
41
+ if (!tenant)
42
+ return { tenant: null };
43
+ (0, utils_1.clearTenantFlags)(tenant);
44
+ return { tenant };
45
+ });
25
46
  }
26
47
  const tenantHandler = {
27
48
  parse,
28
49
  dump,
29
50
  };
30
51
  exports.default = tenantHandler;
52
+ //# sourceMappingURL=tenant.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tenant.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/tenant.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,0CAAkD;AAClD,kFAA+E;AAO/E,SAAe,KAAK,CAAC,OAAoB;;QACvC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM;YAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAEpD,8BAA8B;QAC9B,MAAM,KAQF,OAAO,CAAC,MAAM,CAAC,MAAM,EARnB,EACJ,gBAAgB,EAChB,qBAAqB,OAME,EALpB,MAAM,cAHL,6CAIL,CAIwB,CAAC;QAE1B,IAAA,wBAAgB,EAAC,MAAM,CAAC,CAAC;QAEzB,MAAM,gBAAgB,GAAG,IAAA,qDAAyB,EAAC,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,CAAC,CAAC;QAEhG,OAAO;YACL,MAAM,kCACD,MAAM,GACN,gBAAgB,CACpB;SACF,CAAC;IACJ,CAAC;CAAA;AAED,SAAe,IAAI,CAAC,OAAoB;;QACtC,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC;QAErC,IAAI,CAAC,MAAM;YAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAErC,IAAA,wBAAgB,EAAC,MAAM,CAAC,CAAC;QAEzB,OAAO,EAAE,MAAM,EAAE,CAAC;IACpB,CAAC;CAAA;AAED,MAAM,aAAa,GAA8B;IAC/C,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,aAAa,CAAC"}
@@ -1,15 +1,27 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- async function parseAndDump(context) {
4
- const { themes } = context.assets;
5
- if (!themes)
6
- return { themes: null };
7
- return {
8
- themes,
9
- };
12
+ function parseAndDump(context) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ const { themes } = context.assets;
15
+ if (!themes)
16
+ return { themes: null };
17
+ return {
18
+ themes,
19
+ };
20
+ });
10
21
  }
11
22
  const themesHandler = {
12
23
  parse: parseAndDump,
13
24
  dump: parseAndDump,
14
25
  };
15
26
  exports.default = themesHandler;
27
+ //# sourceMappingURL=themes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"themes.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/themes.ts"],"names":[],"mappings":";;;;;;;;;;;AAOA,SAAe,YAAY,CAAC,OAAoB;;QAC9C,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAElC,IAAI,CAAC,MAAM;YAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QAErC,OAAO;YACL,MAAM;SACP,CAAC;IACJ,CAAC;CAAA;AAED,MAAM,aAAa,GAA8B;IAC/C,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,YAAY;CACnB,CAAC;AAEF,kBAAe,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { YAMLHandler } from '.';
2
2
  import { Asset, ParsedAsset } from '../../../types';
3
- type ParsedTriggers = ParsedAsset<'triggers', Asset>;
3
+ type ParsedTriggers = ParsedAsset<'triggers', Asset[]>;
4
4
  declare const triggersHandler: YAMLHandler<ParsedTriggers>;
5
5
  export default triggersHandler;
@@ -1,24 +1,38 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- async function parse(context) {
4
- // Load the script file for each action
5
- if (!context.assets.triggers)
6
- return { triggers: null };
7
- return {
8
- triggers: context.assets.triggers,
9
- };
12
+ function parse(context) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ // Load the script file for each action
15
+ if (!context.assets.triggers)
16
+ return { triggers: null };
17
+ return {
18
+ triggers: context.assets.triggers,
19
+ };
20
+ });
10
21
  }
11
- async function dump(context) {
12
- const { triggers } = context.assets;
13
- // Nothing to do
14
- if (!triggers)
15
- return { triggers: null };
16
- return {
17
- triggers: triggers,
18
- };
22
+ function dump(context) {
23
+ return __awaiter(this, void 0, void 0, function* () {
24
+ const { triggers } = context.assets;
25
+ // Nothing to do
26
+ if (!triggers)
27
+ return { triggers: null };
28
+ return {
29
+ triggers: triggers,
30
+ };
31
+ });
19
32
  }
20
33
  const triggersHandler = {
21
34
  parse,
22
35
  dump,
23
36
  };
24
37
  exports.default = triggersHandler;
38
+ //# sourceMappingURL=triggers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"triggers.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/triggers.ts"],"names":[],"mappings":";;;;;;;;;;;AAMA,SAAe,KAAK,CAAC,OAAoB;;QACvC,uCAAuC;QACvC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ;YAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACxD,OAAO;YACL,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ;SAClC,CAAC;IACJ,CAAC;CAAA;AAED,SAAe,IAAI,CAAC,OAAoB;;QACtC,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QACpC,gBAAgB;QAChB,IAAI,CAAC,QAAQ;YAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;QACzC,OAAO;YACL,QAAQ,EAAE,QAAQ;SACnB,CAAC;IACJ,CAAC;CAAA;AAED,MAAM,eAAe,GAAgC;IACnD,KAAK;IACL,IAAI;CACL,CAAC;AAEF,kBAAe,eAAe,CAAC"}
@@ -1,5 +1,5 @@
1
+ import { UserAttributeProfile } from 'auth0';
1
2
  import { YAMLHandler } from '.';
2
- import { UserAttributeProfile } from '../../../tools/auth0/handlers/userAttributeProfiles';
3
3
  import { ParsedAsset } from '../../../types';
4
4
  type ParsedUserAttributeProfiles = ParsedAsset<'userAttributeProfiles', Partial<UserAttributeProfile>[]>;
5
5
  declare const selfServiceProfileHandler: YAMLHandler<ParsedUserAttributeProfiles>;
@@ -1,15 +1,27 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
- async function parseAndDump(context) {
4
- const { userAttributeProfiles } = context.assets;
5
- if (!userAttributeProfiles)
6
- return { userAttributeProfiles: null };
7
- return {
8
- userAttributeProfiles,
9
- };
12
+ function parseAndDump(context) {
13
+ return __awaiter(this, void 0, void 0, function* () {
14
+ const { userAttributeProfiles } = context.assets;
15
+ if (!userAttributeProfiles)
16
+ return { userAttributeProfiles: null };
17
+ return {
18
+ userAttributeProfiles,
19
+ };
20
+ });
10
21
  }
11
22
  const selfServiceProfileHandler = {
12
23
  parse: parseAndDump,
13
24
  dump: parseAndDump,
14
25
  };
15
26
  exports.default = selfServiceProfileHandler;
27
+ //# sourceMappingURL=userAttributeProfiles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userAttributeProfiles.js","sourceRoot":"","sources":["../../../../src/context/yaml/handlers/userAttributeProfiles.ts"],"names":[],"mappings":";;;;;;;;;;;AAUA,SAAe,YAAY,CAAC,OAAoB;;QAC9C,MAAM,EAAE,qBAAqB,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC;QAEjD,IAAI,CAAC,qBAAqB;YAAE,OAAO,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC;QAEnE,OAAO;YACL,qBAAqB;SACtB,CAAC;IACJ,CAAC;CAAA;AAED,MAAM,yBAAyB,GAA6C;IAC1E,KAAK,EAAE,YAAY;IACnB,IAAI,EAAE,YAAY;CACnB,CAAC;AAEF,kBAAe,yBAAyB,CAAC"}