Skip to content

Commit e83a609

Browse files
fix(typing): remove invalid enum from typing file (#984)
1 parent c00b727 commit e83a609

File tree

1 file changed

+11
-35
lines changed

1 file changed

+11
-35
lines changed

types/index.d.ts

Lines changed: 11 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -218,41 +218,17 @@ export interface Page {
218218
size: number;
219219
}
220220

221-
export enum FilterOperator {
222-
//Classic
223-
NOT = "not",
224-
GREATER_THAN = "greater_than",
225-
LESS_THAN = "less_than",
226-
AFTER = "after",
227-
BEFORE = "before",
228-
CONTAINS = "contains",
229-
STARTS_WITH = "starts_with",
230-
ENDS_WITH = "ends_with",
231-
NOT_CONTAINS = "not_contains",
232-
PRESENT = "present",
233-
BLANK = "blank",
234-
NOT_EQUAL = "not_equal",
235-
EQUAL = "equal",
236-
INCLUDES_ALL = "includes_all",
237-
IN = "in",
238-
//Date
239-
TODAY = "today",
240-
YESTERDAY = "yesterday",
241-
PREVIOUS_WEEK = "previous_week",
242-
PREVIOUS_MONTH = "previous_month",
243-
PREVIOUS_QUATER = "previous_quater",
244-
PREVIOUS_YEAR = "previous_year",
245-
PREVIOUS_WEEK_TO_DATE = "previous_week_to_date",
246-
PREVIOUS_MONTH_TO_DATE = "previous_month_to_date",
247-
PREVIOUS_QUARTER_TO_DATE = "previous_quarter_to_date",
248-
PREVIOUS_YEAR_TO_DATE = "previous_year_to_date",
249-
PREVIOUS_X_DAYS = "previous_x_days",
250-
PREVIOUS_X_DAYS_TO_DATE = "previous_x_days_to_date",
251-
PAST = "past",
252-
FUTURE = "future",
253-
BEFORE_X_HOURS_AGO = "before_x_hours_ago",
254-
AFTER_X_HOURS_AGO = "after_x_hours_ago",
255-
}
221+
export type FilterOperator =
222+
// Classic
223+
| "not" | "greater_than" | "less_than" | "after" | "before" | "contains"
224+
| "starts_with" | "ends_with" | "not_contains" | "present" | "blank"
225+
| "not_equal" | "equal" | "includes_all" | "in"
226+
227+
// Date
228+
| "today" | "yesterday" | "previous_week" | "previous_month" | "previous_quater"
229+
| "previous_year" | "previous_week_to_date" | "previous_month_to_date"
230+
| "previous_quarter_to_date" | "previous_year_to_date" | "previous_x_days"
231+
| "previous_x_days_to_date" | "past" | "future" | "before_x_hours_ago" | "after_x_hours_ago" ;
256232

257233
export interface Filter {
258234
field: string;

0 commit comments

Comments
 (0)