refatoração do drive de pilão de dados
This commit is contained in:
parent
1ee3565d3d
commit
f6c203ee3e
31 changed files with 887 additions and 554 deletions
|
|
@ -1,6 +1,4 @@
|
|||
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<{
|
||||
|
|
@ -51,21 +49,3 @@ export declare const zp_enviar_registros: z.ZodObject<{
|
|||
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 {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue