31 lines
1.3 KiB
TypeScript
31 lines
1.3 KiB
TypeScript
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, }: {
|
|
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, }: {
|
|
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, }: {
|
|
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[]>>;
|
|
};
|