mcdev 8.3.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/.github/ISSUE_TEMPLATE/bug.yml +2 -0
  2. package/.github/workflows/close_issues_on_merge.yml +4 -0
  3. package/.github/workflows/code-test.yml +2 -2
  4. package/.github/workflows/coverage-base-update.yml +2 -2
  5. package/.github/workflows/coverage-develop-branch.yml +1 -1
  6. package/.github/workflows/coverage-main-branch.yml +1 -1
  7. package/.github/workflows/coverage.yml +2 -2
  8. package/.prettierrc +1 -1
  9. package/@types/lib/index.d.ts.map +1 -1
  10. package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
  11. package/@types/lib/metadataTypes/Automation.d.ts.map +1 -1
  12. package/@types/lib/metadataTypes/DataExtension.d.ts.map +1 -1
  13. package/@types/lib/metadataTypes/DataFilter.d.ts +1 -0
  14. package/@types/lib/metadataTypes/DataFilter.d.ts.map +1 -1
  15. package/@types/lib/metadataTypes/DataFilterHidden.d.ts +1 -0
  16. package/@types/lib/metadataTypes/DataFilterHidden.d.ts.map +1 -1
  17. package/@types/lib/metadataTypes/Event.d.ts.map +1 -1
  18. package/@types/lib/metadataTypes/FileLocation.d.ts +74 -0
  19. package/@types/lib/metadataTypes/FileLocation.d.ts.map +1 -1
  20. package/@types/lib/metadataTypes/Folder.d.ts.map +1 -1
  21. package/@types/lib/metadataTypes/Journey.d.ts +6 -0
  22. package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
  23. package/@types/lib/metadataTypes/List.d.ts +1 -1
  24. package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
  25. package/@types/lib/metadataTypes/Script.d.ts +14 -0
  26. package/@types/lib/metadataTypes/Script.d.ts.map +1 -1
  27. package/@types/lib/metadataTypes/definitions/DataFilter.definition.d.ts +1 -0
  28. package/@types/lib/metadataTypes/definitions/DataFilterHidden.definition.d.ts +1 -0
  29. package/@types/lib/metadataTypes/definitions/FileLocation.definition.d.ts +62 -4
  30. package/@types/lib/metadataTypes/definitions/Journey.definition.d.ts +6 -0
  31. package/@types/lib/metadataTypes/definitions/Script.definition.d.ts +10 -0
  32. package/@types/lib/util/auth.d.ts.map +1 -1
  33. package/@types/lib/util/cli.d.ts.map +1 -1
  34. package/@types/lib/util/file.d.ts.map +1 -1
  35. package/@types/lib/util/init.config.d.ts.map +1 -1
  36. package/@types/lib/util/init.d.ts +1 -1
  37. package/@types/lib/util/init.d.ts.map +1 -1
  38. package/@types/lib/util/init.git.d.ts.map +1 -1
  39. package/lib/Deployer.js +3 -3
  40. package/lib/cli.js +6 -0
  41. package/lib/index.js +15 -14
  42. package/lib/metadataTypes/Asset.js +7 -8
  43. package/lib/metadataTypes/Automation.js +8 -10
  44. package/lib/metadataTypes/DataExtension.js +4 -3
  45. package/lib/metadataTypes/DataExtensionField.js +3 -3
  46. package/lib/metadataTypes/DataFilter.js +36 -22
  47. package/lib/metadataTypes/Event.js +8 -7
  48. package/lib/metadataTypes/FileLocation.js +204 -4
  49. package/lib/metadataTypes/Folder.js +8 -7
  50. package/lib/metadataTypes/Journey.js +74 -47
  51. package/lib/metadataTypes/List.js +1 -1
  52. package/lib/metadataTypes/MetadataType.js +17 -21
  53. package/lib/metadataTypes/Script.js +16 -0
  54. package/lib/metadataTypes/User.js +2 -2
  55. package/lib/metadataTypes/definitions/DataFilter.definition.js +1 -0
  56. package/lib/metadataTypes/definitions/DataFilterHidden.definition.js +1 -0
  57. package/lib/metadataTypes/definitions/FileLocation.definition.js +52 -7
  58. package/lib/metadataTypes/definitions/Journey.definition.js +6 -0
  59. package/lib/metadataTypes/definitions/Script.definition.js +6 -0
  60. package/lib/util/auth.js +20 -24
  61. package/lib/util/businessUnit.js +1 -1
  62. package/lib/util/cli.js +2 -1
  63. package/lib/util/file.js +2 -1
  64. package/lib/util/init.config.js +3 -1
  65. package/lib/util/init.git.js +2 -1
  66. package/lib/util/init.js +2 -1
  67. package/lib/util/util.js +3 -3
  68. package/package.json +21 -21
  69. package/test/general.test.js +11 -11
  70. package/test/mockRoot/.mcdevrc.json +1 -1
  71. package/test/mockRoot/deploy/testInstance/testBU/fileLocation/ExactTarget Enhanced FTP.fileLocation-meta.json +5 -0
  72. package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_aws.fileLocation-meta.json +14 -0
  73. package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_exsftp.fileLocation-meta.json +12 -0
  74. package/test/resourceFactory.js +10 -3
  75. package/test/resources/9999999/automation/v1/ftplocations/get-response.json +26 -1
  76. package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/get-response.json +10 -0
  77. package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/patch-response.json +2 -2
  78. package/test/resources/9999999/data/v1/filetransferlocation/Salesforce%20Objects%20%26%20Reports/get-response.json +4 -0
  79. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_aws/patch-response.json +18 -0
  80. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/delete-response.json +4 -0
  81. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/get-response.json +18 -0
  82. package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_exsftp/patch-response.json +16 -0
  83. package/test/resources/9999999/data/v1/filetransferlocations/get-response.json +59 -0
  84. package/test/resources/9999999/fileLocation/build-expected.json +14 -0
  85. package/test/resources/9999999/fileLocation/get-aws-expected.json +14 -0
  86. package/test/resources/9999999/fileLocation/get-azure-expected.json +14 -0
  87. package/test/resources/9999999/fileLocation/get-eftp-expected.json +5 -0
  88. package/test/resources/9999999/fileLocation/get-exsftp-expected.json +12 -0
  89. package/test/resources/9999999/fileLocation/get-gcp-expected.json +10 -0
  90. package/test/resources/9999999/fileLocation/get-sor-expected.json +5 -0
  91. package/test/resources/9999999/fileLocation/patch-aws-expected.json +14 -0
  92. package/test/resources/9999999/fileLocation/patch-exsftp-expected.json +12 -0
  93. package/test/resources/9999999/fileLocation/template-expected.json +14 -0
  94. package/test/resources/9999999/interaction/v1/interactions/get-response-status=Published.json +40 -0
  95. package/test/type.automation.test.js +14 -14
  96. package/test/type.dataFilter.test.js +10 -2
  97. package/test/type.fileLocation.test.js +279 -0
  98. package/test/type.fileTransfer.test.js +4 -4
  99. package/test/type.filter.test.js +9 -2
  100. package/test/type.importFile.test.js +5 -5
  101. package/test/type.journey.test.js +26 -0
  102. package/test/type.query.test.js +2 -2
  103. package/test/type.script.test.js +1 -1
  104. package/tsconfig.json +1 -1
  105. package/tsconfig.npmScripts.json +1 -1
  106. package/tsconfig.precommit.json +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mcdev",
