mcdev 5.0.2 → 5.1.0
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/.coverage-comment-template.svelte +177 -161
- package/.github/ISSUE_TEMPLATE/bug.yml +1 -0
- package/.github/dependabot.yml +8 -0
- package/.github/workflows/coverage-base-update.yml +6 -2
- package/.github/workflows/coverage-develop-branch.yml +7 -6
- package/.github/workflows/coverage-main-branch.yml +7 -6
- package/.github/workflows/coverage.yml +7 -2
- package/.husky/post-checkout +3 -2
- package/docs/dist/documentation.md +162 -47
- package/lib/Deployer.js +3 -3
- package/lib/cli.js +28 -0
- package/lib/index.js +173 -2
- package/lib/metadataTypes/Automation.js +400 -193
- package/lib/metadataTypes/DataExtension.js +5 -5
- package/lib/metadataTypes/MetadataType.js +42 -15
- package/lib/metadataTypes/Query.js +26 -0
- package/lib/metadataTypes/definitions/Asset.definition.js +1 -0
- package/lib/metadataTypes/definitions/Automation.definition.js +52 -6
- package/lib/metadataTypes/definitions/DataExtension.definition.js +1 -0
- package/lib/metadataTypes/definitions/DataExtract.definition.js +1 -0
- package/lib/metadataTypes/definitions/EmailSend.definition.js +1 -0
- package/lib/metadataTypes/definitions/Event.definition.js +1 -0
- package/lib/metadataTypes/definitions/Filter.definition.js +1 -0
- package/lib/metadataTypes/definitions/ImportFile.definition.js +1 -0
- package/lib/metadataTypes/definitions/MobileKeyword.definition.js +1 -0
- package/lib/metadataTypes/definitions/Query.definition.js +1 -0
- package/lib/metadataTypes/definitions/Role.definition.js +1 -0
- package/lib/metadataTypes/definitions/TriggeredSend.definition.js +1 -0
- package/lib/metadataTypes/definitions/User.definition.js +1 -0
- package/lib/util/devops.js +13 -11
- package/lib/util/util.js +152 -129
- package/package.json +5 -5
- package/test/general.test.js +26 -0
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/automation/testExisting_automation.automation-meta.json +53 -0
- package/test/mockRoot/deploy/testInstance/testBU/automation/testNew_automation.automation-meta.json +46 -0
- package/test/mockRoot/deploy/testInstance/testBU/query/{testExistingQuery.query-meta.json → testExisting_query.query-meta.json} +2 -2
- package/test/mockRoot/deploy/testInstance/testBU/query/{testNewQuery.query-meta.json → testNew_query.query-meta.json} +2 -2
- package/test/resourceFactory.js +64 -21
- package/test/resources/9999999/automation/build-expected.json +58 -0
- package/test/resources/9999999/automation/create-expected.json +46 -0
- package/test/resources/9999999/automation/create-testNew_automation-expected.md +28 -0
- package/test/resources/9999999/automation/delete-response.xml +40 -0
- package/test/resources/9999999/automation/retrieve-expected.json +58 -0
- package/test/resources/9999999/automation/retrieve-testExisting_automation-expected.md +30 -0
- package/test/resources/9999999/automation/template-expected.json +58 -0
- package/test/resources/9999999/automation/update-expected.json +46 -0
- package/test/resources/9999999/automation/update-testExisting_automation-expected.md +28 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-1f7f8788c560/patch-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/a8afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/post-response.json +85 -0
- package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/get-response.json +38 -0
- package/test/resources/9999999/automation/v1/dataextracts/get-response.json +20 -0
- package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/get-response.json +18 -0
- package/test/resources/9999999/automation/v1/filetransfers/get-response.json +15 -0
- package/test/resources/9999999/automation/v1/imports/get-response.json +38 -0
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/actions/start/post-response.txt +1 -0
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/get-response.json +2 -2
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat/patch-response.json +2 -2
- package/test/resources/9999999/automation/v1/queries/get-response.json +4 -4
- package/test/resources/9999999/automation/v1/queries/post-response.json +2 -2
- package/test/resources/9999999/automation/v1/scripts/get-response.json +17 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=automations-response.xml +48 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=queryactivity-response.xml +48 -0
- package/test/resources/9999999/dataFolder/retrieve-response.xml +22 -0
- package/test/resources/9999999/emailSendDefinition/retrieve-response.xml +85 -0
- package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/get-response.json +21 -0
- package/test/resources/9999999/legacy/v1/beta/automations/notifications/RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow/post-response.json +0 -0
- package/test/resources/9999999/legacy/v1/beta/bulk/automations/automation/definition/get-response.json +30 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation-response.xml +30 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testNew_automation-response.xml +30 -0
- package/test/resources/9999999/program/retrieve-Name=testExisting_automation-response.xml +31 -0
- package/test/resources/9999999/program/retrieve-response.xml +32 -0
- package/test/resources/9999999/query/build-expected.json +2 -2
- package/test/resources/9999999/query/get-expected.json +2 -2
- package/test/resources/9999999/query/get2-expected.json +2 -2
- package/test/resources/9999999/query/patch-expected.json +2 -2
- package/test/resources/9999999/query/post-expected.json +2 -2
- package/test/resources/9999999/query/template-expected.json +2 -2
- package/test/type.automation.test.js +259 -0
- package/test/type.dataExtension.test.js +3 -0
- package/test/type.query.test.js +39 -26
- package/test/type.user.test.js +17 -3
- package/test/utils.js +7 -6
- package/.coverage-comment-template.md +0 -20
- /package/test/mockRoot/deploy/testInstance/testBU/query/{testExistingQuery.query-meta.sql → testExisting_query.query-meta.sql} +0 -0
- /package/test/mockRoot/deploy/testInstance/testBU/query/{testNewQuery.query-meta.sql → testNew_query.query-meta.sql} +0 -0
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyId": "RkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow",
|
|
3
|
+
"name": "testExisting_automation",
|
|
4
|
+
"description": "updated on deploy",
|
|
5
|
+
"key": "testExisting_automation",
|
|
6
|
+
"typeId": 1,
|
|
7
|
+
"type": "scheduled",
|
|
8
|
+
"statusId": 4,
|
|
9
|
+
"status": "PausedSchedule",
|
|
10
|
+
"schedule": {
|
|
11
|
+
"id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
|
|
12
|
+
"typeId": 3,
|
|
13
|
+
"startDate": "2022-07-30T00:00:00",
|
|
14
|
+
"endDate": "2022-07-30T00:00:00",
|
|
15
|
+
"scheduledTime": "0001-01-01T07:00:00",
|
|
16
|
+
"rangeTypeId": 0,
|
|
17
|
+
"occurrences": 1,
|
|
18
|
+
"pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
|
|
19
|
+
"icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
|
|
20
|
+
"timezoneName": "W. Europe Standard Time",
|
|
21
|
+
"scheduleStatus": "paused",
|
|
22
|
+
"timezoneId": 5
|
|
23
|
+
},
|
|
24
|
+
"steps": [
|
|
25
|
+
{
|
|
26
|
+
"activities": [
|
|
27
|
+
{
|
|
28
|
+
"id": "8081a992-a27d-4a43-984a-d60114ea1025",
|
|
29
|
+
"name": "testExisting_dataExtract",
|
|
30
|
+
"activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
|
|
31
|
+
"objectTypeId": 73,
|
|
32
|
+
"displayOrder": 1
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e",
|
|
36
|
+
"name": "testExisting_emailSend",
|
|
37
|
+
"activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b",
|
|
38
|
+
"objectTypeId": 42,
|
|
39
|
+
"displayOrder": 2
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "2c77fc42-85eb-4611-98f9-223d29d89d72",
|
|
43
|
+
"name": "testExisting_fileTransfer",
|
|
44
|
+
"activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
|
|
45
|
+
"objectTypeId": 53,
|
|
46
|
+
"displayOrder": 3
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7",
|
|
50
|
+
"name": "testExisting_importFile",
|
|
51
|
+
"activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
|
|
52
|
+
"objectTypeId": 43,
|
|
53
|
+
"displayOrder": 4,
|
|
54
|
+
"targetDataExtensions": [
|
|
55
|
+
{
|
|
56
|
+
"id": "21711373-72c1-ec11-b83b-48df37d1deb7",
|
|
57
|
+
"name": "testExisting_dataExtension",
|
|
58
|
+
"key": "testExisting_dataExtension",
|
|
59
|
+
"description": "bla bla",
|
|
60
|
+
"rowCount": 0
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e",
|
|
66
|
+
"name": "testExisting_query_WRONG_NAME",
|
|
67
|
+
"activityObjectId": "549f0568-607c-4940-afef-437965094dat",
|
|
68
|
+
"objectTypeId": 300,
|
|
69
|
+
"displayOrder": 5
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e",
|
|
73
|
+
"name": "testExisting_script",
|
|
74
|
+
"activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
|
|
75
|
+
"objectTypeId": 423,
|
|
76
|
+
"displayOrder": 6
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"annotation": "",
|
|
80
|
+
"stepNumber": 0
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"categoryId": 290937,
|
|
84
|
+
"id": "08afb0e2-b00a-4c88-ad2e-1f7f8788c560"
|
|
85
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "a8afb0e2-b00a-4c88-ad2e-1f7f8788c560",
|
|
3
|
+
"name": "testNew_automation",
|
|
4
|
+
"description": "created on deploy",
|
|
5
|
+
"key": "testNew_automation",
|
|
6
|
+
"typeId": 1,
|
|
7
|
+
"type": "scheduled",
|
|
8
|
+
"statusId": 4,
|
|
9
|
+
"status": "PausedSchedule",
|
|
10
|
+
"categoryId": 290937,
|
|
11
|
+
"schedule": {
|
|
12
|
+
"id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
|
|
13
|
+
"typeId": 3,
|
|
14
|
+
"startDate": "2022-07-30T00:00:00",
|
|
15
|
+
"endDate": "2022-07-30T00:00:00",
|
|
16
|
+
"scheduledTime": "0001-01-01T07:00:00",
|
|
17
|
+
"rangeTypeId": 0,
|
|
18
|
+
"occurrences": 1,
|
|
19
|
+
"pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
|
|
20
|
+
"icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
|
|
21
|
+
"timezoneName": "W. Europe Standard Time",
|
|
22
|
+
"scheduleStatus": "paused",
|
|
23
|
+
"timezoneId": 5
|
|
24
|
+
},
|
|
25
|
+
"steps": [
|
|
26
|
+
{
|
|
27
|
+
"id": "13fda077-0e82-4936-b936-a36b0997fc44",
|
|
28
|
+
"name": "",
|
|
29
|
+
"step": 1,
|
|
30
|
+
"activities": [
|
|
31
|
+
{
|
|
32
|
+
"id": "8081a992-a27d-4a43-984a-d60114ea1025",
|
|
33
|
+
"name": "testExisting_dataExtract",
|
|
34
|
+
"activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
|
|
35
|
+
"objectTypeId": 73,
|
|
36
|
+
"displayOrder": 1
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e",
|
|
40
|
+
"name": "testExisting_emailSend",
|
|
41
|
+
"activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b",
|
|
42
|
+
"objectTypeId": 42,
|
|
43
|
+
"displayOrder": 2
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "2c77fc42-85eb-4611-98f9-223d29d89d72",
|
|
47
|
+
"name": "testExisting_fileTransfer",
|
|
48
|
+
"activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
|
|
49
|
+
"objectTypeId": 53,
|
|
50
|
+
"displayOrder": 3
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7",
|
|
54
|
+
"name": "testExisting_importFile",
|
|
55
|
+
"activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
|
|
56
|
+
"objectTypeId": 43,
|
|
57
|
+
"displayOrder": 4,
|
|
58
|
+
"targetDataExtensions": [
|
|
59
|
+
{
|
|
60
|
+
"id": "21711373-72c1-ec11-b83b-48df37d1deb7",
|
|
61
|
+
"name": "testExisting_dataExtension",
|
|
62
|
+
"key": "testExisting_dataExtension",
|
|
63
|
+
"description": "bla bla",
|
|
64
|
+
"rowCount": 0
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e",
|
|
70
|
+
"name": "testExisting_query_WRONG_NAME",
|
|
71
|
+
"activityObjectId": "549f0568-607c-4940-afef-437965094dat",
|
|
72
|
+
"objectTypeId": 300,
|
|
73
|
+
"displayOrder": 5
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e",
|
|
77
|
+
"name": "testExisting_script",
|
|
78
|
+
"activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
|
|
79
|
+
"objectTypeId": 423,
|
|
80
|
+
"displayOrder": 6
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"legacyId": "NewRkpOcE9qSVh2VUdnYTVJbWFfWW14dzoyNTow",
|
|
3
|
+
"name": "testNew_automation",
|
|
4
|
+
"description": "created on deploy",
|
|
5
|
+
"key": "testNew_automation",
|
|
6
|
+
"typeId": 1,
|
|
7
|
+
"type": "scheduled",
|
|
8
|
+
"statusId": 4,
|
|
9
|
+
"status": "PausedSchedule",
|
|
10
|
+
"schedule": {
|
|
11
|
+
"id": "b393aa6c-a4a8-4c0f-a148-9250258a7339",
|
|
12
|
+
"typeId": 3,
|
|
13
|
+
"startDate": "2022-07-30T00:00:00",
|
|
14
|
+
"endDate": "2022-07-30T00:00:00",
|
|
15
|
+
"scheduledTime": "0001-01-01T07:00:00",
|
|
16
|
+
"rangeTypeId": 0,
|
|
17
|
+
"occurrences": 1,
|
|
18
|
+
"pattern": "<Pattern><PatternType>0</PatternType><DayInterval>1</DayInterval></Pattern>",
|
|
19
|
+
"icalRecur": "FREQ=DAILY;COUNT=1;INTERVAL=1",
|
|
20
|
+
"timezoneName": "W. Europe Standard Time",
|
|
21
|
+
"scheduleStatus": "paused",
|
|
22
|
+
"timezoneId": 5
|
|
23
|
+
},
|
|
24
|
+
"steps": [
|
|
25
|
+
{
|
|
26
|
+
"activities": [
|
|
27
|
+
{
|
|
28
|
+
"id": "8081a992-a27d-4a43-984a-d60114ea1025",
|
|
29
|
+
"name": "testExisting_dataExtract",
|
|
30
|
+
"activityObjectId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
|
|
31
|
+
"objectTypeId": 73,
|
|
32
|
+
"displayOrder": 1
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "d3774dc2-a271-4a44-8cbe-f630a6d6545e",
|
|
36
|
+
"name": "testExisting_emailSend",
|
|
37
|
+
"activityObjectId": "9b1c7bf9-4964-ed11-b849-48df37d1de8b",
|
|
38
|
+
"objectTypeId": 42,
|
|
39
|
+
"displayOrder": 2
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "2c77fc42-85eb-4611-98f9-223d29d89d72",
|
|
43
|
+
"name": "testExisting_fileTransfer",
|
|
44
|
+
"activityObjectId": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
|
|
45
|
+
"objectTypeId": 53,
|
|
46
|
+
"displayOrder": 3
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"id": "298b2794-28cb-4c70-b7ad-58b2c8cf48f7",
|
|
50
|
+
"name": "testExisting_importFile",
|
|
51
|
+
"activityObjectId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
|
|
52
|
+
"objectTypeId": 43,
|
|
53
|
+
"displayOrder": 4,
|
|
54
|
+
"targetDataExtensions": [
|
|
55
|
+
{
|
|
56
|
+
"id": "21711373-72c1-ec11-b83b-48df37d1deb7",
|
|
57
|
+
"name": "testExisting_dataExtension",
|
|
58
|
+
"key": "testExisting_dataExtension",
|
|
59
|
+
"description": "bla bla",
|
|
60
|
+
"rowCount": 0
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"id": "e3774dc2-a271-4a44-8cbe-f630a6d6545e",
|
|
66
|
+
"name": "testExisting_query_WRONG_NAME",
|
|
67
|
+
"activityObjectId": "549f0568-607c-4940-afef-437965094dat",
|
|
68
|
+
"objectTypeId": 300,
|
|
69
|
+
"displayOrder": 5
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"id": "g3774dc2-a271-4a44-8cbe-f630a6d6545e",
|
|
73
|
+
"name": "testExisting_script",
|
|
74
|
+
"activityObjectId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
|
|
75
|
+
"objectTypeId": 423,
|
|
76
|
+
"displayOrder": 6
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"annotation": "",
|
|
80
|
+
"stepNumber": 0
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"categoryId": 290937,
|
|
84
|
+
"id": "a8afb0e2-b00a-4c88-ad2e-1f7f8788c560"
|
|
85
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"dataExtractDefinitionId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
|
|
3
|
+
"name": "testExisting_dataExtract",
|
|
4
|
+
"key": "testExisting_dataExtract",
|
|
5
|
+
"description": "blabla",
|
|
6
|
+
"dataExtractTypeId": "bb94a04d-9632-4623-be47-daabc3f588a6",
|
|
7
|
+
"fileSpec": "testExisting-%%Year%%-%%Month%%-%%Day%%",
|
|
8
|
+
"createdBy": 700301950,
|
|
9
|
+
"modifiedBy": 700301950,
|
|
10
|
+
"intervalType": 0,
|
|
11
|
+
"dataFields": [
|
|
12
|
+
{
|
|
13
|
+
"name": "ColumnDelimiter",
|
|
14
|
+
"type": "string",
|
|
15
|
+
"value": ","
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "DECustomerKey",
|
|
19
|
+
"type": "string",
|
|
20
|
+
"value": "testExisting_dataExtension"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "HasColumnHeaders",
|
|
24
|
+
"type": "bool",
|
|
25
|
+
"value": "False"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "TextQualified",
|
|
29
|
+
"type": "bool",
|
|
30
|
+
"value": "False"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "UsesLineFeed",
|
|
34
|
+
"type": "bool",
|
|
35
|
+
"value": "False"
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"count": 1,
|
|
3
|
+
"page": 1,
|
|
4
|
+
"pageSize": 500,
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"dataExtractDefinitionId": "56c5370a-f988-4f36-b0ee-0f876573f6d7",
|
|
8
|
+
"name": "testExisting_dataExtract",
|
|
9
|
+
"key": "testExisting_dataExtract",
|
|
10
|
+
"description": "bla bla",
|
|
11
|
+
"dataExtractTypeId": "bb94a04d-9632-4623-be47-daabc3f588a6",
|
|
12
|
+
"fileSpec": "testExisting-%%Year%%-%%Month%%-%%Day%%",
|
|
13
|
+
"createdDate": "2022-11-09T05:31:21.667",
|
|
14
|
+
"modifiedDate": "2022-11-17T07:13:36.9",
|
|
15
|
+
"createdBy": 700301950,
|
|
16
|
+
"modifiedBy": 700301950,
|
|
17
|
+
"intervalType": 0
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
|
|
3
|
+
"name": "testExisting_fileTransfer",
|
|
4
|
+
"description": "17.11.2022",
|
|
5
|
+
"customerKey": "testExisting_fileTransfer",
|
|
6
|
+
"fileSpec": "%%Year%%",
|
|
7
|
+
"isEncrypted": false,
|
|
8
|
+
"isCompressed": false,
|
|
9
|
+
"maxFileAge": 0,
|
|
10
|
+
"maxFileAgeScheduleOffset": 0,
|
|
11
|
+
"maxImportFrequency": 0,
|
|
12
|
+
"fileTransferLocationId": "41a5ded7-0d98-4910-a15f-d09e7ab0af24",
|
|
13
|
+
"isUpload": true,
|
|
14
|
+
"isPgp": false,
|
|
15
|
+
"isFileSpecLocalized": false,
|
|
16
|
+
"createdDate": "2022-11-09T05:31:56.477",
|
|
17
|
+
"modifiedDate": "2022-11-17T07:13:20.05"
|
|
18
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"page": 1,
|
|
3
|
+
"pageSize": 500,
|
|
4
|
+
"count": 1,
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"id": "72c328ac-f5b0-4e37-91d3-a775666f15a6",
|
|
8
|
+
"name": "testExisting_fileTransfer",
|
|
9
|
+
"description": "17.11.2022",
|
|
10
|
+
"customerKey": "testExisting_fileTransfer",
|
|
11
|
+
"createdDate": "2022-11-09T05:31:56.477",
|
|
12
|
+
"modifiedDate": "2022-11-17T07:13:20.05"
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"page": 1,
|
|
3
|
+
"pageSize": 500,
|
|
4
|
+
"count": 1,
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"allowErrors": true,
|
|
8
|
+
"customerKey": "testExisting_importFile",
|
|
9
|
+
"createdDate": "2022-11-09T05:32:30.533",
|
|
10
|
+
"modifiedDate": "2022-11-17T07:13:03.95",
|
|
11
|
+
"dateFormatLocale": "en-US",
|
|
12
|
+
"deleteFile": false,
|
|
13
|
+
"description": "17.11.2022",
|
|
14
|
+
"destinationObjectId": "bf457cfa-ca04-ec11-b82d-48df37d1da95",
|
|
15
|
+
"destinationId": 0,
|
|
16
|
+
"destinationObjectTypeId": 310,
|
|
17
|
+
"fieldMappings": [],
|
|
18
|
+
"fieldMappingType": "InferFromColumnHeadings",
|
|
19
|
+
"fileNamingPattern": "blabla",
|
|
20
|
+
"fileTransferLocationId": "41a5ded7-0d98-4910-a15f-d09e7ab0af24",
|
|
21
|
+
"fileType": "CSV",
|
|
22
|
+
"filter": "",
|
|
23
|
+
"hasColumnHeader": true,
|
|
24
|
+
"importDefinitionId": "9d16f42c-2260-ed11-b849-48df37d1de8b",
|
|
25
|
+
"isOrderedImport": true,
|
|
26
|
+
"isSequential": true,
|
|
27
|
+
"maxFileAgeHours": 0,
|
|
28
|
+
"maxImportFrequencyHours": 0,
|
|
29
|
+
"maxFileAgeScheduleOffsetHours": 0,
|
|
30
|
+
"name": "testExisting_importFile",
|
|
31
|
+
"sendEmailNotification": false,
|
|
32
|
+
"standardQuotedStrings": true,
|
|
33
|
+
"subscriberImportTypeId": 255,
|
|
34
|
+
"updateTypeId": 0,
|
|
35
|
+
"fileTransferLocationTypeId": 0
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
OK
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"queryDefinitionId": "549f0568-607c-4940-afef-437965094dat",
|
|
3
|
-
"name": "
|
|
4
|
-
"key": "
|
|
3
|
+
"name": "testExisting_query",
|
|
4
|
+
"key": "testExisting_query",
|
|
5
5
|
"description": "bla bla",
|
|
6
6
|
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\nWHERE\n country IN ('test')\n",
|
|
7
7
|
"targetName": "testExisting_dataExtension",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"queryDefinitionId": "549f0568-607c-4940-afef-437965094dat",
|
|
3
|
-
"name": "
|
|
4
|
-
"key": "
|
|
3
|
+
"name": "testExisting_query",
|
|
4
|
+
"key": "testExisting_query",
|
|
5
5
|
"description": "updated on deploy",
|
|
6
6
|
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\nWHERE\n country IN ('test')\n",
|
|
7
7
|
"targetName": "testExisting_dataExtension",
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"items": [
|
|
6
6
|
{
|
|
7
7
|
"queryDefinitionId": "549f0568-607c-4940-afef-437965094dat",
|
|
8
|
-
"name": "
|
|
9
|
-
"key": "
|
|
8
|
+
"name": "testExisting_query",
|
|
9
|
+
"key": "testExisting_query",
|
|
10
10
|
"description": "bla bla",
|
|
11
11
|
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\nWHERE\n country IN ('test')\n",
|
|
12
12
|
"targetName": "testExisting_dataExtension",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"queryDefinitionId": "abcde-607c-4940-afef-437965094dat",
|
|
25
|
-
"name": "
|
|
26
|
-
"key": "
|
|
25
|
+
"name": "testExisting_query2",
|
|
26
|
+
"key": "testExisting_query2",
|
|
27
27
|
"description": "bla bla",
|
|
28
28
|
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\nWHERE\n country IN ('test')\n",
|
|
29
29
|
"targetName": "testExisting_dataExtension",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"queryDefinitionId": "549f0568-607c-4940-afef-437965094dae",
|
|
3
|
-
"name": "
|
|
4
|
-
"key": "
|
|
3
|
+
"name": "testNew_query",
|
|
4
|
+
"key": "testNew_query",
|
|
5
5
|
"description": "created on deploy",
|
|
6
6
|
"queryText": "SELECT\n SubscriberKey as testField\nFROM\n _Subscribers\n",
|
|
7
7
|
"targetName": "testExisting_dataExtension",
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"count": 1,
|
|
3
|
+
"page": 1,
|
|
4
|
+
"pageSize": 500,
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"ssjsActivityId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
|
|
8
|
+
"name": "testExisting_script",
|
|
9
|
+
"key": "testExisting_script",
|
|
10
|
+
"description": "",
|
|
11
|
+
"script": "<script runat=\"server\">\n//dummy\n</script",
|
|
12
|
+
"categoryId": 290828,
|
|
13
|
+
"createdDate": "2022-10-20T00:41:26.163",
|
|
14
|
+
"modifiedDate": "2022-10-20T00:41:26.163"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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:f36f3303-3b5a-4641-8109-b26447634d91</wsa:MessageID>
|
|
11
|
+
<wsa:RelatesTo>urn:uuid:33983968-28c4-4379-bb5f-f80ae32eb988</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-32ecc81b-6020-473c-9e99-4b5338921220">
|
|
15
|
+
<wsu:Created>2022-04-19T20:03:41Z</wsu:Created>
|
|
16
|
+
<wsu:Expires>2022-04-19T20:08:41Z</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>02cd5ccb-8f84-4651-826f-71169eeecf05</RequestID>
|
|
24
|
+
<Results xsi:type="DataFolder">
|
|
25
|
+
<Client>
|
|
26
|
+
<ID>9999999</ID>
|
|
27
|
+
</Client>
|
|
28
|
+
<PartnerKey xsi:nil="true" />
|
|
29
|
+
<CreatedDate>2019-10-25T05:35:17.337</CreatedDate>
|
|
30
|
+
<ModifiedDate>2019-10-25T05:35:17.337</ModifiedDate>
|
|
31
|
+
<ID>290937</ID>
|
|
32
|
+
<ObjectID xsi:nil="true" />
|
|
33
|
+
<CustomerKey />
|
|
34
|
+
<ParentFolder>
|
|
35
|
+
<PartnerKey xsi:nil="true" />
|
|
36
|
+
<ID>0</ID>
|
|
37
|
+
<ObjectID xsi:nil="true" />
|
|
38
|
+
</ParentFolder>
|
|
39
|
+
<Name>my automations</Name>
|
|
40
|
+
<Description />
|
|
41
|
+
<ContentType>automations</ContentType>
|
|
42
|
+
<IsActive>true</IsActive>
|
|
43
|
+
<IsEditable>true</IsEditable>
|
|
44
|
+
<AllowChildren>true</AllowChildren>
|
|
45
|
+
</Results>
|
|
46
|
+
</RetrieveResponseMsg>
|
|
47
|
+
</soap:Body>
|
|
48
|
+
</soap:Envelope>
|
|
@@ -0,0 +1,48 @@
|
|
|
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:f36f3303-3b5a-4641-8109-b26447634d91</wsa:MessageID>
|
|
11
|
+
<wsa:RelatesTo>urn:uuid:33983968-28c4-4379-bb5f-f80ae32eb988</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-32ecc81b-6020-473c-9e99-4b5338921220">
|
|
15
|
+
<wsu:Created>2022-04-19T20:03:41Z</wsu:Created>
|
|
16
|
+
<wsu:Expires>2022-04-19T20:08:41Z</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>02cd5ccb-8f84-4651-826f-71169eeecf05</RequestID>
|
|
24
|
+
<Results xsi:type="DataFolder">
|
|
25
|
+
<Client>
|
|
26
|
+
<ID>9999999</ID>
|
|
27
|
+
</Client>
|
|
28
|
+
<PartnerKey xsi:nil="true" />
|
|
29
|
+
<CreatedDate>2016-07-22T11:52:20.407</CreatedDate>
|
|
30
|
+
<ModifiedDate>2016-07-22T11:52:20.407</ModifiedDate>
|
|
31
|
+
<ID>999</ID>
|
|
32
|
+
<ObjectID xsi:nil="true" />
|
|
33
|
+
<CustomerKey>queryactivity_default</CustomerKey>
|
|
34
|
+
<ParentFolder>
|
|
35
|
+
<PartnerKey xsi:nil="true" />
|
|
36
|
+
<ID>0</ID>
|
|
37
|
+
<ObjectID xsi:nil="true" />
|
|
38
|
+
</ParentFolder>
|
|
39
|
+
<Name>Query</Name>
|
|
40
|
+
<Description />
|
|
41
|
+
<ContentType>queryactivity</ContentType>
|
|
42
|
+
<IsActive>true</IsActive>
|
|
43
|
+
<IsEditable>false</IsEditable>
|
|
44
|
+
<AllowChildren>true</AllowChildren>
|
|
45
|
+
</Results>
|
|
46
|
+
</RetrieveResponseMsg>
|
|
47
|
+
</soap:Body>
|
|
48
|
+
</soap:Envelope>
|
|
@@ -175,6 +175,28 @@
|
|
|
175
175
|
<IsEditable>false</IsEditable>
|
|
176
176
|
<AllowChildren>true</AllowChildren>
|
|
177
177
|
</Results>
|
|
178
|
+
<Results xsi:type="DataFolder">
|
|
179
|
+
<Client>
|
|
180
|
+
<ID>9999999</ID>
|
|
181
|
+
</Client>
|
|
182
|
+
<PartnerKey xsi:nil="true" />
|
|
183
|
+
<CreatedDate>2019-10-25T05:35:17.337</CreatedDate>
|
|
184
|
+
<ModifiedDate>2019-10-25T05:35:17.337</ModifiedDate>
|
|
185
|
+
<ID>290937</ID>
|
|
186
|
+
<ObjectID xsi:nil="true" />
|
|
187
|
+
<CustomerKey />
|
|
188
|
+
<ParentFolder>
|
|
189
|
+
<PartnerKey xsi:nil="true" />
|
|
190
|
+
<ID>0</ID>
|
|
191
|
+
<ObjectID xsi:nil="true" />
|
|
192
|
+
</ParentFolder>
|
|
193
|
+
<Name>my automations</Name>
|
|
194
|
+
<Description />
|
|
195
|
+
<ContentType>automations</ContentType>
|
|
196
|
+
<IsActive>true</IsActive>
|
|
197
|
+
<IsEditable>true</IsEditable>
|
|
198
|
+
<AllowChildren>true</AllowChildren>
|
|
199
|
+
</Results>
|
|
178
200
|
</RetrieveResponseMsg>
|
|
179
201
|
</soap:Body>
|
|
180
202
|
</soap:Envelope>
|