drivers/dist-import/pilao-de-dados/_serie_consultar.d.ts
2024-07-01 12:55:34 -03:00

50 lines
1.7 KiB
TypeScript

import type { tipoResposta } from "p-respostas";
import { z } from "zod";
import { type zp_produto_conta } from "./variaveis";
export declare const zp_serie_registrar: z.ZodObject<{
tabela: z.ZodString;
colanuEixoX: z.ZodString;
colunaAgrupamento: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
agregacao: z.ZodEnum<["contagem", "somatoria"]>;
filtro: z.ZodOptional<z.ZodArray<z.ZodObject<{
coluna: z.ZodString;
valor: z.ZodString;
operador: z.ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
}, "strip", z.ZodTypeAny, {
valor: string;
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
}, {
valor: string;
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
}>, "many">>;
}, "strip", z.ZodTypeAny, {
tabela: string;
colanuEixoX: string;
agregacao: "contagem" | "somatoria";
colunaAgrupamento?: string[] | undefined;
filtro?: {
valor: string;
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
}[] | undefined;
}, {
tabela: string;
colanuEixoX: string;
agregacao: "contagem" | "somatoria";
colunaAgrupamento?: string[] | undefined;
filtro?: {
valor: string;
coluna: string;
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
}[] | undefined;
}>;
export declare const serie_consultar: (cliente: z.infer<typeof zp_produto_conta>) => (parametros: z.infer<typeof zp_serie_registrar>) => {
dados: () => Promise<tipoResposta<{
registros: any[];
legenda: string;
serie: z.infer<typeof zp_serie_registrar>;
}>>;
url: () => string;
};