build
This commit is contained in:
parent
2cf1dfe75d
commit
aac9eb143b
8 changed files with 18 additions and 1 deletions
|
|
@ -62,6 +62,7 @@ declare class ClassPilaoEnviar {
|
|||
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: string[]): 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>>;
|
||||
|
|
|
|||
|
|
@ -40,6 +40,10 @@ class ClassPilaoEnviar {
|
|||
this.__registrosParaEnvio.push(...registro);
|
||||
return this;
|
||||
}
|
||||
adicionarCodigoParaDeletar(...codigos) {
|
||||
this.__codigosParaDeletar.push(...codigos);
|
||||
return this;
|
||||
}
|
||||
async __salvar_enviar_registros() {
|
||||
const registros = this.__registrosParaEnvio;
|
||||
const url = new URL(`${(0, variaveis_1.urlPilao)(this.__emDesenvolvimento).api}/enviar_registros/${this.__produto}/${this.__conta}`);
|
||||
|
|
|
|||
1
dist-require/pilao-de-dados/index.d.ts
vendored
1
dist-require/pilao-de-dados/index.d.ts
vendored
|
|
@ -316,6 +316,7 @@ export declare const pPilao: {
|
|||
__codigosParaDeletar: string[];
|
||||
tabela(tabela: string): any;
|
||||
adicionarRegistroParaEnviar(...registro: import("zod").TypeOf<typeof zp_enviar_registros>["registros"]): any;
|
||||
adicionarCodigoParaDeletar(...codigos: string[]): any;
|
||||
__salvar_enviar_registros(): Promise<import("p-respostas").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>>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue