@sap-ux/fiori-migration-writer 1.1.0 → 1.2.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,8 +1,7 @@
1
1
  import type { FioriElementsVersion, SapAppSourceTemplate, Manifest } from './project-spec-types.js';
2
2
  import type { MigrationTypes, postMigrationAction } from './utils/constants.js';
3
3
  import type { UI5FlexLayer } from '@sap-ux/project-access';
4
- import type { ODataVersion } from '@sap-ux/axios-extension';
5
- import type { BaseProject, BaseService } from '@sap-ux/fiori-generator-shared';
4
+ import type { Annotations, ODataVersion } from '@sap-ux/axios-extension';
6
5
  import type { Editor } from 'mem-fs-editor';
7
6
  export type { ProjectFolder } from './types/project-folder.js';
8
7
  export { isProjectFolderArray } from './types/project-folder.js';
@@ -76,12 +75,7 @@ export interface EntityConfig {
76
75
  Role?: string;
77
76
  };
78
77
  }
79
- export interface ProjectMigrate extends BaseProject {
80
- enableCodeAssist: boolean;
81
- enableEslint: boolean;
82
- enableTypeScript: boolean;
83
- manifestVersion: string;
84
- enableNPMWorkspaces?: boolean;
78
+ export interface ProjectMigrate extends Project {
85
79
  flpAppId?: string;
86
80
  appId?: string;
87
81
  entityConfig?: EntityConfig;
@@ -221,6 +215,30 @@ export type MigratableFolder = {
221
215
  libPath?: string;
222
216
  };
223
217
  export declare const sapWattCommonSetting = "sap.watt.common.setting";
218
+ export interface Project {
219
+ targetFolder: string;
220
+ addDeployConfig?: boolean;
221
+ addFlpConfig?: boolean;
222
+ name: string;
223
+ namespace?: string;
224
+ title: string;
225
+ description: string;
226
+ ui5Theme: string;
227
+ ui5Version: string;
228
+ ui5FrameworkUrl?: string;
229
+ localUI5Version: string;
230
+ sapux?: boolean;
231
+ skipAnnotations?: boolean;
232
+ enableCodeAssist: boolean;
233
+ enableEslint: boolean;
234
+ enableTypeScript: boolean;
235
+ manifestVersion: string;
236
+ formEntry?: boolean;
237
+ flpAppId?: string;
238
+ minSupportedUI5Version?: string;
239
+ manifestMinUI5Version?: string;
240
+ enableNPMWorkspaces?: boolean;
241
+ }
224
242
  /**
225
243
  * User credentials for authentication.
226
244
  *
@@ -246,21 +264,32 @@ export declare const CapType: {
246
264
  readonly JAVA: "Java";
247
265
  };
248
266
  export type CapType = (typeof CapType)[keyof typeof CapType];
267
+ export declare const ApiHubType: {
268
+ readonly apiHub: "API_HUB";
269
+ readonly apiHubEnterprise: "API_HUB_ENTERPRISE";
270
+ };
271
+ export type ApiHubType = (typeof ApiHubType)[keyof typeof ApiHubType];
249
272
  export declare const SapSystemSourceType: {
250
273
  readonly SCP: "SCP";
251
274
  readonly ON_PREM: "ON_PREM";
252
275
  readonly S4HC: "S4HC";
253
276
  };
254
277
  export type SapSystemSourceType = (typeof SapSystemSourceType)[keyof typeof SapSystemSourceType];
255
- export interface Service extends BaseService {
278
+ export interface Service {
256
279
  host: string;
280
+ client?: string;
257
281
  scp?: boolean;
258
282
  destination?: string;
259
283
  destinationInstance?: string;
284
+ servicePath?: string;
260
285
  edmx: string;
286
+ annotations?: Annotations[];
261
287
  version?: ODataVersion;
262
288
  source: DatasourceType;
263
289
  sapSystemSource?: SapSystemSourceType;
290
+ localEdmxFilePath?: string;
291
+ destinationAuthType?: string;
292
+ ignoreCertError?: boolean;
264
293
  }
265
294
  interface Ui5YamlProps {
266
295
  ui5Version: string;
@@ -32,6 +32,10 @@ export const CapType = {
32
32
  NODE_JS: 'Node.js',
33
33
  JAVA: 'Java'
34
34
  };
35
+ export const ApiHubType = {
36
+ apiHub: 'API_HUB',
37
+ apiHubEnterprise: 'API_HUB_ENTERPRISE'
38
+ };
35
39
  export const SapSystemSourceType = {
36
40
  SCP: 'SCP',
37
41
  ON_PREM: 'ON_PREM',
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "bugs": {
11
11
  "url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Afiori-migration-writer"
12
12
  },
13
- "version": "1.1.0",
13
+ "version": "1.2.0",
14
14
  "license": "Apache-2.0",
15
15
  "main": "dist/index.js",
16
16
  "files": [
@@ -37,18 +37,17 @@
37
37
  "uuid": "11.1.1",
38
38
  "vscode-uri": "3.2.0",
39
39
  "yaml": "2.9.1",
40
- "@sap-ux/adp-tooling": "1.2.1",
40
+ "@sap-ux/adp-tooling": "1.2.2",
41
41
  "@sap-ux/axios-extension": "2.1.6",
42
42
  "@sap-ux/btp-utils": "2.0.8",
43
- "@sap-ux/fiori-generator-shared": "1.3.0",
44
- "@sap-ux/i18n": "1.0.7",
45
- "@sap-ux/launch-config": "1.0.28",
46
43
  "@sap-ux/nodejs-utils": "1.0.14",
47
44
  "@sap-ux/project-access": "2.3.4",
48
45
  "@sap-ux/store": "2.0.8",
49
- "@sap-ux/ui5-application-writer": "2.1.7",
50
46
  "@sap-ux/ui5-config": "1.0.11",
51
- "@sap-ux/ui5-info": "1.0.7"
47
+ "@sap-ux/ui5-application-writer": "2.1.7",
48
+ "@sap-ux/ui5-info": "1.0.7",
49
+ "@sap-ux/i18n": "1.0.7",
50
+ "@sap-ux/launch-config": "1.0.28"
52
51
  },
53
52
  "devDependencies": {
54
53
  "@jest/globals": "30.5.2",
@@ -60,7 +59,7 @@
60
59
  "@types/semver": "7.8.0",
61
60
  "jest-specific-snapshot": "^8.0.0",
62
61
  "rimraf": "6.1.3",
63
- "@sap-ux/eslint-plugin-fiori-tools": "10.18.2"
62
+ "@sap-ux/eslint-plugin-fiori-tools": "10.18.3"
64
63
  },
65
64
  "engines": {
66
65
  "node": ">=22.x"