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
60
dist-import/pilao-de-dados/Pilao/index.d.ts
vendored
Normal file
60
dist-import/pilao-de-dados/Pilao/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
/** Drive completo do piilão de dados */
|
||||
import { type tipoResposta } from "p-respostas";
|
||||
import type { z } from "zod";
|
||||
import type { zp_enviar_registros } from "../_enviar_registros";
|
||||
import { type zp_deletar_registros } from "../variaveis";
|
||||
import type { visoes } from "../visoes";
|
||||
import type { tipo_pilao_api } from "./pilao-api.ts";
|
||||
import type { tipoConstrutorPilao } from "./tipagem";
|
||||
declare class ClassPilao {
|
||||
#private;
|
||||
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
||||
ver_log?: boolean;
|
||||
emDesenvolvimento?: boolean;
|
||||
});
|
||||
rotaEnviarRegistros(): {
|
||||
rota: string;
|
||||
url: string;
|
||||
};
|
||||
rotaDeletarRegistro(): {
|
||||
rota: string;
|
||||
url: string;
|
||||
};
|
||||
rotaConsultarSerie(tipoVisao: keyof typeof visoes | ":tipoVisao"): {
|
||||
rota: string;
|
||||
url: string;
|
||||
};
|
||||
rotaIframeSerie(tipoVisao: keyof typeof visoes | ":tipoVisao"): {
|
||||
rota: string;
|
||||
url: string;
|
||||
};
|
||||
rotaFuncaoApi(funcao: keyof tipo_pilao_api | ":funcao"): {
|
||||
rota: string;
|
||||
url: string;
|
||||
};
|
||||
consultarApi<T extends keyof tipo_pilao_api>(funcao: T, parametros: tipo_pilao_api[T]["pr"]): Promise<tipoResposta<tipo_pilao_api[T]["rs"]>>;
|
||||
get baseUrlApi(): "https://carro-de-boi.idz.one" | "http://localhost:5080";
|
||||
get baseUrlSite(): "https://carro-de-boi.idz.one" | "http://localhost:5081";
|
||||
validarCliente(_: any): tipoResposta<tipoConstrutorPilao>;
|
||||
adicionarRegistroParaEnviar(tabela: string, ...registros: z.infer<typeof zp_enviar_registros>["registros"]): this;
|
||||
adicionarCodigoParaDeletar(tabela: string, ...codigos: z.infer<typeof zp_deletar_registros>["codigos"]): this;
|
||||
private processarRegistros;
|
||||
salvarRegistros(): Promise<tipoResposta<true>>;
|
||||
serieConsultar<T extends keyof typeof visoes>(tipoVisao: T, parametros: z.infer<(typeof visoes)[T]>): {
|
||||
dados: () => Promise<tipoResposta<{
|
||||
registros: any[];
|
||||
legenda: string;
|
||||
serie: z.infer<(typeof visoes)[T]>;
|
||||
}>>;
|
||||
url: () => string;
|
||||
};
|
||||
urlLaboratorio(): {
|
||||
rota: string;
|
||||
url: string;
|
||||
};
|
||||
}
|
||||
export declare const Pilao: (_: tipoConstrutorPilao & {
|
||||
ver_log?: boolean;
|
||||
emDesenvolvimento?: boolean;
|
||||
}) => ClassPilao;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue