@sap-ux/inquirer-common 0.8.3 → 0.8.5
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/prompts/helpers.d.ts +4 -4
- package/dist/prompts/helpers.js +0 -10
- package/package.json +3 -3
|
@@ -51,7 +51,7 @@ export declare function extendWithOptions<T extends YUIQuestion = YUIQuestion>(q
|
|
|
51
51
|
* NOTE: This constant is primarily used by odata-service-inquirer but is exported
|
|
52
52
|
* here to maintain backward compatibility with external packages that import it.
|
|
53
53
|
*/
|
|
54
|
-
export declare const transformationsRequiredForAnalyticalTable: readonly ["filter", "identity", "orderby", "
|
|
54
|
+
export declare const transformationsRequiredForAnalyticalTable: readonly ["filter", "identity", "orderby", "skip", "top", "groupby", "aggregate", "concat"];
|
|
55
55
|
/**
|
|
56
56
|
* Checks if the given entity set has aggregate transformations.
|
|
57
57
|
* Returns true if ANY transformations are present in either entity set or entity type annotations.
|
|
@@ -78,7 +78,7 @@ export declare function filterAggregateTransformations(entitySets: EntitySet[]):
|
|
|
78
78
|
* @param requiredTransformations Optional array of specific transformations to check for. If not provided, checks for any transformations.
|
|
79
79
|
* @returns true if the entity set has the required transformations, false otherwise.
|
|
80
80
|
*/
|
|
81
|
-
export declare function hasAggregateTransformationsForEntity(metadata: ConvertedMetadata, entitySetName
|
|
81
|
+
export declare function hasAggregateTransformationsForEntity(metadata: ConvertedMetadata, entitySetName: string, requiredTransformations?: readonly string[]): boolean;
|
|
82
82
|
/**
|
|
83
83
|
* Checks if the given entity set name has a Hierarchy.RecursiveHierarchy annotation in the metadata.
|
|
84
84
|
*
|
|
@@ -86,7 +86,7 @@ export declare function hasAggregateTransformationsForEntity(metadata: Converted
|
|
|
86
86
|
* @param entitySetName The entity set name to check for recursive hierarchy annotation.
|
|
87
87
|
* @returns true if the entity set has Hierarchy.RecursiveHierarchy annotation, false otherwise.
|
|
88
88
|
*/
|
|
89
|
-
export declare function hasRecursiveHierarchyForEntity(metadata: ConvertedMetadata, entitySetName
|
|
89
|
+
export declare function hasRecursiveHierarchyForEntity(metadata: ConvertedMetadata, entitySetName: string): boolean;
|
|
90
90
|
/**
|
|
91
91
|
* Gets the qualifier from a Hierarchy.RecursiveHierarchy annotation for the given entity set.
|
|
92
92
|
*
|
|
@@ -94,7 +94,7 @@ export declare function hasRecursiveHierarchyForEntity(metadata: ConvertedMetada
|
|
|
94
94
|
* @param entitySetName The entity set name to check for recursive hierarchy annotation.
|
|
95
95
|
* @returns The qualifier string if found, undefined otherwise.
|
|
96
96
|
*/
|
|
97
|
-
export declare function getRecursiveHierarchyQualifier(metadata: ConvertedMetadata, entitySetName
|
|
97
|
+
export declare function getRecursiveHierarchyQualifier(metadata: ConvertedMetadata, entitySetName: string): string | undefined;
|
|
98
98
|
/**
|
|
99
99
|
* Checks if the given entity set has aggregate transformations.
|
|
100
100
|
* If specific transformations are provided, checks if ALL of those transformations are present.
|
package/dist/prompts/helpers.js
CHANGED
|
@@ -156,7 +156,6 @@ exports.transformationsRequiredForAnalyticalTable = [
|
|
|
156
156
|
'filter',
|
|
157
157
|
'identity',
|
|
158
158
|
'orderby',
|
|
159
|
-
'search',
|
|
160
159
|
'skip',
|
|
161
160
|
'top',
|
|
162
161
|
'groupby',
|
|
@@ -200,9 +199,6 @@ function filterAggregateTransformations(entitySets) {
|
|
|
200
199
|
* @returns true if the entity set has the required transformations, false otherwise.
|
|
201
200
|
*/
|
|
202
201
|
function hasAggregateTransformationsForEntity(metadata, entitySetName, requiredTransformations) {
|
|
203
|
-
if (!entitySetName) {
|
|
204
|
-
return false;
|
|
205
|
-
}
|
|
206
202
|
const entitySet = findEntitySetByName(metadata, entitySetName);
|
|
207
203
|
if (!entitySet) {
|
|
208
204
|
return false;
|
|
@@ -217,9 +213,6 @@ function hasAggregateTransformationsForEntity(metadata, entitySetName, requiredT
|
|
|
217
213
|
* @returns true if the entity set has Hierarchy.RecursiveHierarchy annotation, false otherwise.
|
|
218
214
|
*/
|
|
219
215
|
function hasRecursiveHierarchyForEntity(metadata, entitySetName) {
|
|
220
|
-
if (!entitySetName) {
|
|
221
|
-
return false;
|
|
222
|
-
}
|
|
223
216
|
const entitySet = findEntitySetByName(metadata, entitySetName);
|
|
224
217
|
if (!entitySet) {
|
|
225
218
|
return false;
|
|
@@ -234,9 +227,6 @@ function hasRecursiveHierarchyForEntity(metadata, entitySetName) {
|
|
|
234
227
|
* @returns The qualifier string if found, undefined otherwise.
|
|
235
228
|
*/
|
|
236
229
|
function getRecursiveHierarchyQualifier(metadata, entitySetName) {
|
|
237
|
-
if (!entitySetName) {
|
|
238
|
-
return undefined;
|
|
239
|
-
}
|
|
240
230
|
const entitySet = findEntitySetByName(metadata, entitySetName);
|
|
241
231
|
if (!entitySet) {
|
|
242
232
|
return undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sap-ux/inquirer-common",
|
|
3
3
|
"description": "Commonly used shared functionality and types to support inquirer modules.",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.5",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/SAP/open-ux-tools.git",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"semver": "7.5.4",
|
|
33
33
|
"@sap-ux/btp-utils": "1.1.4",
|
|
34
34
|
"@sap-ux/feature-toggle": "0.3.2",
|
|
35
|
-
"@sap-ux/fiori-generator-shared": "0.13.
|
|
35
|
+
"@sap-ux/fiori-generator-shared": "0.13.27",
|
|
36
36
|
"@sap-ux/guided-answers-helper": "0.4.0",
|
|
37
|
-
"@sap-ux/telemetry": "0.6.
|
|
37
|
+
"@sap-ux/telemetry": "0.6.32",
|
|
38
38
|
"@sap-ux/logger": "0.7.0",
|
|
39
39
|
"@sap-ux/ui5-info": "0.13.0"
|
|
40
40
|
},
|