mcdev 9.0.3 → 10.0.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 (1049) hide show
  1. package/@types/lib/Builder.d.ts +13 -14
  2. package/@types/lib/Builder.d.ts.map +1 -1
  3. package/@types/lib/Deployer.d.ts +16 -17
  4. package/@types/lib/Deployer.d.ts.map +1 -1
  5. package/@types/lib/MetadataTypeDefinitions.d.ts +4 -0
  6. package/@types/lib/MetadataTypeDefinitions.d.ts.map +1 -1
  7. package/@types/lib/MetadataTypeInfo.d.ts +4 -0
  8. package/@types/lib/MetadataTypeInfo.d.ts.map +1 -1
  9. package/@types/lib/Retriever.d.ts +16 -21
  10. package/@types/lib/Retriever.d.ts.map +1 -1
  11. package/@types/lib/cli.d.ts.map +1 -1
  12. package/@types/lib/index.d.ts +64 -36
  13. package/@types/lib/index.d.ts.map +1 -1
  14. package/@types/lib/metadataTypes/Asset.d.ts +159 -84
  15. package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
  16. package/@types/lib/metadataTypes/AttributeGroup.d.ts.map +1 -1
  17. package/@types/lib/metadataTypes/Automation.d.ts +2 -12
  18. package/@types/lib/metadataTypes/Automation.d.ts.map +1 -1
  19. package/@types/lib/metadataTypes/Campaign.d.ts +1 -0
  20. package/@types/lib/metadataTypes/Campaign.d.ts.map +1 -1
  21. package/@types/lib/metadataTypes/DataExtension.d.ts +2 -24
  22. package/@types/lib/metadataTypes/DataExtension.d.ts.map +1 -1
  23. package/@types/lib/metadataTypes/DataExtensionField.d.ts +1 -1
  24. package/@types/lib/metadataTypes/DataExtract.d.ts +1 -10
  25. package/@types/lib/metadataTypes/DataExtract.d.ts.map +1 -1
  26. package/@types/lib/metadataTypes/DataFilter.d.ts +6 -19
  27. package/@types/lib/metadataTypes/DataFilter.d.ts.map +1 -1
  28. package/@types/lib/metadataTypes/DeliveryProfile.d.ts.map +1 -1
  29. package/@types/lib/metadataTypes/DomainVerification.d.ts +1 -0
  30. package/@types/lib/metadataTypes/DomainVerification.d.ts.map +1 -1
  31. package/@types/lib/metadataTypes/Email.d.ts +0 -2
  32. package/@types/lib/metadataTypes/Email.d.ts.map +1 -1
  33. package/@types/lib/metadataTypes/Event.d.ts +6 -16
  34. package/@types/lib/metadataTypes/Event.d.ts.map +1 -1
  35. package/@types/lib/metadataTypes/FileLocation.d.ts.map +1 -1
  36. package/@types/lib/metadataTypes/FileTransfer.d.ts +1 -10
  37. package/@types/lib/metadataTypes/FileTransfer.d.ts.map +1 -1
  38. package/@types/lib/metadataTypes/Folder.d.ts +4 -4
  39. package/@types/lib/metadataTypes/Folder.d.ts.map +1 -1
  40. package/@types/lib/metadataTypes/ImportFile.d.ts +2 -12
  41. package/@types/lib/metadataTypes/ImportFile.d.ts.map +1 -1
  42. package/@types/lib/metadataTypes/Journey.d.ts +4 -4
  43. package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
  44. package/@types/lib/metadataTypes/List.d.ts +1 -1
  45. package/@types/lib/metadataTypes/MetadataType.d.ts +23 -36
  46. package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
  47. package/@types/lib/metadataTypes/MobileApplication.d.ts +189 -0
  48. package/@types/lib/metadataTypes/MobileApplication.d.ts.map +1 -0
  49. package/@types/lib/metadataTypes/MobileCode.d.ts.map +1 -1
  50. package/@types/lib/metadataTypes/MobileKeyword.d.ts +1 -11
  51. package/@types/lib/metadataTypes/MobileKeyword.d.ts.map +1 -1
  52. package/@types/lib/metadataTypes/MobileMessage.d.ts +23 -1
  53. package/@types/lib/metadataTypes/MobileMessage.d.ts.map +1 -1
  54. package/@types/lib/metadataTypes/MobilePush.d.ts +407 -0
  55. package/@types/lib/metadataTypes/MobilePush.d.ts.map +1 -0
  56. package/@types/lib/metadataTypes/MobilePushApp.d.ts +189 -0
  57. package/@types/lib/metadataTypes/MobilePushApp.d.ts.map +1 -0
  58. package/@types/lib/metadataTypes/Query.d.ts +1 -13
  59. package/@types/lib/metadataTypes/Query.d.ts.map +1 -1
  60. package/@types/lib/metadataTypes/Script.d.ts +1 -13
  61. package/@types/lib/metadataTypes/Script.d.ts.map +1 -1
  62. package/@types/lib/metadataTypes/SenderProfile.d.ts +7 -2
  63. package/@types/lib/metadataTypes/SenderProfile.d.ts.map +1 -1
  64. package/@types/lib/metadataTypes/User.d.ts.map +1 -1
  65. package/@types/lib/metadataTypes/definitions/Asset.definition.d.ts +51 -41
  66. package/@types/lib/metadataTypes/definitions/Campaign.definition.d.ts +1 -0
  67. package/@types/lib/metadataTypes/definitions/DataExtract.definition.d.ts +1 -0
  68. package/@types/lib/metadataTypes/definitions/DomainVerification.definition.d.ts +1 -0
  69. package/@types/lib/metadataTypes/definitions/FileTransfer.definition.d.ts +1 -0
  70. package/@types/lib/metadataTypes/definitions/Journey.definition.d.ts +2 -0
  71. package/@types/lib/metadataTypes/definitions/MobileApplication.definition.d.ts +122 -0
  72. package/@types/lib/metadataTypes/definitions/MobileApplication.definition.d.ts.map +1 -0
  73. package/@types/lib/metadataTypes/definitions/MobileMessage.definition.d.ts +6 -0
  74. package/@types/lib/metadataTypes/definitions/MobilePush.definition.d.ts +467 -0
  75. package/@types/lib/metadataTypes/definitions/MobilePush.definition.d.ts.map +1 -0
  76. package/@types/lib/metadataTypes/definitions/MobilePushApp.definition.d.ts +122 -0
  77. package/@types/lib/metadataTypes/definitions/MobilePushApp.definition.d.ts.map +1 -0
  78. package/@types/lib/metadataTypes/definitions/Query.definition.d.ts +1 -0
  79. package/@types/lib/metadataTypes/definitions/Script.definition.d.ts +1 -0
  80. package/@types/lib/util/auth.d.ts +30 -23
  81. package/@types/lib/util/auth.d.ts.map +1 -1
  82. package/@types/lib/util/cache.d.ts.map +1 -1
  83. package/@types/lib/util/cli.d.ts.map +1 -1
  84. package/@types/lib/util/config.d.ts.map +1 -1
  85. package/@types/lib/util/devops.d.ts +9 -0
  86. package/@types/lib/util/devops.d.ts.map +1 -1
  87. package/@types/lib/util/file.d.ts +32 -18
  88. package/@types/lib/util/file.d.ts.map +1 -1
  89. package/@types/lib/util/git.d.ts +155 -0
  90. package/@types/lib/util/git.d.ts.map +1 -0
  91. package/@types/lib/util/init.config.d.ts +30 -14
  92. package/@types/lib/util/init.config.d.ts.map +1 -1
  93. package/@types/lib/util/init.d.ts.map +1 -1
  94. package/@types/lib/util/init.git.d.ts +10 -0
  95. package/@types/lib/util/init.git.d.ts.map +1 -1
  96. package/@types/lib/util/init.npm.d.ts +9 -14
  97. package/@types/lib/util/init.npm.d.ts.map +1 -1
  98. package/@types/lib/util/isDeepEqual.d.ts +9 -0
  99. package/@types/lib/util/isDeepEqual.d.ts.map +1 -0
  100. package/@types/lib/util/jsonToTable.d.ts +9 -0
  101. package/@types/lib/util/jsonToTable.d.ts.map +1 -0
  102. package/@types/lib/util/migrations/assetV10.d.ts +70 -0
  103. package/@types/lib/util/migrations/assetV10.d.ts.map +1 -0
  104. package/@types/lib/util/progress.d.ts +249 -0
  105. package/@types/lib/util/progress.d.ts.map +1 -0
  106. package/@types/lib/util/sessionStore.d.ts +25 -0
  107. package/@types/lib/util/sessionStore.d.ts.map +1 -0
  108. package/@types/lib/util/topological-sort.d.ts +22 -0
  109. package/@types/lib/util/topological-sort.d.ts.map +1 -0
  110. package/@types/lib/util/util.d.ts +124 -83
  111. package/@types/lib/util/util.d.ts.map +1 -1
  112. package/@types/lib/util/validations.d.ts +15 -3
  113. package/@types/lib/util/validations.d.ts.map +1 -1
  114. package/@types/types/mcdev.d.d.ts +35 -22
  115. package/@types/types/mcdev.d.d.ts.map +1 -1
  116. package/README.md +6 -2
  117. package/boilerplate/files/.prettierignore +7 -0
  118. package/boilerplate/files/.prettierrc +1 -23
  119. package/boilerplate/files/.vscode/extensions.json +14 -13
  120. package/boilerplate/files/.vscode/settings.json +14 -8
  121. package/boilerplate/files/eslint.config.js +44 -175
  122. package/boilerplate/forcedUpdates.json +11 -0
  123. package/boilerplate/npm-dependencies.json +3 -5
  124. package/boilerplate/npmrc-template +1 -0
  125. package/lib/Builder.js +4 -12
  126. package/lib/Deployer.js +32 -29
  127. package/lib/MetadataTypeDefinitions.js +4 -0
  128. package/lib/MetadataTypeInfo.js +4 -0
  129. package/lib/Retriever.js +6 -31
  130. package/lib/cli.js +101 -82
  131. package/lib/index.js +223 -164
  132. package/lib/metadataTypes/Asset.js +958 -307
  133. package/lib/metadataTypes/AttributeGroup.js +1 -6
  134. package/lib/metadataTypes/AttributeSet.js +1 -1
  135. package/lib/metadataTypes/Automation.js +95 -162
  136. package/lib/metadataTypes/Campaign.js +1 -6
  137. package/lib/metadataTypes/DataExtension.js +33 -132
  138. package/lib/metadataTypes/DataExtensionField.js +1 -1
  139. package/lib/metadataTypes/DataExtract.js +1 -56
  140. package/lib/metadataTypes/DataExtractType.js +1 -1
  141. package/lib/metadataTypes/DataFilter.js +23 -9
  142. package/lib/metadataTypes/DeliveryProfile.js +1 -6
  143. package/lib/metadataTypes/DomainVerification.js +1 -1
  144. package/lib/metadataTypes/Email.js +2 -4
  145. package/lib/metadataTypes/Event.js +7 -66
  146. package/lib/metadataTypes/FileLocation.js +1 -7
  147. package/lib/metadataTypes/FileTransfer.js +1 -56
  148. package/lib/metadataTypes/Filter.js +1 -1
  149. package/lib/metadataTypes/Folder.js +9 -9
  150. package/lib/metadataTypes/ImportFile.js +4 -59
  151. package/lib/metadataTypes/Journey.js +326 -129
  152. package/lib/metadataTypes/MetadataType.js +156 -174
  153. package/lib/metadataTypes/MobileCode.js +0 -1
  154. package/lib/metadataTypes/MobileKeyword.js +6 -39
  155. package/lib/metadataTypes/MobileMessage.js +111 -13
  156. package/lib/metadataTypes/MobilePush.js +456 -0
  157. package/lib/metadataTypes/MobilePushApp.js +118 -0
  158. package/lib/metadataTypes/Query.js +11 -37
  159. package/lib/metadataTypes/Script.js +1 -20
  160. package/lib/metadataTypes/SenderProfile.js +27 -23
  161. package/lib/metadataTypes/TransactionalMessage.js +1 -1
  162. package/lib/metadataTypes/TransactionalSMS.js +1 -1
  163. package/lib/metadataTypes/TriggeredSend.js +1 -1
  164. package/lib/metadataTypes/User.js +27 -23
  165. package/lib/metadataTypes/Verification.js +2 -2
  166. package/lib/metadataTypes/definitions/Asset.definition.js +94 -61
  167. package/lib/metadataTypes/definitions/Campaign.definition.js +1 -0
  168. package/lib/metadataTypes/definitions/DataExtract.definition.js +1 -0
  169. package/lib/metadataTypes/definitions/DomainVerification.definition.js +1 -0
  170. package/lib/metadataTypes/definitions/EmailSend.definition.js +2 -2
  171. package/lib/metadataTypes/definitions/FileTransfer.definition.js +1 -0
  172. package/lib/metadataTypes/definitions/Journey.definition.js +7 -3
  173. package/lib/metadataTypes/definitions/MobileMessage.definition.js +6 -0
  174. package/lib/metadataTypes/definitions/MobilePush.definition.js +308 -0
  175. package/lib/metadataTypes/definitions/MobilePushApp.definition.js +121 -0
  176. package/lib/metadataTypes/definitions/Query.definition.js +1 -0
  177. package/lib/metadataTypes/definitions/Script.definition.js +1 -0
  178. package/lib/metadataTypes/definitions/TransactionalEmail.definition.js +1 -1
  179. package/lib/metadataTypes/definitions/TransactionalPush.definition.js +1 -1
  180. package/lib/metadataTypes/definitions/TriggeredSend.definition.js +2 -2
  181. package/lib/retrieveChangelog.js +28 -26
  182. package/lib/util/auth.js +127 -83
  183. package/lib/util/businessUnit.js +1 -1
  184. package/lib/util/cache.js +4 -6
  185. package/lib/util/cli.js +16 -19
  186. package/lib/util/config.js +22 -21
  187. package/lib/util/devops.js +162 -77
  188. package/lib/util/file.js +213 -199
  189. package/lib/util/git.js +278 -0
  190. package/lib/util/init.config.js +149 -169
  191. package/lib/util/init.git.js +37 -13
  192. package/lib/util/init.js +24 -15
  193. package/lib/util/init.npm.js +103 -120
  194. package/lib/util/isDeepEqual.js +48 -0
  195. package/lib/util/jsonToTable.js +76 -0
  196. package/lib/util/migrations/assetV10.js +367 -0
  197. package/lib/util/progress.js +609 -0
  198. package/lib/util/sessionStore.js +219 -0
  199. package/lib/util/topological-sort.js +114 -0
  200. package/lib/util/util.js +203 -118
  201. package/lib/util/validations.js +17 -11
  202. package/package.json +121 -126
  203. package/scripts/verify-packed-package.mjs +90 -0
  204. package/scripts/verify-progress-fixture.mjs +362 -0
  205. package/types/init-declarations.type-test.js +10 -0
  206. package/types/mcdev.d.js +18 -12
  207. package/.beautyamp.json +0 -13
  208. package/.bitbucket/PULL_REQUEST_TEMPLATE.md +0 -19
  209. package/.coverage-comment-template.svelte +0 -194
  210. package/.editorconfig +0 -9
  211. package/.fork/.prettierrc +0 -6
  212. package/.fork/custom-commands.json +0 -140
  213. package/.gitattributes +0 -7
  214. package/.github/ISSUE_TEMPLATE/bug.yml +0 -150
  215. package/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  216. package/.github/ISSUE_TEMPLATE/task.md +0 -10
  217. package/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md +0 -28
  218. package/.github/PULL_REQUEST_TEMPLATE.md +0 -16
  219. package/.github/copilot-instructions.md +0 -85
  220. package/.github/dependabot.yml +0 -23
  221. package/.github/pr-labeler.yml +0 -3
  222. package/.github/workflows/close_issues_on_merge.yml +0 -23
  223. package/.github/workflows/code-test.yml +0 -41
  224. package/.github/workflows/coverage-base-update.yml +0 -61
  225. package/.github/workflows/coverage-develop-branch.yml +0 -42
  226. package/.github/workflows/coverage-main-branch.yml +0 -42
  227. package/.github/workflows/coverage.yml +0 -82
  228. package/.github/workflows/npm-publish.yml +0 -85
  229. package/.github/workflows/pr-labeler.yml +0 -19
  230. package/.github/workflows/sync-milestone.yml +0 -55
  231. package/.husky/commit-msg +0 -8
  232. package/.husky/post-checkout +0 -38
  233. package/.husky/post-merge +0 -24
  234. package/.husky/pre-commit +0 -8
  235. package/.issuetracker +0 -15
  236. package/.markdownlint.json +0 -16
  237. package/.markdownlint.md +0 -4
  238. package/.nycrc.json +0 -5
  239. package/.prettierignore +0 -3
  240. package/.prettierrc +0 -33
  241. package/.vscode/extensions.json +0 -28
  242. package/.vscode/launch.json +0 -15
  243. package/.vscode/settings.json +0 -92
  244. package/.vsls.json +0 -6
  245. package/CONTRIBUTING.md +0 -22
  246. package/boilerplate/files/.beautyamp.json +0 -13
  247. package/docs/dist/considerations.md +0 -66
  248. package/eslint.config.js +0 -144
  249. package/img/README.md/cdp-1.jpg +0 -0
  250. package/img/README.md/troubleshoot-authentication.jpg +0 -0
  251. package/img/README.md/troubleshoot-execution_policy-2.png +0 -0
  252. package/img/README.md/troubleshoot-execution_policy.jpg +0 -0
  253. package/img/README.md/troubleshoot-mac-sudo.png +0 -0
  254. package/img/README.md/troubleshoot-nodejs-index.jpg +0 -0
  255. package/img/README.md/troubleshoot-nodejs-permission.jpg +0 -0
  256. package/img/README.md/troubleshoot-ssh.jpg +0 -0
  257. package/img/README.md/vscode-eslint-allow_everywhere.jpg +0 -0
  258. package/img/README.md/vscode-recommendations-1.png +0 -0
  259. package/img/README.md/vscode-recommendations-2.png +0 -0
  260. package/prepare-release.js +0 -37
  261. package/test/general.test.js +0 -2709
  262. package/test/mockRoot/.mcdev-auth.json +0 -8
  263. package/test/mockRoot/.mcdev-validations.js +0 -93
  264. package/test/mockRoot/.mcdevrc.json +0 -182
  265. package/test/mockRoot/deploy/testInstance/_ParentBU_/dataExtension/testExisting_dataExtensionShared.dataExtension-meta.json +0 -58
  266. package/test/mockRoot/deploy/testInstance/_ParentBU_/dataExtension/testNew_dataExtensionShared.dataExtension-meta.json +0 -20
  267. package/test/mockRoot/deploy/testInstance/_ParentBU_/query/testNew_query.query-meta.json +0 -11
  268. package/test/mockRoot/deploy/testInstance/_ParentBU_/query/testNew_query.query-meta.sql +0 -4
  269. package/test/mockRoot/deploy/testInstance/_ParentBU_/user/testBlocked_user.user-meta.json +0 -23
  270. package/test/mockRoot/deploy/testInstance/_ParentBU_/user/testExisting_user.user-meta.json +0 -31
  271. package/test/mockRoot/deploy/testInstance/_ParentBU_/user/testNew_user.user-meta.json +0 -27
  272. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchNamFail.asset-block-meta.html +0 -23
  273. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchNamFail.asset-block-meta.json +0 -41
  274. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchName.asset-block-meta.html +0 -23
  275. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchName.asset-block-meta.json +0 -41
  276. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchNameAdd.asset-block-meta.html +0 -23
  277. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_html-matchNameAdd.asset-block-meta.json +0 -41
  278. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset.asset-block-meta.html +0 -12
  279. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset.asset-block-meta.json +0 -39
  280. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_htmlblock.asset-block-meta.html +0 -1
  281. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_htmlblock.asset-block-meta.json +0 -39
  282. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_withCBBK_notexisting.asset-block-meta.html +0 -4
  283. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_withCBBK_notexisting.asset-block-meta.json +0 -39
  284. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_withCBBK_preexisting.asset-block-meta.html +0 -4
  285. package/test/mockRoot/deploy/testInstance/testBU/asset/block/testNew_asset_withCBBK_preexisting.asset-block-meta.json +0 -39
  286. package/test/mockRoot/deploy/testInstance/testBU/asset/block/test_slash.asset-block-meta.html +0 -12
  287. package/test/mockRoot/deploy/testInstance/testBU/asset/block/test_slash.asset-block-meta.json +0 -29
  288. package/test/mockRoot/deploy/testInstance/testBU/asset/message/testNew_assetMessage/testNew_assetMessage.asset-message-meta.json +0 -435
  289. package/test/mockRoot/deploy/testInstance/testBU/asset/message/testNew_assetMessage/views.html.content.asset-message-meta.html +0 -150
  290. package/test/mockRoot/deploy/testInstance/testBU/asset/message/testNew_asset_templatebasedemail/testNew_asset_templatebasedemail.asset-message-meta.json +0 -305
  291. package/test/mockRoot/deploy/testInstance/testBU/asset/message/testNew_asset_templatebasedemail/views.html.content.asset-message-meta.html +0 -150
  292. package/test/mockRoot/deploy/testInstance/testBU/asset/template/testNew_asset_template/content.asset-template-meta.html +0 -150
  293. package/test/mockRoot/deploy/testInstance/testBU/asset/template/testNew_asset_template/testNew_asset_template.asset-template-meta.json +0 -116
  294. package/test/mockRoot/deploy/testInstance/testBU/automation/testExisting_automation.automation-meta.json +0 -52
  295. package/test/mockRoot/deploy/testInstance/testBU/automation/testNew_automation.automation-meta.json +0 -49
  296. package/test/mockRoot/deploy/testInstance/testBU/dataExtension/testExisting_dataExtension.dataExtension-meta.json +0 -59
  297. package/test/mockRoot/deploy/testInstance/testBU/dataExtension/testNew_dataExtension.dataExtension-meta.json +0 -20
  298. package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testExisting_dataExtract.dataExtract-meta.json +0 -35
  299. package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testNew_dataExtract.dataExtract-meta.json +0 -35
  300. package/test/mockRoot/deploy/testInstance/testBU/dataFilter/testExisting_dataFilter.dataFilter-meta.json +0 -19
  301. package/test/mockRoot/deploy/testInstance/testBU/dataFilter/testNew_dataFilter.dataFilter-meta.json +0 -19
  302. package/test/mockRoot/deploy/testInstance/testBU/domainVerification/joern.berkefeld.New@accenture.com.domainVerification-meta.json +0 -6
  303. package/test/mockRoot/deploy/testInstance/testBU/domainVerification/joern.berkefeld@accenture.com.domainVerification-meta.json +0 -6
  304. package/test/mockRoot/deploy/testInstance/testBU/domainVerification/mcdev.accenture.com.domainVerification-meta.json +0 -6
  305. package/test/mockRoot/deploy/testInstance/testBU/emailSend/testExisting_emailSend.emailSend-meta.json +0 -36
  306. package/test/mockRoot/deploy/testInstance/testBU/emailSend/testNew_emailSend.emailSend-meta.json +0 -36
  307. package/test/mockRoot/deploy/testInstance/testBU/event/testExisting_event.event-meta.json +0 -201
  308. package/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withExistingDE.event-meta.json +0 -233
  309. package/test/mockRoot/deploy/testInstance/testBU/event/testNew_event_withSchema.event-meta.json +0 -194
  310. package/test/mockRoot/deploy/testInstance/testBU/fileLocation/ExactTarget Enhanced FTP.fileLocation-meta.json +0 -5
  311. package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_aws.fileLocation-meta.json +0 -14
  312. package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_exsftp.fileLocation-meta.json +0 -12
  313. package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testExisting_fileTransfer.fileTransfer-meta.json +0 -17
  314. package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testNew_fileTransfer.fileTransfer-meta.json +0 -17
  315. package/test/mockRoot/deploy/testInstance/testBU/filter/testExisting_filter.filter-meta.json +0 -10
  316. package/test/mockRoot/deploy/testInstance/testBU/filter/testNew_filter.filter-meta.json +0 -11
  317. package/test/mockRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json +0 -36
  318. package/test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json +0 -34
  319. package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_journey_Multistep.journey-meta.json +0 -418
  320. package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_journey_Quicksend.journey-meta.json +0 -232
  321. package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_journey_updatecontact.journey-meta.json +0 -108
  322. package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_journey_updatecontact_sharedDE.journey-meta.json +0 -108
  323. package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_temail.journey-meta.json +0 -212
  324. package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_temail_notPublished.journey-meta.json +0 -217
  325. package/test/mockRoot/deploy/testInstance/testBU/journey/testNew_temail_notPublished.journey-meta.json +0 -213
  326. package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD.mobileKeyword-meta.amp +0 -2
  327. package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD.mobileKeyword-meta.json +0 -8
  328. package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD_BLOCKED.mobileKeyword-meta.amp +0 -2
  329. package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/4912312345678.TESTNEW_KEYWORD_BLOCKED.mobileKeyword-meta.json +0 -8
  330. package/test/mockRoot/deploy/testInstance/testBU/mobileMessage/NTIzOjc4OjA.mobileMessage-meta.amp +0 -1
  331. package/test/mockRoot/deploy/testInstance/testBU/mobileMessage/NTIzOjc4OjA.mobileMessage-meta.json +0 -59
  332. package/test/mockRoot/deploy/testInstance/testBU/mobileMessage/new.mobileMessage-meta.amp +0 -1
  333. package/test/mockRoot/deploy/testInstance/testBU/mobileMessage/new.mobileMessage-meta.json +0 -58
  334. package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query.query-meta.json +0 -11
  335. package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query.query-meta.sql +0 -6
  336. package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.json +0 -11
  337. package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.sql +0 -6
  338. package/test/mockRoot/deploy/testInstance/testBU/query/testNew_query.query-meta.json +0 -11
  339. package/test/mockRoot/deploy/testInstance/testBU/query/testNew_query.query-meta.sql +0 -4
  340. package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.json +0 -6
  341. package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.ssjs +0 -1
  342. package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.json +0 -6
  343. package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.ssjs +0 -1
  344. package/test/mockRoot/deploy/testInstance/testBU/sendClassification/testExisting_sendClassification.sendClassification-meta.json +0 -8
  345. package/test/mockRoot/deploy/testInstance/testBU/sendClassification/testNew_sendClassification.sendClassification-meta.json +0 -8
  346. package/test/mockRoot/deploy/testInstance/testBU/senderProfile/testExisting_senderProfile.senderProfile-meta.json +0 -15
  347. package/test/mockRoot/deploy/testInstance/testBU/senderProfile/testNew_senderProfile.senderProfile-meta.json +0 -15
  348. package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testExisting_temail.transactionalEmail-meta.json +0 -20
  349. package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testNew_temail.transactionalEmail-meta.json +0 -19
  350. package/test/mockRoot/deploy/testInstance/testBU/transactionalPush/testExisting_tpush.transactionalPush-meta.json +0 -16
  351. package/test/mockRoot/deploy/testInstance/testBU/transactionalPush/testNew_tpush.transactionalPush-meta.json +0 -16
  352. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testExisting_tsms.transactionalSMS-meta.amp +0 -4
  353. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testExisting_tsms.transactionalSMS-meta.json +0 -14
  354. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testNew_tsms.transactionalSMS-meta.amp +0 -4
  355. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testNew_tsms.transactionalSMS-meta.json +0 -14
  356. package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testExisting_triggeredSend.triggeredSend-meta.json +0 -27
  357. package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testNew_triggeredSend.triggeredSend-meta.json +0 -27
  358. package/test/mockRoot/deploy/testInstance/testBU/verification/testExisting_automation__s1.7.verification-meta.json +0 -11
  359. package/test/mockRoot/deploy/testInstance/testBU/verification/testNew_automation__s1.7.verification-meta.json +0 -11
  360. package/test/resourceFactory.js +0 -494
  361. package/test/resources/1111111/accountUser/configure-response.xml +0 -70
  362. package/test/resources/1111111/accountUser/create-response.xml +0 -97
  363. package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDCustomerKey=testExisting_userANDEmaillike@-QAA-response.xml +0 -27
  364. package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDEmaillike@-QAA-response.xml +0 -156
  365. package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDCustomerKey=testExisting_userANDEmaillike@-QAA-response.xml +0 -156
  366. package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-QAA-response.xml +0 -87
  367. package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmaillike@-QAA-response.xml +0 -156
  368. package/test/resources/1111111/accountUser/update-response.xml +0 -111
  369. package/test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserID=700301950-response.xml +0 -60
  370. package/test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserIDIN700301950,700301951,7471228-response.xml +0 -77
  371. package/test/resources/1111111/automation/v1/queries/get-response.json +0 -6
  372. package/test/resources/1111111/automation/v1/queries/post-response.json +0 -18
  373. package/test/resources/1111111/businessUnit/retrieve-ID=1111111-QAA-response.xml +0 -33
  374. package/test/resources/1111111/data/v1/customobjectdata/key/testExisting_dataExtensionShared/rowset/get-response.json +0 -13
  375. package/test/resources/1111111/dataExtension/create-expected.json +0 -20
  376. package/test/resources/1111111/dataExtension/create-response.xml +0 -59
  377. package/test/resources/1111111/dataExtension/retrieve-expected.json +0 -53
  378. package/test/resources/1111111/dataExtension/retrieve-expected.md +0 -23
  379. package/test/resources/1111111/dataExtension/retrieve-response.xml +0 -52
  380. package/test/resources/1111111/dataExtension/template_sharedDE-expected.json +0 -53
  381. package/test/resources/1111111/dataExtension/update-expected.json +0 -55
  382. package/test/resources/1111111/dataExtension/update-response.xml +0 -59
  383. package/test/resources/1111111/dataExtensionField/retrieve-CustomerKey=[testExisting_dataExtensionShared].[TriggerUpdate_randomNumber_]-response.xml +0 -45
  384. package/test/resources/1111111/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtensionShared-response.xml +0 -98
  385. package/test/resources/1111111/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_dataExtensionSharedORDataExtension.CustomerKey=testExisting_dataExtensionShared-response.xml +0 -98
  386. package/test/resources/1111111/dataExtensionField/retrieve-response.xml +0 -98
  387. package/test/resources/1111111/dataExtensionTemplate/retrieve-response.xml +0 -303
  388. package/test/resources/1111111/dataFolder/retrieve-ContentType=queryactivity-response.xml +0 -48
  389. package/test/resources/1111111/dataFolder/retrieve-ContentTypeINdataextension,hidden,queryactivity,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -26
  390. package/test/resources/1111111/dataFolder/retrieve-ContentTypeINdataextension,hidden,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -387
  391. package/test/resources/1111111/dataFolder/retrieve-ContentTypeINshared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -364
  392. package/test/resources/1111111/dataFolder/retrieve-response-.xml +0 -387
  393. package/test/resources/1111111/list/retrieve-CustomerKey=All SubscribersORListName=All Subscribers-response.xml +0 -39
  394. package/test/resources/1111111/platform/v1/setup/quickflow/data/get-response.json +0 -455
  395. package/test/resources/1111111/query/patch_keySuffix-expected.json +0 -11
  396. package/test/resources/1111111/query/patch_keySuffix-expected.sql +0 -4
  397. package/test/resources/1111111/role/retrieve-IsPrivate=false-response.xml +0 -76
  398. package/test/resources/1111111/user/build-expected.json +0 -16
  399. package/test/resources/1111111/user/create-expected.json +0 -21
  400. package/test/resources/1111111/user/retrieve-expected.json +0 -24
  401. package/test/resources/1111111/user/retrieve-expected.md +0 -21
  402. package/test/resources/1111111/user/template-expected.json +0 -16
  403. package/test/resources/1111111/user/update-expected.json +0 -21
  404. package/test/resources/9999999/accountUser/retrieve-response.xml +0 -104
  405. package/test/resources/9999999/asset/build-asset_htmlblock-expected.html +0 -23
  406. package/test/resources/9999999/asset/build-asset_htmlblock-expected.json +0 -29
  407. package/test/resources/9999999/asset/build-templatebasedemail-expected.json +0 -145
  408. package/test/resources/9999999/asset/build-templatebasedemail-html-expected.html +0 -20
  409. package/test/resources/9999999/asset/build-templatebasedemail-preheader-expected.amp +0 -1
  410. package/test/resources/9999999/asset/create-expected.json +0 -18
  411. package/test/resources/9999999/asset/resolveId-1234-notFound-expected.json +0 -1
  412. package/test/resources/9999999/asset/resolveId-1295064-noPath-expected.json +0 -8
  413. package/test/resources/9999999/asset/resolveId-1295064-withPath-expected.json +0 -8
  414. package/test/resources/9999999/asset/retrieve-templatebasedemail-expected.json +0 -148
  415. package/test/resources/9999999/asset/retrieve-templatebasedemail-html-expected.html +0 -20
  416. package/test/resources/9999999/asset/retrieve-templatebasedemail-preheader-expected.amp +0 -1
  417. package/test/resources/9999999/asset/template-emailTemplate-expected.json +0 -20
  418. package/test/resources/9999999/asset/template-templatebasedemail-expected.json +0 -145
  419. package/test/resources/9999999/asset/template-templatebasedemail-html-expected.html +0 -20
  420. package/test/resources/9999999/asset/template-templatebasedemail-preheader-expected.amp +0 -1
  421. package/test/resources/9999999/asset/template-testExisting_asset_htmlblock-expected.json +0 -29
  422. package/test/resources/9999999/asset/testExisting_asset_htmlblock-retrieve-expected.html +0 -23
  423. package/test/resources/9999999/asset/testExisting_asset_htmlblock-retrieve-expected.json +0 -41
  424. package/test/resources/9999999/asset/testExisting_asset_message-html-rcb-id-expected.html +0 -33
  425. package/test/resources/9999999/asset/testExisting_asset_message-html-rcb-key-expected.html +0 -33
  426. package/test/resources/9999999/asset/testExisting_asset_message-html-rcb-name-expected.html +0 -35
  427. package/test/resources/9999999/asset/testExisting_asset_message-preheader-rcb-id-expected.amp +0 -4
  428. package/test/resources/9999999/asset/testExisting_asset_message-preheader-rcb-key-expected.amp +0 -4
  429. package/test/resources/9999999/asset/testExisting_asset_message-preheader-rcb-name-expected.amp +0 -4
  430. package/test/resources/9999999/asset/testExisting_asset_message-text-rcb-id-expected.amp +0 -4
  431. package/test/resources/9999999/asset/testExisting_asset_message-text-rcb-key-expected.amp +0 -4
  432. package/test/resources/9999999/asset/testExisting_asset_message-text-rcb-name-expected.amp +0 -4
  433. package/test/resources/9999999/asset/test_coderesource_js-retrieve-expected.js +0 -1
  434. package/test/resources/9999999/asset/test_coderesource_js-retrieve-expected.json +0 -45
  435. package/test/resources/9999999/asset/test_coderesource_json-retrieve-expected.json +0 -45
  436. package/test/resources/9999999/asset/test_coderesource_json-retrieve-expected.jsonc +0 -1
  437. package/test/resources/9999999/asset/test_coderesource_xml-retrieve-expected.json +0 -44
  438. package/test/resources/9999999/asset/test_coderesource_xml-retrieve-expected.xml +0 -1
  439. package/test/resources/9999999/asset/test_interactivecontent-retrieve-expected.json +0 -41
  440. package/test/resources/9999999/asset/test_landingpage-retrieve-expected.json +0 -40
  441. package/test/resources/9999999/asset/test_microsite-retrieve-expected.json +0 -41
  442. package/test/resources/9999999/asset/v1/content/assets/1209971/get-response.json +0 -61
  443. package/test/resources/9999999/asset/v1/content/assets/1295064/get-response.json +0 -60
  444. package/test/resources/9999999/asset/v1/content/assets/1295064/patch-response.json +0 -59
  445. package/test/resources/9999999/asset/v1/content/assets/1295065/get-response.json +0 -60
  446. package/test/resources/9999999/asset/v1/content/assets/1295066/get-response.json +0 -60
  447. package/test/resources/9999999/asset/v1/content/assets/1295067/get-response.json +0 -60
  448. package/test/resources/9999999/asset/v1/content/assets/16992/get-response.json +0 -60
  449. package/test/resources/9999999/asset/v1/content/assets/5286/get-response.json +0 -48
  450. package/test/resources/9999999/asset/v1/content/assets/5289/get-response.json +0 -273
  451. package/test/resources/9999999/asset/v1/content/assets/808714/get-response.json +0 -185
  452. package/test/resources/9999999/asset/v1/content/assets/9451/get-response.json +0 -61
  453. package/test/resources/9999999/asset/v1/content/assets/9456/get-response.json +0 -56
  454. package/test/resources/9999999/asset/v1/content/assets/9458/get-response.json +0 -56
  455. package/test/resources/9999999/asset/v1/content/assets/9460/get-response.json +0 -59
  456. package/test/resources/9999999/asset/v1/content/assets/9463/get-response.json +0 -61
  457. package/test/resources/9999999/asset/v1/content/assets/9465/get-response.json +0 -54
  458. package/test/resources/9999999/asset/v1/content/assets/950143/delete-response.txt +0 -1
  459. package/test/resources/9999999/asset/v1/content/assets/950143/get-response.json +0 -97
  460. package/test/resources/9999999/asset/v1/content/assets/get-response-customerKey=testExisting_asset.json +0 -105
  461. package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_assetMessage.json +0 -441
  462. package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_htmlblock.json +0 -59
  463. package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_template.json +0 -147
  464. package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_templatebasedemail.json +0 -322
  465. package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_withCBBK_notexisting.json +0 -59
  466. package/test/resources/9999999/asset/v1/content/assets/post-response-key=testNew_asset_withCBBK_preexisting.json +0 -59
  467. package/test/resources/9999999/asset/v1/content/assets/post-response-key=test_slash.json +0 -60
  468. package/test/resources/9999999/asset/v1/content/assets/post-response.json +0 -59
  469. package/test/resources/9999999/asset/v1/content/assets/query/+post-response-assetType.idIN3,195,196,197,198,199,200,201,202,203,210,211,212,213-slashfolder.json +0 -198
  470. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,205,206,230,232.json +0 -129
  471. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,3,14,15,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,210,211,212,213,215,216,217,218,219,220,221,222,223,224.json +0 -257
  472. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,3,4,14,15,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,210,211,212,213,214,215,216,217,218,219,220,221,222.json +0 -377
  473. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,3,4,5,14,15,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,207,208,209,210,211,212,213,214,215,216,217,218.json +0 -460
  474. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,5,205,206,207,208,209,230,232.json +0 -229
  475. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN14,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192.json +0 -7
  476. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN15,193,194.json +0 -7
  477. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN215,216,217,218,219,220,221,222,223,224,225,226,227,228.json +0 -7
  478. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN219,220,221,222,223,224,225,226,227,228,230,232,240,241,242,243,244,245.json +0 -168
  479. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN223,224,225,226,227,228,230,232.json +0 -32
  480. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN225,226,227,228,230,232.json +0 -7
  481. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN240,241,242,243,244,245.json +0 -144
  482. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN246,247,248,249.json +0 -132
  483. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN3,195,196,197,198,199,200,201,202,203,210,211,212,213.json +0 -160
  484. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN4,214.json +0 -35
  485. package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN5,207,208,209.json +0 -108
  486. package/test/resources/9999999/asset/v1/content/assets/query/post-response-customerKey=testExisting_asset_htmlblock.json +0 -46
  487. package/test/resources/9999999/asset/v1/content/categories/post-response.json +0 -9
  488. package/test/resources/9999999/asset-deploy/block/testNew_asset_badExtension.bad-type-extension.json +0 -39
  489. package/test/resources/9999999/asset-deploy/block/testNew_asset_badName_bad.asset-block-meta.json +0 -39
  490. package/test/resources/9999999/asset-deploy2/block/testBlacklist_asset_htmlblock.asset-block-meta.html +0 -1
  491. package/test/resources/9999999/asset-deploy2/block/testBlacklist_asset_htmlblock.asset-block-meta.json +0 -39
  492. package/test/resources/9999999/asset-slashfolder-deploy/block/test_slash.asset-block-meta.html +0 -12
  493. package/test/resources/9999999/asset-slashfolder-deploy/block/test_slash.asset-block-meta.json +0 -29
  494. package/test/resources/9999999/attributeGroup/retrieve-expected.json +0 -25
  495. package/test/resources/9999999/attributeSet/retrieve-expected.json +0 -143
  496. package/test/resources/9999999/automation/build-expected.json +0 -61
  497. package/test/resources/9999999/automation/clone-expected.json +0 -61
  498. package/test/resources/9999999/automation/create-callout-expected.json +0 -66
  499. package/test/resources/9999999/automation/create-expected.json +0 -50
  500. package/test/resources/9999999/automation/create-testNew_automation-expected.md +0 -29
  501. package/test/resources/9999999/automation/delete-response.xml +0 -40
  502. package/test/resources/9999999/automation/patch_fixKeys-pause-expected.json +0 -44
  503. package/test/resources/9999999/automation/patch_fixKeys-schedule-expected.json +0 -44
  504. package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +0 -42
  505. package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_pause-response.xml +0 -42
  506. package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_schedule-response.xml +0 -42
  507. package/test/resources/9999999/automation/perform-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +0 -42
  508. package/test/resources/9999999/automation/retrieve-expected.json +0 -67
  509. package/test/resources/9999999/automation/retrieve-testExisting_automation-expected.md +0 -31
  510. package/test/resources/9999999/automation/retrieve-wait-expected.json +0 -81
  511. package/test/resources/9999999/automation/retrieve-wait-expected.md +0 -18
  512. package/test/resources/9999999/automation/template-expected.json +0 -61
  513. package/test/resources/9999999/automation/update-callout-expected.json +0 -68
  514. package/test/resources/9999999/automation/update-expected.json +0 -67
  515. package/test/resources/9999999/automation/update-testExisting_automation-expected.md +0 -31
  516. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +0 -92
  517. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/patch-response.json +0 -85
  518. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/get-response.json +0 -85
  519. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/patch-response.json +0 -85
  520. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/get-response.json +0 -85
  521. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/patch-response.json +0 -86
  522. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/get-response.json +0 -85
  523. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/patch-response.json +0 -86
  524. package/test/resources/9999999/automation/v1/automations/0fc2ac96-14ba-495a-8db9-3ddd4f8ac444-wait/get-response.json +0 -114
  525. package/test/resources/9999999/automation/v1/automations/8f82c2a7-0bae-45a9-bdee-e631ab25c0d5/get-response.json +0 -44
  526. package/test/resources/9999999/automation/v1/automations/a8afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +0 -85
  527. package/test/resources/9999999/automation/v1/automations/post-response.json +0 -93
  528. package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/delete-response.txt +0 -1
  529. package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/get-response.json +0 -38
  530. package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/patch-response.json +0 -38
  531. package/test/resources/9999999/automation/v1/dataextracts/get-response.json +0 -20
  532. package/test/resources/9999999/automation/v1/dataextracts/post-response.json +0 -38
  533. package/test/resources/9999999/automation/v1/dataextracttypes/get-response.json +0 -50
  534. package/test/resources/9999999/automation/v1/dataverifications/post-response.json +0 -12
  535. package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/delete-response.json +0 -0
  536. package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/get-response.json +0 -12
  537. package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/patch-response.json +0 -12
  538. package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/delete-response.json +0 -1
  539. package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/get-response.json +0 -18
  540. package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/patch-response.json +0 -18
  541. package/test/resources/9999999/automation/v1/filetransfers/get-response.json +0 -15
  542. package/test/resources/9999999/automation/v1/filetransfers/post-response.json +0 -18
  543. package/test/resources/9999999/automation/v1/filters/a0f1a1bc-4ea1-44b3-8fe1-ce40ef35c1c0/patch-response.json +0 -18
  544. package/test/resources/9999999/automation/v1/filters/f018f237-f7ef-40b0-afc8-39ea2e5dcca4/delete-response.txt +0 -0
  545. package/test/resources/9999999/automation/v1/filters/f018f237-f7ef-40b0-afc8-39ea2e5dcca4/get-response.json +0 -15
  546. package/test/resources/9999999/automation/v1/filters/f018f237-f7ef-40b0-afc8-39ea2e5dcca4/patch-response.json +0 -15
  547. package/test/resources/9999999/automation/v1/filters/get-response.json +0 -22
  548. package/test/resources/9999999/automation/v1/ftplocations/get-response.json +0 -43
  549. package/test/resources/9999999/automation/v1/imports/1ebf557b-372e-eb11-b81b-48df37d1dbd7/get-response.json +0 -78
  550. package/test/resources/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/delete-response.txt +0 -0
  551. package/test/resources/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/get-response.json +0 -35
  552. package/test/resources/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/patch-response.json +0 -35
  553. package/test/resources/9999999/automation/v1/imports/d2474efb-a449-ef11-b876-f40343c95928/get-response.json +0 -37
  554. package/test/resources/9999999/automation/v1/imports/get-response.json +0 -146
  555. package/test/resources/9999999/automation/v1/imports/post-response.json +0 -30
  556. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dae/actions/start/post-response.txt +0 -1
  557. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/actions/start/post-response.txt +0 -1
  558. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/delete-response.json +0 -1
  559. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/get-response.json +0 -17
  560. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/patch-response.json +0 -18
  561. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/get-response.json +0 -17
  562. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/patch-response.json +0 -18
  563. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeysSuffix/get-response.json +0 -17
  564. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeysSuffix/patch-response.json +0 -18
  565. package/test/resources/9999999/automation/v1/queries/abcde-607c-4940-afef-437965094dat/get-response.json +0 -17
  566. package/test/resources/9999999/automation/v1/queries/get-response-Name=testExisting_query.json +0 -24
  567. package/test/resources/9999999/automation/v1/queries/get-response.json +0 -92
  568. package/test/resources/9999999/automation/v1/queries/post-response.json +0 -18
  569. package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/delete-response.txt +0 -1
  570. package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/get-response.json +0 -10
  571. package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/patch-response.json +0 -10
  572. package/test/resources/9999999/automation/v1/scripts/get-response-name=testExisting_script.json +0 -17
  573. package/test/resources/9999999/automation/v1/scripts/get-response.json +0 -57
  574. package/test/resources/9999999/automation/v1/scripts/post-response.json +0 -10
  575. package/test/resources/9999999/data/v1/customobjectdata/key/testExisting_dataExtension/rowset/get-response.json +0 -13
  576. package/test/resources/9999999/data/v1/filetransferlocation/Salesforce%20Objects%20%26%20Reports/get-response.json +0 -4
  577. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_aws/patch-response.json +0 -18
  578. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/delete-response.json +0 -4
  579. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/get-response.json +0 -18
  580. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_exsftp/patch-response.json +0 -16
  581. package/test/resources/9999999/data/v1/filetransferlocations/get-response.json +0 -59
  582. package/test/resources/9999999/dataExtension/build-expected.json +0 -66
  583. package/test/resources/9999999/dataExtension/create-expected.json +0 -20
  584. package/test/resources/9999999/dataExtension/create-response.xml +0 -59
  585. package/test/resources/9999999/dataExtension/delete-response.xml +0 -42
  586. package/test/resources/9999999/dataExtension/retrieve-CustomerKey=testExisting_dataExtension-response.xml +0 -52
  587. package/test/resources/9999999/dataExtension/retrieve-CustomerKey=testNew_event_withSchema-response.xml +0 -50
  588. package/test/resources/9999999/dataExtension/retrieve-Name=testExisting_dataExtension-response.xml +0 -52
  589. package/test/resources/9999999/dataExtension/retrieve-createdViaEvent-response.xml +0 -50
  590. package/test/resources/9999999/dataExtension/retrieve-expected.json +0 -66
  591. package/test/resources/9999999/dataExtension/retrieve-expected.md +0 -25
  592. package/test/resources/9999999/dataExtension/retrieve-response.xml +0 -224
  593. package/test/resources/9999999/dataExtension/retrieve_event_withSchema-expected.json +0 -219
  594. package/test/resources/9999999/dataExtension/template-expected.json +0 -66
  595. package/test/resources/9999999/dataExtension/update-afterCreatedViaEvent-response.xml +0 -55
  596. package/test/resources/9999999/dataExtension/update-callout-afterCreatedViaEvent-expected.xml +0 -1
  597. package/test/resources/9999999/dataExtension/update-expected.json +0 -72
  598. package/test/resources/9999999/dataExtension/update-response.xml +0 -59
  599. package/test/resources/9999999/dataExtension-deploy/testBlacklist_dataExtension.dataExtension-meta.json +0 -20
  600. package/test/resources/9999999/dataExtensionField/retrieve-CustomerKey=[testExisting_dataExtension].[LastName]-response.xml +0 -44
  601. package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtension-response.xml +0 -133
  602. package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_dataExtensionORDataExtension.CustomerKey=testExisting_dataExtension-response.xml +0 -99
  603. package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_event_withSchema-response.xml +0 -461
  604. package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKeyINtestExisting_dataExtension,testNew_dataExtension-response.xml +0 -133
  605. package/test/resources/9999999/dataExtensionField/retrieve-Name=FirstName-response.xml +0 -78
  606. package/test/resources/9999999/dataExtensionField/retrieve-Name=LastName-response.xml +0 -78
  607. package/test/resources/9999999/dataExtensionField/retrieve-response.xml +0 -1075
  608. package/test/resources/9999999/dataExtensionTemplate/retrieve-response.xml +0 -303
  609. package/test/resources/9999999/dataExtract/build-expected.json +0 -35
  610. package/test/resources/9999999/dataExtract/get-expected.json +0 -39
  611. package/test/resources/9999999/dataExtract/patch-expected.json +0 -39
  612. package/test/resources/9999999/dataExtract/post-expected.json +0 -37
  613. package/test/resources/9999999/dataExtract/template-expected.json +0 -35
  614. package/test/resources/9999999/dataFilter/build-expected.json +0 -19
  615. package/test/resources/9999999/dataFilter/get-expected.json +0 -23
  616. package/test/resources/9999999/dataFilter/patch-expected.json +0 -20
  617. package/test/resources/9999999/dataFilter/post-expected.json +0 -20
  618. package/test/resources/9999999/dataFilter/template-expected.json +0 -19
  619. package/test/resources/9999999/dataFolder/+retrieve-ContentTypeINasset,asset-shared,cloudpages-slashfolder-response.xml +0 -136
  620. package/test/resources/9999999/dataFolder/create-ContentType=asset,Name=testFolder_samePath,ParentFolderID=89397-response.xml +0 -33
  621. package/test/resources/9999999/dataFolder/create-ContentType=dataextension,Name=my,ParentFolderID=2-response.xml +0 -33
  622. package/test/resources/9999999/dataFolder/create-ContentType=dataextension,Name=path,ParentFolderID=862002-response.xml +0 -33
  623. package/test/resources/9999999/dataFolder/create-ContentType=dataextension,Name=sub,ParentFolderID=862001-response.xml +0 -33
  624. package/test/resources/9999999/dataFolder/create-ContentType=dataextension,Name=subpath,ParentFolderID=862003-response.xml +0 -33
  625. package/test/resources/9999999/dataFolder/create-response.xml +0 -33
  626. package/test/resources/9999999/dataFolder/retrieve-ContentType=asset-shared-QAA-response.xml +0 -70
  627. package/test/resources/9999999/dataFolder/retrieve-ContentType=asset-shared-response.xml +0 -70
  628. package/test/resources/9999999/dataFolder/retrieve-ContentType=automations-response.xml +0 -48
  629. package/test/resources/9999999/dataFolder/retrieve-ContentType=journey-response.xml +0 -48
  630. package/test/resources/9999999/dataFolder/retrieve-ContentType=queryactivity-response.xml +0 -48
  631. package/test/resources/9999999/dataFolder/retrieve-ContentType=ssjsactivity-response.xml +0 -48
  632. package/test/resources/9999999/dataFolder/retrieve-ContentType=userinitiatedsends-response.xml +0 -48
  633. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,automatio,cloudpage,dataexten,filteract,filterdef,hidden,journey,list,mysubs,publicati,queryacti,salesforc,shared_da,shared_da,shared_sa,ssjsactiv,synchroni,useriniti-response.xml +0 -765
  634. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,automatio,cloudpage,dataexten,hidden,journey,list,mysubs,publicati,queryacti,salesforc,shared_da,shared_da,shared_sa,ssjsactiv,synchroni,triggered,triggered,useriniti-response.xml +0 -562
  635. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,automatio,cloudpage,dataexten,hidden,journey,list,mysubs,publicati,queryacti,salesforc,shared_da,shared_da,shared_sa,ssjsactiv,synchroni,useriniti-response.xml +0 -335
  636. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,dataexten,salesforc,shared_da,shared_da,shared_sa,synchroni,automatio,useriniti,journey,mysubs,list,publicati,queryacti,ssjsactiv,triggered,triggered-response.xml +0 -519
  637. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,cloudpages,dataextension,hidden,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -181
  638. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,cloudpages,journey-response.xml +0 -136
  639. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,cloudpages,ssjsactivity-response.xml +0 -136
  640. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,cloudpages-response.xml +0 -114
  641. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +0 -115
  642. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared-QAA-response.xml +0 -70
  643. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-shared-response.xml +0 -70
  644. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset-shared,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +0 -431
  645. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINautomations,queryactivity-response.xml +0 -70
  646. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINcontextual_suppression_list,hidden,list,mysubs,publication,suppression_list,triggered_send,triggered_send_journeybuilder-response.xml +0 -385
  647. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINcontextual_suppression_list,list,mysubs,publication,suppression_list-response.xml +0 -136
  648. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINdataextension,hidden,queryactivity,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -138
  649. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINdataextension,hidden,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -117
  650. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINdataextension,salesforcedataextension,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +0 -117
  651. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINfilteractivity,hidden-response.xml +0 -139
  652. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINfilterdefinition,hidden-response.xml +0 -116
  653. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINhidden,shared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-response.xml +0 -46
  654. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINhidden,triggered_send,triggered_send_journeybuilder-response.xml +0 -276
  655. package/test/resources/9999999/dataFolder/retrieve-ContentTypeINshared_data,shared_dataextension,shared_salesforcedataextension,synchronizeddataextension-QAA-response.xml +0 -251
  656. package/test/resources/9999999/dataFolder/retrieve-QAA-response.xml +0 -387
  657. package/test/resources/9999999/dataFolder/retrieve-response.xml +0 -542
  658. package/test/resources/9999999/dataFolder/retrieve-samePathOtherBU-response.xml +0 -564
  659. package/test/resources/9999999/dataFolder/update-response.xml +0 -31
  660. package/test/resources/9999999/deliveryProfile/get-expected.json +0 -7
  661. package/test/resources/9999999/domainVerification/create-expected.json +0 -3
  662. package/test/resources/9999999/domainVerification/get-sap-expected.json +0 -6
  663. package/test/resources/9999999/domainVerification/update-expected.json +0 -6
  664. package/test/resources/9999999/email/retrieve-response.xml +0 -203
  665. package/test/resources/9999999/email/v1/category/post-response-parentCatId=290937,name=my,catType=automations.json +0 -7
  666. package/test/resources/9999999/email/v1/category/post-response-parentCatId=862100,name=sub,catType=automations.json +0 -7
  667. package/test/resources/9999999/email/v1/category/post-response-parentCatId=862101,name=path,catType=automations.json +0 -7
  668. package/test/resources/9999999/email/v1/category/post-response-parentCatId=862102,name=subpath,catType=automations.json +0 -7
  669. package/test/resources/9999999/email/v1/filters/filterdefinition/10ef27dd-4be8-4bf6-970a-8acf8e281e55/delete-response.txt +0 -1
  670. package/test/resources/9999999/email/v1/filters/filterdefinition/10ef27dd-4be8-4bf6-970a-8acf8e281e55/get-response.json +0 -19
  671. package/test/resources/9999999/email/v1/filters/filterdefinition/10ef27dd-4be8-4bf6-970a-8acf8e281e55/patch-response.json +0 -15
  672. package/test/resources/9999999/email/v1/filters/filterdefinition/category/5318/get-response.json +0 -27
  673. package/test/resources/9999999/email/v1/filters/filterdefinition/category/8502/get-response.json +0 -7
  674. package/test/resources/9999999/email/v1/filters/filterdefinition/category/8503/get-response.json +0 -7
  675. package/test/resources/9999999/email/v1/filters/filterdefinition/post-response.json +0 -15
  676. package/test/resources/9999999/emailSend/build-expected.json +0 -43
  677. package/test/resources/9999999/emailSend/get-expected.json +0 -43
  678. package/test/resources/9999999/emailSend/patch-expected.json +0 -41
  679. package/test/resources/9999999/emailSend/post-expected.json +0 -41
  680. package/test/resources/9999999/emailSend/template-expected.json +0 -43
  681. package/test/resources/9999999/emailSendDefinition/create-response.xml +0 -98
  682. package/test/resources/9999999/emailSendDefinition/delete-response.xml +0 -36
  683. package/test/resources/9999999/emailSendDefinition/retrieve-IsPlatformObject=falseANDDescriptionnotEqualsSFSendDefinition-response.xml +0 -95
  684. package/test/resources/9999999/emailSendDefinition/update-response.xml +0 -97
  685. package/test/resources/9999999/event/build-expected.json +0 -226
  686. package/test/resources/9999999/event/get-automation-expected.json +0 -41
  687. package/test/resources/9999999/event/get-expected.json +0 -232
  688. package/test/resources/9999999/event/get-published-expected.json +0 -28
  689. package/test/resources/9999999/event/post_withExistingDE-callout-expected.json +0 -231
  690. package/test/resources/9999999/event/post_withExistingDE-expected.json +0 -21
  691. package/test/resources/9999999/event/post_withSchema-callout-expected.json +0 -202
  692. package/test/resources/9999999/event/post_withSchema-expected.json +0 -232
  693. package/test/resources/9999999/event/put-callout-expected.json +0 -207
  694. package/test/resources/9999999/event/put-expected.json +0 -232
  695. package/test/resources/9999999/event/template-expected.json +0 -226
  696. package/test/resources/9999999/event-deploy/testNew_event_badExtension.bad-type-extension.json +0 -200
  697. package/test/resources/9999999/event-deploy/testNew_event_badName_bad.event-meta.json +0 -200
  698. package/test/resources/9999999/eventDefinition/get-expected.json +0 -34
  699. package/test/resources/9999999/fileLocation/build-expected.json +0 -14
  700. package/test/resources/9999999/fileLocation/get-aws-expected.json +0 -14
  701. package/test/resources/9999999/fileLocation/get-azure-expected.json +0 -14
  702. package/test/resources/9999999/fileLocation/get-eftp-expected.json +0 -5
  703. package/test/resources/9999999/fileLocation/get-exsftp-expected.json +0 -12
  704. package/test/resources/9999999/fileLocation/get-gcp-expected.json +0 -10
  705. package/test/resources/9999999/fileLocation/get-sor-expected.json +0 -5
  706. package/test/resources/9999999/fileLocation/patch-aws-expected.json +0 -14
  707. package/test/resources/9999999/fileLocation/patch-exsftp-expected.json +0 -12
  708. package/test/resources/9999999/fileLocation/template-expected.json +0 -14
  709. package/test/resources/9999999/fileTransfer/build-expected.json +0 -15
  710. package/test/resources/9999999/fileTransfer/get-expected.json +0 -17
  711. package/test/resources/9999999/fileTransfer/patch-expected.json +0 -17
  712. package/test/resources/9999999/fileTransfer/post-expected.json +0 -17
  713. package/test/resources/9999999/fileTransfer/template-expected.json +0 -15
  714. package/test/resources/9999999/filter/build-expected.json +0 -10
  715. package/test/resources/9999999/filter/get-expected.json +0 -11
  716. package/test/resources/9999999/filter/patch-expected.json +0 -11
  717. package/test/resources/9999999/filter/post-expected.json +0 -11
  718. package/test/resources/9999999/filter/template-expected.json +0 -10
  719. package/test/resources/9999999/filterActivity/create-response.xml +0 -46
  720. package/test/resources/9999999/filterActivity/retrieve-CustomerKey=testExisting_filter-response.xml +0 -30
  721. package/test/resources/9999999/filterDefinition/retrieve-CustomerKey=testExisting_dataFilter-response.xml +0 -30
  722. package/test/resources/9999999/folder-deploy/Data Extensions/my/sub/path/subpath.folder-meta.json +0 -9
  723. package/test/resources/9999999/folder-deploy/Data Extensions/my/sub/path.folder-meta.json +0 -9
  724. package/test/resources/9999999/folder-deploy/Data Extensions/my/sub.folder-meta.json +0 -9
  725. package/test/resources/9999999/folder-deploy/Data Extensions/my.folder-meta.json +0 -9
  726. package/test/resources/9999999/folder-deploy/Data Extensions/testExisting_folder.folder-meta.json +0 -9
  727. package/test/resources/9999999/folder-deploy/my automations/my/sub/path/subpath.folder-meta.json +0 -9
  728. package/test/resources/9999999/folder-deploy/my automations/my/sub/path.folder-meta.json +0 -9
  729. package/test/resources/9999999/folder-deploy/my automations/my/sub.folder-meta.json +0 -9
  730. package/test/resources/9999999/folder-deploy/my automations/my.folder-meta.json +0 -9
  731. package/test/resources/9999999/folder-deploy-samepath/Content Builder/testFolder_samePath.folder-meta.json +0 -9
  732. package/test/resources/9999999/folder-deploy-slash/Content Builder/Headers%2FFolders.folder-meta.json +0 -9
  733. package/test/resources/9999999/hub/v1/contacts/schema/attributeGroups/get-response.json +0 -628
  734. package/test/resources/9999999/hub/v1/contacts/schema/setDefinitions/get-response.json +0 -20194
  735. package/test/resources/9999999/importDefinition/retrieve-CustomerKey=testExisting_importFile-response.xml +0 -30
  736. package/test/resources/9999999/importDefinition/retrieve-Name=testExisting_importFile-response.xml +0 -30
  737. package/test/resources/9999999/importFile/build-expected.json +0 -30
  738. package/test/resources/9999999/importFile/get-dataImport-expected.json +0 -36
  739. package/test/resources/9999999/importFile/get-expected.json +0 -36
  740. package/test/resources/9999999/importFile/get-sms-expected.json +0 -80
  741. package/test/resources/9999999/importFile/patch-expected.json +0 -32
  742. package/test/resources/9999999/importFile/post-expected.json +0 -30
  743. package/test/resources/9999999/importFile/template-expected.json +0 -30
  744. package/test/resources/9999999/interaction/v1/eventDefinitions/get-response.json +0 -426
  745. package/test/resources/9999999/interaction/v1/eventDefinitions/key_DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e/get-response.json +0 -39
  746. package/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/delete-response.txt +0 -0
  747. package/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event/put-response.json +0 -242
  748. package/test/resources/9999999/interaction/v1/eventDefinitions/key_testExisting_event_automation/get-response.json +0 -52
  749. package/test/resources/9999999/interaction/v1/eventDefinitions/post_withExistingDE-response.json +0 -28
  750. package/test/resources/9999999/interaction/v1/eventDefinitions/post_withSchema-response.json +0 -243
  751. package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/audit/all/get-response-versionNumber=1.json +0 -86
  752. package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/audit/all/get-response-versionNumber=2.json +0 -101
  753. package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/audit/all/get-response-versionNumber=3.json +0 -86
  754. package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/delete-response-versionNumber=1.txt +0 -1
  755. package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/delete-response.txt +0 -1
  756. package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/get-response-versionNumber=1.json +0 -461
  757. package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/get-response-versionNumber=3.json +0 -461
  758. package/test/resources/9999999/interaction/v1/interactions/0175b971-71a3-4d8e-98ac-48121f3fbf4f/get-response.json +0 -461
  759. package/test/resources/9999999/interaction/v1/interactions/3c3f4112-9b43-43ca-8a89-aa0375b2c1a2/delete-response.txt +0 -1
  760. package/test/resources/9999999/interaction/v1/interactions/3c3f4112-9b43-43ca-8a89-aa0375b2c1a2/get-response.json +0 -253
  761. package/test/resources/9999999/interaction/v1/interactions/dsfdsafdsa-922c-4568-85a5-e5cc77efc3be/audit/all/get-response-versionNumber=1.json +0 -38
  762. package/test/resources/9999999/interaction/v1/interactions/dsfdsafdsa-922c-4568-85a5-e5cc77efc3be/audit/all/get-response-versionNumber=2.json +0 -53
  763. package/test/resources/9999999/interaction/v1/interactions/dsfdsafdsa-922c-4568-85a5-e5cc77efc3be/delete-response.txt +0 -1
  764. package/test/resources/9999999/interaction/v1/interactions/get-response-status=Published.json +0 -40
  765. package/test/resources/9999999/interaction/v1/interactions/get-response.json +0 -249
  766. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Multistep/get-response-versionNumber=1.json +0 -461
  767. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Multistep/get-response.json +0 -461
  768. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Multistep/put-response.json +0 -461
  769. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Quicksend/get-response-versionNumber=1.json +0 -253
  770. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Quicksend/get-response.json +0 -253
  771. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_updatecontact/get-response.json +0 -119
  772. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_updatecontact/put-response.json +0 -106
  773. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_updatecontact_sharedDE/get-response.json +0 -119
  774. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_updatecontact_sharedDE/put-response.json +0 -110
  775. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail/get-response-versionNumber=1.json +0 -219
  776. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail/get-response.json +0 -219
  777. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail/put-response-paused.json +0 -219
  778. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail/put-response.json +0 -219
  779. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail_notPublished/get-response-versionNumber=1.json +0 -226
  780. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail_notPublished/get-response.json +0 -226
  781. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail_notPublished/put-response.json +0 -226
  782. package/test/resources/9999999/interaction/v1/interactions/key_testNew_temail_notPublished/get-response.json +0 -218
  783. package/test/resources/9999999/interaction/v1/interactions/post-response.json +0 -216
  784. package/test/resources/9999999/interaction/v1/interactions/publishAsync/0175b971-71a3-4d8e-98ac-48121f3fbf4f/post-response-versionNumber=1.json +0 -4
  785. package/test/resources/9999999/interaction/v1/interactions/publishAsync/0175b971-71a3-4d8e-98ac-48121f3fbf4f/post-response-versionNumber=3.json +0 -4
  786. package/test/resources/9999999/interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-failed.json +0 -34
  787. package/test/resources/9999999/interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-success.json +0 -5
  788. package/test/resources/9999999/interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-successWarnings.json +0 -36
  789. package/test/resources/9999999/interaction/v1/interactions/transactional/create/post-response.json +0 -3
  790. package/test/resources/9999999/interaction/v1/interactions/transactional/pause/post-response.json +0 -3
  791. package/test/resources/9999999/interaction/v1/interactions/transactional/resume/post-response.json +0 -3
  792. package/test/resources/9999999/interaction/v1/interactions/validateAsync/0175b971-71a3-4d8e-98ac-48121f3fbf4f/post-response.json +0 -4
  793. package/test/resources/9999999/interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-failed.json +0 -34
  794. package/test/resources/9999999/interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-success.json +0 -5
  795. package/test/resources/9999999/interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-successWarnings.json +0 -36
  796. package/test/resources/9999999/interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response.json +0 -0
  797. package/test/resources/9999999/journey/build-expected.json +0 -229
  798. package/test/resources/9999999/journey/create-transactionaEmail-publish-expected.json +0 -216
  799. package/test/resources/9999999/journey/get-multistep-expected.json +0 -414
  800. package/test/resources/9999999/journey/get-published-expected.json +0 -216
  801. package/test/resources/9999999/journey/get-quicksend-expected.json +0 -234
  802. package/test/resources/9999999/journey/get-quicksend-rcb-id-expected.json +0 -232
  803. package/test/resources/9999999/journey/get-quicksend-rcb-key-expected.json +0 -232
  804. package/test/resources/9999999/journey/get-quicksend-rcb-name-expected.json +0 -236
  805. package/test/resources/9999999/journey/get-transactionalEmail-expected.json +0 -211
  806. package/test/resources/9999999/journey/get-updatecontact-expected.json +0 -108
  807. package/test/resources/9999999/journey/get-updatecontact-sharedDE-expected.json +0 -108
  808. package/test/resources/9999999/journey/post-expected.json +0 -264
  809. package/test/resources/9999999/journey/publish-callout-expected.json +0 -1
  810. package/test/resources/9999999/journey/put-expected.json +0 -576
  811. package/test/resources/9999999/journey/put-updatecontact-expected.json +0 -108
  812. package/test/resources/9999999/journey/put-updatecontact-sharedDE-expected.json +0 -108
  813. package/test/resources/9999999/journey/template-expected.json +0 -229
  814. package/test/resources/9999999/journey/validate-callout-expected.json +0 -1
  815. package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +0 -21
  816. package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/post-response.json +0 -0
  817. package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow-PAUSED/get-response.json +0 -3
  818. package/test/resources/9999999/legacy/v1/beta/automations/notifications/bHF6Q0Q3b1VXa21OdVQzZFQ0ckVSQToyNTow/get-response.json +0 -3
  819. package/test/resources/9999999/legacy/v1/beta/automations/notifications/cDhLQ2o2NExxVVc5N3VZeHF5WEExUToyNTow/get-response.json +0 -3
  820. package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/NewRkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +0 -29
  821. package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +0 -50
  822. package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow-PAUSED/get-response.json +0 -51
  823. package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/bHF6Q0Q3b1VXa21OdVQzZFQ0ckVSQToyNTow/get-response.json +0 -216
  824. package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/cDhLQ2o2NExxVVc5N3VZeHF5WEExUToyNTow/get-response.json +0 -79
  825. package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/get-response.json +0 -286
  826. package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/post-response-pauseSchedule.json +0 -1
  827. package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/post-response-schedule.json +0 -1
  828. package/test/resources/9999999/legacy/v1/beta/messaging/deliverypolicy/get-response.json +0 -15
  829. package/test/resources/9999999/legacy/v1/beta/mobile/code/get-response.json +0 -32
  830. package/test/resources/9999999/legacy/v1/beta/mobile/imports/get-response.json +0 -112
  831. package/test/resources/9999999/legacy/v1/beta/mobile/keyword/NXV4ZFMwTEFwRVczd3RaLUF5X3p5dzo4Njow/get-response.json +0 -42
  832. package/test/resources/9999999/legacy/v1/beta/mobile/keyword/cTVJaG5oSDJPVUNHcUh6Z3pQT2tVdzo4Njow/delete-response.json +0 -0
  833. package/test/resources/9999999/legacy/v1/beta/mobile/keyword/get-response.json +0 -47
  834. package/test/resources/9999999/legacy/v1/beta/mobile/keyword/post-response.json +0 -3
  835. package/test/resources/9999999/legacy/v1/beta/mobile/message/NTIzOjc4OjA/delete-response.json +0 -0
  836. package/test/resources/9999999/legacy/v1/beta/mobile/message/NTIzOjc4OjA/get-response.json +0 -106
  837. package/test/resources/9999999/legacy/v1/beta/mobile/message/NTIzOjc4OjA/post-response.json +0 -0
  838. package/test/resources/9999999/legacy/v1/beta/mobile/message/NTQ3Ojc4OjA/get-response.json +0 -127
  839. package/test/resources/9999999/legacy/v1/beta/mobile/message/get-response.json +0 -129
  840. package/test/resources/9999999/legacy/v1/beta/mobile/message/post-response.json +0 -3
  841. package/test/resources/9999999/legacy/v1/beta/object/NWQwdnhEU3dFZWVBekJRQzdISWl0QTo0NTow/get-response.json +0 -12
  842. package/test/resources/9999999/legacy/v1/beta2/data/campaign/get-response.json +0 -29
  843. package/test/resources/9999999/list/retrieve-response.xml +0 -91
  844. package/test/resources/9999999/messaging/v1/domainverification/delete/post-response.txt +0 -1
  845. package/test/resources/9999999/messaging/v1/domainverification/get-response.json +0 -52
  846. package/test/resources/9999999/messaging/v1/domainverification/post-response.txt +0 -1
  847. package/test/resources/9999999/messaging/v1/domainverification/update/post-response.txt +0 -1
  848. package/test/resources/9999999/messaging/v1/email/definitions/get-response.json +0 -29
  849. package/test/resources/9999999/messaging/v1/email/definitions/post-response.json +0 -19
  850. package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/delete-response.json +0 -6
  851. package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/get-response.json +0 -26
  852. package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/patch-response.json +0 -26
  853. package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail_notPublished/get-response.json +0 -26
  854. package/test/resources/9999999/messaging/v1/email/definitions/testNew_temail_notPublished/get-response.json +0 -26
  855. package/test/resources/9999999/messaging/v1/push/definitions/get-response.json +0 -15
  856. package/test/resources/9999999/messaging/v1/push/definitions/post-response.json +0 -13
  857. package/test/resources/9999999/messaging/v1/push/definitions/testExisting_tpush/get-response.json +0 -13
  858. package/test/resources/9999999/messaging/v1/push/definitions/testExisting_tpush/patch-response.json +0 -13
  859. package/test/resources/9999999/messaging/v1/sms/definitions/get-response.json +0 -15
  860. package/test/resources/9999999/messaging/v1/sms/definitions/post-response.json +0 -19
  861. package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/get-response.json +0 -20
  862. package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/patch-response.json +0 -20
  863. package/test/resources/9999999/mobileKeyword/build-expected.amp +0 -6
  864. package/test/resources/9999999/mobileKeyword/build-expected.json +0 -7
  865. package/test/resources/9999999/mobileKeyword/get-expected.amp +0 -6
  866. package/test/resources/9999999/mobileKeyword/get-expected.json +0 -13
  867. package/test/resources/9999999/mobileKeyword/post-create-expected.amp +0 -2
  868. package/test/resources/9999999/mobileKeyword/post-create-expected.json +0 -15
  869. package/test/resources/9999999/mobileKeyword/template-expected.amp +0 -6
  870. package/test/resources/9999999/mobileKeyword/template-expected.json +0 -7
  871. package/test/resources/9999999/mobileMessage/build-expected.amp +0 -6
  872. package/test/resources/9999999/mobileMessage/build-expected.json +0 -57
  873. package/test/resources/9999999/mobileMessage/get-expected.amp +0 -6
  874. package/test/resources/9999999/mobileMessage/get-expected.json +0 -58
  875. package/test/resources/9999999/mobileMessage/post-create-expected.amp +0 -1
  876. package/test/resources/9999999/mobileMessage/post-create-expected.json +0 -61
  877. package/test/resources/9999999/mobileMessage/post-update-expected.amp +0 -1
  878. package/test/resources/9999999/mobileMessage/post-update-expected.json +0 -58
  879. package/test/resources/9999999/mobileMessage/template-expected.amp +0 -6
  880. package/test/resources/9999999/mobileMessage/template-expected.json +0 -57
  881. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation-response.xml +0 -30
  882. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_pause-response.xml +0 -32
  883. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_schedule-response.xml +0 -32
  884. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_paused-response.xml +0 -32
  885. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_scheduled-response.xml +0 -32
  886. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_pause-response.xml +0 -30
  887. package/test/resources/9999999/program/retrieve-CustomerKey=testNew_automation-response.xml +0 -30
  888. package/test/resources/9999999/program/retrieve-Name=testExisting_automation-response.xml +0 -31
  889. package/test/resources/9999999/program/retrieve-response.xml +0 -62
  890. package/test/resources/9999999/query/build-expected.json +0 -8
  891. package/test/resources/9999999/query/build-expected.sql +0 -7
  892. package/test/resources/9999999/query/clone-expected.json +0 -8
  893. package/test/resources/9999999/query/clone-expected.sql +0 -7
  894. package/test/resources/9999999/query/get-expected.json +0 -11
  895. package/test/resources/9999999/query/get-expected.sql +0 -7
  896. package/test/resources/9999999/query/get2-expected.json +0 -11
  897. package/test/resources/9999999/query/get_sharedDE-expected.json +0 -11
  898. package/test/resources/9999999/query/get_sharedDE-expected.sql +0 -7
  899. package/test/resources/9999999/query/patch-expected.json +0 -11
  900. package/test/resources/9999999/query/patch-expected.sql +0 -6
  901. package/test/resources/9999999/query/patch_fixKeys-expected.json +0 -11
  902. package/test/resources/9999999/query/patch_fixKeys-expected.sql +0 -6
  903. package/test/resources/9999999/query/patch_fixKeysSuffix-expected.json +0 -11
  904. package/test/resources/9999999/query/patch_fixKeysSuffix-expected.sql +0 -6
  905. package/test/resources/9999999/query/post-expected.json +0 -11
  906. package/test/resources/9999999/query/post-expected.sql +0 -4
  907. package/test/resources/9999999/query/template-expected.json +0 -8
  908. package/test/resources/9999999/query/template-expected.sql +0 -7
  909. package/test/resources/9999999/query/template_sharedDE-expected.json +0 -8
  910. package/test/resources/9999999/query/template_sharedDE-expected.sql +0 -7
  911. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=badANDStatus=Active-response.xml +0 -26
  912. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query2ANDStatus=Active-response.xml +0 -30
  913. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_queryANDStatus=Active-response.xml +0 -30
  914. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixKeysANDStatus=Active-response.xml +0 -30
  915. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixKeysSuffixANDStatus=Active-response.xml +0 -30
  916. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixedKeysANDStatus=Active-response.xml +0 -30
  917. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testNew_queryANDStatus=Active-response.xml +0 -30
  918. package/test/resources/9999999/script/build-expected.json +0 -6
  919. package/test/resources/9999999/script/build-expected.ssjs +0 -1
  920. package/test/resources/9999999/script/get-expected.json +0 -8
  921. package/test/resources/9999999/script/get-expected.ssjs +0 -1
  922. package/test/resources/9999999/script/get_ampincluded-expected.html +0 -5
  923. package/test/resources/9999999/script/get_ampincluded-expected.json +0 -8
  924. package/test/resources/9999999/script/get_ampincluded-rcb-id-expected.html +0 -5
  925. package/test/resources/9999999/script/get_ampincluded-rcb-key-expected.html +0 -5
  926. package/test/resources/9999999/script/get_ampincluded-rcb-name-expected.html +0 -5
  927. package/test/resources/9999999/script/get_ampscript-expected.html +0 -11
  928. package/test/resources/9999999/script/get_ampscript-expected.json +0 -8
  929. package/test/resources/9999999/script/get_ampscript-rcb-id-expected.html +0 -9
  930. package/test/resources/9999999/script/get_ampscript-rcb-key-expected.html +0 -9
  931. package/test/resources/9999999/script/get_ampscript-rcb-name-expected.html +0 -13
  932. package/test/resources/9999999/script/get_mixed-expected.html +0 -12
  933. package/test/resources/9999999/script/get_mixed-expected.json +0 -8
  934. package/test/resources/9999999/script/get_mixed-rcb-id-expected.html +0 -12
  935. package/test/resources/9999999/script/get_mixed-rcb-key-expected.html +0 -12
  936. package/test/resources/9999999/script/get_mixed-rcb-name-expected.html +0 -14
  937. package/test/resources/9999999/script/get_noScriptTag-expected.html +0 -1
  938. package/test/resources/9999999/script/get_noScriptTag-expected.json +0 -8
  939. package/test/resources/9999999/script/patch-expected.json +0 -8
  940. package/test/resources/9999999/script/patch-expected.ssjs +0 -2
  941. package/test/resources/9999999/script/post-expected.json +0 -8
  942. package/test/resources/9999999/script/post-expected.ssjs +0 -1
  943. package/test/resources/9999999/script/template-expected.json +0 -6
  944. package/test/resources/9999999/script/template-expected.ssjs +0 -1
  945. package/test/resources/9999999/sendClassification/build-expected.json +0 -8
  946. package/test/resources/9999999/sendClassification/create-response.xml +0 -51
  947. package/test/resources/9999999/sendClassification/delete-response.xml +0 -36
  948. package/test/resources/9999999/sendClassification/get-expected.json +0 -10
  949. package/test/resources/9999999/sendClassification/patch-expected.json +0 -10
  950. package/test/resources/9999999/sendClassification/post-expected.json +0 -8
  951. package/test/resources/9999999/sendClassification/retrieve-response.xml +0 -86
  952. package/test/resources/9999999/sendClassification/template-expected.json +0 -8
  953. package/test/resources/9999999/sendClassification/update-response.xml +0 -49
  954. package/test/resources/9999999/senderProfile/build-expected.json +0 -15
  955. package/test/resources/9999999/senderProfile/create-response.xml +0 -50
  956. package/test/resources/9999999/senderProfile/delete-response.xml +0 -36
  957. package/test/resources/9999999/senderProfile/get-expected.json +0 -19
  958. package/test/resources/9999999/senderProfile/get-rcb-id-expected.json +0 -19
  959. package/test/resources/9999999/senderProfile/get-rcb-key-expected.json +0 -19
  960. package/test/resources/9999999/senderProfile/get-rcb-name-expected.json +0 -19
  961. package/test/resources/9999999/senderProfile/patch-expected.json +0 -19
  962. package/test/resources/9999999/senderProfile/post-expected.json +0 -15
  963. package/test/resources/9999999/senderProfile/retrieve-CustomerKey=Default-response.xml +0 -49
  964. package/test/resources/9999999/senderProfile/retrieve-CustomerKey=wrong-key-response.xml +0 -26
  965. package/test/resources/9999999/senderProfile/retrieve-response.xml +0 -95
  966. package/test/resources/9999999/senderProfile/template-expected.json +0 -15
  967. package/test/resources/9999999/senderProfile/update-response.xml +0 -48
  968. package/test/resources/9999999/transactionalEmail/build-expected.json +0 -18
  969. package/test/resources/9999999/transactionalEmail/create-publish-expected.json +0 -20
  970. package/test/resources/9999999/transactionalEmail/get-expected.json +0 -20
  971. package/test/resources/9999999/transactionalEmail/get-published-expected.json +0 -20
  972. package/test/resources/9999999/transactionalEmail/patch-expected.json +0 -20
  973. package/test/resources/9999999/transactionalEmail/post-expected.json +0 -20
  974. package/test/resources/9999999/transactionalEmail/template-expected.json +0 -18
  975. package/test/resources/9999999/transactionalPush/build-expected.json +0 -8
  976. package/test/resources/9999999/transactionalPush/get-expected.json +0 -11
  977. package/test/resources/9999999/transactionalPush/patch-expected.json +0 -14
  978. package/test/resources/9999999/transactionalPush/post-expected.json +0 -14
  979. package/test/resources/9999999/transactionalPush/template-expected.json +0 -8
  980. package/test/resources/9999999/transactionalSMS/build-expected.amp +0 -108
  981. package/test/resources/9999999/transactionalSMS/build-expected.json +0 -12
  982. package/test/resources/9999999/transactionalSMS/get-expected.amp +0 -108
  983. package/test/resources/9999999/transactionalSMS/get-expected.json +0 -14
  984. package/test/resources/9999999/transactionalSMS/patch-expected.amp +0 -102
  985. package/test/resources/9999999/transactionalSMS/patch-expected.json +0 -14
  986. package/test/resources/9999999/transactionalSMS/post-expected.amp +0 -102
  987. package/test/resources/9999999/transactionalSMS/post-expected.json +0 -14
  988. package/test/resources/9999999/transactionalSMS/template-expected.amp +0 -108
  989. package/test/resources/9999999/transactionalSMS/template-expected.json +0 -12
  990. package/test/resources/9999999/triggeredSend/build-expected.json +0 -28
  991. package/test/resources/9999999/triggeredSend/get-expected.json +0 -28
  992. package/test/resources/9999999/triggeredSend/get-rcb-id-expected.json +0 -28
  993. package/test/resources/9999999/triggeredSend/get-rcb-key-expected.json +0 -28
  994. package/test/resources/9999999/triggeredSend/get-rcb-name-expected.json +0 -28
  995. package/test/resources/9999999/triggeredSend/patch-expected.json +0 -27
  996. package/test/resources/9999999/triggeredSend/post-expected.json +0 -27
  997. package/test/resources/9999999/triggeredSend/template-expected.json +0 -28
  998. package/test/resources/9999999/triggeredSendDefinition/create-response.xml +0 -79
  999. package/test/resources/9999999/triggeredSendDefinition/delete-response.xml +0 -36
  1000. package/test/resources/9999999/triggeredSendDefinition/retrieve-CustomerKey=testExisting_triggeredSend-response.xml +0 -72
  1001. package/test/resources/9999999/triggeredSendDefinition/retrieve-CustomerKey=testExisting_triggeredSend_rcb-response.xml +0 -72
  1002. package/test/resources/9999999/triggeredSendDefinition/retrieve-TriggeredSendStatusINNew,Active,Inactive,Moved,Canceled-response.xml +0 -118
  1003. package/test/resources/9999999/triggeredSendDefinition/retrieve-TriggeredSendStatusINdummy,Active-response.xml +0 -118
  1004. package/test/resources/9999999/triggeredSendDefinition/update-response.xml +0 -78
  1005. package/test/resources/9999999/triggeredSendSummary/get-expected.json +0 -24
  1006. package/test/resources/9999999/triggeredSendSummary/retrieve-response.xml +0 -49
  1007. package/test/resources/9999999/verification/build-expected.json +0 -11
  1008. package/test/resources/9999999/verification/get-expected.json +0 -12
  1009. package/test/resources/9999999/verification/patch-expected.json +0 -12
  1010. package/test/resources/9999999/verification/post-expected.json +0 -12
  1011. package/test/resources/9999999/verification/template-expected.json +0 -11
  1012. package/test/resources/auth.json +0 -32
  1013. package/test/resources/rest404-response.json +0 -5
  1014. package/test/resources/retrieve-response.xml +0 -21
  1015. package/test/type.asset.test.js +0 -1432
  1016. package/test/type.attributeGroup.test.js +0 -56
  1017. package/test/type.attributeSet.test.js +0 -97
  1018. package/test/type.automation.test.js +0 -1003
  1019. package/test/type.dataExtension.test.js +0 -419
  1020. package/test/type.dataExtensionField.test.js +0 -81
  1021. package/test/type.dataExtract.test.js +0 -186
  1022. package/test/type.dataFilter.test.js +0 -182
  1023. package/test/type.deliveryProfile.test.js +0 -45
  1024. package/test/type.domainVerification.test.js +0 -169
  1025. package/test/type.emailSend.test.js +0 -144
  1026. package/test/type.event.test.js +0 -346
  1027. package/test/type.fileLocation.test.js +0 -279
  1028. package/test/type.fileTransfer.test.js +0 -183
  1029. package/test/type.filter.test.js +0 -177
  1030. package/test/type.folder.test.js +0 -264
  1031. package/test/type.importFile.test.js +0 -223
  1032. package/test/type.journey.test.js +0 -1649
  1033. package/test/type.mobileKeyword.test.js +0 -279
  1034. package/test/type.mobileMessage.test.js +0 -206
  1035. package/test/type.query.test.js +0 -1031
  1036. package/test/type.script.test.js +0 -674
  1037. package/test/type.sendClassification.test.js +0 -156
  1038. package/test/type.senderProfile.test.js +0 -320
  1039. package/test/type.transactionalEmail.test.js +0 -162
  1040. package/test/type.transactionalPush.test.js +0 -160
  1041. package/test/type.transactionalSMS.test.js +0 -222
  1042. package/test/type.triggeredSend.test.js +0 -397
  1043. package/test/type.triggeredSendSummary.test.js +0 -45
  1044. package/test/type.user.test.js +0 -221
  1045. package/test/type.verification.test.js +0 -169
  1046. package/test/utils.js +0 -426
  1047. package/tsconfig.json +0 -26
  1048. package/tsconfig.npmScripts.json +0 -12
  1049. package/tsconfig.precommit.json +0 -26
