import { SelectQueryBuilder } from 'typeorm'; import { FindOptionsWhere } from './FindOptionsWhere'; type OperatorValue = { $eq?: any; } | { $ne?: any; } | { $in?: any[]; } | { $notIn?: any[]; } | { $like?: string; } | { $ilike?: string; } | { $gt?: any; } | { $gte?: any; } | { $lt?: any; } | { $lte?: any; } | { $isNull?: boolean; } | { $contains?: any[]; }; /** * Supported operators: | Operator | Meaning | TypeORM conversion | | --------- | ------------------------------------ | ---------------------------- | | `$isNull` | Is it null | `IsNull()` / `Not(IsNull())` | | `$in` | Value is in the list | `In([...])` | | `$notIn` | Value is not in the list | `Not(In([...]))` | | `$like` | Fuzzy matching | `Like('%xxx%')` | | `$ilike` | Case-insensitive matching (Postgres) | `ILike('%xxx%')` | | `$eq` | Equal to | `value` | | `$ne` | Not equal to | `Not(value)` | | `$gt` | Greater than | `MoreThan(value)` | | `$gte` | Greater than or equal to | `MoreThanOrEqual(value)` | | `$lt` | Less than | `LessThan(value)` | | `$lte` | Less than or equal to | `LessThanOrEqual(value)` | | `$contains`| Array contains | `Raw(...)` | * @param where * @returns */ export declare function transformWhere(where: Record | null): FindOptionsWhere | null; type WhereInput = Record; export declare function applyWhereToQueryBuilder(qb: SelectQueryBuilder, alias: string, where: WhereInput): SelectQueryBuilder; export {};