mcdev 7.10.0 → 7.10.1
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.
- package/.github/ISSUE_TEMPLATE/bug.yml +1 -0
- package/@types/lib/index.d.ts +4 -4
- package/@types/lib/index.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Automation.d.ts +62 -51
- package/@types/lib/metadataTypes/Automation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtract.d.ts +13 -2
- package/@types/lib/metadataTypes/DataExtract.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Event.d.ts +8 -0
- package/@types/lib/metadataTypes/Event.d.ts.map +1 -1
- package/@types/lib/metadataTypes/ImportFile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MetadataType.d.ts +19 -3
- package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileMessage.d.ts.map +1 -1
- package/@types/lib/metadataTypes/SenderProfile.d.ts +3 -1
- package/@types/lib/metadataTypes/SenderProfile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/definitions/Automation.definition.d.ts +37 -1
- package/@types/lib/metadataTypes/definitions/DataExtract.definition.d.ts +21 -3
- package/@types/lib/metadataTypes/definitions/SenderProfile.definition.d.ts +3 -1
- package/@types/lib/util/util.d.ts +1 -0
- package/@types/lib/util/util.d.ts.map +1 -1
- package/@types/lib/util/validations.d.ts.map +1 -1
- package/@types/types/mcdev.d.d.ts +32 -0
- package/@types/types/mcdev.d.d.ts.map +1 -1
- package/lib/index.js +14 -7
- package/lib/metadataTypes/Asset.js +4 -5
- package/lib/metadataTypes/Automation.js +202 -399
- package/lib/metadataTypes/DataExtension.js +1 -1
- package/lib/metadataTypes/DataExtract.js +41 -6
- package/lib/metadataTypes/DomainVerification.js +1 -1
- package/lib/metadataTypes/EmailSend.js +3 -3
- package/lib/metadataTypes/Event.js +39 -20
- package/lib/metadataTypes/FileTransfer.js +5 -5
- package/lib/metadataTypes/ImportFile.js +9 -7
- package/lib/metadataTypes/Journey.js +4 -9
- package/lib/metadataTypes/MetadataType.js +80 -58
- package/lib/metadataTypes/MobileKeyword.js +2 -2
- package/lib/metadataTypes/MobileMessage.js +4 -2
- package/lib/metadataTypes/Query.js +5 -5
- package/lib/metadataTypes/Script.js +5 -5
- package/lib/metadataTypes/SendClassification.js +3 -3
- package/lib/metadataTypes/SenderProfile.js +3 -3
- package/lib/metadataTypes/TransactionalEmail.js +1 -1
- package/lib/metadataTypes/TransactionalMessage.js +1 -1
- package/lib/metadataTypes/TriggeredSend.js +3 -3
- package/lib/metadataTypes/Verification.js +1 -1
- package/lib/metadataTypes/definitions/Automation.definition.js +43 -7
- package/lib/metadataTypes/definitions/DataExtract.definition.js +16 -3
- package/lib/metadataTypes/definitions/DomainVerification.definition.js +1 -1
- package/lib/metadataTypes/definitions/SenderProfile.definition.js +3 -1
- package/lib/util/util.js +12 -0
- package/lib/util/validations.js +3 -1
- package/package.json +1 -1
- package/test/general.test.js +39 -34
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/resourceFactory.js +8 -5
- package/test/resources/9999999/automation/create-expected.json +2 -1
- package/test/resources/9999999/automation/retrieve-expected.json +7 -1
- package/test/resources/9999999/automation/retrieve-wait-expected.json +7 -1
- package/test/resources/9999999/automation/update-expected.json +24 -2
- package/test/resources/9999999/automation/update-testExisting_automation-expected.md +5 -2
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/patch-response.json +1 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/patch-response.json +1 -0
- package/test/resources/9999999/dataExtract/build-expected.json +2 -2
- package/test/resources/9999999/dataExtract/get-expected.json +2 -2
- package/test/resources/9999999/dataExtract/patch-expected.json +2 -2
- package/test/resources/9999999/dataExtract/post-expected.json +2 -2
- package/test/resources/9999999/dataExtract/template-expected.json +2 -2
- package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow-PAUSED/get-response.json +3 -0
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/NewRkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +29 -0
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +50 -0
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow-PAUSED/get-response.json +51 -0
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/bHF6Q0Q3b1VXa21OdVQzZFQ0ckVSQToyNTow/get-response.json +7 -1
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/cDhLQ2o2NExxVVc5N3VZeHF5WEExUToyNTow/get-response.json +79 -0
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/get-response.json +61 -2
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/post-response-pauseSchedule.json +1 -0
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/post-response-schedule.json +1 -0
- package/test/resources/9999999/messaging/v1/domainverification/get-response.json +10 -1
- package/test/resources/9999999/senderProfile/build-expected.json +1 -1
- package/test/resources/9999999/senderProfile/get-expected.json +1 -1
- package/test/resources/9999999/senderProfile/patch-expected.json +1 -1
- package/test/resources/9999999/senderProfile/retrieve-response.xml +1 -1
- package/test/resources/9999999/senderProfile/template-expected.json +1 -1
- package/test/type.automation.test.js +18 -17
- package/test/type.dataExtract.test.js +4 -4
- package/test/type.domainVerification.test.js +3 -3
- package/test/type.journey.test.js +11 -4
- package/test/type.query.test.js +2 -2
- package/test/type.script.test.js +1 -1
- package/test/type.senderProfile.test.js +20 -3
- package/test/type.triggeredSend.test.js +13 -1
- package/types/mcdev.d.js +8 -0
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +0 -52
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-pause-response.xml +0 -38
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_pause-response.xml +0 -52
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_schedule-response.xml +0 -52
- package/test/resources/9999999/automation/schedule-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +0 -52
|
@@ -58,7 +58,7 @@ describe('type: automation', () => {
|
|
|
58
58
|
);
|
|
59
59
|
assert.equal(
|
|
60
60
|
testUtils.getAPIHistoryLength(),
|
|
61
|
-
|
|
61
|
+
32,
|
|
62
62
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
63
63
|
);
|
|
64
64
|
return;
|
|
@@ -144,7 +144,7 @@ describe('type: automation', () => {
|
|
|
144
144
|
|
|
145
145
|
assert.equal(
|
|
146
146
|
testUtils.getAPIHistoryLength(),
|
|
147
|
-
|
|
147
|
+
50,
|
|
148
148
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
149
149
|
);
|
|
150
150
|
return;
|
|
@@ -212,7 +212,7 @@ describe('type: automation', () => {
|
|
|
212
212
|
|
|
213
213
|
assert.equal(
|
|
214
214
|
testUtils.getAPIHistoryLength(),
|
|
215
|
-
|
|
215
|
+
54,
|
|
216
216
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
217
217
|
);
|
|
218
218
|
return;
|
|
@@ -279,7 +279,7 @@ describe('type: automation', () => {
|
|
|
279
279
|
|
|
280
280
|
assert.equal(
|
|
281
281
|
testUtils.getAPIHistoryLength(),
|
|
282
|
-
|
|
282
|
+
54,
|
|
283
283
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
284
284
|
);
|
|
285
285
|
return;
|
|
@@ -318,7 +318,7 @@ describe('type: automation', () => {
|
|
|
318
318
|
// check number of API calls
|
|
319
319
|
assert.equal(
|
|
320
320
|
testUtils.getAPIHistoryLength(),
|
|
321
|
-
|
|
321
|
+
26,
|
|
322
322
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
323
323
|
);
|
|
324
324
|
return;
|
|
@@ -362,7 +362,7 @@ describe('type: automation', () => {
|
|
|
362
362
|
// check number of API calls
|
|
363
363
|
assert.equal(
|
|
364
364
|
testUtils.getAPIHistoryLength(),
|
|
365
|
-
|
|
365
|
+
70,
|
|
366
366
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
367
367
|
);
|
|
368
368
|
return;
|
|
@@ -406,7 +406,7 @@ describe('type: automation', () => {
|
|
|
406
406
|
// check number of API calls
|
|
407
407
|
assert.equal(
|
|
408
408
|
testUtils.getAPIHistoryLength(),
|
|
409
|
-
|
|
409
|
+
72,
|
|
410
410
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
411
411
|
);
|
|
412
412
|
return;
|
|
@@ -450,7 +450,7 @@ describe('type: automation', () => {
|
|
|
450
450
|
// check number of API calls
|
|
451
451
|
assert.equal(
|
|
452
452
|
testUtils.getAPIHistoryLength(),
|
|
453
|
-
|
|
453
|
+
72,
|
|
454
454
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
455
455
|
);
|
|
456
456
|
return;
|
|
@@ -494,7 +494,7 @@ describe('type: automation', () => {
|
|
|
494
494
|
// check number of API calls
|
|
495
495
|
assert.equal(
|
|
496
496
|
testUtils.getAPIHistoryLength(),
|
|
497
|
-
|
|
497
|
+
65,
|
|
498
498
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
499
499
|
);
|
|
500
500
|
return;
|
|
@@ -538,7 +538,7 @@ describe('type: automation', () => {
|
|
|
538
538
|
// check number of API calls
|
|
539
539
|
assert.equal(
|
|
540
540
|
testUtils.getAPIHistoryLength(),
|
|
541
|
-
|
|
541
|
+
72,
|
|
542
542
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
543
543
|
);
|
|
544
544
|
return;
|
|
@@ -582,7 +582,7 @@ describe('type: automation', () => {
|
|
|
582
582
|
// check number of API calls
|
|
583
583
|
assert.equal(
|
|
584
584
|
testUtils.getAPIHistoryLength(),
|
|
585
|
-
|
|
585
|
+
72,
|
|
586
586
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
587
587
|
);
|
|
588
588
|
return;
|
|
@@ -626,7 +626,7 @@ describe('type: automation', () => {
|
|
|
626
626
|
);
|
|
627
627
|
assert.equal(
|
|
628
628
|
testUtils.getAPIHistoryLength(),
|
|
629
|
-
|
|
629
|
+
28,
|
|
630
630
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
631
631
|
);
|
|
632
632
|
return;
|
|
@@ -670,7 +670,7 @@ describe('type: automation', () => {
|
|
|
670
670
|
);
|
|
671
671
|
assert.equal(
|
|
672
672
|
testUtils.getAPIHistoryLength(),
|
|
673
|
-
|
|
673
|
+
32,
|
|
674
674
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
675
675
|
);
|
|
676
676
|
return;
|
|
@@ -679,7 +679,7 @@ describe('type: automation', () => {
|
|
|
679
679
|
it('Should create a automation template via buildTemplate with --dependencies', async () => {
|
|
680
680
|
// download first before we test buildTemplate
|
|
681
681
|
await handler.retrieve('testInstance/testBU');
|
|
682
|
-
const expectedApiCallsRetrieve =
|
|
682
|
+
const expectedApiCallsRetrieve = 97;
|
|
683
683
|
assert.equal(
|
|
684
684
|
testUtils.getAPIHistoryLength(),
|
|
685
685
|
expectedApiCallsRetrieve,
|
|
@@ -704,15 +704,16 @@ describe('type: automation', () => {
|
|
|
704
704
|
Object.keys(templateResult),
|
|
705
705
|
[
|
|
706
706
|
'automation',
|
|
707
|
+
'dataExtension',
|
|
707
708
|
'dataExtract',
|
|
709
|
+
'domainVerification',
|
|
708
710
|
'emailSend',
|
|
709
|
-
'dataExtension',
|
|
710
|
-
'sendClassification',
|
|
711
|
-
'senderProfile',
|
|
712
711
|
'fileTransfer',
|
|
713
712
|
'importFile',
|
|
714
713
|
'query',
|
|
715
714
|
'script',
|
|
715
|
+
'sendClassification',
|
|
716
|
+
'senderProfile',
|
|
716
717
|
'verification',
|
|
717
718
|
],
|
|
718
719
|
'did not create deployment packages for all relevant types'
|
|
@@ -36,7 +36,7 @@ describe('type: dataExtract', () => {
|
|
|
36
36
|
);
|
|
37
37
|
assert.equal(
|
|
38
38
|
testUtils.getAPIHistoryLength(),
|
|
39
|
-
|
|
39
|
+
9,
|
|
40
40
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
41
41
|
);
|
|
42
42
|
return;
|
|
@@ -76,7 +76,7 @@ describe('type: dataExtract', () => {
|
|
|
76
76
|
// check number of API calls
|
|
77
77
|
assert.equal(
|
|
78
78
|
testUtils.getAPIHistoryLength(),
|
|
79
|
-
|
|
79
|
+
13,
|
|
80
80
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
81
81
|
);
|
|
82
82
|
return;
|
|
@@ -120,7 +120,7 @@ describe('type: dataExtract', () => {
|
|
|
120
120
|
);
|
|
121
121
|
assert.equal(
|
|
122
122
|
testUtils.getAPIHistoryLength(),
|
|
123
|
-
|
|
123
|
+
9,
|
|
124
124
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
125
125
|
);
|
|
126
126
|
return;
|
|
@@ -162,7 +162,7 @@ describe('type: dataExtract', () => {
|
|
|
162
162
|
);
|
|
163
163
|
assert.equal(
|
|
164
164
|
testUtils.getAPIHistoryLength(),
|
|
165
|
-
|
|
165
|
+
9,
|
|
166
166
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
167
167
|
);
|
|
168
168
|
return;
|
|
@@ -29,13 +29,13 @@ describe('type: domainVerification', () => {
|
|
|
29
29
|
retrieve['testInstance/testBU'].domainVerification
|
|
30
30
|
? Object.keys(retrieve['testInstance/testBU'].domainVerification).length
|
|
31
31
|
: 0,
|
|
32
|
-
|
|
32
|
+
5,
|
|
33
33
|
'Unexpected number of assets in retrieve response'
|
|
34
34
|
);
|
|
35
35
|
const typeCache = cache.getCache()?.domainVerification;
|
|
36
36
|
assert.equal(
|
|
37
37
|
typeCache ? Object.keys(typeCache).length : 0,
|
|
38
|
-
|
|
38
|
+
5,
|
|
39
39
|
'unexpected number of domainVerifications'
|
|
40
40
|
);
|
|
41
41
|
assert.deepEqual(
|
|
@@ -72,7 +72,7 @@ describe('type: domainVerification', () => {
|
|
|
72
72
|
const cached = cache.getCache();
|
|
73
73
|
assert.equal(
|
|
74
74
|
cached.domainVerification ? Object.keys(cached.domainVerification).length : 0,
|
|
75
|
-
|
|
75
|
+
6,
|
|
76
76
|
'unexpected number of domainVerifications in cache'
|
|
77
77
|
);
|
|
78
78
|
assert.deepEqual(
|
|
@@ -491,12 +491,13 @@ describe('type: journey', () => {
|
|
|
491
491
|
assert.deepEqual(
|
|
492
492
|
Object.keys(templatedItems),
|
|
493
493
|
[
|
|
494
|
-
'
|
|
495
|
-
'event',
|
|
494
|
+
'asset',
|
|
496
495
|
'dataExtension',
|
|
497
|
-
'
|
|
496
|
+
'domainVerification',
|
|
497
|
+
'event',
|
|
498
|
+
'journey',
|
|
498
499
|
'sendClassification',
|
|
499
|
-
'
|
|
500
|
+
'senderProfile',
|
|
500
501
|
],
|
|
501
502
|
'expected specific types to be templated'
|
|
502
503
|
);
|
|
@@ -526,6 +527,12 @@ describe('type: journey', () => {
|
|
|
526
527
|
],
|
|
527
528
|
'expected specific dataExtensions to be templated'
|
|
528
529
|
);
|
|
530
|
+
// domainVerification
|
|
531
|
+
assert.deepEqual(
|
|
532
|
+
templatedItems.domainVerification.map((item) => item.domain),
|
|
533
|
+
['joern.berkefeld+test@accenture.com', 'joern.berkefeld@accenture.com'],
|
|
534
|
+
'expected specific domainVerifications to be templated'
|
|
535
|
+
);
|
|
529
536
|
// senderProfile
|
|
530
537
|
assert.deepEqual(
|
|
531
538
|
templatedItems.senderProfile.map((item) => item.CustomerKey),
|
package/test/type.query.test.js
CHANGED
|
@@ -648,7 +648,7 @@ describe('type: query', () => {
|
|
|
648
648
|
// check number of API calls
|
|
649
649
|
assert.equal(
|
|
650
650
|
testUtils.getAPIHistoryLength(),
|
|
651
|
-
|
|
651
|
+
46,
|
|
652
652
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
653
653
|
);
|
|
654
654
|
return;
|
|
@@ -690,7 +690,7 @@ describe('type: query', () => {
|
|
|
690
690
|
// check number of API calls
|
|
691
691
|
assert.equal(
|
|
692
692
|
testUtils.getAPIHistoryLength(),
|
|
693
|
-
|
|
693
|
+
48,
|
|
694
694
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
695
695
|
);
|
|
696
696
|
return;
|
package/test/type.script.test.js
CHANGED
|
@@ -157,7 +157,7 @@ describe('type: senderProfile', () => {
|
|
|
157
157
|
const templatedItems = await handler.buildTemplate(
|
|
158
158
|
'testInstance/testBU',
|
|
159
159
|
'senderProfile',
|
|
160
|
-
['testExisting_senderProfile'],
|
|
160
|
+
['Default', 'testExisting_senderProfile', 'testExisting_senderProfile_rcb'],
|
|
161
161
|
['testSourceMarket']
|
|
162
162
|
);
|
|
163
163
|
// WHEN
|
|
@@ -165,14 +165,31 @@ describe('type: senderProfile', () => {
|
|
|
165
165
|
|
|
166
166
|
assert.deepEqual(
|
|
167
167
|
Object.keys(templatedItems),
|
|
168
|
-
['senderProfile'],
|
|
168
|
+
['asset', 'domainVerification', 'senderProfile'],
|
|
169
169
|
'expected specific types to be templated'
|
|
170
170
|
);
|
|
171
171
|
|
|
172
|
+
// asset
|
|
173
|
+
assert.deepEqual(
|
|
174
|
+
templatedItems.asset.map((item) => item.customerKey),
|
|
175
|
+
[
|
|
176
|
+
'{{{prefix}}}asset_htmlblock',
|
|
177
|
+
'{{{prefix}}}htmlblock 3 spaces',
|
|
178
|
+
'{{{prefix}}}htmlblock1',
|
|
179
|
+
'{{{prefix}}}htmlblock2',
|
|
180
|
+
],
|
|
181
|
+
'expected specific assets to be templated'
|
|
182
|
+
);
|
|
183
|
+
// domainVerification
|
|
184
|
+
assert.deepEqual(
|
|
185
|
+
templatedItems.domainVerification.map((item) => item.domain),
|
|
186
|
+
['joern.berkefeld+test@accenture.com', 'joern.berkefeld@accenture.com'],
|
|
187
|
+
'expected specific domainVerifications to be templated'
|
|
188
|
+
);
|
|
172
189
|
// senderProfile
|
|
173
190
|
assert.deepEqual(
|
|
174
191
|
templatedItems.senderProfile.map((item) => item.CustomerKey),
|
|
175
|
-
['{{{prefix}}}senderProfile'],
|
|
192
|
+
['Default', '{{{prefix}}}senderProfile', '{{{prefix}}}senderProfile_rcb'],
|
|
176
193
|
'expected specific senderProfiles to be templated'
|
|
177
194
|
);
|
|
178
195
|
});
|
|
@@ -145,7 +145,13 @@ describe('type: triggeredSend', () => {
|
|
|
145
145
|
|
|
146
146
|
assert.deepEqual(
|
|
147
147
|
Object.keys(templatedItems),
|
|
148
|
-
[
|
|
148
|
+
[
|
|
149
|
+
'asset',
|
|
150
|
+
'domainVerification',
|
|
151
|
+
'sendClassification',
|
|
152
|
+
'senderProfile',
|
|
153
|
+
'triggeredSend',
|
|
154
|
+
],
|
|
149
155
|
'expected specific types to be templated'
|
|
150
156
|
);
|
|
151
157
|
|
|
@@ -167,6 +173,12 @@ describe('type: triggeredSend', () => {
|
|
|
167
173
|
['{{{prefix}}}senderProfile', '{{{prefix}}}senderProfile_rcb'],
|
|
168
174
|
'expected specific senderProfiles to be templated'
|
|
169
175
|
);
|
|
176
|
+
// domainVerification
|
|
177
|
+
assert.deepEqual(
|
|
178
|
+
templatedItems.domainVerification.map((item) => item.domain),
|
|
179
|
+
['joern.berkefeld+test@accenture.com', 'joern.berkefeld@accenture.com'],
|
|
180
|
+
'expected specific domainVerification to be templated'
|
|
181
|
+
);
|
|
170
182
|
// asset
|
|
171
183
|
assert.deepEqual(
|
|
172
184
|
templatedItems.asset.map((item) => item.customerKey),
|
package/types/mcdev.d.js
CHANGED
|
@@ -237,6 +237,7 @@
|
|
|
237
237
|
|
|
238
238
|
/**
|
|
239
239
|
* @typedef {object} AutomationSchedule REST format
|
|
240
|
+
* @property {string} id legacy id of schedule
|
|
240
241
|
* @property {number} typeId equals schedule.scheduleTypeId; upsert endpoint requires scheduleTypeId. retrieve endpoint returns typeId
|
|
241
242
|
* @property {number} [scheduleTypeId] equals schedule.typeId; upsert endpoint requires scheduleTypeId. retrieve endpoint returns typeId
|
|
242
243
|
* @property {string} startDate example: '2021-05-07T09:00:00'
|
|
@@ -292,6 +293,7 @@
|
|
|
292
293
|
* @property {any} [notifications] notifications
|
|
293
294
|
* @property {string} [description] -
|
|
294
295
|
* @property {'scheduled'|'triggered'|'automationtriggered'} [type] Starting Source = Schedule / File Drop
|
|
296
|
+
* @property {'scheduled'|'triggered'|'automationtriggered'} [automationType] Starting Source = Schedule / File Drop; from legacy api
|
|
295
297
|
* @property {'Scheduled'|'Running'|'Ready'|'Building'|'PausedSchedule'|'InactiveTrigger'} [status] automation status
|
|
296
298
|
* @property {number} [statusId] automation status
|
|
297
299
|
* @property {AutomationSchedule} [schedule] only existing if type=scheduled
|
|
@@ -314,6 +316,12 @@
|
|
|
314
316
|
* @property {AutomationStep[]} [steps] -
|
|
315
317
|
* @property {string} [r__folder_Path] folder path
|
|
316
318
|
* @property {string} [categoryId] holds folder ID, replaced with r__folder_Path during retrieve
|
|
319
|
+
* @property {string} [createdName] user name of person who created this automation
|
|
320
|
+
* @property {string} [createdDate] iso format
|
|
321
|
+
* @property {string} [modifiedName] user name of person who last modified this automation
|
|
322
|
+
* @property {string} [modifiedDate] iso format
|
|
323
|
+
* @property {string} [pausedName] user name of person who paused this automation
|
|
324
|
+
* @property {string} [pausedDate] iso format
|
|
317
325
|
*/
|
|
318
326
|
|
|
319
327
|
/**
|
package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
|
3
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
5
|
-
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
|
6
|
-
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
|
|
7
|
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
|
8
|
-
<soap:Header>
|
|
9
|
-
<wsa:Action>ScheduleResponse</wsa:Action>
|
|
10
|
-
<wsa:MessageID>urn:uuid:b58a82d9-a251-4be4-b50c-bd300d71601d</wsa:MessageID>
|
|
11
|
-
<wsa:RelatesTo>urn:uuid:9d3dbeb3-68b7-4f0a-b0af-04855dc0fd1e</wsa:RelatesTo>
|
|
12
|
-
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
|
|
13
|
-
<wsse:Security>
|
|
14
|
-
<wsu:Timestamp wsu:Id="Timestamp-5ff54ff3-2408-496a-b4ea-6df5e9ebee03">
|
|
15
|
-
<wsu:Created>2023-07-05T10:29:58Z</wsu:Created>
|
|
16
|
-
<wsu:Expires>2023-07-05T10:34:58Z</wsu:Expires>
|
|
17
|
-
</wsu:Timestamp>
|
|
18
|
-
</wsse:Security>
|
|
19
|
-
</soap:Header>
|
|
20
|
-
<soap:Body>
|
|
21
|
-
<ScheduleResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
|
|
22
|
-
<Results>
|
|
23
|
-
<Result>
|
|
24
|
-
<StatusCode>OK</StatusCode>
|
|
25
|
-
<StatusMessage>Program scheduled.</StatusMessage>
|
|
26
|
-
<RequestID>3a677ca8-5423-4d59-a1bb-c5fbe1c87197</RequestID>
|
|
27
|
-
<Object>
|
|
28
|
-
<PartnerKey xsi:nil="true" />
|
|
29
|
-
<ObjectID xsi:nil="true" />
|
|
30
|
-
<Recurrence xsi:type="DailyRecurrence">
|
|
31
|
-
<DailyRecurrencePatternType>Interval</DailyRecurrencePatternType>
|
|
32
|
-
<DayInterval>1</DayInterval>
|
|
33
|
-
</Recurrence>
|
|
34
|
-
<RecurrenceType>Daily</RecurrenceType>
|
|
35
|
-
<RecurrenceRangeType>EndAfter</RecurrenceRangeType>
|
|
36
|
-
<StartDateTime>2023-07-05T16:00:57</StartDateTime>
|
|
37
|
-
<Occurrences>1</Occurrences>
|
|
38
|
-
<TimeZone>
|
|
39
|
-
<PartnerKey xsi:nil="true" />
|
|
40
|
-
<ID>5</ID>
|
|
41
|
-
<ObjectID xsi:nil="true" />
|
|
42
|
-
</TimeZone>
|
|
43
|
-
</Object>
|
|
44
|
-
<Task />
|
|
45
|
-
</Result>
|
|
46
|
-
</Results>
|
|
47
|
-
<OverallStatus>OK</OverallStatus>
|
|
48
|
-
<OverallStatusMessage />
|
|
49
|
-
<RequestID>cfe97488-3c5e-49a9-b338-c0e9f6b6f684</RequestID>
|
|
50
|
-
</ScheduleResponseMsg>
|
|
51
|
-
</soap:Body>
|
|
52
|
-
</soap:Envelope>
|
package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-pause-response.xml
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
|
3
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
5
|
-
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
|
6
|
-
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
|
|
7
|
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
|
8
|
-
<soap:Header>
|
|
9
|
-
<wsa:Action>ScheduleResponse</wsa:Action>
|
|
10
|
-
<wsa:MessageID>urn:uuid:b58a82d9-a251-4be4-b50c-bd300d71601d</wsa:MessageID>
|
|
11
|
-
<wsa:RelatesTo>urn:uuid:9d3dbeb3-68b7-4f0a-b0af-04855dc0fd1e</wsa:RelatesTo>
|
|
12
|
-
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
|
|
13
|
-
<wsse:Security>
|
|
14
|
-
<wsu:Timestamp wsu:Id="Timestamp-5ff54ff3-2408-496a-b4ea-6df5e9ebee03">
|
|
15
|
-
<wsu:Created>2023-07-05T10:29:58Z</wsu:Created>
|
|
16
|
-
<wsu:Expires>2023-07-05T10:34:58Z</wsu:Expires>
|
|
17
|
-
</wsu:Timestamp>
|
|
18
|
-
</wsse:Security>
|
|
19
|
-
</soap:Header>
|
|
20
|
-
<soap:Body>
|
|
21
|
-
<ScheduleResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
|
|
22
|
-
<Results>
|
|
23
|
-
<Result>
|
|
24
|
-
<StatusCode>OK</StatusCode>
|
|
25
|
-
<StatusMessage>Schedule Paused. To reactivate the schedule use proxy.Schedule with the action 'start'.</StatusMessage>
|
|
26
|
-
<Object>
|
|
27
|
-
<PartnerKey xsi:nil="true" />
|
|
28
|
-
<ObjectID xsi:nil="true" />
|
|
29
|
-
</Object>
|
|
30
|
-
<Task />
|
|
31
|
-
</Result>
|
|
32
|
-
</Results>
|
|
33
|
-
<OverallStatus>OK</OverallStatus>
|
|
34
|
-
<OverallStatusMessage />
|
|
35
|
-
<RequestID>cfe97488-3c5e-49a9-b338-c0e9f6b6f684</RequestID>
|
|
36
|
-
</ScheduleResponseMsg>
|
|
37
|
-
</soap:Body>
|
|
38
|
-
</soap:Envelope>
|
package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_pause-response.xml
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
|
3
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
5
|
-
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
|
6
|
-
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
|
|
7
|
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
|
8
|
-
<soap:Header>
|
|
9
|
-
<wsa:Action>ScheduleResponse</wsa:Action>
|
|
10
|
-
<wsa:MessageID>urn:uuid:b58a82d9-a251-4be4-b50c-bd300d71601d</wsa:MessageID>
|
|
11
|
-
<wsa:RelatesTo>urn:uuid:9d3dbeb3-68b7-4f0a-b0af-04855dc0fd1e</wsa:RelatesTo>
|
|
12
|
-
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
|
|
13
|
-
<wsse:Security>
|
|
14
|
-
<wsu:Timestamp wsu:Id="Timestamp-5ff54ff3-2408-496a-b4ea-6df5e9ebee03">
|
|
15
|
-
<wsu:Created>2023-07-05T10:29:58Z</wsu:Created>
|
|
16
|
-
<wsu:Expires>2023-07-05T10:34:58Z</wsu:Expires>
|
|
17
|
-
</wsu:Timestamp>
|
|
18
|
-
</wsse:Security>
|
|
19
|
-
</soap:Header>
|
|
20
|
-
<soap:Body>
|
|
21
|
-
<ScheduleResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
|
|
22
|
-
<Results>
|
|
23
|
-
<Result>
|
|
24
|
-
<StatusCode>OK</StatusCode>
|
|
25
|
-
<StatusMessage>Program scheduled.</StatusMessage>
|
|
26
|
-
<RequestID>3a677ca8-5423-4d59-a1bb-c5fbe1c87197</RequestID>
|
|
27
|
-
<Object>
|
|
28
|
-
<PartnerKey xsi:nil="true" />
|
|
29
|
-
<ObjectID xsi:nil="true" />
|
|
30
|
-
<Recurrence xsi:type="DailyRecurrence">
|
|
31
|
-
<DailyRecurrencePatternType>Interval</DailyRecurrencePatternType>
|
|
32
|
-
<DayInterval>1</DayInterval>
|
|
33
|
-
</Recurrence>
|
|
34
|
-
<RecurrenceType>Daily</RecurrenceType>
|
|
35
|
-
<RecurrenceRangeType>EndAfter</RecurrenceRangeType>
|
|
36
|
-
<StartDateTime>2023-07-05T16:00:57</StartDateTime>
|
|
37
|
-
<Occurrences>1</Occurrences>
|
|
38
|
-
<TimeZone>
|
|
39
|
-
<PartnerKey xsi:nil="true" />
|
|
40
|
-
<ID>5</ID>
|
|
41
|
-
<ObjectID xsi:nil="true" />
|
|
42
|
-
</TimeZone>
|
|
43
|
-
</Object>
|
|
44
|
-
<Task />
|
|
45
|
-
</Result>
|
|
46
|
-
</Results>
|
|
47
|
-
<OverallStatus>OK</OverallStatus>
|
|
48
|
-
<OverallStatusMessage />
|
|
49
|
-
<RequestID>cfe97488-3c5e-49a9-b338-c0e9f6b6f684</RequestID>
|
|
50
|
-
</ScheduleResponseMsg>
|
|
51
|
-
</soap:Body>
|
|
52
|
-
</soap:Envelope>
|
package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_schedule-response.xml
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
|
3
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
5
|
-
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
|
6
|
-
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
|
|
7
|
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
|
8
|
-
<soap:Header>
|
|
9
|
-
<wsa:Action>ScheduleResponse</wsa:Action>
|
|
10
|
-
<wsa:MessageID>urn:uuid:b58a82d9-a251-4be4-b50c-bd300d71601d</wsa:MessageID>
|
|
11
|
-
<wsa:RelatesTo>urn:uuid:9d3dbeb3-68b7-4f0a-b0af-04855dc0fd1e</wsa:RelatesTo>
|
|
12
|
-
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
|
|
13
|
-
<wsse:Security>
|
|
14
|
-
<wsu:Timestamp wsu:Id="Timestamp-5ff54ff3-2408-496a-b4ea-6df5e9ebee03">
|
|
15
|
-
<wsu:Created>2023-07-05T10:29:58Z</wsu:Created>
|
|
16
|
-
<wsu:Expires>2023-07-05T10:34:58Z</wsu:Expires>
|
|
17
|
-
</wsu:Timestamp>
|
|
18
|
-
</wsse:Security>
|
|
19
|
-
</soap:Header>
|
|
20
|
-
<soap:Body>
|
|
21
|
-
<ScheduleResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
|
|
22
|
-
<Results>
|
|
23
|
-
<Result>
|
|
24
|
-
<StatusCode>OK</StatusCode>
|
|
25
|
-
<StatusMessage>Program scheduled.</StatusMessage>
|
|
26
|
-
<RequestID>3a677ca8-5423-4d59-a1bb-c5fbe1c87197</RequestID>
|
|
27
|
-
<Object>
|
|
28
|
-
<PartnerKey xsi:nil="true" />
|
|
29
|
-
<ObjectID xsi:nil="true" />
|
|
30
|
-
<Recurrence xsi:type="DailyRecurrence">
|
|
31
|
-
<DailyRecurrencePatternType>Interval</DailyRecurrencePatternType>
|
|
32
|
-
<DayInterval>1</DayInterval>
|
|
33
|
-
</Recurrence>
|
|
34
|
-
<RecurrenceType>Daily</RecurrenceType>
|
|
35
|
-
<RecurrenceRangeType>EndAfter</RecurrenceRangeType>
|
|
36
|
-
<StartDateTime>2023-07-05T16:00:57</StartDateTime>
|
|
37
|
-
<Occurrences>1</Occurrences>
|
|
38
|
-
<TimeZone>
|
|
39
|
-
<PartnerKey xsi:nil="true" />
|
|
40
|
-
<ID>5</ID>
|
|
41
|
-
<ObjectID xsi:nil="true" />
|
|
42
|
-
</TimeZone>
|
|
43
|
-
</Object>
|
|
44
|
-
<Task />
|
|
45
|
-
</Result>
|
|
46
|
-
</Results>
|
|
47
|
-
<OverallStatus>OK</OverallStatus>
|
|
48
|
-
<OverallStatusMessage />
|
|
49
|
-
<RequestID>cfe97488-3c5e-49a9-b338-c0e9f6b6f684</RequestID>
|
|
50
|
-
</ScheduleResponseMsg>
|
|
51
|
-
</soap:Body>
|
|
52
|
-
</soap:Envelope>
|
package/test/resources/9999999/automation/schedule-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
|
3
|
-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
4
|
-
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
|
5
|
-
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
|
|
6
|
-
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
|
|
7
|
-
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
|
|
8
|
-
<soap:Header>
|
|
9
|
-
<wsa:Action>ScheduleResponse</wsa:Action>
|
|
10
|
-
<wsa:MessageID>urn:uuid:6c743640-b80f-456a-abed-b542247f2414</wsa:MessageID>
|
|
11
|
-
<wsa:RelatesTo>urn:uuid:29fc6536-3c75-4e07-a05d-e63f7ee520d3</wsa:RelatesTo>
|
|
12
|
-
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
|
|
13
|
-
<wsse:Security>
|
|
14
|
-
<wsu:Timestamp wsu:Id="Timestamp-49e9b916-1ac1-4cb0-bacc-d0060fdca2ec">
|
|
15
|
-
<wsu:Created>2023-07-04T13:13:15Z</wsu:Created>
|
|
16
|
-
<wsu:Expires>2023-07-04T13:18:15Z</wsu:Expires>
|
|
17
|
-
</wsu:Timestamp>
|
|
18
|
-
</wsse:Security>
|
|
19
|
-
</soap:Header>
|
|
20
|
-
<soap:Body>
|
|
21
|
-
<ScheduleResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
|
|
22
|
-
<Results>
|
|
23
|
-
<Result>
|
|
24
|
-
<StatusCode>OK</StatusCode>
|
|
25
|
-
<StatusMessage>Program scheduled.</StatusMessage>
|
|
26
|
-
<RequestID>89cd977a-3927-49fa-b8e5-47c7e6093bef</RequestID>
|
|
27
|
-
<Object>
|
|
28
|
-
<PartnerKey xsi:nil="true" />
|
|
29
|
-
<ObjectID xsi:nil="true" />
|
|
30
|
-
<Recurrence xsi:type="MinutelyRecurrence">
|
|
31
|
-
<MinutelyRecurrencePatternType>Interval</MinutelyRecurrencePatternType>
|
|
32
|
-
<MinuteInterval>5</MinuteInterval>
|
|
33
|
-
</Recurrence>
|
|
34
|
-
<RecurrenceType>Minutely</RecurrenceType>
|
|
35
|
-
<RecurrenceRangeType>EndOn</RecurrenceRangeType>
|
|
36
|
-
<StartDateTime>2023-07-04T06:21:14.408</StartDateTime>
|
|
37
|
-
<EndDateTime>2079-06-06T20:00:00</EndDateTime>
|
|
38
|
-
<TimeZone>
|
|
39
|
-
<PartnerKey xsi:nil="true" />
|
|
40
|
-
<ID>5</ID>
|
|
41
|
-
<ObjectID xsi:nil="true" />
|
|
42
|
-
</TimeZone>
|
|
43
|
-
</Object>
|
|
44
|
-
<Task />
|
|
45
|
-
</Result>
|
|
46
|
-
</Results>
|
|
47
|
-
<OverallStatus>OK</OverallStatus>
|
|
48
|
-
<OverallStatusMessage />
|
|
49
|
-
<RequestID>3b03417b-649e-4a1d-963d-05f42fc8f1b5</RequestID>
|
|
50
|
-
</ScheduleResponseMsg>
|
|
51
|
-
</soap:Body>
|
|
52
|
-
</soap:Envelope>
|