convertido para pnpm

This commit is contained in:
Luiz Silva 2025-07-17 10:37:54 -03:00
parent 59e710f6cf
commit 175d767d27
115 changed files with 2366 additions and 1451 deletions

View file

@ -0,0 +1,57 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var codigoContaSite_exports = {};
__export(codigoContaSite_exports, {
codigoContaSite: () => codigoContaSite
});
module.exports = __toCommonJS(codigoContaSite_exports);
var import_p_respostas = require("p-respostas");
var import_cross_fetch = __toESM(require("cross-fetch"));
const codigoContaSite = async ({
url_api_autenticacao,
post
}) => {
const url = `${url_api_autenticacao}/api/codigo_prefeitura_site`;
try {
const resp = await (0, import_cross_fetch.default)(url, {
method: "POST",
body: JSON.stringify(post),
headers: { "Content-Type": "application/json" }
}).then((r) => r.json()).catch(
(e) => import_p_respostas.respostaComuns.erro("Erro ao enviar registros", [e.message])
).then((r) => r);
return resp;
} catch (e) {
return import_p_respostas.respostaComuns.erro(`erro ao buscar c\xF3digo do site: ${e}`);
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
codigoContaSite
});

View file

@ -0,0 +1,58 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var usuarios_quipo_exports = {};
__export(usuarios_quipo_exports, {
usuarios_quipo: () => usuarios_quipo
});
module.exports = __toCommonJS(usuarios_quipo_exports);
var import_cross_fetch = __toESM(require("cross-fetch"));
var import_p_respostas = require("p-respostas");
const usuarios_quipo = async ({
token_produto,
url_api_autenticacao,
inquilino
}) => {
const url = `${url_api_autenticacao}/api/usuarios__listar`;
if (!token_produto) return import_p_respostas.respostaComuns.erro("token_produto n\xE3o informado");
const headers = {
token: token_produto,
"Content-Type": "application/json"
};
return (0, import_cross_fetch.default)(url, {
method: "POST",
body: JSON.stringify({ inquilino }),
headers
}).then((r) => r.json()).catch(
(e) => import_p_respostas.respostaComuns.erro(`Erro ao buscar usu\xE1rios quipo governo ${e.message}`)
).then((r) => r);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
usuarios_quipo
});

View file

@ -0,0 +1,65 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var usuarios_quipo_vincular_exports = {};
__export(usuarios_quipo_vincular_exports, {
usuarios_quipo_vincular: () => usuarios_quipo_vincular
});
module.exports = __toCommonJS(usuarios_quipo_vincular_exports);
var import_cross_fetch = __toESM(require("cross-fetch"));
var import_p_respostas = require("p-respostas");
const usuarios_quipo_vincular = async ({
token_produto,
url_api_autenticacao,
inquilino_codigo,
vinculo,
usuario_codigo,
email
}) => {
const url = `${url_api_autenticacao}/api/vinculos__criar`;
if (!token_produto) return import_p_respostas.respostaComuns.erro("token_produto n\xE3o informado");
const headers = {
token: token_produto,
"Content-Type": "application/json"
};
const parametros = {
vinculos: { inquilino_codigo, usuario_codigo, vinculo },
email
};
return await (0, import_cross_fetch.default)(url, {
headers,
body: JSON.stringify(parametros),
method: "POST"
}).then(async (r) => await r.json()).catch(
(e) => import_p_respostas.respostaComuns.erro(`Erro ao criar vinculo de usuario ${e.message}`)
);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
usuarios_quipo_vincular
});

View file

@ -0,0 +1,56 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var validarToken_exports = {};
__export(validarToken_exports, {
validarToken: () => validarToken
});
module.exports = __toCommonJS(validarToken_exports);
var import_cross_fetch = __toESM(require("cross-fetch"));
const validarToken = async ({
url_api_autenticacao,
post
}) => {
const url = `${url_api_autenticacao}/api/validar_token`;
try {
const resposta = await (0, import_cross_fetch.default)(url, {
method: "POST",
body: JSON.stringify(post),
headers: { "Content-Type": "application/json" }
}).then((r) => r.json()).then((r) => r).then(
(resposta2) => resposta2.eCerto ? "valido" : "erro"
).catch(() => "erro");
return resposta;
} catch (_e) {
return "erro";
}
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
validarToken
});

