@sap-ux/odata-service-inquirer 2.2.10 → 2.2.13

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
- destination = await (0, btp_utils_1.createOAuth2UserTokenExchangeDest)(cfAbapServiceName, {
100
- uaaCredentials: uaaCreds.credentials.uaa,
101
- hostUrl: uaaCreds.credentials.url
102
- }, logger_helper_1.default.logger);
103
- valResult = await (0, prompt_helpers_2.connectWithDestination)(destination, connectionValidator, requiredOdataVersion);
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.10",
4
+ "version": "2.2.13",
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.1",
33
+ "@sap-ux/fiori-generator-shared": "0.9.2",
34
+ "@sap-ux/telemetry": "0.5.64",
34
35
  "@sap-ux/guided-answers-helper": "0.2.1",
35
- "@sap-ux/telemetry": "0.5.63",
36
- "@sap-ux/inquirer-common": "0.6.20",
36
+ "@sap-ux/inquirer-common": "0.6.22",
37
37
  "@sap-ux/logger": "0.6.0",
38
- "@sap-ux/project-access": "1.29.9",
38
+ "@sap-ux/project-access": "1.29.10",
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.1",
50
- "@sap-ux/fiori-elements-writer": "2.1.20",
51
- "@sap-ux/fiori-freestyle-writer": "2.1.2",
49
+ "@sap-ux/fiori-elements-writer": "2.1.22",
50
+ "@sap-ux/fiori-generator-shared": "0.9.2",
51
+ "@sap-ux/fiori-freestyle-writer": "2.1.4",
52
52
  "@sap-ux/feature-toggle": "0.2.3",
53
- "@sap-ux/odata-service-writer": "0.26.4",
54
- "@sap-ux/cap-config-writer": "0.9.12"
53
+ "@sap-ux/odata-service-writer": "0.26.5",
54
+ "@sap-ux/cap-config-writer": "0.9.13"
55
55
  },
56
56
  "engines": {
57
57
  "node": ">=18.x"