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