26 lines
542 B
TypeScript
26 lines
542 B
TypeScript
export declare enum operadores {
|
|
"=" = "=",
|
|
"!=" = "!=",
|
|
">" = ">",
|
|
">=" = ">=",
|
|
"<" = "<",
|
|
"<=" = "<=",
|
|
like = "like",
|
|
in = "in"
|
|
}
|
|
export type tipoFiltro = {
|
|
coluna: string;
|
|
valor: any;
|
|
operador: keyof typeof operadores | operadores;
|
|
ou?: boolean;
|
|
};
|
|
export type interfaceConsulta = {
|
|
offset?: number;
|
|
limit?: number;
|
|
filtros?: tipoFiltro[];
|
|
ordem?: string;
|
|
ordemTipo?: "asc" | "desc";
|
|
colunas?: string[];
|
|
apenasConsulta?: boolean;
|
|
apenasContagem?: boolean;
|
|
};
|