mcdev 7.1.1 → 7.1.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/.gitattributes +2 -0
- package/.github/ISSUE_TEMPLATE/bug.yml +1 -0
- package/.github/PULL_REQUEST_TEMPLATE/pr_template_release.md +5 -5
- package/@types/lib/index.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Asset.d.ts +2 -0
- package/@types/lib/metadataTypes/Asset.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Folder.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Journey.d.ts +433 -17
- package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MetadataType.d.ts +9 -2
- package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/definitions/Asset.definition.d.ts +2 -0
- package/@types/lib/metadataTypes/definitions/Journey.definition.d.ts +433 -17
- package/@types/lib/util/cache.d.ts +2 -1
- package/@types/lib/util/cache.d.ts.map +1 -1
- package/@types/lib/util/util.d.ts.map +1 -1
- package/@types/types/mcdev.d.d.ts +4 -4
- package/@types/types/mcdev.d.d.ts.map +1 -1
- package/eslint.config.js +1 -0
- package/lib/cli.js +5 -0
- package/lib/index.js +2 -1
- package/lib/metadataTypes/Asset.js +86 -20
- package/lib/metadataTypes/Folder.js +15 -7
- package/lib/metadataTypes/Journey.js +3 -8
- package/lib/metadataTypes/MetadataType.js +37 -16
- package/lib/metadataTypes/definitions/Asset.definition.js +2 -0
- package/lib/metadataTypes/definitions/Event.definition.js +4 -4
- package/lib/metadataTypes/definitions/Journey.definition.js +438 -22
- package/lib/util/cache.js +4 -3
- package/lib/util/util.js +7 -2
- package/package.json +2 -2
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_htmlblock-matchName-create.asset-block-meta.html +23 -0
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_htmlblock-matchName-create.asset-block-meta.json +41 -0
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_htmlblock-matchName-fail.asset-block-meta.html +23 -0
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_htmlblock-matchName-fail.asset-block-meta.json +41 -0
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_htmlblock-matchName.asset-block-meta.html +23 -0
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/testExisting_asset_htmlblock-matchName.asset-block-meta.json +41 -0
- package/test/resourceFactory.js +13 -17
- package/test/resources/9999999/asset/v1/content/assets/1295064/patch-response.json +59 -0
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN1,3,14,15,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,210,211,212,213,215,216,217,218,219,220,221,222,223,224.json +219 -0
- package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN205,206,230,232,1,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,14,193,194,15,195,196,197,198,199,200,201,202,203,210,211,212,213,3,215,216,217,218,219,220,221,222.json → post-response-assetType.idIN1,3,4,14,15,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,210,211,212,213,214,215,216,217,218,219,220,221,222.json} +19 -16
- package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN205,206,230,232,1,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,14,193,194,15,195,196,197,198,199,200,201,202,203,210,211,212,213,3,207,208,209,5,214,4,215,216.json → post-response-assetType.idIN1,3,4,5,14,15,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,205,206,207,208,209,210,211,212,213,214,215,216,217,218.json} +77 -25
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN219,220,221,222,223,224,225,226,227,228,230,232.json +32 -0
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN223,224,225,226,227,228,230,232.json +32 -0
- package/test/resources/9999999/interaction/v1/interactions/get-response.json +1 -1
- package/test/resources/9999999/interaction/v1/interactions/key_testExisting_journey_Multistep/get-response.json +5 -1
- package/test/resources/9999999/journey/build-expected.json +0 -1
- package/test/resources/9999999/journey/get-multistep-expected.json +8 -6
- package/test/resources/9999999/journey/template-expected.json +0 -1
- package/test/resources/9999999/triggeredSend/build-expected.json +2 -1
- package/test/resources/9999999/triggeredSend/get-expected.json +2 -1
- package/test/resources/9999999/triggeredSend/template-expected.json +2 -1
- package/test/resources/9999999/triggeredSendDefinition/retrieve-TriggeredSendStatusINNew,Active,Inactive,Moved,Canceled-response.xml +1 -1
- package/test/type.asset.test.js +117 -2
- package/test/utils.js +30 -1
- package/types/mcdev.d.js +2 -2
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN223,224,225,226,227,228,214,4.json +0 -35
- package/test/resources/9999999/asset/v1/content/assets/query/post-response-assetType.idIN223,224,225,226,227,228.json +0 -7
- /package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN205,206,230,232,1.json → post-response-assetType.idIN1,205,206,230,232.json} +0 -0
- /package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN205,206,230,232,1,207,208,209,5.json → post-response-assetType.idIN1,5,205,206,207,208,209,230,232.json} +0 -0
- /package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,14.json → post-response-assetType.idIN14,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192.json} +0 -0
- /package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN193,194,15.json → post-response-assetType.idIN15,193,194.json} +0 -0
- /package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN217,218,219,220,221,222,223,224,225,226,227,228.json → post-response-assetType.idIN225,226,227,228,230,232.json} +0 -0
- /package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN195,196,197,198,199,200,201,202,203,210,211,212,213,3.json → post-response-assetType.idIN3,195,196,197,198,199,200,201,202,203,210,211,212,213.json} +0 -0
- /package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN214,4.json → post-response-assetType.idIN4,214.json} +0 -0
- /package/test/resources/9999999/asset/v1/content/assets/query/{post-response-assetType.idIN207,208,209,5.json → post-response-assetType.idIN5,207,208,209.json} +0 -0
|
@@ -28,7 +28,6 @@ export default {
|
|
|
28
28
|
'activities.metaData.highThroughput.r__dataExtension_key',
|
|
29
29
|
'activities.configurationArguments.triggeredSend.r__dataExtension_key.domainExclusions',
|
|
30
30
|
],
|
|
31
|
-
triggeredSend: ['activities.configurationArguments.r__triggeredSend_key'],
|
|
32
31
|
list: [
|
|
33
32
|
'activities.configurationArguments.triggeredSend.r__list_PathName.publicationList',
|
|
34
33
|
'activities.configurationArguments.triggeredSend.r__list_PathName.suppressionLists',
|
|
@@ -71,6 +70,435 @@ export default {
|
|
|
71
70
|
},
|
|
72
71
|
fields: {
|
|
73
72
|
activities: {
|
|
73
|
+
isCreateable: true,
|
|
74
|
+
isUpdateable: true,
|
|
75
|
+
retrieving: true,
|
|
76
|
+
template: true,
|
|
77
|
+
},
|
|
78
|
+
'activities[].id': {
|
|
79
|
+
isCreateable: true,
|
|
80
|
+
isUpdateable: true,
|
|
81
|
+
retrieving: true,
|
|
82
|
+
template: true,
|
|
83
|
+
},
|
|
84
|
+
'activities[].key': {
|
|
85
|
+
isCreateable: true,
|
|
86
|
+
isUpdateable: true,
|
|
87
|
+
retrieving: true,
|
|
88
|
+
template: true,
|
|
89
|
+
},
|
|
90
|
+
'activities[].name': {
|
|
91
|
+
isCreateable: true,
|
|
92
|
+
isUpdateable: true,
|
|
93
|
+
retrieving: true,
|
|
94
|
+
template: true,
|
|
95
|
+
},
|
|
96
|
+
'activities[].description': {
|
|
97
|
+
isCreateable: true,
|
|
98
|
+
isUpdateable: true,
|
|
99
|
+
retrieving: true,
|
|
100
|
+
template: true,
|
|
101
|
+
},
|
|
102
|
+
'activities[].type': {
|
|
103
|
+
isCreateable: true,
|
|
104
|
+
isUpdateable: true,
|
|
105
|
+
retrieving: true,
|
|
106
|
+
template: true,
|
|
107
|
+
},
|
|
108
|
+
'activities[].outcomes': {
|
|
109
|
+
skipValidation: true,
|
|
110
|
+
},
|
|
111
|
+
'activities[].arguments': {
|
|
112
|
+
skipValidation: true,
|
|
113
|
+
},
|
|
114
|
+
'activities[].configurationArguments': {
|
|
115
|
+
isCreateable: true,
|
|
116
|
+
isUpdateable: true,
|
|
117
|
+
retrieving: true,
|
|
118
|
+
template: true,
|
|
119
|
+
},
|
|
120
|
+
'activities[].configurationArguments.triggeredSend': {
|
|
121
|
+
isCreateable: true,
|
|
122
|
+
isUpdateable: true,
|
|
123
|
+
retrieving: true,
|
|
124
|
+
template: true,
|
|
125
|
+
},
|
|
126
|
+
'activities[].configurationArguments.triggeredSend.autoAddSubscribers': {
|
|
127
|
+
isCreateable: true,
|
|
128
|
+
isUpdateable: true,
|
|
129
|
+
retrieving: true,
|
|
130
|
+
template: true,
|
|
131
|
+
},
|
|
132
|
+
'activities[].configurationArguments.triggeredSend.autoUpdateSubscribers': {
|
|
133
|
+
isCreateable: true,
|
|
134
|
+
isUpdateable: true,
|
|
135
|
+
retrieving: true,
|
|
136
|
+
template: true,
|
|
137
|
+
},
|
|
138
|
+
'activities[].configurationArguments.triggeredSend.bccEmail': {
|
|
139
|
+
isCreateable: true,
|
|
140
|
+
isUpdateable: true,
|
|
141
|
+
retrieving: true,
|
|
142
|
+
template: true,
|
|
143
|
+
},
|
|
144
|
+
'activities[].configurationArguments.triggeredSend.categoryId': {
|
|
145
|
+
isCreateable: true,
|
|
146
|
+
isUpdateable: true,
|
|
147
|
+
retrieving: true,
|
|
148
|
+
template: true,
|
|
149
|
+
},
|
|
150
|
+
'activities[].configurationArguments.triggeredSend.ccEmail': {
|
|
151
|
+
isCreateable: true,
|
|
152
|
+
isUpdateable: true,
|
|
153
|
+
retrieving: true,
|
|
154
|
+
template: true,
|
|
155
|
+
},
|
|
156
|
+
'activities[].configurationArguments.triggeredSend.created': {
|
|
157
|
+
skipValidation: true,
|
|
158
|
+
},
|
|
159
|
+
'activities[].configurationArguments.triggeredSend.description': {
|
|
160
|
+
isCreateable: true,
|
|
161
|
+
isUpdateable: true,
|
|
162
|
+
retrieving: true,
|
|
163
|
+
template: true,
|
|
164
|
+
},
|
|
165
|
+
'activities[].configurationArguments.triggeredSend.domainExclusions': {
|
|
166
|
+
isCreateable: true,
|
|
167
|
+
isUpdateable: true,
|
|
168
|
+
retrieving: true,
|
|
169
|
+
template: true,
|
|
170
|
+
},
|
|
171
|
+
'activities[].configurationArguments.triggeredSend.dynamicEmailSubject': {
|
|
172
|
+
isCreateable: true,
|
|
173
|
+
isUpdateable: true,
|
|
174
|
+
retrieving: true,
|
|
175
|
+
template: true,
|
|
176
|
+
},
|
|
177
|
+
'activities[].configurationArguments.triggeredSend.emailSubject': {
|
|
178
|
+
isCreateable: true,
|
|
179
|
+
isUpdateable: true,
|
|
180
|
+
retrieving: true,
|
|
181
|
+
template: true,
|
|
182
|
+
},
|
|
183
|
+
'activities[].configurationArguments.triggeredSend.exclusionFilter': {
|
|
184
|
+
isCreateable: true,
|
|
185
|
+
isUpdateable: true,
|
|
186
|
+
retrieving: true,
|
|
187
|
+
template: true,
|
|
188
|
+
},
|
|
189
|
+
'activities[].configurationArguments.triggeredSend.isSalesforceTracking': {
|
|
190
|
+
isCreateable: true,
|
|
191
|
+
isUpdateable: true,
|
|
192
|
+
retrieving: true,
|
|
193
|
+
template: true,
|
|
194
|
+
},
|
|
195
|
+
'activities[].configurationArguments.triggeredSend.isMultipart': {
|
|
196
|
+
isCreateable: true,
|
|
197
|
+
isUpdateable: true,
|
|
198
|
+
retrieving: true,
|
|
199
|
+
template: true,
|
|
200
|
+
},
|
|
201
|
+
'activities[].configurationArguments.triggeredSend.isSendLogging': {
|
|
202
|
+
isCreateable: true,
|
|
203
|
+
isUpdateable: true,
|
|
204
|
+
retrieving: true,
|
|
205
|
+
template: true,
|
|
206
|
+
},
|
|
207
|
+
'activities[].configurationArguments.triggeredSend.isStoppedOnJobError': {
|
|
208
|
+
isCreateable: true,
|
|
209
|
+
isUpdateable: true,
|
|
210
|
+
retrieving: true,
|
|
211
|
+
template: true,
|
|
212
|
+
},
|
|
213
|
+
'activities[].configurationArguments.triggeredSend.keyword': {
|
|
214
|
+
isCreateable: true,
|
|
215
|
+
isUpdateable: true,
|
|
216
|
+
retrieving: true,
|
|
217
|
+
template: true,
|
|
218
|
+
},
|
|
219
|
+
'activities[].configurationArguments.triggeredSend.modified': {
|
|
220
|
+
skipValidation: true,
|
|
221
|
+
},
|
|
222
|
+
'activities[].configurationArguments.triggeredSend.name': {
|
|
223
|
+
isCreateable: true,
|
|
224
|
+
isUpdateable: true,
|
|
225
|
+
retrieving: true,
|
|
226
|
+
template: false,
|
|
227
|
+
},
|
|
228
|
+
'activities[].configurationArguments.triggeredSend.preHeader': {
|
|
229
|
+
isCreateable: true,
|
|
230
|
+
isUpdateable: true,
|
|
231
|
+
retrieving: true,
|
|
232
|
+
template: true,
|
|
233
|
+
},
|
|
234
|
+
'activities[].configurationArguments.triggeredSend.replyToAddress': {
|
|
235
|
+
isCreateable: true,
|
|
236
|
+
isUpdateable: true,
|
|
237
|
+
retrieving: true,
|
|
238
|
+
template: true,
|
|
239
|
+
},
|
|
240
|
+
'activities[].configurationArguments.triggeredSend.replyToDisplayName': {
|
|
241
|
+
isCreateable: true,
|
|
242
|
+
isUpdateable: true,
|
|
243
|
+
retrieving: true,
|
|
244
|
+
template: true,
|
|
245
|
+
},
|
|
246
|
+
'activities[].configurationArguments.triggeredSend.suppressTracking': {
|
|
247
|
+
isCreateable: true,
|
|
248
|
+
isUpdateable: true,
|
|
249
|
+
retrieving: true,
|
|
250
|
+
template: true,
|
|
251
|
+
},
|
|
252
|
+
'activities[].configurationArguments.triggeredSend.triggeredSendStatus': {
|
|
253
|
+
isCreateable: true,
|
|
254
|
+
isUpdateable: true,
|
|
255
|
+
retrieving: true,
|
|
256
|
+
template: true,
|
|
257
|
+
},
|
|
258
|
+
'activities[].configurationArguments.triggeredSend.version': {
|
|
259
|
+
isCreateable: true,
|
|
260
|
+
isUpdateable: true,
|
|
261
|
+
retrieving: true,
|
|
262
|
+
template: true,
|
|
263
|
+
},
|
|
264
|
+
'activities[].configurationArguments.triggeredSend.throttleOpens': {
|
|
265
|
+
isCreateable: true,
|
|
266
|
+
isUpdateable: true,
|
|
267
|
+
retrieving: true,
|
|
268
|
+
template: true,
|
|
269
|
+
},
|
|
270
|
+
'activities[].configurationArguments.triggeredSend.throttleCloses': {
|
|
271
|
+
isCreateable: true,
|
|
272
|
+
isUpdateable: true,
|
|
273
|
+
retrieving: true,
|
|
274
|
+
template: true,
|
|
275
|
+
},
|
|
276
|
+
'activities[].configurationArguments.triggeredSend.throttleLimit': {
|
|
277
|
+
isCreateable: true,
|
|
278
|
+
isUpdateable: true,
|
|
279
|
+
retrieving: true,
|
|
280
|
+
template: true,
|
|
281
|
+
},
|
|
282
|
+
'activities[].configurationArguments.triggeredSend.isTrackingClicks': {
|
|
283
|
+
isCreateable: true,
|
|
284
|
+
isUpdateable: true,
|
|
285
|
+
retrieving: true,
|
|
286
|
+
template: true,
|
|
287
|
+
},
|
|
288
|
+
'activities[].configurationArguments.triggeredSend.emailId': {
|
|
289
|
+
isCreateable: true,
|
|
290
|
+
isUpdateable: true,
|
|
291
|
+
retrieving: true,
|
|
292
|
+
template: true,
|
|
293
|
+
},
|
|
294
|
+
'activities[].configurationArguments.triggeredSend.r__triggeredSend_key': {
|
|
295
|
+
isCreateable: false,
|
|
296
|
+
isUpdateable: false,
|
|
297
|
+
retrieving: true,
|
|
298
|
+
template: false,
|
|
299
|
+
},
|
|
300
|
+
'activities[].configurationArguments.triggeredSend.senderProfileId': {
|
|
301
|
+
isCreateable: true,
|
|
302
|
+
isUpdateable: true,
|
|
303
|
+
retrieving: true,
|
|
304
|
+
template: true,
|
|
305
|
+
},
|
|
306
|
+
'activities[].configurationArguments.triggeredSend.r__senderProfile_key': {
|
|
307
|
+
isCreateable: false,
|
|
308
|
+
isUpdateable: false,
|
|
309
|
+
retrieving: true,
|
|
310
|
+
template: true,
|
|
311
|
+
},
|
|
312
|
+
' activities[].configurationArguments.triggeredSend.sendClassificationId': {
|
|
313
|
+
isCreateable: true,
|
|
314
|
+
isUpdateable: true,
|
|
315
|
+
retrieving: true,
|
|
316
|
+
template: true,
|
|
317
|
+
},
|
|
318
|
+
'activities[].configurationArguments.triggeredSend.r__sendClassification_key': {
|
|
319
|
+
isCreateable: false,
|
|
320
|
+
isUpdateable: false,
|
|
321
|
+
retrieving: true,
|
|
322
|
+
template: true,
|
|
323
|
+
},
|
|
324
|
+
'activities[].configurationArguments.triggeredSend.r__list_PathName': {
|
|
325
|
+
isCreateable: false,
|
|
326
|
+
isUpdateable: false,
|
|
327
|
+
retrieving: true,
|
|
328
|
+
template: true,
|
|
329
|
+
},
|
|
330
|
+
'activities[].configurationArguments.triggeredSend.publicationListId': {
|
|
331
|
+
isCreateable: true,
|
|
332
|
+
isUpdateable: true,
|
|
333
|
+
retrieving: true,
|
|
334
|
+
template: true,
|
|
335
|
+
},
|
|
336
|
+
'activities[].configurationArguments.triggeredSend.r__list_PathName.publicationList': {
|
|
337
|
+
isCreateable: false,
|
|
338
|
+
isUpdateable: false,
|
|
339
|
+
retrieving: true,
|
|
340
|
+
template: true,
|
|
341
|
+
},
|
|
342
|
+
'activities[].configurationArguments.triggeredSend.r__list_PathName.suppressionLists': {
|
|
343
|
+
isCreateable: false,
|
|
344
|
+
isUpdateable: false,
|
|
345
|
+
retrieving: true,
|
|
346
|
+
template: true,
|
|
347
|
+
},
|
|
348
|
+
'activities[].configurationArguments.triggeredSend.r__dataExtension_key': {
|
|
349
|
+
isCreateable: false,
|
|
350
|
+
isUpdateable: false,
|
|
351
|
+
retrieving: true,
|
|
352
|
+
template: true,
|
|
353
|
+
},
|
|
354
|
+
'activities[].configurationArguments.triggeredSend.r__dataExtension_key.domainExclusions': {
|
|
355
|
+
isCreateable: false,
|
|
356
|
+
isUpdateable: false,
|
|
357
|
+
retrieving: true,
|
|
358
|
+
template: true,
|
|
359
|
+
},
|
|
360
|
+
'activities[].configurationArguments.triggeredSend.priority': {
|
|
361
|
+
isCreateable: true,
|
|
362
|
+
isUpdateable: true,
|
|
363
|
+
retrieving: true,
|
|
364
|
+
template: true,
|
|
365
|
+
},
|
|
366
|
+
'activities[].configurationArguments.triggeredSend.c__priority': {
|
|
367
|
+
isCreateable: false,
|
|
368
|
+
isUpdateable: false,
|
|
369
|
+
retrieving: true,
|
|
370
|
+
template: true,
|
|
371
|
+
},
|
|
372
|
+
'activities[].configurationArguments.triggeredSend.r__asset_name_readOnly': {
|
|
373
|
+
isCreateable: false,
|
|
374
|
+
isUpdateable: false,
|
|
375
|
+
retrieving: true,
|
|
376
|
+
template: false,
|
|
377
|
+
},
|
|
378
|
+
'activities[].configurationArguments.triggeredSend.r__asset_key': {
|
|
379
|
+
isCreateable: false,
|
|
380
|
+
isUpdateable: false,
|
|
381
|
+
retrieving: true,
|
|
382
|
+
template: true,
|
|
383
|
+
},
|
|
384
|
+
'activities[].configurationArguments.applicationExtensionKey': {
|
|
385
|
+
isCreateable: true,
|
|
386
|
+
isUpdateable: true,
|
|
387
|
+
retrieving: true,
|
|
388
|
+
template: true,
|
|
389
|
+
},
|
|
390
|
+
'activities[].configurationArguments.r__transactionalEmail_key': {
|
|
391
|
+
isCreateable: false,
|
|
392
|
+
isUpdateable: false,
|
|
393
|
+
retrieving: true,
|
|
394
|
+
template: true,
|
|
395
|
+
},
|
|
396
|
+
'activities[].configurationArguments.applicationExtensionId': {
|
|
397
|
+
isCreateable: true,
|
|
398
|
+
isUpdateable: true,
|
|
399
|
+
retrieving: true,
|
|
400
|
+
template: true,
|
|
401
|
+
},
|
|
402
|
+
'activities[].configurationArguments.isModified': {
|
|
403
|
+
isCreateable: true,
|
|
404
|
+
isUpdateable: true,
|
|
405
|
+
retrieving: true,
|
|
406
|
+
template: true,
|
|
407
|
+
},
|
|
408
|
+
'activities[].configurationArguments.isSimulation': {
|
|
409
|
+
isCreateable: true,
|
|
410
|
+
isUpdateable: true,
|
|
411
|
+
retrieving: true,
|
|
412
|
+
template: true,
|
|
413
|
+
},
|
|
414
|
+
'activities[].configurationArguments.googleAnalyticsCampaignName': {
|
|
415
|
+
isCreateable: true,
|
|
416
|
+
isUpdateable: true,
|
|
417
|
+
retrieving: true,
|
|
418
|
+
template: true,
|
|
419
|
+
},
|
|
420
|
+
'activities[].configurationArguments.useLLTS': {
|
|
421
|
+
isCreateable: true,
|
|
422
|
+
isUpdateable: true,
|
|
423
|
+
retrieving: true,
|
|
424
|
+
template: true,
|
|
425
|
+
},
|
|
426
|
+
'activities[].configurationArguments.fuelAgentRequested': {
|
|
427
|
+
isCreateable: true,
|
|
428
|
+
isUpdateable: true,
|
|
429
|
+
retrieving: true,
|
|
430
|
+
template: true,
|
|
431
|
+
},
|
|
432
|
+
'activities[].configurationArguments.r__triggeredSend_key': {
|
|
433
|
+
isCreateable: false,
|
|
434
|
+
isUpdateable: false,
|
|
435
|
+
retrieving: true,
|
|
436
|
+
template: false,
|
|
437
|
+
},
|
|
438
|
+
'activities[].configurationArguments.waitDuration': {
|
|
439
|
+
isCreateable: true,
|
|
440
|
+
isUpdateable: true,
|
|
441
|
+
retrieving: true,
|
|
442
|
+
template: true,
|
|
443
|
+
},
|
|
444
|
+
'activities[].configurationArguments.waitUnit': {
|
|
445
|
+
isCreateable: true,
|
|
446
|
+
isUpdateable: true,
|
|
447
|
+
retrieving: true,
|
|
448
|
+
template: true,
|
|
449
|
+
},
|
|
450
|
+
'activities[].configurationArguments.specifiedTime': {
|
|
451
|
+
isCreateable: true,
|
|
452
|
+
isUpdateable: true,
|
|
453
|
+
retrieving: true,
|
|
454
|
+
template: true,
|
|
455
|
+
},
|
|
456
|
+
'activities[].configurationArguments.timeZone': {
|
|
457
|
+
isCreateable: true,
|
|
458
|
+
isUpdateable: true,
|
|
459
|
+
retrieving: true,
|
|
460
|
+
template: true,
|
|
461
|
+
},
|
|
462
|
+
'activities[].configurationArguments.description': {
|
|
463
|
+
isCreateable: true,
|
|
464
|
+
isUpdateable: true,
|
|
465
|
+
retrieving: true,
|
|
466
|
+
template: true,
|
|
467
|
+
},
|
|
468
|
+
'activities[].configurationArguments.waitEndDateAttributeExpression': {
|
|
469
|
+
isCreateable: true,
|
|
470
|
+
isUpdateable: true,
|
|
471
|
+
retrieving: true,
|
|
472
|
+
template: true,
|
|
473
|
+
},
|
|
474
|
+
'activities[].configurationArguments.specificDate': {
|
|
475
|
+
isCreateable: true,
|
|
476
|
+
isUpdateable: true,
|
|
477
|
+
retrieving: true,
|
|
478
|
+
template: true,
|
|
479
|
+
},
|
|
480
|
+
'activities[].configurationArguments.waitForEventKey': {
|
|
481
|
+
isCreateable: true,
|
|
482
|
+
isUpdateable: true,
|
|
483
|
+
retrieving: true,
|
|
484
|
+
template: true,
|
|
485
|
+
},
|
|
486
|
+
'activities[].configurationArguments.schemaVersionId': {
|
|
487
|
+
isCreateable: true,
|
|
488
|
+
isUpdateable: true,
|
|
489
|
+
retrieving: true,
|
|
490
|
+
template: true,
|
|
491
|
+
},
|
|
492
|
+
'activities[].configurationArguments.criteria': {
|
|
493
|
+
skipValidation: true,
|
|
494
|
+
},
|
|
495
|
+
'activities[].configurationArguments.eventDataConfig': {
|
|
496
|
+
skipValidation: true,
|
|
497
|
+
},
|
|
498
|
+
'activities[].metaData': {
|
|
499
|
+
skipValidation: true,
|
|
500
|
+
},
|
|
501
|
+
'activities[].schema': {
|
|
74
502
|
skipValidation: true,
|
|
75
503
|
},
|
|
76
504
|
categoryId: {
|
|
@@ -182,7 +610,7 @@ export default {
|
|
|
182
610
|
isCreateable: false,
|
|
183
611
|
isUpdateable: false,
|
|
184
612
|
retrieving: true,
|
|
185
|
-
template:
|
|
613
|
+
template: true,
|
|
186
614
|
},
|
|
187
615
|
modifiedDate: {
|
|
188
616
|
isCreateable: false,
|
|
@@ -342,16 +770,10 @@ export default {
|
|
|
342
770
|
template: true,
|
|
343
771
|
},
|
|
344
772
|
'triggers[].configurationArguments.primaryObjectFilterCriteria': {
|
|
345
|
-
|
|
346
|
-
isUpdateable: true,
|
|
347
|
-
retrieving: true,
|
|
348
|
-
template: true,
|
|
773
|
+
skipValidation: true,
|
|
349
774
|
},
|
|
350
775
|
'triggers[].configurationArguments.relatedObjectFilterCriteria': {
|
|
351
|
-
|
|
352
|
-
isUpdateable: true,
|
|
353
|
-
retrieving: true,
|
|
354
|
-
template: true,
|
|
776
|
+
skipValidation: true,
|
|
355
777
|
},
|
|
356
778
|
'triggers[].configurationArguments.salesforceTriggerCriteria': {
|
|
357
779
|
isCreateable: true,
|
|
@@ -372,10 +794,7 @@ export default {
|
|
|
372
794
|
template: true,
|
|
373
795
|
},
|
|
374
796
|
'triggers[].configurationArguments.contactKey': {
|
|
375
|
-
|
|
376
|
-
isUpdateable: true,
|
|
377
|
-
retrieving: true,
|
|
378
|
-
template: true,
|
|
797
|
+
skipValidation: true,
|
|
379
798
|
},
|
|
380
799
|
'triggers[].configurationArguments.contactPersonType': {
|
|
381
800
|
isCreateable: true,
|
|
@@ -415,10 +834,7 @@ export default {
|
|
|
415
834
|
template: true,
|
|
416
835
|
},
|
|
417
836
|
'triggers[].configurationArguments.passThroughArgument': {
|
|
418
|
-
|
|
419
|
-
isUpdateable: true,
|
|
420
|
-
retrieving: true,
|
|
421
|
-
template: true,
|
|
837
|
+
skipValidation: true,
|
|
422
838
|
},
|
|
423
839
|
'triggers[].configurationArguments.filterDefinitionId': {
|
|
424
840
|
isCreateable: false,
|
|
@@ -487,10 +903,10 @@ export default {
|
|
|
487
903
|
template: true,
|
|
488
904
|
},
|
|
489
905
|
'triggers[].metaData.eventDefinitionId': {
|
|
490
|
-
isCreateable:
|
|
491
|
-
isUpdateable:
|
|
492
|
-
retrieving:
|
|
493
|
-
template:
|
|
906
|
+
isCreateable: true,
|
|
907
|
+
isUpdateable: true,
|
|
908
|
+
retrieving: true,
|
|
909
|
+
template: true,
|
|
494
910
|
},
|
|
495
911
|
'triggers[].metaData.eventDefinitionKey': {
|
|
496
912
|
isCreateable: true,
|
package/lib/util/cache.js
CHANGED
|
@@ -152,9 +152,10 @@ export default {
|
|
|
152
152
|
*
|
|
153
153
|
* @param {string} r__folder_Path folder path value
|
|
154
154
|
* @param {number} [overrideMID] ignore currentMID and use alternative (for example parent MID)
|
|
155
|
+
* @param {boolean} allowOtherBu getting folder from other BU; FALSE for folder parent search
|
|
155
156
|
* @returns {number} folder ID
|
|
156
157
|
*/
|
|
157
|
-
getFolderId(r__folder_Path, overrideMID) {
|
|
158
|
+
getFolderId(r__folder_Path, overrideMID, allowOtherBu = true) {
|
|
158
159
|
if (!r__folder_Path) {
|
|
159
160
|
throw new Error('r__folder_Path not set');
|
|
160
161
|
}
|
|
@@ -166,9 +167,9 @@ export default {
|
|
|
166
167
|
const potentialFolders = [];
|
|
167
168
|
for (const folder of Object.values(folderMap)) {
|
|
168
169
|
if (folder.Path === r__folder_Path) {
|
|
169
|
-
if (folder
|
|
170
|
+
if (folder?.Client?.ID === (overrideMID || currentMID)) {
|
|
170
171
|
return folder.ID;
|
|
171
|
-
} else {
|
|
172
|
+
} else if (allowOtherBu) {
|
|
172
173
|
potentialFolders.push(folder);
|
|
173
174
|
}
|
|
174
175
|
}
|
package/lib/util/util.js
CHANGED
|
@@ -407,13 +407,18 @@ export const Util = {
|
|
|
407
407
|
if (message) {
|
|
408
408
|
// ! this method only sets exitCode=1 if message-param was set
|
|
409
409
|
// if not, then this method purely outputs debug information and should not change the exitCode
|
|
410
|
-
winstonError(message + ':');
|
|
411
|
-
winstonError(` ${ex.message} (${ex.code})`);
|
|
410
|
+
winstonError(`${message}: ${ex.message}${ex.code ? ' (' + ex.code + ')' : ''}`);
|
|
412
411
|
if (ex.endpoint) {
|
|
413
412
|
// ex.endpoint is only available if 'ex' is of type RestError
|
|
414
413
|
winstonError(' endpoint: ' + ex.endpoint);
|
|
415
414
|
}
|
|
416
415
|
Util.signalFatalError();
|
|
416
|
+
} else {
|
|
417
|
+
myWinston.debug(`${ex.message}${ex.code ? ' (' + ex.code + ')' : ''}`);
|
|
418
|
+
if (ex.endpoint) {
|
|
419
|
+
// ex.endpoint is only available if 'ex' is of type RestError
|
|
420
|
+
myWinston.debug(' endpoint: ' + ex.endpoint);
|
|
421
|
+
}
|
|
417
422
|
}
|
|
418
423
|
let stack;
|
|
419
424
|
/* eslint-disable unicorn/prefer-ternary */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mcdev",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.2",
|
|
4
4
|
"description": "Accenture Salesforce Marketing Cloud DevTools",
|
|
5
5
|
"author": "Accenture: joern.berkefeld, douglas.midgley, robert.zimmermann, maciej.barnas",
|
|
6
6
|
"license": "MIT",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"eslint-plugin-mocha": "10.4.3",
|
|
105
105
|
"eslint-plugin-prettier": "5.2.1",
|
|
106
106
|
"eslint-plugin-unicorn": "54.0.0",
|
|
107
|
-
"fast-xml-parser": "4.4.
|
|
107
|
+
"fast-xml-parser": "4.4.1",
|
|
108
108
|
"globals": "15.8.0",
|
|
109
109
|
"husky": "9.0.11",
|
|
110
110
|
"lint-staged": "15.2.7",
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<table
|
|
2
|
+
cellpadding="0"
|
|
3
|
+
cellspacing="0"
|
|
4
|
+
width="100%"
|
|
5
|
+
role="presentation"
|
|
6
|
+
style="min-width: 100%; "
|
|
7
|
+
class="stylingblock-content-wrapper"
|
|
8
|
+
>
|
|
9
|
+
<tr>
|
|
10
|
+
<td class="stylingblock-content-wrapper camarker-inner">
|
|
11
|
+
<div>my 1st html</div>
|
|
12
|
+
%%[
|
|
13
|
+
/* my ampscript */
|
|
14
|
+
]%%
|
|
15
|
+
<script runat="server">
|
|
16
|
+
// my ssjs
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<div>my 2nd html</div>
|
|
20
|
+
<div>%%=ContentBlockById(1295065)=%%</div>
|
|
21
|
+
</td>
|
|
22
|
+
</tr>
|
|
23
|
+
</table>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testExisting_asset_htmlblock-matchName-create",
|
|
3
|
+
"assetType": {
|
|
4
|
+
"name": "htmlblock",
|
|
5
|
+
"displayName": "HTML Block"
|
|
6
|
+
},
|
|
7
|
+
"fileProperties": {
|
|
8
|
+
"fileName": "testExisting_htmlblock_matchName-create"
|
|
9
|
+
},
|
|
10
|
+
"name": "testExisting_htmlblock_matchName-create",
|
|
11
|
+
"owner": {
|
|
12
|
+
"email": "joern.berkefeld@accenture.com",
|
|
13
|
+
"name": "Jörn Berkefeld (ASGR)"
|
|
14
|
+
},
|
|
15
|
+
"createdDate": "2024-01-08T08:26:58.277-06:00",
|
|
16
|
+
"createdBy": {
|
|
17
|
+
"email": "joern.berkefeld@accenture.com",
|
|
18
|
+
"name": "Jörn Berkefeld (ASGR)"
|
|
19
|
+
},
|
|
20
|
+
"modifiedDate": "2024-01-08T08:28:01.6-06:00",
|
|
21
|
+
"modifiedBy": {
|
|
22
|
+
"email": "joern.berkefeld@accenture.com",
|
|
23
|
+
"name": "Jörn Berkefeld (ASGR)"
|
|
24
|
+
},
|
|
25
|
+
"memberId": 9999999,
|
|
26
|
+
"status": {
|
|
27
|
+
"name": "Draft"
|
|
28
|
+
},
|
|
29
|
+
"design": "",
|
|
30
|
+
"meta": {
|
|
31
|
+
"wrapperStyles": {
|
|
32
|
+
"mobile": {
|
|
33
|
+
"visible": true
|
|
34
|
+
},
|
|
35
|
+
"styling": {}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"availableViews": [],
|
|
39
|
+
"modelVersion": 2,
|
|
40
|
+
"r__folder_Path": "Content Builder"
|
|
41
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<table
|
|
2
|
+
cellpadding="0"
|
|
3
|
+
cellspacing="0"
|
|
4
|
+
width="100%"
|
|
5
|
+
role="presentation"
|
|
6
|
+
style="min-width: 100%; "
|
|
7
|
+
class="stylingblock-content-wrapper"
|
|
8
|
+
>
|
|
9
|
+
<tr>
|
|
10
|
+
<td class="stylingblock-content-wrapper camarker-inner">
|
|
11
|
+
<div>my 1st html</div>
|
|
12
|
+
%%[
|
|
13
|
+
/* my ampscript */
|
|
14
|
+
]%%
|
|
15
|
+
<script runat="server">
|
|
16
|
+
// my ssjs
|
|
17
|
+
</script>
|
|
18
|
+
|
|
19
|
+
<div>my 2nd html</div>
|
|
20
|
+
<div>%%=ContentBlockById(1295065)=%%</div>
|
|
21
|
+
</td>
|
|
22
|
+
</tr>
|
|
23
|
+
</table>
|