removido bun
This commit is contained in:
parent
98bcbff6cf
commit
430ff53c68
26 changed files with 2086 additions and 371 deletions
72
dist-back/NPS/index.js
Normal file
72
dist-back/NPS/index.js
Normal file
|
|
@ -0,0 +1,72 @@
|
||||||
|
"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 NPS_exports = {};
|
||||||
|
__export(NPS_exports, {
|
||||||
|
abrirNps: () => abrirNps
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(NPS_exports);
|
||||||
|
var import_p_respostas = require("p-respostas");
|
||||||
|
const abrirNps = (emDesenvolvimento) => async (parametros) => {
|
||||||
|
const base_site = emDesenvolvimento ? "http://localhost:5040/nps" : "https://carro-de-boi.idz.one/nps";
|
||||||
|
const base_api = `${base_site}/api`;
|
||||||
|
const { sistema, inquilino, codigo_usuario } = parametros;
|
||||||
|
const nome_local_storage_proxima = `nps_proxima_avaliacao_${sistema}_${codigo_usuario}_${inquilino}_0`;
|
||||||
|
const proxima_avaliacao = localStorage.getItem(nome_local_storage_proxima);
|
||||||
|
if (!proxima_avaliacao) {
|
||||||
|
const url_proxima_avaliacao = new URL(
|
||||||
|
`${base_api}/${sistema}/proxima_avaliacao`
|
||||||
|
);
|
||||||
|
for (const [chave, valor] of Object.entries(parametros)) {
|
||||||
|
url_proxima_avaliacao.searchParams.append(chave, valor);
|
||||||
|
}
|
||||||
|
const response = await fetch(url_proxima_avaliacao.href).then(
|
||||||
|
(resposta) => resposta.json()
|
||||||
|
).catch((error) => import_p_respostas.respostaComuns.erro(error.message));
|
||||||
|
const proxima_avaliacao2 = response.valor;
|
||||||
|
proxima_avaliacao2 && localStorage.setItem(nome_local_storage_proxima, proxima_avaliacao2);
|
||||||
|
}
|
||||||
|
const abrir_modal = proxima_avaliacao && (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) >= proxima_avaliacao;
|
||||||
|
if (!abrir_modal) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
localStorage.removeItem(nome_local_storage_proxima);
|
||||||
|
const urlIfrma = new URL(base_site);
|
||||||
|
for (const [chave, valor] of Object.entries(parametros)) {
|
||||||
|
urlIfrma.searchParams.append(chave, valor);
|
||||||
|
}
|
||||||
|
const iframe = document.createElement("iframe");
|
||||||
|
iframe.src = urlIfrma.href;
|
||||||
|
iframe.style.position = "fixed";
|
||||||
|
iframe.style.top = "0";
|
||||||
|
iframe.style.left = "0";
|
||||||
|
iframe.style.width = "100%";
|
||||||
|
iframe.style.height = "100%";
|
||||||
|
iframe.style.border = "none";
|
||||||
|
iframe.style.zIndex = "999999";
|
||||||
|
document.body.appendChild(iframe);
|
||||||
|
window.addEventListener("message", (event) => {
|
||||||
|
if (event.data === "fechar") {
|
||||||
|
document.body.removeChild(iframe);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
abrirNps
|
||||||
|
});
|
||||||
16
dist-back/NPS/tipos_nps.js
Normal file
16
dist-back/NPS/tipos_nps.js
Normal 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 tipos_nps_exports = {};
|
||||||
|
module.exports = __toCommonJS(tipos_nps_exports);
|
||||||
83
dist-back/e-licencie/Alertas/funcoes_alertas.js
Normal file
83
dist-back/e-licencie/Alertas/funcoes_alertas.js
Normal file
|
|
@ -0,0 +1,83 @@
|
||||||
|
"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 funcoes_alertas_exports = {};
|
||||||
|
__export(funcoes_alertas_exports, {
|
||||||
|
enviarHoje: () => enviarHoje,
|
||||||
|
intervalosTipos: () => intervalosTipos
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(funcoes_alertas_exports);
|
||||||
|
var import_dayjs = __toESM(require("dayjs"));
|
||||||
|
var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear"));
|
||||||
|
import_dayjs.default.extend(import_weekOfYear.default);
|
||||||
|
const enviarHoje = (inter, data) => {
|
||||||
|
const hoje = (0, import_dayjs.default)(data || void 0);
|
||||||
|
if (!inter) return true;
|
||||||
|
if (inter == "D") return true;
|
||||||
|
if (inter == "M" && hoje.get("D") == 1) return true;
|
||||||
|
if (inter == "S" && hoje.get("d") == 1) return true;
|
||||||
|
if (inter == "S" && hoje.get("d") == 1 && hoje.week() % 2 == 1) return true;
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
const intervalosTipos = (tipoEntrada, log) => {
|
||||||
|
log.push(`intervalosTipos -> tipoEntrada:${tipoEntrada}`);
|
||||||
|
const config = {
|
||||||
|
M: {
|
||||||
|
campo_situacao: "situacao_texto_30",
|
||||||
|
prefixo_assunto: "(Previs\xE3o para os pr\xF3ximos 30 dias) ",
|
||||||
|
tipo: "M",
|
||||||
|
enviar_hoje: enviarHoje("M")
|
||||||
|
},
|
||||||
|
Q: {
|
||||||
|
campo_situacao: "situacao_texto_15",
|
||||||
|
prefixo_assunto: "(Previs\xE3o para os pr\xF3ximos 15 dias) ",
|
||||||
|
tipo: "Q",
|
||||||
|
enviar_hoje: enviarHoje("Q")
|
||||||
|
},
|
||||||
|
S: {
|
||||||
|
campo_situacao: "situacao_texto_7",
|
||||||
|
prefixo_assunto: "(Previs\xE3o para os pr\xF3ximos 7 dias) ",
|
||||||
|
tipo: "S",
|
||||||
|
enviar_hoje: enviarHoje("S")
|
||||||
|
},
|
||||||
|
D: {
|
||||||
|
campo_situacao: "situacao_texto",
|
||||||
|
prefixo_assunto: "",
|
||||||
|
tipo: "D",
|
||||||
|
enviar_hoje: enviarHoje("D")
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const { campo_situacao, enviar_hoje, prefixo_assunto, tipo } = config[tipoEntrada || "D"] || config.D;
|
||||||
|
log.push(campo_situacao, prefixo_assunto, tipo, enviar_hoje ? "S" : "N");
|
||||||
|
return { campo_situacao, prefixo_assunto, tipo, enviar_hoje };
|
||||||
|
};
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
enviarHoje,
|
||||||
|
intervalosTipos
|
||||||
|
});
|
||||||
24
dist-back/e-licencie/Alertas/index.js
Normal file
24
dist-back/e-licencie/Alertas/index.js
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
"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 Alertas_exports = {};
|
||||||
|
module.exports = __toCommonJS(Alertas_exports);
|
||||||
|
__reExport(Alertas_exports, require("./funcoes_alertas"), module.exports);
|
||||||
|
__reExport(Alertas_exports, require("./tipos"), module.exports);
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
...require("./funcoes_alertas"),
|
||||||
|
...require("./tipos")
|
||||||
|
});
|
||||||
33
dist-back/e-licencie/Alertas/tipos.js
Normal file
33
dist-back/e-licencie/Alertas/tipos.js
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
"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 tipos_exports = {};
|
||||||
|
__export(tipos_exports, {
|
||||||
|
intervalosDosAlertas: () => intervalosDosAlertas
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(tipos_exports);
|
||||||
|
const intervalosDosAlertas = {
|
||||||
|
D: "Di\xE1rio",
|
||||||
|
S: "Semanal, nas segundas-feira",
|
||||||
|
Q: "Quinzenal, nas segundas-feira",
|
||||||
|
M: "Mensal, primeiro dia de cada m\xEAs"
|
||||||
|
};
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
intervalosDosAlertas
|
||||||
|
});
|
||||||
22
dist-back/e-licencie/index.js
Normal file
22
dist-back/e-licencie/index.js
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
"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 e_licencie_exports = {};
|
||||||
|
module.exports = __toCommonJS(e_licencie_exports);
|
||||||
|
__reExport(e_licencie_exports, require("./Alertas"), module.exports);
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
...require("./Alertas")
|
||||||
|
});
|
||||||
28
dist-back/index.js
Normal file
28
dist-back/index.js
Normal file
|
|
@ -0,0 +1,28 @@
|
||||||
|
"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("./e-licencie"), module.exports);
|
||||||
|
__reExport(index_exports, require("./NPS"), module.exports);
|
||||||
|
__reExport(index_exports, require("./residuos"), module.exports);
|
||||||
|
__reExport(index_exports, require("./variaveis"), module.exports);
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
...require("./e-licencie"),
|
||||||
|
...require("./NPS"),
|
||||||
|
...require("./residuos"),
|
||||||
|
...require("./variaveis")
|
||||||
|
});
|
||||||
101
dist-back/residuos/index.js
Normal file
101
dist-back/residuos/index.js
Normal file
|
|
@ -0,0 +1,101 @@
|
||||||
|
"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 residuos_exports = {};
|
||||||
|
__export(residuos_exports, {
|
||||||
|
nomesSincronizacoes: () => nomesSincronizacoes,
|
||||||
|
zAuntenticacaoResiduosSolicitar: () => zAuntenticacaoResiduosSolicitar,
|
||||||
|
zEmpreendedorSincronizar: () => zEmpreendedorSincronizar,
|
||||||
|
zEmpreendimentoSincronizar: () => zEmpreendimentoSincronizar,
|
||||||
|
zUsuarioSincronizar: () => zUsuarioSincronizar
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(residuos_exports);
|
||||||
|
var import_zod = require("zod");
|
||||||
|
const zAuntenticacaoResiduosSolicitar = import_zod.z.object({
|
||||||
|
// codigo_token: "aaaaaaaa-bbbb-1ccc-8ddd-eeeeeeeeeeee",
|
||||||
|
codigo_token: import_zod.z.string().optional(),
|
||||||
|
//codigo_usuario: "aaaaaaaa-bbbb-1ccc-8ddd-eeeeeeeeeeef",
|
||||||
|
codigo_usuario: import_zod.z.string().uuid(),
|
||||||
|
//nome_usuario: "Jaci Tupi",
|
||||||
|
nome_usuario: import_zod.z.string(),
|
||||||
|
//email_usuario: "jaci@maillinator.com",
|
||||||
|
email_usuario: import_zod.z.string(),
|
||||||
|
//documento_usuario: "111.111.111-11",
|
||||||
|
documento_usuario: import_zod.z.string(),
|
||||||
|
//organizacao: "aaaaaaaa-bbbb-1ccc-8ddd-eeeeeeeeeeee",
|
||||||
|
inquilino: import_zod.z.string(),
|
||||||
|
//rotas: {},
|
||||||
|
rotas: import_zod.z.object({}),
|
||||||
|
//url_usuarios: "http://127.0.0.1:5010/residuos/exemplos/usuarios",
|
||||||
|
url_usuarios: import_zod.z.string().url(),
|
||||||
|
//url_empreendedores: "http://127.0.0.1:5010/residuos/exemplos/empreendedores",
|
||||||
|
url_empreendedores: import_zod.z.string().url(),
|
||||||
|
//url_empreendimentos: "http://127.0.0.1:5010/residuos/exemplos/empreendimentos",
|
||||||
|
url_empreendimentos: import_zod.z.string().url(),
|
||||||
|
//tipo_usuario: "usuario",
|
||||||
|
tipo_usuario: import_zod.z.string(),
|
||||||
|
//sistema: "gov-criciuma",
|
||||||
|
sistema: import_zod.z.string(),
|
||||||
|
//sistema_cor: "#688c00",
|
||||||
|
sistema_cor: import_zod.z.string(),
|
||||||
|
//sistema_nome: "e-licencie",
|
||||||
|
sistema_nome: import_zod.z.string(),
|
||||||
|
//sistema_logo: "http://0.0.0.0:5020/estaticos/logos/e-licencie/branco-branco.png",
|
||||||
|
sistema_logo: import_zod.z.string()
|
||||||
|
});
|
||||||
|
const zUsuarioSincronizar = import_zod.z.object({
|
||||||
|
codigo: import_zod.z.string().uuid(),
|
||||||
|
documento: import_zod.z.string(),
|
||||||
|
excluido: import_zod.z.boolean(),
|
||||||
|
nome: import_zod.z.string(),
|
||||||
|
permicoes: import_zod.z.record(import_zod.z.any()),
|
||||||
|
versao: import_zod.z.number().int(),
|
||||||
|
credenciais_sinir: import_zod.z.object({
|
||||||
|
login: import_zod.z.string().optional(),
|
||||||
|
senha: import_zod.z.string().optional()
|
||||||
|
}).optional()
|
||||||
|
});
|
||||||
|
const zEmpreendedorSincronizar = import_zod.z.object({
|
||||||
|
codigo: import_zod.z.string().uuid(),
|
||||||
|
documento: import_zod.z.string(),
|
||||||
|
excluido: import_zod.z.boolean(),
|
||||||
|
nome: import_zod.z.string(),
|
||||||
|
versao: import_zod.z.number().int()
|
||||||
|
});
|
||||||
|
const zEmpreendimentoSincronizar = import_zod.z.object({
|
||||||
|
codigo: import_zod.z.string().uuid(),
|
||||||
|
codigo_empreendedor: import_zod.z.string().uuid(),
|
||||||
|
documento: import_zod.z.string(),
|
||||||
|
excluido: import_zod.z.boolean(),
|
||||||
|
nome: import_zod.z.string(),
|
||||||
|
unidade_sinir: import_zod.z.string().nullable().optional(),
|
||||||
|
versao: import_zod.z.number().int()
|
||||||
|
});
|
||||||
|
const nomesSincronizacoes = import_zod.z.enum([
|
||||||
|
"usuarios",
|
||||||
|
"empreendedores",
|
||||||
|
"empreendimentos"
|
||||||
|
]);
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
nomesSincronizacoes,
|
||||||
|
zAuntenticacaoResiduosSolicitar,
|
||||||
|
zEmpreendedorSincronizar,
|
||||||
|
zEmpreendimentoSincronizar,
|
||||||
|
zUsuarioSincronizar
|
||||||
|
});
|
||||||
29
dist-back/ts/ambiente.js
Normal file
29
dist-back/ts/ambiente.js
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
"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 ambiente_exports = {};
|
||||||
|
__export(ambiente_exports, {
|
||||||
|
zAmbiente: () => zAmbiente
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(ambiente_exports);
|
||||||
|
var import_zod = require("zod");
|
||||||
|
const zAmbiente = import_zod.z.enum(["desenvolvimento", "producao"]);
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
zAmbiente
|
||||||
|
});
|
||||||
32
dist-back/variaveis.js
Normal file
32
dist-back/variaveis.js
Normal 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 __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 variaveis_exports = {};
|
||||||
|
__export(variaveis_exports, {
|
||||||
|
inquilinoStatus: () => inquilinoStatus,
|
||||||
|
statusinquilino: () => statusinquilino
|
||||||
|
});
|
||||||
|
module.exports = __toCommonJS(variaveis_exports);
|
||||||
|
var import_zod = require("zod");
|
||||||
|
const inquilinoStatus = import_zod.z.enum(["ativo", "inativo"]);
|
||||||
|
const statusinquilino = inquilinoStatus;
|
||||||
|
// Annotate the CommonJS export names for ESM import in node:
|
||||||
|
0 && (module.exports = {
|
||||||
|
inquilinoStatus,
|
||||||
|
statusinquilino
|
||||||
|
});
|
||||||
48
dist-front/NPS/index.js
Normal file
48
dist-front/NPS/index.js
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
import { respostaComuns } from "p-respostas";
|
||||||
|
const abrirNps = (emDesenvolvimento) => async (parametros) => {
|
||||||
|
const base_site = emDesenvolvimento ? "http://localhost:5040/nps" : "https://carro-de-boi.idz.one/nps";
|
||||||
|
const base_api = `${base_site}/api`;
|
||||||
|
const { sistema, inquilino, codigo_usuario } = parametros;
|
||||||
|
const nome_local_storage_proxima = `nps_proxima_avaliacao_${sistema}_${codigo_usuario}_${inquilino}_0`;
|
||||||
|
const proxima_avaliacao = localStorage.getItem(nome_local_storage_proxima);
|
||||||
|
if (!proxima_avaliacao) {
|
||||||
|
const url_proxima_avaliacao = new URL(
|
||||||
|
`${base_api}/${sistema}/proxima_avaliacao`
|
||||||
|
);
|
||||||
|
for (const [chave, valor] of Object.entries(parametros)) {
|
||||||
|
url_proxima_avaliacao.searchParams.append(chave, valor);
|
||||||
|
}
|
||||||
|
const response = await fetch(url_proxima_avaliacao.href).then(
|
||||||
|
(resposta) => resposta.json()
|
||||||
|
).catch((error) => respostaComuns.erro(error.message));
|
||||||
|
const proxima_avaliacao2 = response.valor;
|
||||||
|
proxima_avaliacao2 && localStorage.setItem(nome_local_storage_proxima, proxima_avaliacao2);
|
||||||
|
}
|
||||||
|
const abrir_modal = proxima_avaliacao && (/* @__PURE__ */ new Date()).toISOString().slice(0, 10) >= proxima_avaliacao;
|
||||||
|
if (!abrir_modal) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
localStorage.removeItem(nome_local_storage_proxima);
|
||||||
|
const urlIfrma = new URL(base_site);
|
||||||
|
for (const [chave, valor] of Object.entries(parametros)) {
|
||||||
|
urlIfrma.searchParams.append(chave, valor);
|
||||||
|
}
|
||||||
|
const iframe = document.createElement("iframe");
|
||||||
|
iframe.src = urlIfrma.href;
|
||||||
|
iframe.style.position = "fixed";
|
||||||
|
iframe.style.top = "0";
|
||||||
|
iframe.style.left = "0";
|
||||||
|
iframe.style.width = "100%";
|
||||||
|
iframe.style.height = "100%";
|
||||||
|
iframe.style.border = "none";
|
||||||
|
iframe.style.zIndex = "999999";
|
||||||
|
document.body.appendChild(iframe);
|
||||||
|
window.addEventListener("message", (event) => {
|
||||||
|
if (event.data === "fechar") {
|
||||||
|
document.body.removeChild(iframe);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
abrirNps
|
||||||
|
};
|
||||||
0
dist-front/NPS/tipos_nps.js
Normal file
0
dist-front/NPS/tipos_nps.js
Normal file
48
dist-front/e-licencie/Alertas/funcoes_alertas.js
Normal file
48
dist-front/e-licencie/Alertas/funcoes_alertas.js
Normal file
|
|
@ -0,0 +1,48 @@
|
||||||
|
import dayjs from "dayjs";
|
||||||
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
||||||
|
dayjs.extend(weekOfYear);
|
||||||
|
const enviarHoje = (inter, data) => {
|
||||||
|
const hoje = dayjs(data || void 0);
|
||||||
|
if (!inter) return true;
|
||||||
|
if (inter == "D") return true;
|
||||||
|
if (inter == "M" && hoje.get("D") == 1) return true;
|
||||||
|
if (inter == "S" && hoje.get("d") == 1) return true;
|
||||||
|
if (inter == "S" && hoje.get("d") == 1 && hoje.week() % 2 == 1) return true;
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
const intervalosTipos = (tipoEntrada, log) => {
|
||||||
|
log.push(`intervalosTipos -> tipoEntrada:${tipoEntrada}`);
|
||||||
|
const config = {
|
||||||
|
M: {
|
||||||
|
campo_situacao: "situacao_texto_30",
|
||||||
|
prefixo_assunto: "(Previs\xE3o para os pr\xF3ximos 30 dias) ",
|
||||||
|
tipo: "M",
|
||||||
|
enviar_hoje: enviarHoje("M")
|
||||||
|
},
|
||||||
|
Q: {
|
||||||
|
campo_situacao: "situacao_texto_15",
|
||||||
|
prefixo_assunto: "(Previs\xE3o para os pr\xF3ximos 15 dias) ",
|
||||||
|
tipo: "Q",
|
||||||
|
enviar_hoje: enviarHoje("Q")
|
||||||
|
},
|
||||||
|
S: {
|
||||||
|
campo_situacao: "situacao_texto_7",
|
||||||
|
prefixo_assunto: "(Previs\xE3o para os pr\xF3ximos 7 dias) ",
|
||||||
|
tipo: "S",
|
||||||
|
enviar_hoje: enviarHoje("S")
|
||||||
|
},
|
||||||
|
D: {
|
||||||
|
campo_situacao: "situacao_texto",
|
||||||
|
prefixo_assunto: "",
|
||||||
|
tipo: "D",
|
||||||
|
enviar_hoje: enviarHoje("D")
|
||||||
|
}
|
||||||
|
};
|
||||||
|
const { campo_situacao, enviar_hoje, prefixo_assunto, tipo } = config[tipoEntrada || "D"] || config.D;
|
||||||
|
log.push(campo_situacao, prefixo_assunto, tipo, enviar_hoje ? "S" : "N");
|
||||||
|
return { campo_situacao, prefixo_assunto, tipo, enviar_hoje };
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
enviarHoje,
|
||||||
|
intervalosTipos
|
||||||
|
};
|
||||||
2
dist-front/e-licencie/Alertas/index.js
Normal file
2
dist-front/e-licencie/Alertas/index.js
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
export * from "./funcoes_alertas";
|
||||||
|
export * from "./tipos";
|
||||||
9
dist-front/e-licencie/Alertas/tipos.js
Normal file
9
dist-front/e-licencie/Alertas/tipos.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
const intervalosDosAlertas = {
|
||||||
|
D: "Di\xE1rio",
|
||||||
|
S: "Semanal, nas segundas-feira",
|
||||||
|
Q: "Quinzenal, nas segundas-feira",
|
||||||
|
M: "Mensal, primeiro dia de cada m\xEAs"
|
||||||
|
};
|
||||||
|
export {
|
||||||
|
intervalosDosAlertas
|
||||||
|
};
|
||||||
1
dist-front/e-licencie/index.js
Normal file
1
dist-front/e-licencie/index.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from "./Alertas";
|
||||||
4
dist-front/index.js
Normal file
4
dist-front/index.js
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
export * from "./e-licencie";
|
||||||
|
export * from "./NPS";
|
||||||
|
export * from "./residuos";
|
||||||
|
export * from "./variaveis";
|
||||||
73
dist-front/residuos/index.js
Normal file
73
dist-front/residuos/index.js
Normal file
|
|
@ -0,0 +1,73 @@
|
||||||
|
import { z } from "zod";
|
||||||
|
const zAuntenticacaoResiduosSolicitar = z.object({
|
||||||
|
// codigo_token: "aaaaaaaa-bbbb-1ccc-8ddd-eeeeeeeeeeee",
|
||||||
|
codigo_token: z.string().optional(),
|
||||||
|
//codigo_usuario: "aaaaaaaa-bbbb-1ccc-8ddd-eeeeeeeeeeef",
|
||||||
|
codigo_usuario: z.string().uuid(),
|
||||||
|
//nome_usuario: "Jaci Tupi",
|
||||||
|
nome_usuario: z.string(),
|
||||||
|
//email_usuario: "jaci@maillinator.com",
|
||||||
|
email_usuario: z.string(),
|
||||||
|
//documento_usuario: "111.111.111-11",
|
||||||
|
documento_usuario: z.string(),
|
||||||
|
//organizacao: "aaaaaaaa-bbbb-1ccc-8ddd-eeeeeeeeeeee",
|
||||||
|
inquilino: z.string(),
|
||||||
|
//rotas: {},
|
||||||
|
rotas: z.object({}),
|
||||||
|
//url_usuarios: "http://127.0.0.1:5010/residuos/exemplos/usuarios",
|
||||||
|
url_usuarios: z.string().url(),
|
||||||
|
//url_empreendedores: "http://127.0.0.1:5010/residuos/exemplos/empreendedores",
|
||||||
|
url_empreendedores: z.string().url(),
|
||||||
|
//url_empreendimentos: "http://127.0.0.1:5010/residuos/exemplos/empreendimentos",
|
||||||
|
url_empreendimentos: z.string().url(),
|
||||||
|
//tipo_usuario: "usuario",
|
||||||
|
tipo_usuario: z.string(),
|
||||||
|
//sistema: "gov-criciuma",
|
||||||
|
sistema: z.string(),
|
||||||
|
//sistema_cor: "#688c00",
|
||||||
|
sistema_cor: z.string(),
|
||||||
|
//sistema_nome: "e-licencie",
|
||||||
|
sistema_nome: z.string(),
|
||||||
|
//sistema_logo: "http://0.0.0.0:5020/estaticos/logos/e-licencie/branco-branco.png",
|
||||||
|
sistema_logo: z.string()
|
||||||
|
});
|
||||||
|
const zUsuarioSincronizar = z.object({
|
||||||
|
codigo: z.string().uuid(),
|
||||||
|
documento: z.string(),
|
||||||
|
excluido: z.boolean(),
|
||||||
|
nome: z.string(),
|
||||||
|
permicoes: z.record(z.any()),
|
||||||
|
versao: z.number().int(),
|
||||||
|
credenciais_sinir: z.object({
|
||||||
|
login: z.string().optional(),
|
||||||
|
senha: z.string().optional()
|
||||||
|
}).optional()
|
||||||
|
});
|
||||||
|
const zEmpreendedorSincronizar = z.object({
|
||||||
|
codigo: z.string().uuid(),
|
||||||
|
documento: z.string(),
|
||||||
|
excluido: z.boolean(),
|
||||||
|
nome: z.string(),
|
||||||
|
versao: z.number().int()
|
||||||
|
});
|
||||||
|
const zEmpreendimentoSincronizar = z.object({
|
||||||
|
codigo: z.string().uuid(),
|
||||||
|
codigo_empreendedor: z.string().uuid(),
|
||||||
|
documento: z.string(),
|
||||||
|
excluido: z.boolean(),
|
||||||
|
nome: z.string(),
|
||||||
|
unidade_sinir: z.string().nullable().optional(),
|
||||||
|
versao: z.number().int()
|
||||||
|
});
|
||||||
|
const nomesSincronizacoes = z.enum([
|
||||||
|
"usuarios",
|
||||||
|
"empreendedores",
|
||||||
|
"empreendimentos"
|
||||||
|
]);
|
||||||
|
export {
|
||||||
|
nomesSincronizacoes,
|
||||||
|
zAuntenticacaoResiduosSolicitar,
|
||||||
|
zEmpreendedorSincronizar,
|
||||||
|
zEmpreendimentoSincronizar,
|
||||||
|
zUsuarioSincronizar
|
||||||
|
};
|
||||||
5
dist-front/ts/ambiente.js
Normal file
5
dist-front/ts/ambiente.js
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
import { z } from "zod";
|
||||||
|
const zAmbiente = z.enum(["desenvolvimento", "producao"]);
|
||||||
|
export {
|
||||||
|
zAmbiente
|
||||||
|
};
|
||||||
7
dist-front/variaveis.js
Normal file
7
dist-front/variaveis.js
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
import { z } from "zod";
|
||||||
|
const inquilinoStatus = z.enum(["ativo", "inativo"]);
|
||||||
|
const statusinquilino = inquilinoStatus;
|
||||||
|
export {
|
||||||
|
inquilinoStatus,
|
||||||
|
statusinquilino
|
||||||
|
};
|
||||||
|
|
@ -1,177 +0,0 @@
|
||||||
import { tipoResposta } from 'p-respostas';
|
|
||||||
import { z } from 'zod';
|
|
||||||
|
|
||||||
type tipos_alertas = {
|
|
||||||
intervalo_alertas: "D" | "S" | "Q" | "M";
|
|
||||||
};
|
|
||||||
declare const intervalosDosAlertas: {
|
|
||||||
[k in tipos_alertas["intervalo_alertas"]]: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
declare const enviarHoje: (inter: tipos_alertas["intervalo_alertas"] | null | undefined, data?: string) => boolean;
|
|
||||||
declare const intervalosTipos: (tipoEntrada: keyof typeof intervalosDosAlertas | undefined | null, log: string[]) => {
|
|
||||||
campo_situacao: string;
|
|
||||||
prefixo_assunto: string;
|
|
||||||
tipo: string;
|
|
||||||
enviar_hoje: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
type tipo_proxima_avaliacao = {
|
|
||||||
parametros: {
|
|
||||||
sistema: string;
|
|
||||||
inquilino: string;
|
|
||||||
codigo_usuario: string;
|
|
||||||
nome_organizacao: string;
|
|
||||||
nome_usuario: string;
|
|
||||||
contatos_usuario: string;
|
|
||||||
data_criacao_conta: string;
|
|
||||||
};
|
|
||||||
retorno: tipoResposta<string>;
|
|
||||||
};
|
|
||||||
|
|
||||||
declare const abrirNps: (emDesenvolvimento: boolean) => (parametros: tipo_proxima_avaliacao["parametros"]) => Promise<void>;
|
|
||||||
|
|
||||||
/** Estrutura que deve ser aplicada para solictação de autenticação, deve ser feito via back */
|
|
||||||
declare const zAuntenticacaoResiduosSolicitar: z.ZodObject<{
|
|
||||||
codigo_token: z.ZodOptional<z.ZodString>;
|
|
||||||
codigo_usuario: z.ZodString;
|
|
||||||
nome_usuario: z.ZodString;
|
|
||||||
email_usuario: z.ZodString;
|
|
||||||
documento_usuario: z.ZodString;
|
|
||||||
inquilino: z.ZodString;
|
|
||||||
rotas: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
||||||
url_usuarios: z.ZodString;
|
|
||||||
url_empreendedores: z.ZodString;
|
|
||||||
url_empreendimentos: z.ZodString;
|
|
||||||
tipo_usuario: z.ZodString;
|
|
||||||
sistema: z.ZodString;
|
|
||||||
sistema_cor: z.ZodString;
|
|
||||||
sistema_nome: z.ZodString;
|
|
||||||
sistema_logo: z.ZodString;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
sistema: string;
|
|
||||||
inquilino: string;
|
|
||||||
codigo_usuario: string;
|
|
||||||
nome_usuario: string;
|
|
||||||
email_usuario: string;
|
|
||||||
documento_usuario: string;
|
|
||||||
rotas: {};
|
|
||||||
url_usuarios: string;
|
|
||||||
url_empreendedores: string;
|
|
||||||
url_empreendimentos: string;
|
|
||||||
tipo_usuario: string;
|
|
||||||
sistema_cor: string;
|
|
||||||
sistema_nome: string;
|
|
||||||
sistema_logo: string;
|
|
||||||
codigo_token?: string | undefined;
|
|
||||||
}, {
|
|
||||||
sistema: string;
|
|
||||||
inquilino: string;
|
|
||||||
codigo_usuario: string;
|
|
||||||
nome_usuario: string;
|
|
||||||
email_usuario: string;
|
|
||||||
documento_usuario: string;
|
|
||||||
rotas: {};
|
|
||||||
url_usuarios: string;
|
|
||||||
url_empreendedores: string;
|
|
||||||
url_empreendimentos: string;
|
|
||||||
tipo_usuario: string;
|
|
||||||
sistema_cor: string;
|
|
||||||
sistema_nome: string;
|
|
||||||
sistema_logo: string;
|
|
||||||
codigo_token?: string | undefined;
|
|
||||||
}>;
|
|
||||||
/** Tipagem usada para o processo de sincronização entre modulos */
|
|
||||||
declare const zUsuarioSincronizar: z.ZodObject<{
|
|
||||||
codigo: z.ZodString;
|
|
||||||
documento: z.ZodString;
|
|
||||||
excluido: z.ZodBoolean;
|
|
||||||
nome: z.ZodString;
|
|
||||||
permicoes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
||||||
versao: z.ZodNumber;
|
|
||||||
credenciais_sinir: z.ZodOptional<z.ZodObject<{
|
|
||||||
login: z.ZodOptional<z.ZodString>;
|
|
||||||
senha: z.ZodOptional<z.ZodString>;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
login?: string | undefined;
|
|
||||||
senha?: string | undefined;
|
|
||||||
}, {
|
|
||||||
login?: string | undefined;
|
|
||||||
senha?: string | undefined;
|
|
||||||
}>>;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
permicoes: Record<string, any>;
|
|
||||||
versao: number;
|
|
||||||
credenciais_sinir?: {
|
|
||||||
login?: string | undefined;
|
|
||||||
senha?: string | undefined;
|
|
||||||
} | undefined;
|
|
||||||
}, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
permicoes: Record<string, any>;
|
|
||||||
versao: number;
|
|
||||||
credenciais_sinir?: {
|
|
||||||
login?: string | undefined;
|
|
||||||
senha?: string | undefined;
|
|
||||||
} | undefined;
|
|
||||||
}>;
|
|
||||||
type tipo_zUsuarioSincronizar = z.infer<typeof zUsuarioSincronizar>;
|
|
||||||
/** Tipagem usada para o processo de sincronização entre modulos */
|
|
||||||
declare const zEmpreendedorSincronizar: z.ZodObject<{
|
|
||||||
codigo: z.ZodString;
|
|
||||||
documento: z.ZodString;
|
|
||||||
excluido: z.ZodBoolean;
|
|
||||||
nome: z.ZodString;
|
|
||||||
versao: z.ZodNumber;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
versao: number;
|
|
||||||
}, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
versao: number;
|
|
||||||
}>;
|
|
||||||
/** Tipagem usada para o processo de sincronização entre modulos */
|
|
||||||
declare const zEmpreendimentoSincronizar: z.ZodObject<{
|
|
||||||
codigo: z.ZodString;
|
|
||||||
codigo_empreendedor: z.ZodString;
|
|
||||||
documento: z.ZodString;
|
|
||||||
excluido: z.ZodBoolean;
|
|
||||||
nome: z.ZodString;
|
|
||||||
unidade_sinir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
||||||
versao: z.ZodNumber;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
versao: number;
|
|
||||||
codigo_empreendedor: string;
|
|
||||||
unidade_sinir?: string | null | undefined;
|
|
||||||
}, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
versao: number;
|
|
||||||
codigo_empreendedor: string;
|
|
||||||
unidade_sinir?: string | null | undefined;
|
|
||||||
}>;
|
|
||||||
declare const nomesSincronizacoes: z.ZodEnum<["usuarios", "empreendedores", "empreendimentos"]>;
|
|
||||||
|
|
||||||
declare const inquilinoStatus: z.ZodEnum<["ativo", "inativo"]>;
|
|
||||||
declare const statusinquilino: z.ZodEnum<["ativo", "inativo"]>;
|
|
||||||
|
|
||||||
export { abrirNps, enviarHoje, inquilinoStatus, intervalosDosAlertas, intervalosTipos, nomesSincronizacoes, statusinquilino, type tipo_proxima_avaliacao, type tipo_zUsuarioSincronizar, type tipos_alertas, zAuntenticacaoResiduosSolicitar, zEmpreendedorSincronizar, zEmpreendimentoSincronizar, zUsuarioSincronizar };
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import x from"dayjs";import h from"dayjs/plugin/weekOfYear";x.extend(h);var l=(e,i)=>{let t=x(i||void 0);return!e||e=="D"||e=="M"&&t.get("D")==1||e=="S"&&t.get("d")==1||e=="S"&&t.get("d")==1&&t.week()%2==1},w=(e,i)=>{i.push(`intervalosTipos -> tipoEntrada:${e}`);let t={M:{campo_situacao:"situacao_texto_30",prefixo_assunto:"(Previs\xE3o para os pr\xF3ximos 30 dias) ",tipo:"M",enviar_hoje:l("M")},Q:{campo_situacao:"situacao_texto_15",prefixo_assunto:"(Previs\xE3o para os pr\xF3ximos 15 dias) ",tipo:"Q",enviar_hoje:l("Q")},S:{campo_situacao:"situacao_texto_7",prefixo_assunto:"(Previs\xE3o para os pr\xF3ximos 7 dias) ",tipo:"S",enviar_hoje:l("S")},D:{campo_situacao:"situacao_texto",prefixo_assunto:"",tipo:"D",enviar_hoje:l("D")}},{campo_situacao:p,enviar_hoje:s,prefixo_assunto:c,tipo:u}=t[e||"D"]||t.D;return i.push(p,c,u,s?"S":"N"),{campo_situacao:p,prefixo_assunto:c,tipo:u,enviar_hoje:s}};var M={D:"Di\xE1rio",S:"Semanal, nas segundas-feira",Q:"Quinzenal, nas segundas-feira",M:"Mensal, primeiro dia de cada m\xEAs"};import{respostaComuns as b}from"p-respostas";var E=e=>async i=>{let t=e?"http://localhost:5040/nps":"https://carro-de-boi.idz.one/nps",p=`${t}/api`,{sistema:s,inquilino:c,codigo_usuario:u}=i,m=`nps_proxima_avaliacao_${s}_${u}_${c}_0`,_=localStorage.getItem(m);if(!_){let a=new URL(`${p}/${s}/proxima_avaliacao`);for(let[n,v]of Object.entries(i))a.searchParams.append(n,v);let f=(await fetch(a.href).then(n=>n.json()).catch(n=>b.erro(n.message))).valor;f&&localStorage.setItem(m,f)}if(!(_&&new Date().toISOString().slice(0,10)>=_))return;localStorage.removeItem(m);let d=new URL(t);for(let[a,g]of Object.entries(i))d.searchParams.append(a,g);let r=document.createElement("iframe");r.src=d.href,r.style.position="fixed",r.style.top="0",r.style.left="0",r.style.width="100%",r.style.height="100%",r.style.border="none",r.style.zIndex="999999",document.body.appendChild(r),window.addEventListener("message",a=>{a.data==="fechar"&&document.body.removeChild(r)})};import{z as o}from"zod";var L=o.object({codigo_token:o.string().optional(),codigo_usuario:o.string().uuid(),nome_usuario:o.string(),email_usuario:o.string(),documento_usuario:o.string(),inquilino:o.string(),rotas:o.object({}),url_usuarios:o.string().url(),url_empreendedores:o.string().url(),url_empreendimentos:o.string().url(),tipo_usuario:o.string(),sistema:o.string(),sistema_cor:o.string(),sistema_nome:o.string(),sistema_logo:o.string()}),R=o.object({codigo:o.string().uuid(),documento:o.string(),excluido:o.boolean(),nome:o.string(),permicoes:o.record(o.any()),versao:o.number().int(),credenciais_sinir:o.object({login:o.string().optional(),senha:o.string().optional()}).optional()}),N=o.object({codigo:o.string().uuid(),documento:o.string(),excluido:o.boolean(),nome:o.string(),versao:o.number().int()}),T=o.object({codigo:o.string().uuid(),codigo_empreendedor:o.string().uuid(),documento:o.string(),excluido:o.boolean(),nome:o.string(),unidade_sinir:o.string().nullable().optional(),versao:o.number().int()}),H=o.enum(["usuarios","empreendedores","empreendimentos"]);import{z as y}from"zod";var S=y.enum(["ativo","inativo"]),F=S;export{E as abrirNps,l as enviarHoje,S as inquilinoStatus,M as intervalosDosAlertas,w as intervalosTipos,H as nomesSincronizacoes,F as statusinquilino,L as zAuntenticacaoResiduosSolicitar,N as zEmpreendedorSincronizar,T as zEmpreendimentoSincronizar,R as zUsuarioSincronizar};
|
|
||||||
177
dist-require/index.d.ts
vendored
177
dist-require/index.d.ts
vendored
|
|
@ -1,177 +0,0 @@
|
||||||
import { tipoResposta } from 'p-respostas';
|
|
||||||
import { z } from 'zod';
|
|
||||||
|
|
||||||
type tipos_alertas = {
|
|
||||||
intervalo_alertas: "D" | "S" | "Q" | "M";
|
|
||||||
};
|
|
||||||
declare const intervalosDosAlertas: {
|
|
||||||
[k in tipos_alertas["intervalo_alertas"]]: string;
|
|
||||||
};
|
|
||||||
|
|
||||||
declare const enviarHoje: (inter: tipos_alertas["intervalo_alertas"] | null | undefined, data?: string) => boolean;
|
|
||||||
declare const intervalosTipos: (tipoEntrada: keyof typeof intervalosDosAlertas | undefined | null, log: string[]) => {
|
|
||||||
campo_situacao: string;
|
|
||||||
prefixo_assunto: string;
|
|
||||||
tipo: string;
|
|
||||||
enviar_hoje: boolean;
|
|
||||||
};
|
|
||||||
|
|
||||||
type tipo_proxima_avaliacao = {
|
|
||||||
parametros: {
|
|
||||||
sistema: string;
|
|
||||||
inquilino: string;
|
|
||||||
codigo_usuario: string;
|
|
||||||
nome_organizacao: string;
|
|
||||||
nome_usuario: string;
|
|
||||||
contatos_usuario: string;
|
|
||||||
data_criacao_conta: string;
|
|
||||||
};
|
|
||||||
retorno: tipoResposta<string>;
|
|
||||||
};
|
|
||||||
|
|
||||||
declare const abrirNps: (emDesenvolvimento: boolean) => (parametros: tipo_proxima_avaliacao["parametros"]) => Promise<void>;
|
|
||||||
|
|
||||||
/** Estrutura que deve ser aplicada para solictação de autenticação, deve ser feito via back */
|
|
||||||
declare const zAuntenticacaoResiduosSolicitar: z.ZodObject<{
|
|
||||||
codigo_token: z.ZodOptional<z.ZodString>;
|
|
||||||
codigo_usuario: z.ZodString;
|
|
||||||
nome_usuario: z.ZodString;
|
|
||||||
email_usuario: z.ZodString;
|
|
||||||
documento_usuario: z.ZodString;
|
|
||||||
inquilino: z.ZodString;
|
|
||||||
rotas: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
||||||
url_usuarios: z.ZodString;
|
|
||||||
url_empreendedores: z.ZodString;
|
|
||||||
url_empreendimentos: z.ZodString;
|
|
||||||
tipo_usuario: z.ZodString;
|
|
||||||
sistema: z.ZodString;
|
|
||||||
sistema_cor: z.ZodString;
|
|
||||||
sistema_nome: z.ZodString;
|
|
||||||
sistema_logo: z.ZodString;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
sistema: string;
|
|
||||||
inquilino: string;
|
|
||||||
codigo_usuario: string;
|
|
||||||
nome_usuario: string;
|
|
||||||
email_usuario: string;
|
|
||||||
documento_usuario: string;
|
|
||||||
rotas: {};
|
|
||||||
url_usuarios: string;
|
|
||||||
url_empreendedores: string;
|
|
||||||
url_empreendimentos: string;
|
|
||||||
tipo_usuario: string;
|
|
||||||
sistema_cor: string;
|
|
||||||
sistema_nome: string;
|
|
||||||
sistema_logo: string;
|
|
||||||
codigo_token?: string | undefined;
|
|
||||||
}, {
|
|
||||||
sistema: string;
|
|
||||||
inquilino: string;
|
|
||||||
codigo_usuario: string;
|
|
||||||
nome_usuario: string;
|
|
||||||
email_usuario: string;
|
|
||||||
documento_usuario: string;
|
|
||||||
rotas: {};
|
|
||||||
url_usuarios: string;
|
|
||||||
url_empreendedores: string;
|
|
||||||
url_empreendimentos: string;
|
|
||||||
tipo_usuario: string;
|
|
||||||
sistema_cor: string;
|
|
||||||
sistema_nome: string;
|
|
||||||
sistema_logo: string;
|
|
||||||
codigo_token?: string | undefined;
|
|
||||||
}>;
|
|
||||||
/** Tipagem usada para o processo de sincronização entre modulos */
|
|
||||||
declare const zUsuarioSincronizar: z.ZodObject<{
|
|
||||||
codigo: z.ZodString;
|
|
||||||
documento: z.ZodString;
|
|
||||||
excluido: z.ZodBoolean;
|
|
||||||
nome: z.ZodString;
|
|
||||||
permicoes: z.ZodRecord<z.ZodString, z.ZodAny>;
|
|
||||||
versao: z.ZodNumber;
|
|
||||||
credenciais_sinir: z.ZodOptional<z.ZodObject<{
|
|
||||||
login: z.ZodOptional<z.ZodString>;
|
|
||||||
senha: z.ZodOptional<z.ZodString>;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
login?: string | undefined;
|
|
||||||
senha?: string | undefined;
|
|
||||||
}, {
|
|
||||||
login?: string | undefined;
|
|
||||||
senha?: string | undefined;
|
|
||||||
}>>;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
permicoes: Record<string, any>;
|
|
||||||
versao: number;
|
|
||||||
credenciais_sinir?: {
|
|
||||||
login?: string | undefined;
|
|
||||||
senha?: string | undefined;
|
|
||||||
} | undefined;
|
|
||||||
}, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
permicoes: Record<string, any>;
|
|
||||||
versao: number;
|
|
||||||
credenciais_sinir?: {
|
|
||||||
login?: string | undefined;
|
|
||||||
senha?: string | undefined;
|
|
||||||
} | undefined;
|
|
||||||
}>;
|
|
||||||
type tipo_zUsuarioSincronizar = z.infer<typeof zUsuarioSincronizar>;
|
|
||||||
/** Tipagem usada para o processo de sincronização entre modulos */
|
|
||||||
declare const zEmpreendedorSincronizar: z.ZodObject<{
|
|
||||||
codigo: z.ZodString;
|
|
||||||
documento: z.ZodString;
|
|
||||||
excluido: z.ZodBoolean;
|
|
||||||
nome: z.ZodString;
|
|
||||||
versao: z.ZodNumber;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
versao: number;
|
|
||||||
}, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
versao: number;
|
|
||||||
}>;
|
|
||||||
/** Tipagem usada para o processo de sincronização entre modulos */
|
|
||||||
declare const zEmpreendimentoSincronizar: z.ZodObject<{
|
|
||||||
codigo: z.ZodString;
|
|
||||||
codigo_empreendedor: z.ZodString;
|
|
||||||
documento: z.ZodString;
|
|
||||||
excluido: z.ZodBoolean;
|
|
||||||
nome: z.ZodString;
|
|
||||||
unidade_sinir: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
||||||
versao: z.ZodNumber;
|
|
||||||
}, "strip", z.ZodTypeAny, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
versao: number;
|
|
||||||
codigo_empreendedor: string;
|
|
||||||
unidade_sinir?: string | null | undefined;
|
|
||||||
}, {
|
|
||||||
codigo: string;
|
|
||||||
documento: string;
|
|
||||||
excluido: boolean;
|
|
||||||
nome: string;
|
|
||||||
versao: number;
|
|
||||||
codigo_empreendedor: string;
|
|
||||||
unidade_sinir?: string | null | undefined;
|
|
||||||
}>;
|
|
||||||
declare const nomesSincronizacoes: z.ZodEnum<["usuarios", "empreendedores", "empreendimentos"]>;
|
|
||||||
|
|
||||||
declare const inquilinoStatus: z.ZodEnum<["ativo", "inativo"]>;
|
|
||||||
declare const statusinquilino: z.ZodEnum<["ativo", "inativo"]>;
|
|
||||||
|
|
||||||
export { abrirNps, enviarHoje, inquilinoStatus, intervalosDosAlertas, intervalosTipos, nomesSincronizacoes, statusinquilino, type tipo_proxima_avaliacao, type tipo_zUsuarioSincronizar, type tipos_alertas, zAuntenticacaoResiduosSolicitar, zEmpreendedorSincronizar, zEmpreendimentoSincronizar, zUsuarioSincronizar };
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
"use strict";var w=Object.create;var m=Object.defineProperty;var k=Object.getOwnPropertyDescriptor;var M=Object.getOwnPropertyNames;var $=Object.getPrototypeOf,I=Object.prototype.hasOwnProperty;var P=(e,t)=>{for(var r in t)m(e,r,{get:t[r],enumerable:!0})},h=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of M(t))!I.call(e,i)&&i!==r&&m(e,i,{get:()=>t[i],enumerable:!(s=k(t,i))||s.enumerable});return e};var b=(e,t,r)=>(r=e!=null?w($(e)):{},h(t||!e||!e.__esModule?m(r,"default",{value:e,enumerable:!0}):r,e)),Q=e=>h(m({},"__esModule",{value:!0}),e);var T={};P(T,{abrirNps:()=>q,enviarHoje:()=>c,inquilinoStatus:()=>z,intervalosDosAlertas:()=>U,intervalosTipos:()=>A,nomesSincronizacoes:()=>R,statusinquilino:()=>N,zAuntenticacaoResiduosSolicitar:()=>E,zEmpreendedorSincronizar:()=>C,zEmpreendimentoSincronizar:()=>L,zUsuarioSincronizar:()=>O});module.exports=Q(T);var g=b(require("dayjs")),y=b(require("dayjs/plugin/weekOfYear"));g.default.extend(y.default);var c=(e,t)=>{let r=(0,g.default)(t||void 0);return!e||e=="D"||e=="M"&&r.get("D")==1||e=="S"&&r.get("d")==1||e=="S"&&r.get("d")==1&&r.week()%2==1},A=(e,t)=>{t.push(`intervalosTipos -> tipoEntrada:${e}`);let r={M:{campo_situacao:"situacao_texto_30",prefixo_assunto:"(Previs\xE3o para os pr\xF3ximos 30 dias) ",tipo:"M",enviar_hoje:c("M")},Q:{campo_situacao:"situacao_texto_15",prefixo_assunto:"(Previs\xE3o para os pr\xF3ximos 15 dias) ",tipo:"Q",enviar_hoje:c("Q")},S:{campo_situacao:"situacao_texto_7",prefixo_assunto:"(Previs\xE3o para os pr\xF3ximos 7 dias) ",tipo:"S",enviar_hoje:c("S")},D:{campo_situacao:"situacao_texto",prefixo_assunto:"",tipo:"D",enviar_hoje:c("D")}},{campo_situacao:s,enviar_hoje:i,prefixo_assunto:u,tipo:l}=r[e||"D"]||r.D;return t.push(s,u,l,i?"S":"N"),{campo_situacao:s,prefixo_assunto:u,tipo:l,enviar_hoje:i}};var U={D:"Di\xE1rio",S:"Semanal, nas segundas-feira",Q:"Quinzenal, nas segundas-feira",M:"Mensal, primeiro dia de cada m\xEAs"};var S=require("p-respostas"),q=e=>async t=>{let r=e?"http://localhost:5040/nps":"https://carro-de-boi.idz.one/nps",s=`${r}/api`,{sistema:i,inquilino:u,codigo_usuario:l}=t,_=`nps_proxima_avaliacao_${i}_${l}_${u}_0`,d=localStorage.getItem(_);if(!d){let n=new URL(`${s}/${i}/proxima_avaliacao`);for(let[p,D]of Object.entries(t))n.searchParams.append(p,D);let v=(await fetch(n.href).then(p=>p.json()).catch(p=>S.respostaComuns.erro(p.message))).valor;v&&localStorage.setItem(_,v)}if(!(d&&new Date().toISOString().slice(0,10)>=d))return;localStorage.removeItem(_);let f=new URL(r);for(let[n,x]of Object.entries(t))f.searchParams.append(n,x);let a=document.createElement("iframe");a.src=f.href,a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.width="100%",a.style.height="100%",a.style.border="none",a.style.zIndex="999999",document.body.appendChild(a),window.addEventListener("message",n=>{n.data==="fechar"&&document.body.removeChild(a)})};var o=require("zod"),E=o.z.object({codigo_token:o.z.string().optional(),codigo_usuario:o.z.string().uuid(),nome_usuario:o.z.string(),email_usuario:o.z.string(),documento_usuario:o.z.string(),inquilino:o.z.string(),rotas:o.z.object({}),url_usuarios:o.z.string().url(),url_empreendedores:o.z.string().url(),url_empreendimentos:o.z.string().url(),tipo_usuario:o.z.string(),sistema:o.z.string(),sistema_cor:o.z.string(),sistema_nome:o.z.string(),sistema_logo:o.z.string()}),O=o.z.object({codigo:o.z.string().uuid(),documento:o.z.string(),excluido:o.z.boolean(),nome:o.z.string(),permicoes:o.z.record(o.z.any()),versao:o.z.number().int(),credenciais_sinir:o.z.object({login:o.z.string().optional(),senha:o.z.string().optional()}).optional()}),C=o.z.object({codigo:o.z.string().uuid(),documento:o.z.string(),excluido:o.z.boolean(),nome:o.z.string(),versao:o.z.number().int()}),L=o.z.object({codigo:o.z.string().uuid(),codigo_empreendedor:o.z.string().uuid(),documento:o.z.string(),excluido:o.z.boolean(),nome:o.z.string(),unidade_sinir:o.z.string().nullable().optional(),versao:o.z.number().int()}),R=o.z.enum(["usuarios","empreendedores","empreendimentos"]);var j=require("zod"),z=j.z.enum(["ativo","inativo"]),N=z;0&&(module.exports={abrirNps,enviarHoje,inquilinoStatus,intervalosDosAlertas,intervalosTipos,nomesSincronizacoes,statusinquilino,zAuntenticacaoResiduosSolicitar,zEmpreendedorSincronizar,zEmpreendimentoSincronizar,zUsuarioSincronizar});
|
|
||||||
28
package.json
28
package.json
|
|
@ -1,25 +1,22 @@
|
||||||
{
|
{
|
||||||
"name": "p-drives",
|
"name": "p-drives",
|
||||||
"version": "0.247.0",
|
"version": "0.248.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "src/index.ts",
|
"main": "./src/index.ts",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"import": "./dist-import/index.mjs",
|
"types": "./src/index.ts",
|
||||||
"require": "./dist-require/index.js"
|
"import": "./dist-front/index.js",
|
||||||
|
"require": "./dist-back/index.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"types": "./src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"preinstall": "bun pm cache rm",
|
|
||||||
"at": "pnpm up p-* @biomejs/biome typescript",
|
|
||||||
"clean": "rm -rf dist-require dist-import",
|
"clean": "rm -rf dist-require dist-import",
|
||||||
"build-back": "tsup src/index.ts --dts --format cjs --out-dir dist-require --minify",
|
"build": "pnpm run biome && npm --no-git-tag-version version minor && tsup --config ./node_modules/p-comuns/src/tsup/tsup.config.ts",
|
||||||
"build-front": "tsup src/index.ts --dts --format esm --out-dir dist-import --minify",
|
|
||||||
"build": "pnpm run biome && npm --no-git-tag-version version minor && pnpm run clean && (pnpm run build-back & pnpm run build-front) && echo Fim",
|
|
||||||
"biome": "npx @biomejs/biome check --write ./src",
|
"biome": "npx @biomejs/biome check --write ./src",
|
||||||
"nodev": "check-node-version --node '>= 20'"
|
"nodev": "npx check-node-version --node '>= 20'"
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": {
|
"author": {
|
||||||
"name": "AZTECA SOFTWARE LTDA",
|
"name": "AZTECA SOFTWARE LTDA",
|
||||||
|
|
@ -28,8 +25,6 @@
|
||||||
},
|
},
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"-": "^0.0.1",
|
|
||||||
"@biomejs/biome": "2.0.6",
|
|
||||||
"@types/node": "^20.19.8",
|
"@types/node": "^20.19.8",
|
||||||
"autenticacao-drive": "git+https://git2.idz.one/publico/autenticacao-drive.git",
|
"autenticacao-drive": "git+https://git2.idz.one/publico/autenticacao-drive.git",
|
||||||
"check-node-version": "^4.2.1",
|
"check-node-version": "^4.2.1",
|
||||||
|
|
@ -37,8 +32,11 @@
|
||||||
"dayjs": "1.11.13",
|
"dayjs": "1.11.13",
|
||||||
"p-comuns": "git+https://git2.idz.one/publico/_comuns.git",
|
"p-comuns": "git+https://git2.idz.one/publico/_comuns.git",
|
||||||
"p-respostas": "git+https://git2.idz.one/publico/_respostas.git",
|
"p-respostas": "git+https://git2.idz.one/publico/_respostas.git",
|
||||||
"tsup": "^8.5.0",
|
|
||||||
"typescript": "5.5.4",
|
|
||||||
"zod": "3.24.1"
|
"zod": "3.24.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"@biomejs/biome": "2.0.6",
|
||||||
|
"typescript": "5.5.4",
|
||||||
|
"tsup": "8.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
1436
pnpm-lock.yaml
generated
Normal file
1436
pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue