@sap-ux/adp-tooling 0.14.37 → 0.14.38
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/dist/base/helper.js +31 -2
- package/package.json +4 -4
package/dist/base/helper.js
CHANGED
|
@@ -118,17 +118,46 @@ function filterAndMapInboundsToManifest(inbounds) {
|
|
|
118
118
|
if (!inbounds || inbounds.length === 0) {
|
|
119
119
|
return undefined;
|
|
120
120
|
}
|
|
121
|
-
|
|
121
|
+
const filteredInbounds = inbounds.reduce((acc, inbound) => {
|
|
122
122
|
// Skip if hideLauncher is not false
|
|
123
123
|
if (!inbound?.content || inbound.content.hideLauncher !== false) {
|
|
124
124
|
return acc;
|
|
125
125
|
}
|
|
126
|
-
const { semanticObject, action } = inbound.content;
|
|
126
|
+
const { semanticObject, action, signature } = inbound.content;
|
|
127
127
|
if (semanticObject && action) {
|
|
128
128
|
const key = `${semanticObject}-${action}`;
|
|
129
|
+
// Temporary filtration of parameters to avoid issues with merged manifest until release of ABAP Platform Cloud 2508
|
|
130
|
+
if (signature?.parameters) {
|
|
131
|
+
filterIboundsParameters(signature);
|
|
132
|
+
}
|
|
129
133
|
acc[key] = inbound.content;
|
|
130
134
|
}
|
|
131
135
|
return acc;
|
|
132
136
|
}, {});
|
|
137
|
+
return Object.keys(filteredInbounds).length === 0 ? undefined : filteredInbounds;
|
|
138
|
+
}
|
|
139
|
+
/**
|
|
140
|
+
* Filters parameters of the inbound signature to remove invalid or incomplete entries.
|
|
141
|
+
*
|
|
142
|
+
* @param {ManifestNamespace.SignatureDef} inboundSinature - The inbound signature definition to filter.
|
|
143
|
+
*/
|
|
144
|
+
function filterIboundsParameters(inboundSinature) {
|
|
145
|
+
Object.keys(inboundSinature.parameters).forEach((paramKey) => {
|
|
146
|
+
const param = inboundSinature.parameters[paramKey];
|
|
147
|
+
if (param.defaultValue && (!param.defaultValue.format || !param.defaultValue.value)) {
|
|
148
|
+
delete inboundSinature.parameters[paramKey];
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (param.filter && !param.filter.format) {
|
|
152
|
+
delete inboundSinature.parameters[paramKey].filter;
|
|
153
|
+
}
|
|
154
|
+
if (param.launcherValue) {
|
|
155
|
+
Object.keys(param.launcherValue).forEach((launcherKey) => {
|
|
156
|
+
if (launcherKey !== 'value') {
|
|
157
|
+
delete param.launcherValue[launcherKey];
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
});
|
|
133
162
|
}
|
|
134
163
|
//# sourceMappingURL=helper.js.map
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Aadp-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.14.
|
|
12
|
+
"version": "0.14.38",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
"@sap-ux/axios-extension": "1.22.3",
|
|
37
37
|
"@sap-ux/btp-utils": "1.1.0",
|
|
38
38
|
"@sap-ux/inquirer-common": "0.7.20",
|
|
39
|
-
"@sap-ux/project-access": "1.30.6",
|
|
40
39
|
"@sap-ux/logger": "0.7.0",
|
|
40
|
+
"@sap-ux/project-access": "1.30.6",
|
|
41
41
|
"@sap-ux/project-input-validator": "0.6.9",
|
|
42
|
-
"@sap-ux/ui5-config": "0.29.0",
|
|
43
42
|
"@sap-ux/system-access": "0.6.9",
|
|
43
|
+
"@sap-ux/ui5-config": "0.29.0",
|
|
44
44
|
"@sap-ux/ui5-info": "0.12.0",
|
|
45
|
-
"@sap-ux/nodejs-utils": "0.2.1",
|
|
46
45
|
"@sap-ux/odata-service-writer": "0.27.10",
|
|
46
|
+
"@sap-ux/nodejs-utils": "0.2.1",
|
|
47
47
|
"@sap-ux/i18n": "0.3.1",
|
|
48
48
|
"@sap-ux/store": "1.1.1"
|
|
49
49
|
},
|