@sap-ux/fiori-migration-writer 1.0.0 → 1.1.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,7 +1,8 @@
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 { Annotations, ODataVersion } from '@sap-ux/axios-extension';
4
+ import type { ODataVersion } from '@sap-ux/axios-extension';
5
+ import type { BaseProject, BaseService } from '@sap-ux/fiori-generator-shared';
5
6
  import type { Editor } from 'mem-fs-editor';
6
7
  export type { ProjectFolder } from './types/project-folder.js';
7
8
  export { isProjectFolderArray } from './types/project-folder.js';
@@ -75,7 +76,12 @@ export interface EntityConfig {
75
76
  Role?: string;
76
77
  };
77
78
  }
78
- export interface ProjectMigrate extends Project {
79
+ export interface ProjectMigrate extends BaseProject {
80
+ enableCodeAssist: boolean;
81
+ enableEslint: boolean;
82
+ enableTypeScript: boolean;
83
+ manifestVersion: string;
84
+ enableNPMWorkspaces?: boolean;
79
85
  flpAppId?: string;
80
86
  appId?: string;
81
87
  entityConfig?: EntityConfig;
@@ -215,30 +221,6 @@ export type MigratableFolder = {
215
221
  libPath?: string;
216
222
  };
217
223
  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
- }
242
224
  /**
243
225
  * User credentials for authentication.
244
226
  *
@@ -264,32 +246,21 @@ export declare const CapType: {
264
246
  readonly JAVA: "Java";
265
247
  };
266
248
  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];
272
249
  export declare const SapSystemSourceType: {
273
250
  readonly SCP: "SCP";
274
251
  readonly ON_PREM: "ON_PREM";
275
252
  readonly S4HC: "S4HC";
276
253
  };
277
254
  export type SapSystemSourceType = (typeof SapSystemSourceType)[keyof typeof SapSystemSourceType];
278
- export interface Service {
255
+ export interface Service extends BaseService {
279
256
  host: string;
280
- client?: string;
281
257
  scp?: boolean;
282
258
  destination?: string;
283
259
  destinationInstance?: string;
284
- servicePath?: string;
285
260
  edmx: string;
286
- annotations?: Annotations[];
287
261
  version?: ODataVersion;
288
262
  source: DatasourceType;
289
263
  sapSystemSource?: SapSystemSourceType;
290
- localEdmxFilePath?: string;
291
- destinationAuthType?: string;
292
- ignoreCertError?: boolean;
293
264
  }
294
265
  interface Ui5YamlProps {
295
266
  ui5Version: string;
@@ -32,10 +32,6 @@ 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
- };
39
35
  export const SapSystemSourceType = {
40
36
  SCP: 'SCP',
41
37
  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.0.0",
13
+ "version": "1.1.0",
14
14
  "license": "Apache-2.0",
15
15
  "main": "dist/index.js",
16
16
  "files": [
@@ -37,8 +37,10 @@
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.0",
40
+ "@sap-ux/adp-tooling": "1.2.1",
41
41
  "@sap-ux/axios-extension": "2.1.6",
42
+ "@sap-ux/btp-utils": "2.0.8",
43
+ "@sap-ux/fiori-generator-shared": "1.3.0",
42
44
  "@sap-ux/i18n": "1.0.7",
43
45
  "@sap-ux/launch-config": "1.0.28",
44
46
  "@sap-ux/nodejs-utils": "1.0.14",
@@ -46,8 +48,7 @@
46
48
  "@sap-ux/store": "2.0.8",
47
49
  "@sap-ux/ui5-application-writer": "2.1.7",
48
50
  "@sap-ux/ui5-config": "1.0.11",
49
- "@sap-ux/ui5-info": "1.0.7",
50
- "@sap-ux/btp-utils": "2.0.8"
51
+ "@sap-ux/ui5-info": "1.0.7"
51
52
  },
52
53
  "devDependencies": {
53
54
  "@jest/globals": "30.5.2",