@sap-ux/generator-adp 0.7.0 → 0.7.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.
@@ -24,9 +24,9 @@ export declare class CFServicesPrompter {
24
24
  */
25
25
  private businessServices;
26
26
  /**
27
- * The keys of the business service.
27
+ * The info of the business service.
28
28
  */
29
- private businessServiceKeys;
29
+ private businessServiceInfo;
30
30
  /**
31
31
  * The base apps available.
32
32
  */
@@ -34,9 +34,9 @@ class CFServicesPrompter {
34
34
  */
35
35
  businessServices = [];
36
36
  /**
37
- * The keys of the business service.
37
+ * The info of the business service.
38
38
  */
39
- businessServiceKeys = null;
39
+ businessServiceInfo = null;
40
40
  /**
41
41
  * The base apps available.
42
42
  */
@@ -189,7 +189,7 @@ class CFServicesPrompter {
189
189
  this.appManifest = manifest;
190
190
  this.html5RepoServiceInstanceGuid = serviceInstanceGuid;
191
191
  await (0, adp_tooling_1.validateSmartTemplateApplication)(manifest);
192
- await (0, adp_tooling_1.validateODataEndpoints)(entries, this.businessServiceKeys.credentials, this.logger);
192
+ await (0, adp_tooling_1.validateODataEndpoints)(entries, this.businessServiceInfo.serviceKeys, this.logger);
193
193
  }
194
194
  catch (e) {
195
195
  return e.message;
@@ -223,11 +223,11 @@ class CFServicesPrompter {
223
223
  return (0, i18n_1.t)('error.businessServiceHasToBeSelected');
224
224
  }
225
225
  try {
226
- this.businessServiceKeys = await (0, adp_tooling_1.getBusinessServiceKeys)(value, cfConfig, this.logger);
227
- if (this.businessServiceKeys === null) {
226
+ this.businessServiceInfo = await (0, adp_tooling_1.getBusinessServiceInfo)(value, cfConfig, this.logger);
227
+ if (this.businessServiceInfo === null) {
228
228
  return (0, i18n_1.t)('error.businessServiceDoesNotExist');
229
229
  }
230
- this.apps = await (0, adp_tooling_1.getCfApps)(this.businessServiceKeys.credentials, cfConfig, this.logger);
230
+ this.apps = await (0, adp_tooling_1.getCfApps)(this.businessServiceInfo.serviceKeys, cfConfig, this.logger);
231
231
  this.logger?.log(`Available applications: ${JSON.stringify(this.apps)}`);
232
232
  }
233
233
  catch (e) {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "SAPUI5 Adaptation Project",
4
4
  "homepage": "https://help.sap.com/viewer/584e0bcbfd4a4aff91c815cefa0bce2d/Cloud/en-US/ada9567b767941aba8d49fdb4fdedea7.html",
5
5
  "description": "Adaptation project allows you to create an app variant for an existing SAP Fiori elements-based or SAPUI5 freestyle application, without changing the original application.",
6
- "version": "0.7.0",
6
+ "version": "0.7.1",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -30,7 +30,7 @@
30
30
  "i18next": "25.3.0",
31
31
  "yeoman-generator": "5.10.0",
32
32
  "uuid": "10.0.0",
33
- "@sap-ux/adp-tooling": "0.18.0",
33
+ "@sap-ux/adp-tooling": "0.18.1",
34
34
  "@sap-ux/axios-extension": "1.24.2",
35
35
  "@sap-ux/btp-utils": "1.1.5",
36
36
  "@sap-ux/feature-toggle": "0.3.4",