build
This commit is contained in:
parent
3b6a243ee4
commit
45d7067509
6 changed files with 22 additions and 15 deletions
|
|
@ -298,6 +298,10 @@ type tipoRetornoSerieconsulta<T extends keyof typeof visoes_pilao> = {
|
||||||
/** Drive completo do piilão de dados */
|
/** Drive completo do piilão de dados */
|
||||||
|
|
||||||
type nomesVisoes = keyof typeof visoes_pilao;
|
type nomesVisoes = keyof typeof visoes_pilao;
|
||||||
|
type retornoSerieConsultar<T extends nomesVisoes> = {
|
||||||
|
dados: () => Promise<tipoResposta<tipoRetornoSerieconsulta<T>>>;
|
||||||
|
url: () => string;
|
||||||
|
};
|
||||||
declare class ClassPilao {
|
declare class ClassPilao {
|
||||||
#private;
|
#private;
|
||||||
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
||||||
|
|
@ -332,10 +336,7 @@ declare class ClassPilao {
|
||||||
adicionarCodigoParaDeletar(tabela: string, ...codigos: z.infer<typeof zp_deletar_registros>["codigos"]): this;
|
adicionarCodigoParaDeletar(tabela: string, ...codigos: z.infer<typeof zp_deletar_registros>["codigos"]): this;
|
||||||
private processarRegistros;
|
private processarRegistros;
|
||||||
enviarRegistros(): Promise<tipoResposta<true>>;
|
enviarRegistros(): Promise<tipoResposta<true>>;
|
||||||
serieConsultar<T extends nomesVisoes>(tipoVisao: T, parametros_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>, padroes?: Pick<z.infer<typeof z_padroes>, "descricao_pelo_usuario">): {
|
serieConsultar<T extends nomesVisoes>(tipoVisao: T, parametros_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>, padroes?: Pick<z.infer<typeof z_padroes>, "descricao_pelo_usuario">): retornoSerieConsultar<T>;
|
||||||
dados: () => Promise<tipoResposta<tipoRetornoSerieconsulta<T>>>;
|
|
||||||
url: () => string;
|
|
||||||
};
|
|
||||||
urlLaboratorio(): {
|
urlLaboratorio(): {
|
||||||
rota: string;
|
rota: string;
|
||||||
url: string;
|
url: string;
|
||||||
|
|
@ -707,4 +708,4 @@ type tipo_proxima_avaliacao = {
|
||||||
|
|
||||||
declare const abrirNps: (emDesenvolvimento: boolean) => (parametros: tipo_proxima_avaliacao["parametros"]) => Promise<void>;
|
declare const abrirNps: (emDesenvolvimento: boolean) => (parametros: tipo_proxima_avaliacao["parametros"]) => Promise<void>;
|
||||||
|
|
||||||
export { PREFIXO_PILAO, Pilao, abrirNps, chaves_produto, nomesSincronizacoes, pAutenticacao, pPilao, type tipoConstrutorPilao, type tipoRetornoSerieconsulta, type tipoTokenQuipo, type tipoUsuarioExterno, type tipo_pilao_api, type tipo_proxima_avaliacao, type tipo_zUsuarioSincronizar, tipos_acesso_quipo, type tipos_de_acesso_quipo, urlPilao, zAuntenticacaoResiduosSolicitar, zEmpreendedorSincronizar, zEmpreendimentoSincronizar, zUsuarioSincronizar, ztokenQuipo };
|
export { ClassPilao, PREFIXO_PILAO, Pilao, abrirNps, chaves_produto, nomesSincronizacoes, pAutenticacao, pPilao, type retornoSerieConsultar, type tipoConstrutorPilao, type tipoRetornoSerieconsulta, type tipoTokenQuipo, type tipoUsuarioExterno, type tipo_pilao_api, type tipo_proxima_avaliacao, type tipo_zUsuarioSincronizar, tipos_acesso_quipo, type tipos_de_acesso_quipo, urlPilao, zAuntenticacaoResiduosSolicitar, zEmpreendedorSincronizar, zEmpreendimentoSincronizar, zUsuarioSincronizar, ztokenQuipo };
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
11
dist-require/index.d.ts
vendored
11
dist-require/index.d.ts
vendored
|
|
@ -298,6 +298,10 @@ type tipoRetornoSerieconsulta<T extends keyof typeof visoes_pilao> = {
|
||||||
/** Drive completo do piilão de dados */
|
/** Drive completo do piilão de dados */
|
||||||
|
|
||||||
type nomesVisoes = keyof typeof visoes_pilao;
|
type nomesVisoes = keyof typeof visoes_pilao;
|
||||||
|
type retornoSerieConsultar<T extends nomesVisoes> = {
|
||||||
|
dados: () => Promise<tipoResposta<tipoRetornoSerieconsulta<T>>>;
|
||||||
|
url: () => string;
|
||||||
|
};
|
||||||
declare class ClassPilao {
|
declare class ClassPilao {
|
||||||
#private;
|
#private;
|
||||||
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
||||||
|
|
@ -332,10 +336,7 @@ declare class ClassPilao {
|
||||||
adicionarCodigoParaDeletar(tabela: string, ...codigos: z.infer<typeof zp_deletar_registros>["codigos"]): this;
|
adicionarCodigoParaDeletar(tabela: string, ...codigos: z.infer<typeof zp_deletar_registros>["codigos"]): this;
|
||||||
private processarRegistros;
|
private processarRegistros;
|
||||||
enviarRegistros(): Promise<tipoResposta<true>>;
|
enviarRegistros(): Promise<tipoResposta<true>>;
|
||||||
serieConsultar<T extends nomesVisoes>(tipoVisao: T, parametros_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>, padroes?: Pick<z.infer<typeof z_padroes>, "descricao_pelo_usuario">): {
|
serieConsultar<T extends nomesVisoes>(tipoVisao: T, parametros_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>, padroes?: Pick<z.infer<typeof z_padroes>, "descricao_pelo_usuario">): retornoSerieConsultar<T>;
|
||||||
dados: () => Promise<tipoResposta<tipoRetornoSerieconsulta<T>>>;
|
|
||||||
url: () => string;
|
|
||||||
};
|
|
||||||
urlLaboratorio(): {
|
urlLaboratorio(): {
|
||||||
rota: string;
|
rota: string;
|
||||||
url: string;
|
url: string;
|
||||||
|
|
@ -707,4 +708,4 @@ type tipo_proxima_avaliacao = {
|
||||||
|
|
||||||
declare const abrirNps: (emDesenvolvimento: boolean) => (parametros: tipo_proxima_avaliacao["parametros"]) => Promise<void>;
|
declare const abrirNps: (emDesenvolvimento: boolean) => (parametros: tipo_proxima_avaliacao["parametros"]) => Promise<void>;
|
||||||
|
|
||||||
export { PREFIXO_PILAO, Pilao, abrirNps, chaves_produto, nomesSincronizacoes, pAutenticacao, pPilao, type tipoConstrutorPilao, type tipoRetornoSerieconsulta, type tipoTokenQuipo, type tipoUsuarioExterno, type tipo_pilao_api, type tipo_proxima_avaliacao, type tipo_zUsuarioSincronizar, tipos_acesso_quipo, type tipos_de_acesso_quipo, urlPilao, zAuntenticacaoResiduosSolicitar, zEmpreendedorSincronizar, zEmpreendimentoSincronizar, zUsuarioSincronizar, ztokenQuipo };
|
export { ClassPilao, PREFIXO_PILAO, Pilao, abrirNps, chaves_produto, nomesSincronizacoes, pAutenticacao, pPilao, type retornoSerieConsultar, type tipoConstrutorPilao, type tipoRetornoSerieconsulta, type tipoTokenQuipo, type tipoUsuarioExterno, type tipo_pilao_api, type tipo_proxima_avaliacao, type tipo_zUsuarioSincronizar, tipos_acesso_quipo, type tipos_de_acesso_quipo, urlPilao, zAuntenticacaoResiduosSolicitar, zEmpreendedorSincronizar, zEmpreendimentoSincronizar, zUsuarioSincronizar, ztokenQuipo };
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-drives",
|
"name": "p-drives",
|
||||||
"version": "0.201.0",
|
"version": "0.202.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,12 @@ import type { tipoConstrutorPilao, tipoRetornoSerieconsulta } from "./tipagem"
|
||||||
|
|
||||||
type nomesVisoes = keyof typeof visoes_pilao
|
type nomesVisoes = keyof typeof visoes_pilao
|
||||||
|
|
||||||
class ClassPilao {
|
export type retornoSerieConsultar<T extends nomesVisoes> = {
|
||||||
|
dados: () => Promise<tipoResposta<tipoRetornoSerieconsulta<T>>>
|
||||||
|
url: () => string
|
||||||
|
}
|
||||||
|
|
||||||
|
export class ClassPilao {
|
||||||
#produto: string
|
#produto: string
|
||||||
#conta: string
|
#conta: string
|
||||||
#emDesenvolvimento: boolean
|
#emDesenvolvimento: boolean
|
||||||
|
|
@ -226,7 +231,7 @@ class ClassPilao {
|
||||||
tipoVisao: T,
|
tipoVisao: T,
|
||||||
parametros_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>,
|
parametros_: z.infer<(typeof visoes_pilao)[T]> & z.infer<typeof z_padroes>,
|
||||||
padroes?: Pick<z.infer<typeof z_padroes>, "descricao_pelo_usuario">,
|
padroes?: Pick<z.infer<typeof z_padroes>, "descricao_pelo_usuario">,
|
||||||
) {
|
): retornoSerieConsultar<T> {
|
||||||
const parametros = {
|
const parametros = {
|
||||||
...parametros_,
|
...parametros_,
|
||||||
...Object.fromEntries(
|
...Object.fromEntries(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue