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 { visoes } from "../visoes";
|
||||
import type { tipo_pilao_api } from "./pilao-api.ts";
|
||||
import type { tipoConstrutorPilao } from "./tipagem";
|
||||
import type { tipoConstrutorPilao, tipoRetornoSerirconsulta } from "./tipagem";
|
||||
declare class ClassPilao {
|
||||
#private;
|
||||
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
||||
|
|
@ -41,11 +41,7 @@ declare class ClassPilao {
|
|||
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]>;
|
||||
}>>;
|
||||
dados: () => Promise<tipoResposta<tipoRetornoSerirconsulta<T>>>;
|
||||
url: () => string;
|
||||
};
|
||||
urlLaboratorio(): {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,11 @@
|
|||
import type { z } from "zod";
|
||||
import type { visoes } from "../visoes";
|
||||
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]>;
|
||||
};
|
||||
|
|
|
|||
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 { visoes } from "../visoes";
|
||||
import type { tipo_pilao_api } from "./pilao-api.ts";
|
||||
import type { tipoConstrutorPilao } from "./tipagem";
|
||||
import type { tipoConstrutorPilao, tipoRetornoSerirconsulta } from "./tipagem";
|
||||
declare class ClassPilao {
|
||||
#private;
|
||||
constructor({ conta, produto, emDesenvolvimento, ver_log, }: tipoConstrutorPilao & {
|
||||
|
|
@ -41,11 +41,7 @@ declare class ClassPilao {
|
|||
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]>;
|
||||
}>>;
|
||||
dados: () => Promise<tipoResposta<tipoRetornoSerirconsulta<T>>>;
|
||||
url: () => string;
|
||||
};
|
||||
urlLaboratorio(): {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,11 @@
|
|||
import type { z } from "zod";
|
||||
import type { visoes } from "../visoes";
|
||||
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]>;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "p-drives",
|
||||
"version": "0.159.0",
|
||||
"version": "0.160.0",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"exports": {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import type { zp_enviar_registros } from "../_enviar_registros"
|
|||
import { PREFIXO_PILAO, 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"
|
||||
import type { tipoConstrutorPilao, tipoRetornoSerirconsulta } from "./tipagem"
|
||||
|
||||
class ClassPilao {
|
||||
#produto: string
|
||||
|
|
@ -206,11 +206,7 @@ class ClassPilao {
|
|||
parametros: z.infer<(typeof visoes)[T]>,
|
||||
) {
|
||||
const dados = async (): Promise<
|
||||
tipoResposta<{
|
||||
registros: any[]
|
||||
legenda: string
|
||||
serie: z.infer<(typeof visoes)[T]>
|
||||
}>
|
||||
tipoResposta<tipoRetornoSerirconsulta<T>>
|
||||
> => {
|
||||
const url = this.rotaConsultarSerie(tipoVisao).url
|
||||
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 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