3
- "version": "8.3.1",
3
+ "version": "9.0.0",
4
4
  "description": "Accenture Salesforce Marketing Cloud DevTools",
5
5
  "author": "Accenture: joern.berkefeld, douglas.midgley, robert.zimmermann, maciej.barnas",
6
6
  "license": "MIT",
@@ -45,7 +45,7 @@
45
45
  "mcdev": "./lib/cli.js"
46
46
  },
47
47
  "engines": {
48
- "node": "^18.20.0 || ^20.10.0 || >=21.0.0"
48
+ "node": "^20.19.0 || ^22.13.0 || >=24"
49
49
  },
50
50
  "scripts": {
51
51
  "start": "node lib/cli.js",
@@ -70,48 +70,48 @@
70
70
  "beauty-amp-core2": "0.4.9",
71
71
  "cli-progress": "3.12.0",
72
72
  "command-exists": "1.2.9",
73
- "conf": "13.1.0",
73
+ "conf": "15.1.0",
74
74
  "console.table": "0.10.0",
75
75
  "deep-equal": "2.2.3",
76
76
  "fs-extra": "11.3.3",
77
- "inquirer": "12.6.0",
77
+ "inquirer": "13.2.5",
78
78
  "json-to-table": "4.2.1",
79
79
  "mustache": "4.2.0",
80
- "p-limit": "6.2.0",
81
- "prettier": "3.5.3",
80
+ "p-limit": "7.3.0",
81
+ "prettier": "3.8.1",
82
82
  "prettier-plugin-sql": "0.19.2",
83
- "semver": "7.7.3",
84
- "sfmc-sdk": "2.1.2",
85
- "simple-git": "3.30.0",
83
+ "semver": "7.7.4",
84
+ "sfmc-sdk": "3.0.0",
85
+ "simple-git": "3.31.1",
86
86
  "toposort": "2.0.2",
87
87
  "update-notifier": "7.3.1",
88
88
  "winston": "3.19.0",
89
- "yargs": "17.7.2",
90
- "yocto-spinner": "1.0.0"
89
+ "yargs": "18.0.0",
90
+ "yocto-spinner": "1.1.0"
91
91
  },
