@sap-ux/cf-deploy-config-inquirer 0.2.25 → 0.2.26

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.
@@ -171,7 +171,7 @@ async function getQuestions(promptOptions, log) {
171
171
  const destinationOptions = promptOptions[types_1.promptNames.destinationName];
172
172
  const addOverwriteQuestion = promptOptions[types_1.promptNames.overwrite] ?? false;
173
173
  const addManagedAppRouter = promptOptions[types_1.promptNames.addManagedAppRouter] ?? false;
174
- const showRouterOptions = promptOptions[types_1.promptNames.showRouterOptions] ?? false;
174
+ const routerType = promptOptions[types_1.promptNames.routerType] ?? false;
175
175
  const questions = [];
176
176
  // Collect questions into an array
177
177
  questions.push(await getDestinationNamePrompt(destinationOptions));
@@ -183,7 +183,7 @@ async function getQuestions(promptOptions, log) {
183
183
  log?.info((0, i18n_1.t)('info.overwriteDestination'));
184
184
  questions.push(getOverwritePrompt());
185
185
  }
186
- if (showRouterOptions) {
186
+ if (routerType) {
187
187
  log?.info((0, i18n_1.t)('info.routerOptions'));
188
188
  questions.push(getRouterOptionsPrompt());
189
189
  }
package/dist/types.d.ts CHANGED
@@ -11,9 +11,7 @@ export declare enum promptNames {
11
11
  /** The prompt for confirming destination overwrite. */
12
12
  overwrite = "overwriteDestinationName",
13
13
  /** The prompt for confirming the router type. */
14
- routerType = "routerType",
15
- /** The prompt for confirming if the router options should be displayed */
16
- showRouterOptions = "showRouterOptions"
14
+ routerType = "routerType"
17
15
  }
18
16
  /**
19
17
  * Enum defining prompt names for Application Router configuration.
@@ -26,9 +24,7 @@ export declare enum appRouterPromptNames {
26
24
  routerType = "routerType",
27
25
  addConnectivityService = "addConnectivityService",
28
26
  addABAPServiceBinding = "addABAPServiceBinding",
29
- abapServiceProvider = "abapServiceProvider",
30
- /** The prompt for confirming if the router options should be displayed */
31
- showRouterOptions = "showRouterOptions"
27
+ abapServiceProvider = "abapServiceProvider"
32
28
  }
33
29
  /**
34
30
  * Configuration options for the 'destinationName' prompt used in deployment settings.
@@ -69,7 +65,7 @@ export type DestinationRouterPromptOptions = {
69
65
  /**
70
66
  * Defines options for boolean-type prompts in CF deployment configuration.
71
67
  */
72
- export type booleanPromptOptions = Partial<Record<promptNames.overwrite | promptNames.addManagedAppRouter | appRouterPromptNames.mtaId | appRouterPromptNames.mtaDescription | appRouterPromptNames.mtaVersion | appRouterPromptNames.routerType | appRouterPromptNames.addABAPServiceBinding | appRouterPromptNames.addConnectivityService | appRouterPromptNames.showRouterOptions, boolean>>;
68
+ export type booleanPromptOptions = Partial<Record<promptNames.overwrite | promptNames.addManagedAppRouter | appRouterPromptNames.mtaId | appRouterPromptNames.mtaDescription | appRouterPromptNames.mtaVersion | appRouterPromptNames.routerType | appRouterPromptNames.addABAPServiceBinding | appRouterPromptNames.addConnectivityService, boolean>>;
73
69
  /**
74
70
  * Defines options for string-type prompts in CF deployment configuration.
75
71
  */
@@ -103,6 +99,8 @@ export interface CfDeployConfigAnswers {
103
99
  addManagedAppRouter?: boolean;
104
100
  /** Indicates whether the user opted to overwrite the destination. */
105
101
  overwrite?: boolean;
102
+ /** Indicates whether the user opted to include the router type. */
103
+ routerType?: RouterModuleType;
106
104
  }
107
105
  /**
108
106
  * User responses for CF deployment configuration with Router type.
package/dist/types.js CHANGED
@@ -14,8 +14,6 @@ var promptNames;
14
14
  promptNames["overwrite"] = "overwriteDestinationName";
15
15
  /** The prompt for confirming the router type. */
16
16
  promptNames["routerType"] = "routerType";
17
- /** The prompt for confirming if the router options should be displayed */
18
- promptNames["showRouterOptions"] = "showRouterOptions";
19
17
  })(promptNames || (exports.promptNames = promptNames = {}));
20
18
  /**
21
19
  * Enum defining prompt names for Application Router configuration.
@@ -38,8 +36,6 @@ var appRouterPromptNames;
38
36
  appRouterPromptNames["addABAPServiceBinding"] = "addABAPServiceBinding";
39
37
  /* Prompt for selecting the ABAP environments */
40
38
  appRouterPromptNames["abapServiceProvider"] = "abapServiceProvider";
41
- /** The prompt for confirming if the router options should be displayed */
42
- appRouterPromptNames["showRouterOptions"] = "showRouterOptions";
43
39
  })(appRouterPromptNames || (exports.appRouterPromptNames = appRouterPromptNames = {}));
44
40
  /**
45
41
  * Defines the types of router modules for the Application Router configuration.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/cf-deploy-config-inquirer",
3
3
  "description": "Prompts module that can provide prompts for cf deployment config writer",
4
- "version": "0.2.25",
4
+ "version": "0.2.26",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",