@sap-ux/odata-service-inquirer 2.4.15 → 2.4.16

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.
@@ -55,7 +55,8 @@ const createServiceChoices = (serviceInfos) => {
55
55
  servicePath,
56
56
  serviceODataVersion: service.odataVersion,
57
57
  toString: () => serviceName,
58
- serviceType: service.serviceType
58
+ serviceType: service.serviceType,
59
+ serviceId: service.id
59
60
  }
60
61
  });
61
62
  });
@@ -243,6 +244,7 @@ async function validateService(service, connectionValidator, requiredOdataVersio
243
244
  utils_1.PromptState.odataService.odataVersion =
244
245
  version ?? (service.serviceODataVersion === axios_extension_1.ODataVersion.v2 ? odata_service_writer_1.OdataVersion.v2 : odata_service_writer_1.OdataVersion.v4);
245
246
  utils_1.PromptState.odataService.servicePath = service.servicePath;
247
+ utils_1.PromptState.odataService.serviceId = service.serviceId;
246
248
  utils_1.PromptState.odataService.origin = origin;
247
249
  utils_1.PromptState.odataService.sapClient = connectionValidator.validatedClient;
248
250
  utils_1.PromptState.odataService.ignoreCertError = connectionValidator.ignoreCertError;
@@ -7,5 +7,6 @@ export type ServiceAnswer = {
7
7
  serviceODataVersion: ODataVersion;
8
8
  toString: () => string;
9
9
  serviceType?: string;
10
+ serviceId?: string;
10
11
  };
11
12
  //# sourceMappingURL=types.d.ts.map
package/dist/types.d.ts CHANGED
@@ -63,6 +63,10 @@ export interface OdataServiceAnswers {
63
63
  * The relative url path of the selected service. This coupled with the origin forms the full service url.
64
64
  */
65
65
  servicePath?: string;
66
+ /**
67
+ * The id of the selected service.
68
+ */
69
+ serviceId?: string;
66
70
  /**
67
71
  * The 'sap-client' value for the service.
68
72
  */
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.4.15",
4
+ "version": "2.4.16",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,10 +30,10 @@
30
30
  "os-name": "4.0.1",
31
31
  "@sap-ux/axios-extension": "1.21.2",
32
32
  "@sap-ux/btp-utils": "1.1.0",
33
- "@sap-ux/fiori-generator-shared": "0.12.6",
33
+ "@sap-ux/fiori-generator-shared": "0.12.7",
34
34
  "@sap-ux/guided-answers-helper": "0.3.0",
35
35
  "@sap-ux/telemetry": "0.6.3",
36
- "@sap-ux/inquirer-common": "0.7.8",
36
+ "@sap-ux/inquirer-common": "0.7.9",
37
37
  "@sap-ux/logger": "0.7.0",
38
38
  "@sap-ux/nodejs-utils": "0.2.1",
39
39
  "@sap-ux/project-access": "1.30.2",
@@ -47,12 +47,12 @@
47
47
  "@types/inquirer": "8.2.6",
48
48
  "@types/lodash": "4.14.202",
49
49
  "jest-extended": "3.2.4",
50
- "@sap-ux/fiori-generator-shared": "0.12.6",
51
- "@sap-ux/fiori-elements-writer": "2.4.13",
52
- "@sap-ux/fiori-freestyle-writer": "2.4.9",
50
+ "@sap-ux/fiori-generator-shared": "0.12.7",
51
+ "@sap-ux/fiori-elements-writer": "2.4.14",
52
+ "@sap-ux/fiori-freestyle-writer": "2.4.10",
53
53
  "@sap-ux/feature-toggle": "0.3.0",
54
54
  "@sap-ux/odata-service-writer": "0.27.5",
55
- "@sap-ux/cap-config-writer": "0.10.6"
55
+ "@sap-ux/cap-config-writer": "0.10.7"
56
56
  },
57
57
  "engines": {
58
58
  "node": ">=20.x"