implementado drive pilão de dados

This commit is contained in:
Luiz H. R. Silva 2024-06-14 12:30:08 -03:00
parent a1e543cfb8
commit daae40f4b2
54 changed files with 1476 additions and 19 deletions

View file

@ -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>>;

View file

@ -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;

View file

@ -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;

View file

@ -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>>;