@sap-ux/generator-adp 0.8.16 → 0.8.17
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.
|
@@ -54,7 +54,7 @@ class AddNewModelGenerator extends sub_gen_base_1.default {
|
|
|
54
54
|
await this.handleRuntimeCrash(this.validationError.message);
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
this.answers = await this.prompt((0, adp_tooling_1.getPromptsForNewModel)(this.projectPath, this.variant.layer));
|
|
57
|
+
this.answers = await this.prompt(await (0, adp_tooling_1.getPromptsForNewModel)(this.projectPath, this.variant.layer));
|
|
58
58
|
this.logger.log(`Current answers\n${JSON.stringify(this.answers, null, 2)}`);
|
|
59
59
|
}
|
|
60
60
|
async writing() {
|
package/generators/app/index.js
CHANGED
|
@@ -508,8 +508,11 @@ class default_1 extends yeoman_generator_1.default {
|
|
|
508
508
|
}
|
|
509
509
|
const html5RepoRuntimeGuid = this.cfPrompter.html5RepoRuntimeGuid;
|
|
510
510
|
const serviceInstanceGuid = this.cfPrompter.serviceInstanceGuid;
|
|
511
|
-
const
|
|
511
|
+
const backendUrls = this.cfPrompter.backendUrls;
|
|
512
512
|
const oauthPaths = this.cfPrompter.oauthPaths;
|
|
513
|
+
const serviceInfo = await (0, adp_tooling_1.getServiceInstanceKeys)({
|
|
514
|
+
names: [this.cfServicesAnswers.businessService ?? '']
|
|
515
|
+
}, this.logger);
|
|
513
516
|
const config = (0, adp_tooling_1.getCfConfig)({
|
|
514
517
|
attributeAnswers: this.attributeAnswers,
|
|
515
518
|
cfServicesAnswers: this.cfServicesAnswers,
|
|
@@ -518,12 +521,13 @@ class default_1 extends yeoman_generator_1.default {
|
|
|
518
521
|
manifest,
|
|
519
522
|
html5RepoRuntimeGuid,
|
|
520
523
|
serviceInstanceGuid,
|
|
521
|
-
|
|
524
|
+
backendUrls,
|
|
522
525
|
oauthPaths,
|
|
523
526
|
projectPath,
|
|
524
527
|
publicVersions,
|
|
525
528
|
packageJson: (0, deps_1.getPackageInfo)(),
|
|
526
|
-
toolsId: this.toolsId
|
|
529
|
+
toolsId: this.toolsId,
|
|
530
|
+
serviceInfo
|
|
527
531
|
});
|
|
528
532
|
if (config.options) {
|
|
529
533
|
config.options.templatePathOverwrite = (0, templates_1.getTemplatesOverwritePath)();
|
|
@@ -62,11 +62,11 @@ export declare class CFServicesPrompter {
|
|
|
62
62
|
*/
|
|
63
63
|
get serviceInstanceGuid(): string | undefined;
|
|
64
64
|
/**
|
|
65
|
-
* Returns
|
|
65
|
+
* Returns all backend URLs from service keys endpoints.
|
|
66
66
|
*
|
|
67
|
-
* @returns {string
|
|
67
|
+
* @returns {string[]} Array of backend URLs from all endpoints.
|
|
68
68
|
*/
|
|
69
|
-
get
|
|
69
|
+
get backendUrls(): string[];
|
|
70
70
|
/**
|
|
71
71
|
* Returns the OAuth paths extracted from xs-app.json routes that have a source property.
|
|
72
72
|
*
|
|
@@ -78,13 +78,13 @@ class CFServicesPrompter {
|
|
|
78
78
|
return this.businessServiceInfo?.serviceInstance?.guid;
|
|
79
79
|
}
|
|
80
80
|
/**
|
|
81
|
-
* Returns
|
|
81
|
+
* Returns all backend URLs from service keys endpoints.
|
|
82
82
|
*
|
|
83
|
-
* @returns {string
|
|
83
|
+
* @returns {string[]} Array of backend URLs from all endpoints.
|
|
84
84
|
*/
|
|
85
|
-
get
|
|
85
|
+
get backendUrls() {
|
|
86
86
|
const serviceKeys = this.businessServiceInfo?.serviceKeys ?? [];
|
|
87
|
-
return (0, adp_tooling_1.
|
|
87
|
+
return (0, adp_tooling_1.getBackendUrlsFromServiceKeys)(serviceKeys);
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
90
90
|
* Returns the OAuth paths extracted from xs-app.json routes that have a source property.
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"displayName": "SAPUI5 Adaptation Project",
|
|
4
4
|
"homepage": "https://help.sap.com/viewer/584e0bcbfd4a4aff91c815cefa0bce2d/Cloud/en-US/ada9567b767941aba8d49fdb4fdedea7.html",
|
|
5
5
|
"description": "Adaptation project allows you to create an app variant for an existing SAP Fiori elements-based or SAPUI5 freestyle application, without changing the original application.",
|
|
6
|
-
"version": "0.8.
|
|
6
|
+
"version": "0.8.17",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -30,19 +30,19 @@
|
|
|
30
30
|
"i18next": "25.8.0",
|
|
31
31
|
"yeoman-generator": "5.10.0",
|
|
32
32
|
"uuid": "10.0.0",
|
|
33
|
-
"@sap-ux/adp-tooling": "0.18.
|
|
33
|
+
"@sap-ux/adp-tooling": "0.18.62",
|
|
34
34
|
"@sap-ux/axios-extension": "1.25.11",
|
|
35
35
|
"@sap-ux/btp-utils": "1.1.8",
|
|
36
36
|
"@sap-ux/feature-toggle": "0.3.6",
|
|
37
|
-
"@sap-ux/inquirer-common": "0.11.
|
|
37
|
+
"@sap-ux/inquirer-common": "0.11.4",
|
|
38
38
|
"@sap-ux/logger": "0.8.1",
|
|
39
|
-
"@sap-ux/project-access": "1.35.
|
|
39
|
+
"@sap-ux/project-access": "1.35.3",
|
|
40
40
|
"@sap-ux/store": "1.5.5",
|
|
41
41
|
"@sap-ux/system-access": "0.6.50",
|
|
42
|
-
"@sap-ux/project-input-validator": "0.6.
|
|
43
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
44
|
-
"@sap-ux/odata-service-writer": "0.29.
|
|
45
|
-
"@sap-ux/telemetry": "0.6.
|
|
42
|
+
"@sap-ux/project-input-validator": "0.6.55",
|
|
43
|
+
"@sap-ux/fiori-generator-shared": "0.13.70",
|
|
44
|
+
"@sap-ux/odata-service-writer": "0.29.18",
|
|
45
|
+
"@sap-ux/telemetry": "0.6.71"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@jest/types": "30.0.1",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"fs-extra": "10.0.0",
|
|
58
58
|
"rimraf": "6.1.2",
|
|
59
59
|
"yeoman-test": "6.3.0",
|
|
60
|
-
"@sap-ux/deploy-config-sub-generator": "0.5.
|
|
60
|
+
"@sap-ux/deploy-config-sub-generator": "0.5.77"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|
|
63
63
|
"node": ">=20.x"
|