mcdev 4.1.11 → 4.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 +1 -1
- package/.github/ISSUE_TEMPLATE/bug.yml +2 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +2 -3
- package/.nycrc.json +5 -0
- package/README.md +34 -1528
- package/boilerplate/config.json +2 -6
- package/boilerplate/files/.vscode/extensions.json +1 -0
- package/boilerplate/files/.vscode/settings.json +13 -9
- package/boilerplate/forcedUpdates.json +4 -0
- package/docs/dist/documentation.md +434 -29
- package/lib/Deployer.js +10 -8
- package/lib/MetadataTypeDefinitions.js +3 -0
- package/lib/MetadataTypeInfo.js +3 -0
- package/lib/Retriever.js +16 -8
- package/lib/cli.js +1 -0
- package/lib/index.js +5 -5
- package/lib/metadataTypes/AccountUser.js +2 -2
- package/lib/metadataTypes/Asset.js +45 -35
- package/lib/metadataTypes/Automation.js +4 -4
- package/lib/metadataTypes/DataExtension.js +14 -8
- package/lib/metadataTypes/DataExtensionField.js +44 -9
- package/lib/metadataTypes/Discovery.js +5 -5
- package/lib/metadataTypes/Folder.js +30 -6
- package/lib/metadataTypes/List.js +115 -17
- package/lib/metadataTypes/MetadataType.js +73 -40
- package/lib/metadataTypes/Query.js +2 -2
- package/lib/metadataTypes/Script.js +2 -2
- package/lib/metadataTypes/TransactionalEmail.js +163 -0
- package/lib/metadataTypes/TransactionalMessage.js +127 -0
- package/lib/metadataTypes/TransactionalPush.js +77 -0
- package/lib/metadataTypes/TransactionalSMS.js +354 -0
- package/lib/metadataTypes/TriggeredSendDefinition.js +11 -9
- package/lib/metadataTypes/definitions/TransactionalEmail.definition.js +145 -0
- package/lib/metadataTypes/definitions/TransactionalPush.definition.js +109 -0
- package/lib/metadataTypes/definitions/TransactionalSMS.definition.js +103 -0
- package/lib/metadataTypes/definitions/TriggeredSendDefinition.definition.js +36 -36
- package/lib/util/auth.js +2 -2
- package/lib/util/businessUnit.js +1 -1
- package/lib/util/cli.js +19 -20
- package/lib/util/config.js +10 -10
- package/lib/util/devops.js +4 -4
- package/lib/util/init.config.js +7 -7
- package/lib/util/init.git.js +12 -24
- package/lib/util/init.js +65 -1
- package/lib/util/util.js +25 -14
- package/package.json +19 -12
- package/test/dataExtension.test.js +36 -19
- package/test/mockRoot/.mcdevrc.json +13 -2
- package/test/mockRoot/deploy/testInstance/testBU/dataExtension/childBU_dataextension_test.dataExtension-meta.json +27 -7
- package/test/mockRoot/deploy/testInstance/testBU/query/testExistingQuery.query-meta.json +1 -1
- package/test/mockRoot/deploy/testInstance/testBU/query/testExistingQuery.query-meta.sql +3 -1
- package/test/mockRoot/deploy/testInstance/testBU/query/{testQuery.query-meta.json → testNewQuery.query-meta.json} +3 -3
- package/test/mockRoot/deploy/testInstance/testBU/query/{testQuery.query-meta.sql → testNewQuery.query-meta.sql} +0 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testExisting_temail.transactionalEmail-meta.json +24 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalEmail/testNew_temail.transactionalEmail-meta.json +24 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalPush/testExisting_tpush.transactionalPush-meta.json +18 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalPush/testNew_tpush.transactionalPush-meta.json +18 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testExisting_tsms.transactionalSMS-meta.amp +4 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testExisting_tsms.transactionalSMS-meta.json +15 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testNew_tsms.transactionalSMS-meta.amp +4 -0
- package/test/mockRoot/deploy/testInstance/testBU/transactionalSMS/testNew_tsms.transactionalSMS-meta.json +15 -0
- package/test/query.test.js +57 -23
- package/test/resources/1111111/businessUnit/retrieve-response.xml +33 -0
- package/test/resources/1111111/list/retrieve-response.xml +39 -0
- package/test/resources/9999999/asset/v1/content/assets/query/post-response.json +72 -0
- 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 +2 -2
- package/test/resources/9999999/automation/v1/queries/post-response.json +3 -3
- package/test/resources/9999999/dataExtension/build-expected.json +2 -2
- package/test/resources/9999999/dataFolder/retrieve-response.xml +95 -2
- package/test/resources/9999999/interaction/v1/interactions/get-response.json +296 -0
- package/test/resources/9999999/legacy/v1/beta/mobile/code/get-response.json +32 -0
- package/test/resources/9999999/legacy/v1/beta/mobile/keyword/get-response.json +46 -0
- package/test/resources/9999999/list/retrieve-response.xml +78 -0
- package/test/resources/9999999/messaging/v1/email/definitions/get-response.json +15 -0
- package/test/resources/9999999/messaging/v1/email/definitions/post-response.json +19 -0
- package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/get-response.json +26 -0
- package/test/resources/9999999/messaging/v1/email/definitions/testExisting_temail/patch-response.json +26 -0
- package/test/resources/9999999/messaging/v1/push/definitions/get-response.json +15 -0
- package/test/resources/9999999/messaging/v1/push/definitions/post-response.json +13 -0
- package/test/resources/9999999/messaging/v1/push/definitions/testExisting_tpush/get-response.json +13 -0
- package/test/resources/9999999/messaging/v1/push/definitions/testExisting_tpush/patch-response.json +13 -0
- package/test/resources/9999999/messaging/v1/sms/definitions/get-response.json +15 -0
- package/test/resources/9999999/messaging/v1/sms/definitions/post-response.json +17 -0
- package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/get-response.json +18 -0
- package/test/resources/9999999/messaging/v1/sms/definitions/testExisting_tsms/patch-response.json +18 -0
- package/test/resources/9999999/query/build-expected.json +2 -2
- package/test/resources/9999999/query/build-expected.sql +6 -0
- package/test/resources/9999999/query/get-expected.json +1 -1
- package/test/resources/9999999/query/get-expected.sql +6 -0
- package/test/resources/9999999/query/patch-expected.json +1 -1
- package/test/resources/9999999/query/patch-expected.sql +6 -0
- package/test/resources/9999999/query/post-expected.json +3 -3
- package/test/resources/9999999/query/post-expected.sql +4 -0
- package/test/resources/9999999/query/template-expected.json +1 -1
- package/test/resources/9999999/query/template-expected.sql +6 -0
- package/test/resources/9999999/transactionalEmail/build-expected.json +22 -0
- package/test/resources/9999999/transactionalEmail/get-expected.json +24 -0
- package/test/resources/9999999/transactionalEmail/patch-expected.json +24 -0
- package/test/resources/9999999/transactionalEmail/post-expected.json +24 -0
- package/test/resources/9999999/transactionalEmail/template-expected.json +22 -0
- package/test/resources/9999999/transactionalPush/build-expected.json +8 -0
- package/test/resources/9999999/transactionalPush/get-expected.json +11 -0
- package/test/resources/9999999/transactionalPush/patch-expected.json +16 -0
- package/test/resources/9999999/transactionalPush/post-expected.json +16 -0
- package/test/resources/9999999/transactionalPush/template-expected.json +8 -0
- package/test/resources/9999999/transactionalSMS/build-expected.amp +4 -0
- package/test/resources/9999999/transactionalSMS/build-expected.json +13 -0
- package/test/resources/9999999/transactionalSMS/get-expected.amp +4 -0
- package/test/resources/9999999/transactionalSMS/get-expected.json +15 -0
- package/test/resources/9999999/transactionalSMS/patch-expected.amp +4 -0
- package/test/resources/9999999/transactionalSMS/patch-expected.json +15 -0
- package/test/resources/9999999/transactionalSMS/post-expected.amp +4 -0
- package/test/resources/9999999/transactionalSMS/post-expected.json +15 -0
- package/test/resources/9999999/transactionalSMS/template-expected.amp +4 -0
- package/test/resources/9999999/transactionalSMS/template-expected.json +13 -0
- package/test/transactionalEmail.test.js +120 -0
- package/test/transactionalPush.test.js +120 -0
- package/test/transactionalSMS.test.js +149 -0
- package/test/utils.js +57 -8
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
bodyIteratorField: 'definitions',
|
|
3
|
+
dependencies: ['asset-message', 'dataExtension', 'list', 'interaction'],
|
|
4
|
+
hasExtended: false,
|
|
5
|
+
idField: 'definitionId',
|
|
6
|
+
keyField: 'definitionKey',
|
|
7
|
+
nameField: 'name',
|
|
8
|
+
createdDateField: 'createdDate',
|
|
9
|
+
createdNameField: null,
|
|
10
|
+
lastmodDateField: 'modifiedDate',
|
|
11
|
+
lastmodNameField: null,
|
|
12
|
+
restPagination: false,
|
|
13
|
+
type: 'transactionalEmail',
|
|
14
|
+
typeDescription: 'Lets you send immediate Email messages via API events',
|
|
15
|
+
typeRetrieveByDefault: true,
|
|
16
|
+
typeName: 'Transactional Email',
|
|
17
|
+
fields: {
|
|
18
|
+
name: {
|
|
19
|
+
isCreateable: true,
|
|
20
|
+
isUpdateable: true,
|
|
21
|
+
retrieving: true,
|
|
22
|
+
template: true,
|
|
23
|
+
},
|
|
24
|
+
definitionKey: {
|
|
25
|
+
isCreateable: true,
|
|
26
|
+
isUpdateable: false,
|
|
27
|
+
retrieving: true,
|
|
28
|
+
template: true,
|
|
29
|
+
},
|
|
30
|
+
description: {
|
|
31
|
+
isCreateable: true,
|
|
32
|
+
isUpdateable: true,
|
|
33
|
+
retrieving: true,
|
|
34
|
+
template: true,
|
|
35
|
+
},
|
|
36
|
+
requestId: {
|
|
37
|
+
isCreateable: false,
|
|
38
|
+
isUpdateable: false,
|
|
39
|
+
retrieving: false,
|
|
40
|
+
template: false,
|
|
41
|
+
},
|
|
42
|
+
definitionId: {
|
|
43
|
+
isCreateable: true,
|
|
44
|
+
isUpdateable: true,
|
|
45
|
+
retrieving: false,
|
|
46
|
+
template: false,
|
|
47
|
+
},
|
|
48
|
+
status: {
|
|
49
|
+
isCreateable: true,
|
|
50
|
+
isUpdateable: true,
|
|
51
|
+
retrieving: true,
|
|
52
|
+
template: true,
|
|
53
|
+
},
|
|
54
|
+
createdDate: {
|
|
55
|
+
isCreateable: false,
|
|
56
|
+
isUpdateable: false,
|
|
57
|
+
retrieving: true,
|
|
58
|
+
template: false,
|
|
59
|
+
},
|
|
60
|
+
modifiedDate: {
|
|
61
|
+
isCreateable: false,
|
|
62
|
+
isUpdateable: false,
|
|
63
|
+
retrieving: true,
|
|
64
|
+
template: false,
|
|
65
|
+
},
|
|
66
|
+
classification: {
|
|
67
|
+
isCreateable: true,
|
|
68
|
+
isUpdateable: true,
|
|
69
|
+
retrieving: true,
|
|
70
|
+
template: true,
|
|
71
|
+
},
|
|
72
|
+
'content.customerKey': {
|
|
73
|
+
isCreateable: true,
|
|
74
|
+
isUpdateable: true,
|
|
75
|
+
retrieving: true,
|
|
76
|
+
template: true,
|
|
77
|
+
},
|
|
78
|
+
'subscriptions.dataExtension': {
|
|
79
|
+
isCreateable: true,
|
|
80
|
+
isUpdateable: true,
|
|
81
|
+
retrieving: true,
|
|
82
|
+
template: true,
|
|
83
|
+
},
|
|
84
|
+
'subscriptions.list': {
|
|
85
|
+
isCreateable: true,
|
|
86
|
+
isUpdateable: true,
|
|
87
|
+
retrieving: true,
|
|
88
|
+
template: true,
|
|
89
|
+
},
|
|
90
|
+
'subscriptions.r__list_PathName': {
|
|
91
|
+
isCreateable: false,
|
|
92
|
+
isUpdateable: false,
|
|
93
|
+
retrieving: true,
|
|
94
|
+
template: true,
|
|
95
|
+
},
|
|
96
|
+
'subscriptions.autoAddSubscriber': {
|
|
97
|
+
isCreateable: true,
|
|
98
|
+
isUpdateable: true,
|
|
99
|
+
retrieving: true,
|
|
100
|
+
template: true,
|
|
101
|
+
},
|
|
102
|
+
'subscriptions.updateSubscriber': {
|
|
103
|
+
isCreateable: true,
|
|
104
|
+
isUpdateable: true,
|
|
105
|
+
retrieving: true,
|
|
106
|
+
template: true,
|
|
107
|
+
},
|
|
108
|
+
'options.trackLinks': {
|
|
109
|
+
isCreateable: true,
|
|
110
|
+
isUpdateable: true,
|
|
111
|
+
retrieving: true,
|
|
112
|
+
template: true,
|
|
113
|
+
},
|
|
114
|
+
'options.cc': {
|
|
115
|
+
isCreateable: true,
|
|
116
|
+
isUpdateable: true,
|
|
117
|
+
retrieving: true,
|
|
118
|
+
template: true,
|
|
119
|
+
},
|
|
120
|
+
'options.bcc': {
|
|
121
|
+
isCreateable: true,
|
|
122
|
+
isUpdateable: true,
|
|
123
|
+
retrieving: true,
|
|
124
|
+
template: true,
|
|
125
|
+
},
|
|
126
|
+
'options.createJourney': {
|
|
127
|
+
isCreateable: true,
|
|
128
|
+
isUpdateable: true,
|
|
129
|
+
retrieving: false,
|
|
130
|
+
template: false,
|
|
131
|
+
},
|
|
132
|
+
journey: {
|
|
133
|
+
isCreateable: false,
|
|
134
|
+
isUpdateable: false,
|
|
135
|
+
retrieving: true,
|
|
136
|
+
template: true,
|
|
137
|
+
},
|
|
138
|
+
'journey.interactionKey': {
|
|
139
|
+
isCreateable: false,
|
|
140
|
+
isUpdateable: false,
|
|
141
|
+
retrieving: true,
|
|
142
|
+
template: true,
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
bodyIteratorField: 'definitions',
|
|
3
|
+
dependencies: ['asset-asset'],
|
|
4
|
+
hasExtended: false,
|
|
5
|
+
idField: 'definitionId',
|
|
6
|
+
keyField: 'definitionKey',
|
|
7
|
+
nameField: 'name',
|
|
8
|
+
createdDateField: 'createdDate',
|
|
9
|
+
createdNameField: null,
|
|
10
|
+
lastmodDateField: 'modifiedDate',
|
|
11
|
+
lastmodNameField: null,
|
|
12
|
+
restPagination: false,
|
|
13
|
+
type: 'transactionalPush',
|
|
14
|
+
typeDescription: 'Lets you send immediate Push messages via API events',
|
|
15
|
+
typeRetrieveByDefault: true,
|
|
16
|
+
typeName: 'Transactional Push',
|
|
17
|
+
fields: {
|
|
18
|
+
name: {
|
|
19
|
+
isCreateable: true,
|
|
20
|
+
isUpdateable: true,
|
|
21
|
+
retrieving: true,
|
|
22
|
+
template: true,
|
|
23
|
+
},
|
|
24
|
+
definitionKey: {
|
|
25
|
+
isCreateable: true,
|
|
26
|
+
isUpdateable: false,
|
|
27
|
+
retrieving: true,
|
|
28
|
+
template: true,
|
|
29
|
+
},
|
|
30
|
+
description: {
|
|
31
|
+
isCreateable: true,
|
|
32
|
+
isUpdateable: true,
|
|
33
|
+
retrieving: true,
|
|
34
|
+
template: true,
|
|
35
|
+
},
|
|
36
|
+
requestId: {
|
|
37
|
+
isCreateable: false,
|
|
38
|
+
isUpdateable: false,
|
|
39
|
+
retrieving: false,
|
|
40
|
+
template: false,
|
|
41
|
+
},
|
|
42
|
+
definitionId: {
|
|
43
|
+
isCreateable: true,
|
|
44
|
+
isUpdateable: true,
|
|
45
|
+
retrieving: false,
|
|
46
|
+
template: false,
|
|
47
|
+
},
|
|
48
|
+
status: {
|
|
49
|
+
isCreateable: true,
|
|
50
|
+
isUpdateable: true,
|
|
51
|
+
retrieving: true,
|
|
52
|
+
template: false,
|
|
53
|
+
},
|
|
54
|
+
createdDate: {
|
|
55
|
+
isCreateable: false,
|
|
56
|
+
isUpdateable: false,
|
|
57
|
+
retrieving: true,
|
|
58
|
+
template: false,
|
|
59
|
+
},
|
|
60
|
+
modifiedDate: {
|
|
61
|
+
isCreateable: false,
|
|
62
|
+
isUpdateable: false,
|
|
63
|
+
retrieving: true,
|
|
64
|
+
template: false,
|
|
65
|
+
},
|
|
66
|
+
'content.customerKey': {
|
|
67
|
+
isCreateable: true,
|
|
68
|
+
isUpdateable: true,
|
|
69
|
+
retrieving: true,
|
|
70
|
+
template: true,
|
|
71
|
+
},
|
|
72
|
+
'options.badge': {
|
|
73
|
+
isCreateable: true,
|
|
74
|
+
isUpdateable: true,
|
|
75
|
+
retrieving: true,
|
|
76
|
+
template: true,
|
|
77
|
+
},
|
|
78
|
+
'options.sound': {
|
|
79
|
+
isCreateable: true,
|
|
80
|
+
isUpdateable: true,
|
|
81
|
+
retrieving: true,
|
|
82
|
+
template: true,
|
|
83
|
+
},
|
|
84
|
+
'options.customKeys': {
|
|
85
|
+
isCreateable: true,
|
|
86
|
+
isUpdateable: true,
|
|
87
|
+
retrieving: true,
|
|
88
|
+
template: true,
|
|
89
|
+
},
|
|
90
|
+
'options.customKeys[].value': {
|
|
91
|
+
isCreateable: true,
|
|
92
|
+
isUpdateable: true,
|
|
93
|
+
retrieving: true,
|
|
94
|
+
template: true,
|
|
95
|
+
},
|
|
96
|
+
'options.customKeys[].key': {
|
|
97
|
+
isCreateable: true,
|
|
98
|
+
isUpdateable: true,
|
|
99
|
+
retrieving: true,
|
|
100
|
+
template: true,
|
|
101
|
+
},
|
|
102
|
+
applicationId: {
|
|
103
|
+
isCreateable: true,
|
|
104
|
+
isUpdateable: true,
|
|
105
|
+
retrieving: true,
|
|
106
|
+
template: true,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
bodyIteratorField: 'definitions',
|
|
3
|
+
dependencies: ['mobileCode', 'mobileKeyword'],
|
|
4
|
+
hasExtended: false,
|
|
5
|
+
idField: 'definitionId',
|
|
6
|
+
keyField: 'definitionKey',
|
|
7
|
+
nameField: 'name',
|
|
8
|
+
createdDateField: 'createdDate',
|
|
9
|
+
createdNameField: null,
|
|
10
|
+
lastmodDateField: 'modifiedDate',
|
|
11
|
+
lastmodNameField: null,
|
|
12
|
+
restPagination: false,
|
|
13
|
+
type: 'transactionalSMS',
|
|
14
|
+
typeDescription: 'Lets you send immediate SMS messages via API events',
|
|
15
|
+
typeRetrieveByDefault: true,
|
|
16
|
+
typeName: 'Transactional SMS',
|
|
17
|
+
fields: {
|
|
18
|
+
name: {
|
|
19
|
+
isCreateable: true,
|
|
20
|
+
isUpdateable: true,
|
|
21
|
+
retrieving: true,
|
|
22
|
+
template: true,
|
|
23
|
+
},
|
|
24
|
+
definitionKey: {
|
|
25
|
+
isCreateable: true,
|
|
26
|
+
isUpdateable: false,
|
|
27
|
+
retrieving: true,
|
|
28
|
+
template: true,
|
|
29
|
+
},
|
|
30
|
+
description: {
|
|
31
|
+
isCreateable: true,
|
|
32
|
+
isUpdateable: true,
|
|
33
|
+
retrieving: true,
|
|
34
|
+
template: true,
|
|
35
|
+
},
|
|
36
|
+
requestId: {
|
|
37
|
+
isCreateable: false,
|
|
38
|
+
isUpdateable: false,
|
|
39
|
+
retrieving: false,
|
|
40
|
+
template: false,
|
|
41
|
+
},
|
|
42
|
+
definitionId: {
|
|
43
|
+
isCreateable: true,
|
|
44
|
+
isUpdateable: true,
|
|
45
|
+
retrieving: false,
|
|
46
|
+
template: false,
|
|
47
|
+
},
|
|
48
|
+
status: {
|
|
49
|
+
isCreateable: true,
|
|
50
|
+
isUpdateable: true,
|
|
51
|
+
retrieving: true,
|
|
52
|
+
template: true,
|
|
53
|
+
},
|
|
54
|
+
createdDate: {
|
|
55
|
+
isCreateable: false,
|
|
56
|
+
isUpdateable: false,
|
|
57
|
+
retrieving: true,
|
|
58
|
+
template: false,
|
|
59
|
+
},
|
|
60
|
+
modifiedDate: {
|
|
61
|
+
isCreateable: false,
|
|
62
|
+
isUpdateable: false,
|
|
63
|
+
retrieving: true,
|
|
64
|
+
template: false,
|
|
65
|
+
},
|
|
66
|
+
'content.message': {
|
|
67
|
+
isCreateable: true,
|
|
68
|
+
isUpdateable: true,
|
|
69
|
+
retrieving: true,
|
|
70
|
+
template: true,
|
|
71
|
+
},
|
|
72
|
+
'subscriptions.shortCode': {
|
|
73
|
+
isCreateable: true,
|
|
74
|
+
isUpdateable: true,
|
|
75
|
+
retrieving: true,
|
|
76
|
+
template: true,
|
|
77
|
+
},
|
|
78
|
+
'subscriptions.countryCode': {
|
|
79
|
+
isCreateable: true,
|
|
80
|
+
isUpdateable: true,
|
|
81
|
+
retrieving: true,
|
|
82
|
+
template: true,
|
|
83
|
+
},
|
|
84
|
+
'subscriptions.autoAddSubscriber': {
|
|
85
|
+
isCreateable: true,
|
|
86
|
+
isUpdateable: true,
|
|
87
|
+
retrieving: true,
|
|
88
|
+
template: true,
|
|
89
|
+
},
|
|
90
|
+
'subscriptions.updateSubscriber': {
|
|
91
|
+
isCreateable: true,
|
|
92
|
+
isUpdateable: true,
|
|
93
|
+
retrieving: true,
|
|
94
|
+
template: true,
|
|
95
|
+
},
|
|
96
|
+
'subscriptions.keyword': {
|
|
97
|
+
isCreateable: true,
|
|
98
|
+
isUpdateable: true,
|
|
99
|
+
retrieving: true,
|
|
100
|
+
template: true,
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
};
|
|
@@ -22,41 +22,41 @@ module.exports = {
|
|
|
22
22
|
isCreateable: true,
|
|
23
23
|
isUpdateable: true,
|
|
24
24
|
retrieving: true,
|
|
25
|
-
templating:
|
|
25
|
+
templating: true,
|
|
26
26
|
},
|
|
27
27
|
AutoAddSubscribers: {
|
|
28
28
|
isCreateable: true,
|
|
29
29
|
isUpdateable: true,
|
|
30
30
|
retrieving: true,
|
|
31
|
-
templating:
|
|
31
|
+
templating: true,
|
|
32
32
|
},
|
|
33
33
|
AutoUpdateSubscribers: {
|
|
34
34
|
isCreateable: true,
|
|
35
35
|
isUpdateable: true,
|
|
36
36
|
retrieving: true,
|
|
37
|
-
templating:
|
|
37
|
+
templating: true,
|
|
38
38
|
},
|
|
39
39
|
BatchInterval: {
|
|
40
40
|
isCreateable: true,
|
|
41
41
|
isUpdateable: true,
|
|
42
42
|
retrieving: true,
|
|
43
|
-
templating:
|
|
43
|
+
templating: true,
|
|
44
44
|
},
|
|
45
45
|
BccEmail: {
|
|
46
46
|
isCreateable: true,
|
|
47
47
|
isUpdateable: true,
|
|
48
48
|
retrieving: true,
|
|
49
|
-
templating:
|
|
49
|
+
templating: true,
|
|
50
50
|
},
|
|
51
51
|
CategoryID: {
|
|
52
52
|
isCreateable: true,
|
|
53
53
|
isUpdateable: true,
|
|
54
54
|
retrieving: true,
|
|
55
|
-
templating:
|
|
55
|
+
templating: true,
|
|
56
56
|
},
|
|
57
57
|
CCEmail: {
|
|
58
|
-
isCreateable:
|
|
59
|
-
isUpdateable:
|
|
58
|
+
isCreateable: false,
|
|
59
|
+
isUpdateable: false,
|
|
60
60
|
retrieving: false,
|
|
61
61
|
templating: false,
|
|
62
62
|
},
|
|
@@ -88,7 +88,7 @@ module.exports = {
|
|
|
88
88
|
isCreateable: true,
|
|
89
89
|
isUpdateable: true,
|
|
90
90
|
retrieving: true,
|
|
91
|
-
templating:
|
|
91
|
+
templating: true,
|
|
92
92
|
},
|
|
93
93
|
DataSchemas: {
|
|
94
94
|
isCreateable: false,
|
|
@@ -100,7 +100,7 @@ module.exports = {
|
|
|
100
100
|
isCreateable: true,
|
|
101
101
|
isUpdateable: true,
|
|
102
102
|
retrieving: true,
|
|
103
|
-
templating:
|
|
103
|
+
templating: true,
|
|
104
104
|
},
|
|
105
105
|
'DeliveryProfile.ObjectID': {
|
|
106
106
|
isCreateable: true,
|
|
@@ -112,7 +112,7 @@ module.exports = {
|
|
|
112
112
|
isCreateable: true,
|
|
113
113
|
isUpdateable: true,
|
|
114
114
|
retrieving: true,
|
|
115
|
-
templating:
|
|
115
|
+
templating: true,
|
|
116
116
|
},
|
|
117
117
|
DisableOnEmailBuildError: {
|
|
118
118
|
isCreateable: false,
|
|
@@ -130,13 +130,13 @@ module.exports = {
|
|
|
130
130
|
isCreateable: true,
|
|
131
131
|
isUpdateable: true,
|
|
132
132
|
retrieving: true,
|
|
133
|
-
templating:
|
|
133
|
+
templating: true,
|
|
134
134
|
},
|
|
135
135
|
'Email.ID': {
|
|
136
136
|
isCreateable: true,
|
|
137
137
|
isUpdateable: true,
|
|
138
138
|
retrieving: true,
|
|
139
|
-
templating:
|
|
139
|
+
templating: true,
|
|
140
140
|
},
|
|
141
141
|
'Email.PartnerKey': {
|
|
142
142
|
isCreateable: false,
|
|
@@ -154,7 +154,7 @@ module.exports = {
|
|
|
154
154
|
isCreateable: true,
|
|
155
155
|
isUpdateable: true,
|
|
156
156
|
retrieving: true,
|
|
157
|
-
templating:
|
|
157
|
+
templating: true,
|
|
158
158
|
},
|
|
159
159
|
ExclusionFilter: {
|
|
160
160
|
isCreateable: false,
|
|
@@ -172,7 +172,7 @@ module.exports = {
|
|
|
172
172
|
isCreateable: true,
|
|
173
173
|
isUpdateable: true,
|
|
174
174
|
retrieving: true,
|
|
175
|
-
templating:
|
|
175
|
+
templating: true,
|
|
176
176
|
},
|
|
177
177
|
FooterSalutationSource: {
|
|
178
178
|
isCreateable: false,
|
|
@@ -184,19 +184,19 @@ module.exports = {
|
|
|
184
184
|
isCreateable: true,
|
|
185
185
|
isUpdateable: true,
|
|
186
186
|
retrieving: true,
|
|
187
|
-
templating:
|
|
187
|
+
templating: true,
|
|
188
188
|
},
|
|
189
189
|
FromName: {
|
|
190
190
|
isCreateable: true,
|
|
191
191
|
isUpdateable: true,
|
|
192
192
|
retrieving: true,
|
|
193
|
-
templating:
|
|
193
|
+
templating: true,
|
|
194
194
|
},
|
|
195
195
|
'HeaderContentArea.ID': {
|
|
196
196
|
isCreateable: true,
|
|
197
197
|
isUpdateable: true,
|
|
198
198
|
retrieving: true,
|
|
199
|
-
templating:
|
|
199
|
+
templating: true,
|
|
200
200
|
},
|
|
201
201
|
HeaderSalutationSource: {
|
|
202
202
|
isCreateable: false,
|
|
@@ -226,7 +226,7 @@ module.exports = {
|
|
|
226
226
|
isCreateable: true,
|
|
227
227
|
isUpdateable: true,
|
|
228
228
|
retrieving: true,
|
|
229
|
-
templating:
|
|
229
|
+
templating: true,
|
|
230
230
|
},
|
|
231
231
|
IsPlatformObject: {
|
|
232
232
|
isCreateable: true,
|
|
@@ -244,7 +244,7 @@ module.exports = {
|
|
|
244
244
|
isCreateable: true,
|
|
245
245
|
isUpdateable: true,
|
|
246
246
|
retrieving: true,
|
|
247
|
-
templating:
|
|
247
|
+
templating: true,
|
|
248
248
|
},
|
|
249
249
|
KeepExistingEmailSubject: {
|
|
250
250
|
isCreateable: false,
|
|
@@ -256,13 +256,13 @@ module.exports = {
|
|
|
256
256
|
isCreateable: true,
|
|
257
257
|
isUpdateable: true,
|
|
258
258
|
retrieving: true,
|
|
259
|
-
templating:
|
|
259
|
+
templating: true,
|
|
260
260
|
},
|
|
261
261
|
'List.ID': {
|
|
262
262
|
isCreateable: true,
|
|
263
263
|
isUpdateable: true,
|
|
264
264
|
retrieving: true,
|
|
265
|
-
templating:
|
|
265
|
+
templating: true,
|
|
266
266
|
},
|
|
267
267
|
'List.PartnerKey': {
|
|
268
268
|
isCreateable: false,
|
|
@@ -286,13 +286,13 @@ module.exports = {
|
|
|
286
286
|
isCreateable: true,
|
|
287
287
|
isUpdateable: true,
|
|
288
288
|
retrieving: true,
|
|
289
|
-
templating:
|
|
289
|
+
templating: true,
|
|
290
290
|
},
|
|
291
291
|
NewSlotTrigger: {
|
|
292
292
|
isCreateable: true,
|
|
293
293
|
isUpdateable: true,
|
|
294
294
|
retrieving: true,
|
|
295
|
-
templating:
|
|
295
|
+
templating: true,
|
|
296
296
|
},
|
|
297
297
|
ObjectID: {
|
|
298
298
|
isCreateable: false,
|
|
@@ -352,13 +352,13 @@ module.exports = {
|
|
|
352
352
|
isCreateable: true,
|
|
353
353
|
isUpdateable: true,
|
|
354
354
|
retrieving: true,
|
|
355
|
-
templating:
|
|
355
|
+
templating: true,
|
|
356
356
|
},
|
|
357
357
|
'PrivateDomain.ObjectID': {
|
|
358
358
|
isCreateable: true,
|
|
359
359
|
isUpdateable: true,
|
|
360
360
|
retrieving: true,
|
|
361
|
-
templating:
|
|
361
|
+
templating: true,
|
|
362
362
|
},
|
|
363
363
|
'PrivateDomain.PartnerKey': {
|
|
364
364
|
isCreateable: false,
|
|
@@ -370,7 +370,7 @@ module.exports = {
|
|
|
370
370
|
isCreateable: true,
|
|
371
371
|
isUpdateable: true,
|
|
372
372
|
retrieving: true,
|
|
373
|
-
templating:
|
|
373
|
+
templating: true,
|
|
374
374
|
},
|
|
375
375
|
'PrivateIP.PartnerKey': {
|
|
376
376
|
isCreateable: false,
|
|
@@ -406,7 +406,7 @@ module.exports = {
|
|
|
406
406
|
isCreateable: true,
|
|
407
407
|
isUpdateable: true,
|
|
408
408
|
retrieving: true,
|
|
409
|
-
templating:
|
|
409
|
+
templating: true,
|
|
410
410
|
},
|
|
411
411
|
'SendClassification.ObjectID': {
|
|
412
412
|
isCreateable: false,
|
|
@@ -424,7 +424,7 @@ module.exports = {
|
|
|
424
424
|
isCreateable: true,
|
|
425
425
|
isUpdateable: true,
|
|
426
426
|
retrieving: true,
|
|
427
|
-
templating:
|
|
427
|
+
templating: true,
|
|
428
428
|
},
|
|
429
429
|
'SenderProfile.ObjectID': {
|
|
430
430
|
isCreateable: false,
|
|
@@ -442,7 +442,7 @@ module.exports = {
|
|
|
442
442
|
isCreateable: true,
|
|
443
443
|
isUpdateable: true,
|
|
444
444
|
retrieving: true,
|
|
445
|
-
templating:
|
|
445
|
+
templating: true,
|
|
446
446
|
},
|
|
447
447
|
SendSourceCustomerKey: {
|
|
448
448
|
isCreateable: false,
|
|
@@ -460,7 +460,7 @@ module.exports = {
|
|
|
460
460
|
isCreateable: true,
|
|
461
461
|
isUpdateable: true,
|
|
462
462
|
retrieving: true,
|
|
463
|
-
templating:
|
|
463
|
+
templating: true,
|
|
464
464
|
},
|
|
465
465
|
SendWindowDelete: {
|
|
466
466
|
isCreateable: false,
|
|
@@ -472,7 +472,7 @@ module.exports = {
|
|
|
472
472
|
isCreateable: true,
|
|
473
473
|
isUpdateable: true,
|
|
474
474
|
retrieving: true,
|
|
475
|
-
templating:
|
|
475
|
+
templating: true,
|
|
476
476
|
},
|
|
477
477
|
SourceAddressType: {
|
|
478
478
|
isCreateable: false,
|
|
@@ -484,13 +484,13 @@ module.exports = {
|
|
|
484
484
|
isCreateable: true,
|
|
485
485
|
isUpdateable: true,
|
|
486
486
|
retrieving: true,
|
|
487
|
-
templating:
|
|
487
|
+
templating: true,
|
|
488
488
|
},
|
|
489
489
|
TestEmailAddr: {
|
|
490
490
|
isCreateable: true,
|
|
491
491
|
isUpdateable: true,
|
|
492
492
|
retrieving: true,
|
|
493
|
-
templating:
|
|
493
|
+
templating: true,
|
|
494
494
|
},
|
|
495
495
|
TriggeredSendClass: {
|
|
496
496
|
isCreateable: false,
|
|
@@ -502,7 +502,7 @@ module.exports = {
|
|
|
502
502
|
isCreateable: true,
|
|
503
503
|
isUpdateable: true,
|
|
504
504
|
retrieving: true,
|
|
505
|
-
templating:
|
|
505
|
+
templating: true,
|
|
506
506
|
},
|
|
507
507
|
TriggeredSendSubClass: {
|
|
508
508
|
isCreateable: false,
|
|
@@ -514,7 +514,7 @@ module.exports = {
|
|
|
514
514
|
isCreateable: true,
|
|
515
515
|
isUpdateable: true,
|
|
516
516
|
retrieving: true,
|
|
517
|
-
templating:
|
|
517
|
+
templating: true,
|
|
518
518
|
},
|
|
519
519
|
TriggeredSendVersionID: {
|
|
520
520
|
isCreateable: false,
|
package/lib/util/auth.js
CHANGED
|
@@ -93,7 +93,7 @@ function setupSDK(sessionKey, authObject) {
|
|
|
93
93
|
eventHandlers: {
|
|
94
94
|
onLoop: (type, req) => {
|
|
95
95
|
Util.logger.info(
|
|
96
|
-
|
|
96
|
+
` - Requesting next batch (currently ${req.Results.length} records)`
|
|
97
97
|
);
|
|
98
98
|
},
|
|
99
99
|
onRefresh: (authObject) => {
|
|
@@ -102,7 +102,7 @@ function setupSDK(sessionKey, authObject) {
|
|
|
102
102
|
},
|
|
103
103
|
onConnectionError: (ex, remainingAttempts) => {
|
|
104
104
|
Util.logger.warn(
|
|
105
|
-
|
|
105
|
+
` - Connection problem (Code: ${ex.code}). Retrying ${remainingAttempts} time${
|
|
106
106
|
remainingAttempts > 1 ? 's' : ''
|
|
107
107
|
}`
|
|
108
108
|
);
|
package/lib/util/businessUnit.js
CHANGED