@sap-ux/cap-config-writer 0.8.4 → 0.9.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.
@@ -1,4 +1,4 @@
1
- import type { CapService } from '@sap-ux/odata-service-inquirer';
1
+ import type { CdsVersionInfo } from '@sap-ux/project-access';
2
2
  export type CdsUi5PluginInfo = {
3
3
  /**
4
4
  * Convienience property. The CDS UI5 plugin is considered enabled if `hasCdsUi5Plugin`, `hasMinCdsVersion`, `isWorkspaceEnabled` are all true.
@@ -17,6 +17,38 @@ export type CdsUi5PluginInfo = {
17
17
  */
18
18
  hasCdsUi5Plugin: boolean;
19
19
  };
20
+ export type CapRuntime = 'Node.js' | 'Java';
21
+ export interface CapService {
22
+ /**
23
+ * The path to the CAP project.
24
+ */
25
+ projectPath: string;
26
+ /**
27
+ * The CDS info for the Cds instance that was used to compile the project when determining the service.
28
+ */
29
+ cdsVersionInfo?: CdsVersionInfo;
30
+ /**
31
+ * The name of the CAP service as identified by the cds model.
32
+ */
33
+ serviceName: string;
34
+ /**
35
+ * The URL path to the service, as specfied in the manifest.json of generated apps
36
+ * This is also provided as `OdataServicePromptAnswers` property `servicePath`
37
+ */
38
+ urlPath?: string;
39
+ /**
40
+ * The relative path (from the `projectPath`) to the service cds file.
41
+ */
42
+ serviceCdsPath?: string;
43
+ /**
44
+ * The runtime of the Cds instance that was used to compile the project when determining the service.
45
+ */
46
+ capType?: CapRuntime;
47
+ /**
48
+ * The relative path (from the `projectPath`) to the app folder
49
+ */
50
+ appPath?: string;
51
+ }
20
52
  export interface CapServiceCdsInfo extends CapService {
21
53
  cdsUi5PluginInfo: CdsUi5PluginInfo;
22
54
  }
@@ -1,4 +1,4 @@
1
- import type { CapRuntime } from '@sap-ux/odata-service-inquirer';
1
+ import type { CapRuntime } from '../cap-config/types';
2
2
  /**
3
3
  * Generates a launch text for the launching of applications.
4
4
  *
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { checkCdsUi5PluginEnabled, enableCdsUi5Plugin, satisfiesMinCdsVersion } from './cap-config';
2
+ export type { CapService, CapRuntime } from './cap-config/types';
2
3
  export type { CdsUi5PluginInfo, CapServiceCdsInfo, CapProjectSettings } from './cap-config/types';
3
4
  export * from './cap-writer';
4
5
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/cap-config-writer",
3
3
  "description": "Add or update configuration for SAP CAP projects",
4
- "version": "0.8.4",
4
+ "version": "0.9.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -32,8 +32,7 @@
32
32
  "devDependencies": {
33
33
  "@types/mem-fs": "1.1.2",
34
34
  "@types/mem-fs-editor": "7.0.1",
35
- "@types/semver": "7.5.2",
36
- "@sap-ux/odata-service-inquirer": "1.2.5"
35
+ "@types/semver": "7.5.2"
37
36
  },
38
37
  "engines": {
39
38
  "node": ">=18.x"