import { ObjectId } from 'bson'; export type TQueryOption = '!=' | '==' | 'in' | '>' | '>=' | '<' | '<='; export type TQueryValue = string | string[] | number | number[] | boolean; export type TQueryOperator = '$eq' | '$ne' | '$in' | '$gt' | '$gte' | '$lt' | '$lte'; export interface IRequestOption { skip?: number; limit?: number; with?: { [key: string]: boolean; }; by?: { [key: string]: string | ObjectId; }; query?: ([string | string[], TQueryOption, TQueryValue] | [string | string[], TQueryOption, TQueryValue, 'OR' | 'AND'])[]; }