Fix multi select filtering (#5358) (#8452)

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:
ad-elias
2024-11-17 15:27:38 +01:00
committed by GitHub
parent ac1197afe1
commit badebc513f
25 changed files with 408 additions and 177 deletions

View File

@ -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 = {