@sap-ux/ui-service-sub-generator 0.0.40 → 0.0.42
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.
package/generators/app/utils.js
CHANGED
|
@@ -76,7 +76,12 @@ exports.writeBASMetadata = writeBASMetadata;
|
|
|
76
76
|
*/
|
|
77
77
|
function getRelativeUrlFromContent(content) {
|
|
78
78
|
const contentJson = JSON.parse(content);
|
|
79
|
-
|
|
79
|
+
let serviceNamespace = utils_1.SAP_NAMESPACE;
|
|
80
|
+
if (contentJson.general?.namespace?.startsWith('/')) {
|
|
81
|
+
// set namespace to value from suggested content, removing leading and trailing slashes
|
|
82
|
+
serviceNamespace = contentJson.general.namespace.replace(/^\/|\/$/g, '');
|
|
83
|
+
}
|
|
84
|
+
return `/sap/opu/odata4/${serviceNamespace}/${contentJson.businessService.serviceBinding.serviceBindingName}/srvd/${serviceNamespace}/${contentJson.businessService.serviceDefinition.serviceDefinitionName}/0001/`;
|
|
80
85
|
}
|
|
81
86
|
exports.getRelativeUrlFromContent = getRelativeUrlFromContent;
|
|
82
87
|
/**
|
|
@@ -11,4 +11,5 @@ export declare const cdsUri = "/sap/bc/adt/ddic/ddl/sources/";
|
|
|
11
11
|
export declare const UI_SERVICE_CACHE = "$ui-service-cache";
|
|
12
12
|
export declare const SERVICE_GENERATION_SUCCESS = "SERVICE_GENERATION_SUCCESS";
|
|
13
13
|
export declare const SERVICE_GENERATION_FAIL = "SERVICE_GENERATION_FAIL";
|
|
14
|
+
export declare const SAP_NAMESPACE = "sap";
|
|
14
15
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SERVICE_GENERATION_FAIL = exports.SERVICE_GENERATION_SUCCESS = exports.UI_SERVICE_CACHE = exports.cdsUri = exports.boUri = exports.prompts = exports.STEP_SERVICE_CONFIG = exports.STEP_SAP_SYSTEM_CONFIG = void 0;
|
|
3
|
+
exports.SAP_NAMESPACE = exports.SERVICE_GENERATION_FAIL = exports.SERVICE_GENERATION_SUCCESS = exports.UI_SERVICE_CACHE = exports.cdsUri = exports.boUri = exports.prompts = exports.STEP_SERVICE_CONFIG = exports.STEP_SAP_SYSTEM_CONFIG = void 0;
|
|
4
4
|
exports.STEP_SAP_SYSTEM_CONFIG = 'SAP_SYSTEM_CONFIG';
|
|
5
5
|
exports.STEP_SERVICE_CONFIG = 'SERVICE_CONFIG';
|
|
6
6
|
exports.prompts = [
|
|
@@ -17,4 +17,5 @@ exports.cdsUri = '/sap/bc/adt/ddic/ddl/sources/';
|
|
|
17
17
|
exports.UI_SERVICE_CACHE = '$ui-service-cache';
|
|
18
18
|
exports.SERVICE_GENERATION_SUCCESS = 'SERVICE_GENERATION_SUCCESS';
|
|
19
19
|
exports.SERVICE_GENERATION_FAIL = 'SERVICE_GENERATION_FAIL';
|
|
20
|
+
exports.SAP_NAMESPACE = 'sap';
|
|
20
21
|
//# sourceMappingURL=constants.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/ui-service-sub-generator",
|
|
3
3
|
"description": "Generator for creating UI Service",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.42",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
"@sap-devx/yeoman-ui-types": "1.16.9",
|
|
23
23
|
"i18next": "23.5.1",
|
|
24
24
|
"yeoman-generator": "5.10.0",
|
|
25
|
-
"@sap-ux/axios-extension": "1.20.
|
|
25
|
+
"@sap-ux/axios-extension": "1.20.3",
|
|
26
26
|
"@sap-ux/btp-utils": "1.0.3",
|
|
27
|
-
"@sap-ux/feature-toggle": "0.2.
|
|
27
|
+
"@sap-ux/feature-toggle": "0.2.4",
|
|
28
28
|
"@sap-ux/fiori-generator-shared": "0.11.3",
|
|
29
|
-
"@sap-ux/inquirer-common": "0.6.
|
|
29
|
+
"@sap-ux/inquirer-common": "0.6.43",
|
|
30
30
|
"@sap-ux/logger": "0.6.0",
|
|
31
|
-
"@sap-ux/system-access": "0.5.
|
|
32
|
-
"@sap-ux/
|
|
33
|
-
"@sap-ux/
|
|
31
|
+
"@sap-ux/system-access": "0.5.39",
|
|
32
|
+
"@sap-ux/ui-service-inquirer": "0.0.42",
|
|
33
|
+
"@sap-ux/telemetry": "0.5.78"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@sap/service-provider-apis": "2.1.5",
|