141 lines
6.7 KiB
TypeScript
141 lines
6.7 KiB
TypeScript
import { zp_deletar_registros } from "./_deletar_registros";
|
|
export { PREFIXO_PILAO, urlPilao } from "./variaveis";
|
|
import { zp_enviar_registros } from "./_enviar_registros";
|
|
import { tiposSeriesAgregacoes, zp_produto_conta } from "./variaveis";
|
|
import { zp_serie_registrar } from "./_serie_consultar";
|
|
export { tiposSeriesAgregacoes };
|
|
export declare const pPilao: {
|
|
zp_registrar_base_dados: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
colunas: import("zod").ZodArray<import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
tipo: import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero", "data", "mes"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes";
|
|
}, {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes";
|
|
}>, "many">;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
tabela: string;
|
|
colunas: {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes";
|
|
}[];
|
|
}, {
|
|
tabela: string;
|
|
colunas: {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes";
|
|
}[];
|
|
}>;
|
|
enviar_registros: ({ conta, produto, emDesenvolvimento }: import("zod").TypeOf<typeof zp_produto_conta>) => ({ registros, tabela, }: import("zod").TypeOf<typeof zp_enviar_registros>) => Promise<import("p-respostas").tipoResposta<true>>;
|
|
zp_enviar_registros: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
registros: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodObject<{
|
|
valor: import("zod").ZodAny;
|
|
tipo: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero", "data", "mes"]>>>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes" | null | undefined;
|
|
}, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes" | null | undefined;
|
|
}>>, "many">;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
tabela: string;
|
|
registros: Record<string, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes" | null | undefined;
|
|
}>[];
|
|
}, {
|
|
tabela: string;
|
|
registros: Record<string, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "data" | "mes" | null | undefined;
|
|
}>[];
|
|
}>;
|
|
zp_serie_registrar: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
colanuEixoX: import("zod").ZodString;
|
|
colunaAgrupamento: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString, "many">>;
|
|
agregacao: import("zod").ZodEnum<["contagem", "somatoria"]>;
|
|
filtros: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
coluna: import("zod").ZodString;
|
|
valor: import("zod").ZodString;
|
|
operador: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
valor: string;
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
}, {
|
|
valor: string;
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
}>, "many">>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
tabela: string;
|
|
colanuEixoX: string;
|
|
agregacao: "contagem" | "somatoria";
|
|
colunaAgrupamento?: string[] | undefined;
|
|
filtros?: {
|
|
valor: string;
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
}[] | undefined;
|
|
}, {
|
|
tabela: string;
|
|
colanuEixoX: string;
|
|
agregacao: "contagem" | "somatoria";
|
|
colunaAgrupamento?: string[] | undefined;
|
|
filtros?: {
|
|
valor: string;
|
|
coluna: string;
|
|
operador: "=" | "!=" | ">" | "<" | ">=" | "<=" | "∩";
|
|
}[] | undefined;
|
|
}>;
|
|
serie_consultar: (cliente: import("zod").TypeOf<typeof zp_produto_conta>) => (parametros: import("zod").TypeOf<typeof zp_serie_registrar>) => {
|
|
dados: () => Promise<import("p-respostas").tipoResposta<{
|
|
registros: any[];
|
|
legenda: string;
|
|
serie: import("zod").TypeOf<typeof zp_serie_registrar>;
|
|
}>>;
|
|
url: () => string;
|
|
};
|
|
zp_produto_conta: import("zod").ZodObject<{
|
|
produto: import("zod").ZodString;
|
|
conta: import("zod").ZodString;
|
|
emDesenvolvimento: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
conta: string;
|
|
produto: string;
|
|
emDesenvolvimento?: boolean | undefined;
|
|
}, {
|
|
conta: string;
|
|
produto: string;
|
|
emDesenvolvimento?: boolean | undefined;
|
|
}>;
|
|
validarZ: <T>(zodType: import("zod").ZodType<T, any>, objeto: any, mensagem: string) => import("p-respostas").tipoRespostaErro | import("p-respostas").tipoRespostaSucesso<T>;
|
|
deletar_registros: ({ conta, produto, emDesenvolvimento }: import("zod").TypeOf<typeof zp_produto_conta>) => ({ codigos, tabela, }: import("zod").TypeOf<typeof zp_deletar_registros>) => Promise<import("p-respostas").tipoResposta<true>>;
|
|
zp_deletar_registros: import("zod").ZodObject<{
|
|
tabela: import("zod").ZodString;
|
|
codigos: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
}, "strip", import("zod").ZodTypeAny, {
|
|
tabela: string;
|
|
codigos: string[];
|
|
}, {
|
|
tabela: string;
|
|
codigos: string[];
|
|
}>;
|
|
operadores_pilao: import("zod").ZodEnum<["=", "!=", ">", "<", ">=", "<=", "∩"]>;
|
|
operadores_permitidos_por_tipo: {
|
|
texto: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
numero: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
confirmacao: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
lista_texto: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
lista_numero: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
data: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
mes: ("=" | "!=" | ">" | "<" | ">=" | "<=" | "∩")[];
|
|
};
|
|
};
|