29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
export type { tipoUsuarioExterno } from "./_consultaUsuariosexterno";
|
|
/** 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>>;
|
|
consultaUsuariosexterno: ({ token_produto, ambiente, codigo_produto, chave_produto, }: {
|
|
ambiente: "desenvolvimento" | "producao";
|
|
token_produto: string;
|
|
codigo_produto: string;
|
|
chave_produto: string;
|
|
}) => Promise<import("p-respostas").tipoResposta<import("./_consultaUsuariosexterno").tipoUsuarioExterno[]>>;
|
|
};
|