92
92
  "devDependencies": {
93
- "@eslint/js": "9.28.0",
93
+ "@eslint/js": "10.0.1",
94
94
  "@types/fs-extra": "11.0.4",
95
- "@types/inquirer": "9.0.7",
95
+ "@types/inquirer": "9.0.9",
96
96
  "@types/mocha": "10.0.8",
97
- "@types/node": "24.9.1",
98
- "@types/yargs": "17.0.33",
97
+ "@types/node": "25.3.0",
98
+ "@types/yargs": "17.0.35",
99
99
  "assert": "2.1.0",
100
100
  "axios-mock-adapter": "2.0.0",
101
101
  "c8": "10.1.3",
102
102
  "chai": "6.2.2",
103
103
  "chai-files": "1.4.0",
104
- "eslint": "9.28.0",
104
+ "eslint": "10.0.1",
105
105
  "eslint-config-ssjs": "2.0.0",
106
- "eslint-plugin-jsdoc": "50.7.1",
106
+ "eslint-plugin-jsdoc": "62.7.0",
107
107
  "eslint-plugin-mocha": "11.2.0",
108
108
  "eslint-plugin-prettier": "5.5.5",
109
- "eslint-plugin-unicorn": "59.0.1",
110
- "fast-xml-parser": "5.3.4",
109
+ "eslint-plugin-unicorn": "63.0.0",
110
+ "fast-xml-parser": "5.3.7",
111
111
  "globals": "17.3.0",
112
112
  "husky": "9.1.7",
113
- "lint-staged": "16.2.6",
114
- "mocha": "11.7.4",
113
+ "lint-staged": "16.2.7",
114
+ "mocha": "11.7.5",
115
115
  "mock-fs": "5.3.0",
116
116
  "npm-run-all": "4.1.5",
117
117
  "prettier-eslint": "16.4.2",
@@ -775,7 +775,7 @@ describe('GENERAL', () => {
775
775
  // download first before we test buildTemplate
776
776
  await handler.retrieve('testInstance/testBU', ['automation', 'query']);
777
777
 
778
- const expectedApiCallsRetrieve = 36;
778
+ const expectedApiCallsRetrieve = 37;
779
779
  assert.equal(
780
780
  testUtils.getAPIHistoryLength(),
781
781
  expectedApiCallsRetrieve,
@@ -880,7 +880,7 @@ describe('GENERAL', () => {
880
880
  });
881
881
 
882
882
  it('buildTemplate + buildDefinition for multiple types with keys and --retrieve', async () => {
883
- const expectedApiCallsRetrieve = 33;
883
+ const expectedApiCallsRetrieve = 34;
884
884
 
885
885
  // preparation
886
886
  const argvMetadata = [
@@ -985,7 +985,7 @@ describe('GENERAL', () => {
985
985
  // download first before we test buildTemplate
986
986
  await handler.retrieve('testInstance/testBU');
987
987
 
988
- const expectedApiCallsRetrieve = 108;
988
+ const expectedApiCallsRetrieve = 109;
989
989
  assert.equal(
990
990
  testUtils.getAPIHistoryLength(),
991
991
  expectedApiCallsRetrieve,
@@ -1227,7 +1227,7 @@ describe('GENERAL', () => {
1227
1227
  await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
1228
1228
  ).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
1229
1229
 
1230
- const expectedApiCallsRetrieve = 112;
1230
+ const expectedApiCallsRetrieve = 113;
1231
1231
  assert.equal(
1232
1232
  testUtils.getAPIHistoryLength(),
1233
1233
  expectedApiCallsRetrieve,
@@ -1239,7 +1239,7 @@ describe('GENERAL', () => {
1239
1239
  // download first before we test buildTemplate
1240
1240
  await handler.retrieve('testInstance/testBU', ['automation', 'query']);
1241
1241
 
1242
- const expectedApiCallsRetrieve = 36;
1242
+ const expectedApiCallsRetrieve = 37;
1243
1243
  assert.equal(
1244
1244
  testUtils.getAPIHistoryLength(),
1245
1245
  expectedApiCallsRetrieve,
@@ -1431,7 +1431,7 @@ describe('GENERAL', () => {
1431
1431
  // download first before we test buildTemplate
1432
1432
  await handler.retrieve('testInstance/testBU', ['automation', 'query']);
1433
1433
 
1434
- const expectedApiCallsRetrieve = 36;
1434
+ const expectedApiCallsRetrieve = 37;
1435
1435
  assert.equal(
1436
1436
  testUtils.getAPIHistoryLength(),
1437
1437
  expectedApiCallsRetrieve,
@@ -1502,7 +1502,7 @@ describe('GENERAL', () => {
1502
1502
  // download first before we test buildTemplate
1503
1503
  await handler.retrieve('testInstance/testBU', ['automation', 'query']);
1504
1504
 
1505
- const expectedApiCallsRetrieve = 36;
1505
+ const expectedApiCallsRetrieve = 37;
1506
1506
  assert.equal(
1507
1507
  testUtils.getAPIHistoryLength(),
1508
1508
  expectedApiCallsRetrieve,
@@ -1601,7 +1601,7 @@ describe('GENERAL', () => {
1601
1601
  // download everything before we test buildTemplate
1602
1602
  await handler.retrieve('testInstance/testBU');
1603
1603
 
1604
- const expectedApiCallsRetrieve = 108;
1604
+ const expectedApiCallsRetrieve = 109;
1605
1605
  assert.equal(
1606
1606
  testUtils.getAPIHistoryLength(),
1607
1607
  expectedApiCallsRetrieve,
@@ -1812,7 +1812,7 @@ describe('GENERAL', () => {
1812
1812
  await testUtils.getActualDeployFile('testTemplated_query', 'query', 'sql')
1813
1813
  ).to.equal(await testUtils.getExpectedFile('9999999', 'query', 'build', 'sql'));
1814
1814
 
1815
- const expectedApiCallsRetrieve = 112;
1815
+ const expectedApiCallsRetrieve = 113;
1816
1816
  assert.equal(
1817
1817
  testUtils.getAPIHistoryLength(),
1818
1818
  expectedApiCallsRetrieve,
@@ -1824,7 +1824,7 @@ describe('GENERAL', () => {
1824
1824
  // download first before we test buildTemplate
1825
1825
  await handler.retrieve('testInstance/testBU', ['automation', 'query']);
1826
1826
 
1827
- const expectedApiCallsRetrieve = 36;
1827
+ const expectedApiCallsRetrieve = 37;
1828
1828
  assert.equal(
1829
1829
  testUtils.getAPIHistoryLength(),
1830
1830
  expectedApiCallsRetrieve,
@@ -2003,7 +2003,7 @@ describe('GENERAL', () => {
2003
2003
  // download first before we test buildTemplate
2004
2004
  await handler.retrieve('testInstance/testBU');
2005
2005
 
2006
- const expectedApiCallsRetrieve = 108;
2006
+ const expectedApiCallsRetrieve = 109;
2007
2007
  assert.equal(
2008
2008
  testUtils.getAPIHistoryLength(),
2009
2009
  expectedApiCallsRetrieve,
@@ -178,5 +178,5 @@
178
178
  "verification"
179
179
  ]
180
180
  },
181
- "version": "8.3.1"
181
+ "version": "9.0.0"
182
182
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "ExactTarget Enhanced FTP",
3
+ "customerKey": "ExactTarget Enhanced FTP",
4
+ "c__locationType": "Enhanced FTP Site Import Directory"
5
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "testExisting_fileLocation_aws_name",
3
+ "customerKey": "testExisting_fileLocation_aws",
4
+ "description": "updated via deploy",
5
+ "awsFileTransferLocation": {
6
+ "regionName": "eucentral1",
7
+ "transferAccelerationEnabled": false,
8
+ "accessKeyId": "key-id",
9
+ "relativePath": "my/path",
10
+ "bucketName": "bucket-name",
11
+ "authType": "AccessKey"
12
+ },
13
+ "c__locationType": "Amazon Simple Storage Service"
14
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "name": "testExisting_fileLocation_exsftp_name",
3
+ "customerKey": "testExisting_fileLocation_exsftp",
4
+ "description": "updated via deploy",
5
+ "sFtpFileTransferLocation": {
6
+ "portNumber": 22,
7
+ "userName": "abc",
8
+ "url": "sftp://test.com",
9
+ "authType": "Password"
10
+ },
11
+ "c__locationType": "External SFTP Site"
12
+ }
@@ -84,7 +84,7 @@ function getFilterPath(filter, QueryAllAccounts, shorten) {
84
84
  (QueryAllAccounts ? '-QAA' : '');
85
85
  if ((filterPath + '-response.xml').length > 256) {
86
86
  shorten ||= 10;
87
- return getFilterPath(filter, QueryAllAccounts, --shorten);
87
+ return getFilterPath(filter, QueryAllAccounts, shorten - 1);
88
88
  } else {
89
89
  return filterPath;
90
90
  }
@@ -276,6 +276,8 @@ export const handleRESTRequest = async (config) => {
276
276
  filterName = 'mostRecentVersionOnly';
277
277
  } else if (urlObj.searchParams.get('versionNumber')) {
278
278
  filterName = 'versionNumber';
279
+ } else if (urlObj.searchParams.get('status')) {
280
+ filterName = 'status';
279
281
  } else if (urlObj.searchParams.get('id')) {
280
282
  filterName = 'id';
281
283
  }
@@ -301,6 +303,9 @@ export const handleRESTRequest = async (config) => {
301
303
  : '') +
302
304
  (urlObj.searchParams.get('mostRecentVersionOnly')
303
305
  ? 'mostRecentVersionOnly=' + urlObj.searchParams.get('mostRecentVersionOnly')
306
+ : '') +
307
+ (urlObj.searchParams.get('status')
308
+ ? 'status=' + urlObj.searchParams.get('status')
304
309
  : '')
305
310
  : null;
306
311
 
@@ -338,7 +343,8 @@ export const handleRESTRequest = async (config) => {
338
343
  response.items &&
339
344
  filterName !== 'mostRecentVersionOnly' &&
340
345
  filterName !== 'versionNumber' &&
341
- filterName !== 'id'
346
+ filterName !== 'id' &&
347
+ filterName !== 'status'
342
348
  ) {
343
349
  response.items = response.items.filter((def) => def.name == filterName);
344
350
  }
@@ -407,7 +413,8 @@ export const handleRESTRequest = async (config) => {
407
413
  filterName &&
408
414
  filterName !== 'mostRecentVersionOnly' &&
409
415
  filterName !== 'versionNumber' &&
410
- filterName !== 'id'
416
+ filterName !== 'id' &&
417
+ filterName !== 'status'
411
418
  ) {
412
419
  const response = JSON.parse(
413
420
  await fs.readFile(testPath + '.json', {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "page": 1,
3
3
  "pageSize": 2,
4
- "count": 2,
4
+ "count": 5,
5
5
  "items": [
6
6
  {
7
7
  "name": "Salesforce Objects & Reports",
@@ -13,6 +13,31 @@
13
13
  "id": "41a5ded7-0d98-4910-a15f-d09e7ab0af24",
14
14
  "locationTypeId": 0,
15
15
  "relPath": "ExactTarget Enhanced FTP"
16
+ },
17
+ {
18
+ "name": "testExisting_fileLocation_gcp_name",
19
+ "id": "5fc2cc79-b4fb-465d-bc09-7dacf8afebae",
20
+ "locationTypeId": 16,
21
+ "locationUrl": "GCP://some-bucket/Task/Activity"
22
+ },
23
+
24
+ {
25
+ "name": "testExisting_fileLocation_azure_name",
26
+ "id": "fff73b41-dced-4a2a-a6cf-430a46a18df6",
27
+ "locationTypeId": 15,
28
+ "locationUrl": "Azure://container-name/my/path"
29
+ },
30
+ {
31
+ "name": "testExisting_fileLocation_aws_name",
32
+ "id": "62bb39b1-c84f-47b5-98a0-61e5d79b7f31",
33
+ "locationTypeId": 13,
34
+ "locationUrl": "S3://bucket-name/my/path"
35
+ },
36
+ {
37
+ "name": "testExisting_fileLocation_exsftp_name",
38
+ "id": "335802a4-479d-4834-a491-fc5d2d068132",
39
+ "locationTypeId": 2,
40
+ "locationUrl": "sftp://test.com"
16
41
  }
17
42
  ]
18
43
  }
@@ -0,0 +1,10 @@
1
+ {
2
+ "ssjsActivityId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
3
+ "name": "testExisting_script",
4
+ "key": "testExisting_script",
5
+ "description": "updated on deploy",
6
+ "script": "<script runat=\"server\">\n// dummy updated\n</script>",
7
+ "categoryId": 304,
8
+ "createdDate": "2022-10-20T00:41:26.163",
9
+ "modifiedDate": "2022-10-20T00:41:26.163"
10
+ }
@@ -5,6 +5,6 @@
5
5
  "description": "updated on deploy",
6
6
  "script": "<script runat=\"server\">\n// dummy updated\n</script>",
7
7
  "categoryId": 304,
8
- "createdDate": "2022-10-20T00:41:26.163",
9
- "modifiedDate": "2022-10-20T00:41:26.163"
8
+ "createdDate": "0001-01-01T00:00:00",
9
+ "modifiedDate": "0001-01-01T00:00:00"
10
10
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "requestId": "bfc409fb-2fd5-459a-81d6-525b20f6eed4",
3
+ "resultMessages": []
4
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "fileTransferLocation": {
3
+ "customerKey": "testExisting_fileLocation_aws",
4
+ "name": "testExisting_fileLocation_aws_name",
5
+ "description": "updated via deploy",
6
+ "locationType": "AmazonSimpleStorage",
7
+ "awsFileTransferLocation": {
8
+ "regionName": "eucentral1",
9
+ "transferAccelerationEnabled": false,
10
+ "accessKeyId": "key-id",
11
+ "relativePath": "my/path",
12
+ "bucketName": "bucket-name",
13
+ "authType": "AccessKey"
14
+ }
15
+ },
16
+ "requestId": "ae8149ee-819e-40b7-b08f-cb59fdf88ddb",
17
+ "resultMessages": []
18
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "requestId": "dba273e4-6036-4c1d-99de-e08626e102d5",
3
+ "resultMessages": []
4
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "fileTransferLocation": {
3
+ "customerKey": "testExisting_fileLocation_azure",
4
+ "name": "testExisting_fileLocation_azure_name",
5
+ "description": "blabla",
6
+ "locationType": "AzureBlobStorage",
7
+ "azureFileTransferLocation": {
8
+ "storageAccountName": "accountname",
9
+ "tenantId": "my-id",
10
+ "accessKeyId": "client-id",
11
+ "relativePath": "my/path",
12
+ "bucketName": "container-name",
13
+ "authType": "AccessKey"
14
+ }
15
+ },
16
+ "requestId": "d49c372e-9939-4b81-91d2-69a37a8bb036",
17
+ "resultMessages": []
18
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "fileTransferLocation": {
3
+ "customerKey": "testExisting_fileLocation_exsftp",
4
+ "name": "testExisting_fileLocation_exsftp_name",
5
+ "description": "updated via deploy",
6
+ "locationType": "ExternalSftp",
7
+ "sFtpFileTransferLocation": {
8
+ "portNumber": 22,
9
+ "userName": "abc",
10
+ "url": "sftp://test.com",
11
+ "authType": "Password"
12
+ }
13
+ },
14
+ "requestId": "05ef7257-72e6-4774-87c7-1f99aa892534",
15
+ "resultMessages": []
16
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "page": 1,
3
+ "pageSize": 50,
4
+ "count": 4,
5
+ "items": [
6
+ {
7
+ "customerKey": "testExisting_fileLocation_gcp",
8
+ "name": "testExisting_fileLocation_gcp_name",
9
+ "description": "",
10
+ "locationType": "GcpBlobStorage",
11
+ "gcpFileTransferLocation": {
12
+ "relativePath": "Task/Activity",
13
+ "bucketName": "some-bucket"
14
+ }
15
+ },
16
+ {
17
+ "customerKey": "testExisting_fileLocation_aws",
18
+ "name": "testExisting_fileLocation_aws_name",
19
+ "description": "",
20
+ "locationType": "AmazonSimpleStorage",
21
+ "awsFileTransferLocation": {
22
+ "regionName": "eucentral1",
23
+ "transferAccelerationEnabled": false,
24
+ "accessKeyId": "key-id",
25
+ "relativePath": "my/path",
26
+ "bucketName": "bucket-name",
27
+ "authType": "AccessKey"
28
+ }
29
+ },
30
+ {
31
+ "customerKey": "testExisting_fileLocation_azure",
32
+ "name": "testExisting_fileLocation_azure_name",
33
+ "description": "blabla",
34
+ "locationType": "AzureBlobStorage",
35
+ "azureFileTransferLocation": {
36
+ "storageAccountName": "accountname",
37
+ "tenantId": "my-id",
38
+ "accessKeyId": "client-id",
39
+ "relativePath": "my/path",
40
+ "bucketName": "container-name",
41
+ "authType": "AccessKey"
42
+ }
43
+ },
44
+ {
45
+ "customerKey": "testExisting_fileLocation_exsftp",
46
+ "name": "testExisting_fileLocation_exsftp_name",
47
+ "description": "blabla",
48
+ "locationType": "ExternalSftp",
49
+ "sFtpFileTransferLocation": {
50
+ "portNumber": 22,
51
+ "userName": "abc",
52
+ "url": "sftp://test.com",
53
+ "authType": "Password"
54
+ }
55
+ }
56
+ ],
57
+ "requestId": "3870c0e1-943c-4ae4-9cff-26736372dbe7",
58
+ "resultMessages": []
59
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "customerKey": "testTemplated_fileLocation_azure",
3
+ "description": "blabla",
4
+ "name": "testTemplated_fileLocation_azure_name",
5
+ "azureFileTransferLocation": {
6
+ "accessKeyId": "client-id",
7
+ "authType": "AccessKey",
8
+ "bucketName": "container-name",
9
+ "relativePath": "my/path",
10
+ "storageAccountName": "accountname",
11
+ "tenantId": "my-id"
12
+ },
13
+ "c__locationType": "Azure Blob Storage"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "customerKey": "testExisting_fileLocation_aws",
3
+ "name": "testExisting_fileLocation_aws_name",
4
+ "description": "",
5
+ "awsFileTransferLocation": {
6
+ "accessKeyId": "key-id",
7
+ "authType": "AccessKey",
8
+ "bucketName": "bucket-name",
9
+ "regionName": "eucentral1",
10
+ "relativePath": "my/path",
11
+ "transferAccelerationEnabled": false
12
+ },
13
+ "c__locationType": "Amazon Simple Storage Service"
14
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "customerKey": "testExisting_fileLocation_azure",
3
+ "name": "testExisting_fileLocation_azure_name",
4
+ "description": "blabla",
5
+ "azureFileTransferLocation": {
6
+ "accessKeyId": "client-id",
7
+ "authType": "AccessKey",
8
+ "bucketName": "container-name",
9
+ "relativePath": "my/path",
10
+ "storageAccountName": "accountname",
11
+ "tenantId": "my-id"
12
+ },
13
+ "c__locationType": "Azure Blob Storage"
14
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "customerKey": "ExactTarget Enhanced FTP",
3
+ "name": "ExactTarget Enhanced FTP",
4
+ "c__locationType": "Enhanced FTP Site Import Directory"
5
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "customerKey": "testExisting_fileLocation_exsftp",
3
+ "name": "testExisting_fileLocation_exsftp_name",
4
+ "description": "blabla",
5
+ "sFtpFileTransferLocation": {
6
+ "authType": "Password",
7
+ "portNumber": 22,
8
+ "url": "sftp://test.com",
9
+ "userName": "abc"
10
+ },
11
+ "c__locationType": "External SFTP Site"
12
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "customerKey": "testExisting_fileLocation_gcp",
3
+ "name": "testExisting_fileLocation_gcp_name",
4
+ "description": "",
5
+ "gcpFileTransferLocation": {
6
+ "bucketName": "some-bucket",
7
+ "relativePath": "Task/Activity"
8
+ },
9
+ "c__locationType": "Google Cloud Storage"
10
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "customerKey": "Salesforce Objects & Reports",
3
+ "name": "Salesforce Objects & Reports",
4
+ "c__locationType": "Salesforce Objects and Reports"
5
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "customerKey": "testExisting_fileLocation_aws",
3
+ "description": "updated via deploy",
4
+ "name": "testExisting_fileLocation_aws_name",
5
+ "awsFileTransferLocation": {
6
+ "accessKeyId": "key-id",
7
+ "authType": "AccessKey",
8
+ "bucketName": "bucket-name",
9
+ "regionName": "eucentral1",
10
+ "relativePath": "my/path",
11
+ "transferAccelerationEnabled": false
12
+ },
13
+ "c__locationType": "Amazon Simple Storage Service"
14
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "customerKey": "testExisting_fileLocation_exsftp",
3
+ "name": "testExisting_fileLocation_exsftp_name",
4
+ "description": "updated via deploy",
5
+ "sFtpFileTransferLocation": {
6
+ "authType": "Password",
7
+ "portNumber": 22,
8
+ "url": "sftp://test.com",
9
+ "userName": "abc"
10
+ },
11
+ "c__locationType": "External SFTP Site"
12
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "customerKey": "{{{prefix}}}fileLocation_azure",
3
+ "description": "blabla",
4
+ "name": "{{{prefix}}}fileLocation_azure_name",
5
+ "azureFileTransferLocation": {
6
+ "accessKeyId": "client-id",
7
+ "authType": "AccessKey",
8
+ "bucketName": "container-name",
9
+ "relativePath": "my/path",
10
+ "storageAccountName": "accountname",
11
+ "tenantId": "my-id"
12
+ },
13
+ "c__locationType": "Azure Blob Storage"
14
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "count": 1,
3
+ "page": 1,
4
+ "pageSize": 500,
5
+ "links": {},
6
+ "items": [
7
+ {
8
+ "id": "dsfdsafdsa-922c-4568-85a5-e5cc77efc3be",
9
+ "key": "testExisting_temail",
10
+ "name": "testExisting_temail",
11
+ "lastPublishedDate": "0001-01-01T00:00:00",
12
+ "description": "",
13
+ "version": 2,
14
+ "workflowApiVersion": 1,
15
+ "createdDate": "2022-03-24T02:20:32.74",
16
+ "modifiedDate": "2022-03-24T02:20:40.45",
17
+ "goals": [],
18
+ "exits": [],
19
+ "notifiers": [],
20
+ "entryMode": "MultipleEntries",
21
+ "definitionType": "Transactional",
22
+ "channel": "email",
23
+ "defaults": {
24
+ "properties": {
25
+ "analyticsTracking": {
26
+ "enabled": false,
27
+ "analyticsType": "google",
28
+ "urlDomainsToTrack": []
29
+ }
30
+ }
31
+ },
32
+ "metaData": {},
33
+ "executionMode": "Production",
34
+ "categoryId": 6298,
35
+ "status": "Published",
36
+ "scheduledStatus": "Draft",
37
+ "definitionId": "dsfdsafdsa-922c-4568-85a5-e5cc77efc3be"
38
+ }
39
+ ]
40
+ }