.
This commit is contained in:
parent
284484edd5
commit
6d8a9e66b4
27 changed files with 90 additions and 6 deletions
25
dist-import/autenticacao.d.ts
vendored
Normal file
25
dist-import/autenticacao.d.ts
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import { type tipoResposta } from "~respostas";
|
||||
type tipoPostValidarTokem = {
|
||||
token: string;
|
||||
};
|
||||
type tipoPostCodigoContaSite = {
|
||||
site: string;
|
||||
};
|
||||
/** todas as rotas de comunicação com autenticador partem dessa variável */
|
||||
export declare const pAutenticacao: {
|
||||
validarToken: ({ ambiente, post, buscar, }: {
|
||||
ambiente: "desenvolvimento" | "producao";
|
||||
post: tipoPostValidarTokem;
|
||||
/** função que conecta com a API */
|
||||
buscar: (url: string, post: tipoPostValidarTokem) => Promise<tipoResposta<any>>;
|
||||
}) => Promise<"valido" | "erro">;
|
||||
urlAutenticacao: (ambiente: "desenvolvimento" | "producao") => string;
|
||||
codigoContaSite: ({ ambiente, post, buscar, }: {
|
||||
ambiente: "desenvolvimento" | "producao";
|
||||
post: tipoPostCodigoContaSite;
|
||||
/** função que conecta com a API */
|
||||
buscar: (url: string, post: tipoPostCodigoContaSite) => Promise<tipoResposta<string>>;
|
||||
}) => Promise<tipoResposta<string>>;
|
||||
};
|
||||
export {};
|
||||
//# sourceMappingURL=autenticacao.d.ts.map
|
||||
1
dist-import/autenticacao.d.ts.map
Normal file
1
dist-import/autenticacao.d.ts.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"autenticacao.d.ts","sourceRoot":"","sources":["../src/autenticacao.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,YAAY,EAAE,MAAM,YAAY,CAAA;AAC9D,KAAK,oBAAoB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAC7C,KAAK,uBAAuB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAA;AAkE/C,2EAA2E;AAC3E,eAAO,MAAM,aAAa;;kBApDd,iBAAiB,GAAG,UAAU;cAClC,oBAAoB;QAC1B,mCAAmC;sBAE5B,MAAM,QACL,oBAAoB,KACvB,QAAQ,aAAa,GAAG,CAAC,CAAC;UAC7B,QAAQ,QAAQ,GAAG,MAAM,CAAC;gCApBK,iBAAiB,GAAG,UAAU;;kBAyCrD,iBAAiB,GAAG,UAAU;cAClC,uBAAuB;QAC7B,mCAAmC;sBAE5B,MAAM,QACL,uBAAuB,KAC1B,QAAQ,aAAa,MAAM,CAAC,CAAC;UAChC,QAAQ,aAAa,MAAM,CAAC,CAAC;CAqBhC,CAAA"}
|
||||
|
|
@ -40,3 +40,4 @@ export const pAutenticacao = {
|
|||
urlAutenticacao,
|
||||
codigoContaSite,
|
||||
};
|
||||
//# sourceMappingURL=autenticacao.js.map
|
||||
1
dist-import/autenticacao.js.map
Normal file
1
dist-import/autenticacao.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"autenticacao.js","sourceRoot":"","sources":["../src/autenticacao.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAqB,MAAM,YAAY,CAAA;AAI9D,MAAM,eAAe,GAAG,CAAC,QAAwC,EAAE,EAAE,CACnE,GACE,QAAQ,IAAI,UAAU;IACpB,CAAC,CAAC,8BAA8B;IAChC,CAAC,CAAC,uBACN,eAAe,CAAA;AAEjB,+BAA+B;AAC/B,MAAM,YAAY,GAAG,CAAO,EAC1B,QAAQ,EACR,IAAI,EACJ,MAAM,GASP,EAA8B,EAAE;IAC/B,MAAM,GAAG,GAAG,GAAG,eAAe,CAAC,QAAQ,CAAC,iCAAiC,CAAA;IAEzE,IAAI;QACF,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC;aACrC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CACjB,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAE,QAAkB,CAAC,CAAC,CAAE,MAAgB,CAC1D;aACA,KAAK,CAAC,GAAG,EAAE,CAAC,MAAe,CAAC,CAAA;QAE/B,OAAO,QAAQ,CAAA;KAChB;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,MAAM,CAAA;KACd;AACH,CAAC,CAAA,CAAA;AAED,MAAM,eAAe,GAAG,CAAO,EAC7B,QAAQ,EACR,IAAI,EACJ,MAAM,GASP,EAAiC,EAAE;IAClC,MAAM,GAAG,GAAG,GAAG,eAAe,CAC5B,QAAQ,CACT,0CAA0C,CAAA;IAE3C,IAAI;QACF,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAC/C,cAAc,CAAC,IAAI,CAAC,kCAAkC,CAAC,EAAE,CAAC,CAC3D,CAAA;QAED,OAAO,IAAI,CAAA;KACZ;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,cAAc,CAAC,IAAI,CAAC,kCAAkC,CAAC,EAAE,CAAC,CAAA;KAClE;AACH,CAAC,CAAA,CAAA;AAED,2EAA2E;AAC3E,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,YAAY;IACZ,eAAe;IACf,eAAe;CAChB,CAAA"}
|
||||
3
dist-import/index.d.ts
vendored
Normal file
3
dist-import/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
export * from "./tokenQuipo";
|
||||
export * from "./autenticacao";
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
dist-import/index.d.ts.map
Normal file
1
dist-import/index.d.ts.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA"}
|
||||
|
|
@ -1,2 +1,3 @@
|
|||
export * from "./tokenQuipo";
|
||||
export * from "./autenticacao";
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
dist-import/index.js.map
Normal file
1
dist-import/index.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA"}
|
||||
35
dist-import/tokenQuipo.d.ts
vendored
Normal file
35
dist-import/tokenQuipo.d.ts
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
import { z } from "zod";
|
||||
export declare const ztokenQuipo: z.ZodObject<{
|
||||
provedor: z.ZodString;
|
||||
codigo_usuario: z.ZodString;
|
||||
nome_usuario: z.ZodString;
|
||||
codigo_conta: z.ZodString;
|
||||
nome_conta: z.ZodString;
|
||||
codigo_autenticacao: z.ZodString;
|
||||
codigo_acesso_produto: z.ZodString;
|
||||
tipo_de_acesso: z.ZodEnum<["publico", "governo", "sociedade"]>;
|
||||
exp: z.ZodOptional<z.ZodNumber>;
|
||||
}, "strip", z.ZodTypeAny, {
|
||||
provedor: string;
|
||||
codigo_usuario: string;
|
||||
nome_usuario: string;
|
||||
codigo_conta: string;
|
||||
nome_conta: string;
|
||||
codigo_autenticacao: string;
|
||||
codigo_acesso_produto: string;
|
||||
tipo_de_acesso: "publico" | "governo" | "sociedade";
|
||||
exp?: number | undefined;
|
||||
}, {
|
||||
provedor: string;
|
||||
codigo_usuario: string;
|
||||
nome_usuario: string;
|
||||
codigo_conta: string;
|
||||
nome_conta: string;
|
||||
codigo_autenticacao: string;
|
||||
codigo_acesso_produto: string;
|
||||
tipo_de_acesso: "publico" | "governo" | "sociedade";
|
||||
exp?: number | undefined;
|
||||
}>;
|
||||
export type tipos_de_acesso_quipo = z.infer<typeof ztokenQuipo>["tipo_de_acesso"];
|
||||
export type tipoTokenQuipo = z.infer<typeof ztokenQuipo>;
|
||||
//# sourceMappingURL=tokenQuipo.d.ts.map
|
||||
1
dist-import/tokenQuipo.d.ts.map
Normal file
1
dist-import/tokenQuipo.d.ts.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tokenQuipo.d.ts","sourceRoot":"","sources":["../src/tokenQuipo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAetB,CAAA;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CACzC,OAAO,WAAW,CACnB,CAAC,gBAAgB,CAAC,CAAA;AAEnB,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAA"}
|
||||
|
|
@ -10,3 +10,4 @@ export const ztokenQuipo = z.object({
|
|||
tipo_de_acesso: z.enum(["publico", "governo", "sociedade"]),
|
||||
exp: z.number().optional(),
|
||||
});
|
||||
//# sourceMappingURL=tokenQuipo.js.map
|
||||
1
dist-import/tokenQuipo.js.map
Normal file
1
dist-import/tokenQuipo.js.map
Normal file
|
|
@ -0,0 +1 @@
|
|||
{"version":3,"file":"tokenQuipo.js","sourceRoot":"","sources":["../src/tokenQuipo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IAEpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IAExB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IAEtB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE;IAEjC,cAAc,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC;IAE3D,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC3B,CAAC,CAAA"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue