mcdev 7.6.1 → 7.6.3

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 (83) hide show
  1. package/.github/ISSUE_TEMPLATE/bug.yml +2 -0
  2. package/.github/workflows/close_issues_on_merge.yml +1 -1
  3. package/.github/workflows/coverage-base-update.yml +2 -2
  4. package/.github/workflows/coverage.yml +1 -1
  5. package/.vscode/extensions.json +1 -0
  6. package/.vscode/settings.json +21 -1
  7. package/@types/lib/index.d.ts +15 -15
  8. package/@types/lib/index.d.ts.map +1 -1
  9. package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
  10. package/@types/lib/metadataTypes/Automation.d.ts +6 -0
  11. package/@types/lib/metadataTypes/Automation.d.ts.map +1 -1
  12. package/@types/lib/metadataTypes/DataExtract.d.ts +7 -0
  13. package/@types/lib/metadataTypes/DataExtract.d.ts.map +1 -1
  14. package/@types/lib/metadataTypes/Event.d.ts.map +1 -1
  15. package/@types/lib/metadataTypes/FileLocation.d.ts +39 -5
  16. package/@types/lib/metadataTypes/FileLocation.d.ts.map +1 -1
  17. package/@types/lib/metadataTypes/Journey.d.ts +13 -3
  18. package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
  19. package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
  20. package/@types/lib/metadataTypes/SendClassification.d.ts +7 -0
  21. package/@types/lib/metadataTypes/SendClassification.d.ts.map +1 -1
  22. package/@types/lib/metadataTypes/SenderProfile.d.ts +7 -0
  23. package/@types/lib/metadataTypes/SenderProfile.d.ts.map +1 -1
  24. package/@types/lib/metadataTypes/definitions/Automation.definition.d.ts +6 -0
  25. package/@types/lib/metadataTypes/definitions/FileLocation.definition.d.ts +24 -0
  26. package/@types/lib/util/cache.d.ts +1 -1
  27. package/@types/lib/util/cache.d.ts.map +1 -1
  28. package/@types/lib/util/config.d.ts.map +1 -1
  29. package/@types/lib/util/file.d.ts.map +1 -1
  30. package/LICENSE +1 -1
  31. package/README.md +1 -1
  32. package/boilerplate/config.json +1 -0
  33. package/boilerplate/files/.vscode/extensions.json +1 -0
  34. package/boilerplate/forcedUpdates.json +4 -0
  35. package/lib/index.js +34 -17
  36. package/lib/metadataTypes/Asset.js +31 -8
  37. package/lib/metadataTypes/Automation.js +45 -25
  38. package/lib/metadataTypes/DataExtension.js +1 -1
  39. package/lib/metadataTypes/DataExtract.js +20 -0
  40. package/lib/metadataTypes/Event.js +20 -5
  41. package/lib/metadataTypes/FileLocation.js +43 -5
  42. package/lib/metadataTypes/Journey.js +176 -77
  43. package/lib/metadataTypes/MetadataType.js +22 -9
  44. package/lib/metadataTypes/SendClassification.js +20 -0
  45. package/lib/metadataTypes/SenderProfile.js +20 -0
  46. package/lib/metadataTypes/definitions/Automation.definition.js +6 -0
  47. package/lib/metadataTypes/definitions/FileLocation.definition.js +22 -2
  48. package/lib/util/cache.js +8 -3
  49. package/lib/util/config.js +6 -0
  50. package/lib/util/file.js +17 -14
  51. package/package.json +17 -18
  52. package/prepare-release.js +37 -0
  53. package/test/general.test.js +69 -6
  54. package/test/mockRoot/.mcdevrc.json +2 -1
  55. package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_journey_Multistep.journey-meta.json +418 -0
  56. package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_temail.journey-meta.json +212 -0
  57. package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_temail_notPublished.journey-meta.json +217 -0
  58. package/test/resourceFactory.js +12 -10
  59. package/test/resources/9999999/asset/build-templatebasedemail-expected.json +0 -1
  60. package/test/resources/9999999/asset/retrieve-templatebasedemail-expected.json +0 -1
  61. package/test/resources/9999999/asset/template-templatebasedemail-expected.json +0 -1
  62. package/test/resources/9999999/asset-deploy/block/testNew_asset_badExtension.bad-type-extension.json +39 -0
  63. package/test/resources/9999999/asset-deploy/block/testNew_asset_badName_bad.asset-block-meta.json +39 -0
  64. package/test/resources/9999999/dataExtract/patch-expected.json +3 -1
  65. package/test/resources/9999999/event/get-published-expected.json +30 -0
  66. package/test/resources/9999999/event/post_withExistingDE-callout-expected.json +211 -0
  67. package/test/resources/9999999/event/put-expected.json +12 -11
  68. package/test/resources/9999999/event-deploy/testNew_event_badExtension.bad-type-extension.json +200 -0
  69. package/test/resources/9999999/event-deploy/testNew_event_badName_bad.event-meta.json +200 -0
  70. package/test/resources/9999999/interaction/v1/eventDefinitions/key_DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e/get-response.json +39 -0
  71. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Multistep/put-response.json +461 -0
  72. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail/put-response.json +219 -0
  73. package/test/resources/9999999/interaction/v1/interactions/key_testExisting_temail_notPublished/put-response.json +226 -0
  74. package/test/resources/9999999/journey/get-published-expected.json +217 -0
  75. package/test/resources/9999999/sendClassification/patch-expected.json +3 -1
  76. package/test/resources/9999999/senderProfile/patch-expected.json +12 -8
  77. package/test/resources/9999999/transactionalEmail/get-published-expected.json +20 -0
  78. package/test/type.dataExtract.test.js +1 -1
  79. package/test/type.event.test.js +3 -3
  80. package/test/type.journey.test.js +222 -13
  81. package/test/type.sendClassification.test.js +1 -1
  82. package/test/type.senderProfile.test.js +1 -1
  83. package/test/utils.js +5 -1
