forest-express-sequelize 9.0.0 → 9.0.2

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [9.0.2](https://github.com/ForestAdmin/forest-express-sequelize/compare/v9.0.1...v9.0.2) (2022-11-25)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **type:** add promise return for `SmartFieldFilterer` ([#1043](https://github.com/ForestAdmin/forest-express-sequelize/issues/1043)) ([6d0b7d1](https://github.com/ForestAdmin/forest-express-sequelize/commit/6d0b7d10c4f453822d2f5d3db2104e25ac11544a))
7
+
8
+ ## [9.0.1](https://github.com/ForestAdmin/forest-express-sequelize/compare/v9.0.0...v9.0.1) (2022-11-23)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **types:** remove unused and incorrect exported type related to aggregation ([#1041](https://github.com/ForestAdmin/forest-express-sequelize/issues/1041)) ([9091a67](https://github.com/ForestAdmin/forest-express-sequelize/commit/9091a6714bc0716b21f309059e8e7fccfb9bc987))
14
+
1
15
  # [9.0.0](https://github.com/ForestAdmin/forest-express-sequelize/compare/v8.5.14...v9.0.0) (2022-11-09)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "forest-express-sequelize",
3
3
  "description": "Official Express/Sequelize Liana for Forest",
4
- "version": "9.0.0",
4
+ "version": "9.0.2",
5
5
  "author": "Sandro Munda <sandro@munda.me>",
6
6
  "contributors": [
7
7
  "Arnaud Besnier <arnaudibesnier@gmail.com>",
package/types/index.d.ts CHANGED
@@ -213,16 +213,6 @@ export interface Filter {
213
213
  value: string;
214
214
  }
215
215
 
216
- export enum Aggregator {
217
- AND = 'and',
218
- OR = 'or'
219
- }
220
-
221
- export interface AggregatedFilters {
222
- aggregator: Aggregator;
223
- conditions: Filter[];
224
- }
225
-
226
216
  export interface Query {
227
217
  timezone?: string;
228
218
  search?: string;
@@ -258,7 +248,7 @@ export interface SmartFieldFiltererFilter {
258
248
  }
259
249
 
260
250
  export interface SmartFieldFilterer {
261
- (filter: SmartFieldFiltererFilter): Sequelize.WhereOptions;
251
+ (filter: SmartFieldFiltererFilter): Sequelize.WhereOptions | Promise<Sequelize.WhereOptions>;
262
252
  }
263
253
 
264
254
  export interface SegmentAggregationCreator<M extends Sequelize.Model = any> {