@sap-ux/create 0.15.62 → 0.15.63

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.
@@ -94,6 +94,9 @@ async function addInboundNavigationConfig(basePath, simulate, yamlPath) {
94
94
  */
95
95
  async function getInbounds(basePath, yamlPath, fs, logger, variant) {
96
96
  if (variant.isAdp) {
97
+ if (await (0, adp_tooling_1.isCFEnvironment)(basePath)) {
98
+ return getCfInbounds(basePath, variant.content, logger);
99
+ }
97
100
  const { target, ignoreCertErrors = false } = await (0, adp_tooling_1.getAdpConfig)(basePath, yamlPath);
98
101
  const provider = await (0, system_access_1.createAbapServiceProvider)(target, { ignoreCertErrors }, true, logger);
99
102
  return (0, adp_tooling_1.getBaseAppInbounds)(variant.content.reference, provider);
@@ -101,6 +104,25 @@ async function getInbounds(basePath, yamlPath, fs, logger, variant) {
101
104
  const manifest = await retrieveManifest(basePath, fs);
102
105
  return (0, adp_tooling_1.getInboundsFromManifest)(manifest);
103
106
  }
107
+ /**
108
+ * Retrieves the inbounds for a CF adaptation project using the FDC service.
109
+ *
110
+ * @param basePath - The base path to the project.
111
+ * @param variant - The descriptor variant.
112
+ * @param logger - The logger instance.
113
+ * @returns The inbounds from the FDC service.
114
+ */
115
+ async function getCfInbounds(basePath, variant, logger) {
116
+ const cfConfig = (0, adp_tooling_1.loadCfConfig)(logger);
117
+ if (!cfConfig?.token) {
118
+ throw new Error('CF login required. Please run "cf login" and try again.');
119
+ }
120
+ const appParams = (0, adp_tooling_1.getAppParamsFromUI5Yaml)(basePath);
121
+ if (!appParams.appHostId) {
122
+ throw new Error('Could not determine appHostId from project ui5.yaml configuration.');
123
+ }
124
+ return (0, adp_tooling_1.getCfBaseAppInbounds)(variant.reference, appParams.appHostId, cfConfig, logger);
125
+ }
104
126
  /**
105
127
  * Retrieves the manifest for a Fiori project.
106
128
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/create",
3
3
  "description": "SAP Fiori tools module to add or remove features",
4
- "version": "0.15.62",
4
+ "version": "0.15.63",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -33,19 +33,19 @@
33
33
  "prompts": "2.4.2",
34
34
  "@sap-ux/abap-deploy-config-inquirer": "1.8.7",
35
35
  "@sap-ux/abap-deploy-config-writer": "0.3.6",
36
- "@sap-ux/adp-tooling": "0.18.107",
36
+ "@sap-ux/adp-tooling": "0.18.108",
37
37
  "@sap-ux/app-config-writer": "0.6.131",
38
38
  "@sap-ux/cap-config-writer": "0.12.86",
39
39
  "@sap-ux/logger": "0.8.4",
40
40
  "@sap-ux/mockserver-config-writer": "0.9.68",
41
41
  "@sap-ux/odata-service-writer": "0.31.4",
42
- "@sap-ux/preview-middleware": "0.25.12",
42
+ "@sap-ux/preview-middleware": "0.25.13",
43
43
  "@sap-ux/project-access": "1.35.17",
44
44
  "@sap-ux/system-access": "0.7.4",
45
- "@sap-ux/flp-config-inquirer": "0.4.166",
45
+ "@sap-ux/ui5-config": "0.30.1",
46
+ "@sap-ux/flp-config-inquirer": "0.4.167",
46
47
  "@sap-ux/nodejs-utils": "0.2.19",
47
- "@sap-ux/axios-extension": "1.25.28",
48
- "@sap-ux/ui5-config": "0.30.1"
48
+ "@sap-ux/axios-extension": "1.25.28"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@types/diff": "8.0.0",