71 lines
3.5 KiB
TypeScript
71 lines
3.5 KiB
TypeScript
import type { tipoResposta } from "p-respostas";
|
|
import { z } from "zod";
|
|
import { type zp_deletar_registros, type zp_produto_conta } from "./variaveis";
|
|
export declare const zp_registrar_base_dados: z.ZodObject<{
|
|
tabela: z.ZodString;
|
|
colunas: z.ZodArray<z.ZodObject<{
|
|
coluna: z.ZodString;
|
|
tipo: z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero", "lista_mes", "lista_data", "mes", "data"]>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "lista_mes" | "lista_data" | "mes" | "data";
|
|
}, {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "lista_mes" | "lista_data" | "mes" | "data";
|
|
}>, "many">;
|
|
}, "strip", z.ZodTypeAny, {
|
|
tabela: string;
|
|
colunas: {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "lista_mes" | "lista_data" | "mes" | "data";
|
|
}[];
|
|
}, {
|
|
tabela: string;
|
|
colunas: {
|
|
coluna: string;
|
|
tipo: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "lista_mes" | "lista_data" | "mes" | "data";
|
|
}[];
|
|
}>;
|
|
export declare const zp_enviar_registros: z.ZodObject<{
|
|
tabela: z.ZodString;
|
|
registros: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
valor: z.ZodAny;
|
|
tipo: z.ZodNullable<z.ZodOptional<z.ZodEnum<["texto", "numero", "confirmacao", "lista_texto", "lista_numero", "lista_mes", "lista_data", "mes", "data"]>>>;
|
|
}, "strip", z.ZodTypeAny, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "lista_mes" | "lista_data" | "mes" | "data" | null | undefined;
|
|
}, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "lista_mes" | "lista_data" | "mes" | "data" | null | undefined;
|
|
}>>, "many">;
|
|
}, "strip", z.ZodTypeAny, {
|
|
tabela: string;
|
|
registros: Record<string, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "lista_mes" | "lista_data" | "mes" | "data" | null | undefined;
|
|
}>[];
|
|
}, {
|
|
tabela: string;
|
|
registros: Record<string, {
|
|
valor?: any;
|
|
tipo?: "texto" | "numero" | "confirmacao" | "lista_texto" | "lista_numero" | "lista_mes" | "lista_data" | "mes" | "data" | null | undefined;
|
|
}>[];
|
|
}>;
|
|
declare class ClassPilaoEnviar {
|
|
__conta: string | undefined;
|
|
__produto: string | undefined;
|
|
__emDesenvolvimento: boolean | undefined;
|
|
__ver_log: boolean | undefined;
|
|
__tabela: string | undefined;
|
|
__registrosParaEnvio: z.infer<typeof zp_enviar_registros>["registros"];
|
|
__codigosParaDeletar: string[];
|
|
constructor({ conta, produto, emDesenvolvimento, ver_log, }: z.infer<typeof zp_produto_conta>);
|
|
tabela(tabela: string): this;
|
|
adicionarRegistroParaEnviar(...registro: z.infer<typeof zp_enviar_registros>["registros"]): this;
|
|
adicionarCodigoParaDeletar(...codigos: z.infer<typeof zp_deletar_registros>["codigos"]): this;
|
|
__salvar_enviar_registros(): Promise<tipoResposta<true>>;
|
|
__salvar_deletar_registros(): Promise<import("p-respostas").tipoRespostaErro | import("p-respostas").tipoRespostaSucesso<boolean>>;
|
|
salvar(): Promise<import("p-respostas").tipoRespostaErro | import("p-respostas").tipoRespostaSucesso<boolean>>;
|
|
}
|
|
export declare const PilaoEnviar: (_: z.infer<typeof zp_produto_conta>) => ClassPilaoEnviar;
|
|
export {};
|