27 lines
919 B
TypeScript
27 lines
919 B
TypeScript
import type { tipoResposta } from "p-respostas";
|
|
import { z } from "zod";
|
|
import { type zp_produto_conta } from "./variaveis";
|
|
import type { visoes } from "./visoes";
|
|
export declare const z_filtro: z.ZodObject<{
|
|
coluna: z.ZodString;
|
|
valor: z.ZodAny;
|
|
operador: z.ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}, {
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
valor?: any;
|
|
}>;
|
|
export declare const serie_consultar: (cliente: z.infer<typeof zp_produto_conta>) => <T extends keyof typeof visoes>(tipoVisao: T, parametros: z.infer<(typeof visoes)[T]>) => {
|
|
dados: () => Promise<tipoResposta<{
|
|
registros: any[];
|
|
legenda: string;
|
|
serie: {
|
|
[key: string]: any;
|
|
};
|
|
}>>;
|
|
url: () => string;
|
|
};
|