mcdev 9.0.3 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +2 -24
- package/@types/lib/metadataTypes/DataExtension.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtensionField.d.ts +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/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 +23 -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/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 +6 -31
- package/lib/cli.js +101 -82
- package/lib/index.js +223 -164
- 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 +33 -132
- package/lib/metadataTypes/DataExtensionField.js +1 -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 +326 -129
- package/lib/metadataTypes/MetadataType.js +156 -174
- 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/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 +16 -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 -150
- 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/copilot-instructions.md +0 -85
- 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 -85
- package/.github/workflows/pr-labeler.yml +0 -19
- package/.github/workflows/sync-milestone.yml +0 -55
- 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_journey_updatecontact_sharedDE.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/template_sharedDE-expected.json +0 -53
- 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 -92
- 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 -249
- 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_journey_updatecontact_sharedDE/get-response.json +0 -119
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_updatecontact_sharedDE/put-response.json +0 -110
- 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/get-updatecontact-sharedDE-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/put-updatecontact-sharedDE-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/get_sharedDE-expected.json +0 -11
- package/test/resources/9999999/query/get_sharedDE-expected.sql +0 -7
- 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/query/template_sharedDE-expected.json +0 -8
- package/test/resources/9999999/query/template_sharedDE-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 -97
- 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 -1649
- package/test/type.mobileKeyword.test.js +0 -279
- package/test/type.mobileMessage.test.js +0 -206
- package/test/type.query.test.js +0 -1031
- 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
package/test/type.asset.test.js
DELETED
|
@@ -1,1432 +0,0 @@
|
|
|
1
|
-
import File from '../lib/util/file.js';
|
|
2
|
-
|
|
3
|
-
import * as chai from 'chai';
|
|
4
|
-
const assert = chai.assert;
|
|
5
|
-
const expect = chai.expect;
|
|
6
|
-
|
|
7
|
-
import chaiFiles from 'chai-files';
|
|
8
|
-
import cache from '../lib/util/cache.js';
|
|
9
|
-
import * as testUtils from './utils.js';
|
|
10
|
-
import handler from '../lib/index.js';
|
|
11
|
-
chai.use(chaiFiles);
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* gets file from Retrieve folder
|
|
15
|
-
*
|
|
16
|
-
* @param {string} customerKey of metadata
|
|
17
|
-
* @param {string} type of metadata
|
|
18
|
-
* @param {string} subtype of metadata
|
|
19
|
-
* @param {string} [buName] used when we need to test on ParentBU
|
|
20
|
-
* @returns {Promise.<string>} file in string form
|
|
21
|
-
*/
|
|
22
|
-
async function getActualJson(customerKey, type, subtype, buName = 'testBU') {
|
|
23
|
-
try {
|
|
24
|
-
return await File.readJSON(
|
|
25
|
-
`./retrieve/testInstance/${buName}/${type}/${subtype}/${customerKey}.${type}-${subtype}-meta.json`
|
|
26
|
-
);
|
|
27
|
-
} catch {
|
|
28
|
-
return await File.readJSON(
|
|
29
|
-
`./retrieve/testInstance/${buName}/${type}/${subtype}/${customerKey}/${customerKey}.${type}-${subtype}-meta.json`
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* gets file from Retrieve folder
|
|
36
|
-
*
|
|
37
|
-
* @param {string} customerKey of metadata
|
|
38
|
-
* @param {string} type of metadata
|
|
39
|
-
* @param {string} subtype of metadata
|
|
40
|
-
* @param {string} ext file extension
|
|
41
|
-
* @param {string} [filename] optional fileprefix that differs from customerKey
|
|
42
|
-
* @param {string} [buName] used when we need to test on ParentBU
|
|
43
|
-
* @returns {Promise.<string | null>} file path
|
|
44
|
-
*/
|
|
45
|
-
async function getActualFile(customerKey, type, subtype, ext, filename, buName = 'testBU') {
|
|
46
|
-
const path = `./retrieve/testInstance/${buName}/${type}/${subtype}/${customerKey}.${type}-${subtype}-meta.${ext}`;
|
|
47
|
-
const pathSub = `./retrieve/testInstance/${buName}/${type}/${subtype}/${customerKey}/${filename}.${type}-${subtype}-meta.${ext}`;
|
|
48
|
-
|
|
49
|
-
try {
|
|
50
|
-
return await File.readFile(filename ? pathSub : path, 'utf8');
|
|
51
|
-
} catch {
|
|
52
|
-
console.log(`File not found: ${filename ? pathSub : path}`); // eslint-disable-line no-console
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* gets file from Template folder
|
|
59
|
-
*
|
|
60
|
-
* @param {string} customerKey of metadata
|
|
61
|
-
* @param {string} type of metadata
|
|
62
|
-
* @param {string} subtype of metadata
|
|
63
|
-
* @returns {Promise.<string>} file in string form
|
|
64
|
-
*/
|
|
65
|
-
async function getActualTemplateJson(customerKey, type, subtype) {
|
|
66
|
-
try {
|
|
67
|
-
return await File.readJSON(
|
|
68
|
-
`./template/${type}/${subtype}/${customerKey}.${type}-${subtype}-meta.json`
|
|
69
|
-
);
|
|
70
|
-
} catch {
|
|
71
|
-
return await File.readJSON(
|
|
72
|
-
`./template/${type}/${subtype}/${customerKey}/${customerKey}.${type}-${subtype}-meta.json`
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* gets file from Template folder
|
|
79
|
-
*
|
|
80
|
-
* @param {string} customerKey of metadata
|
|
81
|
-
* @param {string} type of metadata
|
|
82
|
-
* @param {string} subtype of metadata
|
|
83
|
-
* @param {string} ext file extension
|
|
84
|
-
* @param {string} [filename] optional fileprefix that differs from customerKey
|
|
85
|
-
* @returns {Promise.<string | undefined>} file
|
|
86
|
-
*/
|
|
87
|
-
async function getActualTemplateFile(customerKey, type, subtype, ext, filename) {
|
|
88
|
-
const path = `./template/${type}/${subtype}/${customerKey}.${type}-${subtype}-meta.${ext}`;
|
|
89
|
-
const pathSub = `./template/${type}/${subtype}/${customerKey}/${filename}.${type}-${subtype}-meta.${ext}`;
|
|
90
|
-
|
|
91
|
-
try {
|
|
92
|
-
return File.readFile(filename ? pathSub : path, 'utf8');
|
|
93
|
-
} catch {
|
|
94
|
-
console.log(`File not found: ${filename ? pathSub : path}`); // eslint-disable-line no-console
|
|
95
|
-
return;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* gets file from Deploy folder
|
|
101
|
-
*
|
|
102
|
-
* @param {string} customerKey of metadata
|
|
103
|
-
* @param {string} type of metadata
|
|
104
|
-
* @param {string} subtype of metadata
|
|
105
|
-
* @param {string} [buName] used when we need to test on ParentBU
|
|
106
|
-
* @returns {Promise.<string>} file in string form
|
|
107
|
-
*/
|
|
108
|
-
async function getActualDeployJson(customerKey, type, subtype, buName = 'testBU') {
|
|
109
|
-
try {
|
|
110
|
-
return await File.readJSON(
|
|
111
|
-
`./deploy/testInstance/${buName}/${type}/${subtype}/${customerKey}.${type}-${subtype}-meta.json`
|
|
112
|
-
);
|
|
113
|
-
} catch {
|
|
114
|
-
return await File.readJSON(
|
|
115
|
-
`./deploy/testInstance/${buName}/${type}/${subtype}/${customerKey}/${customerKey}.${type}-${subtype}-meta.json`
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* gets file from Deploy folder
|
|
122
|
-
*
|
|
123
|
-
* @param {string} customerKey of metadata
|
|
124
|
-
* @param {string} type of metadata
|
|
125
|
-
* @param {string} subtype of metadata
|
|
126
|
-
* @param {string} ext file extension
|
|
127
|
-
* @param {string} [filename] optional fileprefix that differs from customerKey
|
|
128
|
-
* @param {string} [buName] used when we need to test on ParentBU
|
|
129
|
-
* @returns {Promise.<string | undefined>} file content
|
|
130
|
-
*/
|
|
131
|
-
async function getActualDeployFile(customerKey, type, subtype, ext, filename, buName = 'testBU') {
|
|
132
|
-
const path = `./deploy/testInstance/${buName}/${type}/${subtype}/${customerKey}.${type}-${subtype}-meta.${ext}`;
|
|
133
|
-
const pathSub = `./deploy/testInstance/${buName}/${type}/${subtype}/${customerKey}/${filename}.${type}-${subtype}-meta.${ext}`;
|
|
134
|
-
|
|
135
|
-
try {
|
|
136
|
-
return File.readFile(filename ? pathSub : path, 'utf8');
|
|
137
|
-
} catch {
|
|
138
|
-
console.log(`File not found: ${filename ? pathSub : path}`); // eslint-disable-line no-console
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
describe('type: asset', () => {
|
|
144
|
-
beforeEach(() => {
|
|
145
|
-
testUtils.mockSetup();
|
|
146
|
-
});
|
|
147
|
-
|
|
148
|
-
afterEach(() => {
|
|
149
|
-
testUtils.mockReset();
|
|
150
|
-
});
|
|
151
|
-
|
|
152
|
-
describe('Retrieve ================', () => {
|
|
153
|
-
it('Should retrieve a asset & ensure non-ssjs code is not removed', async () => {
|
|
154
|
-
// WHEN
|
|
155
|
-
const retrieve = await handler.retrieve('testInstance/testBU', ['asset']);
|
|
156
|
-
// THEN
|
|
157
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
158
|
-
assert.equal(
|
|
159
|
-
retrieve['testInstance/testBU'].asset
|
|
160
|
-
? Object.keys(retrieve['testInstance/testBU'].asset).length
|
|
161
|
-
: 0,
|
|
162
|
-
12,
|
|
163
|
-
'Unexpected number of assets in retrieve response'
|
|
164
|
-
);
|
|
165
|
-
// get results from cache
|
|
166
|
-
const result = cache.getCache();
|
|
167
|
-
assert.equal(
|
|
168
|
-
result.asset ? Object.keys(result.asset).length : 0,
|
|
169
|
-
15,
|
|
170
|
-
'Unexpected number of assets in cache'
|
|
171
|
-
);
|
|
172
|
-
|
|
173
|
-
assert.deepEqual(
|
|
174
|
-
await getActualJson('testExisting_asset_htmlblock', 'asset', 'block'),
|
|
175
|
-
await testUtils.getExpectedJson(
|
|
176
|
-
'9999999',
|
|
177
|
-
'asset',
|
|
178
|
-
'testExisting_asset_htmlblock-retrieve'
|
|
179
|
-
),
|
|
180
|
-
'returned metadata was not equal expected'
|
|
181
|
-
);
|
|
182
|
-
expect(
|
|
183
|
-
await getActualFile('testExisting_asset_htmlblock', 'asset', 'block', 'html')
|
|
184
|
-
).to.equal(
|
|
185
|
-
await testUtils.getExpectedFile(
|
|
186
|
-
'9999999',
|
|
187
|
-
'asset',
|
|
188
|
-
'testExisting_asset_htmlblock-retrieve',
|
|
189
|
-
'html'
|
|
190
|
-
)
|
|
191
|
-
);
|
|
192
|
-
|
|
193
|
-
assert.deepEqual(
|
|
194
|
-
await getActualJson('testExisting_asset_templatebasedemail', 'asset', 'message'),
|
|
195
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'retrieve-templatebasedemail'),
|
|
196
|
-
'returned metadata was not equal expected'
|
|
197
|
-
);
|
|
198
|
-
expect(
|
|
199
|
-
await getActualFile(
|
|
200
|
-
'testExisting_asset_templatebasedemail',
|
|
201
|
-
'asset',
|
|
202
|
-
'message',
|
|
203
|
-
'html',
|
|
204
|
-
'views.html.content'
|
|
205
|
-
)
|
|
206
|
-
).to.equal(
|
|
207
|
-
await testUtils.getExpectedFile(
|
|
208
|
-
'9999999',
|
|
209
|
-
'asset',
|
|
210
|
-
'retrieve-templatebasedemail-html',
|
|
211
|
-
'html'
|
|
212
|
-
)
|
|
213
|
-
);
|
|
214
|
-
expect(
|
|
215
|
-
await getActualFile(
|
|
216
|
-
'testExisting_asset_templatebasedemail',
|
|
217
|
-
'asset',
|
|
218
|
-
'message',
|
|
219
|
-
'amp',
|
|
220
|
-
'views.preheader.content'
|
|
221
|
-
)
|
|
222
|
-
).to.equal(
|
|
223
|
-
await testUtils.getExpectedFile(
|
|
224
|
-
'9999999',
|
|
225
|
-
'asset',
|
|
226
|
-
'retrieve-templatebasedemail-preheader',
|
|
227
|
-
'amp'
|
|
228
|
-
)
|
|
229
|
-
);
|
|
230
|
-
|
|
231
|
-
assert.deepEqual(
|
|
232
|
-
await getActualJson('test_coderesource_js', 'asset', 'coderesource'),
|
|
233
|
-
await testUtils.getExpectedJson(
|
|
234
|
-
'9999999',
|
|
235
|
-
'asset',
|
|
236
|
-
'test_coderesource_js-retrieve'
|
|
237
|
-
),
|
|
238
|
-
'returned metadata was not equal expected'
|
|
239
|
-
);
|
|
240
|
-
expect(
|
|
241
|
-
await getActualFile('test_coderesource_js', 'asset', 'coderesource', 'js')
|
|
242
|
-
).to.equal(
|
|
243
|
-
await testUtils.getExpectedFile(
|
|
244
|
-
'9999999',
|
|
245
|
-
'asset',
|
|
246
|
-
'test_coderesource_js-retrieve',
|
|
247
|
-
'js'
|
|
248
|
-
)
|
|
249
|
-
);
|
|
250
|
-
|
|
251
|
-
assert.deepEqual(
|
|
252
|
-
await getActualJson('test_coderesource_json', 'asset', 'coderesource'),
|
|
253
|
-
await testUtils.getExpectedJson(
|
|
254
|
-
'9999999',
|
|
255
|
-
'asset',
|
|
256
|
-
'test_coderesource_json-retrieve'
|
|
257
|
-
),
|
|
258
|
-
'returned metadata was not equal expected'
|
|
259
|
-
);
|
|
260
|
-
expect(
|
|
261
|
-
await getActualFile('test_coderesource_json', 'asset', 'coderesource', 'jsonc')
|
|
262
|
-
).to.equal(
|
|
263
|
-
await testUtils.getExpectedFile(
|
|
264
|
-
'9999999',
|
|
265
|
-
'asset',
|
|
266
|
-
'test_coderesource_json-retrieve',
|
|
267
|
-
'jsonc'
|
|
268
|
-
)
|
|
269
|
-
);
|
|
270
|
-
|
|
271
|
-
assert.deepEqual(
|
|
272
|
-
await getActualJson('test_coderesource_xml', 'asset', 'coderesource'),
|
|
273
|
-
await testUtils.getExpectedJson(
|
|
274
|
-
'9999999',
|
|
275
|
-
'asset',
|
|
276
|
-
'test_coderesource_xml-retrieve'
|
|
277
|
-
),
|
|
278
|
-
'returned metadata was not equal expected'
|
|
279
|
-
);
|
|
280
|
-
expect(
|
|
281
|
-
await getActualFile('test_coderesource_xml', 'asset', 'coderesource', 'xml')
|
|
282
|
-
).to.equal(
|
|
283
|
-
await testUtils.getExpectedFile(
|
|
284
|
-
'9999999',
|
|
285
|
-
'asset',
|
|
286
|
-
'test_coderesource_xml-retrieve',
|
|
287
|
-
'xml'
|
|
288
|
-
)
|
|
289
|
-
);
|
|
290
|
-
|
|
291
|
-
assert.equal(
|
|
292
|
-
testUtils.getAPIHistoryLength(),
|
|
293
|
-
26,
|
|
294
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
295
|
-
);
|
|
296
|
-
return;
|
|
297
|
-
});
|
|
298
|
-
|
|
299
|
-
it('Should retrieve asset-cloudpage', async () => {
|
|
300
|
-
// WHEN
|
|
301
|
-
const retrieve = await handler.retrieve('testInstance/testBU', ['asset-cloudpage']);
|
|
302
|
-
|
|
303
|
-
// THEN
|
|
304
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
305
|
-
assert.equal(
|
|
306
|
-
retrieve['testInstance/testBU'].asset
|
|
307
|
-
? Object.keys(retrieve['testInstance/testBU'].asset).length
|
|
308
|
-
: 0,
|
|
309
|
-
3,
|
|
310
|
-
'Unexpected number of assets in retrieve response'
|
|
311
|
-
);
|
|
312
|
-
// get results from cache
|
|
313
|
-
const result = cache.getCache();
|
|
314
|
-
assert.equal(
|
|
315
|
-
result.asset ? Object.keys(result.asset).length : 0,
|
|
316
|
-
13,
|
|
317
|
-
'Unexpected number of assets in cache'
|
|
318
|
-
);
|
|
319
|
-
|
|
320
|
-
assert.deepEqual(
|
|
321
|
-
await getActualJson('test_landingpage', 'asset', 'cloudpage'),
|
|
322
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'test_landingpage-retrieve'),
|
|
323
|
-
'returned metadata was not equal expected'
|
|
324
|
-
);
|
|
325
|
-
|
|
326
|
-
assert.deepEqual(
|
|
327
|
-
await getActualJson('test_microsite', 'asset', 'cloudpage'),
|
|
328
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'test_microsite-retrieve'),
|
|
329
|
-
'returned metadata was not equal expected'
|
|
330
|
-
);
|
|
331
|
-
|
|
332
|
-
assert.deepEqual(
|
|
333
|
-
await getActualJson('test_interactivecontent', 'asset', 'cloudpage'),
|
|
334
|
-
await testUtils.getExpectedJson(
|
|
335
|
-
'9999999',
|
|
336
|
-
'asset',
|
|
337
|
-
'test_interactivecontent-retrieve'
|
|
338
|
-
),
|
|
339
|
-
'returned metadata was not equal expected'
|
|
340
|
-
);
|
|
341
|
-
|
|
342
|
-
assert.equal(
|
|
343
|
-
testUtils.getAPIHistoryLength(),
|
|
344
|
-
10,
|
|
345
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
346
|
-
);
|
|
347
|
-
return;
|
|
348
|
-
});
|
|
349
|
-
|
|
350
|
-
it('Should retrieve a asset by key', async () => {
|
|
351
|
-
// WHEN
|
|
352
|
-
const retrieve = await handler.retrieve(
|
|
353
|
-
'testInstance/testBU',
|
|
354
|
-
['asset'],
|
|
355
|
-
['testExisting_asset_htmlblock']
|
|
356
|
-
);
|
|
357
|
-
|
|
358
|
-
// THEN
|
|
359
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
360
|
-
assert.equal(
|
|
361
|
-
retrieve['testInstance/testBU'].asset
|
|
362
|
-
? Object.keys(retrieve['testInstance/testBU'].asset).length
|
|
363
|
-
: 0,
|
|
364
|
-
1,
|
|
365
|
-
'Unexpected number of assets in retrieve response'
|
|
366
|
-
);
|
|
367
|
-
// get results from cache
|
|
368
|
-
const result = cache.getCache();
|
|
369
|
-
assert.equal(
|
|
370
|
-
result.asset ? Object.keys(result.asset).length : 0,
|
|
371
|
-
10,
|
|
372
|
-
'Unexpected number of assets in cache'
|
|
373
|
-
);
|
|
374
|
-
|
|
375
|
-
assert.deepEqual(
|
|
376
|
-
await getActualJson('testExisting_asset_htmlblock', 'asset', 'block'),
|
|
377
|
-
await testUtils.getExpectedJson(
|
|
378
|
-
'9999999',
|
|
379
|
-
'asset',
|
|
380
|
-
'testExisting_asset_htmlblock-retrieve'
|
|
381
|
-
),
|
|
382
|
-
'returned metadata was not equal expected'
|
|
383
|
-
);
|
|
384
|
-
|
|
385
|
-
assert.equal(
|
|
386
|
-
testUtils.getAPIHistoryLength(),
|
|
387
|
-
8,
|
|
388
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
389
|
-
);
|
|
390
|
-
return;
|
|
391
|
-
});
|
|
392
|
-
});
|
|
393
|
-
|
|
394
|
-
describe('Deploy ================', () => {
|
|
395
|
-
beforeEach(() => {
|
|
396
|
-
testUtils.mockSetup(true);
|
|
397
|
-
});
|
|
398
|
-
|
|
399
|
-
it('Should create an asset with mis-matching memberId, automatically adding the MID suffix', async () => {
|
|
400
|
-
handler.setOptions({ autoMidSuffix: true });
|
|
401
|
-
// WHEN
|
|
402
|
-
const deployResult = await handler.deploy(
|
|
403
|
-
'testInstance/testBU',
|
|
404
|
-
['asset'],
|
|
405
|
-
['testNew_asset']
|
|
406
|
-
);
|
|
407
|
-
// THEN
|
|
408
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
409
|
-
|
|
410
|
-
// check how many items were deployed
|
|
411
|
-
assert.equal(
|
|
412
|
-
deployResult['testInstance/testBU']?.asset
|
|
413
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset).length
|
|
414
|
-
: 0,
|
|
415
|
-
1,
|
|
416
|
-
'Unexpected number of assets deployed'
|
|
417
|
-
);
|
|
418
|
-
const upsertCallout = testUtils.getRestCallout('post', '/asset/v1/content/assets/');
|
|
419
|
-
assert.equal(
|
|
420
|
-
upsertCallout?.customerKey,
|
|
421
|
-
'testNew_asset-9999999',
|
|
422
|
-
'customerKey should be testNew_asset-9999999 due to --autoMidSuffix'
|
|
423
|
-
);
|
|
424
|
-
|
|
425
|
-
// insert
|
|
426
|
-
assert.deepEqual(
|
|
427
|
-
await getActualJson('testNew_asset-9999999', 'asset', 'block'),
|
|
428
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'create'),
|
|
429
|
-
'returned metadata was not equal expected for create'
|
|
430
|
-
);
|
|
431
|
-
|
|
432
|
-
assert.equal(
|
|
433
|
-
testUtils.getAPIHistoryLength(),
|
|
434
|
-
5,
|
|
435
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
436
|
-
);
|
|
437
|
-
return;
|
|
438
|
-
});
|
|
439
|
-
|
|
440
|
-
it('Should update an asset with --matchName', async () => {
|
|
441
|
-
handler.setOptions({ matchName: true });
|
|
442
|
-
// WHEN
|
|
443
|
-
const deployResult = await handler.deploy(
|
|
444
|
-
'testInstance/testBU',
|
|
445
|
-
['asset'],
|
|
446
|
-
['testExisting_asset_html-matchName']
|
|
447
|
-
);
|
|
448
|
-
// THEN
|
|
449
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
450
|
-
|
|
451
|
-
// check how many items were deployed
|
|
452
|
-
assert.equal(
|
|
453
|
-
deployResult['testInstance/testBU']?.asset
|
|
454
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset).length
|
|
455
|
-
: 0,
|
|
456
|
-
1,
|
|
457
|
-
'Unexpected number of assets deployed'
|
|
458
|
-
);
|
|
459
|
-
const currentCache = cache.getCache();
|
|
460
|
-
|
|
461
|
-
const upsertCallout = testUtils.getRestCallout(
|
|
462
|
-
'patch',
|
|
463
|
-
'/asset/v1/content/assets/1295064'
|
|
464
|
-
);
|
|
465
|
-
assert.equal(
|
|
466
|
-
upsertCallout?.customerKey,
|
|
467
|
-
'testExisting_asset_html-matchName',
|
|
468
|
-
'customerKey should be testExisting_asset_html-matchName'
|
|
469
|
-
);
|
|
470
|
-
assert.equal(
|
|
471
|
-
upsertCallout?.id,
|
|
472
|
-
currentCache.asset['testExisting_asset_htmlblock'].id,
|
|
473
|
-
'id should be that of the existing testExisting_asset_htmlblock'
|
|
474
|
-
);
|
|
475
|
-
|
|
476
|
-
assert.equal(
|
|
477
|
-
testUtils.getAPIHistoryLength(),
|
|
478
|
-
5,
|
|
479
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
480
|
-
);
|
|
481
|
-
return;
|
|
482
|
-
});
|
|
483
|
-
|
|
484
|
-
it('Should not update an asset with --matchName due to multiple potential matches', async () => {
|
|
485
|
-
handler.setOptions({ matchName: true });
|
|
486
|
-
// WHEN
|
|
487
|
-
const deployResult = await handler.deploy(
|
|
488
|
-
'testInstance/testBU',
|
|
489
|
-
['asset'],
|
|
490
|
-
['testExisting_asset_html-matchNamFail']
|
|
491
|
-
);
|
|
492
|
-
// THEN
|
|
493
|
-
assert.equal(process.exitCode, 1, 'deploy should have thrown an error');
|
|
494
|
-
|
|
495
|
-
// check how many items were deployed
|
|
496
|
-
assert.equal(
|
|
497
|
-
deployResult['testInstance/testBU']?.asset
|
|
498
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset).length
|
|
499
|
-
: 0,
|
|
500
|
-
0,
|
|
501
|
-
'Unexpected number of assets deployed'
|
|
502
|
-
);
|
|
503
|
-
|
|
504
|
-
const upsertCallout = testUtils.getRestCallout('patch', '/asset/v1/content/assets/%');
|
|
505
|
-
assert.equal(upsertCallout, null, 'there should have been no patch');
|
|
506
|
-
|
|
507
|
-
assert.equal(
|
|
508
|
-
testUtils.getAPIHistoryLength(),
|
|
509
|
-
4,
|
|
510
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
511
|
-
);
|
|
512
|
-
return;
|
|
513
|
-
});
|
|
514
|
-
|
|
515
|
-
it('Should create an asset with --matchName because it found no match', async () => {
|
|
516
|
-
handler.setOptions({ matchName: true });
|
|
517
|
-
// WHEN
|
|
518
|
-
const deployResult = await handler.deploy(
|
|
519
|
-
'testInstance/testBU',
|
|
520
|
-
['asset'],
|
|
521
|
-
['testExisting_asset_html-matchNameAdd']
|
|
522
|
-
);
|
|
523
|
-
// THEN
|
|
524
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
525
|
-
|
|
526
|
-
// check how many items were deployed
|
|
527
|
-
assert.equal(
|
|
528
|
-
deployResult['testInstance/testBU']?.asset
|
|
529
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset).length
|
|
530
|
-
: 0,
|
|
531
|
-
1,
|
|
532
|
-
'Unexpected number of assets deployed'
|
|
533
|
-
);
|
|
534
|
-
|
|
535
|
-
const upsertCallout = testUtils.getRestCallout('post', '/asset/v1/content/assets/');
|
|
536
|
-
assert.equal(
|
|
537
|
-
upsertCallout?.customerKey,
|
|
538
|
-
'testExisting_asset_html-matchNameAdd',
|
|
539
|
-
'asset.customerKey should be testExisting_asset_html-matchNameAdd'
|
|
540
|
-
);
|
|
541
|
-
assert.equal(
|
|
542
|
-
upsertCallout?.id,
|
|
543
|
-
undefined,
|
|
544
|
-
'asset.id should not be set as we are in a create call'
|
|
545
|
-
);
|
|
546
|
-
|
|
547
|
-
assert.equal(
|
|
548
|
-
testUtils.getAPIHistoryLength(),
|
|
549
|
-
5,
|
|
550
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
551
|
-
);
|
|
552
|
-
return;
|
|
553
|
-
});
|
|
554
|
-
|
|
555
|
-
it('Should create an asset with mis-matching memberId and --keySuffix', async () => {
|
|
556
|
-
handler.setOptions({ keySuffix: '_DEV' });
|
|
557
|
-
// WHEN
|
|
558
|
-
const deployResult = await handler.deploy(
|
|
559
|
-
'testInstance/testBU',
|
|
560
|
-
['asset'],
|
|
561
|
-
['testNew_asset']
|
|
562
|
-
);
|
|
563
|
-
// THEN
|
|
564
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
565
|
-
|
|
566
|
-
// check how many items were deployed
|
|
567
|
-
assert.equal(
|
|
568
|
-
deployResult['testInstance/testBU']?.asset
|
|
569
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset).length
|
|
570
|
-
: 0,
|
|
571
|
-
1,
|
|
572
|
-
'Unexpected number of assets deployed'
|
|
573
|
-
);
|
|
574
|
-
const upsertCallout = testUtils.getRestCallout('post', '/asset/v1/content/assets/');
|
|
575
|
-
assert.equal(
|
|
576
|
-
upsertCallout?.customerKey,
|
|
577
|
-
'testNew_asset_DEV',
|
|
578
|
-
'customerKey should be testNew_asset_DEV due to --keySuffix'
|
|
579
|
-
);
|
|
580
|
-
|
|
581
|
-
assert.equal(
|
|
582
|
-
testUtils.getAPIHistoryLength(),
|
|
583
|
-
5,
|
|
584
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
585
|
-
);
|
|
586
|
-
return;
|
|
587
|
-
});
|
|
588
|
-
|
|
589
|
-
it('Should create an asset with mis-matching memberId', async () => {
|
|
590
|
-
// WHEN
|
|
591
|
-
const deployResult = await handler.deploy(
|
|
592
|
-
'testInstance/testBU',
|
|
593
|
-
['asset'],
|
|
594
|
-
['testNew_asset']
|
|
595
|
-
);
|
|
596
|
-
// THEN
|
|
597
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
598
|
-
|
|
599
|
-
// check how many items were deployed
|
|
600
|
-
assert.equal(
|
|
601
|
-
deployResult['testInstance/testBU']?.asset
|
|
602
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset).length
|
|
603
|
-
: 0,
|
|
604
|
-
1,
|
|
605
|
-
'Unexpected number of assets deployed'
|
|
606
|
-
);
|
|
607
|
-
const upsertCallout = testUtils.getRestCallout('post', '/asset/v1/content/assets/');
|
|
608
|
-
assert.equal(
|
|
609
|
-
upsertCallout?.customerKey,
|
|
610
|
-
'testNew_asset',
|
|
611
|
-
'customerKey should be testNew_asset'
|
|
612
|
-
);
|
|
613
|
-
|
|
614
|
-
assert.equal(
|
|
615
|
-
testUtils.getAPIHistoryLength(),
|
|
616
|
-
5,
|
|
617
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
618
|
-
);
|
|
619
|
-
return;
|
|
620
|
-
});
|
|
621
|
-
|
|
622
|
-
it('Should create an asset that loads a pre-existing content block via CBBK', async () => {
|
|
623
|
-
// WHEN
|
|
624
|
-
const deployResult = await handler.deploy('testInstance/testBU', {
|
|
625
|
-
asset: ['testNew_asset_withCBBK_preexisting'],
|
|
626
|
-
});
|
|
627
|
-
// THEN
|
|
628
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
629
|
-
|
|
630
|
-
// check how many items were deployed
|
|
631
|
-
assert.equal(
|
|
632
|
-
deployResult['testInstance/testBU']?.asset
|
|
633
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset).length
|
|
634
|
-
: 0,
|
|
635
|
-
1,
|
|
636
|
-
'Unexpected number of assets deployed'
|
|
637
|
-
);
|
|
638
|
-
const upsertCallout = testUtils.getRestCallout('post', '/asset/v1/content/assets/');
|
|
639
|
-
assert.equal(
|
|
640
|
-
upsertCallout?.customerKey,
|
|
641
|
-
'testNew_asset_withCBBK_preexisting',
|
|
642
|
-
'customerKey should be testNew_asset'
|
|
643
|
-
);
|
|
644
|
-
|
|
645
|
-
assert.equal(
|
|
646
|
-
testUtils.getAPIHistoryLength(),
|
|
647
|
-
5,
|
|
648
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
649
|
-
);
|
|
650
|
-
return;
|
|
651
|
-
});
|
|
652
|
-
|
|
653
|
-
it('Should not create an asset that attempts to load a non-existent content block via CBBK', async () => {
|
|
654
|
-
// WHEN
|
|
655
|
-
const deployResult = await handler.deploy('testInstance/testBU', {
|
|
656
|
-
asset: ['testNew_asset_withCBBK_notexisting'],
|
|
657
|
-
});
|
|
658
|
-
// THEN
|
|
659
|
-
assert.equal(process.exitCode, 1, 'deploy should have thrown an error');
|
|
660
|
-
|
|
661
|
-
// check how many items were deployed
|
|
662
|
-
assert.equal(
|
|
663
|
-
deployResult['testInstance/testBU']?.asset
|
|
664
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset).length
|
|
665
|
-
: 0,
|
|
666
|
-
0,
|
|
667
|
-
'Unexpected number of assets deployed'
|
|
668
|
-
);
|
|
669
|
-
|
|
670
|
-
assert.equal(
|
|
671
|
-
testUtils.getAPIHistoryLength(),
|
|
672
|
-
4,
|
|
673
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
674
|
-
);
|
|
675
|
-
return;
|
|
676
|
-
});
|
|
677
|
-
|
|
678
|
-
it('Should create an asset that loads a content block via CBBK that is also created in the same package', async () => {
|
|
679
|
-
// WHEN
|
|
680
|
-
const deployResult = await handler.deploy('testInstance/testBU', {
|
|
681
|
-
asset: ['testNew_asset_withCBBK_notexisting', 'testNew_asset_htmlblock'],
|
|
682
|
-
});
|
|
683
|
-
// THEN
|
|
684
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
685
|
-
|
|
686
|
-
// check how many items were deployed
|
|
687
|
-
assert.deepEqual(
|
|
688
|
-
deployResult['testInstance/testBU']?.asset
|
|
689
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset)
|
|
690
|
-
: [],
|
|
691
|
-
['testNew_asset_htmlblock', 'testNew_asset_withCBBK_notexisting'],
|
|
692
|
-
'unexpected assets deployed'
|
|
693
|
-
);
|
|
694
|
-
|
|
695
|
-
// check if we really issued callouts for those 2 blocks AND if they were run in the right order despite the key list for deploy() getting it in the wrong order
|
|
696
|
-
const upsertCallouts = testUtils.getRestCallout(
|
|
697
|
-
'post',
|
|
698
|
-
'/asset/v1/content/assets/',
|
|
699
|
-
true
|
|
700
|
-
);
|
|
701
|
-
assert.equal(
|
|
702
|
-
upsertCallouts[0]?.customerKey,
|
|
703
|
-
'testNew_asset_htmlblock',
|
|
704
|
-
'first create callout not for expected asset'
|
|
705
|
-
);
|
|
706
|
-
assert.equal(
|
|
707
|
-
upsertCallouts[1]?.customerKey,
|
|
708
|
-
'testNew_asset_withCBBK_notexisting',
|
|
709
|
-
'second create callout not for expected asset'
|
|
710
|
-
);
|
|
711
|
-
|
|
712
|
-
assert.equal(
|
|
713
|
-
testUtils.getAPIHistoryLength(),
|
|
714
|
-
6,
|
|
715
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
716
|
-
);
|
|
717
|
-
return;
|
|
718
|
-
});
|
|
719
|
-
|
|
720
|
-
it('Should not create an asset that attempts to load a non-existent content block via r__asset_key', async () => {
|
|
721
|
-
// WHEN
|
|
722
|
-
const deployResult = await handler.deploy('testInstance/testBU', {
|
|
723
|
-
asset: ['testNew_assetMessage'],
|
|
724
|
-
});
|
|
725
|
-
// THEN
|
|
726
|
-
assert.equal(process.exitCode, 1, 'deploy should have thrown an error');
|
|
727
|
-
|
|
728
|
-
// check how many items were deployed
|
|
729
|
-
assert.equal(
|
|
730
|
-
deployResult['testInstance/testBU']?.asset
|
|
731
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset).length
|
|
732
|
-
: 0,
|
|
733
|
-
0,
|
|
734
|
-
'Unexpected number of assets deployed'
|
|
735
|
-
);
|
|
736
|
-
|
|
737
|
-
assert.equal(
|
|
738
|
-
testUtils.getAPIHistoryLength(),
|
|
739
|
-
4,
|
|
740
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
741
|
-
);
|
|
742
|
-
return;
|
|
743
|
-
});
|
|
744
|
-
|
|
745
|
-
it('Should create an asset that loads a content block via r__asset_key that is also created in the same package', async () => {
|
|
746
|
-
// WHEN
|
|
747
|
-
const deployResult = await handler.deploy('testInstance/testBU', {
|
|
748
|
-
asset: ['testNew_assetMessage', 'testNew_asset_htmlblock'],
|
|
749
|
-
});
|
|
750
|
-
// THEN
|
|
751
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
752
|
-
|
|
753
|
-
// check how many items were deployed
|
|
754
|
-
assert.deepEqual(
|
|
755
|
-
deployResult['testInstance/testBU']?.asset
|
|
756
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset)
|
|
757
|
-
: [],
|
|
758
|
-
['testNew_asset_htmlblock', 'testNew_assetMessage'],
|
|
759
|
-
'unexpected assets deployed'
|
|
760
|
-
);
|
|
761
|
-
|
|
762
|
-
// check if we really issued callouts for those 2 blocks AND if they were run in the right order despite the key list for deploy() getting it in the wrong order
|
|
763
|
-
const upsertCallouts = testUtils.getRestCallout(
|
|
764
|
-
'post',
|
|
765
|
-
'/asset/v1/content/assets/',
|
|
766
|
-
true
|
|
767
|
-
);
|
|
768
|
-
assert.equal(
|
|
769
|
-
upsertCallouts[0]?.customerKey,
|
|
770
|
-
'testNew_asset_htmlblock',
|
|
771
|
-
'first create callout not for expected asset'
|
|
772
|
-
);
|
|
773
|
-
assert.equal(
|
|
774
|
-
upsertCallouts[1]?.customerKey,
|
|
775
|
-
'testNew_assetMessage',
|
|
776
|
-
'second create callout not for expected asset'
|
|
777
|
-
);
|
|
778
|
-
|
|
779
|
-
assert.equal(
|
|
780
|
-
testUtils.getAPIHistoryLength(),
|
|
781
|
-
6,
|
|
782
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
783
|
-
);
|
|
784
|
-
return;
|
|
785
|
-
});
|
|
786
|
-
|
|
787
|
-
it('Should create a templatebased email and its template connected via r__asset_key', async () => {
|
|
788
|
-
// WHEN
|
|
789
|
-
const deployResult = await handler.deploy('testInstance/testBU', {
|
|
790
|
-
asset: ['testNew_asset_templatebasedemail', 'testNew_asset_template'],
|
|
791
|
-
});
|
|
792
|
-
// THEN
|
|
793
|
-
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
794
|
-
|
|
795
|
-
// check how many items were deployed
|
|
796
|
-
assert.deepEqual(
|
|
797
|
-
deployResult['testInstance/testBU']?.asset
|
|
798
|
-
? Object.keys(deployResult['testInstance/testBU']?.asset)
|
|
799
|
-
: [],
|
|
800
|
-
['testNew_asset_template', 'testNew_asset_templatebasedemail'],
|
|
801
|
-
'unexpected assets deployed'
|
|
802
|
-
);
|
|
803
|
-
|
|
804
|
-
// check if we really issued callouts for those 2 blocks AND if they were run in the right order despite the key list for deploy() getting it in the wrong order
|
|
805
|
-
const upsertCallouts = testUtils.getRestCallout(
|
|
806
|
-
'post',
|
|
807
|
-
'/asset/v1/content/assets/',
|
|
808
|
-
true
|
|
809
|
-
);
|
|
810
|
-
assert.equal(
|
|
811
|
-
upsertCallouts[0]?.customerKey,
|
|
812
|
-
'testNew_asset_template',
|
|
813
|
-
'first create callout not for expected asset'
|
|
814
|
-
);
|
|
815
|
-
assert.equal(
|
|
816
|
-
upsertCallouts[1]?.customerKey,
|
|
817
|
-
'testNew_asset_templatebasedemail',
|
|
818
|
-
'second create callout not for expected asset'
|
|
819
|
-
);
|
|
820
|
-
|
|
821
|
-
assert.equal(
|
|
822
|
-
testUtils.getAPIHistoryLength(),
|
|
823
|
-
6,
|
|
824
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
825
|
-
);
|
|
826
|
-
return;
|
|
827
|
-
});
|
|
828
|
-
});
|
|
829
|
-
|
|
830
|
-
describe('Templating ================', () => {
|
|
831
|
-
it('Should create a asset template via buildTemplate and build it', async () => {
|
|
832
|
-
// download first before we test buildTemplate
|
|
833
|
-
await handler.retrieve('testInstance/testBU', ['asset']);
|
|
834
|
-
|
|
835
|
-
const expectedApiCallsRetrieve = 26;
|
|
836
|
-
assert.equal(
|
|
837
|
-
testUtils.getAPIHistoryLength(),
|
|
838
|
-
expectedApiCallsRetrieve,
|
|
839
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
840
|
-
);
|
|
841
|
-
|
|
842
|
-
// GIVEN there is a template
|
|
843
|
-
const result = await handler.buildTemplate(
|
|
844
|
-
'testInstance/testBU',
|
|
845
|
-
'asset',
|
|
846
|
-
['testExisting_asset_templatebasedemail', 'testExisting_asset_htmlblock'],
|
|
847
|
-
['testSourceMarket']
|
|
848
|
-
);
|
|
849
|
-
// WHEN
|
|
850
|
-
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
|
|
851
|
-
assert.equal(
|
|
852
|
-
result.asset ? Object.keys(result.asset).length : 0,
|
|
853
|
-
2,
|
|
854
|
-
'unexpected number of assets templated'
|
|
855
|
-
);
|
|
856
|
-
|
|
857
|
-
// testExisting_asset_templatebasedemail
|
|
858
|
-
assert.deepEqual(
|
|
859
|
-
await getActualTemplateJson(
|
|
860
|
-
'testExisting_asset_templatebasedemail',
|
|
861
|
-
'asset',
|
|
862
|
-
'message'
|
|
863
|
-
),
|
|
864
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'template-templatebasedemail'),
|
|
865
|
-
'returned template JSON of buildTemplate was not equal expected'
|
|
866
|
-
);
|
|
867
|
-
expect(
|
|
868
|
-
await getActualTemplateFile(
|
|
869
|
-
'testExisting_asset_templatebasedemail',
|
|
870
|
-
'asset',
|
|
871
|
-
'message',
|
|
872
|
-
'html',
|
|
873
|
-
'views.html.content'
|
|
874
|
-
)
|
|
875
|
-
).to.equal(
|
|
876
|
-
await testUtils.getExpectedFile(
|
|
877
|
-
'9999999',
|
|
878
|
-
'asset',
|
|
879
|
-
'template-templatebasedemail-html',
|
|
880
|
-
'html'
|
|
881
|
-
)
|
|
882
|
-
);
|
|
883
|
-
expect(
|
|
884
|
-
await getActualTemplateFile(
|
|
885
|
-
'testExisting_asset_templatebasedemail',
|
|
886
|
-
'asset',
|
|
887
|
-
'message',
|
|
888
|
-
'amp',
|
|
889
|
-
'views.preheader.content'
|
|
890
|
-
)
|
|
891
|
-
).to.equal(
|
|
892
|
-
await testUtils.getExpectedFile(
|
|
893
|
-
'9999999',
|
|
894
|
-
'asset',
|
|
895
|
-
'template-templatebasedemail-preheader',
|
|
896
|
-
'amp'
|
|
897
|
-
)
|
|
898
|
-
);
|
|
899
|
-
|
|
900
|
-
const definitions = await handler.buildDefinition(
|
|
901
|
-
'testInstance/testBU',
|
|
902
|
-
'asset',
|
|
903
|
-
['testExisting_asset_templatebasedemail', 'testExisting_asset_htmlblock'],
|
|
904
|
-
['testTargetMarket']
|
|
905
|
-
);
|
|
906
|
-
assert.equal(process.exitCode, 0, 'buildDefinition should not have thrown an error');
|
|
907
|
-
assert.equal(
|
|
908
|
-
definitions.asset ? Object.keys(definitions.asset).length : 0,
|
|
909
|
-
2,
|
|
910
|
-
'unexpected number of assets templated'
|
|
911
|
-
);
|
|
912
|
-
|
|
913
|
-
// testTemplated_asset_templatebasedemail
|
|
914
|
-
assert.deepEqual(
|
|
915
|
-
await getActualDeployJson(
|
|
916
|
-
'testTemplated_asset_templatebasedemail',
|
|
917
|
-
'asset',
|
|
918
|
-
'message'
|
|
919
|
-
),
|
|
920
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'build-templatebasedemail'),
|
|
921
|
-
'returned deployment JSON was not equal expected'
|
|
922
|
-
);
|
|
923
|
-
expect(
|
|
924
|
-
await getActualDeployFile(
|
|
925
|
-
'testTemplated_asset_templatebasedemail',
|
|
926
|
-
'asset',
|
|
927
|
-
'message',
|
|
928
|
-
'html',
|
|
929
|
-
'views.html.content'
|
|
930
|
-
)
|
|
931
|
-
).to.equal(
|
|
932
|
-
await testUtils.getExpectedFile(
|
|
933
|
-
'9999999',
|
|
934
|
-
'asset',
|
|
935
|
-
'build-templatebasedemail-html',
|
|
936
|
-
'html'
|
|
937
|
-
)
|
|
938
|
-
);
|
|
939
|
-
expect(
|
|
940
|
-
await getActualDeployFile(
|
|
941
|
-
'testTemplated_asset_templatebasedemail',
|
|
942
|
-
'asset',
|
|
943
|
-
'message',
|
|
944
|
-
'amp',
|
|
945
|
-
'views.preheader.content'
|
|
946
|
-
)
|
|
947
|
-
).to.equal(
|
|
948
|
-
await testUtils.getExpectedFile(
|
|
949
|
-
'9999999',
|
|
950
|
-
'asset',
|
|
951
|
-
'build-templatebasedemail-preheader',
|
|
952
|
-
'amp'
|
|
953
|
-
)
|
|
954
|
-
);
|
|
955
|
-
|
|
956
|
-
// testTemplated_asset_htmlblock
|
|
957
|
-
assert.deepEqual(
|
|
958
|
-
await getActualDeployJson('testTemplated_asset_htmlblock', 'asset', 'block'),
|
|
959
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'build-asset_htmlblock'),
|
|
960
|
-
'returned deployment JSON was not equal expected'
|
|
961
|
-
);
|
|
962
|
-
expect(
|
|
963
|
-
await getActualDeployFile('testTemplated_asset_htmlblock', 'asset', 'block', 'html')
|
|
964
|
-
).to.equal(
|
|
965
|
-
await testUtils.getExpectedFile('9999999', 'asset', 'build-asset_htmlblock', 'html')
|
|
966
|
-
);
|
|
967
|
-
|
|
968
|
-
assert.equal(
|
|
969
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
970
|
-
0,
|
|
971
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
972
|
-
);
|
|
973
|
-
return;
|
|
974
|
-
});
|
|
975
|
-
|
|
976
|
-
it('Should create a asset template via buildTemplate with --dependencies', async () => {
|
|
977
|
-
// download first before we test buildTemplate
|
|
978
|
-
await handler.retrieve('testInstance/testBU', ['asset']);
|
|
979
|
-
|
|
980
|
-
const expectedApiCallsRetrieve = 26;
|
|
981
|
-
assert.equal(
|
|
982
|
-
testUtils.getAPIHistoryLength(),
|
|
983
|
-
expectedApiCallsRetrieve,
|
|
984
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
985
|
-
);
|
|
986
|
-
handler.setOptions({ dependencies: true, skipInteraction: true });
|
|
987
|
-
|
|
988
|
-
// GIVEN there is a template
|
|
989
|
-
const templatedItems = await handler.buildTemplate(
|
|
990
|
-
'testInstance/testBU',
|
|
991
|
-
'asset',
|
|
992
|
-
['testExisting_asset_templatebasedemail'],
|
|
993
|
-
['testSourceMarket']
|
|
994
|
-
);
|
|
995
|
-
// WHEN
|
|
996
|
-
assert.equal(process.exitCode, 0, 'buildTemplate should not have thrown an error');
|
|
997
|
-
assert.equal(
|
|
998
|
-
templatedItems.asset ? templatedItems.asset.length : 0,
|
|
999
|
-
6,
|
|
1000
|
-
'Unexpted number of assets templated'
|
|
1001
|
-
);
|
|
1002
|
-
assert.deepEqual(
|
|
1003
|
-
templatedItems.asset.map((item) => item.customerKey),
|
|
1004
|
-
[
|
|
1005
|
-
'{{{prefix}}}asset_htmlblock',
|
|
1006
|
-
'{{{prefix}}}asset_template',
|
|
1007
|
-
'{{{prefix}}}asset_templatebasedemail',
|
|
1008
|
-
'{{{prefix}}}htmlblock 3 spaces',
|
|
1009
|
-
'{{{prefix}}}htmlblock1',
|
|
1010
|
-
'{{{prefix}}}htmlblock2',
|
|
1011
|
-
],
|
|
1012
|
-
'expected specific assets to be templated'
|
|
1013
|
-
);
|
|
1014
|
-
|
|
1015
|
-
// testExisting_asset_templatebasedemail
|
|
1016
|
-
assert.deepEqual(
|
|
1017
|
-
await getActualTemplateJson(
|
|
1018
|
-
'testExisting_asset_templatebasedemail',
|
|
1019
|
-
'asset',
|
|
1020
|
-
'message'
|
|
1021
|
-
),
|
|
1022
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'template-templatebasedemail'),
|
|
1023
|
-
'returned template JSON of buildTemplate was not equal expected'
|
|
1024
|
-
);
|
|
1025
|
-
|
|
1026
|
-
expect(
|
|
1027
|
-
await getActualTemplateFile(
|
|
1028
|
-
'testExisting_asset_templatebasedemail',
|
|
1029
|
-
'asset',
|
|
1030
|
-
'message',
|
|
1031
|
-
'html',
|
|
1032
|
-
'views.html.content'
|
|
1033
|
-
)
|
|
1034
|
-
).to.equal(
|
|
1035
|
-
await testUtils.getExpectedFile(
|
|
1036
|
-
'9999999',
|
|
1037
|
-
'asset',
|
|
1038
|
-
'template-templatebasedemail-html',
|
|
1039
|
-
'html'
|
|
1040
|
-
)
|
|
1041
|
-
);
|
|
1042
|
-
expect(
|
|
1043
|
-
await getActualTemplateFile(
|
|
1044
|
-
'testExisting_asset_templatebasedemail',
|
|
1045
|
-
'asset',
|
|
1046
|
-
'message',
|
|
1047
|
-
'amp',
|
|
1048
|
-
'views.preheader.content'
|
|
1049
|
-
)
|
|
1050
|
-
).to.equal(
|
|
1051
|
-
await testUtils.getExpectedFile(
|
|
1052
|
-
'9999999',
|
|
1053
|
-
'asset',
|
|
1054
|
-
'template-templatebasedemail-preheader',
|
|
1055
|
-
'amp'
|
|
1056
|
-
)
|
|
1057
|
-
);
|
|
1058
|
-
|
|
1059
|
-
// testExisting_asset_template
|
|
1060
|
-
assert.deepEqual(
|
|
1061
|
-
await getActualTemplateJson('testExisting_asset_template', 'asset', 'template'),
|
|
1062
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'template-emailTemplate'),
|
|
1063
|
-
'returned template JSON of buildTemplate was not equal expected'
|
|
1064
|
-
);
|
|
1065
|
-
|
|
1066
|
-
// testExisting_asset_htmlblock
|
|
1067
|
-
assert.deepEqual(
|
|
1068
|
-
await getActualTemplateJson('testExisting_asset_htmlblock', 'asset', 'block'),
|
|
1069
|
-
await testUtils.getExpectedJson(
|
|
1070
|
-
'9999999',
|
|
1071
|
-
'asset',
|
|
1072
|
-
'template-testExisting_asset_htmlblock'
|
|
1073
|
-
),
|
|
1074
|
-
'returned template JSON of buildTemplate was not equal expected'
|
|
1075
|
-
);
|
|
1076
|
-
|
|
1077
|
-
assert.equal(
|
|
1078
|
-
testUtils.getAPIHistoryLength() - expectedApiCallsRetrieve,
|
|
1079
|
-
4,
|
|
1080
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1081
|
-
);
|
|
1082
|
-
return;
|
|
1083
|
-
});
|
|
1084
|
-
});
|
|
1085
|
-
|
|
1086
|
-
describe('Delete ================', () => {
|
|
1087
|
-
it('Should delete the item', async () => {
|
|
1088
|
-
// WHEN
|
|
1089
|
-
const isDeleted = await handler.deleteByKey(
|
|
1090
|
-
'testInstance/testBU',
|
|
1091
|
-
'asset',
|
|
1092
|
-
'testExisting_asset'
|
|
1093
|
-
);
|
|
1094
|
-
// THEN
|
|
1095
|
-
assert.equal(process.exitCode, 0, 'deleteByKey should not have thrown an error');
|
|
1096
|
-
assert.equal(isDeleted, true, 'deleteByKey should have returned true');
|
|
1097
|
-
return;
|
|
1098
|
-
});
|
|
1099
|
-
});
|
|
1100
|
-
|
|
1101
|
-
describe('ResolveID ================', () => {
|
|
1102
|
-
it('Should resolve the id of the item but NOT find the asset locally', async () => {
|
|
1103
|
-
// WHEN
|
|
1104
|
-
const resolveIdJson = await handler.resolveId(
|
|
1105
|
-
'testInstance/testBU',
|
|
1106
|
-
'asset',
|
|
1107
|
-
'1295064'
|
|
1108
|
-
);
|
|
1109
|
-
// THEN
|
|
1110
|
-
assert.equal(process.exitCode, 0, 'resolveId should not have thrown an error');
|
|
1111
|
-
assert.deepEqual(
|
|
1112
|
-
resolveIdJson,
|
|
1113
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'resolveId-1295064-noPath'),
|
|
1114
|
-
'returned response was not equal expected'
|
|
1115
|
-
);
|
|
1116
|
-
return;
|
|
1117
|
-
});
|
|
1118
|
-
|
|
1119
|
-
it('Should resolve the id with --json option enabled', async () => {
|
|
1120
|
-
handler.setOptions({ json: true });
|
|
1121
|
-
// WHEN
|
|
1122
|
-
await handler.resolveId('testInstance/testBU', 'asset', '1295064');
|
|
1123
|
-
// THEN
|
|
1124
|
-
assert.equal(process.exitCode, 0, 'resolveId should not have thrown an error');
|
|
1125
|
-
return;
|
|
1126
|
-
});
|
|
1127
|
-
|
|
1128
|
-
it('Should resolve the id of the item AND find the asset locally', async () => {
|
|
1129
|
-
// prep test by retrieving the file
|
|
1130
|
-
await handler.retrieve(
|
|
1131
|
-
'testInstance/testBU',
|
|
1132
|
-
['asset-block'],
|
|
1133
|
-
['testExisting_asset_htmlblock']
|
|
1134
|
-
);
|
|
1135
|
-
// WHEN
|
|
1136
|
-
const resolveIdJson = await handler.resolveId(
|
|
1137
|
-
'testInstance/testBU',
|
|
1138
|
-
'asset',
|
|
1139
|
-
'1295064'
|
|
1140
|
-
);
|
|
1141
|
-
// THEN
|
|
1142
|
-
assert.equal(process.exitCode, 0, 'resolveId should not have thrown an error');
|
|
1143
|
-
assert.deepEqual(
|
|
1144
|
-
resolveIdJson,
|
|
1145
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'resolveId-1295064-withPath'),
|
|
1146
|
-
'returned response was not equal expected'
|
|
1147
|
-
);
|
|
1148
|
-
return;
|
|
1149
|
-
});
|
|
1150
|
-
|
|
1151
|
-
it('Should NOT resolve the id of the item', async () => {
|
|
1152
|
-
// WHEN
|
|
1153
|
-
const resolveIdJson = await handler.resolveId('testInstance/testBU', 'asset', '-1234');
|
|
1154
|
-
// THEN
|
|
1155
|
-
assert.equal(process.exitCode, 404, 'resolveId should have thrown an error');
|
|
1156
|
-
// IMPORTANT: this will throw a false "TEST-ERROR" but our testing framework currently needs to not find the file to throw a 404
|
|
1157
|
-
assert.deepEqual(
|
|
1158
|
-
resolveIdJson,
|
|
1159
|
-
await testUtils.getExpectedJson('9999999', 'asset', 'resolveId-1234-notFound'),
|
|
1160
|
-
'returned response was not equal expected'
|
|
1161
|
-
);
|
|
1162
|
-
return;
|
|
1163
|
-
});
|
|
1164
|
-
});
|
|
1165
|
-
|
|
1166
|
-
describe('ReplaceContentBlockByX ================', () => {
|
|
1167
|
-
it('Should replace references with ContentBlockByName w/o deploy', async () => {
|
|
1168
|
-
handler.setOptions({ skipDeploy: true });
|
|
1169
|
-
|
|
1170
|
-
// WHEN
|
|
1171
|
-
const replace = await handler.replaceCbReference(
|
|
1172
|
-
'testInstance/testBU',
|
|
1173
|
-
{
|
|
1174
|
-
asset: null,
|
|
1175
|
-
},
|
|
1176
|
-
'name'
|
|
1177
|
-
);
|
|
1178
|
-
// THEN
|
|
1179
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
1180
|
-
// retrieve result
|
|
1181
|
-
assert.deepEqual(
|
|
1182
|
-
replace['testInstance/testBU'].asset,
|
|
1183
|
-
[
|
|
1184
|
-
'testExisting_asset_htmlblock',
|
|
1185
|
-
'testExisting_htmlblock1',
|
|
1186
|
-
'testExisting_htmlblock 3 spaces',
|
|
1187
|
-
'testExisting_asset_message',
|
|
1188
|
-
],
|
|
1189
|
-
'should have found the right assets that need updating'
|
|
1190
|
-
);
|
|
1191
|
-
// get results from cache
|
|
1192
|
-
const result = cache.getCache();
|
|
1193
|
-
assert.equal(
|
|
1194
|
-
result.asset ? Object.keys(result.asset).length : 0,
|
|
1195
|
-
12,
|
|
1196
|
-
'Unexpected number of assets in cache'
|
|
1197
|
-
);
|
|
1198
|
-
// check if conversions happened
|
|
1199
|
-
expect(
|
|
1200
|
-
await getActualFile(
|
|
1201
|
-
'testExisting_asset_message',
|
|
1202
|
-
'asset',
|
|
1203
|
-
'message',
|
|
1204
|
-
'html',
|
|
1205
|
-
'views.html.content'
|
|
1206
|
-
)
|
|
1207
|
-
).to.equal(
|
|
1208
|
-
await testUtils.getExpectedFile(
|
|
1209
|
-
'9999999',
|
|
1210
|
-
'asset',
|
|
1211
|
-
'testExisting_asset_message-html-rcb-name',
|
|
1212
|
-
'html'
|
|
1213
|
-
)
|
|
1214
|
-
);
|
|
1215
|
-
expect(
|
|
1216
|
-
await getActualFile(
|
|
1217
|
-
'testExisting_asset_message',
|
|
1218
|
-
'asset',
|
|
1219
|
-
'message',
|
|
1220
|
-
'amp',
|
|
1221
|
-
'views.preheader.content'
|
|
1222
|
-
)
|
|
1223
|
-
).to.equal(
|
|
1224
|
-
await testUtils.getExpectedFile(
|
|
1225
|
-
'9999999',
|
|
1226
|
-
'asset',
|
|
1227
|
-
'testExisting_asset_message-preheader-rcb-name',
|
|
1228
|
-
'amp'
|
|
1229
|
-
)
|
|
1230
|
-
);
|
|
1231
|
-
expect(
|
|
1232
|
-
await getActualFile(
|
|
1233
|
-
'testExisting_asset_message',
|
|
1234
|
-
'asset',
|
|
1235
|
-
'message',
|
|
1236
|
-
'amp',
|
|
1237
|
-
'views.text.content'
|
|
1238
|
-
)
|
|
1239
|
-
).to.equal(
|
|
1240
|
-
await testUtils.getExpectedFile(
|
|
1241
|
-
'9999999',
|
|
1242
|
-
'asset',
|
|
1243
|
-
'testExisting_asset_message-text-rcb-name',
|
|
1244
|
-
'amp'
|
|
1245
|
-
)
|
|
1246
|
-
);
|
|
1247
|
-
|
|
1248
|
-
assert.equal(
|
|
1249
|
-
testUtils.getAPIHistoryLength(),
|
|
1250
|
-
28,
|
|
1251
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1252
|
-
);
|
|
1253
|
-
return;
|
|
1254
|
-
});
|
|
1255
|
-
|
|
1256
|
-
it('Should replace references with ContentBlockById w/o deploy', async () => {
|
|
1257
|
-
handler.setOptions({ skipDeploy: true });
|
|
1258
|
-
|
|
1259
|
-
// WHEN
|
|
1260
|
-
const replace = await handler.replaceCbReference(
|
|
1261
|
-
'testInstance/testBU',
|
|
1262
|
-
{
|
|
1263
|
-
asset: null,
|
|
1264
|
-
},
|
|
1265
|
-
'id'
|
|
1266
|
-
);
|
|
1267
|
-
// THEN
|
|
1268
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
1269
|
-
// retrieve result
|
|
1270
|
-
assert.deepEqual(
|
|
1271
|
-
replace['testInstance/testBU'].asset,
|
|
1272
|
-
[
|
|
1273
|
-
'testExisting_htmlblock1',
|
|
1274
|
-
'testExisting_htmlblock 3 spaces',
|
|
1275
|
-
'testExisting_asset_message',
|
|
1276
|
-
],
|
|
1277
|
-
'should have found the right assets that need updating'
|
|
1278
|
-
);
|
|
1279
|
-
// get results from cache
|
|
1280
|
-
const result = cache.getCache();
|
|
1281
|
-
assert.equal(
|
|
1282
|
-
result.asset ? Object.keys(result.asset).length : 0,
|
|
1283
|
-
12,
|
|
1284
|
-
'Unexpected number of assets in cache'
|
|
1285
|
-
);
|
|
1286
|
-
// check if conversions happened
|
|
1287
|
-
expect(
|
|
1288
|
-
await getActualFile(
|
|
1289
|
-
'testExisting_asset_message',
|
|
1290
|
-
'asset',
|
|
1291
|
-
'message',
|
|
1292
|
-
'html',
|
|
1293
|
-
'views.html.content'
|
|
1294
|
-
)
|
|
1295
|
-
).to.equal(
|
|
1296
|
-
await testUtils.getExpectedFile(
|
|
1297
|
-
'9999999',
|
|
1298
|
-
'asset',
|
|
1299
|
-
'testExisting_asset_message-html-rcb-id',
|
|
1300
|
-
'html'
|
|
1301
|
-
)
|
|
1302
|
-
);
|
|
1303
|
-
expect(
|
|
1304
|
-
await getActualFile(
|
|
1305
|
-
'testExisting_asset_message',
|
|
1306
|
-
'asset',
|
|
1307
|
-
'message',
|
|
1308
|
-
'amp',
|
|
1309
|
-
'views.preheader.content'
|
|
1310
|
-
)
|
|
1311
|
-
).to.equal(
|
|
1312
|
-
await testUtils.getExpectedFile(
|
|
1313
|
-
'9999999',
|
|
1314
|
-
'asset',
|
|
1315
|
-
'testExisting_asset_message-preheader-rcb-id',
|
|
1316
|
-
'amp'
|
|
1317
|
-
)
|
|
1318
|
-
);
|
|
1319
|
-
expect(
|
|
1320
|
-
await getActualFile(
|
|
1321
|
-
'testExisting_asset_message',
|
|
1322
|
-
'asset',
|
|
1323
|
-
'message',
|
|
1324
|
-
'amp',
|
|
1325
|
-
'views.text.content'
|
|
1326
|
-
)
|
|
1327
|
-
).to.equal(
|
|
1328
|
-
await testUtils.getExpectedFile(
|
|
1329
|
-
'9999999',
|
|
1330
|
-
'asset',
|
|
1331
|
-
'testExisting_asset_message-text-rcb-id',
|
|
1332
|
-
'amp'
|
|
1333
|
-
)
|
|
1334
|
-
);
|
|
1335
|
-
|
|
1336
|
-
assert.equal(
|
|
1337
|
-
testUtils.getAPIHistoryLength(),
|
|
1338
|
-
28,
|
|
1339
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1340
|
-
);
|
|
1341
|
-
return;
|
|
1342
|
-
});
|
|
1343
|
-
|
|
1344
|
-
it('Should replace references with ContentBlockByKey w/o deploy', async () => {
|
|
1345
|
-
handler.setOptions({ skipDeploy: true });
|
|
1346
|
-
|
|
1347
|
-
// WHEN
|
|
1348
|
-
const replace = await handler.replaceCbReference(
|
|
1349
|
-
'testInstance/testBU',
|
|
1350
|
-
{
|
|
1351
|
-
asset: null,
|
|
1352
|
-
},
|
|
1353
|
-
'key'
|
|
1354
|
-
);
|
|
1355
|
-
// THEN
|
|
1356
|
-
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
1357
|
-
// retrieve result
|
|
1358
|
-
assert.deepEqual(
|
|
1359
|
-
replace['testInstance/testBU'].asset,
|
|
1360
|
-
[
|
|
1361
|
-
'testExisting_asset_htmlblock',
|
|
1362
|
-
'testExisting_htmlblock1',
|
|
1363
|
-
'testExisting_asset_message',
|
|
1364
|
-
],
|
|
1365
|
-
'should have found the right assets that need updating'
|
|
1366
|
-
);
|
|
1367
|
-
// get results from cache
|
|
1368
|
-
const result = cache.getCache();
|
|
1369
|
-
assert.equal(
|
|
1370
|
-
result.asset ? Object.keys(result.asset).length : 0,
|
|
1371
|
-
12,
|
|
1372
|
-
'Unexpected number of assets in cache'
|
|
1373
|
-
);
|
|
1374
|
-
// check if conversions happened
|
|
1375
|
-
expect(
|
|
1376
|
-
await getActualFile(
|
|
1377
|
-
'testExisting_asset_message',
|
|
1378
|
-
'asset',
|
|
1379
|
-
'message',
|
|
1380
|
-
'html',
|
|
1381
|
-
'views.html.content'
|
|
1382
|
-
)
|
|
1383
|
-
).to.equal(
|
|
1384
|
-
await testUtils.getExpectedFile(
|
|
1385
|
-
'9999999',
|
|
1386
|
-
'asset',
|
|
1387
|
-
'testExisting_asset_message-html-rcb-key',
|
|
1388
|
-
'html'
|
|
1389
|
-
)
|
|
1390
|
-
);
|
|
1391
|
-
expect(
|
|
1392
|
-
await getActualFile(
|
|
1393
|
-
'testExisting_asset_message',
|
|
1394
|
-
'asset',
|
|
1395
|
-
'message',
|
|
1396
|
-
'amp',
|
|
1397
|
-
'views.preheader.content'
|
|
1398
|
-
)
|
|
1399
|
-
).to.equal(
|
|
1400
|
-
await testUtils.getExpectedFile(
|
|
1401
|
-
'9999999',
|
|
1402
|
-
'asset',
|
|
1403
|
-
'testExisting_asset_message-preheader-rcb-key',
|
|
1404
|
-
'amp'
|
|
1405
|
-
)
|
|
1406
|
-
);
|
|
1407
|
-
expect(
|
|
1408
|
-
await getActualFile(
|
|
1409
|
-
'testExisting_asset_message',
|
|
1410
|
-
'asset',
|
|
1411
|
-
'message',
|
|
1412
|
-
'amp',
|
|
1413
|
-
'views.text.content'
|
|
1414
|
-
)
|
|
1415
|
-
).to.equal(
|
|
1416
|
-
await testUtils.getExpectedFile(
|
|
1417
|
-
'9999999',
|
|
1418
|
-
'asset',
|
|
1419
|
-
'testExisting_asset_message-text-rcb-key',
|
|
1420
|
-
'amp'
|
|
1421
|
-
)
|
|
1422
|
-
);
|
|
1423
|
-
|
|
1424
|
-
assert.equal(
|
|
1425
|
-
testUtils.getAPIHistoryLength(),
|
|
1426
|
-
28,
|
|
1427
|
-
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
1428
|
-
);
|
|
1429
|
-
return;
|
|
1430
|
-
});
|
|
1431
|
-
});
|
|
1432
|
-
});
|