build
This commit is contained in:
parent
7e7fbb6809
commit
766e4716eb
4 changed files with 7 additions and 43 deletions
15
dist-import/autenticacao.d.ts
vendored
15
dist-import/autenticacao.d.ts
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
|
import type { tipoResposta } from "~comuns";
|
||||||
type tipoPostValidarTokem = {
|
type tipoPostValidarTokem = {
|
||||||
token: string;
|
token: string;
|
||||||
};
|
};
|
||||||
|
|
@ -6,19 +7,7 @@ export declare const pAutenticacao: {
|
||||||
urlValidarToken: ({ ambiente, post, buscar, }: {
|
urlValidarToken: ({ ambiente, post, buscar, }: {
|
||||||
ambiente: "desenvolvimento" | "producao";
|
ambiente: "desenvolvimento" | "producao";
|
||||||
post: tipoPostValidarTokem;
|
post: tipoPostValidarTokem;
|
||||||
buscar: (url: string, post: tipoPostValidarTokem) => Promise<{
|
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
|
||||||
cod: 200;
|
|
||||||
valor: any;
|
|
||||||
eCerto: true;
|
|
||||||
eErro: false;
|
|
||||||
mensagem: undefined;
|
|
||||||
} | {
|
|
||||||
cod: 400;
|
|
||||||
valor: any;
|
|
||||||
eCerto: false;
|
|
||||||
eErro: true;
|
|
||||||
mensagem: string;
|
|
||||||
}>;
|
|
||||||
}) => Promise<"valido" | "erro">;
|
}) => Promise<"valido" | "erro">;
|
||||||
};
|
};
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
15
dist-require/autenticacao.d.ts
vendored
15
dist-require/autenticacao.d.ts
vendored
|
|
@ -1,3 +1,4 @@
|
||||||
|
import type { tipoResposta } from "~comuns";
|
||||||
type tipoPostValidarTokem = {
|
type tipoPostValidarTokem = {
|
||||||
token: string;
|
token: string;
|
||||||
};
|
};
|
||||||
|
|
@ -6,19 +7,7 @@ export declare const pAutenticacao: {
|
||||||
urlValidarToken: ({ ambiente, post, buscar, }: {
|
urlValidarToken: ({ ambiente, post, buscar, }: {
|
||||||
ambiente: "desenvolvimento" | "producao";
|
ambiente: "desenvolvimento" | "producao";
|
||||||
post: tipoPostValidarTokem;
|
post: tipoPostValidarTokem;
|
||||||
buscar: (url: string, post: tipoPostValidarTokem) => Promise<{
|
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
|
||||||
cod: 200;
|
|
||||||
valor: any;
|
|
||||||
eCerto: true;
|
|
||||||
eErro: false;
|
|
||||||
mensagem: undefined;
|
|
||||||
} | {
|
|
||||||
cod: 400;
|
|
||||||
valor: any;
|
|
||||||
eCerto: false;
|
|
||||||
eErro: true;
|
|
||||||
mensagem: string;
|
|
||||||
}>;
|
|
||||||
}) => Promise<"valido" | "erro">;
|
}) => Promise<"valido" | "erro">;
|
||||||
};
|
};
|
||||||
export {};
|
export {};
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "~drives",
|
"name": "~drives",
|
||||||
"version": "0.10.0",
|
"version": "0.11.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
import type { tipoResposta } from "~comuns"
|
||||||
type tipoPostValidarTokem = { token: string }
|
type tipoPostValidarTokem = { token: string }
|
||||||
/** retorna uma url e os parametros que devem ser enviádos */
|
/** retorna uma url e os parametros que devem ser enviádos */
|
||||||
const urlValidarToken = async ({
|
const urlValidarToken = async ({
|
||||||
|
|
@ -10,22 +11,7 @@ const urlValidarToken = async ({
|
||||||
buscar: (
|
buscar: (
|
||||||
url: string,
|
url: string,
|
||||||
post: tipoPostValidarTokem,
|
post: tipoPostValidarTokem,
|
||||||
) => Promise<
|
) => Promise<tipoResposta<any>>
|
||||||
| {
|
|
||||||
cod: 200
|
|
||||||
valor: any
|
|
||||||
eCerto: true
|
|
||||||
eErro: false
|
|
||||||
mensagem: undefined
|
|
||||||
}
|
|
||||||
| {
|
|
||||||
cod: 400
|
|
||||||
valor: any
|
|
||||||
eCerto: false
|
|
||||||
eErro: true
|
|
||||||
mensagem: string
|
|
||||||
}
|
|
||||||
>
|
|
||||||
}): Promise<"valido" | "erro"> => {
|
}): Promise<"valido" | "erro"> => {
|
||||||
const url = `${
|
const url = `${
|
||||||
ambiente == "producao"
|
ambiente == "producao"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue