mcdev 5.0.1 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/.coverage-comment-template.svelte +177 -161
  2. package/.eslintrc.json +1 -0
  3. package/.github/ISSUE_TEMPLATE/bug.yml +2 -0
  4. package/.github/dependabot.yml +8 -0
  5. package/.github/workflows/coverage-base-update.yml +6 -2
  6. package/.github/workflows/coverage-develop-branch.yml +7 -6
  7. package/.github/workflows/coverage-main-branch.yml +7 -6
  8. package/.github/workflows/coverage.yml +7 -2
  9. package/.husky/commit-msg +1 -1
  10. package/.husky/post-checkout +35 -3
  11. package/.husky/post-merge +21 -0
  12. package/.husky/pre-commit +1 -0
  13. package/docs/dist/documentation.md +222 -62
  14. package/lib/Deployer.js +3 -4
  15. package/lib/cli.js +36 -8
  16. package/lib/index.js +175 -3
  17. package/lib/metadataTypes/Asset.js +4 -2
  18. package/lib/metadataTypes/Automation.js +413 -195
  19. package/lib/metadataTypes/DataExtension.js +6 -8
  20. package/lib/metadataTypes/DataExtensionField.js +5 -5
  21. package/lib/metadataTypes/Journey.js +11 -10
  22. package/lib/metadataTypes/MetadataType.js +76 -22
  23. package/lib/metadataTypes/MobileKeyword.js +165 -20
  24. package/lib/metadataTypes/MobileMessage.js +20 -28
  25. package/lib/metadataTypes/Query.js +26 -0
  26. package/lib/metadataTypes/Role.js +2 -3
  27. package/lib/metadataTypes/TransactionalSMS.js +5 -5
  28. package/lib/metadataTypes/User.js +3 -17
  29. package/lib/metadataTypes/definitions/Asset.definition.js +1 -0
  30. package/lib/metadataTypes/definitions/Automation.definition.js +52 -6
  31. package/lib/metadataTypes/definitions/DataExtension.definition.js +1 -0
  32. package/lib/metadataTypes/definitions/DataExtract.definition.js +1 -0
  33. package/lib/metadataTypes/definitions/EmailSend.definition.js +1 -0
  34. package/lib/metadataTypes/definitions/Event.definition.js +1 -0
  35. package/lib/metadataTypes/definitions/Filter.definition.js +1 -0
  36. package/lib/metadataTypes/definitions/ImportFile.definition.js +1 -0
  37. package/lib/metadataTypes/definitions/MobileKeyword.definition.js +20 -7
  38. package/lib/metadataTypes/definitions/MobileMessage.definition.js +50 -8
  39. package/lib/metadataTypes/definitions/Query.definition.js +1 -0
  40. package/lib/metadataTypes/definitions/Role.definition.js +1 -0
  41. package/lib/metadataTypes/definitions/TriggeredSend.definition.js +1 -0
  42. package/lib/metadataTypes/definitions/User.definition.js +2 -0
  43. package/lib/util/auth.js +4 -1
  44. package/lib/util/cli.js +1 -1
  45. package/lib/util/devops.js +13 -11
  46. package/lib/util/file.js +5 -3
  47. package/lib/util/util.js +153 -129
  48. package/package.json +11 -11
  49. package/test/general.test.js +26 -0
  50. package/test/mockRoot/.mcdevrc.json +3 -1
  51. package/test/mockRoot/deploy/testInstance/testBU/automation/testExisting_automation.automation-meta.json +53 -0
  52. package/test/mockRoot/deploy/testInstance/testBU/automation/testNew_automation.automation-meta.json +46 -0
  53. package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/{testNew_keyword.mobileKeyword-meta.json → 4912312345678.TESTNEW_KEYWORD.mobileKeyword-meta.json} +1 -4
  54. package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/{testNew_keyword_blocked.mobileKeyword-meta.json → 4912312345678.TESTNEW_KEYWORD_BLOCKED.mobileKeyword-meta.json} +1 -4
  55. package/test/mockRoot/deploy/testInstance/testBU/query/{testExistingQuery.query-meta.json → testExisting_query.query-meta.json} +2 -2
  56. package/test/mockRoot/deploy/testInstance/testBU/query/{testNewQuery.query-meta.json → testNew_query.query-meta.json} +2 -2
  57. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testExisting_tsms.transactionalSMS-meta.json +1 -1
  58. package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testNew_tsms.transactionalSMS-meta.json +1 -1
  59. package/test/resourceFactory.js +64 -21
  60. package/test/resources/1111111/user/retrieve-expected.md +19 -0
  61. package/test/resources/9999999/automation/build-expected.json +58 -0
  62. package/test/resources/9999999/automation/create-expected.json +46 -0
  63. package/test/resources/9999999/automation/create-testNew_automation-expected.md +28 -0
  64. package/test/resources/9999999/automation/delete-response.xml +40 -0
  65. package/test/resources/9999999/automation/retrieve-expected.json +58 -0
  66. package/test/resources/9999999/automation/retrieve-testExisting_automation-expected.md +30 -0
  67. package/test/resources/9999999/automation/template-expected.json +58 -0
  68. package/test/resources/9999999/automation/update-expected.json +46 -0
  69. package/test/resources/9999999/automation/update-testExisting_automation-expected.md +28 -0
  70. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +85 -0
  71. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/patch-response.json +85 -0
  72. package/test/resources/9999999/automation/v1/automations/a8afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +85 -0
  73. package/test/resources/9999999/automation/v1/automations/post-response.json +85 -0
  74. package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/get-response.json +38 -0
  75. package/test/resources/9999999/automation/v1/dataextracts/get-response.json +20 -0
  76. package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/get-response.json +18 -0
  77. package/test/resources/9999999/automation/v1/filetransfers/get-response.json +15 -0
  78. package/test/resources/9999999/automation/v1/imports/get-response.json +38 -0
  79. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/actions/start/post-response.txt +1 -0
  80. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/get-response.json +2 -2
  81. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/patch-response.json +2 -2
  82. package/test/resources/9999999/automation/v1/queries/get-response.json +4 -4
  83. package/test/resources/9999999/automation/v1/queries/post-response.json +2 -2
  84. package/test/resources/9999999/automation/v1/scripts/get-response.json +17 -0
  85. package/test/resources/9999999/dataExtension/retrieve-expected.md +18 -0
  86. package/test/resources/9999999/dataFolder/retrieve-ContentType=automations-response.xml +48 -0
  87. package/test/resources/9999999/dataFolder/retrieve-ContentType=queryactivity-response.xml +48 -0
  88. package/test/resources/9999999/dataFolder/retrieve-response.xml +22 -0
  89. package/test/resources/9999999/emailSendDefinition/retrieve-response.xml +85 -0
  90. package/test/resources/9999999/journey/build-expected.json +1 -1
  91. package/test/resources/9999999/journey/get-expected.json +1 -1
  92. package/test/resources/9999999/journey/put-expected.json +1 -1
  93. package/test/resources/9999999/journey/template-expected.json +1 -1
  94. package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +21 -0
  95. package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/post-response.json +0 -0
  96. package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/get-response.json +30 -0
  97. package/test/resources/9999999/legacy/v1/beta/mobile/keyword/NXV4ZFMwTEFwRVczd3RaLUF5X3p5dzo4Njow/get-response.json +1 -1
  98. package/test/resources/9999999/legacy/v1/beta/mobile/keyword/get-response.json +1 -1
  99. package/test/resources/9999999/legacy/v1/beta/mobile/message/NTIzOjc4OjA/get-response.json +1 -1
  100. package/test/resources/9999999/legacy/v1/beta/mobile/message/get-response.json +1 -1
  101. package/test/resources/9999999/messaging/v1/sms/definitions/post-response.json +1 -1
  102. package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/get-response.json +1 -1
  103. package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/patch-response.json +1 -1
  104. package/test/resources/9999999/mobileKeyword/build-expected.json +1 -4
  105. package/test/resources/9999999/mobileKeyword/get-expected.json +1 -4
  106. package/test/resources/9999999/mobileKeyword/post-create-expected.json +1 -4
  107. package/test/resources/9999999/mobileKeyword/template-expected.json +1 -4
  108. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation-response.xml +30 -0
  109. package/test/resources/9999999/program/retrieve-CustomerKey=testNew_automation-response.xml +30 -0
  110. package/test/resources/9999999/program/retrieve-Name=testExisting_automation-response.xml +31 -0
  111. package/test/resources/9999999/program/retrieve-response.xml +32 -0
  112. package/test/resources/9999999/query/build-expected.json +2 -2
  113. package/test/resources/9999999/query/build-expected.sql +1 -1
  114. package/test/resources/9999999/query/get-expected.json +2 -2
  115. package/test/resources/9999999/query/get-expected.sql +1 -1
  116. package/test/resources/9999999/query/get2-expected.json +2 -2
  117. package/test/resources/9999999/query/patch-expected.json +2 -2
  118. package/test/resources/9999999/query/patch-expected.sql +1 -1
  119. package/test/resources/9999999/query/post-expected.json +2 -2
  120. package/test/resources/9999999/query/post-expected.sql +1 -1
  121. package/test/resources/9999999/query/template-expected.json +2 -2
  122. package/test/resources/9999999/query/template-expected.sql +1 -1
  123. package/test/resources/9999999/transactionalSMS/build-expected.json +1 -1
  124. package/test/resources/9999999/transactionalSMS/get-expected.json +1 -1
  125. package/test/resources/9999999/transactionalSMS/patch-expected.json +1 -1
  126. package/test/resources/9999999/transactionalSMS/post-expected.json +1 -1
  127. package/test/resources/9999999/transactionalSMS/template-expected.json +1 -1
  128. package/test/type.automation.test.js +259 -0
  129. package/test/type.dataExtension.test.js +16 -1
  130. package/test/type.mobileKeyword.test.js +57 -19
  131. package/test/type.query.test.js +39 -26
  132. package/test/type.user.test.js +44 -1
  133. package/test/utils.js +16 -5
  134. package/.coverage-comment-template.md +0 -20
  135. /package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/{testNew_keyword.mobileKeyword-meta.amp → 4912312345678.TESTNEW_KEYWORD.mobileKeyword-meta.amp} +0 -0
  136. /package/test/mockRoot/deploy/testInstance/testBU/mobileKeyword/{testNew_keyword_blocked.mobileKeyword-meta.amp → 4912312345678.TESTNEW_KEYWORD_BLOCKED.mobileKeyword-meta.amp} +0 -0
  137. /package/test/mockRoot/deploy/testInstance/testBU/query/{testExistingQuery.query-meta.sql → testExisting_query.query-meta.sql} +0 -0
  138. /package/test/mockRoot/deploy/testInstance/testBU/query/{testNewQuery.query-meta.sql → testNew_query.query-meta.sql} +0 -0
