melhorias de tipagem

This commit is contained in:
Luiz Silva 2025-08-20 12:09:18 -03:00
parent d53450b686
commit 6480b90500
10 changed files with 54 additions and 21 deletions

View file

@ -26,7 +26,7 @@ const produto_betha_meio_ambiente = new import_tipagem.ProdutoQuipo({
chave_produto: "betha-meio-ambiente",
titulo: "Betha Meio Ambiente",
descricao: "Betha Meio Ambiente: Software de gest\xE3o de processos ambientais para \xF3rg\xE3os p\xFAblicos da Betha Sistemas.",
url_produto: ({ inquilino, base_url, vinculo }) => `${base_url}/${inquilino}${vinculo == "anonimo" ? "" : `/${vinculo}#/admin`}`
url_produto: ({ inquilino, base_url, vinculo }) => `${base_url}/${inquilino}${vinculo == import_tipagem.opcoesVinculosGovEnum.anonimo ? "" : `/${vinculo}#/admin`}`
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {

View file

@ -26,7 +26,7 @@ const produto_e_licencie_gov = new import_tipagem.ProdutoQuipo({
chave_produto: "e-licencie-gov",
titulo: "e-licencie.gov",
descricao: "e-licencie.gov: Software de gest\xE3o de processos e dados ambientais.",
url_produto: ({ inquilino, base_url, vinculo }) => `${base_url}/${inquilino}${vinculo == "anonimo" ? "" : `/${vinculo}#/admin`}`
url_produto: ({ inquilino, base_url, vinculo }) => `${base_url}/${inquilino}${vinculo == import_tipagem.opcoesVinculosGovEnum.anonimo ? "" : `/${vinculo}#/admin`}`
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {

View file

@ -23,6 +23,8 @@ __export(produtos_exports, {
listaProdutos: () => listaProdutos,
opcoesVinculos: () => import_tipagem.opcoesVinculos,
opcoesVinculosGov: () => import_tipagem.opcoesVinculosGov,
opcoesVinculosGovDescricao: () => import_tipagem.opcoesVinculosGovDescricao,
opcoesVinculosGovEnum: () => import_tipagem.opcoesVinculosGovEnum,
produto_betha_meio_ambiente: () => import_betha_meio_ambiente.produto_betha_meio_ambiente,
produto_e_licencie: () => import_e_licencie.produto_e_licencie,
produto_e_licencie_gov: () => import_e_licencie_gov.produto_e_licencie_gov,
@ -49,6 +51,8 @@ const listaProdutos = {
listaProdutos,
opcoesVinculos,
opcoesVinculosGov,
opcoesVinculosGovDescricao,
opcoesVinculosGovEnum,
produto_betha_meio_ambiente,
produto_e_licencie,
produto_e_licencie_gov,

View file

@ -23,6 +23,8 @@ __export(tipagem_exports, {
chaves_produto: () => chaves_produto,
opcoesVinculos: () => opcoesVinculos,
opcoesVinculosGov: () => opcoesVinculosGov,
opcoesVinculosGovDescricao: () => opcoesVinculosGovDescricao,
opcoesVinculosGovEnum: () => opcoesVinculosGovEnum,
opcoesVinculosSuporte: () => opcoesVinculosSuporte,
provedoresGov: () => provedoresGov,
tiposAcesso: () => tiposAcesso,
@ -36,21 +38,28 @@ var chaves_produto = /* @__PURE__ */ ((chaves_produto2) => {
chaves_produto2["e-licencie"] = "e-licencie";
return chaves_produto2;
})(chaves_produto || {});
const opcoesVinculosGov = {
var opcoesVinculosGovEnum = /* @__PURE__ */ ((opcoesVinculosGovEnum2) => {
opcoesVinculosGovEnum2["governo"] = "governo";
opcoesVinculosGovEnum2["sociedade"] = "sociedade";
opcoesVinculosGovEnum2["anonimo"] = "anonimo";
return opcoesVinculosGovEnum2;
})(opcoesVinculosGovEnum || {});
const opcoesVinculosGovDescricao = {
governo: "Governo",
sociedade: "Sociedade",
anonimo: "An\xF4nimo"
};
const opcoesVinculosGov = opcoesVinculosGovDescricao;
const opcoesVinculosSuporte = {
"suporte-1": "Suporte Prim\xE1rio"
};
const opcoesVinculos = {
["suporte" /* suporte */]: opcoesVinculosSuporte,
["betha-meio-ambiente" /* betha-meio-ambiente */]: opcoesVinculosGov,
["e-licencie-gov" /* e-licencie-gov */]: opcoesVinculosGov,
["betha-meio-ambiente" /* betha-meio-ambiente */]: opcoesVinculosGovDescricao,
["e-licencie-gov" /* e-licencie-gov */]: opcoesVinculosGovDescricao,
["e-licencie" /* e-licencie */]: {}
};
const tiposAcesso = opcoesVinculosGov;
const tiposAcesso = opcoesVinculosGovDescricao;
const provedoresGov = {
/** Sistema de login da Beta */
"betha-sistemas": "Betha Sistemas",
@ -85,6 +94,8 @@ var versao_usuarios = /* @__PURE__ */ ((versao_usuarios2) => {
chaves_produto,
opcoesVinculos,
opcoesVinculosGov,
opcoesVinculosGovDescricao,
opcoesVinculosGovEnum,
opcoesVinculosSuporte,
provedoresGov,
tiposAcesso,