@@ -0,0 +1,212 @@
1
+ {
2
+ "key": "testExisting_temail",
3
+ "name": "testExisting_temail",
4
+ "lastPublishedDate": "0001-01-01T00:00:00",
5
+ "description": "",
6
+ "version": 1,
7
+ "workflowApiVersion": 1,
8
+ "createdDate": "2022-03-24T02:20:32.74",
9
+ "modifiedDate": "2022-03-24T02:20:40.45",
10
+ "activities": [
11
+ {
12
+ "id": "9606bcb0-9246-4610-9800-963bc77fc20a",
13
+ "key": "EMAILV2-4",
14
+ "name": "testExisting_temail",
15
+ "description": "",
16
+ "type": "EMAILV2",
17
+ "outcomes": [
18
+ {
19
+ "key": "1f44021a-74ac-49be-a07c-67862228214d",
20
+ "arguments": {},
21
+ "metaData": { "invalid": false }
22
+ }
23
+ ],
24
+ "arguments": {},
25
+ "configurationArguments": {
26
+ "applicationExtensionKey": "jb-email-activity",
27
+ "isModified": true,
28
+ "triggeredSend": {
29
+ "autoAddSubscribers": true,
30
+ "autoUpdateSubscribers": true,
31
+ "bccEmail": [],
32
+ "ccEmail": [],
33
+ "created": {},
34
+ "domainExclusions": [],
35
+ "dynamicEmailSubject": "test email",
36
+ "emailSubject": "test email",
37
+ "exclusionFilter": "",
38
+ "isSalesforceTracking": true,
39
+ "isMultipart": true,
40
+ "isSendLogging": false,
41
+ "isStoppedOnJobError": false,
42
+ "modified": {},
43
+ "preHeader": "",
44
+ "throttleOpens": "1/1/0001 12:00:00 AM",
45
+ "throttleCloses": "1/1/0001 12:00:00 AM",
46
+ "isTrackingClicks": true,
47
+ "r__list_PathName": { "publicationList": "my subscribers/All Subscribers" },
48
+ "r__deliveryProfile_key": "Default",
49
+ "r__senderProfile_key": "Default",
50
+ "r__sendClassification_key": "Default Transactional",
51
+ "c__priority": "Medium",
52
+ "r__asset_name_readOnly": "testExisting_asset_message",
53
+ "r__asset_key": "testExisting_asset_message"
54
+ },
55
+ "r__transactionalEmail_key": "testExisting_temail"
56
+ },
57
+ "metaData": {
58
+ "highThroughput": { "r__dataExtension_key": "testExisting_dataExtension" },
59
+ "sections": {},
60
+ "isConfigured": true
61
+ },
62
+ "schema": {
63
+ "arguments": {
64
+ "requestID": {
65
+ "dataType": "Text",
66
+ "isNullable": true,
67
+ "direction": "Out",
68
+ "readOnly": false,
69
+ "access": "Hidden"
70
+ },
71
+ "messageKey": {
72
+ "dataType": "Text",
73
+ "isNullable": true,
74
+ "direction": "Out",
75
+ "readOnly": false,
76
+ "access": "Hidden"
77
+ },
78
+ "activityId": {
79
+ "dataType": "Text",
80
+ "isNullable": true,
81
+ "direction": "In",
82
+ "readOnly": false,
83
+ "access": "Hidden"
84
+ },
85
+ "definitionId": {
86
+ "dataType": "Text",
87
+ "isNullable": true,
88
+ "direction": "In",
89
+ "readOnly": true,
90
+ "access": "Hidden"
91
+ },
92
+ "emailSubjectDataBound": {
93
+ "dataType": "Text",
94
+ "isNullable": true,
95
+ "direction": "In",
96
+ "readOnly": true,
97
+ "access": "Hidden"
98
+ },
99
+ "contactId": {
100
+ "dataType": "Number",
101
+ "isNullable": true,
102
+ "direction": "In",
103
+ "readOnly": false,
104
+ "access": "Hidden"
105
+ },
106
+ "contactKey": {
107
+ "dataType": "Text",
108
+ "isNullable": false,
109
+ "direction": "In",
110
+ "readOnly": false,
111
+ "access": "Hidden"
112
+ },
113
+ "emailAddress": {
114
+ "dataType": "Text",
115
+ "isNullable": false,
116
+ "direction": "In",
117
+ "readOnly": false,
118
+ "access": "Hidden"
119
+ },
120
+ "sourceCustomObjectId": {
121
+ "dataType": "Text",
122
+ "isNullable": true,
123
+ "direction": "In",
124
+ "readOnly": false,
125
+ "access": "Hidden"
126
+ },
127
+ "sourceCustomObjectKey": {
128
+ "dataType": "LongNumber",
129
+ "isNullable": true,
130
+ "direction": "In",
131
+ "readOnly": false,
132
+ "access": "Hidden"
133
+ },
134
+ "fieldType": {
135
+ "dataType": "Text",
136
+ "isNullable": true,
137
+ "direction": "In",
138
+ "readOnly": false,
139
+ "access": "Hidden"
140
+ },
141
+ "eventData": {
142
+ "dataType": "Text",
143
+ "isNullable": true,
144
+ "direction": "In",
145
+ "readOnly": false,
146
+ "access": "Hidden"
147
+ },
148
+ "obfuscationProperties": {
149
+ "dataType": "Text",
150
+ "isNullable": true,
151
+ "direction": "In",
152
+ "readOnly": false,
153
+ "access": "Hidden"
154
+ },
155
+ "customObjectKey": {
156
+ "dataType": "LongNumber",
157
+ "isNullable": true,
158
+ "direction": "In",
159
+ "readOnly": true,
160
+ "access": "Hidden"
161
+ },
162
+ "definitionInstanceId": {
163
+ "dataType": "Text",
164
+ "isNullable": false,
165
+ "direction": "In",
166
+ "readOnly": false,
167
+ "access": "Hidden"
168
+ }
169
+ }
170
+ }
171
+ }
172
+ ],
173
+ "triggers": [
174
+ {
175
+ "key": "TRIGGER",
176
+ "name": "TRIGGER",
177
+ "description": "",
178
+ "type": "transactional-api",
179
+ "outcomes": [],
180
+ "arguments": {},
181
+ "configurationArguments": {},
182
+ "metaData": {
183
+ "chainType": "none",
184
+ "configurationRequired": false,
185
+ "iconUrl": "/images/icon_journeyBuilder-event-transactional-blue.svg",
186
+ "title": "Transactional API Event",
187
+ "category": "Transactional",
188
+ "entrySourceGroupConfigUrl": "null"
189
+ }
190
+ }
191
+ ],
192
+ "goals": [],
193
+ "exits": [],
194
+ "notifiers": [],
195
+ "entryMode": "MultipleEntries",
196
+ "definitionType": "Transactional",
197
+ "channel": "email",
198
+ "defaults": {
199
+ "properties": {
200
+ "analyticsTracking": {
201
+ "enabled": false,
202
+ "analyticsType": "google",
203
+ "urlDomainsToTrack": []
204
+ }
205
+ }
206
+ },
207
+ "metaData": {},
208
+ "executionMode": "Production",
209
+ "status": "Published",
210
+ "scheduledStatus": "Draft",
211
+ "r__folder_Path": "my journeys"
212
+ }
@@ -0,0 +1,217 @@
1
+ {
2
+ "activities": [
3
+ {
4
+ "arguments": {},
5
+ "configurationArguments": {
6
+ "applicationExtensionKey": "jb-email-activity",
7
+ "isModified": true,
8
+ "r__transactionalEmail_key": "testExisting_temail_notPublished",
9
+ "triggeredSend": {
10
+ "autoAddSubscribers": true,
11
+ "autoUpdateSubscribers": true,
12
+ "bccEmail": [],
13
+ "c__priority": "Medium",
14
+ "ccEmail": [],
15
+ "created": {},
16
+ "domainExclusions": [],
17
+ "dynamicEmailSubject": "%%=treatascontent(@subject)=%%",
18
+ "emailSubject": "%%=treatascontent(@subject)=%%",
19
+ "exclusionFilter": "",
20
+ "isMultipart": true,
21
+ "isSalesforceTracking": true,
22
+ "isSendLogging": false,
23
+ "isStoppedOnJobError": false,
24
+ "isTrackingClicks": true,
25
+ "modified": {},
26
+ "preHeader": "%%=treatascontent(@preheader)=%%\n",
27
+ "r__asset_key": "testExisting_asset_message",
28
+ "r__asset_name_readOnly": "testExisting_asset_message",
29
+ "r__deliveryProfile_key": "Default",
30
+ "r__list_PathName": {
31
+ "publicationList": "my subscribers/All Subscribers"
32
+ },
33
+ "r__sendClassification_key": "Default Transactional",
34
+ "r__senderProfile_key": "Default",
35
+ "throttleCloses": "1/1/0001 12:00:00 AM",
36
+ "throttleOpens": "1/1/0001 12:00:00 AM"
37
+ }
38
+ },
39
+ "description": "",
40
+ "id": "4ae63473-ea1e-4963-a257-6fea45a9038a",
41
+ "key": "EMAILV2-3",
42
+ "metaData": {
43
+ "highThroughput": {
44
+ "r__dataExtension_key": "testExisting_temail_notPublished"
45
+ },
46
+ "isConfigured": true,
47
+ "sections": {}
48
+ },
49
+ "name": "my email activity",
50
+ "outcomes": [
51
+ {
52
+ "arguments": {},
53
+ "key": "067f20ba-af36-4401-99d8-934100e1935d",
54
+ "metaData": {
55
+ "invalid": false
56
+ }
57
+ }
58
+ ],
59
+ "schema": {
60
+ "arguments": {
61
+ "activityId": {
62
+ "access": "Hidden",
63
+ "dataType": "Text",
64
+ "direction": "In",
65
+ "isNullable": true,
66
+ "readOnly": false
67
+ },
68
+ "contactId": {
69
+ "access": "Hidden",
70
+ "dataType": "Number",
71
+ "direction": "In",
72
+ "isNullable": true,
73
+ "readOnly": false
74
+ },
75
+ "contactKey": {
76
+ "access": "Hidden",
77
+ "dataType": "Text",
78
+ "direction": "In",
79
+ "isNullable": false,
80
+ "readOnly": false
81
+ },
82
+ "customObjectKey": {
83
+ "access": "Hidden",
84
+ "dataType": "LongNumber",
85
+ "direction": "In",
86
+ "isNullable": true,
87
+ "readOnly": true
88
+ },
89
+ "definitionId": {
90
+ "access": "Hidden",
91
+ "dataType": "Text",
92
+ "direction": "In",
93
+ "isNullable": true,
94
+ "readOnly": true
95
+ },
96
+ "definitionInstanceId": {
97
+ "access": "Hidden",
98
+ "dataType": "Text",
99
+ "direction": "In",
100
+ "isNullable": false,
101
+ "readOnly": false
102
+ },
103
+ "emailAddress": {
104
+ "access": "Hidden",
105
+ "dataType": "Text",
106
+ "direction": "In",
107
+ "isNullable": false,
108
+ "readOnly": false
109
+ },
110
+ "emailSubjectDataBound": {
111
+ "access": "Hidden",
112
+ "dataType": "Text",
113
+ "direction": "In",
114
+ "isNullable": true,
115
+ "readOnly": true
116
+ },
117
+ "eventData": {
118
+ "access": "Hidden",
119
+ "dataType": "Text",
120
+ "direction": "In",
121
+ "isNullable": true,
122
+ "readOnly": false
123
+ },
124
+ "fieldType": {
125
+ "access": "Hidden",
126
+ "dataType": "Text",
127
+ "direction": "In",
128
+ "isNullable": true,
129
+ "readOnly": false
130
+ },
131
+ "messageKey": {
132
+ "access": "Hidden",
133
+ "dataType": "Text",
134
+ "direction": "Out",
135
+ "isNullable": true,
136
+ "readOnly": false
137
+ },
138
+ "obfuscationProperties": {
139
+ "access": "Hidden",
140
+ "dataType": "Text",
141
+ "direction": "In",
142
+ "isNullable": true,
143
+ "readOnly": false
144
+ },
145
+ "requestID": {
146
+ "access": "Hidden",
147
+ "dataType": "Text",
148
+ "direction": "Out",
149
+ "isNullable": true,
150
+ "readOnly": false
151
+ },
152
+ "sourceCustomObjectId": {
153
+ "access": "Hidden",
154
+ "dataType": "Text",
155
+ "direction": "In",
156
+ "isNullable": true,
157
+ "readOnly": false
158
+ },
159
+ "sourceCustomObjectKey": {
160
+ "access": "Hidden",
161
+ "dataType": "LongNumber",
162
+ "direction": "In",
163
+ "isNullable": true,
164
+ "readOnly": false
165
+ }
166
+ }
167
+ },
168
+ "type": "EMAILV2"
169
+ }
170
+ ],
171
+ "channel": "email",
172
+ "createdDate": "2024-08-23T01:29:33.233",
173
+ "defaults": {
174
+ "properties": {}
175
+ },
176
+ "definitionType": "Transactional",
177
+ "description": "",
178
+ "entryMode": "MultipleEntries",
179
+ "executionMode": "Production",
180
+ "exits": [],
181
+ "goals": [],
182
+ "key": "testExisting_temail_notPublished",
183
+ "lastPublishedDate": "0001-01-01T00:00:00",
184
+ "metaData": {
185
+ "dataSource": "ContactsModel",
186
+ "highThroughputSending": {
187
+ "email": false
188
+ }
189
+ },
190
+ "modifiedDate": "2024-08-23T02:00:44.57",
191
+ "name": "testExisting_temail_notPublished",
192
+ "notifiers": [],
193
+ "r__folder_Path": "my journeys",
194
+ "scheduledStatus": "Draft",
195
+ "status": "Published",
196
+ "triggers": [
197
+ {
198
+ "arguments": {},
199
+ "configurationArguments": {},
200
+ "description": "",
201
+ "key": "TRIGGER",
202
+ "metaData": {
203
+ "category": "Transactional",
204
+ "chainType": "none",
205
+ "configurationRequired": false,
206
+ "entrySourceGroupConfigUrl": "null",
207
+ "iconUrl": "/images/icon_journeyBuilder-event-transactional-blue.svg",
208
+ "title": "Transactional API Event"
209
+ },
210
+ "name": "TRIGGER",
211
+ "outcomes": [],
212
+ "type": "transactional-api"
213
+ }
214
+ ],
215
+ "version": 1,
216
+ "workflowApiVersion": 1
217
+ }
@@ -40,6 +40,8 @@ if (Util.isRunViaVSCodeExtension) {
40
40
  export const tWarn = `${color.bgYellow}${color.fgBlack}TEST-WARNING${color.reset}`;
41
41
  export const tError = `${color.bgRed}${color.fgBlack}TEST-ERROR${color.reset}`;
42
42
 
43
+ const loadingFile = 'loading server file:///';
44
+
43
45
  /**
44
46
  * gets mock SOAP metadata for responding
45
47
  *
@@ -55,7 +57,7 @@ async function loadSOAPRecords(mcdevAction, type, mid, filter, QueryAllAccounts)
55
57
  const testPath = path.join('test', 'resources', mid.toString(), type, mcdevAction);
56
58
  const filterPath = getFilterPath(filter, QueryAllAccounts);
57
59
  if (await fs.pathExists(testPath + filterPath + '-response.xml')) {
58
- console.log('loading ' + projectRoot + testPath + filterPath + '-response.xml'); // eslint-disable-line no-console
60
+ console.log(loadingFile + projectRoot + testPath + filterPath + '-response.xml'); // eslint-disable-line no-console
59
61
  return fs.readFile(testPath + filterPath + '-response.xml', {
60
62
  encoding: 'utf8',
61
63
  });
@@ -71,7 +73,7 @@ async function loadSOAPRecords(mcdevAction, type, mid, filter, QueryAllAccounts)
71
73
  );
72
74
  /* eslint-enable no-console */
73
75
  }
