mcdev 5.1.0 → 5.2.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 (192) hide show
  1. package/.eslintrc.json +4 -4
  2. package/.github/ISSUE_TEMPLATE/bug.yml +1 -0
  3. package/.github/PULL_REQUEST_TEMPLATE.md +2 -2
  4. package/.github/workflows/coverage-develop-branch.yml +0 -2
  5. package/.github/workflows/coverage-main-branch.yml +0 -2
  6. package/.github/workflows/coverage.yml +0 -2
  7. package/.husky/post-checkout +1 -0
  8. package/.husky/post-merge +1 -0
  9. package/.vscode/extensions.json +4 -0
  10. package/docs/dist/documentation.md +633 -286
  11. package/lib/Deployer.js +25 -25
  12. package/lib/MetadataTypeDefinitions.js +1 -1
  13. package/lib/MetadataTypeInfo.js +1 -1
  14. package/lib/Retriever.js +1 -1
  15. package/lib/cli.js +159 -9
  16. package/lib/index.js +395 -95
  17. package/lib/metadataTypes/Asset.js +10 -11
  18. package/lib/metadataTypes/AttributeGroup.js +76 -2
  19. package/lib/metadataTypes/AttributeSet.js +260 -0
  20. package/lib/metadataTypes/Automation.js +413 -96
  21. package/lib/metadataTypes/DataExtension.js +2 -2
  22. package/lib/metadataTypes/DataExtensionField.js +1 -1
  23. package/lib/metadataTypes/Event.js +2 -3
  24. package/lib/metadataTypes/Folder.js +1 -1
  25. package/lib/metadataTypes/Journey.js +5 -6
  26. package/lib/metadataTypes/MetadataType.js +149 -49
  27. package/lib/metadataTypes/MobileKeyword.js +8 -8
  28. package/lib/metadataTypes/MobileMessage.js +5 -5
  29. package/lib/metadataTypes/Query.js +26 -10
  30. package/lib/metadataTypes/Script.js +3 -3
  31. package/lib/metadataTypes/TransactionalSMS.js +5 -5
  32. package/lib/metadataTypes/TriggeredSend.js +25 -50
  33. package/lib/metadataTypes/User.js +7 -4
  34. package/lib/metadataTypes/definitions/AttributeGroup.definition.js +117 -106
  35. package/lib/metadataTypes/definitions/{SetDefinition.definition.js → AttributeSet.definition.js} +54 -27
  36. package/lib/metadataTypes/definitions/Automation.definition.js +22 -15
  37. package/lib/metadataTypes/definitions/ImportFile.definition.js +36 -6
  38. package/lib/metadataTypes/definitions/TriggeredSend.definition.js +1 -0
  39. package/lib/util/cache.js +9 -4
  40. package/lib/util/cli.js +40 -0
  41. package/lib/util/file.js +2 -2
  42. package/lib/util/init.js +84 -0
  43. package/lib/util/util.js +121 -13
  44. package/package.json +11 -11
  45. package/test/mockRoot/.mcdevrc.json +1 -1
  46. package/test/mockRoot/deploy/testInstance/testBU/automation/testExisting_automation.automation-meta.json +1 -2
  47. package/test/mockRoot/deploy/testInstance/testBU/automation/testNew_automation.automation-meta.json +5 -6
  48. package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testExisting_dataExtract.dataExtract-meta.json +35 -0
  49. package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testNew_dataExtract.dataExtract-meta.json +35 -0
  50. package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testExisting_fileTransfer.fileTransfer-meta.json +17 -0
  51. package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testNew_fileTransfer.fileTransfer-meta.json +17 -0
  52. package/test/mockRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json +29 -0
  53. package/test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json +29 -0
  54. package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.json +11 -0
  55. package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.sql +6 -0
  56. package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.json +6 -0
  57. package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.ssjs +1 -0
  58. package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.json +6 -0
  59. package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.ssjs +1 -0
  60. package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testExisting_triggeredSend.triggeredSend-meta.json +29 -0
  61. package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testNew_triggeredSend.triggeredSend-meta.json +29 -0
  62. package/test/resourceFactory.js +77 -12
  63. package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDCustomerKey=testExisting_userANDEmaillike@-response.xml +27 -0
  64. package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDEmaillike@-response.xml +156 -0
  65. package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml +87 -0
  66. package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmaillike@-response.xml +156 -0
  67. package/test/resources/1111111/accountUser/retrieve-CustomerKey=testExisting_userANDActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml +27 -0
  68. package/test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserID=700301950-response.xml +60 -0
  69. package/test/resources/1111111/user/retrieve-expected.md +4 -2
  70. package/test/resources/9999999/attributeGroup/retrieve-expected.json +25 -0
  71. package/test/resources/9999999/attributeSet/retrieve-expected.json +748 -0
  72. package/test/resources/9999999/automation/build-expected.json +1 -2
  73. package/test/resources/9999999/automation/create-expected.json +7 -8
  74. package/test/resources/9999999/automation/create-testNew_automation-expected.md +4 -4
  75. package/test/resources/9999999/automation/patch_fixKeys-pause-expected.json +44 -0
  76. package/test/resources/9999999/automation/patch_fixKeys-schedule-expected.json +44 -0
  77. package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +42 -0
  78. package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_pause-response.xml +42 -0
  79. package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_schedule-response.xml +42 -0
  80. package/test/resources/9999999/automation/perform-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +42 -0
  81. package/test/resources/9999999/automation/retrieve-expected.json +1 -2
  82. package/test/resources/9999999/automation/retrieve-testExisting_automation-expected.md +2 -2
  83. package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +52 -0
  84. package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-pause-response.xml +38 -0
  85. package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_pause-response.xml +52 -0
  86. package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_schedule-response.xml +52 -0
  87. package/test/resources/9999999/automation/schedule-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +52 -0
  88. package/test/resources/9999999/automation/template-expected.json +1 -2
  89. package/test/resources/9999999/automation/update-expected.json +1 -2
  90. package/test/resources/9999999/automation/update-testExisting_automation-expected.md +2 -2
  91. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/get-response.json +85 -0
  92. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/patch-response.json +85 -0
  93. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/get-response.json +85 -0
  94. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/patch-response.json +85 -0
  95. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/get-response.json +85 -0
  96. package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/patch-response.json +85 -0
  97. package/test/resources/9999999/automation/v1/automations/a8afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +1 -1
  98. package/test/resources/9999999/automation/v1/automations/post-response.json +20 -19
  99. package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/patch-response.json +38 -0
  100. package/test/resources/9999999/automation/v1/dataextracts/post-response.json +38 -0
  101. package/test/resources/9999999/automation/v1/dataextracttypes/get-response.json +50 -0
  102. package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/patch-response.json +18 -0
  103. package/test/resources/9999999/automation/v1/filetransfers/post-response.json +18 -0
  104. package/test/resources/9999999/automation/v1/ftplocations/get-response.json +18 -0
  105. package/test/resources/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/patch-response.json +31 -0
  106. package/test/resources/9999999/automation/v1/imports/get-response.json +1 -1
  107. package/test/resources/9999999/automation/v1/imports/post-response.json +30 -0
  108. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dae/actions/start/post-response.txt +1 -0
  109. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/get-response.json +17 -0
  110. package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/patch-response.json +18 -0
  111. package/test/resources/9999999/automation/v1/queries/get-response.json +18 -1
  112. package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/patch-response.json +10 -0
  113. package/test/resources/9999999/automation/v1/scripts/get-response.json +12 -2
  114. package/test/resources/9999999/automation/v1/scripts/post-response.json +10 -0
  115. package/test/resources/9999999/dataExtension/retrieve-Name=testExisting_dataExtension-response.xml +52 -0
  116. package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtension-response.xml +98 -0
  117. package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_dataExtensionORDataExtension.CustomerKey=testExisting_dataExtension-response.xml +99 -0
  118. package/test/resources/9999999/dataExtract/build-expected.json +35 -0
  119. package/test/resources/9999999/dataExtract/get-expected.json +39 -0
  120. package/test/resources/9999999/dataExtract/patch-expected.json +37 -0
  121. package/test/resources/9999999/dataExtract/post-expected.json +37 -0
  122. package/test/resources/9999999/dataExtract/template-expected.json +35 -0
  123. package/test/resources/9999999/dataFolder/retrieve-ContentType=contextual_suppression_listORContentType=publicationORContentType=suppression_listORContentType=mysubsORContentType=list-response.xml +136 -0
  124. package/test/resources/9999999/dataFolder/retrieve-ContentType=ssjsactivity-response.xml +48 -0
  125. package/test/resources/9999999/dataFolder/retrieve-ContentType=triggered_send_journeybuilderORContentType=triggered_sendORContentType=hidden-response.xml +276 -0
  126. package/test/resources/9999999/dataFolder/retrieve-response.xml +23 -0
  127. package/test/resources/9999999/email/retrieve-response.xml +203 -0
  128. package/test/resources/9999999/fileTransfer/build-expected.json +15 -0
  129. package/test/resources/9999999/fileTransfer/get-expected.json +17 -0
  130. package/test/resources/9999999/fileTransfer/patch-expected.json +17 -0
  131. package/test/resources/9999999/fileTransfer/post-expected.json +17 -0
  132. package/test/resources/9999999/fileTransfer/template-expected.json +15 -0
  133. package/test/resources/9999999/hub/v1/contacts/schema/attributeGroups/get-response.json +585 -0
  134. package/test/resources/9999999/hub/v1/contacts/schema/setDefinitions/get-response.json +19807 -0
  135. package/test/resources/9999999/importFile/build-expected.json +27 -0
  136. package/test/resources/9999999/importFile/get-expected.json +29 -0
  137. package/test/resources/9999999/importFile/patch-expected.json +29 -0
  138. package/test/resources/9999999/importFile/post-expected.json +29 -0
  139. package/test/resources/9999999/importFile/template-expected.json +27 -0
  140. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_pause-response.xml +32 -0
  141. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_schedule-response.xml +32 -0
  142. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_paused-response.xml +32 -0
  143. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_scheduled-response.xml +32 -0
  144. package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_pause-response.xml +30 -0
  145. package/test/resources/9999999/program/retrieve-response.xml +21 -3
  146. package/test/resources/9999999/query/patch_fixKeys-expected.json +11 -0
  147. package/test/resources/9999999/query/patch_fixKeys-expected.sql +6 -0
  148. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixKeysANDStatus=Active-response.xml +30 -0
  149. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixedKeysANDStatus=Active-response.xml +30 -0
  150. package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testNew_queryANDStatus=Active-response.xml +30 -0
  151. package/test/resources/9999999/script/build-expected.json +6 -0
  152. package/test/resources/9999999/script/build-expected.ssjs +1 -0
  153. package/test/resources/9999999/script/get-expected.json +8 -0
  154. package/test/resources/9999999/script/get-expected.ssjs +1 -0
  155. package/test/resources/9999999/script/get_noScriptTag-expected.html +1 -0
  156. package/test/resources/9999999/script/get_noScriptTag-expected.json +8 -0
  157. package/test/resources/9999999/script/patch-expected.json +8 -0
  158. package/test/resources/9999999/script/patch-expected.ssjs +1 -0
  159. package/test/resources/9999999/script/post-expected.json +8 -0
  160. package/test/resources/9999999/script/post-expected.ssjs +1 -0
  161. package/test/resources/9999999/script/template-expected.json +6 -0
  162. package/test/resources/9999999/script/template-expected.ssjs +1 -0
  163. package/test/resources/9999999/triggeredSend/build-expected.json +29 -0
  164. package/test/resources/9999999/triggeredSend/get-expected.json +29 -0
  165. package/test/resources/9999999/triggeredSend/patch-expected.json +29 -0
  166. package/test/resources/9999999/triggeredSend/post-expected.json +29 -0
  167. package/test/resources/9999999/triggeredSend/template-expected.json +29 -0
  168. package/test/resources/9999999/triggeredSendDefinition/create-response.xml +75 -0
  169. package/test/resources/9999999/triggeredSendDefinition/delete-response.xml +36 -0
  170. package/test/resources/9999999/triggeredSendDefinition/{retrieve-response.xml → retrieve-TriggeredSendStatusINNew,Active,Inactive,Moved,Canceled-response.xml} +4 -4
  171. package/test/resources/9999999/triggeredSendDefinition/update-response.xml +74 -0
  172. package/test/type.attributeGroup.test.js +55 -0
  173. package/test/type.attributeSet.test.js +55 -0
  174. package/test/type.automation.test.js +638 -11
  175. package/test/type.dataExtension.test.js +0 -1
  176. package/test/type.dataExtract.test.js +187 -0
  177. package/test/type.fileTransfer.test.js +185 -0
  178. package/test/type.importFile.test.js +186 -0
  179. package/test/type.mobileKeyword.test.js +0 -1
  180. package/test/type.query.test.js +464 -13
  181. package/test/type.script.test.js +367 -0
  182. package/test/type.triggeredSend.test.js +152 -0
  183. package/test/type.user.test.js +22 -10
  184. package/test/utils.js +4 -1
  185. package/lib/metadataTypes/SetDefinition.js +0 -37
  186. /package/test/resources/1111111/accountUser/{retrieve-response.xml → retrieve-ActiveFlag=trueANDCustomerKey=testExisting_userANDEmaillike@-response.xml} +0 -0
  187. /package/test/resources/1111111/accountUserAccount/{retrieve-response.xml → retrieve-AccountUser.AccountUserIDIN700301950,700301951,7471228-response.xml} +0 -0
  188. /package/test/resources/1111111/businessUnit/{retrieve-response.xml → retrieve-ID=1111111-response.xml} +0 -0
  189. /package/test/resources/1111111/list/{retrieve-response.xml → retrieve-CustomerKey=All SubscribersORListName=All Subscribers-response.xml} +0 -0
  190. /package/test/resources/1111111/role/{retrieve-response.xml → retrieve-IsPrivate=false-response.xml} +0 -0
  191. /package/test/resources/9999999/emailSendDefinition/{retrieve-response.xml → retrieve-IsPlatformObject=falseANDDescriptionnotEqualsSFSendDefinition-response.xml} +0 -0
  192. /package/test/resources/9999999/queryDefinition/{retrieve-response.xml → retrieve-CustomerKey=testExisting_queryANDStatus=Active-response.xml} +0 -0
