Skip to content

Commit ee87e13

Browse files
authored
Fix operator types (#10)
1 parent 2281378 commit ee87e13

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

clients/python/lightfeed/models.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,16 @@ class Operator(str, Enum):
8888

8989
EQUALS = "equals"
9090
NOT_EQUALS = "not_equals"
91-
CONTAINS = "contains"
92-
NOT_CONTAINS = "not_contains"
9391
GREATER_THAN = "greater_than"
9492
LESS_THAN = "less_than"
95-
IN = "in"
96-
NOT_IN = "not_in"
97-
EXISTS = "exists"
98-
NOT_EXISTS = "not_exists"
93+
GREATER_THAN_OR_EQUALS = "greater_than_or_equals"
94+
LESS_THAN_OR_EQUALS = "less_than_or_equals"
95+
CONTAINS = "contains"
96+
NOT_CONTAINS = "not_contains"
97+
STARTS_WITH = "starts_with"
98+
ENDS_WITH = "ends_with"
99+
IS_EMPTY = "is_empty"
100+
IS_NOT_EMPTY = "is_not_empty"
99101

100102

101103
class ColumnRule(TypedDict, total=False):

clients/typescript/src/types.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,16 @@ export type Condition = "AND" | "OR";
117117
export type Operator =
118118
| "equals"
119119
| "not_equals"
120-
| "contains"
121-
| "not_contains"
122120
| "greater_than"
123121
| "less_than"
124-
| "in"
125-
| "not_in"
126-
| "exists"
127-
| "not_exists";
122+
| "greater_than_or_equals"
123+
| "less_than_or_equals"
124+
| "contains"
125+
| "not_contains"
126+
| "starts_with"
127+
| "ends_with"
128+
| "is_empty"
129+
| "is_not_empty";
128130

129131
/**
130132
* Simple filter rule for a single column

0 commit comments

Comments
 (0)