@sap-ux/odata-service-inquirer 2.2.12 → 2.2.14
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.
|
@@ -96,11 +96,17 @@ async function validateCFServiceInfo(abapService, connectionValidator, requiredO
|
|
|
96
96
|
let valResult = true;
|
|
97
97
|
let destination;
|
|
98
98
|
if ((0, utils_1.getPromptHostEnvironment)() === fiori_generator_shared_1.hostEnvironment.bas) {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
99
|
+
try {
|
|
100
|
+
destination = await (0, btp_utils_1.createOAuth2UserTokenExchangeDest)(cfAbapServiceName, {
|
|
101
|
+
uaaCredentials: uaaCreds.credentials.uaa,
|
|
102
|
+
hostUrl: uaaCreds.credentials.url
|
|
103
|
+
}, logger_helper_1.default.logger);
|
|
104
|
+
valResult = await (0, prompt_helpers_2.connectWithDestination)(destination, connectionValidator, requiredOdataVersion);
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
// If a user doesn't have subaccount admin rights they can't create/update destinations on CF
|
|
108
|
+
valResult = error.message;
|
|
109
|
+
}
|
|
104
110
|
}
|
|
105
111
|
else {
|
|
106
112
|
valResult = await connectionValidator.validateServiceInfo(uaaCreds.credentials);
|
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": "2.2.
|
|
4
|
+
"version": "2.2.14",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"os-name": "4.0.1",
|
|
31
31
|
"@sap-ux/axios-extension": "1.18.6",
|
|
32
32
|
"@sap-ux/btp-utils": "1.0.1",
|
|
33
|
-
"@sap-ux/fiori-generator-shared": "0.9.
|
|
33
|
+
"@sap-ux/fiori-generator-shared": "0.9.3",
|
|
34
34
|
"@sap-ux/guided-answers-helper": "0.2.1",
|
|
35
|
-
"@sap-ux/telemetry": "0.5.
|
|
36
|
-
"@sap-ux/inquirer-common": "0.6.
|
|
35
|
+
"@sap-ux/telemetry": "0.5.65",
|
|
36
|
+
"@sap-ux/inquirer-common": "0.6.23",
|
|
37
37
|
"@sap-ux/logger": "0.6.0",
|
|
38
|
-
"@sap-ux/project-access": "1.29.
|
|
38
|
+
"@sap-ux/project-access": "1.29.11",
|
|
39
39
|
"@sap-ux/project-input-validator": "0.3.4",
|
|
40
40
|
"@sap-ux/store": "1.0.0"
|
|
41
41
|
},
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"@types/inquirer": "8.2.6",
|
|
47
47
|
"@types/lodash": "4.14.202",
|
|
48
48
|
"jest-extended": "3.2.4",
|
|
49
|
-
"@sap-ux/fiori-generator-shared": "0.9.
|
|
50
|
-
"@sap-ux/fiori-elements-writer": "2.1.
|
|
51
|
-
"@sap-ux/fiori-freestyle-writer": "2.1.
|
|
49
|
+
"@sap-ux/fiori-generator-shared": "0.9.3",
|
|
50
|
+
"@sap-ux/fiori-elements-writer": "2.1.24",
|
|
51
|
+
"@sap-ux/fiori-freestyle-writer": "2.1.5",
|
|
52
52
|
"@sap-ux/feature-toggle": "0.2.3",
|
|
53
|
-
"@sap-ux/odata-service-writer": "0.26.
|
|
54
|
-
"@sap-ux/cap-config-writer": "0.9.
|
|
53
|
+
"@sap-ux/odata-service-writer": "0.26.6",
|
|
54
|
+
"@sap-ux/cap-config-writer": "0.9.14"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
57
|
"node": ">=18.x"
|