mcdev 8.2.1 → 8.3.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 +2 -0
- package/.github/workflows/code-test.yml +1 -1
- package/.github/workflows/coverage-base-update.yml +1 -1
- package/.github/workflows/coverage-develop-branch.yml +1 -1
- package/.github/workflows/coverage-main-branch.yml +1 -1
- package/.github/workflows/coverage.yml +1 -1
- package/.github/workflows/npm-publish.yml +7 -5
- package/@types/lib/MetadataTypeDefinitions.d.ts +4 -0
- package/@types/lib/MetadataTypeDefinitions.d.ts.map +1 -1
- package/@types/lib/MetadataTypeInfo.d.ts +4 -0
- package/@types/lib/MetadataTypeInfo.d.ts.map +1 -1
- package/@types/lib/Retriever.d.ts.map +1 -1
- package/@types/lib/index.d.ts +20 -9
- package/@types/lib/index.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Asset.d.ts +3 -3
- package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Automation.d.ts +7 -7
- package/@types/lib/metadataTypes/Automation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtension.d.ts +9 -9
- package/@types/lib/metadataTypes/DataExtension.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataExtensionField.d.ts +7 -0
- package/@types/lib/metadataTypes/DataExtensionField.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataFilter.d.ts +335 -0
- package/@types/lib/metadataTypes/DataFilter.d.ts.map +1 -0
- package/@types/lib/metadataTypes/DataFilterHidden.d.ts +164 -0
- package/@types/lib/metadataTypes/DataFilterHidden.d.ts.map +1 -0
- package/@types/lib/metadataTypes/Filter.d.ts +181 -6
- package/@types/lib/metadataTypes/Filter.d.ts.map +1 -1
- package/@types/lib/metadataTypes/FilterDefinition.d.ts +318 -0
- package/@types/lib/metadataTypes/FilterDefinition.d.ts.map +1 -0
- package/@types/lib/metadataTypes/FilterDefinitionHidden.d.ts +156 -0
- package/@types/lib/metadataTypes/FilterDefinitionHidden.d.ts.map +1 -0
- package/@types/lib/metadataTypes/ImportFile.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Journey.d.ts +18 -0
- package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MetadataType.d.ts +6 -0
- package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MobileKeyword.d.ts +2 -2
- package/@types/lib/metadataTypes/MobileKeyword.d.ts.map +1 -1
- package/@types/lib/metadataTypes/User.d.ts +1 -1
- package/@types/lib/metadataTypes/User.d.ts.map +1 -1
- package/@types/lib/metadataTypes/definitions/DataFilter.definition.d.ts +230 -0
- package/@types/lib/metadataTypes/definitions/DataFilter.definition.d.ts.map +1 -0
- package/@types/lib/metadataTypes/definitions/DataFilterHidden.definition.d.ts +230 -0
- package/@types/lib/metadataTypes/definitions/DataFilterHidden.definition.d.ts.map +1 -0
- package/@types/lib/metadataTypes/definitions/Filter.definition.d.ts +203 -31
- package/@types/lib/metadataTypes/definitions/FilterDefinition.definition.d.ts +218 -0
- package/@types/lib/metadataTypes/definitions/FilterDefinition.definition.d.ts.map +1 -0
- package/@types/lib/metadataTypes/definitions/FilterDefinitionHidden.definition.d.ts +218 -0
- package/@types/lib/metadataTypes/definitions/FilterDefinitionHidden.definition.d.ts.map +1 -0
- package/@types/lib/metadataTypes/definitions/Journey.definition.d.ts +18 -0
- package/@types/lib/util/devops.d.ts +1 -0
- package/@types/lib/util/devops.d.ts.map +1 -1
- package/@types/lib/util/replaceContentBlockReference.d.ts +3 -3
- package/@types/lib/util/replaceContentBlockReference.d.ts.map +1 -1
- 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 +296 -0
- package/@types/types/mcdev.d.d.ts.map +1 -1
- package/lib/MetadataTypeDefinitions.js +4 -0
- package/lib/MetadataTypeInfo.js +4 -0
- package/lib/Retriever.js +3 -0
- package/lib/index.js +87 -3
- package/lib/metadataTypes/DataExtensionField.js +21 -0
- package/lib/metadataTypes/DataFilter.js +694 -0
- package/lib/metadataTypes/DataFilterHidden.js +18 -0
- package/lib/metadataTypes/Filter.js +315 -1
- package/lib/metadataTypes/ImportFile.js +11 -1
- package/lib/metadataTypes/Journey.js +111 -7
- package/lib/metadataTypes/MetadataType.js +14 -0
- package/lib/metadataTypes/definitions/Automation.definition.js +1 -0
- package/lib/metadataTypes/definitions/DataFilter.definition.js +168 -0
- package/lib/metadataTypes/definitions/DataFilterHidden.definition.js +169 -0
- package/lib/metadataTypes/definitions/Filter.definition.js +136 -22
- package/lib/metadataTypes/definitions/Journey.definition.js +20 -1
- package/lib/util/devops.js +14 -4
- package/lib/util/util.js +7 -2
- package/lib/util/validations.js +7 -1
- package/package.json +10 -10
- package/test/general.test.js +17 -19
- package/test/mockRoot/.mcdevrc.json +4 -1
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-fail.asset-block-meta.json → testExisting_asset_html-matchNamFail.asset-block-meta.json} +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName.asset-block-meta.json → testExisting_asset_html-matchName.asset-block-meta.json} +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-create.asset-block-meta.json → testExisting_asset_html-matchNameAdd.asset-block-meta.json} +3 -3
- package/test/mockRoot/deploy/testInstance/testBU/dataFilter/testExisting_dataFilter.dataFilter-meta.json +19 -0
- package/test/mockRoot/deploy/testInstance/testBU/dataFilter/testNew_dataFilter.dataFilter-meta.json +19 -0
- package/test/mockRoot/deploy/testInstance/testBU/filter/testExisting_filter.filter-meta.json +10 -0
- package/test/mockRoot/deploy/testInstance/testBU/filter/testNew_filter.filter-meta.json +11 -0
- package/test/mockRoot/deploy/testInstance/testBU/journey/testExisting_journey_updatecontact.journey-meta.json +108 -0
- package/test/resources/9999999/asset/v1/content/assets/1295064/patch-response.json +1 -1
- package/test/resources/9999999/automation/v1/filters/a0f1a1bc-4ea1-44b3-8fe1-ce40ef35c1c0/patch-response.json +18 -0
- package/test/resources/9999999/automation/v1/filters/f018f237-f7ef-40b0-afc8-39ea2e5dcca4/delete-response.txt +0 -0
- package/test/resources/9999999/automation/v1/filters/f018f237-f7ef-40b0-afc8-39ea2e5dcca4/get-response.json +15 -0
- package/test/resources/9999999/automation/v1/filters/f018f237-f7ef-40b0-afc8-39ea2e5dcca4/patch-response.json +15 -0
- package/test/resources/9999999/automation/v1/filters/get-response.json +22 -0
- package/test/resources/9999999/dataFilter/build-expected.json +19 -0
- package/test/resources/9999999/dataFilter/get-expected.json +23 -0
- package/test/resources/9999999/dataFilter/patch-expected.json +20 -0
- package/test/resources/9999999/dataFilter/post-expected.json +20 -0
- package/test/resources/9999999/dataFilter/template-expected.json +19 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINasset,asset-sha,automatio,cloudpage,dataexten,filteract,filterdef,hidden,journey,list,mysubs,publicati,queryacti,salesforc,shared_da,shared_da,shared_sa,ssjsactiv,synchroni,useriniti-response.xml +765 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINfilteractivity,hidden-response.xml +139 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentTypeINfilterdefinition,hidden-response.xml +116 -0
- package/test/resources/9999999/email/v1/filters/filterdefinition/10ef27dd-4be8-4bf6-970a-8acf8e281e55/delete-response.txt +1 -0
- package/test/resources/9999999/email/v1/filters/filterdefinition/10ef27dd-4be8-4bf6-970a-8acf8e281e55/get-response.json +19 -0
- package/test/resources/9999999/email/v1/filters/filterdefinition/10ef27dd-4be8-4bf6-970a-8acf8e281e55/patch-response.json +15 -0
- package/test/resources/9999999/email/v1/filters/filterdefinition/category/5318/get-response.json +27 -0
- package/test/resources/9999999/email/v1/filters/filterdefinition/category/8502/get-response.json +7 -0
- package/test/resources/9999999/email/v1/filters/filterdefinition/category/8503/get-response.json +7 -0
- package/test/resources/9999999/email/v1/filters/filterdefinition/post-response.json +15 -0
- package/test/resources/9999999/filter/build-expected.json +10 -0
- package/test/resources/9999999/filter/get-expected.json +11 -0
- package/test/resources/9999999/filter/patch-expected.json +11 -0
- package/test/resources/9999999/filter/post-expected.json +11 -0
- package/test/resources/9999999/filter/template-expected.json +10 -0
- package/test/resources/9999999/filterActivity/create-response.xml +46 -0
- package/test/resources/9999999/filterActivity/retrieve-CustomerKey=testExisting_filter-response.xml +30 -0
- package/test/resources/9999999/filterDefinition/retrieve-CustomerKey=testExisting_dataFilter-response.xml +30 -0
- package/test/resources/9999999/interaction/v1/interactions/get-response.json +45 -3
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_updatecontact/get-response.json +119 -0
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_updatecontact/put-response.json +106 -0
- package/test/resources/9999999/journey/get-updatecontact-expected.json +108 -0
- package/test/resources/9999999/journey/put-updatecontact-expected.json +108 -0
- package/test/type.asset.test.js +7 -7
- package/test/type.automation.test.js +14 -14
- package/test/type.dataFilter.test.js +174 -0
- package/test/type.filter.test.js +170 -0
- package/test/type.journey.test.js +59 -7
- package/test/type.query.test.js +2 -2
- package/test/utils.js +8 -0
- package/types/mcdev.d.js +101 -0
- /package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-create.asset-block-meta.html → testExisting_asset_html-matchNamFail.asset-block-meta.html} +0 -0
- /package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-fail.asset-block-meta.html → testExisting_asset_html-matchName.asset-block-meta.html} +0 -0
- /package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName.asset-block-meta.html → testExisting_asset_html-matchNameAdd.asset-block-meta.html} +0 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "0175b971-71a3-4d8e-98ac-48121f3fbf4f",
|
|
3
|
+
"key": "testExisting_journey_updatecontact",
|
|
4
|
+
"name": "testExisting_journey_updatecontact",
|
|
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
|
+
"key": "UPDATECONTACTDATAV2-1",
|
|
14
|
+
"name": "Update Contact - TEST",
|
|
15
|
+
"description": "",
|
|
16
|
+
"type": "UPDATECONTACTDATA",
|
|
17
|
+
"outcomes": [
|
|
18
|
+
{
|
|
19
|
+
"key": "9f21d42b-4679-4561-911a-4bccf84672ba",
|
|
20
|
+
"arguments": {},
|
|
21
|
+
"metaData": {
|
|
22
|
+
"invalid": false
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"arguments": {
|
|
27
|
+
"activityData": {
|
|
28
|
+
"updateContactFields": [
|
|
29
|
+
{
|
|
30
|
+
"r__dataExtensionField_name": "LastName",
|
|
31
|
+
"value": "TEST",
|
|
32
|
+
"r__dataExtension_key": "testExisting_dataExtension"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"configurationArguments": {},
|
|
38
|
+
"metaData": {
|
|
39
|
+
"isConfigured": true
|
|
40
|
+
},
|
|
41
|
+
"schema": {
|
|
42
|
+
"arguments": {
|
|
43
|
+
"activityData": {
|
|
44
|
+
"dataType": "Text",
|
|
45
|
+
"isNullable": false,
|
|
46
|
+
"direction": "In",
|
|
47
|
+
"readOnly": false,
|
|
48
|
+
"access": "Hidden"
|
|
49
|
+
},
|
|
50
|
+
"contactKey": {
|
|
51
|
+
"dataType": "Text",
|
|
52
|
+
"isNullable": false,
|
|
53
|
+
"direction": "In",
|
|
54
|
+
"readOnly": false,
|
|
55
|
+
"access": "Hidden"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
],
|
|
61
|
+
"triggers": [
|
|
62
|
+
{
|
|
63
|
+
"id": "92753481-1258-49bd-8a84-921ed63bcc2e",
|
|
64
|
+
"key": "TRIGGER",
|
|
65
|
+
"name": "TRIGGER",
|
|
66
|
+
"description": "",
|
|
67
|
+
"type": "EmailAudience",
|
|
68
|
+
"outcomes": [],
|
|
69
|
+
"arguments": {},
|
|
70
|
+
"configurationArguments": {},
|
|
71
|
+
"metaData": {
|
|
72
|
+
"eventDefinitionId": "649d512b-4d08-4eca-a14e-fc7b64b4ada8",
|
|
73
|
+
"eventDefinitionKey": "DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e",
|
|
74
|
+
"chainType": "None",
|
|
75
|
+
"configurationRequired": false,
|
|
76
|
+
"iconUrl": "/images/icon-data-extension.svg",
|
|
77
|
+
"title": "Data Extension",
|
|
78
|
+
"entrySourceGroupConfigUrl": "jb:///data/entry/audience/entrysourcegroupconfig.json",
|
|
79
|
+
"sourceInteractionId": "00000000-0000-0000-0000-000000000000"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"goals": [],
|
|
84
|
+
"exits": [],
|
|
85
|
+
"notifiers": [],
|
|
86
|
+
"stats": {
|
|
87
|
+
"currentPopulation": 0,
|
|
88
|
+
"cumulativePopulation": 0,
|
|
89
|
+
"metGoal": 0,
|
|
90
|
+
"metExitCriteria": 0,
|
|
91
|
+
"goalPerformance": 0
|
|
92
|
+
},
|
|
93
|
+
"entryMode": "NotSet",
|
|
94
|
+
"definitionType": "Multistep",
|
|
95
|
+
"channel": "",
|
|
96
|
+
"defaults": {
|
|
97
|
+
"email": [
|
|
98
|
+
"{{Event.DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e.\"Email\"}}"
|
|
99
|
+
],
|
|
100
|
+
"properties": {
|
|
101
|
+
"analyticsTracking": {
|
|
102
|
+
"enabled": true,
|
|
103
|
+
"analyticsType": "google",
|
|
104
|
+
"urlDomainsToTrack": []
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"metaData": {
|
|
109
|
+
"dataSource": "ContactsModel",
|
|
110
|
+
"highThroughputSending": {
|
|
111
|
+
"email": false
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"executionMode": "Production",
|
|
115
|
+
"categoryId": 6298,
|
|
116
|
+
"status": "Draft",
|
|
117
|
+
"definitionId": "0175b971-71a3-4d8e-98ac-48121f3fbf4f",
|
|
118
|
+
"scheduledStatus": "Draft"
|
|
119
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "testExisting_journey_updatecontact",
|
|
3
|
+
"name": "testExisting_journey_updatecontact",
|
|
4
|
+
"lastPublishedDate": "0001-01-01T00:00:00",
|
|
5
|
+
"description": "",
|
|
6
|
+
"version": 1,
|
|
7
|
+
"workflowApiVersion": 1,
|
|
8
|
+
"createdDate": "0001-01-01T00:00:00",
|
|
9
|
+
"modifiedDate": "2024-05-04T17:25:57.9",
|
|
10
|
+
"activities": [
|
|
11
|
+
{
|
|
12
|
+
"key": "UPDATECONTACTDATAV2-1",
|
|
13
|
+
"name": "Update Contact - TEST",
|
|
14
|
+
"description": "",
|
|
15
|
+
"type": "UPDATECONTACTDATA",
|
|
16
|
+
"outcomes": [
|
|
17
|
+
{
|
|
18
|
+
"key": "9f21d42b-4679-4561-911a-4bccf84672ba",
|
|
19
|
+
"arguments": {},
|
|
20
|
+
"metaData": {
|
|
21
|
+
"invalid": false
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"arguments": {
|
|
26
|
+
"activityData": {
|
|
27
|
+
"updateContactFields": [
|
|
28
|
+
{
|
|
29
|
+
"field": "bea0e308-5d45-4181-a673-da9972a7c674",
|
|
30
|
+
"value": "TEST",
|
|
31
|
+
"dataExtensionId": "21711373-72c1-ec11-b83b-48df37d1deb7"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"configurationArguments": {},
|
|
37
|
+
"metaData": {
|
|
38
|
+
"isConfigured": true
|
|
39
|
+
},
|
|
40
|
+
"schema": {
|
|
41
|
+
"arguments": {
|
|
42
|
+
"activityData": {
|
|
43
|
+
"dataType": "Text",
|
|
44
|
+
"isNullable": false,
|
|
45
|
+
"direction": "In",
|
|
46
|
+
"readOnly": false,
|
|
47
|
+
"access": "Hidden"
|
|
48
|
+
},
|
|
49
|
+
"contactKey": {
|
|
50
|
+
"dataType": "Text",
|
|
51
|
+
"isNullable": false,
|
|
52
|
+
"direction": "In",
|
|
53
|
+
"readOnly": false,
|
|
54
|
+
"access": "Hidden"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"triggers": [
|
|
61
|
+
{
|
|
62
|
+
"key": "TRIGGER",
|
|
63
|
+
"name": "TRIGGER",
|
|
64
|
+
"description": "",
|
|
65
|
+
"type": "EmailAudience",
|
|
66
|
+
"outcomes": [],
|
|
67
|
+
"arguments": {},
|
|
68
|
+
"configurationArguments": {},
|
|
69
|
+
"metaData": {
|
|
70
|
+
"r__event_key": "DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e",
|
|
71
|
+
"chainType": "None",
|
|
72
|
+
"configurationRequired": false,
|
|
73
|
+
"iconUrl": "/images/icon-data-extension.svg",
|
|
74
|
+
"title": "Data Extension",
|
|
75
|
+
"entrySourceGroupConfigUrl": "jb:///data/entry/audience/entrysourcegroupconfig.json",
|
|
76
|
+
"sourceInteractionId": "00000000-0000-0000-0000-000000000000"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"goals": [],
|
|
81
|
+
"exits": [],
|
|
82
|
+
"notifiers": [],
|
|
83
|
+
"entryMode": "NotSet",
|
|
84
|
+
"definitionType": "Multistep",
|
|
85
|
+
"channel": "",
|
|
86
|
+
"defaults": {
|
|
87
|
+
"email": ["{{Event.DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e.\"Email\"}}"],
|
|
88
|
+
"properties": {
|
|
89
|
+
"analyticsTracking": {
|
|
90
|
+
"enabled": true,
|
|
91
|
+
"analyticsType": "google",
|
|
92
|
+
"urlDomainsToTrack": []
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"metaData": {
|
|
97
|
+
"dataSource": "ContactsModel",
|
|
98
|
+
"highThroughputSending": {
|
|
99
|
+
"email": false
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"executionMode": "Production",
|
|
103
|
+
"status": "Draft",
|
|
104
|
+
"scheduledStatus": "Draft",
|
|
105
|
+
"r__folder_Path": "my journeys"
|
|
106
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "testExisting_journey_updatecontact",
|
|
3
|
+
"name": "testExisting_journey_updatecontact",
|
|
4
|
+
"lastPublishedDate": "0001-01-01T00:00:00",
|
|
5
|
+
"description": "",
|
|
6
|
+
"version": 1,
|
|
7
|
+
"workflowApiVersion": 1,
|
|
8
|
+
"createdDate": "2024-05-04T05:54:48.027",
|
|
9
|
+
"modifiedDate": "2024-05-04T17:25:57.9",
|
|
10
|
+
"activities": [
|
|
11
|
+
{
|
|
12
|
+
"key": "UPDATECONTACTDATAV2-1",
|
|
13
|
+
"name": "Update Contact - TEST",
|
|
14
|
+
"description": "",
|
|
15
|
+
"type": "UPDATECONTACTDATA",
|
|
16
|
+
"outcomes": [
|
|
17
|
+
{
|
|
18
|
+
"key": "9f21d42b-4679-4561-911a-4bccf84672ba",
|
|
19
|
+
"arguments": {},
|
|
20
|
+
"metaData": {
|
|
21
|
+
"invalid": false
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"arguments": {
|
|
26
|
+
"activityData": {
|
|
27
|
+
"updateContactFields": [
|
|
28
|
+
{
|
|
29
|
+
"r__dataExtensionField_name": "LastName",
|
|
30
|
+
"value": "TEST",
|
|
31
|
+
"r__dataExtension_key": "testExisting_dataExtension"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"configurationArguments": {},
|
|
37
|
+
"metaData": {
|
|
38
|
+
"isConfigured": true
|
|
39
|
+
},
|
|
40
|
+
"schema": {
|
|
41
|
+
"arguments": {
|
|
42
|
+
"activityData": {
|
|
43
|
+
"dataType": "Text",
|
|
44
|
+
"isNullable": false,
|
|
45
|
+
"direction": "In",
|
|
46
|
+
"readOnly": false,
|
|
47
|
+
"access": "Hidden"
|
|
48
|
+
},
|
|
49
|
+
"contactKey": {
|
|
50
|
+
"dataType": "Text",
|
|
51
|
+
"isNullable": false,
|
|
52
|
+
"direction": "In",
|
|
53
|
+
"readOnly": false,
|
|
54
|
+
"access": "Hidden"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"triggers": [
|
|
61
|
+
{
|
|
62
|
+
"key": "TRIGGER",
|
|
63
|
+
"name": "TRIGGER",
|
|
64
|
+
"description": "",
|
|
65
|
+
"type": "EmailAudience",
|
|
66
|
+
"outcomes": [],
|
|
67
|
+
"arguments": {},
|
|
68
|
+
"configurationArguments": {},
|
|
69
|
+
"metaData": {
|
|
70
|
+
"r__event_key": "DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e",
|
|
71
|
+
"chainType": "None",
|
|
72
|
+
"configurationRequired": false,
|
|
73
|
+
"iconUrl": "/images/icon-data-extension.svg",
|
|
74
|
+
"title": "Data Extension",
|
|
75
|
+
"entrySourceGroupConfigUrl": "jb:///data/entry/audience/entrysourcegroupconfig.json",
|
|
76
|
+
"sourceInteractionId": "00000000-0000-0000-0000-000000000000"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"goals": [],
|
|
81
|
+
"exits": [],
|
|
82
|
+
"notifiers": [],
|
|
83
|
+
"entryMode": "NotSet",
|
|
84
|
+
"definitionType": "Multistep",
|
|
85
|
+
"channel": "",
|
|
86
|
+
"defaults": {
|
|
87
|
+
"email": [
|
|
88
|
+
"{{Event.DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e.\"Email\"}}"
|
|
89
|
+
],
|
|
90
|
+
"properties": {
|
|
91
|
+
"analyticsTracking": {
|
|
92
|
+
"enabled": true,
|
|
93
|
+
"analyticsType": "google",
|
|
94
|
+
"urlDomainsToTrack": []
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"metaData": {
|
|
99
|
+
"dataSource": "ContactsModel",
|
|
100
|
+
"highThroughputSending": {
|
|
101
|
+
"email": false
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"executionMode": "Production",
|
|
105
|
+
"status": "Draft",
|
|
106
|
+
"scheduledStatus": "Draft",
|
|
107
|
+
"r__folder_Path": "my journeys"
|
|
108
|
+
}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "testExisting_journey_updatecontact",
|
|
3
|
+
"name": "testExisting_journey_updatecontact",
|
|
4
|
+
"lastPublishedDate": "0001-01-01T00:00:00",
|
|
5
|
+
"description": "",
|
|
6
|
+
"version": 1,
|
|
7
|
+
"workflowApiVersion": 1,
|
|
8
|
+
"createdDate": "2024-05-04T05:54:48.027",
|
|
9
|
+
"modifiedDate": "2024-05-04T17:25:57.9",
|
|
10
|
+
"activities": [
|
|
11
|
+
{
|
|
12
|
+
"key": "UPDATECONTACTDATAV2-1",
|
|
13
|
+
"name": "Update Contact - TEST",
|
|
14
|
+
"description": "",
|
|
15
|
+
"type": "UPDATECONTACTDATA",
|
|
16
|
+
"outcomes": [
|
|
17
|
+
{
|
|
18
|
+
"key": "9f21d42b-4679-4561-911a-4bccf84672ba",
|
|
19
|
+
"arguments": {},
|
|
20
|
+
"metaData": {
|
|
21
|
+
"invalid": false
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"arguments": {
|
|
26
|
+
"activityData": {
|
|
27
|
+
"updateContactFields": [
|
|
28
|
+
{
|
|
29
|
+
"r__dataExtensionField_name": "LastName",
|
|
30
|
+
"value": "TEST",
|
|
31
|
+
"r__dataExtension_key": "testExisting_dataExtension"
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"configurationArguments": {},
|
|
37
|
+
"metaData": {
|
|
38
|
+
"isConfigured": true
|
|
39
|
+
},
|
|
40
|
+
"schema": {
|
|
41
|
+
"arguments": {
|
|
42
|
+
"activityData": {
|
|
43
|
+
"dataType": "Text",
|
|
44
|
+
"isNullable": false,
|
|
45
|
+
"direction": "In",
|
|
46
|
+
"readOnly": false,
|
|
47
|
+
"access": "Hidden"
|
|
48
|
+
},
|
|
49
|
+
"contactKey": {
|
|
50
|
+
"dataType": "Text",
|
|
51
|
+
"isNullable": false,
|
|
52
|
+
"direction": "In",
|
|
53
|
+
"readOnly": false,
|
|
54
|
+
"access": "Hidden"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
],
|
|
60
|
+
"triggers": [
|
|
61
|
+
{
|
|
62
|
+
"key": "TRIGGER",
|
|
63
|
+
"name": "TRIGGER",
|
|
64
|
+
"description": "",
|
|
65
|
+
"type": "EmailAudience",
|
|
66
|
+
"outcomes": [],
|
|
67
|
+
"arguments": {},
|
|
68
|
+
"configurationArguments": {},
|
|
69
|
+
"metaData": {
|
|
70
|
+
"r__event_key": "DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e",
|
|
71
|
+
"chainType": "None",
|
|
72
|
+
"configurationRequired": false,
|
|
73
|
+
"iconUrl": "/images/icon-data-extension.svg",
|
|
74
|
+
"title": "Data Extension",
|
|
75
|
+
"entrySourceGroupConfigUrl": "jb:///data/entry/audience/entrysourcegroupconfig.json",
|
|
76
|
+
"sourceInteractionId": "00000000-0000-0000-0000-000000000000"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
],
|
|
80
|
+
"goals": [],
|
|
81
|
+
"exits": [],
|
|
82
|
+
"notifiers": [],
|
|
83
|
+
"entryMode": "NotSet",
|
|
84
|
+
"definitionType": "Multistep",
|
|
85
|
+
"channel": "",
|
|
86
|
+
"defaults": {
|
|
87
|
+
"email": [
|
|
88
|
+
"{{Event.DEAudience-2e3c73b6-48cc-2ec0-5522-48636e1a236e.\"Email\"}}"
|
|
89
|
+
],
|
|
90
|
+
"properties": {
|
|
91
|
+
"analyticsTracking": {
|
|
92
|
+
"enabled": true,
|
|
93
|
+
"analyticsType": "google",
|
|
94
|
+
"urlDomainsToTrack": []
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
"metaData": {
|
|
99
|
+
"dataSource": "ContactsModel",
|
|
100
|
+
"highThroughputSending": {
|
|
101
|
+
"email": false
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"executionMode": "Production",
|
|
105
|
+
"status": "Draft",
|
|
106
|
+
"scheduledStatus": "Draft",
|
|
107
|
+
"r__folder_Path": "my journeys"
|
|
108
|
+
}
|
package/test/type.asset.test.js
CHANGED
|
@@ -443,7 +443,7 @@ describe('type: asset', () => {
|
|
|
443
443
|
const deployResult = await handler.deploy(
|
|
444
444
|
'testInstance/testBU',
|
|
445
445
|
['asset'],
|
|
446
|
-
['
|
|
446
|
+
['testExisting_asset_html-matchName']
|
|
447
447
|
);
|
|
448
448
|
// THEN
|
|
449
449
|
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
@@ -464,8 +464,8 @@ describe('type: asset', () => {
|
|
|
464
464
|
);
|
|
465
465
|
assert.equal(
|
|
466
466
|
upsertCallout?.customerKey,
|
|
467
|
-
'
|
|
468
|
-
'customerKey should be
|
|
467
|
+
'testExisting_asset_html-matchName',
|
|
468
|
+
'customerKey should be testExisting_asset_html-matchName'
|
|
469
469
|
);
|
|
470
470
|
assert.equal(
|
|
471
471
|
upsertCallout?.id,
|
|
@@ -487,7 +487,7 @@ describe('type: asset', () => {
|
|
|
487
487
|
const deployResult = await handler.deploy(
|
|
488
488
|
'testInstance/testBU',
|
|
489
489
|
['asset'],
|
|
490
|
-
['
|
|
490
|
+
['testExisting_asset_html-matchNamFail']
|
|
491
491
|
);
|
|
492
492
|
// THEN
|
|
493
493
|
assert.equal(process.exitCode, 1, 'deploy should have thrown an error');
|
|
@@ -518,7 +518,7 @@ describe('type: asset', () => {
|
|
|
518
518
|
const deployResult = await handler.deploy(
|
|
519
519
|
'testInstance/testBU',
|
|
520
520
|
['asset'],
|
|
521
|
-
['
|
|
521
|
+
['testExisting_asset_html-matchNameAdd']
|
|
522
522
|
);
|
|
523
523
|
// THEN
|
|
524
524
|
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
@@ -535,8 +535,8 @@ describe('type: asset', () => {
|
|
|
535
535
|
const upsertCallout = testUtils.getRestCallout('post', '/asset/v1/content/assets/');
|
|
536
536
|
assert.equal(
|
|
537
537
|
upsertCallout?.customerKey,
|
|
538
|
-
'
|
|
539
|
-
'asset.customerKey should be
|
|
538
|
+
'testExisting_asset_html-matchNameAdd',
|
|
539
|
+
'asset.customerKey should be testExisting_asset_html-matchNameAdd'
|
|
540
540
|
);
|
|
541
541
|
assert.equal(
|
|
542
542
|
upsertCallout?.id,
|
|
@@ -58,7 +58,7 @@ describe('type: automation', () => {
|
|
|
58
58
|
);
|
|
59
59
|
assert.equal(
|
|
60
60
|
testUtils.getAPIHistoryLength(),
|
|
61
|
-
|
|
61
|
+
33,
|
|
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
|
+
51,
|
|
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
|
+
55,
|
|
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
|
+
55,
|
|
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
|
+
27,
|
|
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
|
+
72,
|
|
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
|
+
74,
|
|
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
|
+
74,
|
|
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
|
+
67,
|
|
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
|
+
74,
|
|
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
|
+
74,
|
|
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
|
+
29,
|
|
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
|
+
33,
|
|
674
674
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
675
675
|
);
|
|
676
676
|
return;
|
|
@@ -681,7 +681,7 @@ describe('type: automation', () => {
|
|
|
681
681
|
await handler.retrieve('testInstance/testBU');
|
|
682
682
|
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
683
683
|
|
|
684
|
-
const expectedApiCallsRetrieve =
|
|
684
|
+
const expectedApiCallsRetrieve = 108;
|
|
685
685
|
assert.equal(
|
|
686
686
|
testUtils.getAPIHistoryLength(),
|
|
687
687
|
expectedApiCallsRetrieve,
|