@@ -0,0 +1,85 @@
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>RetrieveResponse</wsa:Action>
10
+ <wsa:MessageID>urn:uuid:e0ba7da7-7e82-42db-a166-42a488ac375b</wsa:MessageID>
11
+ <wsa:RelatesTo>urn:uuid:17a3f405-6bd8-4b30-9230-44fea1749b96</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-96902d78-e86f-4361-855e-c37e2e3b4b58">
15
+ <wsu:Created>2023-06-01T12:04:17Z</wsu:Created>
16
+ <wsu:Expires>2023-06-01T12:09:17Z</wsu:Expires>
17
+ </wsu:Timestamp>
18
+ </wsse:Security>
19
+ </soap:Header>
20
+ <soap:Body>
21
+ <RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
22
+ <OverallStatus>OK</OverallStatus>
23
+ <RequestID>687d0584-acbe-4bac-bfc2-4c41b73b5a32</RequestID>
24
+ <Results xsi:type="EmailSendDefinition">
25
+ <PartnerKey xsi:nil="true" />
26
+ <CreatedDate>2022-11-14T12:27:29.963</CreatedDate>
27
+ <ModifiedDate>2022-11-14T12:27:29.963</ModifiedDate>
28
+ <ObjectID>9b1c7bf9-4964-ed11-b849-48df37d1de8b</ObjectID>
29
+ <CustomerKey>testExisting_emailSend</CustomerKey>
30
+ <IsPlatformObject>false</IsPlatformObject>
31
+ <Name>testExisting_emailSend</Name>
32
+ <Description>some description</Description>
33
+ <CategoryID>290820</CategoryID>
34
+ <SendClassification>
35
+ <PartnerKey xsi:nil="true" />
36
+ <ObjectID xsi:nil="true" />
37
+ <CustomerKey>test_send_classification</CustomerKey>
38
+ </SendClassification>
39
+ <SenderProfile>
40
+ <PartnerKey xsi:nil="true" />
41
+ <ObjectID xsi:nil="true" />
42
+ <CustomerKey>Test_sender</CustomerKey>
43
+ </SenderProfile>
44
+ <DeliveryProfile>
45
+ <PartnerKey xsi:nil="true" />
46
+ <ObjectID xsi:nil="true" />
47
+ <CustomerKey>Default</CustomerKey>
48
+ </DeliveryProfile>
49
+ <SuppressTracking>false</SuppressTracking>
50
+ <IsSendLogging>false</IsSendLogging>
51
+ <SendDefinitionList>
52
+ <PartnerKey xsi:nil="true" />
53
+ <ObjectID>9d1c7bf9-4964-ed11-b849-48df37d1de8b</ObjectID>
54
+ <List>
55
+ <PartnerKey xsi:nil="true" />
56
+ <ID>32308</ID>
57
+ <ObjectID xsi:nil="true" />
58
+ </List>
59
+ <SendDefinitionListType>SourceList</SendDefinitionListType>
60
+ <CustomObjectID>2c19d707-743e-ed11-b848-48df37b24911</CustomObjectID>
61
+ <DataSourceTypeID>CustomObject</DataSourceTypeID>
62
+ <IsTestObject>false</IsTestObject>
63
+ <SalesForceObjectID />
64
+ <Name />
65
+ </SendDefinitionList>
66
+ <Email>
67
+ <PartnerKey xsi:nil="true" />
68
+ <ID>676709</ID>
69
+ <ObjectID xsi:nil="true" />
70
+ </Email>
71
+ <BccEmail />
72
+ <AutoBccEmail />
73
+ <TestEmailAddr />
74
+ <EmailSubject>someSubject</EmailSubject>
75
+ <DynamicEmailSubject>someSubject</DynamicEmailSubject>
76
+ <IsMultipart>true</IsMultipart>
77
+ <IsWrapped>true</IsWrapped>
78
+ <DeduplicateByEmail>false</DeduplicateByEmail>
79
+ <ExclusionFilter />
80
+ <Additional />
81
+ <CCEmail />
82
+ </Results>
83
+ </RetrieveResponseMsg>
84
+ </soap:Body>
85
+ </soap:Envelope>
@@ -323,7 +323,7 @@
323
323
  },
