mcdev 4.3.0 → 4.3.2
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/.fork/custom-commands.json +14 -0
- package/.github/ISSUE_TEMPLATE/bug.yml +2 -0
- package/boilerplate/gitignore-template +1 -0
- package/docs/dist/documentation.md +2 -40
- package/lib/Retriever.js +22 -19
- package/lib/metadataTypes/AccountUser.js +42 -13
- package/lib/metadataTypes/Asset.js +37 -42
- package/lib/metadataTypes/Automation.js +1 -1
- package/lib/metadataTypes/DataExtensionField.js +5 -3
- package/lib/metadataTypes/EmailSendDefinition.js +84 -44
- package/lib/metadataTypes/Interaction.js +74 -9
- package/lib/metadataTypes/List.js +17 -15
- package/lib/metadataTypes/MetadataType.js +1 -1
- package/lib/metadataTypes/TriggeredSendDefinition.js +6 -5
- package/lib/metadataTypes/definitions/EmailSendDefinition.definition.js +52 -31
- package/lib/metadataTypes/definitions/Interaction.definition.js +1 -1
- package/lib/metadataTypes/definitions/TransactionalEmail.definition.js +2 -2
- package/lib/metadataTypes/definitions/TransactionalPush.definition.js +2 -2
- package/lib/metadataTypes/definitions/TransactionalSMS.definition.js +2 -2
- package/lib/util/auth.js +8 -3
- package/lib/util/devops.js +8 -4
- package/lib/util/util.js +51 -9
- package/package.json +2 -1
- package/test/interaction.test.js +2 -2
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/resourceFactory.js +20 -9
- package/test/resources/9999999/interaction/v1/interactions/key_0b76dccf-594c-b6dc-1acf-10c4493dcb84/get-response.json +219 -0
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_interaction/get-response.json +280 -0
- package/test/resources/9999999/triggeredSendDefinition/retrieve-response.xml +68 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "233d4413-922c-4568-85a5-e5cc77efc3be",
|
|
3
|
+
"key": "testExisting_interaction",
|
|
4
|
+
"name": "testExisting_interaction",
|
|
5
|
+
"lastPublishedDate": "2017-04-12T08:07:48",
|
|
6
|
+
"description": "bla bla",
|
|
7
|
+
"version": 1,
|
|
8
|
+
"workflowApiVersion": 1,
|
|
9
|
+
"createdDate": "2017-04-12T05:38:05.837",
|
|
10
|
+
"modifiedDate": "2017-04-12T08:07:48.333",
|
|
11
|
+
"activities": [
|
|
12
|
+
{
|
|
13
|
+
"id": "69213026-bd2c-433b-8332-5f52d3e87ca5",
|
|
14
|
+
"key": "WAIT-1",
|
|
15
|
+
"name": "",
|
|
16
|
+
"description": "",
|
|
17
|
+
"type": "WAIT",
|
|
18
|
+
"outcomes": [
|
|
19
|
+
{
|
|
20
|
+
"key": "bd3dff6b-565c-4b56-b9cb-60cd5b6d080b",
|
|
21
|
+
"next": "DATAEXTENSIONUPDATE-1",
|
|
22
|
+
"arguments": {},
|
|
23
|
+
"metaData": {}
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"arguments": {
|
|
27
|
+
"waitDefinitionId": "546704c0-9384-4a41-b20e-97615cc6cc6a",
|
|
28
|
+
"waitForEventId": "",
|
|
29
|
+
"executionMode": "{{Context.ExecutionMode}}",
|
|
30
|
+
"startActivityKey": "{{Context.StartActivityKey}}",
|
|
31
|
+
"waitQueueId": "{{Context.WaitQueueId}}"
|
|
32
|
+
},
|
|
33
|
+
"configurationArguments": {
|
|
34
|
+
"waitDuration": 1,
|
|
35
|
+
"waitUnit": "DAYS",
|
|
36
|
+
"specifiedTime": "",
|
|
37
|
+
"timeZone": "",
|
|
38
|
+
"description": "",
|
|
39
|
+
"waitForEventKey": ""
|
|
40
|
+
},
|
|
41
|
+
"metaData": { "waitType": "duration" },
|
|
42
|
+
"schema": {
|
|
43
|
+
"arguments": {
|
|
44
|
+
"endDate": {
|
|
45
|
+
"dataType": "Date",
|
|
46
|
+
"isNullable": false,
|
|
47
|
+
"direction": "Out",
|
|
48
|
+
"readOnly": false,
|
|
49
|
+
"access": "Hidden"
|
|
50
|
+
},
|
|
51
|
+
"waitEndDateAttributeDataBound": {
|
|
52
|
+
"dataType": "Text",
|
|
53
|
+
"isNullable": true,
|
|
54
|
+
"direction": "In",
|
|
55
|
+
"readOnly": false,
|
|
56
|
+
"access": "Hidden"
|
|
57
|
+
},
|
|
58
|
+
"waitDefinitionId": {
|
|
59
|
+
"dataType": "Text",
|
|
60
|
+
"isNullable": false,
|
|
61
|
+
"direction": "In",
|
|
62
|
+
"readOnly": false,
|
|
63
|
+
"access": "Hidden"
|
|
64
|
+
},
|
|
65
|
+
"waitForEventId": {
|
|
66
|
+
"dataType": "Text",
|
|
67
|
+
"isNullable": true,
|
|
68
|
+
"direction": "In",
|
|
69
|
+
"readOnly": false,
|
|
70
|
+
"access": "Hidden"
|
|
71
|
+
},
|
|
72
|
+
"executionMode": {
|
|
73
|
+
"dataType": "Text",
|
|
74
|
+
"isNullable": false,
|
|
75
|
+
"direction": "In",
|
|
76
|
+
"readOnly": false,
|
|
77
|
+
"access": "Hidden"
|
|
78
|
+
},
|
|
79
|
+
"startActivityKey": {
|
|
80
|
+
"dataType": "Text",
|
|
81
|
+
"isNullable": true,
|
|
82
|
+
"direction": "In",
|
|
83
|
+
"readOnly": false,
|
|
84
|
+
"access": "Hidden"
|
|
85
|
+
},
|
|
86
|
+
"waitQueueId": {
|
|
87
|
+
"dataType": "LongNumber",
|
|
88
|
+
"isNullable": true,
|
|
89
|
+
"direction": "In",
|
|
90
|
+
"readOnly": false,
|
|
91
|
+
"access": "Hidden"
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"id": "5d93cda9-2015-4c07-a1db-0d5853d25bf6",
|
|
98
|
+
"key": "WAIT-2",
|
|
99
|
+
"name": "",
|
|
100
|
+
"description": "",
|
|
101
|
+
"type": "WAIT",
|
|
102
|
+
"outcomes": [
|
|
103
|
+
{
|
|
104
|
+
"key": "e3d3258a-891b-4838-b5a6-af37f8cb769a",
|
|
105
|
+
"arguments": {},
|
|
106
|
+
"metaData": {}
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"arguments": {
|
|
110
|
+
"waitDefinitionId": "deed4c9d-f487-4371-bfd9-76fca44ec49b",
|
|
111
|
+
"waitForEventId": "",
|
|
112
|
+
"executionMode": "{{Context.ExecutionMode}}",
|
|
113
|
+
"startActivityKey": "{{Context.StartActivityKey}}",
|
|
114
|
+
"waitQueueId": "{{Context.WaitQueueId}}"
|
|
115
|
+
},
|
|
116
|
+
"configurationArguments": {
|
|
117
|
+
"waitDuration": 1,
|
|
118
|
+
"waitUnit": "DAYS",
|
|
119
|
+
"specifiedTime": "",
|
|
120
|
+
"timeZone": "",
|
|
121
|
+
"description": "",
|
|
122
|
+
"waitForEventKey": ""
|
|
123
|
+
},
|
|
124
|
+
"metaData": { "waitType": "duration" },
|
|
125
|
+
"schema": {
|
|
126
|
+
"arguments": {
|
|
127
|
+
"endDate": {
|
|
128
|
+
"dataType": "Date",
|
|
129
|
+
"isNullable": false,
|
|
130
|
+
"direction": "Out",
|
|
131
|
+
"readOnly": false,
|
|
132
|
+
"access": "Hidden"
|
|
133
|
+
},
|
|
134
|
+
"waitEndDateAttributeDataBound": {
|
|
135
|
+
"dataType": "Text",
|
|
136
|
+
"isNullable": true,
|
|
137
|
+
"direction": "In",
|
|
138
|
+
"readOnly": false,
|
|
139
|
+
"access": "Hidden"
|
|
140
|
+
},
|
|
141
|
+
"waitDefinitionId": {
|
|
142
|
+
"dataType": "Text",
|
|
143
|
+
"isNullable": false,
|
|
144
|
+
"direction": "In",
|
|
145
|
+
"readOnly": false,
|
|
146
|
+
"access": "Hidden"
|
|
147
|
+
},
|
|
148
|
+
"waitForEventId": {
|
|
149
|
+
"dataType": "Text",
|
|
150
|
+
"isNullable": true,
|
|
151
|
+
"direction": "In",
|
|
152
|
+
"readOnly": false,
|
|
153
|
+
"access": "Hidden"
|
|
154
|
+
},
|
|
155
|
+
"executionMode": {
|
|
156
|
+
"dataType": "Text",
|
|
157
|
+
"isNullable": false,
|
|
158
|
+
"direction": "In",
|
|
159
|
+
"readOnly": false,
|
|
160
|
+
"access": "Hidden"
|
|
161
|
+
},
|
|
162
|
+
"startActivityKey": {
|
|
163
|
+
"dataType": "Text",
|
|
164
|
+
"isNullable": true,
|
|
165
|
+
"direction": "In",
|
|
166
|
+
"readOnly": false,
|
|
167
|
+
"access": "Hidden"
|
|
168
|
+
},
|
|
169
|
+
"waitQueueId": {
|
|
170
|
+
"dataType": "LongNumber",
|
|
171
|
+
"isNullable": true,
|
|
172
|
+
"direction": "In",
|
|
173
|
+
"readOnly": false,
|
|
174
|
+
"access": "Hidden"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"id": "ef4db13e-83f0-4d41-981d-4bf5810c0daa",
|
|
181
|
+
"key": "DATAEXTENSIONUPDATE-1",
|
|
182
|
+
"name": "",
|
|
183
|
+
"description": "",
|
|
184
|
+
"type": "DATAEXTENSIONUPDATE",
|
|
185
|
+
"outcomes": [
|
|
186
|
+
{
|
|
187
|
+
"key": "a49ecf04-4612-4582-85fe-d7193f872fa8",
|
|
188
|
+
"next": "WAIT-2",
|
|
189
|
+
"arguments": {},
|
|
190
|
+
"metaData": {}
|
|
191
|
+
}
|
|
192
|
+
],
|
|
193
|
+
"arguments": { "contactKey": "{{Contact.Key}}", "value": "{{DateTime.Now}}" },
|
|
194
|
+
"configurationArguments": {
|
|
195
|
+
"dataExtensionId": "ace267f0-b81d-e711-80cc-1402ec7222b4",
|
|
196
|
+
"field": "4e875b26-0317-4525-bfa0-50c8d1b7a7b5"
|
|
197
|
+
},
|
|
198
|
+
"metaData": {
|
|
199
|
+
"dataExtensionName": "test_TestData",
|
|
200
|
+
"cachedFieldName": "JourneyConfirmed",
|
|
201
|
+
"cachedDisplayValue": ""
|
|
202
|
+
},
|
|
203
|
+
"schema": {
|
|
204
|
+
"arguments": {
|
|
205
|
+
"contactKey": {
|
|
206
|
+
"dataType": "Text",
|
|
207
|
+
"isNullable": false,
|
|
208
|
+
"direction": "In",
|
|
209
|
+
"readOnly": false,
|
|
210
|
+
"access": "Hidden"
|
|
211
|
+
},
|
|
212
|
+
"value": {
|
|
213
|
+
"dataType": "Text",
|
|
214
|
+
"isNullable": false,
|
|
215
|
+
"direction": "In",
|
|
216
|
+
"readOnly": false,
|
|
217
|
+
"access": "Hidden"
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
],
|
|
223
|
+
"triggers": [
|
|
224
|
+
{
|
|
225
|
+
"id": "a7f8cd93-e0a6-40a5-8557-5bd6fa76c0ea",
|
|
226
|
+
"key": "TRIGGER",
|
|
227
|
+
"name": "test_TESTDataentry",
|
|
228
|
+
"description": "",
|
|
229
|
+
"type": "APIEvent",
|
|
230
|
+
"outcomes": [],
|
|
231
|
+
"arguments": {
|
|
232
|
+
"filterResult": "{{Contact.FilterId.e4ddb887-6f2d-46b1-9f64-9a020f217339}}"
|
|
233
|
+
},
|
|
234
|
+
"configurationArguments": {
|
|
235
|
+
"schemaVersionId": 133,
|
|
236
|
+
"criteria": "<FilterDefinition><ConditionSet Operator=\"AND\" ConditionSetName=\"Individual Filter Grouping\"></ConditionSet></FilterDefinition>",
|
|
237
|
+
"filterDefinitionId": "e4ddb887-6f2d-46b1-9f64-9a020f217339"
|
|
238
|
+
},
|
|
239
|
+
"metaData": {
|
|
240
|
+
"scheduleState": "No Schedule",
|
|
241
|
+
"sourceInteractionId": "00000000-0000-0000-0000-000000000000",
|
|
242
|
+
"eventDefinitionId": "33b4dbc5-4b58-4a54-ab57-24388f1eefe4",
|
|
243
|
+
"eventDefinitionKey": "APIEvent-60130566-e2fe-eb29-4140-15c27093a80b",
|
|
244
|
+
"chainType": "None",
|
|
245
|
+
"configurationRequired": false,
|
|
246
|
+
"iconUrl": "/events/images/icon_journeyBuilder-event-api-blue.svg",
|
|
247
|
+
"title": "",
|
|
248
|
+
"category": "Event"
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
],
|
|
252
|
+
"goals": [],
|
|
253
|
+
"exits": [],
|
|
254
|
+
"notifiers": [],
|
|
255
|
+
"stats": {
|
|
256
|
+
"currentPopulation": 5848,
|
|
257
|
+
"cumulativePopulation": 3019,
|
|
258
|
+
"metGoal": 0,
|
|
259
|
+
"metExitCriteria": 0,
|
|
260
|
+
"goalPerformance": 0
|
|
261
|
+
},
|
|
262
|
+
"healthStats": {
|
|
263
|
+
"currentlyInCount": 0,
|
|
264
|
+
"delayedContactCount": 0,
|
|
265
|
+
"delayedMinuteInterval": 60
|
|
266
|
+
},
|
|
267
|
+
"entryMode": "OnceAndDone",
|
|
268
|
+
"definitionType": "Multistep",
|
|
269
|
+
"channel": "",
|
|
270
|
+
"defaults": {
|
|
271
|
+
"email": ["{{Event.APIEvent-60130566-e2fe-eb29-4140-15c27093a80b.\"emailAddress\"}}"],
|
|
272
|
+
"properties": {}
|
|
273
|
+
},
|
|
274
|
+
"metaData": {},
|
|
275
|
+
"executionMode": "Production",
|
|
276
|
+
"categoryId": 6298,
|
|
277
|
+
"status": "Draft",
|
|
278
|
+
"definitionId": "233d4413-922c-4568-85a5-e5cc77efc3be",
|
|
279
|
+
"scheduledStatus": "Draft"
|
|
280
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
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>RetrieveResponse</wsa:Action>
|
|
10
|
+
<wsa:MessageID>urn:uuid:8fe86c01-56d5-4c56-8ac2-991578c79485</wsa:MessageID>
|
|
11
|
+
<wsa:RelatesTo>urn:uuid:592f71ac-78a0-45a2-8cfe-37a91fc6cfd5</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-675af14a-b6a1-44a5-b7e7-4a76c6d18424">
|
|
15
|
+
<wsu:Created>2023-02-01T10:29:21Z</wsu:Created>
|
|
16
|
+
<wsu:Expires>2023-02-01T10:34:21Z</wsu:Expires>
|
|
17
|
+
</wsu:Timestamp>
|
|
18
|
+
</wsse:Security>
|
|
19
|
+
</soap:Header>
|
|
20
|
+
<soap:Body>
|
|
21
|
+
<RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
|
|
22
|
+
<OverallStatus>OK</OverallStatus>
|
|
23
|
+
<RequestID>a90dda5e-aeba-440a-82ce-74fb2abf5eb2</RequestID>
|
|
24
|
+
<Results xsi:type="TriggeredSendDefinition">
|
|
25
|
+
<PartnerKey xsi:nil="true" />
|
|
26
|
+
<PartnerProperties>
|
|
27
|
+
<Name>TestEmailAddr</Name>
|
|
28
|
+
<Value />
|
|
29
|
+
</PartnerProperties>
|
|
30
|
+
<CreatedDate>2018-06-25T05:58:00</CreatedDate>
|
|
31
|
+
<ModifiedDate>2018-06-25T05:58:00</ModifiedDate>
|
|
32
|
+
<ObjectID>b3150cf0-6e78-e811-80d4-1402ec721c9d</ObjectID>
|
|
33
|
+
<CustomerKey>2621</CustomerKey>
|
|
34
|
+
<IsPlatformObject>false</IsPlatformObject>
|
|
35
|
+
<Name>Unsubscribe_Email</Name>
|
|
36
|
+
<Description>Unsubscribe_Email</Description>
|
|
37
|
+
<Keyword />
|
|
38
|
+
<CategoryID>5654</CategoryID>
|
|
39
|
+
<SendClassification>
|
|
40
|
+
<PartnerKey xsi:nil="true" />
|
|
41
|
+
<ObjectID xsi:nil="true" />
|
|
42
|
+
<CustomerKey>Default Transactional</CustomerKey>
|
|
43
|
+
</SendClassification>
|
|
44
|
+
<FromName>unsubscribe</FromName>
|
|
45
|
+
<FromAddress>unsubscribe@emails.mcdev.accenture.com</FromAddress>
|
|
46
|
+
<SuppressTracking>false</SuppressTracking>
|
|
47
|
+
<TriggeredSendType>Continuous</TriggeredSendType>
|
|
48
|
+
<TriggeredSendStatus>New</TriggeredSendStatus>
|
|
49
|
+
<Email>
|
|
50
|
+
<PartnerKey xsi:nil="true" />
|
|
51
|
+
<ID>1960</ID>
|
|
52
|
+
<ObjectID xsi:nil="true" />
|
|
53
|
+
</Email>
|
|
54
|
+
<AutoAddSubscribers>false</AutoAddSubscribers>
|
|
55
|
+
<AutoUpdateSubscribers>false</AutoUpdateSubscribers>
|
|
56
|
+
<BatchInterval>0</BatchInterval>
|
|
57
|
+
<BccEmail />
|
|
58
|
+
<EmailSubject>You are successfully unsubscribed</EmailSubject>
|
|
59
|
+
<DynamicEmailSubject>You are successfully unsubscribed</DynamicEmailSubject>
|
|
60
|
+
<IsMultipart>false</IsMultipart>
|
|
61
|
+
<IsWrapped>true</IsWrapped>
|
|
62
|
+
<AllowedSlots>0</AllowedSlots>
|
|
63
|
+
<NewSlotTrigger>0</NewSlotTrigger>
|
|
64
|
+
<Priority>4</Priority>
|
|
65
|
+
</Results>
|
|
66
|
+
</RetrieveResponseMsg>
|
|
67
|
+
</soap:Body>
|
|
68
|
+
</soap:Envelope>
|