@@ -0,0 +1,85 @@
1
+ {
2
+ "id": "08afb0e2-b00a-4c88-ad2e-pause",
3
+ "name": "testExisting_automation_pause",
4
+ "description": "bla bla",
5
+ "key": "testExisting_automation_pause",
6
+ "typeId": 1,
7
+ "type": "scheduled",
8
+ "statusId": 4,
9
+ "status": "Scheduled",
10
+ "categoryId": 290937,
11
+ "schedule": {
12
+ "id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
13
+ "typeId": 3,
14
+ "startDate": "2022-07-30T00:00:00",
15
+ "endDate": "2022-07-30T00:00:00",
16
+ "scheduledTime": "0001-01-01T07:00:00",
17
+ "rangeTypeId": 0,
18
+ "occurrences": 1,
19
+ "pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
20
+ "icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
21
+ "timezoneName": "W. Europe Standard Time",
22
+ "scheduleStatus": "scheduled",
23
+ "timezoneId": 5
24
+ },
25
+ "steps": [
26
+ {
27
+ "id": "13fda077-0e82-4936-b936-a36b0997fc44",
28
+ "name": "",
29
+ "step": 1,
30
+ "activities": [
31
+ {
32
+ "id": "8081a992-a27d-4a43-984a-d60114ea1025",
33
+ "name": "testExisting_dataExtract",
34
+ "activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
35
+ "objectTypeId": 73,
36
+ "displayOrder": 1
37
+ },
38
+ {
39
+ "id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e",
40
+ "name": "testExisting_emailSend",
41
+ "activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b",
42
+ "objectTypeId": 42,
43
+ "displayOrder": 2
44
+ },
45
+ {
46
+ "id": "2c77fc42-85eb-4611-98f9-223d29d89d72",
47
+ "name": "testExisting_fileTransfer",
48
+ "activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
49
+ "objectTypeId": 53,
50
+ "displayOrder": 3
51
+ },
52
+ {
53
+ "id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7",
54
+ "name": "testExisting_importFile",
55
+ "activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
56
+ "objectTypeId": 43,
57
+ "displayOrder": 4,
58
+ "targetDataExtensions": [
59
+ {
60
+ "id": "21711373-72c1-ec11-b83b-48df37d1deb7",
61
+ "name": "testExisting_dataExtension",
62
+ "key": "testExisting_dataExtension",
63
+ "description": "bla bla",
64
+ "rowCount": 0
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e",
70
+ "name": "testExisting_query_WRONG_NAME",
71
+ "activityObjectId": "549f0568-607c-4940-afef-437965094dat",
72
+ "objectTypeId": 300,
73
+ "displayOrder": 5
74
+ },
75
+ {
76
+ "id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e",
77
+ "name": "testExisting_script",
78
+ "activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
79
+ "objectTypeId": 423,
80
+ "displayOrder": 6
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "legacyId": "RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow-PAUSED",
3
+ "name": "testExisting_automation_pause",
4
+ "description": "updated on deploy",
5
+ "key": "testExisting_automation_pause",
6
+ "typeId": 1,
7
+ "type": "scheduled",
8
+ "statusId": 4,
9
+ "status": "Scheduled",
10
+ "schedule": {
11
+ "id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
12
+ "typeId": 3,
13
+ "startDate": "2022-07-30T00:00:00",
14
+ "endDate": "2022-07-30T00:00:00",
15
+ "scheduledTime": "0001-01-01T07:00:00",
16
+ "rangeTypeId": 0,
17
+ "occurrences": 1,
18
+ "pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
19
+ "icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
20
+ "timezoneName": "W. Europe Standard Time",
21
+ "scheduleStatus": "scheduled",
22
+ "timezoneId": 5
23
+ },
24
+ "steps": [
25
+ {
26
+ "activities": [
27
+ {
28
+ "id": "8081a992-a27d-4a43-984a-d60114ea1025",
29
+ "name": "testExisting_dataExtract",
30
+ "activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
31
+ "objectTypeId": 73,
32
+ "displayOrder": 1
33
+ },
34
+ {
35
+ "id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e",
36
+ "name": "testExisting_emailSend",
37
+ "activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b",
38
+ "objectTypeId": 42,
39
+ "displayOrder": 2
40
+ },
41
+ {
42
+ "id": "2c77fc42-85eb-4611-98f9-223d29d89d72",
43
+ "name": "testExisting_fileTransfer",
44
+ "activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
45
+ "objectTypeId": 53,
46
+ "displayOrder": 3
47
+ },
48
+ {
49
+ "id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7",
50
+ "name": "testExisting_importFile",
51
+ "activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
52
+ "objectTypeId": 43,
53
+ "displayOrder": 4,
54
+ "targetDataExtensions": [
55
+ {
56
+ "id": "21711373-72c1-ec11-b83b-48df37d1deb7",
57
+ "name": "testExisting_dataExtension",
58
+ "key": "testExisting_dataExtension",
59
+ "description": "bla bla",
60
+ "rowCount": 0
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ "id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e",
66
+ "name": "testExisting_query_WRONG_NAME",
67
+ "activityObjectId": "549f0568-607c-4940-afef-437965094dat",
68
+ "objectTypeId": 300,
69
+ "displayOrder": 5
70
+ },
71
+ {
72
+ "id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e",
73
+ "name": "testExisting_script",
74
+ "activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
75
+ "objectTypeId": 423,
76
+ "displayOrder": 6
77
+ }
78
+ ],
79
+ "annotation": "",
80
+ "stepNumber": 0
81
+ }
82
+ ],
83
+ "categoryId": 290937,
84
+ "id": "08afb0e2-b00a-4c88-ad2e-1f7f8788c560"
85
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "id": "08afb0e2-b00a-4c88-fixKey_pause",
3
+ "name": "testExisting_automation_fixedKey_paused",
4
+ "description": "testing fixKey on an a paused automation",
5
+ "key": "testExisting_automation_fixKey_pause",
6
+ "typeId": 1,
7
+ "type": "scheduled",
8
+ "statusId": 4,
9
+ "status": "PausedSchedule",
10
+ "categoryId": 290937,
11
+ "schedule": {
12
+ "id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
13
+ "typeId": 3,
14
+ "startDate": "2022-07-30T00:00:00",
15
+ "endDate": "2022-07-30T00:00:00",
16
+ "scheduledTime": "0001-01-01T07:00:00",
17
+ "rangeTypeId": 0,
18
+ "occurrences": 1,
19
+ "pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
20
+ "icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
21
+ "timezoneName": "W. Europe Standard Time",
22
+ "scheduleStatus": "paused",
23
+ "timezoneId": 5
24
+ },
25
+ "steps": [
26
+ {
27
+ "id": "13fda077-0e82-4936-b936-a36b0997fc44",
28
+ "name": "",
29
+ "step": 1,
30
+ "activities": [
31
+ {
32
+ "id": "8081a992-a27d-4a43-984a-d60114ea1025",
33
+ "name": "testExisting_dataExtract",
34
+ "activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
35
+ "objectTypeId": 73,
36
+ "displayOrder": 1
37
+ },
38
+ {
39
+ "id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e",
40
+ "name": "testExisting_emailSend",
41
+ "activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b",
42
+ "objectTypeId": 42,
43
+ "displayOrder": 2
44
+ },
45
+ {
46
+ "id": "2c77fc42-85eb-4611-98f9-223d29d89d72",
47
+ "name": "testExisting_fileTransfer",
48
+ "activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
49
+ "objectTypeId": 53,
50
+ "displayOrder": 3
51
+ },
52
+ {
53
+ "id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7",
54
+ "name": "testExisting_importFile",
55
+ "activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
56
+ "objectTypeId": 43,
57
+ "displayOrder": 4,
58
+ "targetDataExtensions": [
59
+ {
60
+ "id": "21711373-72c1-ec11-b83b-48df37d1deb7",
61
+ "name": "testExisting_dataExtension",
62
+ "key": "testExisting_dataExtension",
63
+ "description": "bla bla",
64
+ "rowCount": 0
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e",
70
+ "name": "testExisting_query_WRONG_NAME",
71
+ "activityObjectId": "549f0568-607c-4940-afef-437965094dat",
72
+ "objectTypeId": 300,
73
+ "displayOrder": 5
74
+ },
75
+ {
76
+ "id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e",
77
+ "name": "testExisting_script",
78
+ "activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
79
+ "objectTypeId": 423,
80
+ "displayOrder": 6
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "id": "08afb0e2-b00a-4c88-fixKey_pause",
3
+ "name": "testExisting_automation_fixedKey_paused",
4
+ "description": "testing fixKey on an a paused automation",
5
+ "key": "testExisting_automation_fixedKey_paused",
6
+ "typeId": 1,
7
+ "type": "scheduled",
8
+ "statusId": 4,
9
+ "status": "PausedSchedule",
10
+ "categoryId": 290937,
11
+ "schedule": {
12
+ "id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
13
+ "typeId": 3,
14
+ "startDate": "2022-07-30T00:00:00",
15
+ "endDate": "2022-07-30T00:00:00",
16
+ "scheduledTime": "0001-01-01T07:00:00",
17
+ "rangeTypeId": 0,
18
+ "occurrences": 1,
19
+ "pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
20
+ "icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
21
+ "timezoneName": "W. Europe Standard Time",
22
+ "scheduleStatus": "paused",
23
+ "timezoneId": 5
24
+ },
25
+ "steps": [
26
+ {
27
+ "id": "13fda077-0e82-4936-b936-a36b0997fc44",
28
+ "name": "",
29
+ "step": 1,
30
+ "activities": [
31
+ {
32
+ "id": "8081a992-a27d-4a43-984a-d60114ea1025",
33
+ "name": "testExisting_dataExtract",
34
+ "activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
35
+ "objectTypeId": 73,
36
+ "displayOrder": 1
37
+ },
38
+ {
39
+ "id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e",
40
+ "name": "testExisting_emailSend",
41
+ "activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b",
42
+ "objectTypeId": 42,
43
+ "displayOrder": 2
44
+ },
45
+ {
46
+ "id": "2c77fc42-85eb-4611-98f9-223d29d89d72",
47
+ "name": "testExisting_fileTransfer",
48
+ "activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
49
+ "objectTypeId": 53,
50
+ "displayOrder": 3
51
+ },
52
+ {
53
+ "id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7",
54
+ "name": "testExisting_importFile",
55
+ "activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
56
+ "objectTypeId": 43,
57
+ "displayOrder": 4,
58
+ "targetDataExtensions": [
59
+ {
60
+ "id": "21711373-72c1-ec11-b83b-48df37d1deb7",
61
+ "name": "testExisting_dataExtension",
62
+ "key": "testExisting_dataExtension",
63
+ "description": "bla bla",
64
+ "rowCount": 0
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e",
70
+ "name": "testExisting_query_WRONG_NAME",
71
+ "activityObjectId": "549f0568-607c-4940-afef-437965094dat",
72
+ "objectTypeId": 300,
73
+ "displayOrder": 5
74
+ },
75
+ {
76
+ "id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e",
77
+ "name": "testExisting_script",
78
+ "activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
79
+ "objectTypeId": 423,
80
+ "displayOrder": 6
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "id": "08afb0e2-b00a-4c88-fixKey_schedule",
3
+ "name": "testExisting_automation_fixedKey_scheduled",
4
+ "description": "testing fixKey on an a scheduled automation",
5
+ "key": "testExisting_automation_fixKey_schedule",
6
+ "typeId": 1,
7
+ "type": "scheduled",
8
+ "statusId": 4,
9
+ "status": "Scheduled",
10
+ "categoryId": 290937,
11
+ "schedule": {
12
+ "id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
13
+ "typeId": 3,
14
+ "startDate": "2022-07-30T00:00:00",
15
+ "endDate": "2022-07-30T00:00:00",
16
+ "scheduledTime": "0001-01-01T07:00:00",
17
+ "rangeTypeId": 0,
18
+ "occurrences": 1,
19
+ "pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
20
+ "icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
21
+ "timezoneName": "W. Europe Standard Time",
22
+ "scheduleStatus": "paused",
23
+ "timezoneId": 5
24
+ },
25
+ "steps": [
26
+ {
27
+ "id": "13fda077-0e82-4936-b936-a36b0997fc44",
28
+ "name": "",
29
+ "step": 1,
30
+ "activities": [
31
+ {
32
+ "id": "8081a992-a27d-4a43-984a-d60114ea1025",
33
+ "name": "testExisting_dataExtract",
34
+ "activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
35
+ "objectTypeId": 73,
36
+ "displayOrder": 1
37
+ },
38
+ {
39
+ "id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e",
40
+ "name": "testExisting_emailSend",
41
+ "activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b",
42
+ "objectTypeId": 42,
43
+ "displayOrder": 2
44
+ },
45
+ {
46
+ "id": "2c77fc42-85eb-4611-98f9-223d29d89d72",
47
+ "name": "testExisting_fileTransfer",
48
+ "activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
49
+ "objectTypeId": 53,
50
+ "displayOrder": 3
51
+ },
52
+ {
53
+ "id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7",
54
+ "name": "testExisting_importFile",
55
+ "activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
56
+ "objectTypeId": 43,
57
+ "displayOrder": 4,
58
+ "targetDataExtensions": [
59
+ {
60
+ "id": "21711373-72c1-ec11-b83b-48df37d1deb7",
61
+ "name": "testExisting_dataExtension",
62
+ "key": "testExisting_dataExtension",
63
+ "description": "bla bla",
64
+ "rowCount": 0
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e",
70
+ "name": "testExisting_query_WRONG_NAME",
71
+ "activityObjectId": "549f0568-607c-4940-afef-437965094dat",
72
+ "objectTypeId": 300,
73
+ "displayOrder": 5
74
+ },
75
+ {
76
+ "id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e",
77
+ "name": "testExisting_script",
78
+ "activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
79
+ "objectTypeId": 423,
80
+ "displayOrder": 6
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -0,0 +1,85 @@
1
+ {
2
+ "id": "08afb0e2-b00a-4c88-fixKey_schedule",
3
+ "name": "testExisting_automation_fixedKey_scheduled",
4
+ "description": "testing fixKey on an a scheduled automation",
5
+ "key": "testExisting_automation_fixedKey_scheduled",
6
+ "typeId": 1,
7
+ "type": "scheduled",
8
+ "statusId": 4,
9
+ "status": "Scheduled",
10
+ "categoryId": 290937,
11
+ "schedule": {
12
+ "id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
13
+ "typeId": 3,
14
+ "startDate": "2022-07-30T00:00:00",
15
+ "endDate": "2022-07-30T00:00:00",
16
+ "scheduledTime": "0001-01-01T07:00:00",
17
+ "rangeTypeId": 0,
18
+ "occurrences": 1,
19
+ "pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
20
+ "icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
21
+ "timezoneName": "W. Europe Standard Time",
22
+ "scheduleStatus": "paused",
23
+ "timezoneId": 5
24
+ },
25
+ "steps": [
26
+ {
27
+ "id": "13fda077-0e82-4936-b936-a36b0997fc44",
28
+ "name": "",
29
+ "step": 1,
30
+ "activities": [
31
+ {
32
+ "id": "8081a992-a27d-4a43-984a-d60114ea1025",
33
+ "name": "testExisting_dataExtract",
34
+ "activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
35
+ "objectTypeId": 73,
36
+ "displayOrder": 1
37
+ },
38
+ {
39
+ "id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e",
40
+ "name": "testExisting_emailSend",
41
+ "activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b",
42
+ "objectTypeId": 42,
43
+ "displayOrder": 2
44
+ },
45
+ {
46
+ "id": "2c77fc42-85eb-4611-98f9-223d29d89d72",
47
+ "name": "testExisting_fileTransfer",
48
+ "activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
49
+ "objectTypeId": 53,
50
+ "displayOrder": 3
51
+ },
52
+ {
53
+ "id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7",
54
+ "name": "testExisting_importFile",
55
+ "activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
56
+ "objectTypeId": 43,
57
+ "displayOrder": 4,
58
+ "targetDataExtensions": [
59
+ {
60
+ "id": "21711373-72c1-ec11-b83b-48df37d1deb7",
61
+ "name": "testExisting_dataExtension",
62
+ "key": "testExisting_dataExtension",
63
+ "description": "bla bla",
64
+ "rowCount": 0
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e",
70
+ "name": "testExisting_query_WRONG_NAME",
71
+ "activityObjectId": "549f0568-607c-4940-afef-437965094dat",
72
+ "objectTypeId": 300,
73
+ "displayOrder": 5
74
+ },
75
+ {
76
+ "id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e",
77
+ "name": "testExisting_script",
78
+ "activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
79
+ "objectTypeId": 423,
80
+ "displayOrder": 6
81
+ }
82
+ ]
83
+ }
84
+ ]
85
+ }
@@ -6,7 +6,7 @@
6
6
  "typeId": 1,
7
7
  "type": "scheduled",
8
8
  "statusId": 4,
9
- "status": "PausedSchedule",
9
+ "status": "Scheduled",
10
10
  "categoryId": 290937,
11
11
  "schedule": {
12
12
  "id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
@@ -1,25 +1,28 @@
1
1
  {
2
+ "id": "a8afb0e2-b00a-4c88-ad2e-1f7f8788c560",
2
3
  "legacyId": "NewRkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow",
3
4
  "name": "testNew_automation",
4
5
  "description": "created on deploy",
5
6
  "key": "testNew_automation",
6
- "typeId": 1,
7
- "type": "scheduled",
7
+ "categoryId": 290937,
8
8
  "statusId": 4,
9
- "status": "PausedSchedule",
10
- "schedule": {
11
- "id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
12
- "typeId": 3,
13
- "startDate": "2022-07-30T00:00:00",
14
- "endDate": "2022-07-30T00:00:00",
15
- "scheduledTime": "0001-01-01T07:00:00",
16
- "rangeTypeId": 0,
17
- "occurrences": 1,
18
- "pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
19
- "icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
20
- "timezoneName": "W. Europe Standard Time",
21
- "scheduleStatus": "paused",
22
- "timezoneId": 5
9
+ "lastSavedDate": "2023-07-04T07:49:08.577",
10
+ "lastSavedByName": "SFMC DevTools app user",
11
+ "createdDate": "2023-07-04T07:49:08.297",
12
+ "createdByName": "SFMC DevTools app user",
13
+ "updateInProgress": false,
14
+ "startSource": {
15
+ "typeId": 1,
16
+ "schedule": {
17
+ "scheduleTypeId": 1,
18
+ "startDate": "2020-05-13T18:30:32.11-06:00",
19
+ "endDate": "2079-06-06T21:00:00-06:00",
20
+ "rangeTypeId": 1,
21
+ "occurrences": 6213054,
22
+ "icalRecur": "FREQ=MINUTELY;UNTIL=20790607T050000;INTERVAL=5",
23
+ "timezoneId": 5,
24
+ "statusId": 0
25
+ }
23
26
  },
24
27
  "steps": [
25
28
  {
@@ -79,7 +82,5 @@
79
82
  "annotation": "",
80
83
  "stepNumber": 0
81
84
  }
82
- ],
83
- "categoryId": 290937,
84
- "id": "a8afb0e2-b00a-4c88-ad2e-1f7f8788c560"
85
+ ]
85
86
  }
@@ -0,0 +1,38 @@
1
+ {
2
+ "dataExtractDefinitionId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
3
+ "name": "testExisting_dataExtract",
4
+ "key": "testExisting_dataExtract",
5
+ "description": "created via deploy",
6
+ "dataExtractTypeId": "bb94a04d-9632-4623-be47-daabc3f588a6",
7
+ "fileSpec": "testExisting-%%Year%%-%%Month%%-%%Day%%",
8
+ "createdBy": 700304523,
9
+ "modifiedBy": 700304523,
10
+ "intervalType": 0,
11
+ "dataFields": [
12
+ {
13
+ "name": "ColumnDelimiter",
14
+ "type": "string",
15
+ "value": ","
16
+ },
17
+ {
18
+ "name": "DECustomerKey",
19
+ "type": "string",
20
+ "value": "testExisting_dataExtension"
21
+ },
22
+ {
23
+ "name": "HasColumnHeaders",
24
+ "type": "bool",
25
+ "value": "False"
26
+ },
27
+ {
28
+ "name": "TextQualified",
29
+ "type": "bool",
30
+ "value": "False"
31
+ },
32
+ {
33
+ "name": "UsesLineFeed",
34
+ "type": "bool",
35
+ "value": "False"
36
+ }
37
+ ]
38
+ }
@@ -0,0 +1,38 @@
1
+ {
2
+ "dataExtractDefinitionId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
3
+ "name": "testNew_dataExtract",
4
+ "key": "testNew_dataExtract",
5
+ "description": "blabla",
6
+ "dataExtractTypeId": "bb94a04d-9632-4623-be47-daabc3f588a6",
7
+ "fileSpec": "testNew-%%Year%%-%%Month%%-%%Day%%",
8
+ "createdBy": 700304523,
9
+ "modifiedBy": 700304523,
10
+ "intervalType": 0,
11
+ "dataFields": [
12
+ {
13
+ "name": "ColumnDelimiter",
14
+ "type": "string",
15
+ "value": ","
16
+ },
17
+ {
18
+ "name": "DECustomerKey",
19
+ "type": "string",
20
+ "value": "testExisting_dataExtension"
21
+ },
22
+ {
23
+ "name": "HasColumnHeaders",
24
+ "type": "bool",
25
+ "value": "False"
26
+ },
27
+ {
28
+ "name": "TextQualified",
29
+ "type": "bool",
30
+ "value": "False"
31
+ },
32
+ {
33
+ "name": "UsesLineFeed",
34
+ "type": "bool",
35
+ "value": "False"
36
+ }
37
+ ]
38
+ }