Allow filtering by multi-select fields. <img width="1053" alt="Screenshot 2024-11-11 at 11 54 45" src="https://github.com/user-attachments/assets/a79b2251-94e3-48f8-abda-e808103a6c39"> --------- Co-authored-by: Félix Malfait <felix@twenty.com>
This commit is contained in:
@ -21,11 +21,7 @@ export type BooleanFilter = {
|
||||
|
||||
export type StringFilter = {
|
||||
eq?: string;
|
||||
gt?: string;
|
||||
gte?: string;
|
||||
in?: string[];
|
||||
lt?: string;
|
||||
lte?: string;
|
||||
neq?: string;
|
||||
startsWith?: string;
|
||||
like?: string;
|
||||
@ -35,6 +31,12 @@ export type StringFilter = {
|
||||
is?: IsFilter;
|
||||
};
|
||||
|
||||
export type RatingFilter = {
|
||||
eq?: string;
|
||||
in?: string[];
|
||||
is?: IsFilter;
|
||||
};
|
||||
|
||||
export type FloatFilter = {
|
||||
eq?: number;
|
||||
gt?: number;
|
||||
@ -104,10 +106,21 @@ export type PhonesFilter = {
|
||||
primaryPhoneCountryCode?: StringFilter;
|
||||
};
|
||||
|
||||
export type ArrayFilter = {
|
||||
contains?: string[];
|
||||
not_contains?: string[];
|
||||
export type SelectFilter = {
|
||||
is?: IsFilter;
|
||||
in?: string[];
|
||||
};
|
||||
|
||||
export type MultiSelectFilter = {
|
||||
is?: IsFilter;
|
||||
isEmptyArray?: boolean;
|
||||
containsAny?: string[];
|
||||
};
|
||||
|
||||
export type ArrayFilter = {
|
||||
is?: IsFilter;
|
||||
isEmptyArray?: boolean;
|
||||
containsIlike?: string;
|
||||
};
|
||||
|
||||
export type RawJsonFilter = {
|
||||
|
||||
Reference in New Issue
Block a user