build
This commit is contained in:
parent
9e9cee855c
commit
e5bbcf11d3
8 changed files with 40 additions and 13 deletions
|
|
@ -13,6 +13,13 @@ import type { visoes_pilao, z_padroes } from "../visoes/listaDeVisoes"
|
|||
import type { tipo_pilao_api } from "./pilao-api.ts"
|
||||
import type { tipoConstrutorPilao, tipoRetornoSerieconsulta } from "./tipagem"
|
||||
|
||||
export enum pilao_enderecos {
|
||||
"enviar-registros" = "enviar-registros",
|
||||
"deletar-registros" = "deletar-registros",
|
||||
"consultar-serie" = "consultar-serie",
|
||||
laboratório = "laboratório",
|
||||
}
|
||||
|
||||
export type nomesVisoes = keyof typeof visoes_pilao
|
||||
|
||||
export type retornoSerieConsultar<T extends nomesVisoes> = {
|
||||
|
|
@ -55,19 +62,19 @@ export class ClassPilao {
|
|||
}
|
||||
|
||||
rotaEnviarRegistros() {
|
||||
return this.#gerarUrl("enviar-registros")
|
||||
return this.#gerarUrl(pilao_enderecos["enviar-registros"])
|
||||
}
|
||||
|
||||
rotaDeletarRegistro() {
|
||||
return this.#gerarUrl("deletar-registros")
|
||||
return this.#gerarUrl(pilao_enderecos["deletar-registros"])
|
||||
}
|
||||
|
||||
rotaConsultarSerie(tipoVisao: nomesVisoes | ":tipoVisao") {
|
||||
return this.#gerarUrl("consultar-serie", tipoVisao)
|
||||
return this.#gerarUrl(pilao_enderecos["consultar-serie"], tipoVisao)
|
||||
}
|
||||
|
||||
rotaIframeSerie(tipoVisao: nomesVisoes | ":tipoVisao") {
|
||||
const rota = `${PREFIXO_PILAO}/consultar-serie/${this.#produto}/${this.#conta}/${tipoVisao}`
|
||||
const rota = `${PREFIXO_PILAO}/${pilao_enderecos["consultar-serie"]}/${this.#produto}/${this.#conta}/${tipoVisao}`
|
||||
const url = `${this.baseUrlSite}${rota}`
|
||||
return { rota, url }
|
||||
}
|
||||
|
|
@ -288,7 +295,7 @@ export class ClassPilao {
|
|||
}
|
||||
|
||||
urlLaboratorio() {
|
||||
const rota = `${PREFIXO_PILAO}/laboratório/${this.#produto}/${this.#conta}`
|
||||
const rota = `${PREFIXO_PILAO}/${pilao_enderecos}/${this.#produto}/${this.#conta}`
|
||||
const url = `${this.baseUrlSite}${rota}`
|
||||
return { rota, url }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ export type tipoConstrutorPilao = { produto: string; conta: string }
|
|||
export type z_tipagem_registros = {
|
||||
z_contagem_em_barra_vertical: any[]
|
||||
z_contagem_em_pizza: any[]
|
||||
z_tabela: any[]
|
||||
z_tabela: { [k: string]: any }[]
|
||||
z_soma_em_barra_vertical: any[]
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ export * from "./Pilao"
|
|||
export * from "./Pilao/pilao-api"
|
||||
export * from "./Pilao/tipagem"
|
||||
|
||||
import { pilao_enderecos } from "./Pilao"
|
||||
import { z_filtro } from "./_serie_consultar"
|
||||
import { extruturas_de_campos } from "./visoes"
|
||||
import { visoes_pilao, z_padroes } from "./visoes/listaDeVisoes"
|
||||
|
|
@ -36,4 +37,5 @@ export const pPilao = {
|
|||
...visoes_pilao,
|
||||
extruturas_de_campos,
|
||||
z_padroes,
|
||||
pilao_enderecos,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue