@sap-ux/odata-service-inquirer 1.3.0 → 2.0.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/index.d.ts
CHANGED
|
@@ -8,7 +8,8 @@ import { type SystemSelectionAnswers, SystemSelectionAnswerType } from './prompt
|
|
|
8
8
|
import type { CfAbapEnvServiceChoice, NewSystemChoice } from './prompts/datasources/sap-system/system-selection/prompt-helpers';
|
|
9
9
|
import type { Annotations } from '@sap-ux/axios-extension';
|
|
10
10
|
import type { TemplateType } from '@sap-ux/fiori-elements-writer';
|
|
11
|
-
import {
|
|
11
|
+
import { DatasourceType, promptNames, type OdataServiceAnswers, type OdataServicePromptOptions, type OdataServiceQuestion, type SapSystemType, type EntityPromptOptions, EntityRelatedAnswers } from './types';
|
|
12
|
+
import type { CapService, CapRuntime } from '@sap-ux/cap-config-writer';
|
|
12
13
|
/**
|
|
13
14
|
* Get the inquirer prompts for odata service.
|
|
14
15
|
*
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CapServiceChoice } from '../../../types';
|
|
2
|
+
import type { CapService } from '@sap-ux/cap-config-writer';
|
|
2
3
|
import type { CapProjectChoice, CapProjectPaths } from './types';
|
|
3
4
|
export declare const enterCapPathChoiceValue = "enterCapPath";
|
|
4
5
|
/**
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CapCustomPaths } from '@sap-ux/project-access';
|
|
2
|
-
import type {
|
|
2
|
+
import type { CapServiceChoice, promptNames } from '../../../types';
|
|
3
|
+
import type { CapService } from '@sap-ux/cap-config-writer';
|
|
3
4
|
import type { ListChoiceOptions } from 'inquirer';
|
|
4
5
|
/**
|
|
5
6
|
* Enumeration of internal prompt names used internally and not supported for modification using OdataServiceInquirerPromptOptions
|
package/dist/types.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import type { Annotations, ServiceProvider } from '@sap-ux/axios-extension';
|
|
|
2
2
|
import type { Destination } from '@sap-ux/btp-utils';
|
|
3
3
|
import type { CommonPromptOptions, YUIQuestion } from '@sap-ux/inquirer-common';
|
|
4
4
|
import type { OdataVersion } from '@sap-ux/odata-service-writer';
|
|
5
|
-
import type { CdsVersionInfo } from '@sap-ux/project-access';
|
|
6
5
|
import type { BackendSystem } from '@sap-ux/store';
|
|
7
6
|
import type { ListChoiceOptions } from 'inquirer';
|
|
7
|
+
import type { CapService } from '@sap-ux/cap-config-writer';
|
|
8
8
|
import type { EntityAnswer, NavigationEntityAnswer } from './prompts/edmx/entity-helper';
|
|
9
9
|
import type { TableSelectionMode, TableType } from '@sap-ux/fiori-elements-writer';
|
|
10
10
|
/**
|
|
@@ -175,38 +175,6 @@ export interface AlpTableConfigAnswers {
|
|
|
175
175
|
* Convienience alias type for the entity related answers
|
|
176
176
|
*/
|
|
177
177
|
export type EntityRelatedAnswers = EntitySelectionAnswers & TableConfigAnswers & AnnotationGenerationAnswers & AlpTableConfigAnswers;
|
|
178
|
-
export type CapRuntime = 'Node.js' | 'Java';
|
|
179
|
-
export interface CapService {
|
|
180
|
-
/**
|
|
181
|
-
* The path to the CAP project.
|
|
182
|
-
*/
|
|
183
|
-
projectPath: string;
|
|
184
|
-
/**
|
|
185
|
-
* The CDS info for the Cds instance that was used to compile the project when determining the service.
|
|
186
|
-
*/
|
|
187
|
-
cdsVersionInfo?: CdsVersionInfo;
|
|
188
|
-
/**
|
|
189
|
-
* The name of the CAP service as identified by the cds model.
|
|
190
|
-
*/
|
|
191
|
-
serviceName: string;
|
|
192
|
-
/**
|
|
193
|
-
* The URL path to the service, as specfied in the manifest.json of generated apps
|
|
194
|
-
* This is also provided as `OdataServicePromptAnswers` property `servicePath`
|
|
195
|
-
*/
|
|
196
|
-
urlPath?: string;
|
|
197
|
-
/**
|
|
198
|
-
* The relative path (from the `projectPath`) to the service cds file.
|
|
199
|
-
*/
|
|
200
|
-
serviceCdsPath?: string;
|
|
201
|
-
/**
|
|
202
|
-
* The runtime of the Cds instance that was used to compile the project when determining the service.
|
|
203
|
-
*/
|
|
204
|
-
capType?: CapRuntime;
|
|
205
|
-
/**
|
|
206
|
-
* The relative path (from the `projectPath`) to the app folder
|
|
207
|
-
*/
|
|
208
|
-
appPath?: string;
|
|
209
|
-
}
|
|
210
178
|
export interface CapServiceChoice extends ListChoiceOptions {
|
|
211
179
|
value: CapService;
|
|
212
180
|
}
|
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": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -47,10 +47,11 @@
|
|
|
47
47
|
"@types/lodash": "4.14.202",
|
|
48
48
|
"jest-extended": "3.2.4",
|
|
49
49
|
"@sap-ux/fiori-generator-shared": "0.7.21",
|
|
50
|
-
"@sap-ux/fiori-elements-writer": "2.0.
|
|
51
|
-
"@sap-ux/fiori-freestyle-writer": "2.0.
|
|
50
|
+
"@sap-ux/fiori-elements-writer": "2.0.4",
|
|
51
|
+
"@sap-ux/fiori-freestyle-writer": "2.0.3",
|
|
52
52
|
"@sap-ux/feature-toggle": "0.2.3",
|
|
53
|
-
"@sap-ux/odata-service-writer": "0.25.4"
|
|
53
|
+
"@sap-ux/odata-service-writer": "0.25.4",
|
|
54
|
+
"@sap-ux/cap-config-writer": "0.9.0"
|
|
54
55
|
},
|
|
55
56
|
"engines": {
|
|
56
57
|
"node": ">=18.x"
|