View file

@ -0,0 +1,37 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var autenticacao_exports = {};
__export(autenticacao_exports, {
pAutenticacao: () => pAutenticacao
});
module.exports = __toCommonJS(autenticacao_exports);
var import_codigoContaSite = require("./_codigoContaSite");
var import_usuarios_quipo = require("./_usuarios_quipo");
var import_usuarios_quipo_vincular = require("./_usuarios_quipo_vincular");
var import_validarToken = require("./_validarToken");
const pAutenticacao = {
validarToken: import_validarToken.validarToken,
codigoContaSite: import_codigoContaSite.codigoContaSite,
usuarios_quipo: import_usuarios_quipo.usuarios_quipo,
usuarios_quipo_vincular: import_usuarios_quipo_vincular.usuarios_quipo_vincular
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
pAutenticacao
});

32
dist-back/index.js Normal file
View file

@ -0,0 +1,32 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var index_exports = {};
module.exports = __toCommonJS(index_exports);
__reExport(index_exports, require("./autenticacao"), module.exports);
__reExport(index_exports, require("./lista-prefeituras"), module.exports);
__reExport(index_exports, require("./lista-usuarios"), module.exports);
__reExport(index_exports, require("./lista-vinculos"), module.exports);
__reExport(index_exports, require("./produtos"), module.exports);
__reExport(index_exports, require("./tokens"), module.exports);
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
...require("./autenticacao"),
...require("./lista-prefeituras"),
...require("./lista-usuarios"),
...require("./lista-vinculos"),
...require("./produtos"),
...require("./tokens")
});

View file

@ -0,0 +1,61 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var lista_prefeituras_exports = {};
__export(lista_prefeituras_exports, {
listarPrefeituras: () => listarPrefeituras,
tx_listar_prefeituras: () => tx_listar_prefeituras
});
module.exports = __toCommonJS(lista_prefeituras_exports);
var import_cross_fetch = __toESM(require("cross-fetch"));
var import_p_respostas = require("p-respostas");
const tx_listar_prefeituras = "listar_prefeituras";
const listarPrefeituras = async ({
url_api_autenticacao
}) => {
const url = `${url_api_autenticacao}/api/${tx_listar_prefeituras}`;
return (0, import_cross_fetch.default)(url).then(async (a) => {
const texto = await a.text();
try {
const res = JSON.parse(texto);
return res;
} catch (error) {
return import_p_respostas.respostaComuns.erro(`Erro ao listar cidades: ${error.message}`, [
texto,
error
]);
}
}).catch(
(error) => import_p_respostas.respostaComuns.erro(`Erro ao listar cidades: ${error.message}`, [error])
);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
listarPrefeituras,
tx_listar_prefeituras
});

View file

@ -0,0 +1,66 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var lista_usuarios_exports = {};
__export(lista_usuarios_exports, {
listarUsuarios: () => listarUsuarios,
tx_usuarios__listar: () => tx_usuarios__listar
});
module.exports = __toCommonJS(lista_usuarios_exports);
var import_cross_fetch = __toESM(require("cross-fetch"));
var import_p_respostas = require("p-respostas");
const tx_usuarios__listar = "usuarios__listar";
const listarUsuarios = async ({
token,
url_api_autenticacao
}, parametros) => {
const url = `${url_api_autenticacao}/api/${tx_usuarios__listar}`;
return (0, import_cross_fetch.default)(url, {
headers: { token, "Content-Type": "application/json" },
body: JSON.stringify(parametros),
method: "post"
}).then(async (a) => {
const texto = await a.text();
try {
const res = JSON.parse(texto);
return res;
} catch (error) {
return import_p_respostas.respostaComuns.erro(
`Erro ao listar usu\xE1rios: ${error.message}`,
[texto, error]
);
}
}).catch(
(error) => import_p_respostas.respostaComuns.erro(`Erro ao listar usu\xE1rios: ${error.message}`, [error])
);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
listarUsuarios,
tx_usuarios__listar
});

View file

