mcdev 5.3.0 → 6.0.1
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/workflows/code-test.yml +2 -2
- package/.github/workflows/coverage-base-update.yml +3 -3
- package/.github/workflows/coverage-develop-branch.yml +3 -3
- package/.github/workflows/coverage-main-branch.yml +3 -3
- package/.github/workflows/coverage.yml +4 -4
- package/.github/workflows/npm-publish.yml +4 -4
- package/.prettierrc +7 -0
- package/docs/dist/documentation.md +9 -494
- package/jsconfig.json +5 -1
- package/lib/Builder.js +8 -8
- package/lib/Deployer.js +10 -10
- package/lib/MetadataTypeDefinitions.js +73 -39
- package/lib/MetadataTypeInfo.js +72 -38
- package/lib/Retriever.js +8 -8
- package/lib/cli.js +15 -15
- package/lib/index.js +24 -17
- package/lib/metadataTypes/Asset.js +12 -10
- package/lib/metadataTypes/AttributeGroup.js +7 -6
- package/lib/metadataTypes/AttributeSet.js +8 -7
- package/lib/metadataTypes/Automation.js +16 -16
- package/lib/metadataTypes/Campaign.js +7 -6
- package/lib/metadataTypes/ContentArea.js +7 -6
- package/lib/metadataTypes/DataExtension.js +16 -16
- package/lib/metadataTypes/DataExtensionField.js +6 -5
- package/lib/metadataTypes/DataExtensionTemplate.js +5 -4
- package/lib/metadataTypes/DataExtract.js +8 -7
- package/lib/metadataTypes/DataExtractType.js +5 -4
- package/lib/metadataTypes/Discovery.js +6 -5
- package/lib/metadataTypes/Email.js +6 -5
- package/lib/metadataTypes/EmailSend.js +7 -6
- package/lib/metadataTypes/Event.js +8 -7
- package/lib/metadataTypes/FileLocation.js +5 -4
- package/lib/metadataTypes/FileTransfer.js +8 -7
- package/lib/metadataTypes/Filter.js +5 -4
- package/lib/metadataTypes/Folder.js +9 -8
- package/lib/metadataTypes/ImportFile.js +8 -7
- package/lib/metadataTypes/Journey.js +9 -8
- package/lib/metadataTypes/List.js +9 -8
- package/lib/metadataTypes/MetadataType.js +37 -29
- package/lib/metadataTypes/MobileCode.js +5 -4
- package/lib/metadataTypes/MobileKeyword.js +8 -7
- package/lib/metadataTypes/MobileMessage.js +8 -7
- package/lib/metadataTypes/Query.js +9 -8
- package/lib/metadataTypes/Role.js +8 -7
- package/lib/metadataTypes/Script.js +7 -6
- package/lib/metadataTypes/SendClassification.js +5 -4
- package/lib/metadataTypes/TransactionalEmail.js +8 -7
- package/lib/metadataTypes/TransactionalMessage.js +6 -5
- package/lib/metadataTypes/TransactionalPush.js +7 -6
- package/lib/metadataTypes/TransactionalSMS.js +9 -8
- package/lib/metadataTypes/TriggeredSend.js +15 -12
- package/lib/metadataTypes/User.js +8 -7
- package/lib/metadataTypes/Verification.js +8 -8
- package/lib/metadataTypes/definitions/Asset.definition.js +1 -1
- package/lib/metadataTypes/definitions/AttributeGroup.definition.js +1 -1
- package/lib/metadataTypes/definitions/AttributeSet.definition.js +1 -1
- package/lib/metadataTypes/definitions/Automation.definition.js +1 -1
- package/lib/metadataTypes/definitions/Campaign.definition.js +1 -1
- package/lib/metadataTypes/definitions/ContentArea.definition.js +1 -1
- package/lib/metadataTypes/definitions/DataExtension.definition.js +1 -1
- package/lib/metadataTypes/definitions/DataExtensionField.definition.js +1 -1
- package/lib/metadataTypes/definitions/DataExtensionTemplate.definition.js +1 -1
- package/lib/metadataTypes/definitions/DataExtract.definition.js +1 -1
- package/lib/metadataTypes/definitions/DataExtractType.definition.js +1 -1
- package/lib/metadataTypes/definitions/Discovery.definition.js +1 -1
- package/lib/metadataTypes/definitions/Email.definition.js +1 -1
- package/lib/metadataTypes/definitions/EmailSend.definition.js +1 -1
- package/lib/metadataTypes/definitions/Event.definition.js +1 -1
- package/lib/metadataTypes/definitions/FileLocation.definition.js +1 -1
- package/lib/metadataTypes/definitions/FileTransfer.definition.js +1 -1
- package/lib/metadataTypes/definitions/Filter.definition.js +1 -1
- package/lib/metadataTypes/definitions/Folder.definition.js +1 -1
- package/lib/metadataTypes/definitions/ImportFile.definition.js +1 -1
- package/lib/metadataTypes/definitions/Journey.definition.js +1 -1
- package/lib/metadataTypes/definitions/List.definition.js +1 -1
- package/lib/metadataTypes/definitions/MobileCode.definition.js +1 -1
- package/lib/metadataTypes/definitions/MobileKeyword.definition.js +1 -1
- package/lib/metadataTypes/definitions/MobileMessage.definition.js +1 -1
- package/lib/metadataTypes/definitions/Query.definition.js +1 -1
- package/lib/metadataTypes/definitions/Role.definition.js +1 -1
- package/lib/metadataTypes/definitions/Script.definition.js +1 -1
- package/lib/metadataTypes/definitions/SendClassification.definition.js +1 -1
- package/lib/metadataTypes/definitions/TransactionalEmail.definition.js +1 -1
- package/lib/metadataTypes/definitions/TransactionalPush.definition.js +1 -1
- package/lib/metadataTypes/definitions/TransactionalSMS.definition.js +1 -1
- package/lib/metadataTypes/definitions/TriggeredSend.definition.js +1 -1
- package/lib/metadataTypes/definitions/User.definition.js +1 -1
- package/lib/metadataTypes/definitions/Verification.definition.js +1 -1
- package/lib/retrieveChangelog.js +4 -3
- package/lib/util/auth.js +11 -8
- package/lib/util/businessUnit.js +5 -5
- package/lib/util/cache.js +3 -3
- package/lib/util/cli.js +15 -13
- package/lib/util/config.js +10 -7
- package/lib/util/devops.js +12 -11
- package/lib/util/file.js +15 -14
- package/lib/util/init.config.js +11 -9
- package/lib/util/init.git.js +8 -7
- package/lib/util/init.js +12 -12
- package/lib/util/init.npm.js +11 -9
- package/lib/util/util.js +16 -14
- package/package.json +35 -30
- package/test/general.test.js +4 -6
- package/test/mockRoot/.mcdevrc.json +1 -1
- package/test/resourceFactory.js +55 -27
- package/test/resources/9999999/asset/block-1157-retrieve-expected.html +13 -0
- package/test/resources/9999999/asset/block-1157-retrieve-expected.json +41 -0
- package/test/resources/9999999/asset/v1/content/assets/1209971/get-response.json +61 -0
- package/test/resources/9999999/asset/v1/content/assets/1295064/get-response.json +60 -0
- package/test/resources/9999999/asset/v1/content/assets/808714/get-response.json +184 -0
- package/test/resources/9999999/asset/v1/content/assets/query/post-response.json +40 -2
- package/test/resources/9999999/dataFolder/retrieve-ContentType=asset-sharedORContentType=asset-response.xml +70 -0
- package/test/type.asset.test.js +84 -0
- package/test/type.attributeGroup.test.js +5 -8
- package/test/type.attributeSet.test.js +5 -8
- package/test/type.automation.test.js +5 -10
- package/test/type.dataExtension.test.js +5 -9
- package/test/type.dataExtract.test.js +5 -6
- package/test/type.fileTransfer.test.js +5 -6
- package/test/type.importFile.test.js +5 -6
- package/test/type.journey.test.js +5 -6
- package/test/type.mobileKeyword.test.js +5 -7
- package/test/type.mobileMessage.test.js +5 -7
- package/test/type.query.test.js +5 -8
- package/test/type.script.test.js +5 -8
- package/test/type.transactionalEmail.test.js +5 -6
- package/test/type.transactionalPush.test.js +5 -6
- package/test/type.transactionalSMS.test.js +5 -7
- package/test/type.triggeredSend.test.js +5 -6
- package/test/type.user.test.js +6 -8
- package/test/type.verification.test.js +5 -6
- package/test/utils.js +61 -47
- package/types/mcdev.d.js +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
4
|
+
import MetadataType from './MetadataType.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* SendClassification MetadataType
|
|
@@ -35,6 +35,7 @@ class SendClassification extends MetadataType {
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
// Assign definition to static attributes
|
|
38
|
-
|
|
38
|
+
import MetadataTypeDefinitions from '../MetadataTypeDefinitions.js';
|
|
39
|
+
SendClassification.definition = MetadataTypeDefinitions.sendClassification;
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
export default SendClassification;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
4
|
+
import TransactionalMessage from './TransactionalMessage.js';
|
|
5
|
+
import Journey from './Journey.js';
|
|
6
|
+
import { Util } from '../util/util.js';
|
|
7
|
+
import cache from '../util/cache.js';
|
|
7
8
|
|
|
8
9
|
/**
|
|
9
10
|
* TransactionalEmail MetadataType
|
|
@@ -220,7 +221,6 @@ class TransactionalEmail extends TransactionalMessage {
|
|
|
220
221
|
false
|
|
221
222
|
);
|
|
222
223
|
if (isDeleted && journeyKey) {
|
|
223
|
-
const Journey = require('./Journey');
|
|
224
224
|
Util.logger.info(
|
|
225
225
|
` - deleted ${Journey.definition.type}: ${journeyKey} (SFMC auto-deletes the related journey of ${this.definition.type} ${key})`
|
|
226
226
|
);
|
|
@@ -234,6 +234,7 @@ class TransactionalEmail extends TransactionalMessage {
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
236
|
// Assign definition to static attributes
|
|
237
|
-
|
|
237
|
+
import MetadataTypeDefinitions from '../MetadataTypeDefinitions.js';
|
|
238
|
+
TransactionalEmail.definition = MetadataTypeDefinitions.transactionalEmail;
|
|
238
239
|
|
|
239
|
-
|
|
240
|
+
export default TransactionalEmail;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
4
|
+
import MetadataType from './MetadataType.js';
|
|
5
|
+
import { Util } from '../util/util.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* TransactionalMessage MetadataType
|
|
@@ -115,6 +115,7 @@ class TransactionalMessage extends MetadataType {
|
|
|
115
115
|
|
|
116
116
|
// Assign definition to static attributes
|
|
117
117
|
// ! using SMS definitions here as placeholder to have auto completion
|
|
118
|
-
|
|
118
|
+
import MetadataTypeDefinitions from '../MetadataTypeDefinitions.js';
|
|
119
|
+
TransactionalMessage.definition = MetadataTypeDefinitions.transactionalSMS;
|
|
119
120
|
|
|
120
|
-
|
|
121
|
+
export default TransactionalMessage;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
4
|
+
import TransactionalMessage from './TransactionalMessage.js';
|
|
5
|
+
import { Util } from '../util/util.js';
|
|
6
|
+
import cache from '../util/cache.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* TransactionalPush TransactionalMessage
|
|
@@ -72,6 +72,7 @@ class TransactionalPush extends TransactionalMessage {
|
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
// Assign definition to static attributes
|
|
75
|
-
|
|
75
|
+
import MetadataTypeDefinitions from '../MetadataTypeDefinitions.js';
|
|
76
|
+
TransactionalPush.definition = MetadataTypeDefinitions.transactionalPush;
|
|
76
77
|
|
|
77
|
-
|
|
78
|
+
export default TransactionalPush;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
4
|
+
import TransactionalMessage from './TransactionalMessage.js';
|
|
5
|
+
import { Util } from '../util/util.js';
|
|
6
|
+
import File from '../util/file.js';
|
|
7
|
+
import beautifier from 'beauty-amp-core';
|
|
8
|
+
import cache from '../util/cache.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* TransactionalSMS MetadataType
|
|
@@ -341,6 +341,7 @@ class TransactionalSMS extends TransactionalMessage {
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
// Assign definition to static attributes
|
|
344
|
-
|
|
344
|
+
import MetadataTypeDefinitions from '../MetadataTypeDefinitions.js';
|
|
345
|
+
TransactionalSMS.definition = MetadataTypeDefinitions.transactionalSMS;
|
|
345
346
|
|
|
346
|
-
|
|
347
|
+
export default TransactionalSMS;
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
folder: require('./Folder'),
|
|
11
|
-
list: require('./List'),
|
|
12
|
-
};
|
|
3
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
4
|
+
import MetadataType from './MetadataType.js';
|
|
5
|
+
import { Util } from '../util/util.js';
|
|
6
|
+
import cache from '../util/cache.js';
|
|
7
|
+
import asset from './Asset.js';
|
|
8
|
+
import folder from './Folder.js';
|
|
9
|
+
import list from './List.js';
|
|
13
10
|
|
|
14
11
|
/**
|
|
15
12
|
* MessageSendActivity MetadataType
|
|
@@ -273,6 +270,11 @@ class TriggeredSend extends MetadataType {
|
|
|
273
270
|
asset: ['message'],
|
|
274
271
|
list: null,
|
|
275
272
|
};
|
|
273
|
+
const cacheTypes = {
|
|
274
|
+
asset,
|
|
275
|
+
folder,
|
|
276
|
+
list,
|
|
277
|
+
};
|
|
276
278
|
for (const [type, subTypeArr] of Object.entries(requiredCache)) {
|
|
277
279
|
if (type === 'asset' && assetLoaded) {
|
|
278
280
|
continue;
|
|
@@ -406,6 +408,7 @@ class TriggeredSend extends MetadataType {
|
|
|
406
408
|
}
|
|
407
409
|
|
|
408
410
|
// Assign definition to static attributes
|
|
409
|
-
|
|
411
|
+
import MetadataTypeDefinitions from '../MetadataTypeDefinitions.js';
|
|
412
|
+
TriggeredSend.definition = MetadataTypeDefinitions.triggeredSend;
|
|
410
413
|
|
|
411
|
-
|
|
414
|
+
export default TriggeredSend;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
4
|
+
import MetadataType from './MetadataType.js';
|
|
5
|
+
import { Util } from '../util/util.js';
|
|
6
|
+
import File from '../util/file.js';
|
|
7
|
+
import cache from '../util/cache.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* MetadataType
|
|
@@ -1169,6 +1169,7 @@ class User extends MetadataType {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
1171
|
// Assign definition to static attributes
|
|
1172
|
-
|
|
1172
|
+
import MetadataTypeDefinitions from '../MetadataTypeDefinitions.js';
|
|
1173
|
+
User.definition = MetadataTypeDefinitions.user;
|
|
1173
1174
|
|
|
1174
|
-
|
|
1175
|
+
export default User;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import Automation from './Automation.js';
|
|
4
|
+
import MetadataType from './MetadataType.js';
|
|
5
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
6
|
+
import { Util } from '../util/util.js';
|
|
7
|
+
import cache from '../util/cache.js';
|
|
9
8
|
/**
|
|
10
9
|
* Verification MetadataType
|
|
11
10
|
*
|
|
@@ -225,6 +224,7 @@ class Verification extends MetadataType {
|
|
|
225
224
|
}
|
|
226
225
|
|
|
227
226
|
// Assign definition to static attributes
|
|
228
|
-
|
|
227
|
+
import MetadataTypeDefinitions from '../MetadataTypeDefinitions.js';
|
|
228
|
+
Verification.definition = MetadataTypeDefinitions.verification;
|
|
229
229
|
|
|
230
|
-
|
|
230
|
+
export default Verification;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export default {
|
|
2
2
|
bodyIteratorField: 'Results',
|
|
3
3
|
dependencies: ['folder-userinitiatedsends', 'email', 'asset-message', 'dataExtension', 'list'], // filter(+), sendClassification(+), SenderProfile(n/a), DeliveryProfile(n/a)
|
|
4
4
|
folderType: 'userinitiatedsends',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// obj definition: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/getting-started-spec.html
|
|
3
3
|
// insert: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/postCreateInteraction.html
|
|
4
4
|
// update: https://developer.salesforce.com/docs/marketing/marketing-cloud/guide/putUpdateInteraction.html
|
|
5
|
-
|
|
5
|
+
export default {
|
|
6
6
|
bodyIteratorField: 'items',
|
|
7
7
|
dependencies: [
|
|
8
8
|
'folder-journey',
|
package/lib/retrieveChangelog.js
CHANGED
|
@@ -16,9 +16,10 @@
|
|
|
16
16
|
}]
|
|
17
17
|
*/
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
import mcdev from './index.js';
|
|
20
|
+
|
|
21
|
+
import Definition from './MetadataTypeDefinitions.js';
|
|
22
|
+
import MetadataType from './MetadataTypeInfo.js';
|
|
22
23
|
|
|
23
24
|
// disable cli logs
|
|
24
25
|
// mcdev._setLoggingLevel({ silent: true });
|
package/lib/util/auth.js
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const credentialStore = new Conf({
|
|
7
|
-
|
|
1
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
2
|
+
import { Util } from './util.js';
|
|
3
|
+
import File from './file.js';
|
|
4
|
+
import SDK from 'sfmc-sdk';
|
|
5
|
+
import Conf from 'conf';
|
|
6
|
+
const credentialStore = new Conf({
|
|
7
|
+
projectName: 'mcdev',
|
|
8
|
+
configName: 'sessions',
|
|
9
|
+
clearInvalidConfig: true,
|
|
10
|
+
});
|
|
8
11
|
const initializedSDKs = {};
|
|
9
12
|
let authfile;
|
|
10
13
|
|
|
@@ -159,4 +162,4 @@ function setupSDK(sessionKey, authObject) {
|
|
|
159
162
|
});
|
|
160
163
|
}
|
|
161
164
|
|
|
162
|
-
|
|
165
|
+
export default Auth;
|
package/lib/util/businessUnit.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
4
|
+
import { Util } from './util.js';
|
|
5
|
+
import File from './file.js';
|
|
6
|
+
import auth from './auth.js';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Helper that handles retrieval of BU info
|
|
@@ -104,4 +104,4 @@ const BusinessUnit = {
|
|
|
104
104
|
},
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
|
|
107
|
+
export default BusinessUnit;
|
package/lib/util/cache.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
2
|
+
import { Util } from './util.js';
|
|
3
3
|
|
|
4
4
|
/** @type {TYPE.Cache} */
|
|
5
5
|
const dataStore = {};
|
|
6
6
|
let currentMID = null;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
export default {
|
|
9
9
|
/**
|
|
10
10
|
* Method to setup buObject
|
|
11
11
|
* NOTE: in future this may need to restore, rather than wipe the cache
|
package/lib/util/cli.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
import TYPE from '../../types/mcdev.d.js';
|
|
4
|
+
import BuHelper from './businessUnit.js';
|
|
5
|
+
import File from './file.js';
|
|
6
|
+
import config from './config.js';
|
|
7
|
+
import inquirer from 'inquirer';
|
|
8
|
+
import MetadataDefinitions from './../MetadataTypeDefinitions.js';
|
|
9
|
+
import { Util } from './util.js';
|
|
10
|
+
import auth from './auth.js';
|
|
11
|
+
import 'console.table';
|
|
12
|
+
import MetadataTypeInfo from './../MetadataTypeInfo.js';
|
|
13
|
+
import TransactionalMessage from './../metadataTypes/TransactionalMessage.js';
|
|
12
14
|
|
|
13
15
|
/**
|
|
14
16
|
* CLI helper class
|
|
@@ -321,7 +323,9 @@ const Cli = {
|
|
|
321
323
|
businessUnits: {},
|
|
322
324
|
};
|
|
323
325
|
} catch (ex) {
|
|
324
|
-
Util.logger.error(
|
|
326
|
+
Util.logger.error(
|
|
327
|
+
`We could not verify your credential due to a problem (${ex.message}). Please try again.`
|
|
328
|
+
);
|
|
325
329
|
credentialsGood = false;
|
|
326
330
|
if (skipInteraction) {
|
|
327
331
|
// break the otherwise infinite loop
|
|
@@ -570,8 +574,6 @@ const Cli = {
|
|
|
570
574
|
* @returns {object[]} list of supported types with their apiNames
|
|
571
575
|
*/
|
|
572
576
|
explainTypes() {
|
|
573
|
-
const MetadataTypeInfo = require('./../MetadataTypeInfo');
|
|
574
|
-
const TransactionalMessage = require('./../metadataTypes/TransactionalMessage');
|
|
575
577
|
const json = [];
|
|
576
578
|
const apiNameArr = Object.keys(MetadataDefinitions);
|
|
577
579
|
|
|
@@ -669,4 +671,4 @@ const Cli = {
|
|
|
669
671
|
},
|
|
670
672
|
};
|
|
671
673
|
|
|
672
|
-
|
|
674
|
+
export default Cli;
|