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
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testExisting_asset_htmlblock-matchName-fail",
|
|
3
|
+
"assetType": {
|
|
4
|
+
"name": "htmlblock",
|
|
5
|
+
"displayName": "HTML Block"
|
|
6
|
+
},
|
|
7
|
+
"fileProperties": {
|
|
8
|
+
"fileName": "testExisting_htmlblock_matchName"
|
|
9
|
+
},
|
|
10
|
+
"name": "testExisting_htmlblock_matchName",
|
|
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>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testExisting_asset_htmlblock-matchName",
|
|
3
|
+
"assetType": {
|
|
4
|
+
"name": "htmlblock",
|
|
5
|
+
"displayName": "HTML Block"
|
|
6
|
+
},
|
|
7
|
+
"fileProperties": {
|
|
8
|
+
"fileName": "dont strip non ssjs content"
|
|
9
|
+
},
|
|
10
|
+
"name": "dont strip non ssjs content",
|
|
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
|
+
}
|
package/test/resourceFactory.js
CHANGED
|
@@ -30,6 +30,8 @@ if (Util.isRunViaVSCodeExtension) {
|
|
|
30
30
|
}
|
|
31
31
|
/* eslint-enable unicorn/prefer-ternary */
|
|
32
32
|
|
|
33
|
+
export const tWarn = `${color.bgYellow}${color.fgBlack}TEST-WARNING${color.reset}`;
|
|
34
|
+
export const tError = `${color.bgRed}${color.fgBlack}TEST-ERROR${color.reset}`;
|
|
33
35
|
/**
|
|
34
36
|
* gets mock SOAP metadata for responding
|
|
35
37
|
*
|
|
@@ -52,9 +54,7 @@ async function loadSOAPRecords(mcdevAction, type, mid, filter, QueryAllAccounts)
|
|
|
52
54
|
if (filterPath) {
|
|
53
55
|
/* eslint-disable no-console */
|
|
54
56
|
console.log(
|
|
55
|
-
`${
|
|
56
|
-
color.reset
|
|
57
|
-
}: You are loading your reponse from ${
|
|
57
|
+
`${tWarn}: You are loading your reponse from ${
|
|
58
58
|
testPath + '-response.xml'
|
|
59
59
|
} instead of the more specific ${
|
|
60
60
|
testPath + filterPath + '-response.xml'
|
|
@@ -68,7 +68,7 @@ async function loadSOAPRecords(mcdevAction, type, mid, filter, QueryAllAccounts)
|
|
|
68
68
|
}
|
|
69
69
|
/* eslint-disable no-console */
|
|
70
70
|
console.log(
|
|
71
|
-
`${
|
|
71
|
+
`${tError}: Please create file ${
|
|
72
72
|
filterPath ? testPath + filterPath + '-response.xml or ' : ''
|
|
73
73
|
}${testPath + '-response.xml'}`
|
|
74
74
|
);
|
|
@@ -313,6 +313,7 @@ export const handleRESTRequest = async (config) => {
|
|
|
313
313
|
response.count = response.items.length;
|
|
314
314
|
return [200, JSON.stringify(response)];
|
|
315
315
|
} else {
|
|
316
|
+
console.log('loading ' + testPathFilter + '.json'); // eslint-disable-line no-console
|
|
316
317
|
return [
|
|
317
318
|
200,
|
|
318
319
|
await fs.readFile(testPathFilter + '.json', {
|
|
@@ -328,6 +329,7 @@ export const handleRESTRequest = async (config) => {
|
|
|
328
329
|
}),
|
|
329
330
|
];
|
|
330
331
|
} else if (testPathFilterBody && (await fs.pathExists(testPathFilterBody + '.json'))) {
|
|
332
|
+
console.log('loading ' + testPathFilterBody + '.json'); // eslint-disable-line no-console
|
|
331
333
|
return [
|
|
332
334
|
200,
|
|
333
335
|
await fs.readFile(testPathFilterBody + '.json', {
|
|
@@ -345,9 +347,7 @@ export const handleRESTRequest = async (config) => {
|
|
|
345
347
|
if (testPathFilter) {
|
|
346
348
|
/* eslint-disable no-console */
|
|
347
349
|
console.log(
|
|
348
|
-
`${
|
|
349
|
-
color.reset
|
|
350
|
-
}: You are loading your reponse from ${
|
|
350
|
+
`${tWarn}: You are loading your reponse from ${
|
|
351
351
|
testPath + '.json'
|
|
352
352
|
} instead of the more specific ${
|
|
353
353
|
testPathFilter + '.json'
|
|
@@ -359,9 +359,7 @@ export const handleRESTRequest = async (config) => {
|
|
|
359
359
|
if (testPathFilterBody) {
|
|
360
360
|
/* eslint-disable no-console */
|
|
361
361
|
console.log(
|
|
362
|
-
`${
|
|
363
|
-
color.reset
|
|
364
|
-
}: You are loading your reponse from ${
|
|
362
|
+
`${tWarn}: You are loading your reponse from ${
|
|
365
363
|
testPath + '.json'
|
|
366
364
|
} instead of the more specific ${
|
|
367
365
|
testPathFilterBody + '.json'
|
|
@@ -381,6 +379,8 @@ export const handleRESTRequest = async (config) => {
|
|
|
381
379
|
response.count = response.items.length;
|
|
382
380
|
return [200, JSON.stringify(response)];
|
|
383
381
|
} else {
|
|
382
|
+
console.log('loading ' + testPath + '.json'); // eslint-disable-line no-console
|
|
383
|
+
|
|
384
384
|
return [
|
|
385
385
|
200,
|
|
386
386
|
await fs.readFile(testPath + '.json', {
|
|
@@ -392,9 +392,7 @@ export const handleRESTRequest = async (config) => {
|
|
|
392
392
|
if (testPathFilter) {
|
|
393
393
|
/* eslint-disable no-console */
|
|
394
394
|
console.log(
|
|
395
|
-
`${
|
|
396
|
-
color.reset
|
|
397
|
-
}: You are loading your reponse from ${
|
|
395
|
+
`${tWarn}: You are loading your reponse from ${
|
|
398
396
|
testPath + '.txt'
|
|
399
397
|
} instead of the more specific ${
|
|
400
398
|
testPathFilter + '.txt'
|
|
@@ -405,9 +403,7 @@ export const handleRESTRequest = async (config) => {
|
|
|
405
403
|
if (testPathFilterBody) {
|
|
406
404
|
/* eslint-disable no-console */
|
|
407
405
|
console.log(
|
|
408
|
-
`${
|
|
409
|
-
color.reset
|
|
410
|
-
}: You are loading your reponse from ${
|
|
406
|
+
`${tWarn}: You are loading your reponse from ${
|
|
411
407
|
testPath + '.txt'
|
|
412
408
|
} instead of the more specific ${
|
|
413
409
|
testPathFilterBody + '.txt'
|
|
@@ -425,7 +421,7 @@ export const handleRESTRequest = async (config) => {
|
|
|
425
421
|
} else {
|
|
426
422
|
/* eslint-disable no-console */
|
|
427
423
|
console.log(
|
|
428
|
-
`${
|
|
424
|
+
`${tError}: Please create file ${testPath}.json/.txt${filterName ? ` or ${testPathFilter}.json/.txt` : testPathFilterBody ? ` or ${testPathFilterBody}.json/.txt` : ''}`
|
|
429
425
|
);
|
|
430
426
|
/* eslint-enable no-console */
|
|
431
427
|
process.exitCode = 404;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 1295064,
|
|
3
|
+
"customerKey": "testExisting_asset_htmlblock-matchName",
|
|
4
|
+
"objectID": "26fdf503-eeed-49eb-b428-cb3b4bc2ba48",
|
|
5
|
+
"assetType": {
|
|
6
|
+
"id": 196,
|
|
7
|
+
"name": "textblock",
|
|
8
|
+
"displayName": "Text Block"
|
|
9
|
+
},
|
|
10
|
+
"fileProperties": {
|
|
11
|
+
"fileName": "testNew_asset"
|
|
12
|
+
},
|
|
13
|
+
"name": "testNew_asset",
|
|
14
|
+
"description": "bla bla",
|
|
15
|
+
"owner": {
|
|
16
|
+
"id": 700304523,
|
|
17
|
+
"email": "",
|
|
18
|
+
"name": "SFMC DEVOPS app user",
|
|
19
|
+
"userId": "700304523"
|
|
20
|
+
},
|
|
21
|
+
"createdDate": "2024-05-07T05:08:46.927-06:00",
|
|
22
|
+
"createdBy": {
|
|
23
|
+
"id": 700304523,
|
|
24
|
+
"email": "",
|
|
25
|
+
"name": "SFMC DEVOPS app user",
|
|
26
|
+
"userId": "700304523"
|
|
27
|
+
},
|
|
28
|
+
"modifiedDate": "2024-05-07T05:08:46.927-06:00",
|
|
29
|
+
"modifiedBy": {
|
|
30
|
+
"id": 700304523,
|
|
31
|
+
"email": "",
|
|
32
|
+
"name": "SFMC DEVOPS app user",
|
|
33
|
+
"userId": "700304523"
|
|
34
|
+
},
|
|
35
|
+
"enterpriseId": 1111111,
|
|
36
|
+
"memberId": 9999999,
|
|
37
|
+
"status": {
|
|
38
|
+
"id": 1,
|
|
39
|
+
"name": "Draft"
|
|
40
|
+
},
|
|
41
|
+
"thumbnail": {
|
|
42
|
+
"thumbnailUrl": "/v1/assets/1324776/thumbnail"
|
|
43
|
+
},
|
|
44
|
+
"category": {
|
|
45
|
+
"id": 89397,
|
|
46
|
+
"name": "Content Builder",
|
|
47
|
+
"parentId": 0
|
|
48
|
+
},
|
|
49
|
+
"content": "<table\n cellpadding=\"0\"\n cellspacing=\"0\"\n width=\"100%\"\n role=\"presentation\"\n style=\"min-width: 100%\"\n class=\"stylingblock-content-wrapper\"\n>\n <tr>\n <td class=\"stylingblock-content-wrapper camarker-inner\">foobar</td>\n </tr>\n</table>\n",
|
|
50
|
+
"meta": {
|
|
51
|
+
"wrapperStyles": {
|
|
52
|
+
"mobile": {
|
|
53
|
+
"visible": true
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"availableViews": [],
|
|
58
|
+
"modelVersion": 2
|
|
59
|
+
}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
{
|
|
2
|
+
"count": 4,
|
|
3
|
+
"page": 1,
|
|
4
|
+
"pageSize": 50,
|
|
5
|
+
"links": {},
|
|
6
|
+
"items": [
|
|
7
|
+
{
|
|
8
|
+
"id": 1295064,
|
|
9
|
+
"customerKey": "testExisting_asset_htmlblock",
|
|
10
|
+
"assetType": {
|
|
11
|
+
"id": 197,
|
|
12
|
+
"name": "htmlblock",
|
|
13
|
+
"displayName": "HTML Block"
|
|
14
|
+
},
|
|
15
|
+
"fileProperties": {
|
|
16
|
+
"fileName": "dont strip non ssjs content"
|
|
17
|
+
},
|
|
18
|
+
"name": "dont strip non ssjs content",
|
|
19
|
+
"createdDate": "2024-01-08T08:26:58.277-06:00",
|
|
20
|
+
"createdBy": {
|
|
21
|
+
"id": 700301950,
|
|
22
|
+
"email": "joern.berkefeld@accenture.com",
|
|
23
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
24
|
+
"userId": "700301950"
|
|
25
|
+
},
|
|
26
|
+
"modifiedDate": "2024-01-08T08:28:01.6-06:00",
|
|
27
|
+
"modifiedBy": {
|
|
28
|
+
"id": 700301950,
|
|
29
|
+
"email": "joern.berkefeld@accenture.com",
|
|
30
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
31
|
+
"userId": "700301950"
|
|
32
|
+
},
|
|
33
|
+
"status": {
|
|
34
|
+
"id": 1,
|
|
35
|
+
"name": "Draft"
|
|
36
|
+
},
|
|
37
|
+
"category": {
|
|
38
|
+
"id": 89397,
|
|
39
|
+
"name": "Content Builder",
|
|
40
|
+
"parentId": 0
|
|
41
|
+
},
|
|
42
|
+
"availableViews": [],
|
|
43
|
+
"modelVersion": 2
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": 1295065,
|
|
47
|
+
"customerKey": "testExisting_htmlblock1",
|
|
48
|
+
"assetType": {
|
|
49
|
+
"id": 197,
|
|
50
|
+
"name": "htmlblock",
|
|
51
|
+
"displayName": "HTML Block"
|
|
52
|
+
},
|
|
53
|
+
"fileProperties": {
|
|
54
|
+
"fileName": "testExisting_htmlblock1"
|
|
55
|
+
},
|
|
56
|
+
"name": "testExisting_htmlblock1",
|
|
57
|
+
"createdDate": "2024-01-08T08:26:58.277-06:00",
|
|
58
|
+
"createdBy": {
|
|
59
|
+
"id": 700301950,
|
|
60
|
+
"email": "joern.berkefeld@accenture.com",
|
|
61
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
62
|
+
"userId": "700301950"
|
|
63
|
+
},
|
|
64
|
+
"modifiedDate": "2024-01-08T08:28:01.6-06:00",
|
|
65
|
+
"modifiedBy": {
|
|
66
|
+
"id": 700301950,
|
|
67
|
+
"email": "joern.berkefeld@accenture.com",
|
|
68
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
69
|
+
"userId": "700301950"
|
|
70
|
+
},
|
|
71
|
+
"status": {
|
|
72
|
+
"id": 1,
|
|
73
|
+
"name": "Draft"
|
|
74
|
+
},
|
|
75
|
+
"category": {
|
|
76
|
+
"id": 89397,
|
|
77
|
+
"name": "Content Builder",
|
|
78
|
+
"parentId": 0
|
|
79
|
+
},
|
|
80
|
+
"availableViews": [],
|
|
81
|
+
"modelVersion": 2
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"id": 1295066,
|
|
85
|
+
"customerKey": "testExisting_htmlblock2",
|
|
86
|
+
"assetType": {
|
|
87
|
+
"id": 197,
|
|
88
|
+
"name": "htmlblock",
|
|
89
|
+
"displayName": "HTML Block"
|
|
90
|
+
},
|
|
91
|
+
"fileProperties": {
|
|
92
|
+
"fileName": "testExisting_htmlblock2"
|
|
93
|
+
},
|
|
94
|
+
"name": "testExisting_htmlblock2",
|
|
95
|
+
"createdDate": "2024-01-08T08:26:58.277-06:00",
|
|
96
|
+
"createdBy": {
|
|
97
|
+
"id": 700301950,
|
|
98
|
+
"email": "joern.berkefeld@accenture.com",
|
|
99
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
100
|
+
"userId": "700301950"
|
|
101
|
+
},
|
|
102
|
+
"modifiedDate": "2024-01-08T08:28:01.6-06:00",
|
|
103
|
+
"modifiedBy": {
|
|
104
|
+
"id": 700301950,
|
|
105
|
+
"email": "joern.berkefeld@accenture.com",
|
|
106
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
107
|
+
"userId": "700301950"
|
|
108
|
+
},
|
|
109
|
+
"status": {
|
|
110
|
+
"id": 1,
|
|
111
|
+
"name": "Draft"
|
|
112
|
+
},
|
|
113
|
+
"category": {
|
|
114
|
+
"id": 89397,
|
|
115
|
+
"name": "Content Builder",
|
|
116
|
+
"parentId": 0
|
|
117
|
+
},
|
|
118
|
+
"availableViews": [],
|
|
119
|
+
"modelVersion": 2
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"id": 950143,
|
|
123
|
+
"customerKey": "testExisting_asset",
|
|
124
|
+
"objectID": "198ad191-59ae-44d1-9981-ffa71b076ad9",
|
|
125
|
+
"contentType": "text/html",
|
|
126
|
+
"assetType": {
|
|
127
|
+
"id": 205,
|
|
128
|
+
"name": "webpage",
|
|
129
|
+
"displayName": "Web Page"
|
|
130
|
+
},
|
|
131
|
+
"version": 1,
|
|
132
|
+
"name": "testExisting_asset",
|
|
133
|
+
"owner": {
|
|
134
|
+
"id": 717319337,
|
|
135
|
+
"email": "joern.berkefeld@accenture.com",
|
|
136
|
+
"name": "Jörn Berkefeld",
|
|
137
|
+
"userId": "717319337"
|
|
138
|
+
},
|
|
139
|
+
"createdDate": "2021-09-13T12:14:02.32-06:00",
|
|
140
|
+
"createdBy": {
|
|
141
|
+
"id": 717319337,
|
|
142
|
+
"email": "joern.berkefeld@accenture.com",
|
|
143
|
+
"name": "Jörn Berkefeld",
|
|
144
|
+
"userId": "717319337"
|
|
145
|
+
},
|
|
146
|
+
"modifiedDate": "2023-08-02T07:10:29.553-06:00",
|
|
147
|
+
"modifiedBy": {
|
|
148
|
+
"id": 700304523,
|
|
149
|
+
"name": "SFMC DEVOPS app user",
|
|
150
|
+
"userId": "700304523"
|
|
151
|
+
},
|
|
152
|
+
"enterpriseId": 111111,
|
|
153
|
+
"memberId": 999999,
|
|
154
|
+
"status": {
|
|
155
|
+
"id": 1,
|
|
156
|
+
"name": "Draft"
|
|
157
|
+
},
|
|
158
|
+
"thumbnail": {
|
|
159
|
+
"thumbnailUrl": "/v1/assets/950143/thumbnail"
|
|
160
|
+
},
|
|
161
|
+
"category": {
|
|
162
|
+
"id": 89397
|
|
163
|
+
},
|
|
164
|
+
"meta": {
|
|
165
|
+
"globalStyles": {
|
|
166
|
+
"isLocked": false,
|
|
167
|
+
"body": {
|
|
168
|
+
"max-width": "1280px",
|
|
169
|
+
"color": "#000000",
|
|
170
|
+
"font-family": "Arial",
|
|
171
|
+
"font-size": "12px",
|
|
172
|
+
"margin": "0px auto"
|
|
173
|
+
},
|
|
174
|
+
"template": {
|
|
175
|
+
"background-color": "#FFFFFF",
|
|
176
|
+
"border": "none",
|
|
177
|
+
"box-sizing": "border-box",
|
|
178
|
+
"padding": "0px",
|
|
179
|
+
"width": "100%"
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"views": {
|
|
184
|
+
"html": {
|
|
185
|
+
"thumbnail": {},
|
|
186
|
+
"content": "<!DOCTYPE html>\n<html>\n <head>\n <meta\n name=\"viewport\"\n content=\"width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0\"\n />\n <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n <style class=\"main_style\">\n .layout-canvas-g {\n background-color: #ffffff;\n border: none;\n box-sizing: border-box;\n padding: 0px;\n width: 100%;\n }\n .layout-canvas-g > .header,\n .layout-canvas-g > .section,\n .layout-canvas-g > .footer {\n position: relative;\n overflow: hidden;\n width: 100%;\n overflow-wrap: break-word;\n }\n .layout-canvas-g > .section {\n margin: 10px 0px;\n }\n .layout-canvas-g > .section > .columns {\n box-sizing: border-box;\n overflow-wrap: break-word;\n }\n body {\n color: #000000;\n font-family: Arial;\n font-size: 12px;\n margin: 0px auto;\n max-width: 1280px;\n }\n @media only screen and (max-width: 480px) {\n .mobile-hidden {\n display: none !important;\n }\n .responsive-td {\n width: 100% !important;\n display: block !important;\n padding: 0px !important;\n }\n }\n .layout-canvas-g > .section > .columns {\n width: 100%;\n }\n </style>\n </head>\n <body>\n <div class=\"layout layout-canvas-g\">\n <div class=\"section\">\n <div class=\"columns col1\">\n <div data-type=\"slot\" data-key=\"col1\"></div>\n </div>\n </div>\n </div>\n </body>\n</html>\n",
|
|
187
|
+
"slots": {
|
|
188
|
+
"col1": {
|
|
189
|
+
"content": "<div data-type=\"block\" data-key=\"bgbqbbx4we9\"></div>",
|
|
190
|
+
"design": "<p style=\"font-family:arial;color:#ccc;font-size:11px;text-align:center;vertical-align:middle;font-weight:bold;padding:10px;margin:0;border:#ccc dashed 1px;\">Drop blocks or content here</p>",
|
|
191
|
+
"blocks": {
|
|
192
|
+
"bgbqbbx4we9": {
|
|
193
|
+
"assetType": {
|
|
194
|
+
"id": 197,
|
|
195
|
+
"name": "htmlblock"
|
|
196
|
+
},
|
|
197
|
+
"content": "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" role=\"presentation\" style=\"min-width: 100%; \" class=\"stylingblock-content-wrapper\"><tr><td class=\"stylingblock-content-wrapper camarker-inner\">\n%%[FOR @I=1 TO 1000 DO\n SET @a = CONCAT(IIF(MOD(@i, 3)==0, \"Fizz\", \"\"), IIF(MOD(@i,5)==0,\"Buzz\",\"\"), IIF(MOD(@i, 7)==0, \"Boing\", \"\"), IIF(MOD(@i,11)==0,\"Bang\",\"\"))\nOUTPUT(CONCAT(@a, IIF(LENGTH(@a)>0, \"\", @i), \"<br>\"))NEXT @i\n]%%\n</td></tr></table>",
|
|
198
|
+
"design": "<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" role=\"presentation\" style=\"min-width: 100%; \" class=\"stylingblock-content-wrapper\"><tr><td class=\"stylingblock-content-wrapper camarker-inner\"><div class=\"default-design\"></div></td></tr></table>",
|
|
199
|
+
"meta": {
|
|
200
|
+
"wrapperStyles": {
|
|
201
|
+
"mobile": {
|
|
202
|
+
"visible": true
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"modelVersion": 2
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"modelVersion": 2
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"modelVersion": 2
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"availableViews": ["html"],
|
|
216
|
+
"modelVersion": 2
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
}
|
|
@@ -5,27 +5,30 @@
|
|
|
5
5
|
"links": {},
|
|
6
6
|
"items": [
|
|
7
7
|
{
|
|
8
|
-
"id":
|
|
9
|
-
"customerKey": "
|
|
10
|
-
"assetType": {
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
"id": 5286,
|
|
9
|
+
"customerKey": "testExisting_asset_template",
|
|
10
|
+
"assetType": {
|
|
11
|
+
"id": 4,
|
|
12
|
+
"name": "template",
|
|
13
|
+
"displayName": "Template"
|
|
14
|
+
},
|
|
15
|
+
"name": " testExisting_asset_template",
|
|
16
|
+
"createdDate": "2024-04-22T03:33:08.253-06:00",
|
|
13
17
|
"createdBy": {
|
|
14
|
-
"id":
|
|
18
|
+
"id": 710411605,
|
|
15
19
|
"email": "joern.berkefeld@accenture.com",
|
|
16
|
-
"name": "
|
|
17
|
-
"userId": "
|
|
20
|
+
"name": "Jörn Berkefeld",
|
|
21
|
+
"userId": "710411605"
|
|
18
22
|
},
|
|
19
|
-
"modifiedDate": "
|
|
23
|
+
"modifiedDate": "2024-05-13T07:12:13.117-06:00",
|
|
20
24
|
"modifiedBy": {
|
|
21
|
-
"id":
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
+
"id": 710420432,
|
|
26
|
+
"name": "joern.berkefeld app user",
|
|
27
|
+
"userId": "710420432"
|
|
28
|
+
},
|
|
29
|
+
"category": {
|
|
30
|
+
"id": 89397
|
|
25
31
|
},
|
|
26
|
-
"status": { "id": 1, "name": "Draft" },
|
|
27
|
-
"category": { "id": 89397, "name": "Content Builder", "parentId": 0 },
|
|
28
|
-
"availableViews": ["push"],
|
|
29
32
|
"modelVersion": 2
|
|
30
33
|
},
|
|
31
34
|
{
|
|
@@ -1,33 +1,9 @@
|
|
|
1
1
|
{
|
|
2
|
-
"count":
|
|
2
|
+
"count": 7,
|
|
3
3
|
"page": 1,
|
|
4
4
|
"pageSize": 50,
|
|
5
5
|
"links": {},
|
|
6
6
|
"items": [
|
|
7
|
-
{
|
|
8
|
-
"id": 1209971,
|
|
9
|
-
"customerKey": "mobileMessage_test",
|
|
10
|
-
"assetType": { "id": 230, "name": "jsonmessage", "displayName": "JSON Message" },
|
|
11
|
-
"name": "mobileMessage_test",
|
|
12
|
-
"createdDate": "2022-12-07T02:49:36.857-06:00",
|
|
13
|
-
"createdBy": {
|
|
14
|
-
"id": 700301950,
|
|
15
|
-
"email": "joern.berkefeld@accenture.com",
|
|
16
|
-
"name": "J├Ârn Berkefeld (ASGR)",
|
|
17
|
-
"userId": "700301950"
|
|
18
|
-
},
|
|
19
|
-
"modifiedDate": "2022-12-07T02:49:57.44-06:00",
|
|
20
|
-
"modifiedBy": {
|
|
21
|
-
"id": 700301950,
|
|
22
|
-
"email": "joern.berkefeld@accenture.com",
|
|
23
|
-
"name": "J├Ârn Berkefeld (ASGR)",
|
|
24
|
-
"userId": "700301950"
|
|
25
|
-
},
|
|
26
|
-
"status": { "id": 1, "name": "Draft" },
|
|
27
|
-
"category": { "id": 89397, "name": "Content Builder", "parentId": 0 },
|
|
28
|
-
"availableViews": ["push"],
|
|
29
|
-
"modelVersion": 2
|
|
30
|
-
},
|
|
31
7
|
{
|
|
32
8
|
"id": 1295064,
|
|
33
9
|
"customerKey": "testExisting_asset_htmlblock",
|
|
@@ -365,6 +341,82 @@
|
|
|
365
341
|
},
|
|
366
342
|
"availableViews": ["html"],
|
|
367
343
|
"modelVersion": 2
|
|
344
|
+
},
|
|
345
|
+
{
|
|
346
|
+
"id": 1295075,
|
|
347
|
+
"customerKey": "testExisting_htmlblock_matchName1",
|
|
348
|
+
"assetType": {
|
|
349
|
+
"id": 197,
|
|
350
|
+
"name": "htmlblock",
|
|
351
|
+
"displayName": "HTML Block"
|
|
352
|
+
},
|
|
353
|
+
"fileProperties": {
|
|
354
|
+
"fileName": "testExisting_htmlblock_matchName"
|
|
355
|
+
},
|
|
356
|
+
"name": "testExisting_htmlblock_matchName",
|
|
357
|
+
"createdDate": "2024-01-08T08:26:58.277-06:00",
|
|
358
|
+
"createdBy": {
|
|
359
|
+
"id": 700301950,
|
|
360
|
+
"email": "joern.berkefeld@accenture.com",
|
|
361
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
362
|
+
"userId": "700301950"
|
|
363
|
+
},
|
|
364
|
+
"modifiedDate": "2024-01-08T08:28:01.6-06:00",
|
|
365
|
+
"modifiedBy": {
|
|
366
|
+
"id": 700301950,
|
|
367
|
+
"email": "joern.berkefeld@accenture.com",
|
|
368
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
369
|
+
"userId": "700301950"
|
|
370
|
+
},
|
|
371
|
+
"status": {
|
|
372
|
+
"id": 1,
|
|
373
|
+
"name": "Draft"
|
|
374
|
+
},
|
|
375
|
+
"category": {
|
|
376
|
+
"id": 89397,
|
|
377
|
+
"name": "Content Builder",
|
|
378
|
+
"parentId": 0
|
|
379
|
+
},
|
|
380
|
+
"availableViews": [],
|
|
381
|
+
"modelVersion": 2
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"id": 1295076,
|
|
385
|
+
"customerKey": "testExisting_htmlblock_matchName2",
|
|
386
|
+
"assetType": {
|
|
387
|
+
"id": 197,
|
|
388
|
+
"name": "htmlblock",
|
|
389
|
+
"displayName": "HTML Block"
|
|
390
|
+
},
|
|
391
|
+
"fileProperties": {
|
|
392
|
+
"fileName": "testExisting_htmlblock_matchName"
|
|
393
|
+
},
|
|
394
|
+
"name": "testExisting_htmlblock_matchName",
|
|
395
|
+
"createdDate": "2024-01-08T08:26:58.277-06:00",
|
|
396
|
+
"createdBy": {
|
|
397
|
+
"id": 700301950,
|
|
398
|
+
"email": "joern.berkefeld@accenture.com",
|
|
399
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
400
|
+
"userId": "700301950"
|
|
401
|
+
},
|
|
402
|
+
"modifiedDate": "2024-01-08T08:28:01.6-06:00",
|
|
403
|
+
"modifiedBy": {
|
|
404
|
+
"id": 700301950,
|
|
405
|
+
"email": "joern.berkefeld@accenture.com",
|
|
406
|
+
"name": "Jörn Berkefeld (ASGR)",
|
|
407
|
+
"userId": "700301950"
|
|
408
|
+
},
|
|
409
|
+
"status": {
|
|
410
|
+
"id": 1,
|
|
411
|
+
"name": "Draft"
|
|
412
|
+
},
|
|
413
|
+
"category": {
|
|
414
|
+
"id": 90888,
|
|
415
|
+
"name": "Test Folder",
|
|
416
|
+
"parentId": 89397
|
|
417
|
+
},
|
|
418
|
+
"availableViews": [],
|
|
419
|
+
"modelVersion": 2
|
|
368
420
|
}
|
|
369
421
|
]
|
|
370
422
|
}
|