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,39 @@
1
+ {
2
+ "id": "649d512b-4d08-4eca-a14e-fc7b64b4ada8",
3
+ "type": "EmailAudience",
4
+ "name": "testExisting_journey_Multistep",
5
+ "description": "",
6
+ "createdDate": "2024-05-04T05:54:44.95",
7
+ "createdBy": 700301950,
8
+ "modifiedDate": "2024-05-04T05:54:44.95",
9
+ "modifiedBy": 700301950,
10
+ "mode": "Production",
11
+ "eventDefinitionKey": "DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e",
12
+ "dataExtensionId": "ed305df3-6502-ef11-a5c8-5cba2c702db8",
13
+ "dataExtensionName": "testExisting_journey_Multistep",
14
+ "sourceApplicationExtensionId": "97e942ee-6914-4d3d-9e52-37ecb71f79ed",
15
+ "filterDefinitionId": "00000000-0000-0000-0000-000000000000",
16
+ "filterDefinitionTemplate": "",
17
+ "iconUrl": "/images/icon-data-extension.svg",
18
+ "arguments": {
19
+ "serializedObjectType": 3,
20
+ "eventDefinitionId": "649d512b-4d08-4eca-a14e-fc7b64b4ada8",
21
+ "eventDefinitionKey": "DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e",
22
+ "dataExtensionId": "ed305df3-6502-ef11-a5c8-5cba2c702db8",
23
+ "criteria": ""
24
+ },
25
+ "configurationArguments": {
26
+ "unconfigured": true
27
+ },
28
+ "metaData": {
29
+ "criteriaDescription": "",
30
+ "scheduleState": "No Schedule"
31
+ },
32
+ "interactionCount": 1,
33
+ "isVisibleInPicker": false,
34
+ "isPlatformObject": false,
35
+ "category": "Audience",
36
+ "publishedInteractionCount": 0,
37
+ "automationId": "00000000-0000-0000-0000-000000000000",
38
+ "disableDEDataLogging": false
39
+ }
@@ -0,0 +1,461 @@
1
+ {
2
+ "id": "0175b971-71a3-4d8e-98ac-48121f3fbf4f",
3
+ "key": "testExisting_journey_Multistep",
4
+ "name": "testExisting_journey_Multistep",
5
+ "lastPublishedDate": "0001-01-01T00:00:00",
6
+ "description": "",
7
+ "version": 1,
8
+ "workflowApiVersion": 1,
9
+ "createdDate": "2024-05-04T05:54:48.027",
10
+ "modifiedDate": "2024-05-04T17:25:57.9",
11
+ "activities": [
12
+ {
13
+ "id": "342dd0aa-a6be-401e-8614-3538800bfd7c",
14
+ "key": "MULTICRITERIADECISIONV2-1",
15
+ "name": "",
16
+ "description": "",
17
+ "type": "MULTICRITERIADECISION",
18
+ "outcomes": [
19
+ {
20
+ "key": "default_path_1",
21
+ "next": "EMAILV2-1",
22
+ "arguments": {},
23
+ "metaData": {
24
+ "label": "send message",
25
+ "skipI18n": true,
26
+ "isLabelFromConversion": false,
27
+ "criteriaDescription": "Email is not null"
28
+ }
29
+ },
30
+ {
31
+ "key": "remainder_path",
32
+ "next": "WAITBYDURATION-2",
33
+ "arguments": {},
34
+ "metaData": {
35
+ "label": null
36
+ }
37
+ }
38
+ ],
39
+ "arguments": {},
40
+ "configurationArguments": {
41
+ "criteria": {
42
+ "default_path_1": "<FilterDefinition><ConditionSet Operator=\"AND\" ConditionSetName=\"Individual Filter Grouping\"><Condition IsEphemeralAttribute=\"true\" Key=\"Event.DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e.Email\" Operator=\"IsNotNull\" UiMetaData=\"{}\"><Value><![CDATA[]]></Value></Condition></ConditionSet></FilterDefinition>"
43
+ },
44
+ "schemaVersionId": "252"
45
+ },
46
+ "metaData": {
47
+ "isConfigured": true
48
+ },
49
+ "schema": {
50
+ "arguments": {
51
+ "actualChoice": {
52
+ "dataType": "Number",
53
+ "isNullable": false,
54
+ "direction": "Out",
55
+ "readOnly": false,
56
+ "access": "Hidden"
57
+ },
58
+ "filterResult": {
59
+ "dataType": "Text",
60
+ "isNullable": false,
61
+ "direction": "In",
62
+ "readOnly": true,
63
+ "access": "Hidden"
64
+ }
65
+ }
66
+ }
67
+ },
68
+ {
69
+ "id": "7ba1e59a-6be4-46c7-b76f-4c06feb1268a",
70
+ "key": "EMAILV2-1",
71
+ "name": "my custom activity name",
72
+ "description": "",
73
+ "type": "EMAILV2",
74
+ "outcomes": [
75
+ {
76
+ "key": "ff60a294-3804-4165-85cd-c7c19c8e3a6d",
77
+ "next": "WAITBYDURATION-1",
78
+ "arguments": {},
79
+ "metaData": {
80
+ "invalid": false
81
+ }
82
+ }
83
+ ],
84
+ "arguments": {},
85
+ "configurationArguments": {
86
+ "applicationExtensionKey": "jb-email-activity",
87
+ "isModified": true,
88
+ "googleAnalyticsCampaignName": "",
89
+ "triggeredSendId": "b3150cf0-6e78-e811-80d4-1402ec721c9d",
90
+ "triggeredSendKey": "wrong key",
91
+ "triggeredSend": {
92
+ "id": "outdated id",
93
+ "key": "outdated key",
94
+ "autoAddSubscribers": true,
95
+ "autoUpdateSubscribers": true,
96
+ "bccEmail": "",
97
+ "ccEmail": "",
98
+ "created": {
99
+ "name": "",
100
+ "date": ""
101
+ },
102
+ "description": "my custom description",
103
+ "domainExclusions": [],
104
+ "dynamicEmailSubject": "testExisting_ email subject",
105
+ "emailId": 808714,
106
+ "emailSubject": "testExisting_ email subject",
107
+ "exclusionFilter": "",
108
+ "isSalesforceTracking": false,
109
+ "isMultipart": true,
110
+ "isSendLogging": true,
111
+ "isStoppedOnJobError": false,
112
+ "modified": {
113
+ "name": "",
114
+ "date": ""
115
+ },
116
+ "preHeader": "testExisting_ email preheader",
117
+ "priority": 4,
118
+ "sendClassificationId": "95da425b-a06f-e611-96fe-38eaa7142c61",
119
+ "throttleOpens": "1/1/0001 12:00:00 AM",
120
+ "throttleCloses": "1/1/0001 12:00:00 AM",
121
+ "deliveryProfileId": "163f8417-13f7-e911-a2d8-1402ec938a35",
122
+ "senderProfileId": "a75d452b-7ef4-eb11-b82d-48df37d1da95",
123
+ "isTrackingClicks": true,
124
+ "publicationListId": 15
125
+ }
126
+ },
127
+ "metaData": {
128
+ "category": "message",
129
+ "version": "1.0",
130
+ "icon": "https://jb-email-activity.s7.marketingcloudapps.com/img/email-icon.svg",
131
+ "iconSmall": "https://jb-email-activity.s7.marketingcloudapps.com/img/email-icon.svg",
132
+ "statsContactIcon": null,
133
+ "original_icon": "/img/email-icon.svg",
134
+ "original_iconSmall": "/img/email-icon.svg",
135
+ "sections": {},
136
+ "isConfigured": true
137
+ },
138
+ "schema": {
139
+ "arguments": {
140
+ "requestID": {
141
+ "dataType": "Text",
142
+ "isNullable": true,
143
+ "direction": "Out",
144
+ "readOnly": false,
145
+ "access": "Hidden"
146
+ },
147
+ "messageKey": {
148
+ "dataType": "Text",
149
+ "isNullable": true,
150
+ "direction": "Out",
151
+ "readOnly": false,
152
+ "access": "Hidden"
153
+ },
154
+ "activityId": {
155
+ "dataType": "Text",
156
+ "isNullable": true,
157
+ "direction": "In",
158
+ "readOnly": false,
159
+ "access": "Hidden"
160
+ },
161
+ "definitionId": {
162
+ "dataType": "Text",
163
+ "isNullable": true,
164
+ "direction": "In",
165
+ "readOnly": true,
166
+ "access": "Hidden"
167
+ },
168
+ "emailSubjectDataBound": {
169
+ "dataType": "Text",
170
+ "isNullable": true,
171
+ "direction": "In",
172
+ "readOnly": true,
173
+ "access": "Hidden"
174
+ },
175
+ "contactId": {
176
+ "dataType": "Number",
177
+ "isNullable": true,
178
+ "direction": "In",
179
+ "readOnly": false,
180
+ "access": "Hidden"
181
+ },
182
+ "contactKey": {
183
+ "dataType": "Text",
184
+ "isNullable": false,
185
+ "direction": "In",
186
+ "readOnly": false,
187
+ "access": "Hidden"
188
+ },
189
+ "emailAddress": {
190
+ "dataType": "Text",
191
+ "isNullable": false,
192
+ "direction": "In",
193
+ "readOnly": false,
194
+ "access": "Hidden"
195
+ },
196
+ "sourceCustomObjectId": {
197
+ "dataType": "Text",
198
+ "isNullable": true,
199
+ "direction": "In",
200
+ "readOnly": false,
201
+ "access": "Hidden"
202
+ },
203
+ "sourceCustomObjectKey": {
204
+ "dataType": "LongNumber",
205
+ "isNullable": true,
206
+ "direction": "In",
207
+ "readOnly": false,
208
+ "access": "Hidden"
209
+ },
210
+ "fieldType": {
211
+ "dataType": "Text",
212
+ "isNullable": true,
213
+ "direction": "In",
214
+ "readOnly": false,
215
+ "access": "Hidden"
216
+ },
217
+ "eventData": {
218
+ "dataType": "Text",
219
+ "isNullable": true,
220
+ "direction": "In",
221
+ "readOnly": false,
222
+ "access": "Hidden"
223
+ },
224
+ "obfuscationProperties": {
225
+ "dataType": "Text",
226
+ "isNullable": true,
227
+ "direction": "In",
228
+ "readOnly": false,
229
+ "access": "Hidden"
230
+ },
231
+ "customObjectKey": {
232
+ "dataType": "LongNumber",
233
+ "isNullable": true,
234
+ "direction": "In",
235
+ "readOnly": true,
236
+ "access": "Hidden"
237
+ },
238
+ "definitionInstanceId": {
239
+ "dataType": "Text",
240
+ "isNullable": false,
241
+ "direction": "In",
242
+ "readOnly": false,
243
+ "access": "Hidden"
244
+ }
245
+ }
246
+ }
247
+ },
248
+ {
249
+ "id": "70572b1a-e274-4f09-a3fa-6fc0732ec52b",
250
+ "key": "WAITBYDURATION-2",
251
+ "name": "",
252
+ "description": "",
253
+ "type": "WAIT",
254
+ "outcomes": [
255
+ {
256
+ "key": "a0908f9f-bc3c-47f7-9489-7fef5af25ce3",
257
+ "arguments": {},
258
+ "metaData": {
259
+ "invalid": false
260
+ }
261
+ }
262
+ ],
263
+ "arguments": {},
264
+ "configurationArguments": {
265
+ "waitDuration": 1,
266
+ "waitUnit": "DAYS"
267
+ },
268
+ "metaData": {
269
+ "isConfigured": true,
270
+ "uiType": "WAITBYDURATION"
271
+ },
272
+ "schema": {
273
+ "arguments": {
274
+ "endDate": {
275
+ "dataType": "Date",
276
+ "isNullable": false,
277
+ "direction": "Out",
278
+ "readOnly": false,
279
+ "access": "Hidden"
280
+ },
281
+ "waitEndDateAttributeDataBound": {
282
+ "dataType": "Text",
283
+ "isNullable": true,
284
+ "direction": "In",
285
+ "readOnly": false,
286
+ "access": "Hidden"
287
+ },
288
+ "waitDefinitionId": {
289
+ "dataType": "Text",
290
+ "isNullable": false,
291
+ "direction": "In",
292
+ "readOnly": false,
293
+ "access": "Hidden"
294
+ },
295
+ "waitForEventId": {
296
+ "dataType": "Text",
297
+ "isNullable": true,
298
+ "direction": "In",
299
+ "readOnly": false,
300
+ "access": "Hidden"
301
+ },
302
+ "executionMode": {
303
+ "dataType": "Text",
304
+ "isNullable": false,
305
+ "direction": "In",
306
+ "readOnly": false,
307
+ "access": "Hidden"
308
+ },
309
+ "startActivityKey": {
310
+ "dataType": "Text",
311
+ "isNullable": true,
312
+ "direction": "In",
313
+ "readOnly": false,
314
+ "access": "Hidden"
315
+ },
316
+ "waitQueueId": {
317
+ "dataType": "LongNumber",
318
+ "isNullable": true,
319
+ "direction": "In",
320
+ "readOnly": false,
321
+ "access": "Hidden"
322
+ }
323
+ }
324
+ }
325
+ },
326
+ {
327
+ "id": "e2a486cf-c85f-4543-88a2-d579cac1e0de",
328
+ "key": "WAITBYDURATION-1",
329
+ "name": "1 day",
330
+ "description": "",
331
+ "type": "WAIT",
332
+ "outcomes": [
333
+ {
334
+ "key": "97af222a-450a-429e-8925-649b72f01ccf",
335
+ "arguments": {},
336
+ "metaData": {
337
+ "invalid": false
338
+ }
339
+ }
340
+ ],
341
+ "arguments": {},
342
+ "configurationArguments": {
343
+ "waitDuration": 1,
344
+ "waitUnit": "DAYS"
345
+ },
346
+ "metaData": {
347
+ "isConfigured": true,
348
+ "uiType": "WAITBYDURATION"
349
+ },
350
+ "schema": {
351
+ "arguments": {
352
+ "endDate": {
353
+ "dataType": "Date",
354
+ "isNullable": false,
355
+ "direction": "Out",
356
+ "readOnly": false,
357
+ "access": "Hidden"
358
+ },
359
+ "waitEndDateAttributeDataBound": {
360
+ "dataType": "Text",
361
+ "isNullable": true,
362
+ "direction": "In",
363
+ "readOnly": false,
364
+ "access": "Hidden"
365
+ },
366
+ "waitDefinitionId": {
367
+ "dataType": "Text",
368
+ "isNullable": false,
369
+ "direction": "In",
370
+ "readOnly": false,
371
+ "access": "Hidden"
372
+ },
373
+ "waitForEventId": {
374
+ "dataType": "Text",
375
+ "isNullable": true,
376
+ "direction": "In",
377
+ "readOnly": false,
378
+ "access": "Hidden"
379
+ },
380
+ "executionMode": {
381
+ "dataType": "Text",
382
+ "isNullable": false,
383
+ "direction": "In",
384
+ "readOnly": false,
385
+ "access": "Hidden"
386
+ },
387
+ "startActivityKey": {
388
+ "dataType": "Text",
389
+ "isNullable": true,
390
+ "direction": "In",
391
+ "readOnly": false,
392
+ "access": "Hidden"
393
+ },
394
+ "waitQueueId": {
395
+ "dataType": "LongNumber",
396
+ "isNullable": true,
397
+ "direction": "In",
398
+ "readOnly": false,
399
+ "access": "Hidden"
400
+ }
401
+ }
402
+ }
403
+ }
404
+ ],
405
+ "triggers": [
406
+ {
407
+ "id": "92753481-1258-49bd-8a84-921ed63bcc2e",
408
+ "key": "TRIGGER",
409
+ "name": "TRIGGER",
410
+ "description": "",
411
+ "type": "EmailAudience",
412
+ "outcomes": [],
413
+ "arguments": {},
414
+ "configurationArguments": {},
415
+ "metaData": {
416
+ "eventDefinitionId": "649d512b-4d08-4eca-a14e-fc7b64b4ada8",
417
+ "eventDefinitionKey": "DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e",
418
+ "chainType": "None",
419
+ "configurationRequired": false,
420
+ "iconUrl": "/images/icon-data-extension.svg",
421
+ "title": "Data Extension",
422
+ "entrySourceGroupConfigUrl": "jb:///data/entry/audience/entrysourcegroupconfig.json",
423
+ "sourceInteractionId": "00000000-0000-0000-0000-000000000000"
424
+ }
425
+ }
426
+ ],
427
+ "goals": [],
428
+ "exits": [],
429
+ "notifiers": [],
430
+ "stats": {
431
+ "currentPopulation": 0,
432
+ "cumulativePopulation": 0,
433
+ "metGoal": 0,
434
+ "metExitCriteria": 0,
435
+ "goalPerformance": 0
436
+ },
437
+ "entryMode": "NotSet",
438
+ "definitionType": "Multistep",
439
+ "channel": "",
440
+ "defaults": {
441
+ "email": ["{{Event.DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e.\"Email\"}}"],
442
+ "properties": {
443
+ "analyticsTracking": {
444
+ "enabled": true,
445
+ "analyticsType": "google",
446
+ "urlDomainsToTrack": []
447
+ }
448
+ }
449
+ },
450
+ "metaData": {
451
+ "dataSource": "ContactsModel",
452
+ "highThroughputSending": {
453
+ "email": false
454
+ }
455
+ },
456
+ "executionMode": "Production",
457
+ "categoryId": 6298,
458
+ "status": "Draft",
459
+ "definitionId": "0175b971-71a3-4d8e-98ac-48121f3fbf4f",
460
+ "scheduledStatus": "Draft"
461
+ }