324
324
  "configurationArguments": {
325
325
  "c__mobileMessage_id": "NTIzOjc4OjA",
326
- "c__mobileKeyword": "testTemplated_keyword",
326
+ "r__mobileKeyword_codeKeyword": "4912312345678.TESTTEMPLATED_KEYWORD",
327
327
  "isOptIn": false,
328
328
  "honorBlackoutWindowEnum": 0,
329
329
  "mobileBlackoutWindowStartTime": "",
@@ -326,7 +326,7 @@
326
326
  },
327
327
  "configurationArguments": {
328
328
  "c__mobileMessage_id": "NTIzOjc4OjA",
329
- "c__mobileKeyword": "testExisting_keyword",
329
+ "r__mobileKeyword_codeKeyword": "4912312345678.TESTEXISTING_KEYWORD",
330
330
  "isOptIn": false,
331
331
  "honorBlackoutWindowEnum": 0,
332
332
  "mobileBlackoutWindowStartTime": "",
@@ -326,7 +326,7 @@
326
326
  },
327
327
  "configurationArguments": {
328
328
  "c__mobileMessage_id": "NTIzOjc4OjA",
329
- "c__mobileKeyword": "testExisting_keyword",
329
+ "r__mobileKeyword_codeKeyword": "4912312345678.TESTEXISTING_KEYWORD",
330
330
  "isOptIn": false,
331
331
  "honorBlackoutWindowEnum": 0,
332
332
  "mobileBlackoutWindowStartTime": "",
@@ -323,7 +323,7 @@
323
323
  },
