mcdev 5.1.0 → 5.3.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/.eslintrc.json +4 -4
- package/.fork/custom-commands.json +12 -0
- package/.github/ISSUE_TEMPLATE/bug.yml +2 -0
- package/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md +19 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +2 -2
- package/.github/workflows/coverage-develop-branch.yml +0 -2
- package/.github/workflows/coverage-main-branch.yml +0 -2
- package/.github/workflows/coverage.yml +0 -2
- package/.husky/post-checkout +1 -0
- package/.husky/post-merge +1 -0
- package/.vscode/extensions.json +4 -0
- package/docs/dist/documentation.md +1034 -296
- package/lib/Deployer.js +25 -25
- package/lib/MetadataTypeDefinitions.js +2 -1
- package/lib/MetadataTypeInfo.js +2 -1
- package/lib/Retriever.js +1 -1
- package/lib/cli.js +165 -10
- package/lib/index.js +398 -95
- package/lib/metadataTypes/Asset.js +10 -11
- package/lib/metadataTypes/AttributeGroup.js +76 -2
- package/lib/metadataTypes/AttributeSet.js +367 -0
- package/lib/metadataTypes/Automation.js +483 -137
- package/lib/metadataTypes/DataExtension.js +465 -68
- package/lib/metadataTypes/DataExtensionField.js +31 -14
- package/lib/metadataTypes/Event.js +2 -3
- package/lib/metadataTypes/Folder.js +1 -1
- package/lib/metadataTypes/Journey.js +13 -7
- package/lib/metadataTypes/MetadataType.js +212 -54
- package/lib/metadataTypes/MobileKeyword.js +9 -9
- package/lib/metadataTypes/MobileMessage.js +5 -5
- package/lib/metadataTypes/Query.js +26 -10
- package/lib/metadataTypes/Script.js +3 -3
- package/lib/metadataTypes/TransactionalEmail.js +94 -17
- package/lib/metadataTypes/TransactionalMessage.js +3 -2
- package/lib/metadataTypes/TransactionalSMS.js +5 -5
- package/lib/metadataTypes/TriggeredSend.js +25 -50
- package/lib/metadataTypes/User.js +7 -4
- package/lib/metadataTypes/Verification.js +230 -0
- package/lib/metadataTypes/definitions/AttributeGroup.definition.js +119 -108
- package/lib/metadataTypes/definitions/{SetDefinition.definition.js → AttributeSet.definition.js} +123 -43
- package/lib/metadataTypes/definitions/Automation.definition.js +23 -15
- package/lib/metadataTypes/definitions/ImportFile.definition.js +36 -6
- package/lib/metadataTypes/definitions/TransactionalEmail.definition.js +19 -1
- package/lib/metadataTypes/definitions/TriggeredSend.definition.js +1 -0
- package/lib/metadataTypes/definitions/Verification.definition.js +88 -0
- package/lib/util/cache.js +9 -4
- package/lib/util/cli.js +40 -0
- package/lib/util/file.js +2 -2
- package/lib/util/init.js +84 -0
- package/lib/util/util.js +121 -13
- package/package.json +13 -13
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/mockRoot/deploy/testInstance/_ParentBU_/dataExtension/testExisting_dataExtensionShared.dataExtension-meta.json +59 -0
- package/test/mockRoot/deploy/testInstance/_ParentBU_/dataExtension/testNew_dataExtensionShared.dataExtension-meta.json +23 -0
- package/test/mockRoot/deploy/testInstance/testBU/automation/testExisting_automation.automation-meta.json +1 -2
- package/test/mockRoot/deploy/testInstance/testBU/automation/testNew_automation.automation-meta.json +9 -6
- package/test/mockRoot/deploy/testInstance/testBU/dataExtension/testExisting_dataExtension.dataExtension-meta.json +1 -0
- package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testExisting_dataExtract.dataExtract-meta.json +35 -0
- package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testNew_dataExtract.dataExtract-meta.json +35 -0
- package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testExisting_fileTransfer.fileTransfer-meta.json +17 -0
- package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testNew_fileTransfer.fileTransfer-meta.json +17 -0
- package/test/mockRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json +29 -0
- package/test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json +29 -0
- package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.json +11 -0
- package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.sql +6 -0
- package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.json +6 -0
- package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.ssjs +1 -0
- package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.json +6 -0
- package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.ssjs +1 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testExisting_temail.transactionalEmail-meta.json +3 -4
- package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testNew_temail.transactionalEmail-meta.json +1 -6
- package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testExisting_triggeredSend.triggeredSend-meta.json +29 -0
- package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testNew_triggeredSend.triggeredSend-meta.json +29 -0
- package/test/mockRoot/deploy/testInstance/testBU/verification/testExisting_39f6a488-20eb-4ba0-b0b9.verification-meta.json +11 -0
- package/test/mockRoot/deploy/testInstance/testBU/verification/testNew_39f6a488-20eb-4ba0-b0b9.verification-meta.json +11 -0
- package/test/resourceFactory.js +77 -12
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDCustomerKey=testExisting_userANDEmaillike@-response.xml +27 -0
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDEmaillike@-response.xml +156 -0
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml +87 -0
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmaillike@-response.xml +156 -0
- package/test/resources/1111111/accountUser/retrieve-CustomerKey=testExisting_userANDActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml +27 -0
- package/test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserID=700301950-response.xml +60 -0
- package/test/resources/1111111/data/v1/customobjectdata/key/testExisting_dataExtensionShared/rowset/get-response.json +13 -0
- package/test/resources/1111111/dataExtension/create-expected.json +23 -0
- package/test/resources/1111111/dataExtension/create-response.xml +59 -0
- package/test/resources/1111111/dataExtension/retrieve-expected.json +55 -0
- package/test/resources/1111111/dataExtension/retrieve-expected.md +18 -0
- package/test/resources/1111111/dataExtension/retrieve-response.xml +27 -1
- package/test/resources/1111111/dataExtension/update-expected.json +55 -0
- package/test/resources/1111111/dataExtension/update-response.xml +57 -0
- package/test/resources/1111111/dataExtensionField/retrieve-CustomerKey=[testExisting_dataExtensionShared].[TriggerUpdate_randomNumber_]-response.xml +45 -0
- package/test/resources/1111111/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtensionShared-response.xml +98 -0
- package/test/resources/1111111/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_dataExtensionSharedORDataExtension.CustomerKey=testExisting_dataExtensionShared-response.xml +98 -0
- package/test/resources/1111111/dataExtensionField/retrieve-response.xml +98 -0
- package/test/resources/1111111/dataExtensionTemplate/retrieve-response.xml +303 -0
- package/test/resources/1111111/dataFolder/retrieve-ContentType=synchronizeddataextensionORContentType=shared_salesforcedataextensionORContentType=shared_dataextensionORContentType=shared_dataORContentType=salesforcedataextensionORContentType=dataextensionORContentType=hidden-response.xml +387 -0
- package/test/resources/1111111/dataFolder/retrieve-response.xml +353 -9
- package/test/resources/1111111/user/retrieve-expected.md +4 -2
- package/test/resources/9999999/attributeGroup/retrieve-expected.json +25 -0
- package/test/resources/9999999/attributeSet/retrieve-expected.json +143 -0
- package/test/resources/9999999/automation/build-expected.json +5 -2
- package/test/resources/9999999/automation/create-expected.json +11 -8
- package/test/resources/9999999/automation/create-testNew_automation-expected.md +5 -4
- package/test/resources/9999999/automation/patch_fixKeys-pause-expected.json +44 -0
- package/test/resources/9999999/automation/patch_fixKeys-schedule-expected.json +44 -0
- package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +42 -0
- package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_pause-response.xml +42 -0
- package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_schedule-response.xml +42 -0
- package/test/resources/9999999/automation/perform-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +42 -0
- package/test/resources/9999999/automation/retrieve-expected.json +5 -2
- package/test/resources/9999999/automation/retrieve-testExisting_automation-expected.md +3 -2
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +52 -0
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-pause-response.xml +38 -0
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_pause-response.xml +52 -0
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_schedule-response.xml +52 -0
- package/test/resources/9999999/automation/schedule-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +52 -0
- package/test/resources/9999999/automation/template-expected.json +5 -2
- package/test/resources/9999999/automation/update-expected.json +1 -2
- package/test/resources/9999999/automation/update-testExisting_automation-expected.md +2 -2
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +7 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/get-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/patch-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/get-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/patch-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/get-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/patch-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/a8afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +1 -1
- package/test/resources/9999999/automation/v1/automations/post-response.json +27 -19
- package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/patch-response.json +38 -0
- package/test/resources/9999999/automation/v1/dataextracts/post-response.json +38 -0
- package/test/resources/9999999/automation/v1/dataextracttypes/get-response.json +50 -0
- package/test/resources/9999999/automation/v1/dataverifications/post-response.json +12 -0
- 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 +12 -0
- package/test/resources/9999999/automation/v1/dataverifications/testExisting_39f6a488-20eb-4ba0-b0b9/patch-response.json +12 -0
- package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/patch-response.json +18 -0
- package/test/resources/9999999/automation/v1/filetransfers/post-response.json +18 -0
- package/test/resources/9999999/automation/v1/ftplocations/get-response.json +18 -0
- package/test/resources/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/patch-response.json +31 -0
- package/test/resources/9999999/automation/v1/imports/get-response.json +1 -1
- package/test/resources/9999999/automation/v1/imports/post-response.json +30 -0
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dae/actions/start/post-response.txt +1 -0
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/get-response.json +17 -0
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/patch-response.json +18 -0
- package/test/resources/9999999/automation/v1/queries/get-response.json +18 -1
- package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/patch-response.json +10 -0
- package/test/resources/9999999/automation/v1/scripts/get-response.json +12 -2
- package/test/resources/9999999/automation/v1/scripts/post-response.json +10 -0
- package/test/resources/9999999/dataExtension/build-expected.json +16 -0
- package/test/resources/9999999/dataExtension/delete-response.xml +42 -0
- package/test/resources/9999999/dataExtension/retrieve-Name=testExisting_dataExtension-response.xml +52 -0
- package/test/resources/9999999/dataExtension/retrieve-expected.json +16 -0
- package/test/resources/9999999/dataExtension/retrieve-expected.md +3 -1
- package/test/resources/9999999/dataExtension/template-expected.json +16 -0
- package/test/resources/9999999/dataExtension/update-expected.json +17 -1
- package/test/resources/9999999/dataExtensionField/retrieve-CustomerKey=[testExisting_dataExtension].[LastName]-response.xml +44 -0
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtension-response.xml +133 -0
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_dataExtensionORDataExtension.CustomerKey=testExisting_dataExtension-response.xml +99 -0
- package/test/resources/9999999/dataExtensionField/retrieve-response.xml +36 -1
- package/test/resources/9999999/dataExtract/build-expected.json +35 -0
- package/test/resources/9999999/dataExtract/get-expected.json +39 -0
- package/test/resources/9999999/dataExtract/patch-expected.json +37 -0
- package/test/resources/9999999/dataExtract/post-expected.json +37 -0
- package/test/resources/9999999/dataExtract/template-expected.json +35 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=contextual_suppression_listORContentType=publicationORContentType=suppression_listORContentType=mysubsORContentType=list-response.xml +136 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=ssjsactivity-response.xml +48 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=synchronizeddataextensionORContentType=shared_salesforcedataextensionORContentType=shared_dataextensionORContentType=shared_dataORContentType=salesforcedataextensionORContentType=dataextensionORContentType=hidden-response.xml +117 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=triggered_send_journeybuilderORContentType=triggered_sendORContentType=hidden-response.xml +276 -0
- package/test/resources/9999999/dataFolder/retrieve-response.xml +23 -0
- package/test/resources/9999999/email/retrieve-response.xml +203 -0
- package/test/resources/9999999/fileTransfer/build-expected.json +15 -0
- package/test/resources/9999999/fileTransfer/get-expected.json +17 -0
- package/test/resources/9999999/fileTransfer/patch-expected.json +17 -0
- package/test/resources/9999999/fileTransfer/post-expected.json +17 -0
- package/test/resources/9999999/fileTransfer/template-expected.json +15 -0
- package/test/resources/9999999/hub/v1/contacts/schema/attributeGroups/get-response.json +628 -0
- package/test/resources/9999999/hub/v1/contacts/schema/setDefinitions/get-response.json +20194 -0
- package/test/resources/9999999/importFile/build-expected.json +27 -0
- package/test/resources/9999999/importFile/get-expected.json +29 -0
- package/test/resources/9999999/importFile/patch-expected.json +29 -0
- package/test/resources/9999999/importFile/post-expected.json +29 -0
- package/test/resources/9999999/importFile/template-expected.json +27 -0
- package/test/resources/9999999/interaction/v1/interactions/233d4413-922c-4568-85a5-e5cc77efc3be/delete-response.json +1 -0
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/get-response.json +1 -1
- package/test/resources/9999999/messaging/v1/email/definitions/post-response.json +1 -1
- package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/delete-response.json +6 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_pause-response.xml +32 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_schedule-response.xml +32 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_paused-response.xml +32 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_scheduled-response.xml +32 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_pause-response.xml +30 -0
- package/test/resources/9999999/program/retrieve-response.xml +21 -3
- package/test/resources/9999999/query/patch_fixKeys-expected.json +11 -0
- package/test/resources/9999999/query/patch_fixKeys-expected.sql +6 -0
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixKeysANDStatus=Active-response.xml +30 -0
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixedKeysANDStatus=Active-response.xml +30 -0
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testNew_queryANDStatus=Active-response.xml +30 -0
- package/test/resources/9999999/script/build-expected.json +6 -0
- package/test/resources/9999999/script/build-expected.ssjs +1 -0
- package/test/resources/9999999/script/get-expected.json +8 -0
- package/test/resources/9999999/script/get-expected.ssjs +1 -0
- package/test/resources/9999999/script/get_noScriptTag-expected.html +1 -0
- package/test/resources/9999999/script/get_noScriptTag-expected.json +8 -0
- package/test/resources/9999999/script/patch-expected.json +8 -0
- package/test/resources/9999999/script/patch-expected.ssjs +1 -0
- package/test/resources/9999999/script/post-expected.json +8 -0
- package/test/resources/9999999/script/post-expected.ssjs +1 -0
- package/test/resources/9999999/script/template-expected.json +6 -0
- package/test/resources/9999999/script/template-expected.ssjs +1 -0
- package/test/resources/9999999/transactionalEmail/build-expected.json +3 -7
- package/test/resources/9999999/transactionalEmail/get-expected.json +3 -7
- package/test/resources/9999999/transactionalEmail/patch-expected.json +3 -7
- package/test/resources/9999999/transactionalEmail/post-expected.json +3 -7
- package/test/resources/9999999/transactionalEmail/template-expected.json +3 -7
- package/test/resources/9999999/triggeredSend/build-expected.json +29 -0
- package/test/resources/9999999/triggeredSend/get-expected.json +29 -0
- package/test/resources/9999999/triggeredSend/patch-expected.json +29 -0
- package/test/resources/9999999/triggeredSend/post-expected.json +29 -0
- package/test/resources/9999999/triggeredSend/template-expected.json +29 -0
- package/test/resources/9999999/triggeredSendDefinition/create-response.xml +75 -0
- package/test/resources/9999999/triggeredSendDefinition/delete-response.xml +36 -0
- package/test/resources/9999999/triggeredSendDefinition/{retrieve-response.xml → retrieve-TriggeredSendStatusINNew,Active,Inactive,Moved,Canceled-response.xml} +4 -4
- package/test/resources/9999999/triggeredSendDefinition/update-response.xml +74 -0
- package/test/resources/9999999/verification/build-expected.json +11 -0
- package/test/resources/9999999/verification/get-expected.json +11 -0
- package/test/resources/9999999/verification/patch-expected.json +11 -0
- package/test/resources/9999999/verification/post-expected.json +11 -0
- package/test/resources/9999999/verification/template-expected.json +11 -0
- package/test/type.attributeGroup.test.js +55 -0
- package/test/type.attributeSet.test.js +55 -0
- package/test/type.automation.test.js +650 -17
- package/test/type.dataExtension.test.js +205 -46
- package/test/type.dataExtract.test.js +194 -0
- package/test/type.fileTransfer.test.js +192 -0
- package/test/type.importFile.test.js +193 -0
- package/test/type.journey.test.js +38 -11
- package/test/type.mobileKeyword.test.js +6 -5
- package/test/type.mobileMessage.test.js +6 -4
- package/test/type.query.test.js +470 -17
- package/test/type.script.test.js +372 -0
- package/test/type.transactionalEmail.test.js +12 -11
- package/test/type.transactionalPush.test.js +2 -4
- package/test/type.transactionalSMS.test.js +2 -4
- package/test/type.triggeredSend.test.js +154 -0
- package/test/type.user.test.js +22 -10
- package/test/type.verification.test.js +173 -0
- package/test/utils.js +11 -2
- package/types/mcdev.d.js +14 -0
- package/lib/metadataTypes/SetDefinition.js +0 -37
- /package/test/resources/1111111/accountUser/{retrieve-response.xml → retrieve-ActiveFlag=trueANDCustomerKey=testExisting_userANDEmaillike@-response.xml} +0 -0
- /package/test/resources/1111111/accountUserAccount/{retrieve-response.xml → retrieve-AccountUser.AccountUserIDIN700301950,700301951,7471228-response.xml} +0 -0
- /package/test/resources/1111111/businessUnit/{retrieve-response.xml → retrieve-ID=1111111-response.xml} +0 -0
- /package/test/resources/1111111/list/{retrieve-response.xml → retrieve-CustomerKey=All SubscribersORListName=All Subscribers-response.xml} +0 -0
- /package/test/resources/1111111/role/{retrieve-response.xml → retrieve-IsPrivate=false-response.xml} +0 -0
- /package/test/resources/9999999/emailSendDefinition/{retrieve-response.xml → retrieve-IsPlatformObject=falseANDDescriptionnotEqualsSFSendDefinition-response.xml} +0 -0
- /package/test/resources/9999999/queryDefinition/{retrieve-response.xml → retrieve-CustomerKey=testExisting_queryANDStatus=Active-response.xml} +0 -0
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
"status": "Active",
|
|
7
7
|
"createdDate": "2020-09-10T03:29:00",
|
|
8
8
|
"modifiedDate": "2020-09-10T03:29:00",
|
|
9
|
-
"content": {
|
|
10
|
-
"customerKey": "testExisting_asset_message"
|
|
11
|
-
},
|
|
12
9
|
"subscriptions": {
|
|
13
|
-
"
|
|
10
|
+
"r__dataExtension_CustomerKey": "testExisting_dataExtension",
|
|
14
11
|
"autoAddSubscriber": true,
|
|
15
12
|
"updateSubscriber": true,
|
|
16
13
|
"r__list_PathName": "my subscribers/All Subscribers"
|
|
@@ -18,7 +15,6 @@
|
|
|
18
15
|
"options": {
|
|
19
16
|
"trackLinks": true
|
|
20
17
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
}
|
|
18
|
+
"r__asset_customerKey": "testExisting_asset_message",
|
|
19
|
+
"r__journey_key": "testExisting_interaction"
|
|
24
20
|
}
|
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
"status": "Active",
|
|
7
7
|
"createdDate": "2022-12-06T06:08:00",
|
|
8
8
|
"modifiedDate": "2022-12-06T06:08:00",
|
|
9
|
-
"content": {
|
|
10
|
-
"customerKey": "testExisting_asset_message"
|
|
11
|
-
},
|
|
12
9
|
"subscriptions": {
|
|
13
|
-
"
|
|
10
|
+
"r__dataExtension_CustomerKey": "testExisting_dataExtension",
|
|
14
11
|
"autoAddSubscriber": true,
|
|
15
12
|
"updateSubscriber": true,
|
|
16
13
|
"r__list_PathName": "my subscribers/All Subscribers"
|
|
@@ -18,7 +15,6 @@
|
|
|
18
15
|
"options": {
|
|
19
16
|
"trackLinks": true
|
|
20
17
|
},
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
}
|
|
18
|
+
"r__asset_customerKey": "testExisting_asset_message",
|
|
19
|
+
"r__journey_key": "testNew_RANDOM_interaction"
|
|
24
20
|
}
|
|
@@ -4,11 +4,8 @@
|
|
|
4
4
|
"description": "{{{description}}}",
|
|
5
5
|
"classification": "Default Transactional",
|
|
6
6
|
"status": "Active",
|
|
7
|
-
"content": {
|
|
8
|
-
"customerKey": "{{{prefix}}}asset_message"
|
|
9
|
-
},
|
|
10
7
|
"subscriptions": {
|
|
11
|
-
"
|
|
8
|
+
"r__dataExtension_CustomerKey": "{{{prefix}}}dataExtension",
|
|
12
9
|
"autoAddSubscriber": true,
|
|
13
10
|
"updateSubscriber": true,
|
|
14
11
|
"r__list_PathName": "my subscribers/All Subscribers"
|
|
@@ -16,7 +13,6 @@
|
|
|
16
13
|
"options": {
|
|
17
14
|
"trackLinks": true
|
|
18
15
|
},
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
}
|
|
16
|
+
"r__asset_customerKey": "{{{prefix}}}asset_message",
|
|
17
|
+
"r__journey_key": "{{{prefix}}}interaction"
|
|
22
18
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AllowedSlots": 0,
|
|
3
|
+
"AutoAddSubscribers": false,
|
|
4
|
+
"AutoUpdateSubscribers": false,
|
|
5
|
+
"BatchInterval": 0,
|
|
6
|
+
"BccEmail": "",
|
|
7
|
+
"CreatedDate": "2018-06-25T05:58:00",
|
|
8
|
+
"CustomerKey": "testTemplated_triggeredSend",
|
|
9
|
+
"Description": "Unsubscribe_Email",
|
|
10
|
+
"DynamicEmailSubject": "You are successfully unsubscribed",
|
|
11
|
+
"EmailSubject": "You are successfully unsubscribed",
|
|
12
|
+
"FromAddress": "unsubscribe@emails.mcdev.accenture.com",
|
|
13
|
+
"FromName": "unsubscribe",
|
|
14
|
+
"IsMultipart": false,
|
|
15
|
+
"IsWrapped": true,
|
|
16
|
+
"Keyword": "",
|
|
17
|
+
"ModifiedDate": "2018-06-25T05:58:00",
|
|
18
|
+
"Name": "testTemplated_triggeredSend",
|
|
19
|
+
"NewSlotTrigger": 0,
|
|
20
|
+
"Priority": 4,
|
|
21
|
+
"SendClassification": {
|
|
22
|
+
"CustomerKey": "Default Transactional"
|
|
23
|
+
},
|
|
24
|
+
"SuppressTracking": false,
|
|
25
|
+
"TriggeredSendStatus": "New",
|
|
26
|
+
"TriggeredSendType": "Continuous",
|
|
27
|
+
"r__email_Name": "Sporting Goods for September",
|
|
28
|
+
"r__folder_Path": "Triggered Sends"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AllowedSlots": 0,
|
|
3
|
+
"AutoAddSubscribers": false,
|
|
4
|
+
"AutoUpdateSubscribers": false,
|
|
5
|
+
"BatchInterval": 0,
|
|
6
|
+
"BccEmail": "",
|
|
7
|
+
"CreatedDate": "2018-06-25T05:58:00",
|
|
8
|
+
"CustomerKey": "testExisting_triggeredSend",
|
|
9
|
+
"Description": "Unsubscribe_Email",
|
|
10
|
+
"DynamicEmailSubject": "You are successfully unsubscribed",
|
|
11
|
+
"EmailSubject": "You are successfully unsubscribed",
|
|
12
|
+
"FromAddress": "unsubscribe@emails.mcdev.accenture.com",
|
|
13
|
+
"FromName": "unsubscribe",
|
|
14
|
+
"IsMultipart": false,
|
|
15
|
+
"IsWrapped": true,
|
|
16
|
+
"Keyword": "",
|
|
17
|
+
"ModifiedDate": "2018-06-25T05:58:00",
|
|
18
|
+
"Name": "testExisting_triggeredSend",
|
|
19
|
+
"NewSlotTrigger": 0,
|
|
20
|
+
"Priority": 4,
|
|
21
|
+
"SendClassification": {
|
|
22
|
+
"CustomerKey": "Default Transactional"
|
|
23
|
+
},
|
|
24
|
+
"SuppressTracking": false,
|
|
25
|
+
"TriggeredSendStatus": "New",
|
|
26
|
+
"TriggeredSendType": "Continuous",
|
|
27
|
+
"r__email_Name": "Sporting Goods for September",
|
|
28
|
+
"r__folder_Path": "Triggered Sends"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AllowedSlots": 0,
|
|
3
|
+
"AutoAddSubscribers": false,
|
|
4
|
+
"AutoUpdateSubscribers": false,
|
|
5
|
+
"BatchInterval": 0,
|
|
6
|
+
"BccEmail": "",
|
|
7
|
+
"CreatedDate": "2018-06-25T05:58:00",
|
|
8
|
+
"CustomerKey": "testExisting_triggeredSend",
|
|
9
|
+
"Description": "updated on deploy",
|
|
10
|
+
"DynamicEmailSubject": "You are successfully unsubscribed",
|
|
11
|
+
"EmailSubject": "You are successfully unsubscribed",
|
|
12
|
+
"FromAddress": "unsubscribe@emails.mcdev.accenture.com",
|
|
13
|
+
"FromName": "unsubscribe",
|
|
14
|
+
"IsMultipart": false,
|
|
15
|
+
"IsWrapped": true,
|
|
16
|
+
"Keyword": "",
|
|
17
|
+
"ModifiedDate": "2018-06-25T05:58:00",
|
|
18
|
+
"Name": "testExisting_triggeredSend",
|
|
19
|
+
"NewSlotTrigger": 0,
|
|
20
|
+
"Priority": 4,
|
|
21
|
+
"SendClassification": {
|
|
22
|
+
"CustomerKey": "Default Transactional"
|
|
23
|
+
},
|
|
24
|
+
"SuppressTracking": false,
|
|
25
|
+
"TriggeredSendStatus": "New",
|
|
26
|
+
"TriggeredSendType": "Continuous",
|
|
27
|
+
"r__email_Name": "Sporting Goods for September",
|
|
28
|
+
"r__folder_Path": "Triggered Sends"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AllowedSlots": 0,
|
|
3
|
+
"AutoAddSubscribers": false,
|
|
4
|
+
"AutoUpdateSubscribers": false,
|
|
5
|
+
"BatchInterval": 0,
|
|
6
|
+
"BccEmail": "",
|
|
7
|
+
"CreatedDate": "2018-06-25T05:58:00",
|
|
8
|
+
"CustomerKey": "testNew_triggeredSend",
|
|
9
|
+
"Description": "created on deploy",
|
|
10
|
+
"DynamicEmailSubject": "You are successfully unsubscribed",
|
|
11
|
+
"EmailSubject": "You are successfully unsubscribed",
|
|
12
|
+
"FromAddress": "unsubscribe@emails.mcdev.accenture.com",
|
|
13
|
+
"FromName": "unsubscribe",
|
|
14
|
+
"IsMultipart": false,
|
|
15
|
+
"IsWrapped": true,
|
|
16
|
+
"Keyword": "",
|
|
17
|
+
"ModifiedDate": "2018-06-25T05:58:00",
|
|
18
|
+
"Name": "testNew_triggeredSend",
|
|
19
|
+
"NewSlotTrigger": 0,
|
|
20
|
+
"Priority": 4,
|
|
21
|
+
"SendClassification": {
|
|
22
|
+
"CustomerKey": "Default Transactional"
|
|
23
|
+
},
|
|
24
|
+
"SuppressTracking": false,
|
|
25
|
+
"TriggeredSendStatus": "New",
|
|
26
|
+
"TriggeredSendType": "Continuous",
|
|
27
|
+
"r__email_Name": "Sporting Goods for September",
|
|
28
|
+
"r__folder_Path": "Triggered Sends"
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AllowedSlots": 0,
|
|
3
|
+
"AutoAddSubscribers": false,
|
|
4
|
+
"AutoUpdateSubscribers": false,
|
|
5
|
+
"BatchInterval": 0,
|
|
6
|
+
"BccEmail": "",
|
|
7
|
+
"CreatedDate": "2018-06-25T05:58:00",
|
|
8
|
+
"CustomerKey": "{{{prefix}}}triggeredSend",
|
|
9
|
+
"Description": "Unsubscribe_Email",
|
|
10
|
+
"DynamicEmailSubject": "You are successfully unsubscribed",
|
|
11
|
+
"EmailSubject": "You are successfully unsubscribed",
|
|
12
|
+
"FromAddress": "unsubscribe@emails.mcdev.accenture.com",
|
|
13
|
+
"FromName": "unsubscribe",
|
|
14
|
+
"IsMultipart": false,
|
|
15
|
+
"IsWrapped": true,
|
|
16
|
+
"Keyword": "",
|
|
17
|
+
"ModifiedDate": "2018-06-25T05:58:00",
|
|
18
|
+
"Name": "{{{prefix}}}triggeredSend",
|
|
19
|
+
"NewSlotTrigger": 0,
|
|
20
|
+
"Priority": 4,
|
|
21
|
+
"SendClassification": {
|
|
22
|
+
"CustomerKey": "Default Transactional"
|
|
23
|
+
},
|
|
24
|
+
"SuppressTracking": false,
|
|
25
|
+
"TriggeredSendStatus": "New",
|
|
26
|
+
"TriggeredSendType": "Continuous",
|
|
27
|
+
"r__email_Name": "Sporting Goods for September",
|
|
28
|
+
"r__folder_Path": "Triggered Sends"
|
|
29
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
5
|
+
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
|
6
|
+
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
|
|
7
|
+
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
|
8
|
+
<soap:Header>
|
|
9
|
+
<wsa:Action>CreateResponse</wsa:Action>
|
|
10
|
+
<wsa:MessageID>urn:uuid:9d4bb477-f79f-4f3f-8304-5c0dcd0e5b66</wsa:MessageID>
|
|
11
|
+
<wsa:RelatesTo>urn:uuid:dd06e2ef-2adc-4227-b872-1fc34e48a984</wsa:RelatesTo>
|
|
12
|
+
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
|
|
13
|
+
<wsse:Security>
|
|
14
|
+
<wsu:Timestamp wsu:Id="Timestamp-f09d192c-466f-410c-9cd4-dabfba315ec4">
|
|
15
|
+
<wsu:Created>2023-08-08T13:42:51Z</wsu:Created>
|
|
16
|
+
<wsu:Expires>2023-08-08T13:47:51Z</wsu:Expires>
|
|
17
|
+
</wsu:Timestamp>
|
|
18
|
+
</wsse:Security>
|
|
19
|
+
</soap:Header>
|
|
20
|
+
<soap:Body>
|
|
21
|
+
<CreateResponse xmlns="http://exacttarget.com/wsdl/partnerAPI">
|
|
22
|
+
<Results xsi:type="TriggeredSendDefinition">
|
|
23
|
+
<StatusCode>OK</StatusCode>
|
|
24
|
+
<StatusMessage>TriggeredSendDefinition created</StatusMessage>
|
|
25
|
+
<OrdinalID>0</OrdinalID>
|
|
26
|
+
<NewID>0</NewID>
|
|
27
|
+
<NewObjectID>6cfadead-f635-ee11-b85a-48df37d1de8a</NewObjectID>
|
|
28
|
+
<Object xsi:type="TriggeredSendDefinition">
|
|
29
|
+
<PartnerKey xsi:nil="true" />
|
|
30
|
+
<PartnerProperties>
|
|
31
|
+
<Name>TestEmailAddr</Name>
|
|
32
|
+
<Value />
|
|
33
|
+
</PartnerProperties>
|
|
34
|
+
<CreatedDate>2018-06-25T05:58:00</CreatedDate>
|
|
35
|
+
<ModifiedDate>2018-06-25T05:58:00</ModifiedDate>
|
|
36
|
+
<ObjectID>6cfadead-f635-ee11-b85a-48df37d1de8a</ObjectID>
|
|
37
|
+
<CustomerKey>testNew_triggeredSend</CustomerKey>
|
|
38
|
+
<IsPlatformObject>false</IsPlatformObject>
|
|
39
|
+
<Name>testNew_triggeredSend</Name>
|
|
40
|
+
<Description>created on deploy</Description>
|
|
41
|
+
<Keyword />
|
|
42
|
+
<CategoryID>89348</CategoryID>
|
|
43
|
+
<SendClassification>
|
|
44
|
+
<PartnerKey xsi:nil="true" />
|
|
45
|
+
<ObjectID xsi:nil="true" />
|
|
46
|
+
<CustomerKey>Default Transactional</CustomerKey>
|
|
47
|
+
</SendClassification>
|
|
48
|
+
<FromName>unsubscribe</FromName>
|
|
49
|
+
<FromAddress>unsubscribe@emails.mcdev.accenture.com</FromAddress>
|
|
50
|
+
<SuppressTracking>false</SuppressTracking>
|
|
51
|
+
<TriggeredSendType>Continuous</TriggeredSendType>
|
|
52
|
+
<TriggeredSendStatus>New</TriggeredSendStatus>
|
|
53
|
+
<Email>
|
|
54
|
+
<PartnerKey xsi:nil="true" />
|
|
55
|
+
<ID>483943</ID>
|
|
56
|
+
<ObjectID xsi:nil="true" />
|
|
57
|
+
</Email>
|
|
58
|
+
<AutoAddSubscribers>false</AutoAddSubscribers>
|
|
59
|
+
<AutoUpdateSubscribers>false</AutoUpdateSubscribers>
|
|
60
|
+
<BatchInterval>0</BatchInterval>
|
|
61
|
+
<BccEmail />
|
|
62
|
+
<EmailSubject>You are successfully unsubscribed</EmailSubject>
|
|
63
|
+
<DynamicEmailSubject>You are successfully unsubscribed</DynamicEmailSubject>
|
|
64
|
+
<IsMultipart>false</IsMultipart>
|
|
65
|
+
<IsWrapped>true</IsWrapped>
|
|
66
|
+
<AllowedSlots>0</AllowedSlots>
|
|
67
|
+
<NewSlotTrigger>0</NewSlotTrigger>
|
|
68
|
+
<Priority>4</Priority>
|
|
69
|
+
</Object>
|
|
70
|
+
</Results>
|
|
71
|
+
<RequestID>25fe1ec4-1204-42fd-9f0e-32166b82a5a5</RequestID>
|
|
72
|
+
<OverallStatus>OK</OverallStatus>
|
|
73
|
+
</CreateResponse>
|
|
74
|
+
</soap:Body>
|
|
75
|
+
</soap:Envelope>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
5
|
+
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
|
6
|
+
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
|
|
7
|
+
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
|
8
|
+
<soap:Header>
|
|
9
|
+
<wsa:Action>DeleteResponse</wsa:Action>
|
|
10
|
+
<wsa:MessageID>urn:uuid:9b7ec2d4-b9cf-4443-aa99-7d790b0d8ed9</wsa:MessageID>
|
|
11
|
+
<wsa:RelatesTo>urn:uuid:b9274179-8dba-4434-9f06-7e3f5dcc5d36</wsa:RelatesTo>
|
|
12
|
+
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
|
|
13
|
+
<wsse:Security>
|
|
14
|
+
<wsu:Timestamp wsu:Id="Timestamp-0f3617a8-995a-43fc-a31c-984f314be995">
|
|
15
|
+
<wsu:Created>2023-08-08T13:33:37Z</wsu:Created>
|
|
16
|
+
<wsu:Expires>2023-08-08T13:38:37Z</wsu:Expires>
|
|
17
|
+
</wsu:Timestamp>
|
|
18
|
+
</wsse:Security>
|
|
19
|
+
</soap:Header>
|
|
20
|
+
<soap:Body>
|
|
21
|
+
<DeleteResponse xmlns="http://exacttarget.com/wsdl/partnerAPI">
|
|
22
|
+
<Results>
|
|
23
|
+
<StatusCode>OK</StatusCode>
|
|
24
|
+
<StatusMessage>TriggeredSendDefinition deleted</StatusMessage>
|
|
25
|
+
<OrdinalID>0</OrdinalID>
|
|
26
|
+
<Object xsi:type="TriggeredSendDefinition">
|
|
27
|
+
<PartnerKey xsi:nil="true" />
|
|
28
|
+
<ObjectID xsi:nil="true" />
|
|
29
|
+
<CustomerKey>TestKey-419705</CustomerKey>
|
|
30
|
+
</Object>
|
|
31
|
+
</Results>
|
|
32
|
+
<RequestID>e63109fe-085f-4d9d-950b-05d827c74b0e</RequestID>
|
|
33
|
+
<OverallStatus>OK</OverallStatus>
|
|
34
|
+
</DeleteResponse>
|
|
35
|
+
</soap:Body>
|
|
36
|
+
</soap:Envelope>
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
<CreatedDate>2018-06-25T05:58:00</CreatedDate>
|
|
31
31
|
<ModifiedDate>2018-06-25T05:58:00</ModifiedDate>
|
|
32
32
|
<ObjectID>b3150cf0-6e78-e811-80d4-1402ec721c9d</ObjectID>
|
|
33
|
-
<CustomerKey>
|
|
33
|
+
<CustomerKey>testExisting_triggeredSend</CustomerKey>
|
|
34
34
|
<IsPlatformObject>false</IsPlatformObject>
|
|
35
|
-
<Name>
|
|
35
|
+
<Name>testExisting_triggeredSend</Name>
|
|
36
36
|
<Description>Unsubscribe_Email</Description>
|
|
37
37
|
<Keyword />
|
|
38
|
-
<CategoryID>
|
|
38
|
+
<CategoryID>89348</CategoryID>
|
|
39
39
|
<SendClassification>
|
|
40
40
|
<PartnerKey xsi:nil="true" />
|
|
41
41
|
<ObjectID xsi:nil="true" />
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<TriggeredSendStatus>New</TriggeredSendStatus>
|
|
49
49
|
<Email>
|
|
50
50
|
<PartnerKey xsi:nil="true" />
|
|
51
|
-
<ID>
|
|
51
|
+
<ID>483943</ID>
|
|
52
52
|
<ObjectID xsi:nil="true" />
|
|
53
53
|
</Email>
|
|
54
54
|
<AutoAddSubscribers>false</AutoAddSubscribers>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
|
3
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
5
|
+
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
|
6
|
+
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
|
|
7
|
+
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
|
8
|
+
<soap:Header>
|
|
9
|
+
<wsa:Action>UpdateResponse</wsa:Action>
|
|
10
|
+
<wsa:MessageID>urn:uuid:9d4bb477-f79f-4f3f-8304-5c0dcd0e5b66</wsa:MessageID>
|
|
11
|
+
<wsa:RelatesTo>urn:uuid:dd06e2ef-2adc-4227-b872-1fc34e48a984</wsa:RelatesTo>
|
|
12
|
+
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
|
|
13
|
+
<wsse:Security>
|
|
14
|
+
<wsu:Timestamp wsu:Id="Timestamp-f09d192c-466f-410c-9cd4-dabfba315ec4">
|
|
15
|
+
<wsu:Created>2023-08-08T13:42:51Z</wsu:Created>
|
|
16
|
+
<wsu:Expires>2023-08-08T13:47:51Z</wsu:Expires>
|
|
17
|
+
</wsu:Timestamp>
|
|
18
|
+
</wsse:Security>
|
|
19
|
+
</soap:Header>
|
|
20
|
+
<soap:Body>
|
|
21
|
+
<UpdateResponse xmlns="http://exacttarget.com/wsdl/partnerAPI">
|
|
22
|
+
<Results xsi:type="TriggeredSendDefinition">
|
|
23
|
+
|
|
24
|
+
<StatusCode>OK</StatusCode>
|
|
25
|
+
<StatusMessage>TriggeredSendDefinition updated</StatusMessage>
|
|
26
|
+
<OrdinalID>0</OrdinalID>
|
|
27
|
+
<Object xsi:type="TriggeredSendDefinition">
|
|
28
|
+
<PartnerKey xsi:nil="true" />
|
|
29
|
+
<PartnerProperties>
|
|
30
|
+
<Name>TestEmailAddr</Name>
|
|
31
|
+
<Value />
|
|
32
|
+
</PartnerProperties>
|
|
33
|
+
<CreatedDate>2018-06-25T05:58:00</CreatedDate>
|
|
34
|
+
<ModifiedDate>2018-06-25T05:58:00</ModifiedDate>
|
|
35
|
+
<ObjectID>b3150cf0-6e78-e811-80d4-1402ec721c9d</ObjectID>
|
|
36
|
+
<CustomerKey>testExisting_triggeredSend</CustomerKey>
|
|
37
|
+
<IsPlatformObject>false</IsPlatformObject>
|
|
38
|
+
<Name>testExisting_triggeredSend</Name>
|
|
39
|
+
<Description>updated on deploy</Description>
|
|
40
|
+
<Keyword />
|
|
41
|
+
<CategoryID>89348</CategoryID>
|
|
42
|
+
<SendClassification>
|
|
43
|
+
<PartnerKey xsi:nil="true" />
|
|
44
|
+
<ObjectID xsi:nil="true" />
|
|
45
|
+
<CustomerKey>Default Transactional</CustomerKey>
|
|
46
|
+
</SendClassification>
|
|
47
|
+
<FromName>unsubscribe</FromName>
|
|
48
|
+
<FromAddress>unsubscribe@emails.mcdev.accenture.com</FromAddress>
|
|
49
|
+
<SuppressTracking>false</SuppressTracking>
|
|
50
|
+
<TriggeredSendType>Continuous</TriggeredSendType>
|
|
51
|
+
<TriggeredSendStatus>New</TriggeredSendStatus>
|
|
52
|
+
<Email>
|
|
53
|
+
<PartnerKey xsi:nil="true" />
|
|
54
|
+
<ID>483943</ID>
|
|
55
|
+
<ObjectID xsi:nil="true" />
|
|
56
|
+
</Email>
|
|
57
|
+
<AutoAddSubscribers>false</AutoAddSubscribers>
|
|
58
|
+
<AutoUpdateSubscribers>false</AutoUpdateSubscribers>
|
|
59
|
+
<BatchInterval>0</BatchInterval>
|
|
60
|
+
<BccEmail />
|
|
61
|
+
<EmailSubject>You are successfully unsubscribed</EmailSubject>
|
|
62
|
+
<DynamicEmailSubject>You are successfully unsubscribed</DynamicEmailSubject>
|
|
63
|
+
<IsMultipart>false</IsMultipart>
|
|
64
|
+
<IsWrapped>true</IsWrapped>
|
|
65
|
+
<AllowedSlots>0</AllowedSlots>
|
|
66
|
+
<NewSlotTrigger>0</NewSlotTrigger>
|
|
67
|
+
<Priority>4</Priority>
|
|
68
|
+
</Object>
|
|
69
|
+
</Results>
|
|
70
|
+
<RequestID>25fe1ec4-1204-42fd-9f0e-32166b82a5a5</RequestID>
|
|
71
|
+
<OverallStatus>OK</OverallStatus>
|
|
72
|
+
</UpdateResponse>
|
|
73
|
+
</soap:Body>
|
|
74
|
+
</soap:Envelope>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataVerificationDefinitionId": "testTemplated_39f6a488-20eb-4ba0-b0b9",
|
|
3
|
+
"notificationEmailAddress": "",
|
|
4
|
+
"notificationEmailMessage": "",
|
|
5
|
+
"r__dataExtension_CustomerKey": "testTemplated_dataExtension",
|
|
6
|
+
"shouldEmailOnFailure": false,
|
|
7
|
+
"shouldStopOnFailure": true,
|
|
8
|
+
"value1": 1,
|
|
9
|
+
"value2": 0,
|
|
10
|
+
"verificationType": "IsEqualTo"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataVerificationDefinitionId": "testExisting_39f6a488-20eb-4ba0-b0b9",
|
|
3
|
+
"notificationEmailAddress": "",
|
|
4
|
+
"notificationEmailMessage": "",
|
|
5
|
+
"r__dataExtension_CustomerKey": "testExisting_dataExtension",
|
|
6
|
+
"shouldEmailOnFailure": false,
|
|
7
|
+
"shouldStopOnFailure": true,
|
|
8
|
+
"value1": 1,
|
|
9
|
+
"value2": 0,
|
|
10
|
+
"verificationType": "IsEqualTo"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataVerificationDefinitionId": "testExisting_39f6a488-20eb-4ba0-b0b9",
|
|
3
|
+
"notificationEmailAddress": "test@accenture.com",
|
|
4
|
+
"notificationEmailMessage": "",
|
|
5
|
+
"r__dataExtension_CustomerKey": "testExisting_dataExtension",
|
|
6
|
+
"shouldEmailOnFailure": true,
|
|
7
|
+
"shouldStopOnFailure": true,
|
|
8
|
+
"value1": 1,
|
|
9
|
+
"value2": 0,
|
|
10
|
+
"verificationType": "IsEqualTo"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataVerificationDefinitionId": "testNew_RANDOM_NEW_GUID",
|
|
3
|
+
"r__dataExtension_CustomerKey": "testExisting_dataExtension",
|
|
4
|
+
"verificationType": "IsEqualTo",
|
|
5
|
+
"value1": 2,
|
|
6
|
+
"value2": 0,
|
|
7
|
+
"shouldStopOnFailure": false,
|
|
8
|
+
"shouldEmailOnFailure": false,
|
|
9
|
+
"notificationEmailAddress": "",
|
|
10
|
+
"notificationEmailMessage": ""
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataVerificationDefinitionId": "{{{prefix}}}39f6a488-20eb-4ba0-b0b9",
|
|
3
|
+
"notificationEmailAddress": "",
|
|
4
|
+
"notificationEmailMessage": "",
|
|
5
|
+
"r__dataExtension_CustomerKey": "{{{prefix}}}dataExtension",
|
|
6
|
+
"shouldEmailOnFailure": false,
|
|
7
|
+
"shouldStopOnFailure": true,
|
|
8
|
+
"value1": 1,
|
|
9
|
+
"value2": 0,
|
|
10
|
+
"verificationType": "IsEqualTo"
|
|
11
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const chai = require('chai');
|
|
2
|
+
const chaiFiles = require('chai-files');
|
|
3
|
+
|
|
4
|
+
chai.use(chaiFiles);
|
|
5
|
+
|
|
6
|
+
const assert = chai.assert;
|
|
7
|
+
const cache = require('../lib/util/cache');
|
|
8
|
+
const testUtils = require('./utils');
|
|
9
|
+
const handler = require('../lib/index');
|
|
10
|
+
|
|
11
|
+
describe('type: attributeGroup', () => {
|
|
12
|
+
beforeEach(() => {
|
|
13
|
+
testUtils.mockSetup();
|
|
14
|
+
});
|
|
15
|
+
afterEach(() => {
|
|
16
|
+
testUtils.mockReset();
|
|
17
|
+
});
|
|
18
|
+
describe('Retrieve ================', () => {
|
|
19
|
+
it('Should retrieve a attributeGroup', async () => {
|
|
20
|
+
// WHEN
|
|
21
|
+
const retrieve = await handler.retrieve('testInstance/testBU', ['attributeGroup']);
|
|
22
|
+
|
|
23
|
+
// THEN
|
|
24
|
+
assert.equal(process.exitCode, false, 'retrieve should not have thrown an error');
|
|
25
|
+
assert.equal(
|
|
26
|
+
retrieve['testInstance/testBU'].attributeGroup
|
|
27
|
+
? Object.keys(retrieve['testInstance/testBU'].attributeGroup).length
|
|
28
|
+
: 0,
|
|
29
|
+
8,
|
|
30
|
+
'only 8 attributeGroups expected in retrieve response'
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
// get results from cache
|
|
34
|
+
const result = cache.getCache();
|
|
35
|
+
assert.equal(
|
|
36
|
+
result.attributeGroup ? Object.keys(result.attributeGroup).length : 0,
|
|
37
|
+
8,
|
|
38
|
+
'only 8 attributeGroups expected in cache'
|
|
39
|
+
);
|
|
40
|
+
assert.deepEqual(
|
|
41
|
+
await testUtils.getActualJson('ETMobileConnect', 'attributeGroup'),
|
|
42
|
+
await testUtils.getExpectedJson('9999999', 'attributeGroup', 'retrieve'),
|
|
43
|
+
|
|
44
|
+
'returned metadata was not equal expected'
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
assert.equal(
|
|
48
|
+
testUtils.getAPIHistoryLength(),
|
|
49
|
+
2,
|
|
50
|
+
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
51
|
+
);
|
|
52
|
+
return;
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
});
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
const chai = require('chai');
|
|
2
|
+
const chaiFiles = require('chai-files');
|
|
3
|
+
|
|
4
|
+
chai.use(chaiFiles);
|
|
5
|
+
|
|
6
|
+
const assert = chai.assert;
|
|
7
|
+
const cache = require('../lib/util/cache');
|
|
8
|
+
const testUtils = require('./utils');
|
|
9
|
+
const handler = require('../lib/index');
|
|
10
|
+
|
|
11
|
+
describe('type: attributeSet', () => {
|
|
12
|
+
beforeEach(() => {
|
|
13
|
+
testUtils.mockSetup();
|
|
14
|
+
});
|
|
15
|
+
afterEach(() => {
|
|
16
|
+
testUtils.mockReset();
|
|
17
|
+
});
|
|
18
|
+
describe('Retrieve ================', () => {
|
|
19
|
+
it('Should retrieve a attributeSet', async () => {
|
|
20
|
+
// WHEN
|
|
21
|
+
const retrieve = await handler.retrieve('testInstance/testBU', ['attributeSet']);
|
|
22
|
+
|
|
23
|
+
// THEN
|
|
24
|
+
assert.equal(process.exitCode, false, 'retrieve should not have thrown an error');
|
|
25
|
+
assert.equal(
|
|
26
|
+
retrieve['testInstance/testBU'].attributeSet
|
|
27
|
+
? Object.keys(retrieve['testInstance/testBU'].attributeSet).length
|
|
28
|
+
: 0,
|
|
29
|
+
28,
|
|
30
|
+
'only 28 attributeSets expected in retrieve response'
|
|
31
|
+
);
|
|
32
|
+
// get results from cache
|
|
33
|
+
const result = cache.getCache();
|
|
34
|
+
assert.equal(
|
|
35
|
+
result.attributeSet ? Object.keys(result.attributeSet).length : 0,
|
|
36
|
+
28,
|
|
37
|
+
'only 28 attributeSets expected in cache'
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
assert.deepEqual(
|
|
41
|
+
await testUtils.getActualJson('testExisting_dataExtensionShared', 'attributeSet'),
|
|
42
|
+
await testUtils.getExpectedJson('9999999', 'attributeSet', 'retrieve'),
|
|
43
|
+
|
|
44
|
+
'returned metadata was not equal expected'
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
assert.equal(
|
|
48
|
+
testUtils.getAPIHistoryLength(),
|
|
49
|
+
7,
|
|
50
|
+
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
51
|
+
);
|
|
52
|
+
return;
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
});
|