@sap-ux/generator-adp 0.7.0 → 0.7.2

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.
@@ -256,7 +256,8 @@ class default_1 extends yeoman_generator_1.default {
256
256
  vscode: this.vscode,
257
257
  projectRootPath: this._getProjectPath(),
258
258
  inbounds: this.prompter.baseAppInbounds,
259
- layer: this.layer
259
+ layer: this.layer,
260
+ prompts: this.prompts
260
261
  }, this.composeWith.bind(this), this.logger, this.appWizard);
261
262
  }
262
263
  }
@@ -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) {
@@ -4,9 +4,9 @@
4
4
  "configurationDescr": "Configure the system and select an application.",
5
5
  "projectAttributesName": "Project Attributes",
6
6
  "projectAttributesDescr": "Configure the main project attributes.",
7
- "flpConfigName": "SAP Fiori Launchpad Configuration",
8
- "tileSettingsName": "SAP Fiori Launchpad Configuration - Tile Settings",
9
- "tileSettingsDescr": "Configure SAP Fiori Launchpad settings - {{projectName}}",
7
+ "flpConfigName": "SAP Fiori Launchpad Configuration: Tile Settings",
8
+ "tileSettingsName": "SAP Fiori Launchpad Configuration: Tile Handling",
9
+ "tileSettingsDescr": "Add a new tile or replace existing tiles of the base application.\nProject: {{projectName}}",
10
10
  "deployConfigName": "Deployment Configuration",
11
11
  "deployConfigDescr": "Configure deployment settings.",
12
12
  "addComponentUsagesName": "Add SAPUI5 Component Usages",
@@ -1,5 +1,5 @@
1
1
  import type Generator from 'yeoman-generator';
2
- import type { AppWizard } from '@sap-devx/yeoman-ui-types';
2
+ import type { AppWizard, Prompts } from '@sap-devx/yeoman-ui-types';
3
3
  import type { ToolsLogger } from '@sap-ux/logger';
4
4
  import type { ManifestNamespace } from '@sap-ux/project-access';
5
5
  import type { ConfigAnswers, AttributesAnswers, SystemLookup, FlexLayer, Endpoint } from '@sap-ux/adp-tooling';
@@ -19,6 +19,7 @@ interface FlpGenProps {
19
19
  projectRootPath: string;
20
20
  inbounds?: ManifestNamespace.Inbound;
21
21
  layer: FlexLayer;
22
+ prompts: Prompts;
22
23
  }
23
24
  /**
24
25
  * Options required to invoke the deploy-config subgenerator.
@@ -40,7 +41,7 @@ interface DeployGenOptions {
40
41
  * @param {ToolsLogger} logger - Logger instance for tracking operations and errors.
41
42
  * @param {AppWizard} appWizard - AppWizard instance for interacting with the UI (optional).
42
43
  */
43
- export declare function addFlpGen({ projectRootPath, vscode, inbounds, layer }: FlpGenProps, composeWith: Generator['composeWith'], logger: ToolsLogger, appWizard: AppWizard): void;
44
+ export declare function addFlpGen({ projectRootPath, vscode, inbounds, layer, prompts }: FlpGenProps, composeWith: Generator['composeWith'], logger: ToolsLogger, appWizard: AppWizard): void;
44
45
  /**
45
46
  * Composes the Fiori deploy-config sub-generator using `composeWith`. This sub-generator configures
46
47
  * deployment for Fiori applications, such as to ABAP or Cloud Foundry environments.
@@ -24,7 +24,7 @@ const PACKAGE_ADDITIONAL_VALIDATION = {
24
24
  * @param {ToolsLogger} logger - Logger instance for tracking operations and errors.
25
25
  * @param {AppWizard} appWizard - AppWizard instance for interacting with the UI (optional).
26
26
  */
27
- function addFlpGen({ projectRootPath, vscode, inbounds, layer }, composeWith, logger, appWizard) {
27
+ function addFlpGen({ projectRootPath, vscode, inbounds, layer, prompts }, composeWith, logger, appWizard) {
28
28
  try {
29
29
  /**
30
30
  * We are using this namespace for now because '@sap/fiori:adp-flp-config' is not yet bundled in '@sap/generator-fiori'.
@@ -34,6 +34,7 @@ function addFlpGen({ projectRootPath, vscode, inbounds, layer }, composeWith, lo
34
34
  vscode,
35
35
  inbounds,
36
36
  layer,
37
+ prompts,
37
38
  data: { projectRootPath },
38
39
  appWizard
39
40
  });
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.2",
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.2",
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",
@@ -56,7 +56,7 @@
56
56
  "fs-extra": "10.0.0",
57
57
  "rimraf": "6.0.1",
58
58
  "yeoman-test": "6.3.0",
59
- "@sap-ux/deploy-config-sub-generator": "0.5.0"
59
+ "@sap-ux/deploy-config-sub-generator": "0.5.1"
60
60
  },
61
61
  "engines": {
62
62
  "node": ">=20.x"