324
324
  "configurationArguments": {
325
325
  "c__mobileMessage_id": "NTIzOjc4OjA",
326
- "c__mobileKeyword": "{{{prefix}}}keyword",
326
+ "r__mobileKeyword_codeKeyword": "4912312345678.{{{prefixUpper}}}KEYWORD",
327
327
  "isOptIn": false,
328
328
  "honorBlackoutWindowEnum": 0,
329
329
  "mobileBlackoutWindowStartTime": "",
@@ -0,0 +1,21 @@
1
+ {
2
+ "programId": "ZGQ4N2M2ZjEtYjJlZi00MDljLTg3MDctYzYwNWQ0MzdiYWI4OjI1OjA",
3
+ "workers": [
4
+ {
5
+ "programId": "ZGQ4N2M2ZjEtYjJlZi00MDljLTg3MDctYzYwNWQ0MzdiYWI4OjI1OjA",
6
+ "id": "YjA2NmVlODEtODllOS00NTE4LTkwYzYtMTY4Mzg2ZTk3MGE4OjEyOjA",
7
+ "notificationType": "Complete",
8
+ "definition": "complete@test.accenture.com",
9
+ "body": "",
10
+ "channelType": "Account"
11
+ },
12
+ {
13
+ "programId": "ZGQ4N2M2ZjEtYjJlZi00MDljLTg3MDctYzYwNWQ0MzdiYWI4OjI1OjA",
14
+ "id": "NGIzZGQ5N2EtMDI0ZS00MzFiLTg5ZWYtNTdjYTI4ODVjMjQ0OjEyOjA",
15
+ "notificationType": "Error",
16
+ "definition": "error@test.accenture.com",
17
+ "body": "test",
18
+ "channelType": "Account"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "startIndex": 0,
3
+ "itemsPerPage": 50,
4
+ "totalResults": 1,
5
+ "entry": [
6
+ {
7
+ "id": "RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow",
8
+ "key": "testExisting_automation",
9
+ "createdDate": "2022-01-12T08:41:35.773Z",
10
+ "name": "testExisting_automation",
11
+ "description": "bla bla",
12
+ "clientId": 9999999,
13
+ "status": "Building",
14
+ "createdBy": {
15
+ "id": "NzE3MzUzNDA1OjQ6MA",
16
+ "name": "Tom Tester",
17
+ "email": "tom.tester@accenture.com"
18
+ },
19
+ "modifiedDate": "2022-11-11T16:42:36.513Z",
20
+ "modifiedBy": {
21
+ "id": "NzE3MzUzNDA1OjQ6MA",
22
+ "name": "Tom Tester",
23
+ "email": "tom.tester@accenture.com"
24
+ },
25
+ "isPlatformObject": false,
26
+ "notifications": "https://mcxxxxx.rest.marketingcloudapis.com/legacy/v1/beta/hub/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoxMjow",
27
+ "automationType": "scheduled"
28
+ }
29
+ ]
30
+ }
@@ -25,7 +25,7 @@
25
25
  "isClientOwned": false,
26
26
  "isOwner": false
27
27
  },
28
- "keyword": "testNew_keyword",
28
+ "keyword": "TESTNEW_KEYWORD",
29
29
  "startDate": "2023-03-30T14:00:11.843Z",
30
30
  "endDate": "2043-03-30T14:00:11.843Z",
31
31
  "status": "Active",
@@ -32,7 +32,7 @@
32
32
  "isClientOwned": false,
33
33
  "isOwner": false
34
34
  },
35
- "keyword": "testExisting_keyword",
35
+ "keyword": "TESTEXISTING_KEYWORD",
36
36
  "startDate": "2018-03-27T12:37:18.197Z",
37
37
  "endDate": "2038-03-27T12:37:18.197Z",
38
38
  "status": "Active",
@@ -90,7 +90,7 @@
90
90
  "isSentImmediately": true,
91
91
  "nextKeyword": {
92
92
  "id": "cTVJaG5oSDJPVUNHcUh6Z3pQT2tVdzo4Njow",
93
- "keyword": "testExisting_keyword",
93
+ "keyword": "TESTEXISTING_KEYWORD",
94
94
  "restriction": "NONE",
95
95
  "isInherited": false
96
96
  },
@@ -111,7 +111,7 @@
111
111
  "isSentImmediately": true,
112
112
  "nextKeyword": {
113
113
  "id": "cTVJaG5oSDJPVUNHcUh6Z3pQT2tVdzo4Njow",
114
- "keyword": "testExisting_keyword",
114
+ "keyword": "TESTEXISTING_KEYWORD",
115
115
  "restriction": "NONE",
116
116
  "isInherited": false
117
117
  },
@@ -12,6 +12,6 @@
12
12
  "countryCode": "",
13
13
  "autoAddSubscriber": true,
14
14
  "updateSubscriber": true,
15
- "keyword": "testExisting_keyword"
15
+ "keyword": "TESTEXISTING_KEYWORD"
16
16
  }
