@sap-ux/flp-config-inquirer 0.3.49 → 0.4.0
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.
- package/dist/types.d.ts +15 -2
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { YUIQuestion, GuiOptions, PromptSeverityMessage } from '@sap-ux/inquirer-common';
|
|
1
|
+
import type { YUIQuestion, GuiOptions, PromptSeverityMessage, CommonPromptOptions } from '@sap-ux/inquirer-common';
|
|
2
2
|
import type { ListQuestionOptions } from 'inquirer';
|
|
3
3
|
import type { InboundContent } from '@sap-ux/axios-extension';
|
|
4
4
|
/**
|
|
@@ -123,10 +123,23 @@ export interface ParameterStringPromptOptions {
|
|
|
123
123
|
type FLPConfigCommonInquirerOptions = {
|
|
124
124
|
silentOverwrite?: boolean;
|
|
125
125
|
};
|
|
126
|
+
type PromptOptionMap = {
|
|
127
|
+
[promptNames.inboundId]: InboundIdPromptOptions;
|
|
128
|
+
[promptNames.semanticObject]: SemanticObjectPromptOptions;
|
|
129
|
+
[promptNames.action]: ActionPromptOptions;
|
|
130
|
+
[promptNames.overwrite]: OverwritePromptOptions;
|
|
131
|
+
[promptNames.title]: TitlePromptOptions;
|
|
132
|
+
[promptNames.subTitle]: SubTitlePromptOptions;
|
|
133
|
+
[promptNames.icon]: IconPromptOptions;
|
|
134
|
+
[promptNames.additionalParameters]: ParameterStringPromptOptions;
|
|
135
|
+
[promptNames.existingFlpConfigInfo]: ExistingFlpConfigInfo;
|
|
136
|
+
};
|
|
126
137
|
/**
|
|
127
138
|
* The options for the FLP config inquirer & the prompts.
|
|
128
139
|
*/
|
|
129
|
-
type flpConfigPromptOptions =
|
|
140
|
+
type flpConfigPromptOptions = {
|
|
141
|
+
[K in keyof PromptOptionMap]: PromptOptionMap[K] & CommonPromptOptions;
|
|
142
|
+
};
|
|
130
143
|
/**
|
|
131
144
|
* The options for the FLP config inquirer & the prompts.
|
|
132
145
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/flp-config-inquirer",
|
|
3
3
|
"description": "Prompts module that can prompt users for inputs required for FLP configuration",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.4.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"watch": "tsc --watch",
|
|
45
45
|
"lint": "eslint . --ext .ts",
|
|
46
46
|
"lint:fix": "eslint . --ext .ts --fix",
|
|
47
|
-
"test": "jest --ci --forceExit --detectOpenHandles --colors
|
|
47
|
+
"test": "jest --ci --forceExit --detectOpenHandles --colors",
|
|
48
48
|
"test-u": "jest --ci --forceExit --detectOpenHandles --colors -u",
|
|
49
49
|
"link": "pnpm link --global",
|
|
50
50
|
"unlink": "pnpm unlink --global"
|