@sap-ux/odata-service-inquirer 0.5.26 → 0.5.28
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.
|
@@ -6,7 +6,7 @@ const logger_1 = require("@sap-ux/logger");
|
|
|
6
6
|
const i18n_1 = require("../i18n");
|
|
7
7
|
const types_1 = require("../types");
|
|
8
8
|
const utils_1 = require("../utils");
|
|
9
|
-
const
|
|
9
|
+
const guided_answers_helper_1 = require("@sap-ux/guided-answers-helper");
|
|
10
10
|
const teleEventGALinkCreated = 'GA_LINK_CREATED';
|
|
11
11
|
/**
|
|
12
12
|
* Constants specific to error handling
|
|
@@ -144,18 +144,18 @@ class ErrorHandler {
|
|
|
144
144
|
static getHelpNode = (errorType) => {
|
|
145
145
|
const errorToHelp = {
|
|
146
146
|
[ERROR_TYPE.SERVICES_UNAVAILABLE]: (0, btp_utils_1.isAppStudio)()
|
|
147
|
-
?
|
|
147
|
+
? guided_answers_helper_1.HELP_NODES.BAS_CATALOG_SERVICES_REQUEST_FAILED
|
|
148
148
|
: undefined,
|
|
149
|
-
[ERROR_TYPE.CERT]:
|
|
150
|
-
[ERROR_TYPE.CERT_SELF_SIGNED]:
|
|
151
|
-
[ERROR_TYPE.CERT_UKNOWN_OR_INVALID]:
|
|
152
|
-
[ERROR_TYPE.CERT_SELF_SIGNED_CERT_IN_CHAIN]:
|
|
153
|
-
[ERROR_TYPE.DESTINATION_MISCONFIGURED]:
|
|
154
|
-
[ERROR_TYPE.DESTINATION_UNAVAILABLE]:
|
|
155
|
-
[ERROR_TYPE.DESTINATION_NOT_FOUND]:
|
|
156
|
-
[ERROR_TYPE.BAD_GATEWAY]:
|
|
157
|
-
[ERROR_TYPE.DESTINATION_BAD_GATEWAY_503]:
|
|
158
|
-
[ERROR_TYPE.NO_V4_SERVICES]:
|
|
149
|
+
[ERROR_TYPE.CERT]: guided_answers_helper_1.HELP_NODES.CERTIFICATE_ERROR,
|
|
150
|
+
[ERROR_TYPE.CERT_SELF_SIGNED]: guided_answers_helper_1.HELP_NODES.CERTIFICATE_ERROR,
|
|
151
|
+
[ERROR_TYPE.CERT_UKNOWN_OR_INVALID]: guided_answers_helper_1.HELP_NODES.CERTIFICATE_ERROR,
|
|
152
|
+
[ERROR_TYPE.CERT_SELF_SIGNED_CERT_IN_CHAIN]: guided_answers_helper_1.HELP_NODES.CERTIFICATE_ERROR,
|
|
153
|
+
[ERROR_TYPE.DESTINATION_MISCONFIGURED]: guided_answers_helper_1.HELP_NODES.DESTINATION_MISCONFIGURED,
|
|
154
|
+
[ERROR_TYPE.DESTINATION_UNAVAILABLE]: guided_answers_helper_1.HELP_NODES.DESTINATION_UNAVAILABLE,
|
|
155
|
+
[ERROR_TYPE.DESTINATION_NOT_FOUND]: guided_answers_helper_1.HELP_NODES.DESTINATION_NOT_FOUND,
|
|
156
|
+
[ERROR_TYPE.BAD_GATEWAY]: guided_answers_helper_1.HELP_NODES.BAD_GATEWAY,
|
|
157
|
+
[ERROR_TYPE.DESTINATION_BAD_GATEWAY_503]: guided_answers_helper_1.HELP_NODES.DESTINATION_BAD_GATEWAY_503,
|
|
158
|
+
[ERROR_TYPE.NO_V4_SERVICES]: guided_answers_helper_1.HELP_NODES.NO_V4_SERVICES,
|
|
159
159
|
[ERROR_TYPE.AUTH]: undefined,
|
|
160
160
|
[ERROR_TYPE.AUTH_TIMEOUT]: undefined,
|
|
161
161
|
[ERROR_TYPE.REDIRECT]: undefined,
|
|
@@ -432,13 +432,13 @@ class ErrorHandler {
|
|
|
432
432
|
message: mappedErrorMsg ?? '',
|
|
433
433
|
link: {
|
|
434
434
|
text: (0, i18n_1.t)('guidedAnswers.validationErrorHelpText'),
|
|
435
|
-
icon:
|
|
436
|
-
url: (0,
|
|
435
|
+
icon: guided_answers_helper_1.GUIDED_ANSWERS_ICON,
|
|
436
|
+
url: (0, guided_answers_helper_1.getHelpUrl)(3046 /* HELP_TREE.FIORI_TOOLS */, [helpNode])
|
|
437
437
|
}
|
|
438
438
|
};
|
|
439
439
|
if (this.guidedAnswersEnabled) {
|
|
440
440
|
valLink.link.command = {
|
|
441
|
-
id:
|
|
441
|
+
id: guided_answers_helper_1.GUIDED_ANSWERS_LAUNCH_CMD_ID,
|
|
442
442
|
params: {
|
|
443
443
|
treeId: 3046 /* HELP_TREE.FIORI_TOOLS */,
|
|
444
444
|
nodeIdPath: [helpNode],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/odata-service-inquirer",
|
|
3
3
|
"description": "Prompts module that can prompt users for inputs required for odata service writing",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.28",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"i18next": "23.5.1",
|
|
26
26
|
"inquirer-autocomplete-prompt": "2.0.1",
|
|
27
27
|
"os-name": "4.0.1",
|
|
28
|
-
"@sap-ux/axios-extension": "1.16.
|
|
29
|
-
"@sap-ux/btp-utils": "0.15.
|
|
30
|
-
"@sap-ux/
|
|
31
|
-
"@sap-ux/telemetry": "0.5.
|
|
28
|
+
"@sap-ux/axios-extension": "1.16.5",
|
|
29
|
+
"@sap-ux/btp-utils": "0.15.2",
|
|
30
|
+
"@sap-ux/guided-answers-helper": "0.0.1",
|
|
31
|
+
"@sap-ux/telemetry": "0.5.24",
|
|
32
32
|
"@sap-ux/inquirer-common": "0.4.6",
|
|
33
33
|
"@sap-ux/logger": "0.6.0",
|
|
34
34
|
"@sap-ux/project-access": "1.26.8",
|