17
17
  }
@@ -13,6 +13,6 @@
13
13
  "countryCode": "",
14
14
  "autoAddSubscriber": true,
15
15
  "updateSubscriber": true,
16
- "keyword": "testExisting_keyword"
16
+ "keyword": "TESTEXISTING_KEYWORD"
17
17
  }
18
18
  }
@@ -13,6 +13,6 @@
13
13
  "countryCode": "",
14
14
  "autoAddSubscriber": true,
15
15
  "updateSubscriber": true,
16
- "keyword": "testExisting_keyword"
16
+ "keyword": "TESTEXISTING_KEYWORD"
17
17
  }
18
18
  }
@@ -1,8 +1,5 @@
1
1
  {
2
- "code": {
3
- "code": "4912312345678"
4
- },
5
- "keyword": "testTemplated_keyword",
2
+ "c__codeKeyword": "4912312345678.TESTTEMPLATED_KEYWORD",
6
3
  "keywordType": "NORMAL",
7
4
  "isInherited": false,
8
5
  "restriction": "NONE"
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "createdDate": "2018-03-27T12:37:18.12Z",
3
3
  "lastUpdated": "2018-03-27T12:37:18.167Z",
4
- "code": {
5
- "code": "4912312345678"
6
- },
7
- "keyword": "testExisting_keyword",
4
+ "c__codeKeyword": "4912312345678.TESTEXISTING_KEYWORD",
8
5
  "startDate": "2018-03-27T12:37:18.197Z",
9
6
  "endDate": "2038-03-27T12:37:18.197Z",
10
7
  "status": "Active",
@@ -1,14 +1,11 @@
1
1
  {
2
- "code": {
3
- "code": "4912312345678"
4
- },
5
2
  "createdBy": {
6
3
  "name": "API_JornBerkefeld app user"
7
4
  },
8
5
  "createdDate": "2023-03-30T14:00:11.907Z",
9
6
  "endDate": "2043-03-30T14:00:11.843Z",
10
7
  "isInherited": false,
11
- "keyword": "testNew_keyword",
8
+ "c__codeKeyword": "4912312345678.TESTNEW_KEYWORD",
12
9
  "keywordType": "NORMAL",
13
10
  "lastUpdated": "2023-03-30T14:00:12.295Z",
14
11
  "restriction": "NONE",
@@ -1,8 +1,5 @@
1
1
  {
2
- "code": {
3
- "code": "4912312345678"
4
- },
5
- "keyword": "{{{prefix}}}keyword",
2
+ "c__codeKeyword": "4912312345678.{{{prefixUpper}}}KEYWORD",
6
3
  "keywordType": "NORMAL",
7
4
  "isInherited": false,
8
5
  "restriction": "NONE"
@@ -0,0 +1,30 @@
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>RetrieveResponse</wsa:Action>
10
+ <wsa:MessageID>urn:uuid:60a72d4a-847e-4d9b-a4eb-a42951078298</wsa:MessageID>
11
+ <wsa:RelatesTo>urn:uuid:0b59ed53-72ec-4481-ae06-4ee78912aef2</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-f95f3fd3-c763-4e2c-929f-33611e9d2eba">
15
+ <wsu:Created>2023-06-01T12:04:20Z</wsu:Created>
16
+ <wsu:Expires>2023-06-01T12:09:20Z</wsu:Expires>
17
+ </wsu:Timestamp>
18
+ </wsse:Security>
19
+ </soap:Header>
20
+ <soap:Body>
21
+ <RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
22
+ <OverallStatus>OK</OverallStatus>
23
+ <RequestID>3b1c8cee-b270-49cb-b77b-e7b33934d1b6</RequestID>
24
+ <Results xsi:type="Program">
25
+ <PartnerKey xsi:nil="true" />
26
+ <ObjectID>08afb0e2-b00a-4c88-ad2e-1f7f8788c560</ObjectID>
27
+ </Results>
28
+ </RetrieveResponseMsg>
29
+ </soap:Body>
30
+ </soap:Envelope>
@@ -0,0 +1,30 @@
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>RetrieveResponse</wsa:Action>
10
+ <wsa:MessageID>urn:uuid:60a72d4a-847e-4d9b-a4eb-a42951078298</wsa:MessageID>
11
+ <wsa:RelatesTo>urn:uuid:0b59ed53-72ec-4481-ae06-4ee78912aef2</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-f95f3fd3-c763-4e2c-929f-33611e9d2eba">
15
+ <wsu:Created>2023-06-01T12:04:20Z</wsu:Created>
16
+ <wsu:Expires>2023-06-01T12:09:20Z</wsu:Expires>
17
+ </wsu:Timestamp>
18
+ </wsse:Security>
19
+ </soap:Header>
20
+ <soap:Body>
21
+ <RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
22
+ <OverallStatus>OK</OverallStatus>
23
+ <RequestID>3b1c8cee-b270-49cb-b77b-e7b33934d1b6</RequestID>
24
+ <Results xsi:type="Program">
25
+ <PartnerKey xsi:nil="true" />
26
+ <ObjectID>a8afb0e2-b00a-4c88-ad2e-1f7f8788c560</ObjectID>
27
+ </Results>
28
+ </RetrieveResponseMsg>
29
+ </soap:Body>
30
+ </soap:Envelope>
@@ -0,0 +1,31 @@
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>RetrieveResponse</wsa:Action>
10
+ <wsa:MessageID>urn:uuid:60a72d4a-847e-4d9b-a4eb-a42951078298</wsa:MessageID>
11
+ <wsa:RelatesTo>urn:uuid:0b59ed53-72ec-4481-ae06-4ee78912aef2</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-f95f3fd3-c763-4e2c-929f-33611e9d2eba">
15
+ <wsu:Created>2023-06-01T12:04:20Z</wsu:Created>
16
+ <wsu:Expires>2023-06-01T12:09:20Z</wsu:Expires>
17
+ </wsu:Timestamp>
18
+ </wsse:Security>
19
+ </soap:Header>
20
+ <soap:Body>
21
+ <RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
22
+ <OverallStatus>OK</OverallStatus>
23
+ <RequestID>3b1c8cee-b270-49cb-b77b-e7b33934d1b6</RequestID>
24
+ <Results xsi:type="Program">
25
+ <PartnerKey xsi:nil="true" />
26
+ <ObjectID>08afb0e2-b00a-4c88-ad2e-1f7f8788c560</ObjectID>
27
+ <Name>testExisting_automation</Name>
28
+ </Results>
29
+ </RetrieveResponseMsg>
30
+ </soap:Body>
31
+ </soap:Envelope>
@@ -0,0 +1,32 @@
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>RetrieveResponse</wsa:Action>
10
+ <wsa:MessageID>urn:uuid:60a72d4a-847e-4d9b-a4eb-a42951078298</wsa:MessageID>
11
+ <wsa:RelatesTo>urn:uuid:0b59ed53-72ec-4481-ae06-4ee78912aef2</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-f95f3fd3-c763-4e2c-929f-33611e9d2eba">
15
+ <wsu:Created>2023-06-01T12:04:20Z</wsu:Created>
16
+ <wsu:Expires>2023-06-01T12:09:20Z</wsu:Expires>
17
+ </wsu:Timestamp>
18
+ </wsse:Security>
19
+ </soap:Header>
20
+ <soap:Body>
21
+ <RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
22
+ <OverallStatus>OK</OverallStatus>
23
+ <RequestID>3b1c8cee-b270-49cb-b77b-e7b33934d1b6</RequestID>
24
+ <Results xsi:type="Program">
25
+ <PartnerKey xsi:nil="true" />
26
+ <ObjectID>08afb0e2-b00a-4c88-ad2e-1f7f8788c560</ObjectID>
27
+ <Name>testExisting_automation</Name><!--only retrieved for cache-->
28
+ <CustomerKey>testExisting_automation</CustomerKey><!--only retrieved for cache-->
29
+ </Results>
30
+ </RetrieveResponseMsg>
31
+ </soap:Body>
32
+ </soap:Envelope>
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "testExistingQuery",
3
- "key": "testExistingQuery",
2
+ "name": "testTemplated_query",
3
+ "key": "testTemplated_query",
4
4
  "description": "foobar",
5
5
  "targetKey": "testTemplated_dataExtension",
6
6
  "targetUpdateTypeName": "Overwrite",
@@ -1,5 +1,5 @@
1
1
  SELECT
2
- SubscriberKey as testField
2
+ SubscriberKey AS testField
3
3
  FROM
4
4
  _Subscribers
5
5
  WHERE
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "testExistingQuery",
3
- "key": "testExistingQuery",
2
+ "name": "testExisting_query",
3
+ "key": "testExisting_query",
4
4
  "description": "bla bla",
5
5
  "targetKey": "testExisting_dataExtension",
6
6
  "createdDate": "2022-04-26T15:21:16.453",
@@ -1,5 +1,5 @@
1
1
  SELECT
2
- SubscriberKey as testField
2
+ SubscriberKey AS testField
3
3
  FROM
4
4
  _Subscribers
5
5
  WHERE
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "testExistingQuery2",
3
- "key": "testExistingQuery2",
2
+ "name": "testExisting_query2",
3
+ "key": "testExisting_query2",
4
4
  "description": "bla bla",
5
5
  "targetKey": "testExisting_dataExtension",
6
6
  "createdDate": "2022-04-26T15:21:16.453",
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "testExistingQuery",
3
- "key": "testExistingQuery",
2
+ "name": "testExisting_query",
3
+ "key": "testExisting_query",
4
4
  "description": "updated on deploy",
5
5
  "targetKey": "testExisting_dataExtension",
6
6
  "createdDate": "2022-04-26T15:21:16.453",
@@ -1,5 +1,5 @@
1
1
  SELECT
2
- SubscriberKey as testField
2
+ SubscriberKey AS testField
3
3
  FROM
4
4
  _Subscribers
5
5
  WHERE
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "testNewQuery",
3
- "key": "testNewQuery",
2
+ "name": "testNew_query",
3
+ "key": "testNew_query",
4
4
  "description": "created on deploy",
5
5
  "targetKey": "testExisting_dataExtension",
6
6
  "createdDate": "2022-04-26T15:21:16.453",
@@ -1,4 +1,4 @@
1
1
  SELECT
2
- SubscriberKey as testField
2
+ SubscriberKey AS testField
3
3
  FROM
4
4
  _Subscribers
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "testExistingQuery",
3
- "key": "testExistingQuery",
2
+ "name": "{{{prefix}}}query",
3
+ "key": "{{{prefix}}}query",
4
4
  "description": "{{{description}}}",
5
5
  "targetKey": "{{{prefix}}}dataExtension",
6
6
  "targetUpdateTypeName": "Overwrite",
@@ -1,5 +1,5 @@
1
1
  SELECT
2
- SubscriberKey as testField
2
+ SubscriberKey AS testField
3
3
  FROM
4
4
  _Subscribers
5
5
  WHERE
@@ -8,6 +8,6 @@
8
8
  "countryCode": "",
9
9
  "autoAddSubscriber": true,
10
10
  "updateSubscriber": true,
11
- "keyword": "testTemplated_keyword"
11
+ "keyword": "TESTTEMPLATED_KEYWORD"
12
12
  }
13
13
  }
@@ -10,6 +10,6 @@
10
10
  "countryCode": "",
11
11
  "autoAddSubscriber": true,
12
12
  "updateSubscriber": true,
13
- "keyword": "testExisting_keyword"
13
+ "keyword": "TESTEXISTING_KEYWORD"
14
14
  }
15
15
  }
@@ -10,6 +10,6 @@
10
10
  "countryCode": "",
11
11
  "autoAddSubscriber": true,
12
12
  "updateSubscriber": true,
13
- "keyword": "testExisting_keyword"
13
+ "keyword": "TESTEXISTING_KEYWORD"
14
14
  }
15
15
  }
@@ -10,6 +10,6 @@
10
10
  "countryCode": "",
11
11
  "autoAddSubscriber": true,
12
12
  "updateSubscriber": true,
13
- "keyword": "testExisting_keyword"
13
+ "keyword": "TESTEXISTING_KEYWORD"
14
14
  }
15
15
  }
@@ -8,6 +8,6 @@
8
8
  "countryCode": "",
9
9
  "autoAddSubscriber": true,
10
10
  "updateSubscriber": true,
11
- "keyword": "{{{prefix}}}keyword"
11
+ "keyword": "{{{prefixUpper}}}KEYWORD"
12
12
  }
13
13
  }