mcdev 8.3.0 → 8.4.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/.github/ISSUE_TEMPLATE/bug.yml +2 -0
- package/.github/workflows/close_issues_on_merge.yml +4 -0
- package/.github/workflows/coverage-base-update.yml +2 -2
- package/.github/workflows/coverage-develop-branch.yml +1 -1
- package/.github/workflows/coverage-main-branch.yml +1 -1
- package/.github/workflows/coverage.yml +2 -2
- package/.github/workflows/npm-publish.yml +0 -2
- package/@types/lib/index.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataFilter.d.ts +19 -9
- package/@types/lib/metadataTypes/DataFilter.d.ts.map +1 -1
- package/@types/lib/metadataTypes/DataFilterHidden.d.ts +1 -0
- package/@types/lib/metadataTypes/DataFilterHidden.d.ts.map +1 -1
- package/@types/lib/metadataTypes/FileLocation.d.ts +74 -0
- package/@types/lib/metadataTypes/FileLocation.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Journey.d.ts +6 -0
- package/@types/lib/metadataTypes/Journey.d.ts.map +1 -1
- package/@types/lib/metadataTypes/MetadataType.d.ts +6 -0
- package/@types/lib/metadataTypes/MetadataType.d.ts.map +1 -1
- package/@types/lib/metadataTypes/Script.d.ts +14 -0
- package/@types/lib/metadataTypes/Script.d.ts.map +1 -1
- package/@types/lib/metadataTypes/definitions/DataFilter.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/DataFilterHidden.definition.d.ts +1 -0
- package/@types/lib/metadataTypes/definitions/FileLocation.definition.d.ts +62 -4
- package/@types/lib/metadataTypes/definitions/Journey.definition.d.ts +6 -0
- package/@types/lib/metadataTypes/definitions/Script.definition.d.ts +10 -0
- package/lib/cli.js +6 -0
- package/lib/index.js +1 -0
- package/lib/metadataTypes/DataFilter.js +82 -27
- package/lib/metadataTypes/Event.js +2 -2
- package/lib/metadataTypes/FileLocation.js +204 -4
- package/lib/metadataTypes/Journey.js +72 -45
- package/lib/metadataTypes/MetadataType.js +14 -0
- package/lib/metadataTypes/Script.js +16 -0
- package/lib/metadataTypes/definitions/DataFilter.definition.js +1 -0
- package/lib/metadataTypes/definitions/DataFilterHidden.definition.js +1 -0
- package/lib/metadataTypes/definitions/FileLocation.definition.js +52 -7
- package/lib/metadataTypes/definitions/Journey.definition.js +6 -0
- package/lib/metadataTypes/definitions/Script.definition.js +6 -0
- package/package.json +11 -11
- package/test/general.test.js +11 -11
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-fail.asset-block-meta.json → testExisting_asset_html-matchNamFail.asset-block-meta.json} +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName.asset-block-meta.json → testExisting_asset_html-matchName.asset-block-meta.json} +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-create.asset-block-meta.json → testExisting_asset_html-matchNameAdd.asset-block-meta.json} +3 -3
- package/test/mockRoot/deploy/testInstance/testBU/fileLocation/ExactTarget Enhanced FTP.fileLocation-meta.json +5 -0
- package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_aws.fileLocation-meta.json +14 -0
- package/test/mockRoot/deploy/testInstance/testBU/fileLocation/testExisting_fileLocation_exsftp.fileLocation-meta.json +12 -0
- package/test/resourceFactory.js +9 -2
- package/test/resources/9999999/asset/v1/content/assets/1295064/patch-response.json +1 -1
- package/test/resources/9999999/automation/v1/ftplocations/get-response.json +26 -1
- package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/get-response.json +10 -0
- package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/patch-response.json +2 -2
- package/test/resources/9999999/data/v1/filetransferlocation/Salesforce%20Objects%20%26%20Reports/get-response.json +4 -0
- package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_aws/patch-response.json +18 -0
- package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/delete-response.json +4 -0
- package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_azure/get-response.json +18 -0
- package/test/resources/9999999/data/v1/filetransferlocation/testExisting_fileLocation_exsftp/patch-response.json +16 -0
- package/test/resources/9999999/data/v1/filetransferlocations/get-response.json +59 -0
- package/test/resources/9999999/fileLocation/build-expected.json +14 -0
- package/test/resources/9999999/fileLocation/get-aws-expected.json +14 -0
- package/test/resources/9999999/fileLocation/get-azure-expected.json +14 -0
- package/test/resources/9999999/fileLocation/get-eftp-expected.json +5 -0
- package/test/resources/9999999/fileLocation/get-exsftp-expected.json +12 -0
- package/test/resources/9999999/fileLocation/get-gcp-expected.json +10 -0
- package/test/resources/9999999/fileLocation/get-sor-expected.json +5 -0
- package/test/resources/9999999/fileLocation/patch-aws-expected.json +14 -0
- package/test/resources/9999999/fileLocation/patch-exsftp-expected.json +12 -0
- package/test/resources/9999999/fileLocation/template-expected.json +14 -0
- package/test/resources/9999999/interaction/v1/interactions/get-response-status=Published.json +40 -0
- package/test/type.asset.test.js +7 -7
- package/test/type.automation.test.js +14 -14
- package/test/type.dataFilter.test.js +10 -2
- package/test/type.fileLocation.test.js +279 -0
- package/test/type.fileTransfer.test.js +4 -4
- package/test/type.filter.test.js +9 -2
- package/test/type.importFile.test.js +5 -5
- package/test/type.journey.test.js +26 -0
- package/test/type.query.test.js +2 -2
- package/test/type.script.test.js +1 -1
- /package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-create.asset-block-meta.html → testExisting_asset_html-matchNamFail.asset-block-meta.html} +0 -0
- /package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName-fail.asset-block-meta.html → testExisting_asset_html-matchName.asset-block-meta.html} +0 -0
- /package/test/mockRoot/deploy/testInstance/testBU/asset/block/{testExisting_asset_htmlblock-matchName.asset-block-meta.html → testExisting_asset_html-matchNameAdd.asset-block-meta.html} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"page": 1,
|
|
3
3
|
"pageSize": 2,
|
|
4
|
-
"count":
|
|
4
|
+
"count": 5,
|
|
5
5
|
"items": [
|
|
6
6
|
{
|
|
7
7
|
"name": "Salesforce Objects & Reports",
|
|
@@ -13,6 +13,31 @@
|
|
|
13
13
|
"id": "41a5ded7-0d98-4910-a15f-d09e7ab0af24",
|
|
14
14
|
"locationTypeId": 0,
|
|
15
15
|
"relPath": "ExactTarget Enhanced FTP"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "testExisting_fileLocation_gcp_name",
|
|
19
|
+
"id": "5fc2cc79-b4fb-465d-bc09-7dacf8afebae",
|
|
20
|
+
"locationTypeId": 16,
|
|
21
|
+
"locationUrl": "GCP://some-bucket/Task/Activity"
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
{
|
|
25
|
+
"name": "testExisting_fileLocation_azure_name",
|
|
26
|
+
"id": "fff73b41-dced-4a2a-a6cf-430a46a18df6",
|
|
27
|
+
"locationTypeId": 15,
|
|
28
|
+
"locationUrl": "Azure://container-name/my/path"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "testExisting_fileLocation_aws_name",
|
|
32
|
+
"id": "62bb39b1-c84f-47b5-98a0-61e5d79b7f31",
|
|
33
|
+
"locationTypeId": 13,
|
|
34
|
+
"locationUrl": "S3://bucket-name/my/path"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "testExisting_fileLocation_exsftp_name",
|
|
38
|
+
"id": "335802a4-479d-4834-a491-fc5d2d068132",
|
|
39
|
+
"locationTypeId": 2,
|
|
40
|
+
"locationUrl": "sftp://test.com"
|
|
16
41
|
}
|
|
17
42
|
]
|
|
18
43
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"ssjsActivityId": "39f6a488-20eb-4ba0-b0b9-023725b574e4",
|
|
3
|
+
"name": "testExisting_script",
|
|
4
|
+
"key": "testExisting_script",
|
|
5
|
+
"description": "updated on deploy",
|
|
6
|
+
"script": "<script runat=\"server\">\n// dummy updated\n</script>",
|
|
7
|
+
"categoryId": 304,
|
|
8
|
+
"createdDate": "2022-10-20T00:41:26.163",
|
|
9
|
+
"modifiedDate": "2022-10-20T00:41:26.163"
|
|
10
|
+
}
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
"description": "updated on deploy",
|
|
6
6
|
"script": "<script runat=\"server\">\n// dummy updated\n</script>",
|
|
7
7
|
"categoryId": 304,
|
|
8
|
-
"createdDate": "
|
|
9
|
-
"modifiedDate": "
|
|
8
|
+
"createdDate": "0001-01-01T00:00:00",
|
|
9
|
+
"modifiedDate": "0001-01-01T00:00:00"
|
|
10
10
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fileTransferLocation": {
|
|
3
|
+
"customerKey": "testExisting_fileLocation_aws",
|
|
4
|
+
"name": "testExisting_fileLocation_aws_name",
|
|
5
|
+
"description": "updated via deploy",
|
|
6
|
+
"locationType": "AmazonSimpleStorage",
|
|
7
|
+
"awsFileTransferLocation": {
|
|
8
|
+
"regionName": "eucentral1",
|
|
9
|
+
"transferAccelerationEnabled": false,
|
|
10
|
+
"accessKeyId": "key-id",
|
|
11
|
+
"relativePath": "my/path",
|
|
12
|
+
"bucketName": "bucket-name",
|
|
13
|
+
"authType": "AccessKey"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"requestId": "ae8149ee-819e-40b7-b08f-cb59fdf88ddb",
|
|
17
|
+
"resultMessages": []
|
|
18
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fileTransferLocation": {
|
|
3
|
+
"customerKey": "testExisting_fileLocation_azure",
|
|
4
|
+
"name": "testExisting_fileLocation_azure_name",
|
|
5
|
+
"description": "blabla",
|
|
6
|
+
"locationType": "AzureBlobStorage",
|
|
7
|
+
"azureFileTransferLocation": {
|
|
8
|
+
"storageAccountName": "accountname",
|
|
9
|
+
"tenantId": "my-id",
|
|
10
|
+
"accessKeyId": "client-id",
|
|
11
|
+
"relativePath": "my/path",
|
|
12
|
+
"bucketName": "container-name",
|
|
13
|
+
"authType": "AccessKey"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"requestId": "d49c372e-9939-4b81-91d2-69a37a8bb036",
|
|
17
|
+
"resultMessages": []
|
|
18
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fileTransferLocation": {
|
|
3
|
+
"customerKey": "testExisting_fileLocation_exsftp",
|
|
4
|
+
"name": "testExisting_fileLocation_exsftp_name",
|
|
5
|
+
"description": "updated via deploy",
|
|
6
|
+
"locationType": "ExternalSftp",
|
|
7
|
+
"sFtpFileTransferLocation": {
|
|
8
|
+
"portNumber": 22,
|
|
9
|
+
"userName": "abc",
|
|
10
|
+
"url": "sftp://test.com",
|
|
11
|
+
"authType": "Password"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"requestId": "05ef7257-72e6-4774-87c7-1f99aa892534",
|
|
15
|
+
"resultMessages": []
|
|
16
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"page": 1,
|
|
3
|
+
"pageSize": 50,
|
|
4
|
+
"count": 4,
|
|
5
|
+
"items": [
|
|
6
|
+
{
|
|
7
|
+
"customerKey": "testExisting_fileLocation_gcp",
|
|
8
|
+
"name": "testExisting_fileLocation_gcp_name",
|
|
9
|
+
"description": "",
|
|
10
|
+
"locationType": "GcpBlobStorage",
|
|
11
|
+
"gcpFileTransferLocation": {
|
|
12
|
+
"relativePath": "Task/Activity",
|
|
13
|
+
"bucketName": "some-bucket"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"customerKey": "testExisting_fileLocation_aws",
|
|
18
|
+
"name": "testExisting_fileLocation_aws_name",
|
|
19
|
+
"description": "",
|
|
20
|
+
"locationType": "AmazonSimpleStorage",
|
|
21
|
+
"awsFileTransferLocation": {
|
|
22
|
+
"regionName": "eucentral1",
|
|
23
|
+
"transferAccelerationEnabled": false,
|
|
24
|
+
"accessKeyId": "key-id",
|
|
25
|
+
"relativePath": "my/path",
|
|
26
|
+
"bucketName": "bucket-name",
|
|
27
|
+
"authType": "AccessKey"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"customerKey": "testExisting_fileLocation_azure",
|
|
32
|
+
"name": "testExisting_fileLocation_azure_name",
|
|
33
|
+
"description": "blabla",
|
|
34
|
+
"locationType": "AzureBlobStorage",
|
|
35
|
+
"azureFileTransferLocation": {
|
|
36
|
+
"storageAccountName": "accountname",
|
|
37
|
+
"tenantId": "my-id",
|
|
38
|
+
"accessKeyId": "client-id",
|
|
39
|
+
"relativePath": "my/path",
|
|
40
|
+
"bucketName": "container-name",
|
|
41
|
+
"authType": "AccessKey"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"customerKey": "testExisting_fileLocation_exsftp",
|
|
46
|
+
"name": "testExisting_fileLocation_exsftp_name",
|
|
47
|
+
"description": "blabla",
|
|
48
|
+
"locationType": "ExternalSftp",
|
|
49
|
+
"sFtpFileTransferLocation": {
|
|
50
|
+
"portNumber": 22,
|
|
51
|
+
"userName": "abc",
|
|
52
|
+
"url": "sftp://test.com",
|
|
53
|
+
"authType": "Password"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"requestId": "3870c0e1-943c-4ae4-9cff-26736372dbe7",
|
|
58
|
+
"resultMessages": []
|
|
59
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testTemplated_fileLocation_azure",
|
|
3
|
+
"description": "blabla",
|
|
4
|
+
"name": "testTemplated_fileLocation_azure_name",
|
|
5
|
+
"azureFileTransferLocation": {
|
|
6
|
+
"accessKeyId": "client-id",
|
|
7
|
+
"authType": "AccessKey",
|
|
8
|
+
"bucketName": "container-name",
|
|
9
|
+
"relativePath": "my/path",
|
|
10
|
+
"storageAccountName": "accountname",
|
|
11
|
+
"tenantId": "my-id"
|
|
12
|
+
},
|
|
13
|
+
"c__locationType": "Azure Blob Storage"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testExisting_fileLocation_aws",
|
|
3
|
+
"name": "testExisting_fileLocation_aws_name",
|
|
4
|
+
"description": "",
|
|
5
|
+
"awsFileTransferLocation": {
|
|
6
|
+
"accessKeyId": "key-id",
|
|
7
|
+
"authType": "AccessKey",
|
|
8
|
+
"bucketName": "bucket-name",
|
|
9
|
+
"regionName": "eucentral1",
|
|
10
|
+
"relativePath": "my/path",
|
|
11
|
+
"transferAccelerationEnabled": false
|
|
12
|
+
},
|
|
13
|
+
"c__locationType": "Amazon Simple Storage Service"
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testExisting_fileLocation_azure",
|
|
3
|
+
"name": "testExisting_fileLocation_azure_name",
|
|
4
|
+
"description": "blabla",
|
|
5
|
+
"azureFileTransferLocation": {
|
|
6
|
+
"accessKeyId": "client-id",
|
|
7
|
+
"authType": "AccessKey",
|
|
8
|
+
"bucketName": "container-name",
|
|
9
|
+
"relativePath": "my/path",
|
|
10
|
+
"storageAccountName": "accountname",
|
|
11
|
+
"tenantId": "my-id"
|
|
12
|
+
},
|
|
13
|
+
"c__locationType": "Azure Blob Storage"
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testExisting_fileLocation_exsftp",
|
|
3
|
+
"name": "testExisting_fileLocation_exsftp_name",
|
|
4
|
+
"description": "blabla",
|
|
5
|
+
"sFtpFileTransferLocation": {
|
|
6
|
+
"authType": "Password",
|
|
7
|
+
"portNumber": 22,
|
|
8
|
+
"url": "sftp://test.com",
|
|
9
|
+
"userName": "abc"
|
|
10
|
+
},
|
|
11
|
+
"c__locationType": "External SFTP Site"
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testExisting_fileLocation_gcp",
|
|
3
|
+
"name": "testExisting_fileLocation_gcp_name",
|
|
4
|
+
"description": "",
|
|
5
|
+
"gcpFileTransferLocation": {
|
|
6
|
+
"bucketName": "some-bucket",
|
|
7
|
+
"relativePath": "Task/Activity"
|
|
8
|
+
},
|
|
9
|
+
"c__locationType": "Google Cloud Storage"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testExisting_fileLocation_aws",
|
|
3
|
+
"description": "updated via deploy",
|
|
4
|
+
"name": "testExisting_fileLocation_aws_name",
|
|
5
|
+
"awsFileTransferLocation": {
|
|
6
|
+
"accessKeyId": "key-id",
|
|
7
|
+
"authType": "AccessKey",
|
|
8
|
+
"bucketName": "bucket-name",
|
|
9
|
+
"regionName": "eucentral1",
|
|
10
|
+
"relativePath": "my/path",
|
|
11
|
+
"transferAccelerationEnabled": false
|
|
12
|
+
},
|
|
13
|
+
"c__locationType": "Amazon Simple Storage Service"
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "testExisting_fileLocation_exsftp",
|
|
3
|
+
"name": "testExisting_fileLocation_exsftp_name",
|
|
4
|
+
"description": "updated via deploy",
|
|
5
|
+
"sFtpFileTransferLocation": {
|
|
6
|
+
"authType": "Password",
|
|
7
|
+
"portNumber": 22,
|
|
8
|
+
"url": "sftp://test.com",
|
|
9
|
+
"userName": "abc"
|
|
10
|
+
},
|
|
11
|
+
"c__locationType": "External SFTP Site"
|
|
12
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"customerKey": "{{{prefix}}}fileLocation_azure",
|
|
3
|
+
"description": "blabla",
|
|
4
|
+
"name": "{{{prefix}}}fileLocation_azure_name",
|
|
5
|
+
"azureFileTransferLocation": {
|
|
6
|
+
"accessKeyId": "client-id",
|
|
7
|
+
"authType": "AccessKey",
|
|
8
|
+
"bucketName": "container-name",
|
|
9
|
+
"relativePath": "my/path",
|
|
10
|
+
"storageAccountName": "accountname",
|
|
11
|
+
"tenantId": "my-id"
|
|
12
|
+
},
|
|
13
|
+
"c__locationType": "Azure Blob Storage"
|
|
14
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"count": 1,
|
|
3
|
+
"page": 1,
|
|
4
|
+
"pageSize": 500,
|
|
5
|
+
"links": {},
|
|
6
|
+
"items": [
|
|
7
|
+
{
|
|
8
|
+
"id": "dsfdsafdsa-922c-4568-85a5-e5cc77efc3be",
|
|
9
|
+
"key": "testExisting_temail",
|
|
10
|
+
"name": "testExisting_temail",
|
|
11
|
+
"lastPublishedDate": "0001-01-01T00:00:00",
|
|
12
|
+
"description": "",
|
|
13
|
+
"version": 2,
|
|
14
|
+
"workflowApiVersion": 1,
|
|
15
|
+
"createdDate": "2022-03-24T02:20:32.74",
|
|
16
|
+
"modifiedDate": "2022-03-24T02:20:40.45",
|
|
17
|
+
"goals": [],
|
|
18
|
+
"exits": [],
|
|
19
|
+
"notifiers": [],
|
|
20
|
+
"entryMode": "MultipleEntries",
|
|
21
|
+
"definitionType": "Transactional",
|
|
22
|
+
"channel": "email",
|
|
23
|
+
"defaults": {
|
|
24
|
+
"properties": {
|
|
25
|
+
"analyticsTracking": {
|
|
26
|
+
"enabled": false,
|
|
27
|
+
"analyticsType": "google",
|
|
28
|
+
"urlDomainsToTrack": []
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"metaData": {},
|
|
33
|
+
"executionMode": "Production",
|
|
34
|
+
"categoryId": 6298,
|
|
35
|
+
"status": "Published",
|
|
36
|
+
"scheduledStatus": "Draft",
|
|
37
|
+
"definitionId": "dsfdsafdsa-922c-4568-85a5-e5cc77efc3be"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
package/test/type.asset.test.js
CHANGED
|
@@ -443,7 +443,7 @@ describe('type: asset', () => {
|
|
|
443
443
|
const deployResult = await handler.deploy(
|
|
444
444
|
'testInstance/testBU',
|
|
445
445
|
['asset'],
|
|
446
|
-
['
|
|
446
|
+
['testExisting_asset_html-matchName']
|
|
447
447
|
);
|
|
448
448
|
// THEN
|
|
449
449
|
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
@@ -464,8 +464,8 @@ describe('type: asset', () => {
|
|
|
464
464
|
);
|
|
465
465
|
assert.equal(
|
|
466
466
|
upsertCallout?.customerKey,
|
|
467
|
-
'
|
|
468
|
-
'customerKey should be
|
|
467
|
+
'testExisting_asset_html-matchName',
|
|
468
|
+
'customerKey should be testExisting_asset_html-matchName'
|
|
469
469
|
);
|
|
470
470
|
assert.equal(
|
|
471
471
|
upsertCallout?.id,
|
|
@@ -487,7 +487,7 @@ describe('type: asset', () => {
|
|
|
487
487
|
const deployResult = await handler.deploy(
|
|
488
488
|
'testInstance/testBU',
|
|
489
489
|
['asset'],
|
|
490
|
-
['
|
|
490
|
+
['testExisting_asset_html-matchNamFail']
|
|
491
491
|
);
|
|
492
492
|
// THEN
|
|
493
493
|
assert.equal(process.exitCode, 1, 'deploy should have thrown an error');
|
|
@@ -518,7 +518,7 @@ describe('type: asset', () => {
|
|
|
518
518
|
const deployResult = await handler.deploy(
|
|
519
519
|
'testInstance/testBU',
|
|
520
520
|
['asset'],
|
|
521
|
-
['
|
|
521
|
+
['testExisting_asset_html-matchNameAdd']
|
|
522
522
|
);
|
|
523
523
|
// THEN
|
|
524
524
|
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
@@ -535,8 +535,8 @@ describe('type: asset', () => {
|
|
|
535
535
|
const upsertCallout = testUtils.getRestCallout('post', '/asset/v1/content/assets/');
|
|
536
536
|
assert.equal(
|
|
537
537
|
upsertCallout?.customerKey,
|
|
538
|
-
'
|
|
539
|
-
'asset.customerKey should be
|
|
538
|
+
'testExisting_asset_html-matchNameAdd',
|
|
539
|
+
'asset.customerKey should be testExisting_asset_html-matchNameAdd'
|
|
540
540
|
);
|
|
541
541
|
assert.equal(
|
|
542
542
|
upsertCallout?.id,
|
|
@@ -58,7 +58,7 @@ describe('type: automation', () => {
|
|
|
58
58
|
);
|
|
59
59
|
assert.equal(
|
|
60
60
|
testUtils.getAPIHistoryLength(),
|
|
61
|
-
|
|
61
|
+
34,
|
|
62
62
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
63
63
|
);
|
|
64
64
|
return;
|
|
@@ -144,7 +144,7 @@ describe('type: automation', () => {
|
|
|
144
144
|
|
|
145
145
|
assert.equal(
|
|
146
146
|
testUtils.getAPIHistoryLength(),
|
|
147
|
-
|
|
147
|
+
52,
|
|
148
148
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
149
149
|
);
|
|
150
150
|
return;
|
|
@@ -212,7 +212,7 @@ describe('type: automation', () => {
|
|
|
212
212
|
|
|
213
213
|
assert.equal(
|
|
214
214
|
testUtils.getAPIHistoryLength(),
|
|
215
|
-
|
|
215
|
+
56,
|
|
216
216
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
217
217
|
);
|
|
218
218
|
return;
|
|
@@ -279,7 +279,7 @@ describe('type: automation', () => {
|
|
|
279
279
|
|
|
280
280
|
assert.equal(
|
|
281
281
|
testUtils.getAPIHistoryLength(),
|
|
282
|
-
|
|
282
|
+
56,
|
|
283
283
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
284
284
|
);
|
|
285
285
|
return;
|
|
@@ -318,7 +318,7 @@ describe('type: automation', () => {
|
|
|
318
318
|
// check number of API calls
|
|
319
319
|
assert.equal(
|
|
320
320
|
testUtils.getAPIHistoryLength(),
|
|
321
|
-
|
|
321
|
+
28,
|
|
322
322
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
323
323
|
);
|
|
324
324
|
return;
|
|
@@ -362,7 +362,7 @@ describe('type: automation', () => {
|
|
|
362
362
|
// check number of API calls
|
|
363
363
|
assert.equal(
|
|
364
364
|
testUtils.getAPIHistoryLength(),
|
|
365
|
-
|
|
365
|
+
74,
|
|
366
366
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
367
367
|
);
|
|
368
368
|
return;
|
|
@@ -406,7 +406,7 @@ describe('type: automation', () => {
|
|
|
406
406
|
// check number of API calls
|
|
407
407
|
assert.equal(
|
|
408
408
|
testUtils.getAPIHistoryLength(),
|
|
409
|
-
|
|
409
|
+
76,
|
|
410
410
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
411
411
|
);
|
|
412
412
|
return;
|
|
@@ -450,7 +450,7 @@ describe('type: automation', () => {
|
|
|
450
450
|
// check number of API calls
|
|
451
451
|
assert.equal(
|
|
452
452
|
testUtils.getAPIHistoryLength(),
|
|
453
|
-
|
|
453
|
+
76,
|
|
454
454
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
455
455
|
);
|
|
456
456
|
return;
|
|
@@ -494,7 +494,7 @@ describe('type: automation', () => {
|
|
|
494
494
|
// check number of API calls
|
|
495
495
|
assert.equal(
|
|
496
496
|
testUtils.getAPIHistoryLength(),
|
|
497
|
-
|
|
497
|
+
69,
|
|
498
498
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
499
499
|
);
|
|
500
500
|
return;
|
|
@@ -538,7 +538,7 @@ describe('type: automation', () => {
|
|
|
538
538
|
// check number of API calls
|
|
539
539
|
assert.equal(
|
|
540
540
|
testUtils.getAPIHistoryLength(),
|
|
541
|
-
|
|
541
|
+
76,
|
|
542
542
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
543
543
|
);
|
|
544
544
|
return;
|
|
@@ -582,7 +582,7 @@ describe('type: automation', () => {
|
|
|
582
582
|
// check number of API calls
|
|
583
583
|
assert.equal(
|
|
584
584
|
testUtils.getAPIHistoryLength(),
|
|
585
|
-
|
|
585
|
+
76,
|
|
586
586
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
587
587
|
);
|
|
588
588
|
return;
|
|
@@ -626,7 +626,7 @@ describe('type: automation', () => {
|
|
|
626
626
|
);
|
|
627
627
|
assert.equal(
|
|
628
628
|
testUtils.getAPIHistoryLength(),
|
|
629
|
-
|
|
629
|
+
30,
|
|
630
630
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
631
631
|
);
|
|
632
632
|
return;
|
|
@@ -670,7 +670,7 @@ describe('type: automation', () => {
|
|
|
670
670
|
);
|
|
671
671
|
assert.equal(
|
|
672
672
|
testUtils.getAPIHistoryLength(),
|
|
673
|
-
|
|
673
|
+
34,
|
|
674
674
|
'Unexpected number of requests made. Run testUtils.logAPIHistoryDebug() to see the requests'
|
|
675
675
|
);
|
|
676
676
|
return;
|
|
@@ -681,7 +681,7 @@ describe('type: automation', () => {
|
|
|
681
681
|
await handler.retrieve('testInstance/testBU');
|
|
682
682
|
assert.equal(process.exitCode, 0, 'retrieve should not have thrown an error');
|
|
683
683
|
|
|
684
|
-
const expectedApiCallsRetrieve =
|
|
684
|
+
const expectedApiCallsRetrieve = 109;
|
|
685
685
|
assert.equal(
|
|
686
686
|
testUtils.getAPIHistoryLength(),
|
|
687
687
|
expectedApiCallsRetrieve,
|
|
@@ -81,7 +81,7 @@ describe('type: dataFilter', () => {
|
|
|
81
81
|
it('Should create & upsert a dataFilter', async () => {
|
|
82
82
|
// WHEN
|
|
83
83
|
|
|
84
|
-
await handler.deploy('testInstance/testBU', ['dataFilter']);
|
|
84
|
+
const deployed = await handler.deploy('testInstance/testBU', ['dataFilter']);
|
|
85
85
|
// THEN
|
|
86
86
|
assert.equal(process.exitCode, 0, 'deploy should not have thrown an error');
|
|
87
87
|
// get results from cache
|
|
@@ -89,8 +89,16 @@ describe('type: dataFilter', () => {
|
|
|
89
89
|
assert.equal(
|
|
90
90
|
result.dataFilter ? Object.keys(result.dataFilter).length : 0,
|
|
91
91
|
2,
|
|
92
|
-
'
|
|
92
|
+
'unexpected number of dataFilters in cache'
|
|
93
93
|
);
|
|
94
|
+
assert.equal(
|
|
95
|
+
deployed?.['testInstance/testBU']?.dataFilter
|
|
96
|
+
? Object.keys(deployed['testInstance/testBU'].dataFilter).length
|
|
97
|
+
: 0,
|
|
98
|
+
2,
|
|
99
|
+
'unexpected number of dataFilters deployed'
|
|
100
|
+
);
|
|
101
|
+
|
|
94
102
|
// confirm created item
|
|
95
103
|
assert.deepEqual(
|
|
96
104
|
await testUtils.getActualJson('testNew_dataFilter', 'dataFilter'),
|