56 lines
2.2 KiB
TypeScript
56 lines
2.2 KiB
TypeScript
/** 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_pilao } from "../visoes/listaDeVisoes";
|
|
import type { tipo_pilao_api } from "./pilao-api.ts";
|
|
import type { tipoConstrutorPilao, tipoRetornoSerieconsulta } 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_pilao | ":tipoVisao"): {
|
|
rota: string;
|
|
url: string;
|
|
};
|
|
rotaIframeSerie(tipoVisao: keyof typeof visoes_pilao | ":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_pilao>(tipoVisao: T, parametros: z.infer<(typeof visoes_pilao)[T]>): {
|
|
dados: () => Promise<tipoResposta<tipoRetornoSerieconsulta<T>>>;
|
|
url: () => string;
|
|
};
|
|
urlLaboratorio(): {
|
|
rota: string;
|
|
url: string;
|
|
};
|
|
}
|
|
export declare const Pilao: (_: tipoConstrutorPilao & {
|
|
ver_log?: boolean;
|
|
emDesenvolvimento?: boolean;
|
|
}) => ClassPilao;
|
|
export {};
|