.
This commit is contained in:
parent
8d240bbee9
commit
9bbff3f685
4 changed files with 12 additions and 6 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "p-drives",
|
"name": "p-drives",
|
||||||
"version": "0.208.0",
|
"version": "0.209.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
|
|
@ -59,16 +59,22 @@ export class ClassPilao {
|
||||||
return { rota, url }
|
return { rota, url }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#gerarUrlDrive(acao: string): { rota: string; url: URL } {
|
||||||
|
const rota = `${PREFIXO_PILAO}/${acao}/${this.#produto}/${this.#conta}`
|
||||||
|
const url = new URL(`${this.baseUrlApi}${rota}`)
|
||||||
|
return { rota, url }
|
||||||
|
}
|
||||||
|
|
||||||
rotaEnviarRegistros() {
|
rotaEnviarRegistros() {
|
||||||
return this.#gerarUrlApi(pilao_enderecos["enviar-registros"])
|
return this.#gerarUrlDrive(pilao_enderecos["enviar-registros"])
|
||||||
}
|
}
|
||||||
|
|
||||||
rotaDeletarRegistro() {
|
rotaDeletarRegistro() {
|
||||||
return this.#gerarUrlApi(pilao_enderecos["deletar-registros"])
|
return this.#gerarUrlDrive(pilao_enderecos["deletar-registros"])
|
||||||
}
|
}
|
||||||
|
|
||||||
rotaConsultarSerie() {
|
rotaConsultarSerie() {
|
||||||
return this.#gerarUrlApi(pilao_enderecos["consultar-serie"])
|
return this.#gerarUrlDrive(pilao_enderecos["consultar-serie"])
|
||||||
}
|
}
|
||||||
|
|
||||||
rotaIframeSerie(tipoVisao: nomesVisoes | ":tipoVisao") {
|
rotaIframeSerie(tipoVisao: nomesVisoes | ":tipoVisao") {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue