forest-express-sequelize 9.0.5 → 9.1.0

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.1.0](https://github.com/ForestAdmin/forest-express-sequelize/compare/v9.0.6...v9.1.0) (2022-12-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * **smart-actions:** add support for data-based conditions on smart action trigger, approval requirement and authorization to approve ([#1052](https://github.com/ForestAdmin/forest-express-sequelize/issues/1052)) ([e3c7a1b](https://github.com/ForestAdmin/forest-express-sequelize/commit/e3c7a1bc2430862204d10699fa728f73688821b6))
7
+
8
+ ## [9.0.6](https://github.com/ForestAdmin/forest-express-sequelize/compare/v9.0.5...v9.0.6) (2022-12-21)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **typing:** remove invalid enum from typing file ([#1050](https://github.com/ForestAdmin/forest-express-sequelize/issues/1050)) ([f9ba5c5](https://github.com/ForestAdmin/forest-express-sequelize/commit/f9ba5c5026f73d5e1e7a909bf65b91737c614715))
14
+
1
15
  ## [9.0.5](https://github.com/ForestAdmin/forest-express-sequelize/compare/v9.0.4...v9.0.5) (2022-12-12)
2
16
 
3
17
  ## [9.0.4](https://github.com/ForestAdmin/forest-express-sequelize/compare/v9.0.3...v9.0.4) (2022-12-06)
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.5",
4
+ "version": "9.1.0",
5
5
  "author": "Sandro Munda <sandro@munda.me>",
6
6
  "contributors": [
7
7
  "Arnaud Besnier <arnaudibesnier@gmail.com>",
@@ -28,7 +28,7 @@
28
28
  "@babel/runtime": "7.15.4",
29
29
  "bluebird": "2.9.25",
30
30
  "core-js": "3.6.5",
31
- "forest-express": "10.0.2",
31
+ "forest-express": "10.1.0",
32
32
  "http-errors": "1.6.1",
33
33
  "lodash": "4.17.21",
34
34
  "moment": "2.29.4",
package/types/index.d.ts CHANGED
@@ -207,41 +207,17 @@ export interface Page {
207
207
  size: number;
208
208
  }
209
209
 
210
- export enum FilterOperator {
211
- //Classic
212
- NOT = "not",
213
- GREATER_THAN = "greater_than",
214
- LESS_THAN = "less_than",
215
- AFTER = "after",
216
- BEFORE = "before",
217
- CONTAINS = "contains",
218
- STARTS_WITH = "starts_with",
219
- ENDS_WITH = "ends_with",
220
- NOT_CONTAINS = "not_contains",
221
- PRESENT = "present",
222
- BLANK = "blank",
223
- NOT_EQUAL = "not_equal",
224
- EQUAL = "equal",
225
- INCLUDES_ALL = "includes_all",
226
- IN = "in",
227
- //Date
228
- TODAY = "today",
229
- YESTERDAY = "yesterday",
230
- PREVIOUS_WEEK = "previous_week",
231
- PREVIOUS_MONTH = "previous_month",
232
- PREVIOUS_QUATER = "previous_quater",
233
- PREVIOUS_YEAR = "previous_year",
234
- PREVIOUS_WEEK_TO_DATE = "previous_week_to_date",
235
- PREVIOUS_MONTH_TO_DATE = "previous_month_to_date",
236
- PREVIOUS_QUARTER_TO_DATE = "previous_quarter_to_date",
237
- PREVIOUS_YEAR_TO_DATE = "previous_year_to_date",
238
- PREVIOUS_X_DAYS = "previous_x_days",
239
- PREVIOUS_X_DAYS_TO_DATE = "previous_x_days_to_date",
240
- PAST = "past",
241
- FUTURE = "future",
242
- BEFORE_X_HOURS_AGO = "before_x_hours_ago",
243
- AFTER_X_HOURS_AGO = "after_x_hours_ago",
244
- }
210
+ export type FilterOperator =
211
+ // Classic
212
+ | "not" | "greater_than" | "less_than" | "after" | "before" | "contains"
213
+ | "starts_with" | "ends_with" | "not_contains" | "present" | "blank"
214
+ | "not_equal" | "equal" | "includes_all" | "in"
215
+
216
+ // Date
217
+ | "today" | "yesterday" | "previous_week" | "previous_month" | "previous_quater"
218
+ | "previous_year" | "previous_week_to_date" | "previous_month_to_date"
219
+ | "previous_quarter_to_date" | "previous_year_to_date" | "previous_x_days"
220
+ | "previous_x_days_to_date" | "past" | "future" | "before_x_hours_ago" | "after_x_hours_ago" ;
245
221
 
246
222
  export interface Filter {
247
223
  field: string;