@sap-ux/fiori-app-sub-generator 0.5.5 → 0.5.7
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.
|
@@ -155,7 +155,7 @@ async function transformState({ project, service, floorplan, entityRelatedConfig
|
|
|
155
155
|
name: types_1.MAIN_DATASOURCE_NAME,
|
|
156
156
|
client: service.client,
|
|
157
157
|
model: appConfig.template?.type === fiori_elements_writer_1.TemplateType.OverviewPage ? types_1.MAIN_MODEL_NAME : '', // OVP requires a named default model
|
|
158
|
-
previewSettings: {},
|
|
158
|
+
previewSettings: service.previewSettings ?? {},
|
|
159
159
|
annotations: project.skipAnnotations !== true
|
|
160
160
|
? await (0, utils_1.getAnnotations)(project.name, service.annotations?.[0], service?.capService)
|
|
161
161
|
: undefined,
|
|
@@ -181,7 +181,7 @@ async function transformState({ project, service, floorplan, entityRelatedConfig
|
|
|
181
181
|
}
|
|
182
182
|
else if (service.connectedSystem?.backendSystem?.serviceKeys ||
|
|
183
183
|
// If 'cloud' write `scp` property to yamls to enable preview on VSCode (using oAuth)
|
|
184
|
-
((0, fiori_generator_shared_1.getHostEnvironment)() === fiori_generator_shared_1.hostEnvironment.
|
|
184
|
+
((0, fiori_generator_shared_1.getHostEnvironment)() === fiori_generator_shared_1.hostEnvironment.bas &&
|
|
185
185
|
service.connectedSystem?.destination &&
|
|
186
186
|
(0, btp_utils_1.isAbapEnvironmentOnBtp)(service.connectedSystem?.destination))) {
|
|
187
187
|
appConfig.service.previewSettings = { scp: true };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AuthenticationType } from '@sap-ux/store';
|
|
1
2
|
import type { Annotations } from '@sap-ux/axios-extension';
|
|
2
3
|
import type { CapServiceCdsInfo } from '@sap-ux/cap-config-writer';
|
|
3
4
|
import type { CdsUi5PluginInfo, UI5FlexLayer } from '@sap-ux/project-access';
|
|
@@ -67,6 +68,13 @@ export interface Service {
|
|
|
67
68
|
destinationAuthType?: string;
|
|
68
69
|
apiHubConfig?: ApiHubConfig;
|
|
69
70
|
ignoreCertError?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Can be set by adaptors if preview settings have been determined
|
|
73
|
+
*/
|
|
74
|
+
previewSettings?: {
|
|
75
|
+
scp?: boolean;
|
|
76
|
+
authenticationType?: AuthenticationType;
|
|
77
|
+
};
|
|
70
78
|
}
|
|
71
79
|
/**
|
|
72
80
|
* Defines the api hub service properties or enterprise and non-enterprise versions
|
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.
|
|
4
|
+
"version": "0.5.7",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"uuid": "11.0.5",
|
|
31
31
|
"yeoman-generator": "5.10.0",
|
|
32
32
|
"@sap-ux/annotation-generator": "0.3.40",
|
|
33
|
-
"@sap-ux/axios-extension": "1.22.
|
|
33
|
+
"@sap-ux/axios-extension": "1.22.2",
|
|
34
34
|
"@sap-ux/btp-utils": "1.1.0",
|
|
35
35
|
"@sap-ux/cap-config-writer": "0.10.9",
|
|
36
36
|
"@sap-ux/feature-toggle": "0.3.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@sap-ux/fiori-generator-shared": "0.12.8",
|
|
40
40
|
"@sap-ux/fiori-tools-settings": "0.2.0",
|
|
41
41
|
"@sap-ux/launch-config": "0.10.4",
|
|
42
|
-
"@sap-ux/odata-service-inquirer": "2.5.
|
|
42
|
+
"@sap-ux/odata-service-inquirer": "2.5.3",
|
|
43
43
|
"@sap-ux/odata-service-writer": "0.27.5",
|
|
44
44
|
"@sap-ux/project-access": "1.30.2",
|
|
45
45
|
"@sap-ux/store": "1.1.0",
|
|
@@ -62,9 +62,9 @@
|
|
|
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.
|
|
66
|
-
"@sap-ux/cf-deploy-config-inquirer": "0.3.
|
|
67
|
-
"@sap-ux/flp-config-sub-generator": "0.2.
|
|
65
|
+
"@sap-ux/abap-deploy-config-inquirer": "1.4.23",
|
|
66
|
+
"@sap-ux/cf-deploy-config-inquirer": "0.3.15",
|
|
67
|
+
"@sap-ux/flp-config-sub-generator": "0.2.33",
|
|
68
68
|
"@sap-ux/inquirer-common": "0.7.13",
|
|
69
69
|
"@sap-ux/jest-file-matchers": "0.2.2",
|
|
70
70
|
"@sap-ux/logger": "0.7.0"
|