74
- console.log('loading ' + projectRoot + testPath + '-response.xml'); // eslint-disable-line no-console
76
+ console.log(loadingFile + projectRoot + testPath + '-response.xml'); // eslint-disable-line no-console
75
77
  return fs.readFile(testPath + '-response.xml', {
76
78
  encoding: 'utf8',
77
79
  });
@@ -334,10 +336,10 @@ export const handleRESTRequest = async (config) => {
334
336
  );
335
337
  response.items = response.items.filter((def) => def.name == filterName);
336
338
  response.count = response.items.length;
337
- console.log('loading ' + projectRoot + testPathFilter + '.json'); // eslint-disable-line no-console
339
+ console.log(loadingFile + projectRoot + testPathFilter + '.json'); // eslint-disable-line no-console
338
340
  return [200, JSON.stringify(response)];
339
341
  } else {
340
- console.log('loading ' + projectRoot + testPathFilter + '.json'); // eslint-disable-line no-console
342
+ console.log(loadingFile + projectRoot + testPathFilter + '.json'); // eslint-disable-line no-console
341
343
  return [
342
344
  200,
343
345
  await fs.readFile(testPathFilter + '.json', {
@@ -346,7 +348,7 @@ export const handleRESTRequest = async (config) => {
346
348
  ];
347
349
  }
348
350
  } else if (testPathFilter && (await fs.pathExists(testPathFilter + '.txt'))) {
349
- console.log('loading ' + projectRoot + testPathFilter + '.txt'); // eslint-disable-line no-console
351
+ console.log(loadingFile + projectRoot + testPathFilter + '.txt'); // eslint-disable-line no-console
350
352
  return [
351
353
  200,
352
354
  await fs.readFile(testPathFilter + '.txt', {
@@ -354,7 +356,7 @@ export const handleRESTRequest = async (config) => {
354
356
  }),
355
357
  ];
356
358
  } else if (testPathFilterBody && (await fs.pathExists(testPathFilterBody + '.json'))) {
357
- console.log('loading ' + projectRoot + testPathFilterBody + '.json'); // eslint-disable-line no-console
359
+ console.log(loadingFile + projectRoot + testPathFilterBody + '.json'); // eslint-disable-line no-console
358
360
  return [
359
361
  200,
360
362
  await fs.readFile(testPathFilterBody + '.json', {
@@ -362,7 +364,7 @@ export const handleRESTRequest = async (config) => {
362
364
  }),
363
365
  ];
364
366
  } else if (testPathFilterBody && (await fs.pathExists(testPathFilterBody + '.txt'))) {
365
- console.log('loading ' + projectRoot + testPathFilterBody + '.txt'); // eslint-disable-line no-console
367
+ console.log(loadingFile + projectRoot + testPathFilterBody + '.txt'); // eslint-disable-line no-console
366
368
  return [
367
369
  200,
368
370
  await fs.readFile(testPathFilterBody + '.txt', {
@@ -403,10 +405,10 @@ export const handleRESTRequest = async (config) => {
403
405
  );
404
406
  response.items = response.items.filter((def) => def.name == filterName);
405
407
  response.count = response.items.length;
406
- console.log('loading ' + projectRoot + testPath + '.json'); // eslint-disable-line no-console
408
+ console.log(loadingFile + projectRoot + testPath + '.json'); // eslint-disable-line no-console
407
409
  return [200, JSON.stringify(response)];
408
410
  } else {
409
- console.log('loading ' + projectRoot + testPath + '.json'); // eslint-disable-line no-console
411
+ console.log(loadingFile + projectRoot + testPath + '.json'); // eslint-disable-line no-console
410
412
 
411
413
  return [
412
414
  200,
@@ -438,7 +440,7 @@ export const handleRESTRequest = async (config) => {
438
440
  );
439
441
  /* eslint-enable no-console */
440
442
  }
441
- console.log('loading ' + projectRoot + testPath + '.txt'); // eslint-disable-line no-console
443
+ console.log(loadingFile + projectRoot + testPath + '.txt'); // eslint-disable-line no-console
442
444
  return [
443
445
  200,
444
446
  await fs.readFile(testPath + '.txt', {
@@ -65,7 +65,6 @@
65
65
  "blocks": {
66
66
  "hy6ik0ftsb4": {
67
67
  "r__asset_key": "testTemplated_asset_htmlblock",
68
- "r__folder_Path": "Content Builder",
69
68
  "assetType": {
70
69
  "id": 197,
71
70
  "name": "htmlblock",
@@ -68,7 +68,6 @@
68
68
  "blocks": {
69
69
  "hy6ik0ftsb4": {
70
70
  "r__asset_key": "testExisting_asset_htmlblock",
71
- "r__folder_Path": "Content Builder",
72
71
  "assetType": {
73
72
  "id": 197,
74
73
  "name": "htmlblock",
@@ -65,7 +65,6 @@
65
65
  "blocks": {
66
66
  "hy6ik0ftsb4": {
67
67
  "r__asset_key": "{{{prefix}}}asset_htmlblock",
68
- "r__folder_Path": "Content Builder",
69
68
  "assetType": {
70
69
  "id": 197,
71
70
  "name": "htmlblock",
@@ -0,0 +1,39 @@
1
+ {
2
+ "customerKey": "testNew_asset_badExtension",
3
+ "assetType": {
4
+ "name": "textblock",
5
+ "displayName": "Text Block"
6
+ },
7
+ "fileProperties": {
8
+ "fileName": "testNew_asset_badExtension"
9
+ },
10
+ "name": "testNew_asset_badExtension",
11
+ "description": "bla bla",
12
+ "owner": {
13
+ "email": "joern.berkefeld@accenture.com",
14
+ "name": "Jörn Berkefeld"
15
+ },
16
+ "createdDate": "2022-10-14T08:54:26.643-06:00",
17
+ "createdBy": {
18
+ "email": "joern.berkefeld@accenture.com",
19
+ "name": "Jörn Berkefeld"
20
+ },
21
+ "modifiedDate": "2024-05-06T07:18:33.787-06:00",
22
+ "modifiedBy": {
23
+ "name": "SFMC DEVOPS app user"
24
+ },
25
+ "memberId": 1111111,
26
+ "status": {
27
+ "name": "Draft"
28
+ },
29
+ "meta": {
30
+ "wrapperStyles": {
31
+ "mobile": {
32
+ "visible": true
33
+ }
34
+ }
35
+ },
36
+ "availableViews": [],
37
+ "modelVersion": 2,
38
+ "r__folder_Path": "Content Builder"
39
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "customerKey": "testNew_asset_badName",
3
+ "assetType": {
4
+ "name": "textblock",
5
+ "displayName": "Text Block"
6
+ },
7
+ "fileProperties": {
8
+ "fileName": "testNew_asset_badName"
9
+ },
10
+ "name": "testNew_asset_badName",
11
+ "description": "bla bla",
12
+ "owner": {
13
+ "email": "joern.berkefeld@accenture.com",
14
+ "name": "Jörn Berkefeld"
15
+ },
16
+ "createdDate": "2022-10-14T08:54:26.643-06:00",
17
+ "createdBy": {
18
+ "email": "joern.berkefeld@accenture.com",
19
+ "name": "Jörn Berkefeld"
20
+ },
21
+ "modifiedDate": "2024-05-06T07:18:33.787-06:00",
22
+ "modifiedBy": {
23
+ "name": "SFMC DEVOPS app user"
24
+ },
25
+ "memberId": 1111111,
26
+ "status": {
27
+ "name": "Draft"
28
+ },
29
+ "meta": {
30
+ "wrapperStyles": {
31
+ "mobile": {
32
+ "visible": true
33
+ }
34
+ }
35
+ },
36
+ "availableViews": [],
37
+ "modelVersion": 2,
38
+ "r__folder_Path": "Content Builder"
39
+ }
@@ -1,5 +1,6 @@
1
1
  {
2
2
  "createdBy": "Jörn Berkefeld",
3
+ "createdDate": "2022-11-09T05:31:21.667",
3
4
  "dataFields": [
4
5
  {
5
6
  "name": "ColumnDelimiter",
@@ -27,11 +28,12 @@
27
28
  "value": "False"
28
29
  }
29
30
  ],
30
- "description": "created via deploy",
31
+ "description": "blabla",
31
32
  "fileSpec": "testExisting-%%Year%%-%%Month%%-%%Day%%",
32
33
  "intervalType": 0,
33
34
  "key": "testExisting_dataExtract",
34
35
  "modifiedBy": "Jörn Berkefeld",
36
+ "modifiedDate": "2022-11-17T07:13:36.9",
35
37
  "name": "testExisting_dataExtract",
36
38
  "r__dataExtractType_name": "Data Extension Extract"
37
39
  }