implementado drive pilão de dados
This commit is contained in:
parent
a1e543cfb8
commit
daae40f4b2
54 changed files with 1476 additions and 19 deletions
|
|
@ -1,9 +1,11 @@
|
|||
import { type tipoResposta } from "p-respostas";
|
||||
import type { z } from "zod";
|
||||
import type { zAmbiente } from "../ts/ambiente";
|
||||
type tipoPostCodigoContaSite = {
|
||||
site: string;
|
||||
};
|
||||
export declare const codigoContaSite: ({ ambiente, post, buscar, }: {
|
||||
ambiente: "desenvolvimento" | "producao";
|
||||
ambiente: z.infer<typeof zAmbiente>;
|
||||
post: tipoPostCodigoContaSite;
|
||||
/** função que conecta com a API */
|
||||
buscar: (url: string, post: tipoPostCodigoContaSite) => Promise<tipoResposta<string>>;
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
export declare const urlAutenticacao: (ambiente: "desenvolvimento" | "producao") => string;
|
||||
import type { z } from "zod";
|
||||
import type { zAmbiente } from "../ts/ambiente";
|
||||
export declare const urlAutenticacao: (ambiente: z.infer<typeof zAmbiente>) => string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
import { type tipoResposta } from "p-respostas";
|
||||
import type { z } from "zod";
|
||||
import type { zAmbiente } from "../ts/ambiente";
|
||||
export type tipoUsuarioExterno = {
|
||||
nome: string;
|
||||
email: string;
|
||||
|
|
@ -8,7 +10,7 @@ export type tipoUsuarioExterno = {
|
|||
chave_produto: string;
|
||||
};
|
||||
export declare const usuarios_quipo_governo: ({ token_produto, ambiente, buscar, }: {
|
||||
ambiente: "desenvolvimento" | "producao";
|
||||
ambiente: z.infer<typeof zAmbiente>;
|
||||
token_produto: string;
|
||||
buscar: (url: string, headers: {
|
||||
[k: string]: string;
|
||||
|
|
|
|||
4
dist-require/autenticacao/_validarToken.d.ts
vendored
4
dist-require/autenticacao/_validarToken.d.ts
vendored
|
|
@ -2,9 +2,11 @@ import type { tipoResposta } from "p-respostas";
|
|||
type tipoPostValidarTokem = {
|
||||
token: string;
|
||||
};
|
||||
import type { z } from "zod";
|
||||
import type { zAmbiente } from "../ts/ambiente";
|
||||
/** faz a validação do token */
|
||||
export declare const validarToken: ({ ambiente, post, buscar, }: {
|
||||
ambiente: "desenvolvimento" | "producao";
|
||||
ambiente: z.infer<typeof zAmbiente>;
|
||||
post: tipoPostValidarTokem;
|
||||
/** função que conecta com a API */
|
||||
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue