src/types/text-filter.ts
export type TextOperator =
| "contains"
| "not-contains"
| "match"
| "not-match"
| "like"
| "not-like"
| "starts-with"
| "not-starts-with"
| "ends-with"
| "not-ends-with";
export interface TextFilter<T = any, F = any> {
op: TextOperator;
field: F;
value: string;
ci: boolean;
}