@@ -1,1649 +0,0 @@
1
- import * as chai from 'chai';
2
- const assert = chai.assert;
3
-
4
- import chaiFiles from 'chai-files';
5
- import cache from '../lib/util/cache.js';
6
- import * as testUtils from './utils.js';
7
- import handler from '../lib/index.js';
8
- chai.use(chaiFiles);
9
-
10
- describe('type: journey', () => {
11
- beforeEach(() => {
12
- testUtils.mockSetup();
13
- });
14
-
15
- afterEach(() => {
16
- testUtils.mockReset();
17
- });
18
-
19
- describe('Retrieve ================', () => {
20
- it('Should retrieve a journey w/o keys', async () => {
21
- // WHEN
22
- await handler.retrieve('testInstance/testBU', ['journey']);
23
- // THEN
24
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
25
- // get results from cache
26
- const result = cache.getCache();
27
- assert.equal(
28
- result.journey ? Object.keys(result.journey).length : 0,
29
- 6,
30
- 'unexpected number of journeys'
31
- );
32
- assert.deepEqual(
33
- await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
34
- await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend'),
35
- 'returned JSON was not equal expected'
36
- );
37
- assert.deepEqual(
38
- await testUtils.getActualJson('testExisting_journey_Multistep', 'journey'),
39
- await testUtils.getExpectedJson('9999999', 'journey', 'get-multistep'),
40
- 'returned JSON was not equal expected'
41
- );
42
- assert.deepEqual(
43
- await testUtils.getActualJson('testExisting_temail', 'journey'),
44
- await testUtils.getExpectedJson('9999999', 'journey', 'get-transactionalEmail'),
45
- 'returned JSON was not equal expected'
46
- );
47
- assert.deepEqual(
48
- await testUtils.getActualJson(
49
- 'testExisting_journey_updatecontact_sharedDE',
50
- 'journey'
51
- ),
52
- await testUtils.getExpectedJson('9999999', 'journey', 'get-updatecontact-sharedDE'),
53
- 'returned JSON was not equal expected'
54
- );
55
- assert.equal(
56
- testUtils.getAPIHistoryLength(),
57
- 31,
58
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
59
- );
60
- return;
61
- });
62
-
63
- it('Should retrieve journeys with dataExtension type simultaneously (mcdev retrieve cred/bu -m journey dataExtension)', async () => {
64
- // WHEN - both types at once, no keys: unrelated DEs present alongside UPDATECONTACTDATA DEs
65
- await handler.retrieve('testInstance/testBU', ['journey', 'dataExtension']);
66
- // THEN
67
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
68
- // get results from cache
69
- const result = cache.getCache();
70
- assert.equal(
71
- result.journey ? Object.keys(result.journey).length : 0,
72
- 6,
73
- 'unexpected number of journeys (includes local-DE and shared-DE UPDATECONTACTDATA journeys)'
74
- );
75
- // Verify UPDATECONTACTDATA activity with local DE is correctly resolved
76
- assert.deepEqual(
77
- await testUtils.getActualJson('testExisting_journey_updatecontact', 'journey'),
78
- await testUtils.getExpectedJson('9999999', 'journey', 'get-updatecontact'),
79
- 'returned JSON was not equal expected for journey with local DE updatecontact activity'
80
- );
81
- // Verify UPDATECONTACTDATA activity with shared DE is correctly resolved
82
- assert.deepEqual(
83
- await testUtils.getActualJson(
84
- 'testExisting_journey_updatecontact_sharedDE',
85
- 'journey'
86
- ),
87
- await testUtils.getExpectedJson('9999999', 'journey', 'get-updatecontact-sharedDE'),
88
- 'returned JSON was not equal expected for journey with shared DE updatecontact activity'
89
- );
90
- assert.equal(
91
- testUtils.getAPIHistoryLength(),
92
- 34,
93
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
94
- );
95
- return;
96
- });
97
-
98
- it('Should retrieve only published journeys', async () => {
99
- handler.setOptions({ onlyPublished: true });
100
- // WHEN
101
- await handler.retrieve('testInstance/testBU', ['journey']);
102
- // THEN
103
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
104
- // get results from cache
105
- const result = cache.getCache();
106
- assert.equal(
107
- result.journey ? Object.keys(result.journey).length : 0,
108
- 1,
109
- 'unexpected number of journeys'
110
- );
111
- assert.deepEqual(
112
- await testUtils.getActualJson('testExisting_temail', 'journey'),
113
- await testUtils.getExpectedJson('9999999', 'journey', 'get-transactionalEmail'),
114
- 'returned JSON was not equal expected'
115
- );
116
- assert.equal(
117
- testUtils.getAPIHistoryLength(),
118
- 24,
119
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
120
- );
121
- return;
122
- });
123
-
124
- it('Should retrieve a Quicksend journey with key', async () => {
125
- // WHEN
126
- await handler.retrieve(
127
- 'testInstance/testBU',
128
- ['journey'],
129
- ['testExisting_journey_Quicksend']
130
- );
131
- // THEN
132
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
133
- // get results from cache
134
- const result = cache.getCache();
135
- assert.equal(
136
- result.journey ? Object.keys(result.journey).length : 0,
137
- 1,
138
- 'only 1 journeys expected'
139
- );
140
- assert.deepEqual(
141
- await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
142
- await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend'),
143
- 'returned JSON was not equal expected'
144
- );
145
- assert.equal(
146
- testUtils.getAPIHistoryLength(),
147
- 19,
148
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
149
- );
150
- return;
151
- });
152
-
153
- it('Should retrieve a Multistep journey with key', async () => {
154
- // WHEN
155
- await handler.retrieve(
156
- 'testInstance/testBU',
157
- ['journey'],
158
- ['testExisting_journey_Multistep']
159
- );
160
- // THEN
161
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
162
- // get results from cache
163
- const result = cache.getCache();
164
- assert.equal(
165
- result.journey ? Object.keys(result.journey).length : 0,
166
- 1,
167
- 'only 1 journeys expected'
168
- );
169
-
170
- assert.deepEqual(
171
- await testUtils.getActualJson('testExisting_journey_Multistep', 'journey'),
172
- await testUtils.getExpectedJson('9999999', 'journey', 'get-multistep'),
173
- 'returned JSON was not equal expected'
174
- );
175
- assert.equal(
176
- testUtils.getAPIHistoryLength(),
177
- 19,
178
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
179
- );
180
- return;
181
- });
182
-
183
- it('Should retrieve a journey containing an UPDATECONTACTDATA activity with key', async () => {
184
- // WHEN
185
- await handler.retrieve(
186
- 'testInstance/testBU',
187
- ['journey'],
188
- ['testExisting_journey_updatecontact']
189
- );
190
- // THEN
191
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
192
- // get results from cache
193
- const result = cache.getCache();
194
- assert.equal(
195
- result.journey ? Object.keys(result.journey).length : 0,
196
- 1,
197
- 'only 1 journeys expected'
198
- );
199
-
200
- assert.deepEqual(
201
- await testUtils.getActualJson('testExisting_journey_updatecontact', 'journey'),
202
- await testUtils.getExpectedJson('9999999', 'journey', 'get-updatecontact'),
203
- 'returned JSON was not equal expected'
204
- );
205
- assert.equal(
206
- testUtils.getAPIHistoryLength(),
207
- 20,
208
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
209
- );
210
- return;
211
- });
212
-
213
- it('Should retrieve a journey containing an UPDATECONTACTDATA activity referencing a shared DE with key', async () => {
214
- // WHEN
215
- await handler.retrieve(
216
- 'testInstance/testBU',
217
- ['journey'],
218
- ['testExisting_journey_updatecontact_sharedDE']
219
- );
220
- // THEN
221
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
222
- // get results from cache
223
- const result = cache.getCache();
224
- assert.equal(
225
- result.journey ? Object.keys(result.journey).length : 0,
226
- 1,
227
- 'only 1 journeys expected'
228
- );
229
-
230
- assert.deepEqual(
231
- await testUtils.getActualJson(
232
- 'testExisting_journey_updatecontact_sharedDE',
233
- 'journey'
234
- ),
235
- await testUtils.getExpectedJson('9999999', 'journey', 'get-updatecontact-sharedDE'),
236
- 'returned JSON was not equal expected'
237
- );
238
- assert.equal(
239
- testUtils.getAPIHistoryLength(),
240
- 20,
241
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
242
- );
243
- return;
244
- });
245
-
246
- it('Should retrieve a Transactional Email journey with key', async () => {
247
- // WHEN
248
- await handler.retrieve('testInstance/testBU', ['journey'], ['testExisting_temail']);
249
- // THEN
250
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
251
- // get results from cache
252
- const result = cache.getCache();
253
- assert.equal(
254
- result.journey ? Object.keys(result.journey).length : 0,
255
- 1,
256
- 'only 1 journeys expected'
257
- );
258
-
259
- assert.deepEqual(
260
- await testUtils.getActualJson('testExisting_temail', 'journey'),
261
- await testUtils.getExpectedJson('9999999', 'journey', 'get-transactionalEmail'),
262
- 'returned JSON was not equal expected'
263
- );
264
- assert.equal(
265
- testUtils.getAPIHistoryLength(),
266
- 23,
267
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
268
- );
269
- return;
270
- });
271
-
272
- it('Should retrieve a journey with id', async () => {
273
- // WHEN
274
- await handler.retrieve(
275
- 'testInstance/testBU',
276
- ['journey'],
277
- ['id:3c3f4112-9b43-43ca-8a89-aa0375b2c1a2']
278
- );
279
- // THEN
280
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
281
- // get results from cache
282
- const result = cache.getCache();
283
- assert.equal(
284
- result.journey ? Object.keys(result.journey).length : 0,
285
- 1,
286
- 'only 1 journeys expected'
287
- );
288
- assert.deepEqual(
289
- await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
290
- await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend'),
291
- 'returned JSON was not equal expected'
292
- );
293
- assert.equal(
294
- testUtils.getAPIHistoryLength(),
295
- 19,
296
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
297
- );
298
- return;
299
- });
300
-
301
- it('Should retrieve a journey with name', async () => {
302
- // WHEN
303
- await handler.retrieve(
304
- 'testInstance/testBU',
305
- ['journey'],
306
- ['name:testExisting_journey_Quicksend']
307
- );
308
- // THEN
309
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
310
- // get results from cache
311
- const result = cache.getCache();
312
- assert.equal(
313
- result.journey ? Object.keys(result.journey).length : 0,
314
- 1,
315
- 'only 1 journeys expected'
316
- );
317
- assert.deepEqual(
318
- await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
319
- await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend'),
320
- 'returned JSON was not equal expected'
321
- );
322
- assert.equal(
323
- testUtils.getAPIHistoryLength(),
324
- 20,
325
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
326
- );
327
- return;
328
- });
329
- });
330
-
331
- describe('Deploy ================', () => {
332
- beforeEach(() => {
333
- testUtils.mockSetup(true);
334
- });
335
-
336
- it('Should NOT change the key during update with --changeKeyValue and instead fail due to missing support', async () => {
337
- // WHEN
338
- handler.setOptions({ changeKeyValue: 'updatedKey' });
339
- await handler.deploy(
340
- 'testInstance/testBU',
341
- ['journey'],
342
- ['testExisting_journey_Quicksend']
343
- );
344
- // THEN
345
- assert.equal(
346
- process.exitCode,
347
- 1,
348
- 'deploy should have thrown an error due to lack of support'
349
- );
350
- return;
351
- });
352
-
353
- it('Should deploy --publish an already published transactional journey by first pausing it', async () => {
354
- await testUtils.copyFile(
355
- 'interaction/v1/interactions/key_testExisting_temail/put-response-paused.json',
356
- 'interaction/v1/interactions/key_testExisting_temail/put-response.json'
357
- );
358
- // WHEN
359
- handler.setOptions({ skipStatusCheck: true, publish: true });
360
- const deploy = await handler.deploy(
361
- 'testInstance/testBU',
362
- ['journey'],
363
- ['testExisting_temail']
364
- );
365
-
366
- // THEN
367
- assert.equal(process.exitCode, 0, 'deploy --publish should not have thrown an error');
368
- // retrieve result
369
- assert.deepEqual(
370
- Object.keys(deploy['testInstance/testBU']?.journey),
371
- ['testExisting_temail'],
372
- 'should have published the right journey'
373
- );
374
-
375
- const pauseCallout = testUtils.getRestCallout(
376
- 'post',
377
- '/interaction/v1/interactions/transactional/pause'
378
- );
379
- const resumeCallout = testUtils.getRestCallout(
380
- 'post',
381
- '/interaction/v1/interactions/transactional/resume'
382
- );
383
-
384
- // confirm callouts
385
- assert.deepEqual(
386
- pauseCallout,
387
- {
388
- definitionId: 'dsfdsafdsa-922c-4568-85a5-e5cc77efc3be',
389
- },
390
- 'pauseCallout-payload JSON was not equal expected'
391
- );
392
- assert.deepEqual(
393
- resumeCallout,
394
- {
395
- definitionId: 'dsfdsafdsa-922c-4568-85a5-e5cc77efc3be',
396
- },
397
- 'resumeCallout-payload JSON was not equal expected'
398
- );
399
-
400
- assert.equal(
401
- testUtils.getAPIHistoryLength(),
402
- 60,
403
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
404
- );
405
- return;
406
- });
407
-
408
- it('Should update and publish a transactional journey', async () => {
409
- // WHEN
410
- handler.setOptions({ skipStatusCheck: true, publish: true });
411
- const deploy = await handler.deploy(
412
- 'testInstance/testBU',
413
- ['journey'],
414
- ['testExisting_temail_notPublished']
415
- );
416
-
417
- // THEN
418
- assert.equal(process.exitCode, 0, 'deploy --publish should not have thrown an error');
419
- // retrieve result
420
- assert.deepEqual(
421
- Object.keys(deploy['testInstance/testBU']?.journey),
422
- ['testExisting_temail_notPublished'],
423
- 'should have published the right journey'
424
- );
425
-
426
- // get callouts
427
- const publishCallout = testUtils.getRestCallout(
428
- 'post',
429
- '/interaction/v1/interactions/transactional/create'
430
- );
431
- // confirm callouts
432
- assert.deepEqual(
433
- publishCallout,
434
- {
435
- definitionId: 'd4a900fe-3a8f-4cc5-9a49-81286e3e2cd2',
436
- },
437
- 'publish-payload JSON was not equal expected'
438
- );
439
-
440
- // confirm transactionalEmail was downloaded
441
- assert.deepEqual(
442
- await testUtils.getActualJson(
443
- 'testExisting_temail_notPublished',
444
- 'transactionalEmail'
445
- ),
446
- await testUtils.getExpectedJson('9999999', 'transactionalEmail', 'get-published'),
447
- 'returned JSON was not equal expected'
448
- );
449
-
450
- assert.equal(
451
- testUtils.getAPIHistoryLength(),
452
- 59,
453
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
454
- );
455
- return;
456
- });
457
-
458
- it('Should create and publish a transactional journey', async () => {
459
- // WHEN
460
- handler.setOptions({ skipStatusCheck: true, publish: true });
461
- const deploy = await handler.deploy(
462
- 'testInstance/testBU',
463
- ['journey'],
464
- ['testNew_temail_notPublished']
465
- );
466
-
467
- // THEN
468
- assert.equal(process.exitCode, 0, 'deploy --publish should not have thrown an error');
469
- // retrieve result
470
- assert.deepEqual(
471
- Object.keys(deploy['testInstance/testBU']?.journey),
472
- ['testNew_temail_notPublished'],
473
- 'should have published the right journey'
474
- );
475
-
476
- // get callouts
477
- const publishCallout = testUtils.getRestCallout(
478
- 'post',
479
- '/interaction/v1/interactions/transactional/create'
480
- );
481
- // confirm callouts
482
- assert.deepEqual(
483
- publishCallout,
484
- {
485
- definitionId: '4c39662b-7c47-4df4-8bd6-65f01c313e8c',
486
- },
487
- 'publish-payload JSON was not equal expected'
488
- );
489
-
490
- // confirm transactionalEmail was downloaded
491
- assert.deepEqual(
492
- await testUtils.getActualJson('testNew_temail_notPublished', 'transactionalEmail'),
493
- await testUtils.getExpectedJson('9999999', 'transactionalEmail', 'create-publish'),
494
- 'returned JSON was not equal expected'
495
- );
496
- // confirm journey was downloaded
497
- assert.deepEqual(
498
- await testUtils.getActualJson('testNew_temail_notPublished', 'journey'),
499
- await testUtils.getExpectedJson(
500
- '9999999',
501
- 'journey',
502
- 'create-transactionaEmail-publish'
503
- ),
504
- 'returned JSON was not equal expected'
505
- );
506
-
507
- assert.equal(
508
- testUtils.getAPIHistoryLength(),
509
- 59,
510
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
511
- );
512
- return;
513
- });
514
-
515
- it('Should update & publish a multi-step journey by key (auto-picks latest version)', async () => {
516
- handler.setOptions({ skipStatusCheck: true, publish: true });
517
- // WHEN
518
- const deploy = await handler.deploy(
519
- 'testInstance/testBU',
520
- ['journey'],
521
- ['testExisting_journey_Multistep']
522
- );
523
- // THEN
524
- assert.equal(process.exitCode, 0, 'publish should not have thrown an error');
525
- // retrieve result
526
- assert.deepEqual(
527
- Object.keys(deploy['testInstance/testBU']?.journey),
528
- ['testExisting_journey_Multistep'],
529
- 'should have published the right journey'
530
- );
531
-
532
- // get callouts
533
- const publishCallout = testUtils.getRestCallout(
534
- 'post',
535
- '/interaction/v1/interactions/publishAsync/%'
536
- );
537
- // confirm created item
538
- assert.deepEqual(
539
- publishCallout,
540
- await testUtils.getExpectedJson('9999999', 'journey', 'publish-callout'),
541
- 'publish-payload JSON was not equal expected'
542
- );
543
- // confirm event was downloaded
544
- assert.deepEqual(
545
- await testUtils.getActualJson(
546
- 'DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e',
547
- 'event'
548
- ),
549
- await testUtils.getExpectedJson('9999999', 'event', 'get-published'),
550
- 'returned JSON was not equal expected'
551
- );
552
-
553
- assert.equal(
554
- testUtils.getAPIHistoryLength(),
555
- 50,
556
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
557
- );
558
- return;
559
- });
560
-
561
- it('Should update a journey with UPDATECONTACT activity', async () => {
562
- // WHEN
563
- await handler.deploy(
564
- 'testInstance/testBU',
565
- ['journey'],
566
- ['testExisting_journey_updatecontact']
567
- );
568
- // THEN
569
- assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
570
- // // confirm updated item
571
- assert.deepEqual(
572
- await testUtils.getActualJson('testExisting_journey_updatecontact', 'journey'),
573
- await testUtils.getExpectedJson('9999999', 'journey', 'put-updatecontact'),
574
- 'returned metadata was not equal expected for update journey with updatecontact activity'
575
- );
576
- assert.equal(
577
- testUtils.getAPIHistoryLength(),
578
- 22,
579
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
580
- );
581
- return;
582
- });
583
-
584
- it('Should update a journey with UPDATECONTACT activity referencing a shared DE', async () => {
585
- // WHEN
586
- await handler.deploy(
587
- 'testInstance/testBU',
588
- ['journey'],
589
- ['testExisting_journey_updatecontact_sharedDE']
590
- );
591
- // THEN
592
- assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
593
- // confirm updated item
594
- assert.deepEqual(
595
- await testUtils.getActualJson(
596
- 'testExisting_journey_updatecontact_sharedDE',
597
- 'journey'
598
- ),
599
- await testUtils.getExpectedJson('9999999', 'journey', 'put-updatecontact-sharedDE'),
600
- 'returned metadata was not equal expected for update journey with shared DE updatecontact activity'
601
- );
602
- assert.equal(
603
- testUtils.getAPIHistoryLength(),
604
- 22,
605
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
606
- );
607
- return;
608
- });
609
- });
610
-
611
- describe('Templating ================', () => {
612
- it('Should create a journey template via buildTemplate and build it', async () => {
613
- // download first before we test buildTemplate
614
- await handler.retrieve('testInstance/testBU', ['journey']);
615
- // buildTemplate
616
- const result = await handler.buildTemplate(
617
- 'testInstance/testBU',
618
- 'journey',
619
- ['testExisting_journey_Quicksend'],
620
- ['testSourceMarket']
621
- );
622
- assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
623
- assert.equal(
624
- result.journey ? Object.keys(result.journey).length : 0,
625
- 1,
626
- 'only one journey expected'
627
- );
628
- assert.deepEqual(
629
- await testUtils.getActualTemplateJson('testExisting_journey_Quicksend', 'journey'),
630
- await testUtils.getExpectedJson('9999999', 'journey', 'template'),
631
- 'returned template JSON was not equal expected'
632
- );
633
-
634
- // buildDefinition
635
- await handler.buildDefinition(
636
- 'testInstance/testBU',
637
- 'journey',
638
- ['testExisting_journey_Quicksend'],
639
- ['testTargetMarket']
640
- );
641
- assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
642
- assert.deepEqual(
643
- await testUtils.getActualDeployJson('testTemplated_journey_Quicksend', 'journey'),
644
- await testUtils.getExpectedJson('9999999', 'journey', 'build'),
645
- 'returned deployment JSON was not equal expected'
646
- );
647
-
648
- assert.equal(
649
- testUtils.getAPIHistoryLength(),
650
- 31,
651
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
652
- );
653
- return;
654
- });
655
-
656
- it('Should create a journey template via buildTemplate with --dependencies', async () => {
657
- // download first before we test buildTemplate
658
- await handler.retrieve('testInstance/testBU', ['journey', 'asset']);
659
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
660
-
661
- handler.setOptions({ dependencies: true, retrieve: true });
662
-
663
- // GIVEN there is a template
664
- const templatedItems = await handler.buildTemplate(
665
- 'testInstance/testBU',
666
- 'journey',
667
- ['testExisting_journey_Quicksend', 'testExisting_journey_Multistep'],
668
- ['testSourceMarket']
669
- );
670
- // WHEN
671
- assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
672
-
673
- assert.deepEqual(
674
- Object.keys(templatedItems),
675
- [
676
- 'asset',
677
- 'dataExtension',
678
- 'domainVerification',
679
- 'event',
680
- 'journey',
681
- 'sendClassification',
682
- 'senderProfile',
683
- ],
684
- 'expected specific types to be templated'
685
- );
686
-
687
- // journey
688
- assert.deepEqual(
689
- templatedItems.journey.map((item) => item.key),
690
- ['{{{prefix}}}journey_Multistep', '{{{prefix}}}journey_Quicksend'],
691
- 'expected specific journeys to be templated'
692
- );
693
- // event
694
- assert.deepEqual(
695
- templatedItems.event.map((item) => item.eventDefinitionKey),
696
- [
697
- 'DEAudience-11be962d-064c-83d9-2804-7d1befc10325',
698
- 'DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e',
699
- ],
700
- 'expected specific events to be templated'
701
- );
702
- // dataExtension
703
- assert.deepEqual(
704
- templatedItems.dataExtension.map((item) => item.CustomerKey),
705
- [
706
- '{{{prefix}}}DomainExclusion',
707
- '{{{prefix}}}journey_Multistep',
708
- '{{{prefix}}}journey_Quicksend',
709
- ],
710
- 'expected specific dataExtensions to be templated'
711
- );
712
- // domainVerification
713
- assert.deepEqual(
714
- templatedItems.domainVerification.map((item) => item.domain),
715
- ['joern.berkefeld+test@accenture.com', 'joern.berkefeld@accenture.com'],
716
- 'expected specific domainVerifications to be templated'
717
- );
718
- // senderProfile
719
- assert.deepEqual(
720
- templatedItems.senderProfile.map((item) => item.CustomerKey),
721
- ['{{{prefix}}}senderProfile'],
722
- 'expected specific assets to be templated'
723
- );
724
- // sendClassification
725
- assert.deepEqual(
726
- templatedItems.sendClassification.map((item) => item.CustomerKey),
727
- ['{{{prefix}}}sendClassification'],
728
- 'expected specific sendClassifications to be templated'
729
- );
730
- // asset
731
- assert.deepEqual(
732
- templatedItems.asset.map((item) => item.customerKey),
733
- [
734
- '{{{prefix}}}asset_htmlblock',
735
- '{{{prefix}}}htmlblock 3 spaces',
736
- '{{{prefix}}}htmlblock1',
737
- '{{{prefix}}}htmlblock2',
738
- ],
739
- 'expected specific assets to be templated'
740
- );
741
- });
742
- });
743
-
744
- describe('Delete ================', () => {
745
- it('Should NOT delete the item due to missing version', async () => {
746
- // WHEN
747
- const isDeleted = await handler.deleteByKey(
748
- 'testInstance/testBU',
749
- 'journey',
750
- 'testExisting_journey_Multistep'
751
- );
752
- // THEN
753
- assert.equal(process.exitCode, 1, 'delete should have thrown an error');
754
-
755
- assert.equal(isDeleted, false, 'should not have deleted the item');
756
- return;
757
- });
758
-
759
- it('Should NOT delete the item due to unknown version', async () => {
760
- // WHEN
761
- const isDeleted = await handler.deleteByKey(
762
- 'testInstance/testBU',
763
- 'journey',
764
- 'testExisting_journey_Multistep/2'
765
- );
766
- // THEN
767
- assert.equal(process.exitCode, 1, 'delete should have thrown an error');
768
-
769
- assert.equal(isDeleted, false, 'should not have deleted the item');
770
- return;
771
- });
772
-
773
- it('Should delete the item with exact version', async () => {
774
- // WHEN
775
- const isDeleted = await handler.deleteByKey(
776
- 'testInstance/testBU',
777
- 'journey',
778
- 'testExisting_journey_Multistep/1'
779
- );
780
- // THEN
781
- assert.equal(process.exitCode, 0, 'delete should not have thrown an error');
782
-
783
- assert.equal(isDeleted, true, 'should have deleted the item');
784
- return;
785
- });
786
-
787
- it('Should delete the item with all versions', async () => {
788
- // WHEN
789
- const isDeleted = await handler.deleteByKey(
790
- 'testInstance/testBU',
791
- 'journey',
792
- 'testExisting_journey_Multistep/*'
793
- );
794
- // THEN
795
- assert.equal(process.exitCode, 0, 'delete should not have thrown an error');
796
-
797
- assert.equal(isDeleted, true, 'should have deleted the item');
798
- return;
799
- });
800
-
801
- it('Should delete 2 items with exact version', async () => {
802
- // WHEN
803
- const isDeleted = await handler.deleteByKey('testInstance/testBU', 'journey', [
804
- 'testExisting_journey_Quicksend',
805
- 'testExisting_temail',
806
- 'testExisting_journey_Multistep/1',
807
- ]);
808
- // THEN
809
- assert.equal(process.exitCode, 0, 'delete should not have thrown an error');
810
-
811
- assert.equal(isDeleted, true, 'should have deleted the item');
812
- return;
813
- });
814
- });
815
-
816
- describe('ReplaceContentBlockByX ================', () => {
817
- it('Should replace references with ContentBlockByName w/o deploy', async () => {
818
- handler.setOptions({ skipDeploy: true });
819
-
820
- // WHEN
821
- const replace = await handler.replaceCbReference(
822
- 'testInstance/testBU',
823
- {
824
- journey: null,
825
- },
826
- 'name'
827
- );
828
- // THEN
829
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
830
- // retrieve result
831
- assert.deepEqual(
832
- replace['testInstance/testBU'].journey,
833
- ['testExisting_journey_Quicksend'],
834
- 'should have found the right journeys that need updating'
835
- );
836
-
837
- // check if conversions happened
838
- assert.deepEqual(
839
- await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
840
- await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend-rcb-name'),
841
- 'returned JSON was not equal expected'
842
- );
843
-
844
- assert.equal(
845
- testUtils.getAPIHistoryLength(),
846
- 37,
847
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
848
- );
849
- return;
850
- });
851
-
852
- it('Should replace references with ContentBlockById w/o deploy', async () => {
853
- handler.setOptions({ skipDeploy: true });
854
-
855
- // WHEN
856
- const replace = await handler.replaceCbReference(
857
- 'testInstance/testBU',
858
- {
859
- journey: null,
860
- },
861
- 'id'
862
- );
863
- // THEN
864
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
865
- // retrieve result
866
- assert.deepEqual(
867
- replace['testInstance/testBU'].journey,
868
- ['testExisting_journey_Quicksend'],
869
- 'should have found the right journeys that need updating'
870
- );
871
-
872
- // check if conversions happened
873
- assert.deepEqual(
874
- await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
875
- await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend-rcb-id'),
876
- 'returned JSON was not equal expected'
877
- );
878
-
879
- assert.equal(
880
- testUtils.getAPIHistoryLength(),
881
- 37,
882
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
883
- );
884
- return;
885
- });
886
-
887
- it('Should replace references with ContentBlockByKey w/o deploy', async () => {
888
- handler.setOptions({ skipDeploy: true });
889
-
890
- // WHEN
891
- const replace = await handler.replaceCbReference(
892
- 'testInstance/testBU',
893
- {
894
- journey: null,
895
- },
896
- 'key'
897
- );
898
- // THEN
899
- assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
900
- // retrieve result
901
- assert.deepEqual(
902
- replace['testInstance/testBU'].journey,
903
- ['testExisting_journey_Quicksend'],
904
- 'should have found the right assets that need updating'
905
- );
906
-
907
- // check if conversions happened
908
- assert.deepEqual(
909
- await testUtils.getActualJson('testExisting_journey_Quicksend', 'journey'),
910
- await testUtils.getExpectedJson('9999999', 'journey', 'get-quicksend-rcb-key'),
911
- 'returned JSON was not equal expected'
912
- );
913
-
914
- assert.equal(
915
- testUtils.getAPIHistoryLength(),
916
- 37,
917
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
918
- );
919
- return;
920
- });
921
- });
922
-
923
- describe('Publish ================', () => {
924
- it(`Should not publish a transactional journey by key that is already published but instead trigger a refresh`, async () => {
925
- handler.setOptions({ skipStatusCheck: true });
926
- // WHEN
927
- const publish = await handler.publish(
928
- 'testInstance/testBU',
929
- ['journey'],
930
- ['testExisting_temail']
931
- );
932
- // THEN
933
- assert.equal(process.exitCode, 0, 'publish should not have thrown an error');
934
-
935
- assert.deepEqual(
936
- publish['testInstance/testBU']?.journey,
937
- ['testExisting_temail'],
938
- 'should not have published any journey but instead triggered a refresh'
939
- );
940
-
941
- // get callouts
942
- const pauseCallout = testUtils.getRestCallout(
943
- 'post',
944
- '/interaction/v1/interactions/transactional/pause'
945
- );
946
- const resumeCallout = testUtils.getRestCallout(
947
- 'post',
948
- '/interaction/v1/interactions/transactional/resume'
949
- );
950
- const pauseResumeResponse = {
951
- definitionId: 'dsfdsafdsa-922c-4568-85a5-e5cc77efc3be',
952
- };
953
- // confirm responses
954
- assert.deepEqual(
955
- pauseCallout,
956
- pauseResumeResponse,
957
- 'pause-payload JSON was not equal expected'
958
- );
959
- assert.deepEqual(
960
- resumeCallout,
961
- pauseResumeResponse,
962
- 'resume-payload JSON was not equal expected'
963
- );
964
-
965
- // confirm transactionalEmail was downloaded
966
- assert.deepEqual(
967
- await testUtils.getActualJson('testExisting_temail', 'journey'),
968
- await testUtils.getExpectedJson('9999999', 'journey', 'get-transactionalEmail'),
969
- 'returned JSON was not equal expected'
970
- );
971
- assert.deepEqual(
972
- await testUtils.getActualJson('testExisting_temail', 'transactionalEmail'),
973
- await testUtils.getExpectedJson('9999999', 'transactionalEmail', 'get'),
974
- 'returned JSON was not equal expected'
975
- );
976
-
977
- assert.equal(
978
- testUtils.getAPIHistoryLength(),
979
- 38,
980
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
981
- );
982
- return;
983
- });
984
-
985
- it('Should publish a transactional journey by key', async () => {
986
- handler.setOptions({ skipStatusCheck: true });
987
- // WHEN
988
- const publish = await handler.publish(
989
- 'testInstance/testBU',
990
- ['journey'],
991
- ['testExisting_temail_notPublished']
992
- );
993
- // THEN
994
- assert.equal(process.exitCode, 0, 'publish should not have thrown an error');
995
- // retrieve result
996
- assert.deepEqual(
997
- publish['testInstance/testBU']?.journey,
998
- ['testExisting_temail_notPublished'],
999
- 'should have published the right journey'
1000
- );
1001
-
1002
- // get callouts
1003
- const publishCallout = testUtils.getRestCallout(
1004
- 'post',
1005
- '/interaction/v1/interactions/transactional/create'
1006
- );
1007
- // confirm callouts
1008
- assert.deepEqual(
1009
- publishCallout,
1010
- {
1011
- definitionId: 'd4a900fe-3a8f-4cc5-9a49-81286e3e2cd2',
1012
- },
1013
- 'publish-payload JSON was not equal expected'
1014
- );
1015
- assert.deepEqual(
1016
- await testUtils.getActualJson('testExisting_temail_notPublished', 'journey'),
1017
- await testUtils.getExpectedJson('9999999', 'journey', 'get-published'),
1018
- 'returned JSON was not equal expected'
1019
- );
1020
-
1021
- // confirm transactionalEmail was downloaded
1022
- assert.deepEqual(
1023
- await testUtils.getActualJson(
1024
- 'testExisting_temail_notPublished',
1025
- 'transactionalEmail'
1026
- ),
1027
- await testUtils.getExpectedJson('9999999', 'transactionalEmail', 'get-published'),
1028
- 'returned JSON was not equal expected'
1029
- );
1030
-
1031
- assert.equal(
1032
- testUtils.getAPIHistoryLength(),
1033
- 36,
1034
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1035
- );
1036
- return;
1037
- });
1038
-
1039
- it('Should publish a journey by key (auto-picks latest version)', async () => {
1040
- handler.setOptions({ skipStatusCheck: true });
1041
- // WHEN
1042
- const publish = await handler.publish(
1043
- 'testInstance/testBU',
1044
- ['journey'],
1045
- ['testExisting_journey_Multistep']
1046
- );
1047
- // THEN
1048
- assert.equal(process.exitCode, 0, 'publish should not have thrown an error');
1049
- // retrieve result
1050
- assert.deepEqual(
1051
- publish['testInstance/testBU']?.journey,
1052
- ['testExisting_journey_Multistep'],
1053
- 'should have published the right journey'
1054
- );
1055
-
1056
- // get callouts
1057
- const publishCallout = testUtils.getRestCallout(
1058
- 'post',
1059
- '/interaction/v1/interactions/publishAsync/%'
1060
- );
1061
- // confirm created item
1062
- assert.deepEqual(
1063
- publishCallout,
1064
- await testUtils.getExpectedJson('9999999', 'journey', 'publish-callout'),
1065
- 'publish-payload JSON was not equal expected'
1066
- );
1067
- // confirm event was downloaded
1068
- assert.deepEqual(
1069
- await testUtils.getActualJson(
1070
- 'DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e',
1071
- 'event'
1072
- ),
1073
- await testUtils.getExpectedJson('9999999', 'event', 'get-published'),
1074
- 'returned JSON was not equal expected'
1075
- );
1076
-
1077
- assert.equal(
1078
- testUtils.getAPIHistoryLength(),
1079
- 31,
1080
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1081
- );
1082
- return;
1083
- });
1084
-
1085
- it('Should publish a journey by id w/ version', async () => {
1086
- handler.setOptions({ skipStatusCheck: true });
1087
- // WHEN
1088
- const publish = await handler.publish(
1089
- 'testInstance/testBU',
1090
- ['journey'],
1091
- ['id:0175b971-71a3-4d8e-98ac-48121f3fbf4f/1']
1092
- );
1093
- // THEN
1094
- assert.equal(process.exitCode, 0, 'publish should not have thrown an error');
1095
- // retrieve result
1096
- assert.deepEqual(
1097
- publish['testInstance/testBU']?.journey,
1098
- ['id:0175b971-71a3-4d8e-98ac-48121f3fbf4f/1'],
1099
- 'should have published the right journey'
1100
- );
1101
-
1102
- // get callouts
1103
- const publishCallout = testUtils.getRestCallout(
1104
- 'post',
1105
- '/interaction/v1/interactions/publishAsync/%'
1106
- );
1107
- // confirm created item
1108
- assert.deepEqual(
1109
- publishCallout,
1110
- await testUtils.getExpectedJson('9999999', 'journey', 'publish-callout'),
1111
- 'publish-payload JSON was not equal expected'
1112
- );
1113
- // confirm event was downloaded
1114
- assert.deepEqual(
1115
- await testUtils.getActualJson(
1116
- 'DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e',
1117
- 'event'
1118
- ),
1119
- await testUtils.getExpectedJson('9999999', 'event', 'get-published'),
1120
- 'returned JSON was not equal expected'
1121
- );
1122
- assert.equal(
1123
- testUtils.getAPIHistoryLength(),
1124
- 31,
1125
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1126
- );
1127
- return;
1128
- });
1129
-
1130
- it('Should publish a journey by id but w/o version (auto-picks latest version)', async () => {
1131
- handler.setOptions({ skipStatusCheck: true });
1132
- // WHEN
1133
- const publish = await handler.publish(
1134
- 'testInstance/testBU',
1135
- ['journey'],
1136
- ['id:0175b971-71a3-4d8e-98ac-48121f3fbf4f']
1137
- );
1138
- // THEN
1139
- assert.equal(process.exitCode, 0, 'publish should not have thrown an error');
1140
- // retrieve result
1141
- assert.deepEqual(
1142
- publish['testInstance/testBU']?.journey,
1143
- ['id:0175b971-71a3-4d8e-98ac-48121f3fbf4f'],
1144
- 'should have published the right journey'
1145
- );
1146
-
1147
- // get callouts
1148
- const publishCallout = testUtils.getRestCallout(
1149
- 'post',
1150
- '/interaction/v1/interactions/publishAsync/%'
1151
- );
1152
- // confirm created item
1153
- assert.deepEqual(
1154
- publishCallout,
1155
- await testUtils.getExpectedJson('9999999', 'journey', 'publish-callout'),
1156
- 'publish-payload JSON was not equal expected'
1157
- );
1158
-
1159
- assert.equal(
1160
- testUtils.getAPIHistoryLength(),
1161
- 31,
1162
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1163
- );
1164
- return;
1165
- });
1166
-
1167
- it('Should publish a journey by id w/ version with failing status check', async () => {
1168
- await testUtils.copyFile(
1169
- 'interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-failed.json',
1170
- 'interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response.json'
1171
- );
1172
-
1173
- handler.setOptions({ skipStatusCheck: false, _runningTest: true });
1174
- // WHEN
1175
- const publish = await handler.publish(
1176
- 'testInstance/testBU',
1177
- ['journey'],
1178
- ['id:0175b971-71a3-4d8e-98ac-48121f3fbf4f/1']
1179
- );
1180
- // THEN
1181
- assert.equal(process.exitCode, 1, 'publish should have thrown an error');
1182
- // retrieve result
1183
- assert.equal(
1184
- publish['testInstance/testBU']?.journey.length,
1185
- 0,
1186
- 'should have not published the journey'
1187
- );
1188
-
1189
- // get callouts
1190
- const publishCallout = testUtils.getRestCallout(
1191
- 'post',
1192
- '/interaction/v1/interactions/publishAsync/%'
1193
- );
1194
- // confirm created item
1195
- assert.deepEqual(
1196
- publishCallout,
1197
- await testUtils.getExpectedJson('9999999', 'journey', 'publish-callout'),
1198
- 'publish-payload JSON was not equal expected'
1199
- );
1200
-
1201
- assert.equal(
1202
- testUtils.getAPIHistoryLength(),
1203
- 3,
1204
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1205
- );
1206
- return;
1207
- });
1208
-
1209
- it('Should publish a journey by id w/ version with successful status check but with warnings', async () => {
1210
- await testUtils.copyFile(
1211
- 'interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-successWarnings.json',
1212
- 'interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response.json'
1213
- );
1214
-
1215
- handler.setOptions({ skipStatusCheck: false, _runningTest: true });
1216
- // WHEN
1217
- const publish = await handler.publish(
1218
- 'testInstance/testBU',
1219
- ['journey'],
1220
- ['id:0175b971-71a3-4d8e-98ac-48121f3fbf4f/1']
1221
- );
1222
- // THEN
1223
- assert.equal(process.exitCode, 0, 'publish should not have thrown an error');
1224
- // retrieve result
1225
- assert.deepEqual(
1226
- publish['testInstance/testBU']?.journey,
1227
- ['testExisting_journey_Multistep'],
1228
- 'should have published the journey'
1229
- );
1230
-
1231
- // get callouts
1232
- const publishCallout = testUtils.getRestCallout(
1233
- 'post',
1234
- '/interaction/v1/interactions/publishAsync/%'
1235
- );
1236
- // confirm created item
1237
- assert.deepEqual(
1238
- publishCallout,
1239
- await testUtils.getExpectedJson('9999999', 'journey', 'publish-callout'),
1240
- 'publish-payload JSON was not equal expected'
1241
- );
1242
- // confirm event was downloaded
1243
- assert.deepEqual(
1244
- await testUtils.getActualJson(
1245
- 'DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e',
1246
- 'event'
1247
- ),
1248
- await testUtils.getExpectedJson('9999999', 'event', 'get-published'),
1249
- 'returned JSON was not equal expected'
1250
- );
1251
-
1252
- assert.equal(
1253
- testUtils.getAPIHistoryLength(),
1254
- 32,
1255
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1256
- );
1257
- return;
1258
- });
1259
-
1260
- it('Should publish a journey by id w/ version with successful status check', async () => {
1261
- await testUtils.copyFile(
1262
- 'interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-success.json',
1263
- 'interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response.json'
1264
- );
1265
-
1266
- handler.setOptions({ skipStatusCheck: false, _runningTest: true });
1267
- // WHEN
1268
- const publish = await handler.publish(
1269
- 'testInstance/testBU',
1270
- ['journey'],
1271
- ['id:0175b971-71a3-4d8e-98ac-48121f3fbf4f/1']
1272
- );
1273
- // THEN
1274
- assert.equal(process.exitCode, 0, 'publish should not have thrown an error');
1275
- // retrieve result
1276
- assert.deepEqual(
1277
- publish['testInstance/testBU']?.journey,
1278
- ['testExisting_journey_Multistep'],
1279
- 'should have published the journey'
1280
- );
1281
-
1282
- // get callouts
1283
- const publishCallout = testUtils.getRestCallout(
1284
- 'post',
1285
- '/interaction/v1/interactions/publishAsync/%'
1286
- );
1287
- // confirm created item
1288
- assert.deepEqual(
1289
- publishCallout,
1290
- await testUtils.getExpectedJson('9999999', 'journey', 'publish-callout'),
1291
- 'publish-payload JSON was not equal expected'
1292
- );
1293
- // confirm event was downloaded
1294
- assert.deepEqual(
1295
- await testUtils.getActualJson(
1296
- 'DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e',
1297
- 'event'
1298
- ),
1299
- await testUtils.getExpectedJson('9999999', 'event', 'get-published'),
1300
- 'returned JSON was not equal expected'
1301
- );
1302
-
1303
- assert.equal(
1304
- testUtils.getAPIHistoryLength(),
1305
- 32,
1306
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1307
- );
1308
- return;
1309
- });
1310
- });
1311
-
1312
- describe('Validate ================', () => {
1313
- it('Should not validate a transactional journey by key', async () => {
1314
- handler.setOptions({ skipStatusCheck: true });
1315
- // WHEN
1316
- const validate = await handler.validate(
1317
- 'testInstance/testBU',
1318
- ['journey'],
1319
- ['testExisting_temail_notPublished']
1320
- );
1321
- // THEN
1322
- assert.equal(process.exitCode, 0, 'validate should not have thrown an error');
1323
- // retrieve result
1324
- assert.deepEqual(
1325
- validate['testInstance/testBU']?.journey,
1326
- [],
1327
- 'should not have validated any journey'
1328
- );
1329
-
1330
- assert.equal(
1331
- testUtils.getAPIHistoryLength(),
1332
- 1,
1333
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1334
- );
1335
- return;
1336
- });
1337
-
1338
- it('Should validate a multi-step journey but not the transactional journey by key', async () => {
1339
- await testUtils.copyFile(
1340
- 'interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-success.json',
1341
- 'interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response.json'
1342
- );
1343
- handler.setOptions({ skipStatusCheck: true });
1344
- // WHEN
1345
- const validate = await handler.validate(
1346
- 'testInstance/testBU',
1347
- ['journey'],
1348
- ['testExisting_temail_notPublished', 'testExisting_journey_Multistep']
1349
- );
1350
- // THEN
1351
- assert.equal(process.exitCode, 0, 'validate should not have thrown an error');
1352
- // retrieve result
1353
- assert.deepEqual(
1354
- validate['testInstance/testBU']?.journey,
1355
- ['testExisting_journey_Multistep'],
1356
- 'should not have validated any journey'
1357
- );
1358
-
1359
- assert.equal(
1360
- testUtils.getAPIHistoryLength(),
1361
- 3,
1362
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1363
- );
1364
- return;
1365
- });
1366
-
1367
- it('Should validate a journey by id but w/o version (auto-picks latest version)', async () => {
1368
- await testUtils.copyFile(
1369
- 'interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-success.json',
1370
- 'interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response.json'
1371
- );
1372
- // WHEN
1373
- const validate = await handler.validate(
1374
- 'testInstance/testBU',
1375
- ['journey'],
1376
- ['id:0175b971-71a3-4d8e-98ac-48121f3fbf4f']
1377
- );
1378
- // THEN
1379
- assert.equal(process.exitCode, 0, 'validate should not have thrown an error');
1380
- // retrieve result
1381
- assert.deepEqual(
1382
- validate['testInstance/testBU']?.journey,
1383
- ['testExisting_journey_Multistep'],
1384
- 'should have validateed the right journey'
1385
- );
1386
-
1387
- // get callouts
1388
- const validateCallout = testUtils.getRestCallout(
1389
- 'post',
1390
- '/interaction/v1/interactions/validateAsync/%'
1391
- );
1392
- // confirm created item
1393
- assert.deepEqual(
1394
- validateCallout,
1395
- await testUtils.getExpectedJson('9999999', 'journey', 'validate-callout'),
1396
- 'validate-payload JSON was not equal expected'
1397
- );
1398
-
1399
- assert.equal(
1400
- testUtils.getAPIHistoryLength(),
1401
- 3,
1402
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1403
- );
1404
- return;
1405
- });
1406
-
1407
- it('Should validate a journey by id w/ version with failing status check', async () => {
1408
- await testUtils.copyFile(
1409
- 'interaction/v1/interactions/publishStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response-failed.json',
1410
- 'interaction/v1/interactions/validateStatus/45f06c0a-3ed2-48b2-a6a8-b5119253f01c/get-response.json'
1411
- );
1412
-
1413
- handler.setOptions({ _runningTest: true });
1414
- // WHEN
1415
- const validate = await handler.validate(
1416
- 'testInstance/testBU',
1417
- ['journey'],
1418
- ['id:0175b971-71a3-4d8e-98ac-48121f3fbf4f/1']
1419
- );
1420
- // THEN
1421
- assert.equal(process.exitCode, 1, 'validate should have thrown an error');
1422
- // retrieve result
1423
- assert.equal(
1424
- validate['testInstance/testBU']?.journey.length,
1425
- 0,
1426
- 'should have not validated the journey'
1427
- );
1428
-
1429
- // get callouts
1430
- const validateCallout = testUtils.getRestCallout(
1431
- 'post',
1432
- '/interaction/v1/interactions/validateAsync/%'
1433
- );
1434
- // confirm created item
1435
- assert.deepEqual(
1436
- validateCallout,
1437
- await testUtils.getExpectedJson('9999999', 'journey', 'validate-callout'),
1438
- 'validate-payload JSON was not equal expected'
1439
- );
1440
-
1441
- assert.equal(
1442
- testUtils.getAPIHistoryLength(),
1443
- 3,
1444
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1445
- );
1446
- return;
1447
- });
1448
- });
1449
-
1450
- describe('Refresh ================', () => {
1451
- it('Should refresh all active journeys');
1452
-
1453
- it('Should refresh a specifc multi-step journey by key', async () => {
1454
- // WHEN
1455
- const replace = await handler.refresh('testInstance/testBU', {
1456
- journey: ['testExisting_journey_Multistep'],
1457
- });
1458
- // THEN
1459
- assert.equal(process.exitCode, 0, 'refresh should not have thrown an error');
1460
- // retrieve result
1461
-
1462
- assert.deepEqual(
1463
- replace['testInstance/testBU'].journey,
1464
- ['testExisting_journey_Multistep'],
1465
- 'should have found the right journeys that need updating'
1466
- );
1467
-
1468
- assert.equal(
1469
- testUtils.getAPIHistoryLength(),
1470
- 6,
1471
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1472
- );
1473
- return;
1474
- });
1475
-
1476
- it('Should refresh a specifc transactional send journey by key', async () => {
1477
- // WHEN
1478
- const replace = await handler.refresh('testInstance/testBU', {
1479
- journey: ['testExisting_temail'],
1480
- });
1481
- // THEN
1482
- assert.equal(process.exitCode, 0, 'refresh should not have thrown an error');
1483
- // retrieve result
1484
-
1485
- assert.deepEqual(
1486
- replace['testInstance/testBU'].journey,
1487
- ['testExisting_temail'],
1488
- 'should have found the right journeys that need updating'
1489
- );
1490
-
1491
- assert.equal(
1492
- testUtils.getAPIHistoryLength(),
1493
- 37,
1494
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1495
- );
1496
- return;
1497
- });
1498
-
1499
- it('Should refresh a specifc cross type journeys by key', async () => {
1500
- // WHEN
1501
- const replace = await handler.refresh('testInstance/testBU', {
1502
- journey: ['testExisting_temail', 'testExisting_journey_Multistep'],
1503
- });
1504
- // THEN
1505
- assert.equal(process.exitCode, 0, 'refresh should not have thrown an error');
1506
- // retrieve result
1507
-
1508
- assert.deepEqual(
1509
- replace['testInstance/testBU'].journey,
1510
- ['testExisting_temail', 'testExisting_journey_Multistep'],
1511
- 'should have found the right journeys that need updating'
1512
- );
1513
- assert.equal(
1514
- testUtils.getAPIHistoryLength(),
1515
- 42,
1516
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1517
- );
1518
- return;
1519
- });
1520
- });
1521
-
1522
- describe('Audit ================', () => {
1523
- it('Should show audit log of a transactional journey and version', async () => {
1524
- const audit = await handler.audit('testInstance/testBU', {
1525
- journey: ['testExisting_temail/2'],
1526
- });
1527
- // THEN
1528
- assert.equal(process.exitCode, 0, 'audit should not have thrown an error');
1529
-
1530
- assert.deepEqual(
1531
- audit['testInstance/testBU'].journey,
1532
- ['testExisting_temail'],
1533
- 'should have returned the right journeys'
1534
- );
1535
- assert.equal(
1536
- testUtils.getAPIHistoryLength(),
1537
- 2,
1538
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1539
- );
1540
-
1541
- return;
1542
- });
1543
-
1544
- it('Should show audit log of a transactional journey with all its versions', async () => {
1545
- const audit = await handler.audit('testInstance/testBU', {
1546
- journey: ['testExisting_temail'],
1547
- });
1548
- // THEN
1549
- assert.equal(process.exitCode, 0, 'audit should not have thrown an error');
1550
-
1551
- assert.deepEqual(
1552
- audit['testInstance/testBU'].journey,
1553
- ['testExisting_temail'],
1554
- 'should have returned the right journeys'
1555
- );
1556
- assert.equal(
1557
- testUtils.getAPIHistoryLength(),
1558
- 3,
1559
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1560
- );
1561
-
1562
- return;
1563
- });
1564
-
1565
- it('Should not show audit log of a transactional journey with a too high version', async () => {
1566
- const audit = await handler.audit('testInstance/testBU', {
1567
- journey: ['testExisting_temail/99'],
1568
- });
1569
- // THEN
1570
- assert.equal(process.exitCode, 404, 'audit should have thrown an error');
1571
-
1572
- assert.deepEqual(
1573
- audit['testInstance/testBU'].journey,
1574
- [],
1575
- 'should have returned the right journeys'
1576
- );
1577
- assert.equal(
1578
- testUtils.getAPIHistoryLength(),
1579
- 2,
1580
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1581
- );
1582
-
1583
- return;
1584
- });
1585
-
1586
- it('Should show audit log of a multi-step journey and version', async () => {
1587
- const audit = await handler.audit('testInstance/testBU', {
1588
- journey: ['testExisting_journey_Multistep/1'],
1589
- });
1590
- // THEN
1591
- assert.equal(process.exitCode, 0, 'audit should not have thrown an error');
1592
-
1593
- assert.deepEqual(
1594
- audit['testInstance/testBU'].journey,
1595
- ['testExisting_journey_Multistep'],
1596
- 'should have returned the right journeys'
1597
- );
1598
- assert.equal(
1599
- testUtils.getAPIHistoryLength(),
1600
- 2,
1601
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1602
- );
1603
-
1604
- return;
1605
- });
1606
-
1607
- it('Should show audit log of a multi-step journey with all its versions', async () => {
1608
- const audit = await handler.audit('testInstance/testBU', {
1609
- journey: ['testExisting_journey_Multistep'],
1610
- });
1611
- // THEN
1612
- assert.equal(process.exitCode, 0, 'audit should not have thrown an error');
1613
-
1614
- assert.deepEqual(
1615
- audit['testInstance/testBU'].journey,
1616
- ['testExisting_journey_Multistep'],
1617
- 'should have returned the right journeys'
1618
- );
1619
- assert.equal(
1620
- testUtils.getAPIHistoryLength(),
1621
- 4,
1622
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1623
- );
1624
-
1625
- return;
1626
- });
1627
-
1628
- it('Should show audit log of a multi-step journey with all its versions via /*', async () => {
1629
- const audit = await handler.audit('testInstance/testBU', {
1630
- journey: ['testExisting_journey_Multistep'],
1631
- });
1632
- // THEN
1633
- assert.equal(process.exitCode, 0, 'audit should not have thrown an error');
1634
-
1635
- assert.deepEqual(
1636
- audit['testInstance/testBU'].journey,
1637
- ['testExisting_journey_Multistep'],
1638
- 'should have returned the right journeys'
1639
- );
1640
- assert.equal(
1641
- testUtils.getAPIHistoryLength(),
1642
- 4,
1643
- 'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
1644
- );
1645
-
1646
- return;
1647
- });
1648
- });
1649
- });