build
This commit is contained in:
parent
64ab623007
commit
9c9570388f
7 changed files with 30 additions and 19 deletions
8
dist-import/pilao-de-dados/Pilao/index.d.ts
vendored
8
dist-import/pilao-de-dados/Pilao/index.d.ts
vendored
|
|
@ -5,7 +5,7 @@ import type { zp_enviar_registros } from "../_enviar_registros";
|
||||||
import { type zp_deletar_registros } from "../variaveis";
|
import { type zp_deletar_registros } from "../variaveis";
|
||||||
import type { visoes } from "../visoes";
|
import type { visoes } from "../visoes";
|
||||||
import type { tipo_pilao_api } from "./pilao-api.ts";
|
import type { tipo_pilao_api } from "./pilao-api.ts";
|
||||||
import type { tipoConstrutorPilao } from "./tipagem";
|
import type { tipoConstrutorPilao, tipoRetornoSerirconsulta } from "./tipagem";
|
||||||
declare class ClassPilao {
|
declare class ClassPilao {
|
||||||
#private;
|
#private;
|
||||||
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
||||||
|
|
@ -41,11 +41,7 @@ declare class ClassPilao {
|
||||||
private processarRegistros;
|
private processarRegistros;
|
||||||
salvarRegistros(): Promise<tipoResposta<true>>;
|
salvarRegistros(): Promise<tipoResposta<true>>;
|
||||||
serieConsultar<T extends keyof typeof visoes>(tipoVisao: T, parametros: z.infer<(typeof visoes)[T]>): {
|
serieConsultar<T extends keyof typeof visoes>(tipoVisao: T, parametros: z.infer<(typeof visoes)[T]>): {
|
||||||
dados: () => Promise<tipoResposta<{
|
dados: () => Promise<tipoResposta<tipoRetornoSerirconsulta<T>>>;
|
||||||
registros: any[];
|
|
||||||
legenda: string;
|
|
||||||
serie: z.infer<(typeof visoes)[T]>;
|
|
||||||
}>>;
|
|
||||||
url: () => string;
|
url: () => string;
|
||||||
};
|
};
|
||||||
urlLaboratorio(): {
|
urlLaboratorio(): {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
|
import type { z } from "zod";
|
||||||
|
import type { visoes } from "../visoes";
|
||||||
export type tipoConstrutorPilao = {
|
export type tipoConstrutorPilao = {
|
||||||
produto: string;
|
produto: string;
|
||||||
conta: string;
|
conta: string;
|
||||||
};
|
};
|
||||||
|
export type tipoRetornoSerirconsulta<T extends keyof typeof visoes> = {
|
||||||
|
registros: any[];
|
||||||
|
legenda: string;
|
||||||
|
serie: z.infer<(typeof visoes)[T]>;
|
||||||
|
};
|
||||||
|
|
|
||||||
8
dist-require/pilao-de-dados/Pilao/index.d.ts
vendored
8
dist-require/pilao-de-dados/Pilao/index.d.ts
vendored
|
|
@ -5,7 +5,7 @@ import type { zp_enviar_registros } from "../_enviar_registros";
|
||||||
import { type zp_deletar_registros } from "../variaveis";
|
import { type zp_deletar_registros } from "../variaveis";
|
||||||
import type { visoes } from "../visoes";
|
import type { visoes } from "../visoes";
|
||||||
import type { tipo_pilao_api } from "./pilao-api.ts";
|
import type { tipo_pilao_api } from "./pilao-api.ts";
|
||||||
import type { tipoConstrutorPilao } from "./tipagem";
|
import type { tipoConstrutorPilao, tipoRetornoSerirconsulta } from "./tipagem";
|
||||||
declare class ClassPilao {
|
declare class ClassPilao {
|
||||||
#private;
|
#private;
|
||||||
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
||||||
|
|
@ -41,11 +41,7 @@ declare class ClassPilao {
|
||||||
private processarRegistros;
|
private processarRegistros;
|
||||||
salvarRegistros(): Promise<tipoResposta<true>>;
|
salvarRegistros(): Promise<tipoResposta<true>>;
|
||||||
serieConsultar<T extends keyof typeof visoes>(tipoVisao: T, parametros: z.infer<(typeof visoes)[T]>): {
|
serieConsultar<T extends keyof typeof visoes>(tipoVisao: T, parametros: z.infer<(typeof visoes)[T]>): {
|
||||||
dados: () => Promise<tipoResposta<{
|
dados: () => Promise<tipoResposta<tipoRetornoSerirconsulta<T>>>;
|
||||||
registros: any[];
|
|
||||||
legenda: string;
|
|
||||||
serie: z.infer<(typeof visoes)[T]>;
|
|
||||||
}>>;
|
|
||||||
url: () => string;
|
url: () => string;
|
||||||
};
|
};
|
||||||
urlLaboratorio(): {
|
urlLaboratorio(): {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,11 @@
|
||||||
|
import type { z } from "zod";
|
||||||
|
import type { visoes } from "../visoes";
|
||||||
export type tipoConstrutorPilao = {
|
export type tipoConstrutorPilao = {
|
||||||
produto: string;
|
produto: string;
|
||||||
conta: string;
|
conta: string;
|
||||||
};
|
};
|
||||||
|
export type tipoRetornoSerirconsulta<T extends keyof typeof visoes> = {
|
||||||
|
registros: any[];
|
||||||
|
legenda: string;
|
||||||
|
serie: z.infer<(typeof visoes)[T]>;
|
||||||
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-drives",
|
"name": "p-drives",
|
||||||
"version": "0.159.0",
|
"version": "0.160.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import type { zp_enviar_registros } from "../_enviar_registros"
|
||||||
import { PREFIXO_PILAO, type zp_deletar_registros } from "../variaveis"
|
import { PREFIXO_PILAO, type zp_deletar_registros } from "../variaveis"
|
||||||
import type { visoes } from "../visoes"
|
import type { visoes } from "../visoes"
|
||||||
import type { tipo_pilao_api } from "./pilao-api.ts"
|
import type { tipo_pilao_api } from "./pilao-api.ts"
|
||||||
import type { tipoConstrutorPilao } from "./tipagem"
|
import type { tipoConstrutorPilao, tipoRetornoSerirconsulta } from "./tipagem"
|
||||||
|
|
||||||
class ClassPilao {
|
class ClassPilao {
|
||||||
#produto: string
|
#produto: string
|
||||||
|
|
@ -206,11 +206,7 @@ class ClassPilao {
|
||||||
parametros: z.infer<(typeof visoes)[T]>,
|
parametros: z.infer<(typeof visoes)[T]>,
|
||||||
) {
|
) {
|
||||||
const dados = async (): Promise<
|
const dados = async (): Promise<
|
||||||
tipoResposta<{
|
tipoResposta<tipoRetornoSerirconsulta<T>>
|
||||||
registros: any[]
|
|
||||||
legenda: string
|
|
||||||
serie: z.infer<(typeof visoes)[T]>
|
|
||||||
}>
|
|
||||||
> => {
|
> => {
|
||||||
const url = this.rotaConsultarSerie(tipoVisao).url
|
const url = this.rotaConsultarSerie(tipoVisao).url
|
||||||
const resp = await crossFetch(url.toString(), {
|
const resp = await crossFetch(url.toString(), {
|
||||||
|
|
|
||||||
|
|
@ -1 +1,10 @@
|
||||||
|
import type { z } from "zod"
|
||||||
|
import type { visoes } from "../visoes"
|
||||||
|
|
||||||
export type tipoConstrutorPilao = { produto: string; conta: string }
|
export type tipoConstrutorPilao = { produto: string; conta: string }
|
||||||
|
|
||||||
|
export type tipoRetornoSerirconsulta<T extends keyof typeof visoes> = {
|
||||||
|
registros: any[]
|
||||||
|
legenda: string
|
||||||
|
serie: z.infer<(typeof visoes)[T]>
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue