import { QueryFields, QuerySort } from '@ondosys/crud-request'; import { QueryFilterOption } from '../types'; import { QueryLeftJoin } from '@ondosys/util'; export interface QueryOptions { choice?: QueryFields; download?: QueryFields; allow?: QueryFields; exclude?: QueryFields; persist?: QueryFields; filter?: QueryFilterOption; join?: JoinOptions; leftJoins?: QueryLeftJoin[]; sort?: QuerySort[]; limit?: number; maxLimit?: number; cache?: number | false; alwaysPaginate?: boolean; } export interface JoinOptions { [key: string]: JoinOption; } export interface JoinOption { alias?: string; allow?: QueryFields; eager?: boolean; exclude?: QueryFields; persist?: QueryFields; select?: false; required?: boolean; fetch?: boolean; }