This commit is contained in:
Luiz H. R. Silva 2024-06-19 17:47:48 -03:00
parent a6205f1ab6
commit e580643abc
40 changed files with 329 additions and 507 deletions

View file

@ -2,30 +2,21 @@ import { type tipoUsuarioExterno } from "./_usuarios_quipo_governo";
export type { tipoUsuarioExterno };
/** todas as rotas de comunicação com autenticador partem dessa variável */
export declare const pAutenticacao: {
validarToken: ({ ambiente, post, buscar, }: {
validarToken: ({ ambiente, post, }: {
ambiente: "desenvolvimento" | "producao";
post: {
token: string;
};
buscar: (url: string, post: {
token: string;
}) => Promise<import("p-respostas").tipoResposta<any>>;
}) => Promise<"valido" | "erro">;
urlAutenticacao: (ambiente: "desenvolvimento" | "producao") => string;
codigoContaSite: ({ ambiente, post, buscar, }: {
codigoContaSite: ({ ambiente, post, }: {
ambiente: "desenvolvimento" | "producao";
post: {
site: string;
};
buscar: (url: string, post: {
site: string;
}) => Promise<import("p-respostas").tipoResposta<string>>;
}) => Promise<import("p-respostas").tipoResposta<string>>;
usuarios_quipo_governo: ({ token_produto, ambiente, buscar, }: {
usuarios_quipo_governo: ({ token_produto, ambiente, }: {
ambiente: "desenvolvimento" | "producao";
token_produto: string;
buscar: (url: string, headers: {
[k: string]: string;
}) => Promise<import("p-respostas").tipoResposta<tipoUsuarioExterno[]>>;
}) => Promise<import("p-respostas").tipoResposta<tipoUsuarioExterno[]>>;
};