@ -0,0 +1,89 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var lista_vinculos_exports = {};
__export(lista_vinculos_exports, {
listarVinculos: () => listarVinculos,
tx_vinculos__listar: () => tx_vinculos__listar
});
module.exports = __toCommonJS(lista_vinculos_exports);
var import_cross_fetch = __toESM(require("cross-fetch"));
var import_p_comuns = require("p-comuns");
var import_p_respostas = require("p-respostas");
var import_uuid = require("./plugins/uuid");
const tx_vinculos__listar = "vinculos__listar";
const listarVinculos = async ({
token,
url_api_autenticacao,
desativarCache
}) => {
const chaveCache = (0, import_uuid.uuidV3)({ token, url_api_autenticacao });
if (!desativarCache) {
const valorCache = (0, import_p_comuns.cacheM)(chaveCache);
if (valorCache) return valorCache;
}
const res = (async () => {
const url = `${url_api_autenticacao}/api/${tx_vinculos__listar}`;
return (0, import_cross_fetch.default)(url, {
headers: { token, "Content-Type": "application/json" },
body: "{}",
method: "post"
}).then(async (a) => {
const texto = await a.text();
try {
const res2 = JSON.parse(texto);
return res2;
} catch (error) {
return import_p_respostas.respostaComuns.erro(
`Erro ao listar cidades: ${error.message}`,
[texto, error]
);
}
}).catch(
(error) => import_p_respostas.respostaComuns.erro(`Erro ao listar cidades: ${error.message}`, [
error
])
);
})();
(0, import_p_comuns.cacheM)(
chaveCache,
res.then((a) => {
try {
} catch {
}
return a;
}),
10
);
return res;
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
listarVinculos,
tx_vinculos__listar
});

35
dist-back/plugins/uuid.js Normal file
View file

@ -0,0 +1,35 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var uuid_exports = {};
__export(uuid_exports, {
uuidV3: () => uuidV3,
uuidV4: () => uuidV4
});
module.exports = __toCommonJS(uuid_exports);
var import_uuid = require("uuid");
const uuidV3 = (qualquerCoisa) => (0, import_uuid.v3)(
typeof qualquerCoisa == "string" ? qualquerCoisa : typeof qualquerCoisa == "number" ? String(qualquerCoisa) : JSON.stringify(qualquerCoisa),
import_uuid.NIL
);
const uuidV4 = import_uuid.v4;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
uuidV3,
uuidV4
});

View file

@ -0,0 +1,34 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var betha_meio_ambiente_exports = {};
__export(betha_meio_ambiente_exports, {
produto_betha_meio_ambiente: () => produto_betha_meio_ambiente
});
module.exports = __toCommonJS(betha_meio_ambiente_exports);
var import_tipagem = require("./tipagem");
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`}`
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
produto_betha_meio_ambiente
});

View file

@ -0,0 +1,35 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var e_licencie_gov_exports = {};
__export(e_licencie_gov_exports, {
produto_e_licencie_gov: () => produto_e_licencie_gov
});
module.exports = __toCommonJS(e_licencie_gov_exports);
var import_betha_meio_ambiente = require("./_betha-meio-ambiente");
var import_tipagem = require("./tipagem");
const produto_e_licencie_gov = new import_tipagem.ProdutoQuipo({
...import_betha_meio_ambiente.produto_betha_meio_ambiente,
titulo: "e-Licencie Gov",
chave_produto: "e-licencie-gov",
url_produto: ({ inquilino, base_url, vinculo }) => `${base_url}/${inquilino}${vinculo == "anonimo" ? "" : `/${vinculo}#/admin`}`
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
produto_e_licencie_gov
});

View file

@ -0,0 +1,34 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var e_licencie_exports = {};
__export(e_licencie_exports, {
produto_e_licencie: () => produto_e_licencie
});
module.exports = __toCommonJS(e_licencie_exports);
var import_tipagem = require("./tipagem");
const produto_e_licencie = new import_tipagem.Produto({
chave_produto: "e-licencie",
titulo: "e-Licencie",
descricao: "e-Licencie: Software de gest\xE3o de processos e dados ambientais.",
url_produto: ({ base_url }) => base_url
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
produto_e_licencie
});

View file

@ -0,0 +1,34 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var suporte_exports = {};
__export(suporte_exports, {
produto_suporte: () => produto_suporte
});
module.exports = __toCommonJS(suporte_exports);
var import_tipagem = require("./tipagem");
const produto_suporte = new import_tipagem.Produto({
chave_produto: "suporte",
titulo: "Suporte",
descricao: "Gest\xE3o de contas e usu\xE1rios dos produtos da e-licencie",
url_produto: ({ base_url }) => base_url
});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
produto_suporte
});

