This commit is contained in:
Luiz Silva 2025-01-07 11:09:50 -03:00
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

View file

@ -1,6 +1,6 @@
{
"name": "p-drives",
"version": "0.208.0",
"version": "0.209.0",
"description": "",
"main": "src/index.ts",
"exports": {

View file

@ -59,16 +59,22 @@ export class ClassPilao {
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() {
return this.#gerarUrlApi(pilao_enderecos["enviar-registros"])
return this.#gerarUrlDrive(pilao_enderecos["enviar-registros"])
}
rotaDeletarRegistro() {
return this.#gerarUrlApi(pilao_enderecos["deletar-registros"])
return this.#gerarUrlDrive(pilao_enderecos["deletar-registros"])
}
rotaConsultarSerie() {
return this.#gerarUrlApi(pilao_enderecos["consultar-serie"])
return this.#gerarUrlDrive(pilao_enderecos["consultar-serie"])
}
rotaIframeSerie(tipoVisao: nomesVisoes | ":tipoVisao") {