@sap-ux/fiori-app-sub-generator 0.5.27 → 0.5.29

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,15 +1,13 @@
1
1
  import type { IPrompt as Step } from '@sap-devx/yeoman-ui-types';
2
- import type { Annotations } from '@sap-ux/axios-extension';
3
2
  import { TemplateType as FETemplateType } from '@sap-ux/fiori-elements-writer';
4
3
  import { TemplateType as FFTemplateType } from '@sap-ux/fiori-freestyle-writer';
5
- import type { DeployConfig, FLPConfig } from '@sap-ux/fiori-generator-shared';
4
+ import { AppConfig, type Floorplan, FloorplanFE, FloorplanFF } from '@sap-ux/fiori-generator-shared';
6
5
  import type { CapRuntime, EntityRelatedAnswers } from '@sap-ux/odata-service-inquirer';
7
6
  import { OdataVersion } from '@sap-ux/odata-service-inquirer';
8
7
  import { type UI5ApplicationPromptOptions } from '@sap-ux/ui5-application-inquirer';
9
8
  import type { Answers } from 'inquirer';
10
- import { type ALPOptions, type Project, type Service, type Floorplan, FloorplanFE, FloorplanFF } from './state';
11
- export { Floorplan, FloorplanFE, FloorplanFF };
12
- export type FloorplanKey = keyof typeof FloorplanFE | keyof typeof FloorplanFF;
9
+ import { type ALPOptions, type Project, type Service } from './state';
10
+ export { Floorplan, FloorplanFE, FloorplanFF, AppConfig };
13
11
  type FloorplanAttributesType = {
14
12
  [K in Floorplan]: {
15
13
  supportedODataVersion: OdataVersion[];
@@ -18,58 +16,6 @@ type FloorplanAttributesType = {
18
16
  };
19
17
  };
20
18
  export declare const FloorplanAttributes: FloorplanAttributesType;
21
- /**
22
- * Defines the external interface used to generate in headless mode (no prompts)
23
- * This is a deliberate re-definition of internal interfaces to avoid consumers having
24
- * to update when internal interfaces are changed
25
- * NOTE: Any breaking changes to this interface require a version bump
26
- */
27
- export interface AppConfig {
28
- readonly version: string;
29
- readonly floorplan: FloorplanKey;
30
- project: {
31
- readonly name: string;
32
- targetFolder?: string;
33
- readonly namespace?: string;
34
- readonly title?: string;
35
- readonly description?: string;
36
- readonly ui5Theme?: string;
37
- readonly ui5Version?: string;
38
- readonly localUI5Version?: string;
39
- readonly sapux?: boolean;
40
- readonly skipAnnotations?: boolean;
41
- readonly enableCodeAssist?: boolean;
42
- readonly enableEslint?: boolean;
43
- readonly enableTypeScript?: boolean;
44
- };
45
- service?: {
46
- readonly host?: string;
47
- readonly servicePath?: string;
48
- readonly client?: string;
49
- readonly scp?: boolean;
50
- readonly destination?: string;
51
- readonly destinationInstance?: string;
52
- readonly edmx?: string;
53
- readonly annotations?: Annotations | Annotations[];
54
- readonly capService?: {
55
- readonly projectPath: string;
56
- readonly serviceName: string;
57
- readonly serviceCdsPath: string;
58
- readonly capType?: CapRuntime;
59
- readonly appPath?: string;
60
- };
61
- readonly apiHubApiKey?: string;
62
- };
63
- deployConfig?: DeployConfig;
64
- flpConfig?: FLPConfig;
65
- /**
66
- * Adds telemetry data when passed to generator `@sap/generator-fiori:headless`
67
- */
68
- telemetryData?: {
69
- generationSourceName?: string;
70
- generationSourceVersion?: string;
71
- };
72
- }
73
19
  /**
74
20
  * Defines the entity config property of the external app config interface used to generate in headless mode (no prompts)
75
21
  */
@@ -4,38 +4,38 @@ exports.defaultPromptValues = exports.Template = exports.PROJECT_TYPE = exports.
4
4
  exports.capTypeConversion = capTypeConversion;
5
5
  const fiori_elements_writer_1 = require("@sap-ux/fiori-elements-writer");
6
6
  const fiori_freestyle_writer_1 = require("@sap-ux/fiori-freestyle-writer");
7
+ const fiori_generator_shared_1 = require("@sap-ux/fiori-generator-shared");
8
+ Object.defineProperty(exports, "FloorplanFE", { enumerable: true, get: function () { return fiori_generator_shared_1.FloorplanFE; } });
9
+ Object.defineProperty(exports, "FloorplanFF", { enumerable: true, get: function () { return fiori_generator_shared_1.FloorplanFF; } });
7
10
  const odata_service_inquirer_1 = require("@sap-ux/odata-service-inquirer");
8
11
  const ui5_application_inquirer_1 = require("@sap-ux/ui5-application-inquirer");
9
12
  const constants_1 = require("./constants");
10
- const state_1 = require("./state");
11
- Object.defineProperty(exports, "FloorplanFE", { enumerable: true, get: function () { return state_1.FloorplanFE; } });
12
- Object.defineProperty(exports, "FloorplanFF", { enumerable: true, get: function () { return state_1.FloorplanFF; } });
13
13
  exports.FloorplanAttributes = {
14
- [state_1.FloorplanFE.FE_LROP]: {
14
+ [fiori_generator_shared_1.FloorplanFE.FE_LROP]: {
15
15
  supportedODataVersion: [odata_service_inquirer_1.OdataVersion.v2, odata_service_inquirer_1.OdataVersion.v4],
16
16
  templateType: fiori_elements_writer_1.TemplateType.ListReportObjectPage
17
17
  },
18
- [state_1.FloorplanFE.FE_ALP]: {
18
+ [fiori_generator_shared_1.FloorplanFE.FE_ALP]: {
19
19
  supportedODataVersion: [odata_service_inquirer_1.OdataVersion.v2, odata_service_inquirer_1.OdataVersion.v4],
20
20
  templateType: fiori_elements_writer_1.TemplateType.AnalyticalListPage
21
21
  },
22
- [state_1.FloorplanFE.FE_WORKLIST]: {
22
+ [fiori_generator_shared_1.FloorplanFE.FE_WORKLIST]: {
23
23
  supportedODataVersion: [odata_service_inquirer_1.OdataVersion.v2, odata_service_inquirer_1.OdataVersion.v4],
24
24
  templateType: fiori_elements_writer_1.TemplateType.Worklist
25
25
  },
26
- [state_1.FloorplanFE.FE_FEOP]: {
26
+ [fiori_generator_shared_1.FloorplanFE.FE_FEOP]: {
27
27
  supportedODataVersion: [odata_service_inquirer_1.OdataVersion.v4],
28
28
  templateType: fiori_elements_writer_1.TemplateType.FormEntryObjectPage
29
29
  },
30
- [state_1.FloorplanFE.FE_OVP]: {
30
+ [fiori_generator_shared_1.FloorplanFE.FE_OVP]: {
31
31
  supportedODataVersion: [odata_service_inquirer_1.OdataVersion.v2, odata_service_inquirer_1.OdataVersion.v4],
32
32
  templateType: fiori_elements_writer_1.TemplateType.OverviewPage
33
33
  },
34
- [state_1.FloorplanFE.FE_FPM]: {
34
+ [fiori_generator_shared_1.FloorplanFE.FE_FPM]: {
35
35
  supportedODataVersion: [odata_service_inquirer_1.OdataVersion.v4],
36
36
  templateType: fiori_elements_writer_1.TemplateType.FlexibleProgrammingModel
37
37
  },
38
- [state_1.FloorplanFF.FF_SIMPLE]: {
38
+ [fiori_generator_shared_1.FloorplanFF.FF_SIMPLE]: {
39
39
  supportedODataVersion: [odata_service_inquirer_1.OdataVersion.v2, odata_service_inquirer_1.OdataVersion.v4],
40
40
  templateType: fiori_freestyle_writer_1.TemplateType.Basic
41
41
  }
@@ -6,7 +6,7 @@ import type { TableSelectionMode } from '@sap-ux/fiori-elements-writer';
6
6
  import type { CapService, DatasourceType, EntityRelatedAnswers, OdataServiceAnswers, OdataVersion } from '@sap-ux/odata-service-inquirer';
7
7
  import type { ApiHubType, SapSystemSourceType } from '../types/constants';
8
8
  import type { Script } from './common';
9
- import type { AppGenInfo } from '@sap-ux/fiori-generator-shared';
9
+ import type { AppGenInfo, Floorplan } from '@sap-ux/fiori-generator-shared';
10
10
  export interface Project {
11
11
  targetFolder: string;
12
12
  addDeployConfig?: boolean;
@@ -136,30 +136,4 @@ export interface ALPOptions {
136
136
  smartVariantManagement: boolean;
137
137
  selectionMode: TableSelectionMode;
138
138
  }
139
- /**
140
- * Due to ts(18033) we cannot use the type values directly here:
141
- * FF_SIMPLE = FFTemplateType.Basic // Once https://github.com/microsoft/TypeScript/pull/59475 is merged we can remove the hardcoded values and directly use the template values
142
- */
143
- export declare enum FloorplanFF {
144
- FF_SIMPLE = "basic"
145
- }
146
- /**
147
- * Due to ts(18033) we cannot use the type values directly here:
148
- * Once https://github.com/microsoft/TypeScript/pull/59475 is merged we can remove hardcoded values and directly use the template values
149
- * FE_FPM = FETemplateType.FlexibleProgrammingModel,
150
- * FE_LROP = FETemplateType.ListReportObjectPage,
151
- * FE_OVP = FETemplateType.OverviewPage,
152
- * FE_ALP = FETemplateType.AnalyticalListPage,
153
- * FE_FEOP = FETemplateType.FormEntryObjectPage,
154
- * FE_WORKLIST = FETemplateType.Worklist
155
- */
156
- export declare enum FloorplanFE {
157
- FE_FPM = "fpm",
158
- FE_LROP = "lrop",
159
- FE_OVP = "ovp",
160
- FE_ALP = "alp",
161
- FE_FEOP = "feop",
162
- FE_WORKLIST = "worklist"
163
- }
164
- export type Floorplan = FloorplanFE | FloorplanFF;
165
139
  //# sourceMappingURL=state.d.ts.map
@@ -1,35 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FloorplanFE = exports.FloorplanFF = void 0;
4
- // Union types to expose a single interface property for Floorplan
5
- // This provides a layer of abstraction to isolate internal changes from external headless API consumers
6
- // Since these keys are used as an external API definiton they need to be meaningful
7
- // Note that ordering here determines rendering order
8
- /**
9
- * Due to ts(18033) we cannot use the type values directly here:
10
- * FF_SIMPLE = FFTemplateType.Basic // Once https://github.com/microsoft/TypeScript/pull/59475 is merged we can remove the hardcoded values and directly use the template values
11
- */
12
- var FloorplanFF;
13
- (function (FloorplanFF) {
14
- FloorplanFF["FF_SIMPLE"] = "basic";
15
- })(FloorplanFF || (exports.FloorplanFF = FloorplanFF = {}));
16
- /**
17
- * Due to ts(18033) we cannot use the type values directly here:
18
- * Once https://github.com/microsoft/TypeScript/pull/59475 is merged we can remove hardcoded values and directly use the template values
19
- * FE_FPM = FETemplateType.FlexibleProgrammingModel,
20
- * FE_LROP = FETemplateType.ListReportObjectPage,
21
- * FE_OVP = FETemplateType.OverviewPage,
22
- * FE_ALP = FETemplateType.AnalyticalListPage,
23
- * FE_FEOP = FETemplateType.FormEntryObjectPage,
24
- * FE_WORKLIST = FETemplateType.Worklist
25
- */
26
- var FloorplanFE;
27
- (function (FloorplanFE) {
28
- FloorplanFE["FE_FPM"] = "fpm";
29
- FloorplanFE["FE_LROP"] = "lrop";
30
- FloorplanFE["FE_OVP"] = "ovp";
31
- FloorplanFE["FE_ALP"] = "alp";
32
- FloorplanFE["FE_FEOP"] = "feop";
33
- FloorplanFE["FE_WORKLIST"] = "worklist";
34
- })(FloorplanFE || (exports.FloorplanFE = FloorplanFE = {}));
35
3
  //# sourceMappingURL=state.js.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/fiori-app-sub-generator",
3
3
  "description": "A yeoman (sub) generator that can generate Fiori applications. Not for standalone use.",
4
- "version": "0.5.27",
4
+ "version": "0.5.29",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -32,20 +32,20 @@
32
32
  "@sap-ux/annotation-generator": "0.3.46",
33
33
  "@sap-ux/axios-extension": "1.22.3",
34
34
  "@sap-ux/btp-utils": "1.1.0",
35
- "@sap-ux/cap-config-writer": "0.10.20",
35
+ "@sap-ux/cap-config-writer": "0.10.21",
36
36
  "@sap-ux/feature-toggle": "0.3.0",
37
- "@sap-ux/fiori-elements-writer": "2.5.13",
38
- "@sap-ux/fiori-freestyle-writer": "2.4.24",
39
- "@sap-ux/fiori-generator-shared": "0.13.2",
37
+ "@sap-ux/fiori-elements-writer": "2.5.14",
38
+ "@sap-ux/fiori-freestyle-writer": "2.4.25",
39
+ "@sap-ux/fiori-generator-shared": "0.13.3",
40
40
  "@sap-ux/fiori-tools-settings": "0.2.0",
41
- "@sap-ux/launch-config": "0.10.13",
42
- "@sap-ux/odata-service-inquirer": "2.5.19",
41
+ "@sap-ux/launch-config": "0.10.14",
42
+ "@sap-ux/odata-service-inquirer": "2.5.21",
43
43
  "@sap-ux/odata-service-writer": "0.27.12",
44
44
  "@sap-ux/project-access": "1.30.7",
45
45
  "@sap-ux/store": "1.1.2",
46
46
  "@sap-ux/telemetry": "0.6.10",
47
- "@sap-ux/ui5-application-inquirer": "0.14.29",
48
- "@sap-ux/ui5-info": "0.12.0"
47
+ "@sap-ux/ui5-application-inquirer": "0.14.31",
48
+ "@sap-ux/ui5-info": "0.12.1"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@sap-devx/yeoman-ui-types": "1.16.9",
@@ -62,10 +62,10 @@
62
62
  "mock-spawn": "0.2.6",
63
63
  "rimraf": "5.0.5",
64
64
  "yeoman-test": "6.3.0",
65
- "@sap-ux/abap-deploy-config-inquirer": "1.4.36",
66
- "@sap-ux/cf-deploy-config-inquirer": "0.3.28",
67
- "@sap-ux/flp-config-sub-generator": "0.2.53",
68
- "@sap-ux/inquirer-common": "0.7.25",
65
+ "@sap-ux/abap-deploy-config-inquirer": "1.4.38",
66
+ "@sap-ux/cf-deploy-config-inquirer": "0.3.30",
67
+ "@sap-ux/flp-config-sub-generator": "0.2.55",
68
+ "@sap-ux/inquirer-common": "0.7.27",
69
69
  "@sap-ux/jest-file-matchers": "0.2.4",
70
70
  "@sap-ux/logger": "0.7.0"
71
71
  },