mcdev 5.1.0 → 5.2.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/.eslintrc.json +4 -4
- package/.github/ISSUE_TEMPLATE/bug.yml +1 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +2 -2
- package/.github/workflows/coverage-develop-branch.yml +0 -2
- package/.github/workflows/coverage-main-branch.yml +0 -2
- package/.github/workflows/coverage.yml +0 -2
- package/.husky/post-checkout +1 -0
- package/.husky/post-merge +1 -0
- package/.vscode/extensions.json +4 -0
- package/docs/dist/documentation.md +633 -286
- package/lib/Deployer.js +25 -25
- package/lib/MetadataTypeDefinitions.js +1 -1
- package/lib/MetadataTypeInfo.js +1 -1
- package/lib/Retriever.js +1 -1
- package/lib/cli.js +159 -9
- package/lib/index.js +395 -95
- package/lib/metadataTypes/Asset.js +10 -11
- package/lib/metadataTypes/AttributeGroup.js +76 -2
- package/lib/metadataTypes/AttributeSet.js +260 -0
- package/lib/metadataTypes/Automation.js +413 -96
- package/lib/metadataTypes/DataExtension.js +2 -2
- package/lib/metadataTypes/DataExtensionField.js +1 -1
- package/lib/metadataTypes/Event.js +2 -3
- package/lib/metadataTypes/Folder.js +1 -1
- package/lib/metadataTypes/Journey.js +5 -6
- package/lib/metadataTypes/MetadataType.js +149 -49
- package/lib/metadataTypes/MobileKeyword.js +8 -8
- package/lib/metadataTypes/MobileMessage.js +5 -5
- package/lib/metadataTypes/Query.js +26 -10
- package/lib/metadataTypes/Script.js +3 -3
- package/lib/metadataTypes/TransactionalSMS.js +5 -5
- package/lib/metadataTypes/TriggeredSend.js +25 -50
- package/lib/metadataTypes/User.js +7 -4
- package/lib/metadataTypes/definitions/AttributeGroup.definition.js +117 -106
- package/lib/metadataTypes/definitions/{SetDefinition.definition.js → AttributeSet.definition.js} +54 -27
- package/lib/metadataTypes/definitions/Automation.definition.js +22 -15
- package/lib/metadataTypes/definitions/ImportFile.definition.js +36 -6
- package/lib/metadataTypes/definitions/TriggeredSend.definition.js +1 -0
- package/lib/util/cache.js +9 -4
- package/lib/util/cli.js +40 -0
- package/lib/util/file.js +2 -2
- package/lib/util/init.js +84 -0
- package/lib/util/util.js +121 -13
- package/package.json +11 -11
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/automation/testExisting_automation.automation-meta.json +1 -2
- package/test/mockRoot/deploy/testInstance/testBU/automation/testNew_automation.automation-meta.json +5 -6
- package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testExisting_dataExtract.dataExtract-meta.json +35 -0
- package/test/mockRoot/deploy/testInstance/testBU/dataExtract/testNew_dataExtract.dataExtract-meta.json +35 -0
- package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testExisting_fileTransfer.fileTransfer-meta.json +17 -0
- package/test/mockRoot/deploy/testInstance/testBU/fileTransfer/testNew_fileTransfer.fileTransfer-meta.json +17 -0
- package/test/mockRoot/deploy/testInstance/testBU/importFile/testExisting_importFile.importFile-meta.json +29 -0
- package/test/mockRoot/deploy/testInstance/testBU/importFile/testNew_importFile.importFile-meta.json +29 -0
- package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.json +11 -0
- package/test/mockRoot/deploy/testInstance/testBU/query/testExisting_query_fixKeys.query-meta.sql +6 -0
- package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.json +6 -0
- package/test/mockRoot/deploy/testInstance/testBU/script/testExisting_script.script-meta.ssjs +1 -0
- package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.json +6 -0
- package/test/mockRoot/deploy/testInstance/testBU/script/testNew_script.script-meta.ssjs +1 -0
- package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testExisting_triggeredSend.triggeredSend-meta.json +29 -0
- package/test/mockRoot/deploy/testInstance/testBU/triggeredSend/testNew_triggeredSend.triggeredSend-meta.json +29 -0
- package/test/resourceFactory.js +77 -12
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDCustomerKey=testExisting_userANDEmaillike@-response.xml +27 -0
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=falseANDEmaillike@-response.xml +156 -0
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml +87 -0
- package/test/resources/1111111/accountUser/retrieve-ActiveFlag=trueANDEmaillike@-response.xml +156 -0
- package/test/resources/1111111/accountUser/retrieve-CustomerKey=testExisting_userANDActiveFlag=trueANDEmailisNullORNamelikeapp userANDMustChangePassword=false-response.xml +27 -0
- package/test/resources/1111111/accountUserAccount/retrieve-AccountUser.AccountUserID=700301950-response.xml +60 -0
- package/test/resources/1111111/user/retrieve-expected.md +4 -2
- package/test/resources/9999999/attributeGroup/retrieve-expected.json +25 -0
- package/test/resources/9999999/attributeSet/retrieve-expected.json +748 -0
- package/test/resources/9999999/automation/build-expected.json +1 -2
- package/test/resources/9999999/automation/create-expected.json +7 -8
- package/test/resources/9999999/automation/create-testNew_automation-expected.md +4 -4
- package/test/resources/9999999/automation/patch_fixKeys-pause-expected.json +44 -0
- package/test/resources/9999999/automation/patch_fixKeys-schedule-expected.json +44 -0
- package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +42 -0
- package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_pause-response.xml +42 -0
- package/test/resources/9999999/automation/perform-08afb0e2-b00a-4c88-fixKey_schedule-response.xml +42 -0
- package/test/resources/9999999/automation/perform-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +42 -0
- package/test/resources/9999999/automation/retrieve-expected.json +1 -2
- package/test/resources/9999999/automation/retrieve-testExisting_automation-expected.md +2 -2
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +52 -0
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-ad2e-pause-response.xml +38 -0
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_pause-response.xml +52 -0
- package/test/resources/9999999/automation/schedule-08afb0e2-b00a-4c88-fixKey_schedule-response.xml +52 -0
- package/test/resources/9999999/automation/schedule-a8afb0e2-b00a-4c88-ad2e-1f7f8788c560-response.xml +52 -0
- package/test/resources/9999999/automation/template-expected.json +1 -2
- package/test/resources/9999999/automation/update-expected.json +1 -2
- package/test/resources/9999999/automation/update-testExisting_automation-expected.md +2 -2
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/get-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-ad2e-pause/patch-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/get-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_pause/patch-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/get-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/08afb0e2-b00a-4c88-fixKey_schedule/patch-response.json +85 -0
- package/test/resources/9999999/automation/v1/automations/a8afb0e2-b00a-4c88-ad2e-1f7f8788c560/get-response.json +1 -1
- package/test/resources/9999999/automation/v1/automations/post-response.json +20 -19
- package/test/resources/9999999/automation/v1/dataextracts/56c5370a-f988-4f36-b0ee-0f876573f6d7/patch-response.json +38 -0
- package/test/resources/9999999/automation/v1/dataextracts/post-response.json +38 -0
- package/test/resources/9999999/automation/v1/dataextracttypes/get-response.json +50 -0
- package/test/resources/9999999/automation/v1/filetransfers/72c328ac-f5b0-4e37-91d3-a775666f15a6/patch-response.json +18 -0
- package/test/resources/9999999/automation/v1/filetransfers/post-response.json +18 -0
- package/test/resources/9999999/automation/v1/ftplocations/get-response.json +18 -0
- package/test/resources/9999999/automation/v1/imports/9d16f42c-2260-ed11-b849-48df37d1de8b/patch-response.json +31 -0
- package/test/resources/9999999/automation/v1/imports/get-response.json +1 -1
- package/test/resources/9999999/automation/v1/imports/post-response.json +30 -0
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dae/actions/start/post-response.txt +1 -0
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/get-response.json +17 -0
- package/test/resources/9999999/automation/v1/queries/549f0568-607c-4940-afef-437965094dat_fixKeys/patch-response.json +18 -0
- package/test/resources/9999999/automation/v1/queries/get-response.json +18 -1
- package/test/resources/9999999/automation/v1/scripts/39f6a488-20eb-4ba0-b0b9-023725b574e4/patch-response.json +10 -0
- package/test/resources/9999999/automation/v1/scripts/get-response.json +12 -2
- package/test/resources/9999999/automation/v1/scripts/post-response.json +10 -0
- package/test/resources/9999999/dataExtension/retrieve-Name=testExisting_dataExtension-response.xml +52 -0
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testExisting_dataExtension-response.xml +98 -0
- package/test/resources/9999999/dataExtensionField/retrieve-DataExtension.CustomerKey=testNew_dataExtensionORDataExtension.CustomerKey=testExisting_dataExtension-response.xml +99 -0
- package/test/resources/9999999/dataExtract/build-expected.json +35 -0
- package/test/resources/9999999/dataExtract/get-expected.json +39 -0
- package/test/resources/9999999/dataExtract/patch-expected.json +37 -0
- package/test/resources/9999999/dataExtract/post-expected.json +37 -0
- package/test/resources/9999999/dataExtract/template-expected.json +35 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=contextual_suppression_listORContentType=publicationORContentType=suppression_listORContentType=mysubsORContentType=list-response.xml +136 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=ssjsactivity-response.xml +48 -0
- package/test/resources/9999999/dataFolder/retrieve-ContentType=triggered_send_journeybuilderORContentType=triggered_sendORContentType=hidden-response.xml +276 -0
- package/test/resources/9999999/dataFolder/retrieve-response.xml +23 -0
- package/test/resources/9999999/email/retrieve-response.xml +203 -0
- package/test/resources/9999999/fileTransfer/build-expected.json +15 -0
- package/test/resources/9999999/fileTransfer/get-expected.json +17 -0
- package/test/resources/9999999/fileTransfer/patch-expected.json +17 -0
- package/test/resources/9999999/fileTransfer/post-expected.json +17 -0
- package/test/resources/9999999/fileTransfer/template-expected.json +15 -0
- package/test/resources/9999999/hub/v1/contacts/schema/attributeGroups/get-response.json +585 -0
- package/test/resources/9999999/hub/v1/contacts/schema/setDefinitions/get-response.json +19807 -0
- package/test/resources/9999999/importFile/build-expected.json +27 -0
- package/test/resources/9999999/importFile/get-expected.json +29 -0
- package/test/resources/9999999/importFile/patch-expected.json +29 -0
- package/test/resources/9999999/importFile/post-expected.json +29 -0
- package/test/resources/9999999/importFile/template-expected.json +27 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_pause-response.xml +32 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixKey_schedule-response.xml +32 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_paused-response.xml +32 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_fixedKey_scheduled-response.xml +32 -0
- package/test/resources/9999999/program/retrieve-CustomerKey=testExisting_automation_pause-response.xml +30 -0
- package/test/resources/9999999/program/retrieve-response.xml +21 -3
- package/test/resources/9999999/query/patch_fixKeys-expected.json +11 -0
- package/test/resources/9999999/query/patch_fixKeys-expected.sql +6 -0
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixKeysANDStatus=Active-response.xml +30 -0
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testExisting_query_fixedKeysANDStatus=Active-response.xml +30 -0
- package/test/resources/9999999/queryDefinition/retrieve-CustomerKey=testNew_queryANDStatus=Active-response.xml +30 -0
- package/test/resources/9999999/script/build-expected.json +6 -0
- package/test/resources/9999999/script/build-expected.ssjs +1 -0
- package/test/resources/9999999/script/get-expected.json +8 -0
- package/test/resources/9999999/script/get-expected.ssjs +1 -0
- package/test/resources/9999999/script/get_noScriptTag-expected.html +1 -0
- package/test/resources/9999999/script/get_noScriptTag-expected.json +8 -0
- package/test/resources/9999999/script/patch-expected.json +8 -0
- package/test/resources/9999999/script/patch-expected.ssjs +1 -0
- package/test/resources/9999999/script/post-expected.json +8 -0
- package/test/resources/9999999/script/post-expected.ssjs +1 -0
- package/test/resources/9999999/script/template-expected.json +6 -0
- package/test/resources/9999999/script/template-expected.ssjs +1 -0
- package/test/resources/9999999/triggeredSend/build-expected.json +29 -0
- package/test/resources/9999999/triggeredSend/get-expected.json +29 -0
- package/test/resources/9999999/triggeredSend/patch-expected.json +29 -0
- package/test/resources/9999999/triggeredSend/post-expected.json +29 -0
- package/test/resources/9999999/triggeredSend/template-expected.json +29 -0
- package/test/resources/9999999/triggeredSendDefinition/create-response.xml +75 -0
- package/test/resources/9999999/triggeredSendDefinition/delete-response.xml +36 -0
- package/test/resources/9999999/triggeredSendDefinition/{retrieve-response.xml → retrieve-TriggeredSendStatusINNew,Active,Inactive,Moved,Canceled-response.xml} +4 -4
- package/test/resources/9999999/triggeredSendDefinition/update-response.xml +74 -0
- package/test/type.attributeGroup.test.js +55 -0
- package/test/type.attributeSet.test.js +55 -0
- package/test/type.automation.test.js +638 -11
- package/test/type.dataExtension.test.js +0 -1
- package/test/type.dataExtract.test.js +187 -0
- package/test/type.fileTransfer.test.js +185 -0
- package/test/type.importFile.test.js +186 -0
- package/test/type.mobileKeyword.test.js +0 -1
- package/test/type.query.test.js +464 -13
- package/test/type.script.test.js +367 -0
- package/test/type.triggeredSend.test.js +152 -0
- package/test/type.user.test.js +22 -10
- package/test/utils.js +4 -1
- package/lib/metadataTypes/SetDefinition.js +0 -37
- /package/test/resources/1111111/accountUser/{retrieve-response.xml → retrieve-ActiveFlag=trueANDCustomerKey=testExisting_userANDEmaillike@-response.xml} +0 -0
- /package/test/resources/1111111/accountUserAccount/{retrieve-response.xml → retrieve-AccountUser.AccountUserIDIN700301950,700301951,7471228-response.xml} +0 -0
- /package/test/resources/1111111/businessUnit/{retrieve-response.xml → retrieve-ID=1111111-response.xml} +0 -0
- /package/test/resources/1111111/list/{retrieve-response.xml → retrieve-CustomerKey=All SubscribersORListName=All Subscribers-response.xml} +0 -0
- /package/test/resources/1111111/role/{retrieve-response.xml → retrieve-IsPrivate=false-response.xml} +0 -0
- /package/test/resources/9999999/emailSendDefinition/{retrieve-response.xml → retrieve-IsPlatformObject=falseANDDescriptionnotEqualsSFSendDefinition-response.xml} +0 -0
- /package/test/resources/9999999/queryDefinition/{retrieve-response.xml → retrieve-CustomerKey=testExisting_queryANDStatus=Active-response.xml} +0 -0
|
@@ -1,238 +1,249 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
bodyIteratorField: 'attributeGroupDefinitions',
|
|
3
|
-
dependencies: [], // future may have dependency on Data Extensions
|
|
3
|
+
dependencies: ['attributeSet'], // future may have dependency on Data Extensions
|
|
4
4
|
hasExtended: false,
|
|
5
5
|
idField: 'definitionID',
|
|
6
6
|
keyIsFixed: null,
|
|
7
7
|
keyField: 'definitionKey',
|
|
8
8
|
nameField: 'definitionName.value',
|
|
9
|
-
restPagination: false,
|
|
9
|
+
restPagination: false, // Hub API does not support pagination and returns everything instead
|
|
10
10
|
type: 'attributeGroup',
|
|
11
11
|
typeDescription: 'BETA: Groupings of Set Definitions (Data Extensions) in Data Designer.',
|
|
12
12
|
typeRetrieveByDefault: false,
|
|
13
13
|
typeName: 'Data Designer Attribute Groups',
|
|
14
14
|
fields: {
|
|
15
15
|
applicationID: {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
// used by system generated attribute groups only; contains UUID
|
|
17
|
+
isCreateable: false,
|
|
18
|
+
isUpdateable: false,
|
|
19
|
+
retrieving: false,
|
|
20
|
+
template: false,
|
|
20
21
|
},
|
|
21
22
|
applicationKey: {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
// used by system generated attribute groups only
|
|
24
|
+
isCreateable: false,
|
|
25
|
+
isUpdateable: false,
|
|
24
26
|
retrieving: true,
|
|
25
|
-
template:
|
|
27
|
+
template: false,
|
|
26
28
|
},
|
|
27
29
|
attributeCount: {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
// auto-populated
|
|
31
|
+
isCreateable: false,
|
|
32
|
+
isUpdateable: false,
|
|
30
33
|
retrieving: true,
|
|
31
|
-
template:
|
|
34
|
+
template: false,
|
|
32
35
|
},
|
|
33
36
|
attributeGroupIconKey: {
|
|
34
|
-
isCreateable:
|
|
35
|
-
isUpdateable:
|
|
37
|
+
isCreateable: true,
|
|
38
|
+
isUpdateable: true,
|
|
36
39
|
retrieving: true,
|
|
37
|
-
template:
|
|
40
|
+
template: true,
|
|
38
41
|
},
|
|
39
42
|
attributeGroupType: {
|
|
40
|
-
isCreateable:
|
|
41
|
-
isUpdateable:
|
|
43
|
+
isCreateable: true,
|
|
44
|
+
isUpdateable: true,
|
|
42
45
|
retrieving: true,
|
|
43
|
-
template:
|
|
46
|
+
template: true,
|
|
44
47
|
},
|
|
45
48
|
attributeSetIdentifiers: {
|
|
46
|
-
isCreateable:
|
|
47
|
-
isUpdateable:
|
|
49
|
+
isCreateable: true,
|
|
50
|
+
isUpdateable: true,
|
|
48
51
|
retrieving: true,
|
|
49
|
-
template:
|
|
52
|
+
template: true,
|
|
50
53
|
},
|
|
51
54
|
'attributeSetIdentifiers[].connectingID.identifierType': {
|
|
52
55
|
isCreateable: null,
|
|
53
56
|
isUpdateable: null,
|
|
54
|
-
retrieving:
|
|
55
|
-
template:
|
|
57
|
+
retrieving: true,
|
|
58
|
+
template: false,
|
|
56
59
|
},
|
|
57
60
|
'attributeSetIdentifiers[].definitionID': {
|
|
58
61
|
isCreateable: null,
|
|
59
62
|
isUpdateable: null,
|
|
60
63
|
retrieving: true,
|
|
61
|
-
template:
|
|
64
|
+
template: false,
|
|
62
65
|
},
|
|
63
66
|
'attributeSetIdentifiers[].definitionKey': {
|
|
64
67
|
isCreateable: null,
|
|
65
68
|
isUpdateable: null,
|
|
66
69
|
retrieving: true,
|
|
67
|
-
template:
|
|
70
|
+
template: true,
|
|
68
71
|
},
|
|
69
|
-
'attributeSetIdentifiers[].definitionName.
|
|
72
|
+
'attributeSetIdentifiers[].definitionName.value': {
|
|
70
73
|
isCreateable: null,
|
|
71
74
|
isUpdateable: null,
|
|
72
75
|
retrieving: true,
|
|
73
|
-
template:
|
|
76
|
+
template: false,
|
|
74
77
|
},
|
|
75
78
|
'attributeSetIdentifiers[].namespace': {
|
|
76
79
|
isCreateable: null,
|
|
77
80
|
isUpdateable: null,
|
|
78
81
|
retrieving: false,
|
|
79
|
-
template:
|
|
82
|
+
template: false,
|
|
80
83
|
},
|
|
81
84
|
canAddProperties: {
|
|
82
|
-
isCreateable:
|
|
83
|
-
isUpdateable:
|
|
85
|
+
isCreateable: true,
|
|
86
|
+
isUpdateable: true,
|
|
84
87
|
retrieving: true,
|
|
85
|
-
template:
|
|
88
|
+
template: true,
|
|
86
89
|
},
|
|
87
90
|
canAddRelationships: {
|
|
88
|
-
isCreateable:
|
|
89
|
-
isUpdateable:
|
|
91
|
+
isCreateable: true,
|
|
92
|
+
isUpdateable: true,
|
|
90
93
|
retrieving: true,
|
|
91
|
-
template:
|
|
94
|
+
template: true,
|
|
92
95
|
},
|
|
93
96
|
canChangeProperties: {
|
|
94
|
-
isCreateable:
|
|
95
|
-
isUpdateable:
|
|
97
|
+
isCreateable: true,
|
|
98
|
+
isUpdateable: true,
|
|
96
99
|
retrieving: true,
|
|
97
|
-
template:
|
|
100
|
+
template: true,
|
|
98
101
|
},
|
|
99
102
|
canModify: {
|
|
100
|
-
isCreateable:
|
|
101
|
-
isUpdateable:
|
|
103
|
+
isCreateable: true,
|
|
104
|
+
isUpdateable: true,
|
|
102
105
|
retrieving: true,
|
|
103
|
-
template:
|
|
106
|
+
template: true,
|
|
104
107
|
},
|
|
105
108
|
canRemove: {
|
|
106
|
-
isCreateable:
|
|
107
|
-
isUpdateable:
|
|
109
|
+
isCreateable: true,
|
|
110
|
+
isUpdateable: true,
|
|
108
111
|
retrieving: true,
|
|
109
|
-
template:
|
|
112
|
+
template: true,
|
|
110
113
|
},
|
|
111
114
|
connectingID: {
|
|
112
|
-
isCreateable:
|
|
113
|
-
isUpdateable:
|
|
114
|
-
retrieving:
|
|
115
|
-
template:
|
|
115
|
+
isCreateable: true,
|
|
116
|
+
isUpdateable: true,
|
|
117
|
+
retrieving: true,
|
|
118
|
+
template: true,
|
|
116
119
|
},
|
|
117
120
|
'connectingID.identifierType': {
|
|
118
|
-
isCreateable:
|
|
119
|
-
isUpdateable:
|
|
120
|
-
retrieving:
|
|
121
|
-
template:
|
|
121
|
+
isCreateable: true,
|
|
122
|
+
isUpdateable: true,
|
|
123
|
+
retrieving: true,
|
|
124
|
+
template: true,
|
|
122
125
|
},
|
|
123
126
|
containsSchemaAttributes: {
|
|
124
|
-
isCreateable:
|
|
125
|
-
isUpdateable:
|
|
127
|
+
isCreateable: true,
|
|
128
|
+
isUpdateable: true,
|
|
126
129
|
retrieving: true,
|
|
127
|
-
template:
|
|
130
|
+
template: true,
|
|
128
131
|
},
|
|
129
132
|
definitionID: {
|
|
130
|
-
isCreateable:
|
|
131
|
-
isUpdateable:
|
|
133
|
+
isCreateable: true,
|
|
134
|
+
isUpdateable: true,
|
|
132
135
|
retrieving: true,
|
|
133
|
-
template:
|
|
136
|
+
template: false,
|
|
134
137
|
},
|
|
135
138
|
definitionKey: {
|
|
136
|
-
isCreateable:
|
|
137
|
-
isUpdateable:
|
|
139
|
+
isCreateable: true,
|
|
140
|
+
isUpdateable: true,
|
|
138
141
|
retrieving: true,
|
|
139
|
-
template:
|
|
142
|
+
template: true,
|
|
140
143
|
},
|
|
141
144
|
'definitionName.value': {
|
|
142
|
-
isCreateable:
|
|
143
|
-
isUpdateable:
|
|
145
|
+
isCreateable: true,
|
|
146
|
+
isUpdateable: true,
|
|
144
147
|
retrieving: true,
|
|
145
|
-
template:
|
|
148
|
+
template: true,
|
|
146
149
|
},
|
|
147
150
|
description: {
|
|
148
|
-
|
|
149
|
-
|
|
151
|
+
// optional field. not returned by API if empty
|
|
152
|
+
isCreateable: true,
|
|
153
|
+
isUpdateable: true,
|
|
150
154
|
retrieving: true,
|
|
151
|
-
template:
|
|
155
|
+
template: true,
|
|
152
156
|
},
|
|
153
157
|
displayOrder: {
|
|
154
|
-
|
|
155
|
-
|
|
158
|
+
// auto-set to i+1
|
|
159
|
+
isCreateable: false,
|
|
160
|
+
isUpdateable: false,
|
|
156
161
|
retrieving: true,
|
|
157
|
-
template:
|
|
162
|
+
template: false,
|
|
158
163
|
},
|
|
159
164
|
fullyQualifiedName: {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
165
|
+
// equal to defitionName.value; auto-populated by preDeployTasks
|
|
166
|
+
isCreateable: true,
|
|
167
|
+
isUpdateable: true,
|
|
168
|
+
retrieving: false,
|
|
169
|
+
template: false,
|
|
164
170
|
},
|
|
165
171
|
isHidden: {
|
|
166
|
-
isCreateable:
|
|
167
|
-
isUpdateable:
|
|
172
|
+
isCreateable: true,
|
|
173
|
+
isUpdateable: true,
|
|
168
174
|
retrieving: true,
|
|
169
|
-
template:
|
|
175
|
+
template: true,
|
|
170
176
|
},
|
|
171
177
|
isOwner: {
|
|
172
|
-
isCreateable:
|
|
173
|
-
isUpdateable:
|
|
178
|
+
isCreateable: true,
|
|
179
|
+
isUpdateable: true,
|
|
174
180
|
retrieving: true,
|
|
175
|
-
template:
|
|
181
|
+
template: true,
|
|
176
182
|
},
|
|
177
183
|
isPrimary: {
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
184
|
+
// always false, purpose unknown
|
|
185
|
+
isCreateable: false,
|
|
186
|
+
isUpdateable: false,
|
|
187
|
+
retrieving: false,
|
|
188
|
+
template: false,
|
|
182
189
|
},
|
|
183
190
|
isSystemDefined: {
|
|
184
|
-
isCreateable:
|
|
185
|
-
isUpdateable:
|
|
191
|
+
isCreateable: false,
|
|
192
|
+
isUpdateable: false,
|
|
186
193
|
retrieving: true,
|
|
187
|
-
template:
|
|
194
|
+
template: false,
|
|
188
195
|
},
|
|
189
196
|
localizedDescription: {
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
197
|
+
// always an empty object
|
|
198
|
+
isCreateable: false,
|
|
199
|
+
isUpdateable: false,
|
|
200
|
+
retrieving: false,
|
|
201
|
+
template: false,
|
|
194
202
|
},
|
|
195
203
|
'localizedDescription.resourceSetKey': {
|
|
196
204
|
isCreateable: null,
|
|
197
205
|
isUpdateable: null,
|
|
198
206
|
retrieving: true,
|
|
199
|
-
template:
|
|
207
|
+
template: true,
|
|
200
208
|
},
|
|
201
209
|
'localizedDescription.resourceValueKey': {
|
|
202
210
|
isCreateable: null,
|
|
203
211
|
isUpdateable: null,
|
|
204
212
|
retrieving: true,
|
|
205
|
-
template:
|
|
213
|
+
template: true,
|
|
206
214
|
},
|
|
207
215
|
'localizedDescription.value': {
|
|
208
216
|
isCreateable: null,
|
|
209
217
|
isUpdateable: null,
|
|
210
218
|
retrieving: true,
|
|
211
|
-
template:
|
|
219
|
+
template: true,
|
|
212
220
|
},
|
|
213
221
|
mID: {
|
|
214
|
-
|
|
215
|
-
|
|
222
|
+
// auto-populated in preDeployTask
|
|
223
|
+
isCreateable: true,
|
|
224
|
+
isUpdateable: true,
|
|
216
225
|
retrieving: true,
|
|
217
|
-
template:
|
|
226
|
+
template: true,
|
|
218
227
|
},
|
|
219
228
|
namespace: {
|
|
220
|
-
|
|
221
|
-
|
|
229
|
+
// always an empty string
|
|
230
|
+
isCreateable: false,
|
|
231
|
+
isUpdateable: false,
|
|
222
232
|
retrieving: false,
|
|
223
|
-
template:
|
|
233
|
+
template: false,
|
|
224
234
|
},
|
|
225
235
|
objectState: {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
236
|
+
// seems to always contain "Created"
|
|
237
|
+
isCreateable: false,
|
|
238
|
+
isUpdateable: false,
|
|
239
|
+
retrieving: false,
|
|
240
|
+
template: false,
|
|
230
241
|
},
|
|
231
242
|
requiredRelationships: {
|
|
232
|
-
isCreateable:
|
|
233
|
-
isUpdateable:
|
|
243
|
+
isCreateable: true,
|
|
244
|
+
isUpdateable: true,
|
|
234
245
|
retrieving: true,
|
|
235
|
-
template:
|
|
246
|
+
template: true,
|
|
236
247
|
},
|
|
237
248
|
},
|
|
238
249
|
};
|
package/lib/metadataTypes/definitions/{SetDefinition.definition.js → AttributeSet.definition.js}
RENAMED
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
bodyIteratorField: 'setDefinition',
|
|
3
|
-
dependencies: [], // future may have dependency on Data Extensions
|
|
3
|
+
dependencies: ['folder-hidden', 'folder-dataextension', 'dataExtension'], // future may have dependency on Data Extensions
|
|
4
4
|
hasExtended: false,
|
|
5
5
|
idField: 'definitionID',
|
|
6
6
|
keyIsFixed: null,
|
|
7
7
|
keyField: 'definitionKey',
|
|
8
8
|
nameField: 'name',
|
|
9
|
+
folderIdField: 'categoryID',
|
|
9
10
|
createdDateField: 'createDate',
|
|
10
11
|
createdNameField: 'createdBy',
|
|
11
12
|
lastmodDateField: null,
|
|
12
13
|
lastmodNameField: null,
|
|
13
|
-
restPagination: false,
|
|
14
|
-
type: '
|
|
14
|
+
restPagination: false, // Hub API does not support pagination and returns everything instead
|
|
15
|
+
type: 'attributeSet',
|
|
15
16
|
typeDescription: 'BETA: Data Extensions linked to Attribute Groups in Data Designer.',
|
|
16
17
|
typeRetrieveByDefault: false,
|
|
17
18
|
typeName: 'Data Designer Set Definitions',
|
|
@@ -65,10 +66,10 @@ module.exports = {
|
|
|
65
66
|
template: null,
|
|
66
67
|
},
|
|
67
68
|
'connectingID.identifierType': {
|
|
68
|
-
isCreateable:
|
|
69
|
-
isUpdateable:
|
|
70
|
-
retrieving:
|
|
71
|
-
template:
|
|
69
|
+
isCreateable: true,
|
|
70
|
+
isUpdateable: true,
|
|
71
|
+
retrieving: false,
|
|
72
|
+
template: false,
|
|
72
73
|
},
|
|
73
74
|
createDate: {
|
|
74
75
|
isCreateable: null,
|
|
@@ -130,17 +131,25 @@ module.exports = {
|
|
|
130
131
|
retrieving: true,
|
|
131
132
|
template: null,
|
|
132
133
|
},
|
|
134
|
+
definitionName: {
|
|
135
|
+
isCreateable: true,
|
|
136
|
+
isUpdateable: true,
|
|
137
|
+
retrieving: false,
|
|
138
|
+
template: false,
|
|
139
|
+
},
|
|
133
140
|
'definitionName.value': {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
141
|
+
// equal to 'name'; auto-populated by preDeployTasks
|
|
142
|
+
isCreateable: true,
|
|
143
|
+
isUpdateable: true,
|
|
144
|
+
retrieving: false,
|
|
145
|
+
template: false,
|
|
138
146
|
},
|
|
139
147
|
fullyQualifiedName: {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
148
|
+
// equal to 'name'; auto-populated by preDeployTasks
|
|
149
|
+
isCreateable: true,
|
|
150
|
+
isUpdateable: true,
|
|
151
|
+
retrieving: false,
|
|
152
|
+
template: false,
|
|
144
153
|
},
|
|
145
154
|
isCustomObjectBacked: {
|
|
146
155
|
isCreateable: null,
|
|
@@ -233,28 +242,28 @@ module.exports = {
|
|
|
233
242
|
template: null,
|
|
234
243
|
},
|
|
235
244
|
localizedDescription: {
|
|
236
|
-
isCreateable:
|
|
237
|
-
isUpdateable:
|
|
245
|
+
isCreateable: true,
|
|
246
|
+
isUpdateable: true,
|
|
238
247
|
retrieving: true,
|
|
239
|
-
template:
|
|
248
|
+
template: true,
|
|
240
249
|
},
|
|
241
250
|
'localizedDescription.resourceSetKey': {
|
|
242
|
-
isCreateable:
|
|
243
|
-
isUpdateable:
|
|
251
|
+
isCreateable: true,
|
|
252
|
+
isUpdateable: true,
|
|
244
253
|
retrieving: true,
|
|
245
|
-
template:
|
|
254
|
+
template: true,
|
|
246
255
|
},
|
|
247
256
|
'localizedDescription.resourceValueKey': {
|
|
248
|
-
isCreateable:
|
|
249
|
-
isUpdateable:
|
|
257
|
+
isCreateable: true,
|
|
258
|
+
isUpdateable: true,
|
|
250
259
|
retrieving: true,
|
|
251
|
-
template:
|
|
260
|
+
template: true,
|
|
252
261
|
},
|
|
253
262
|
'localizedDescription.value': {
|
|
254
|
-
isCreateable:
|
|
255
|
-
isUpdateable:
|
|
263
|
+
isCreateable: true,
|
|
264
|
+
isUpdateable: true,
|
|
256
265
|
retrieving: true,
|
|
257
|
-
template:
|
|
266
|
+
template: true,
|
|
258
267
|
},
|
|
259
268
|
name: {
|
|
260
269
|
isCreateable: null,
|
|
@@ -436,6 +445,18 @@ module.exports = {
|
|
|
436
445
|
retrieving: true,
|
|
437
446
|
template: null,
|
|
438
447
|
},
|
|
448
|
+
'relationships[].relationshipAttributes[].c__leftFullyQualifiedName': {
|
|
449
|
+
isCreateable: null,
|
|
450
|
+
isUpdateable: null,
|
|
451
|
+
retrieving: true,
|
|
452
|
+
template: null,
|
|
453
|
+
},
|
|
454
|
+
'relationships[].relationshipAttributes[].c__rightFullyQualifiedName': {
|
|
455
|
+
isCreateable: null,
|
|
456
|
+
isUpdateable: null,
|
|
457
|
+
retrieving: true,
|
|
458
|
+
template: null,
|
|
459
|
+
},
|
|
439
460
|
'relationships[].relationshipID': {
|
|
440
461
|
isCreateable: null,
|
|
441
462
|
isUpdateable: null,
|
|
@@ -832,5 +853,11 @@ module.exports = {
|
|
|
832
853
|
retrieving: true,
|
|
833
854
|
template: null,
|
|
834
855
|
},
|
|
856
|
+
r__folder_Path: {
|
|
857
|
+
isCreateable: null,
|
|
858
|
+
isUpdateable: null,
|
|
859
|
+
retrieving: true,
|
|
860
|
+
template: null,
|
|
861
|
+
},
|
|
835
862
|
},
|
|
836
863
|
};
|
|
@@ -42,12 +42,19 @@ module.exports = {
|
|
|
42
42
|
keyField: 'key',
|
|
43
43
|
nameField: 'name',
|
|
44
44
|
folderIdField: 'categoryId',
|
|
45
|
-
createdDateField: 'createdDate',
|
|
46
|
-
createdNameField: 'createdByName',
|
|
47
|
-
lastmodDateField: 'lastSavedDate',
|
|
48
|
-
lastmodNameField: 'lastSavedByName',
|
|
45
|
+
createdDateField: 'createdDate', // only returned by upsert
|
|
46
|
+
createdNameField: 'createdByName', // only returned by upsert
|
|
47
|
+
lastmodDateField: 'lastSavedDate', // only returned by upsert
|
|
48
|
+
lastmodNameField: 'lastSavedByName', // only returned by upsert
|
|
49
49
|
restPagination: true,
|
|
50
50
|
maxKeyLength: 200, // confirmed max length
|
|
51
|
+
scheduleTypeMapping: {
|
|
52
|
+
MINUTELY: 1,
|
|
53
|
+
HOURLY: 2,
|
|
54
|
+
DAILY: 3,
|
|
55
|
+
WEEKLY: 4,
|
|
56
|
+
MONTHLY: 5,
|
|
57
|
+
},
|
|
51
58
|
statusMapping: {
|
|
52
59
|
AwaitingTrigger: 7,
|
|
53
60
|
Building: 1,
|
|
@@ -336,31 +343,31 @@ module.exports = {
|
|
|
336
343
|
lastSavedDate: {
|
|
337
344
|
isCreateable: false,
|
|
338
345
|
isUpdateable: false,
|
|
339
|
-
retrieving:
|
|
346
|
+
retrieving: false, // only returned by upsert
|
|
340
347
|
template: false,
|
|
341
348
|
},
|
|
342
349
|
lastSavedByName: {
|
|
343
350
|
isCreateable: false,
|
|
344
351
|
isUpdateable: false,
|
|
345
|
-
retrieving:
|
|
352
|
+
retrieving: false, // only returned by upsert
|
|
346
353
|
template: false,
|
|
347
354
|
},
|
|
348
355
|
createdDate: {
|
|
349
356
|
isCreateable: false,
|
|
350
357
|
isUpdateable: false,
|
|
351
|
-
retrieving:
|
|
358
|
+
retrieving: false, // only returned by upsert
|
|
352
359
|
template: false,
|
|
353
360
|
},
|
|
354
361
|
createdByName: {
|
|
355
362
|
isCreateable: false,
|
|
356
363
|
isUpdateable: false,
|
|
357
|
-
retrieving:
|
|
364
|
+
retrieving: false, // only returned by upsertt
|
|
358
365
|
template: false,
|
|
359
366
|
},
|
|
360
367
|
updateInProgress: {
|
|
361
368
|
isCreateable: false,
|
|
362
369
|
isUpdateable: false,
|
|
363
|
-
retrieving:
|
|
370
|
+
retrieving: false,
|
|
364
371
|
template: false,
|
|
365
372
|
},
|
|
366
373
|
name: {
|
|
@@ -474,8 +481,8 @@ module.exports = {
|
|
|
474
481
|
'schedule.timezoneId': {
|
|
475
482
|
isCreateable: true,
|
|
476
483
|
isUpdateable: true,
|
|
477
|
-
retrieving:
|
|
478
|
-
template:
|
|
484
|
+
retrieving: false,
|
|
485
|
+
template: false,
|
|
479
486
|
},
|
|
480
487
|
'schedule.timezoneName': {
|
|
481
488
|
isCreateable: true,
|
|
@@ -484,10 +491,10 @@ module.exports = {
|
|
|
484
491
|
template: true,
|
|
485
492
|
},
|
|
486
493
|
'schedule.typeId': {
|
|
487
|
-
isCreateable:
|
|
488
|
-
isUpdateable:
|
|
489
|
-
retrieving:
|
|
490
|
-
template:
|
|
494
|
+
isCreateable: false,
|
|
495
|
+
isUpdateable: false,
|
|
496
|
+
retrieving: false,
|
|
497
|
+
template: false,
|
|
491
498
|
},
|
|
492
499
|
status: {
|
|
493
500
|
isCreateable: true,
|
|
@@ -222,11 +222,41 @@ module.exports = {
|
|
|
222
222
|
retrieving: true,
|
|
223
223
|
template: true,
|
|
224
224
|
},
|
|
225
|
-
c__dataAction: {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
225
|
+
c__dataAction: {
|
|
226
|
+
isCreateable: false,
|
|
227
|
+
isUpdateable: false,
|
|
228
|
+
retrieving: true,
|
|
229
|
+
template: true,
|
|
230
|
+
},
|
|
231
|
+
r__dataExtension_CustomerKey: {
|
|
232
|
+
isCreateable: false,
|
|
233
|
+
isUpdateable: false,
|
|
234
|
+
retrieving: true,
|
|
235
|
+
template: true,
|
|
236
|
+
},
|
|
237
|
+
c__destinationType: {
|
|
238
|
+
isCreateable: false,
|
|
239
|
+
isUpdateable: false,
|
|
240
|
+
retrieving: true,
|
|
241
|
+
template: true,
|
|
242
|
+
},
|
|
243
|
+
r__list_PathName: {
|
|
244
|
+
isCreateable: false,
|
|
245
|
+
isUpdateable: false,
|
|
246
|
+
retrieving: true,
|
|
247
|
+
template: true,
|
|
248
|
+
},
|
|
249
|
+
r__fileLocation_name: {
|
|
250
|
+
isCreateable: false,
|
|
251
|
+
isUpdateable: false,
|
|
252
|
+
retrieving: true,
|
|
253
|
+
template: true,
|
|
254
|
+
},
|
|
255
|
+
c__subscriberImportType: {
|
|
256
|
+
isCreateable: false,
|
|
257
|
+
isUpdateable: false,
|
|
258
|
+
retrieving: true,
|
|
259
|
+
template: true,
|
|
260
|
+
},
|
|
231
261
|
},
|
|
232
262
|
};
|
|
@@ -535,6 +535,7 @@ module.exports = {
|
|
|
535
535
|
r__folder_Path: { skipValidation: true },
|
|
536
536
|
r__assetMessage_Name_readOnly: { skipValidation: true },
|
|
537
537
|
r__assetMessage_Key: { skipValidation: true },
|
|
538
|
+
r__email_Name: { skipValidation: true },
|
|
538
539
|
r__list_PathName: { skipValidation: true },
|
|
539
540
|
},
|
|
540
541
|
};
|
package/lib/util/cache.js
CHANGED
|
@@ -72,10 +72,15 @@ module.exports = {
|
|
|
72
72
|
* @returns {void}
|
|
73
73
|
*/
|
|
74
74
|
mergeMetadata: (type, metadataMap, overrideMID) => {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
)
|
|
75
|
+
// ensure cache exists for type
|
|
76
|
+
dataStore[currentMID][type] ||= {};
|
|
77
|
+
// if overrideMID is provided, create a copy of current MID cache
|
|
78
|
+
if (overrideMID) {
|
|
79
|
+
// ! needs to be verified if this is actually needed. When discovering an issue with this method actually overriting metadataMap, this copy-logic was present and i did not want to break things
|
|
80
|
+
dataStore[overrideMID][type] = Object.assign({}, dataStore[currentMID][type]);
|
|
81
|
+
}
|
|
82
|
+
// merge metadataMap into existing cache
|
|
83
|
+
Object.assign(dataStore[overrideMID || currentMID][type] || {}, metadataMap);
|
|
79
84
|
},
|
|
80
85
|
/**
|
|
81
86
|
* standardized method for getting data from cache.
|