View file

@ -0,0 +1 @@
"use strict";

View file

@ -0,0 +1,58 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var produtos_exports = {};
__export(produtos_exports, {
Produto: () => import_tipagem.Produto,
chaves_produto: () => import_tipagem.chaves_produto,
listaProdutos: () => listaProdutos,
opcoesVinculos: () => import_tipagem.opcoesVinculos,
opcoesVinculosGov: () => import_tipagem.opcoesVinculosGov,
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,
produto_suporte: () => import_suporte.produto_suporte,
provedoresGov: () => import_tipagem.provedoresGov,
versao_usuarios: () => import_tipagem.versao_usuarios
});
module.exports = __toCommonJS(produtos_exports);
var import_betha_meio_ambiente = require("./_betha-meio-ambiente");
var import_e_licencie = require("./_e-licencie");
var import_e_licencie_gov = require("./_e-licencie-gov");
var import_suporte = require("./_suporte");
var import_tipagem = require("./tipagem");
const listaProdutos = {
"betha-meio-ambiente": import_betha_meio_ambiente.produto_betha_meio_ambiente,
"e-licencie": import_e_licencie.produto_e_licencie,
"e-licencie-gov": import_e_licencie_gov.produto_e_licencie_gov,
suporte: import_suporte.produto_suporte
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Produto,
chaves_produto,
listaProdutos,
opcoesVinculos,
opcoesVinculosGov,
produto_betha_meio_ambiente,
produto_e_licencie,
produto_e_licencie_gov,
produto_suporte,
provedoresGov,
versao_usuarios
});

View file

@ -0,0 +1,92 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var tipagem_exports = {};
__export(tipagem_exports, {
Produto: () => Produto,
ProdutoQuipo: () => ProdutoQuipo,
chaves_produto: () => chaves_produto,
opcoesVinculos: () => opcoesVinculos,
opcoesVinculosGov: () => opcoesVinculosGov,
opcoesVinculosSuporte: () => opcoesVinculosSuporte,
provedoresGov: () => provedoresGov,
tiposAcesso: () => tiposAcesso,
versao_usuarios: () => versao_usuarios
});
module.exports = __toCommonJS(tipagem_exports);
var chaves_produto = /* @__PURE__ */ ((chaves_produto2) => {
chaves_produto2["suporte"] = "suporte";
chaves_produto2["betha-meio-ambiente"] = "betha-meio-ambiente";
chaves_produto2["e-licencie-gov"] = "e-licencie-gov";
chaves_produto2["e-licencie"] = "e-licencie";
return chaves_produto2;
})(chaves_produto || {});
const opcoesVinculosGov = {
governo: "Governo",
sociedade: "Sociedade",
anonimo: "An\xF4nimo"
};
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,
["e-licencie" /* e-licencie */]: {}
};
const tiposAcesso = opcoesVinculosGov;
const provedoresGov = {
/** Sistema de login da Beta */
"betha-sistemas": "Betha Sistemas",
/** sistema de login do altenticado */
"e-licencie": "e-licencie"
};
class Produto {
constructor(_) {
this.chave_produto = _.chave_produto;
this.titulo = _.titulo;
this.descricao = _.descricao;
this.url_produto = _.url_produto;
}
extruturaToken(_) {
return { ..._, chave_produto: this.chave_produto };
}
}
class ProdutoQuipo extends Produto {
extruturaToken(_) {
return { ..._, chave_produto: this.chave_produto };
}
}
var versao_usuarios = /* @__PURE__ */ ((versao_usuarios2) => {
versao_usuarios2["versao_usuarios_autenticacao"] = "versao_usuarios_autenticacao";
versao_usuarios2["versao_usuarios_quipo"] = "versao_usuarios_quipo";
return versao_usuarios2;
})(versao_usuarios || {});
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Produto,
ProdutoQuipo,
chaves_produto,
opcoesVinculos,
opcoesVinculosGov,
opcoesVinculosSuporte,
provedoresGov,
tiposAcesso,
versao_usuarios
});

16
dist-back/tokens/index.js Normal file
View file

@ -0,0 +1,16 @@
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var tokens_exports = {};
module.exports = __toCommonJS(tokens_exports);