@sap-ux/odata-service-inquirer 1.0.0 → 1.1.1

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.
@@ -130,13 +130,15 @@ function getNavigationEntityChoices(metadata, odataVersion, mainEntityName) {
130
130
  }
131
131
  /**
132
132
  * Returns only entity sets that have the `Aggregation.ApplySupported` annotation term with the `Transformations` property.
133
+ * This can be found within the entity set annotations or the entity type annotations.
133
134
  *
134
135
  * @param entitySets the entity sets to filter
135
136
  * @returns the filtered entity sets
136
137
  */
137
138
  function filterAggregateTransformations(entitySets) {
138
139
  return entitySets.filter((entitySet) => {
139
- return !!entitySet.annotations?.Aggregation?.ApplySupported?.Transformations;
140
+ return (!!entitySet.annotations?.Aggregation?.ApplySupported?.Transformations ||
141
+ !!entitySet.entityType?.annotations?.Aggregation?.ApplySupported?.Transformations);
140
142
  });
141
143
  }
142
144
  /**
package/dist/types.d.ts CHANGED
@@ -157,19 +157,19 @@ export interface EntitySelectionAnswers {
157
157
  [EntityPromptNames.filterEntityType]?: EntityAnswer;
158
158
  }
159
159
  export interface TableConfigAnswers {
160
- [EntityPromptNames.tableType]: TableType;
161
- [EntityPromptNames.hierarchyQualifier]: string;
160
+ [EntityPromptNames.tableType]?: TableType;
161
+ [EntityPromptNames.hierarchyQualifier]?: string;
162
162
  }
163
163
  export interface AnnotationGenerationAnswers {
164
164
  [EntityPromptNames.addFEOPAnnotations]?: boolean;
165
165
  [EntityPromptNames.addLineItemAnnotations]?: boolean;
166
166
  }
167
167
  export interface AlpTableConfigAnswers {
168
- [EntityPromptNames.tableAutoHide]: boolean;
169
- [EntityPromptNames.tableMultiSelect]: boolean;
170
- [EntityPromptNames.tableSelectionMode]: TableSelectionMode;
171
- [EntityPromptNames.presentationQualifier]: string;
172
- [EntityPromptNames.smartVariantManagement]: boolean;
168
+ [EntityPromptNames.tableAutoHide]?: boolean;
169
+ [EntityPromptNames.tableMultiSelect]?: boolean;
170
+ [EntityPromptNames.tableSelectionMode]?: TableSelectionMode;
171
+ [EntityPromptNames.presentationQualifier]?: string;
172
+ [EntityPromptNames.smartVariantManagement]?: boolean;
173
173
  }
174
174
  /**
175
175
  * Convienience alias type for the entity related answers
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sap-ux/odata-service-inquirer",
3
3
  "description": "Prompts module that can prompt users for inputs required for odata service writing",
4
- "version": "1.0.0",
4
+ "version": "1.1.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/SAP/open-ux-tools.git",
@@ -29,15 +29,15 @@
29
29
  "inquirer-autocomplete-prompt": "2.0.1",
30
30
  "os-name": "4.0.1",
31
31
  "@sap-ux/axios-extension": "1.18.1",
32
- "@sap-ux/fiori-generator-shared": "0.7.19",
32
+ "@sap-ux/btp-utils": "0.17.2",
33
33
  "@sap-ux/guided-answers-helper": "0.2.0",
34
+ "@sap-ux/fiori-generator-shared": "0.7.19",
34
35
  "@sap-ux/telemetry": "0.5.51",
35
36
  "@sap-ux/inquirer-common": "0.6.4",
36
37
  "@sap-ux/logger": "0.6.0",
37
- "@sap-ux/btp-utils": "0.17.2",
38
38
  "@sap-ux/project-access": "1.29.0",
39
- "@sap-ux/project-input-validator": "0.3.4",
40
- "@sap-ux/store": "1.0.0"
39
+ "@sap-ux/store": "1.0.0",
40
+ "@sap-ux/project-input-validator": "0.3.4"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@sap-ux/vocabularies-types": "0.11.7",
@@ -49,8 +49,8 @@
49
49
  "@sap-ux/fiori-generator-shared": "0.7.19",
50
50
  "@sap-ux/fiori-elements-writer": "2.0.0",
51
51
  "@sap-ux/fiori-freestyle-writer": "2.0.0",
52
- "@sap-ux/feature-toggle": "0.2.3",
53
- "@sap-ux/odata-service-writer": "0.25.3"
52
+ "@sap-ux/odata-service-writer": "0.25.3",
53
+ "@sap-ux/feature-toggle": "0.2.3"
54
54
  },
55
55
  "engines": {
56
56
  "node": ">=18.x"