build
This commit is contained in:
parent
aa7953e452
commit
f8dabeb40c
75 changed files with 712 additions and 57 deletions
4
dist-import/aleatorio.js
Normal file
4
dist-import/aleatorio.js
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
const alfabeto = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".split("");
|
||||||
|
export const aleatorio = (tamanho) => `eli-${Array.from({ length: tamanho || 8 })
|
||||||
|
.map(() => alfabeto[((999 * Math.random()) | 0) % alfabeto.length])
|
||||||
|
.join("")}`;
|
||||||
22
dist-import/constantes.js
Normal file
22
dist-import/constantes.js
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
export const uuid_null = "00000000-0000-0000-0000-000000000000";
|
||||||
|
/** Colunas Presentes n maioria das tabelas */
|
||||||
|
export var camposComuns;
|
||||||
|
(function (camposComuns) {
|
||||||
|
camposComuns["codigo"] = "codigo";
|
||||||
|
camposComuns["excluido"] = "excluido";
|
||||||
|
camposComuns["data_hora_criacao"] = "data_hora_criacao";
|
||||||
|
camposComuns["data_hora_atualizacao"] = "data_hora_atualizacao";
|
||||||
|
camposComuns["codigo_usuario_criacao"] = "codigo_usuario_criacao";
|
||||||
|
camposComuns["codigo_usuario_atualizacao"] = "codigo_usuario_atualizacao";
|
||||||
|
camposComuns["versao"] = "versao";
|
||||||
|
})(camposComuns || (camposComuns = {}));
|
||||||
|
/** Palavras comumente usadas */
|
||||||
|
export var tx;
|
||||||
|
(function (tx) {
|
||||||
|
tx["token"] = "token";
|
||||||
|
})(tx || (tx = {}));
|
||||||
|
export var tipoUsuarioResiduos;
|
||||||
|
(function (tipoUsuarioResiduos) {
|
||||||
|
tipoUsuarioResiduos["Usuario"] = "usuario";
|
||||||
|
tipoUsuarioResiduos["Fornecedor"] = "fornecedor";
|
||||||
|
})(tipoUsuarioResiduos || (tipoUsuarioResiduos = {}));
|
||||||
11
dist-import/consulta.js
Normal file
11
dist-import/consulta.js
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
export var operadores;
|
||||||
|
(function (operadores) {
|
||||||
|
operadores["="] = "=";
|
||||||
|
operadores["!="] = "!=";
|
||||||
|
operadores[">"] = ">";
|
||||||
|
operadores[">="] = ">=";
|
||||||
|
operadores["<"] = "<";
|
||||||
|
operadores["<="] = "<=";
|
||||||
|
operadores["like"] = "like";
|
||||||
|
operadores["in"] = "in";
|
||||||
|
})(operadores || (operadores = {}));
|
||||||
1
dist-import/ecosistema/index.js
Normal file
1
dist-import/ecosistema/index.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from "./urls";
|
||||||
1
dist-import/ecosistema/urls.js
Normal file
1
dist-import/ecosistema/urls.js
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export const cdn_carro_de_boi = "https://carro-de-boi-idz-one.b-cdn.net";
|
||||||
168
dist-import/extensoes.js
Normal file
168
dist-import/extensoes.js
Normal file
|
|
@ -0,0 +1,168 @@
|
||||||
|
export const extensoes = [
|
||||||
|
{
|
||||||
|
ext: "gif",
|
||||||
|
tipo: "imagem",
|
||||||
|
mime: "image/gif",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "jpg",
|
||||||
|
tipo: "imagem",
|
||||||
|
mime: "image/jpeg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "jpeg",
|
||||||
|
tipo: "imagem",
|
||||||
|
mime: "image/jpeg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "png",
|
||||||
|
tipo: "imagem",
|
||||||
|
mime: "image/png",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "bmp",
|
||||||
|
tipo: "imagem",
|
||||||
|
mime: "image/bmp",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "webp",
|
||||||
|
tipo: "imagem",
|
||||||
|
mime: "image/webp",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "tiff",
|
||||||
|
tipo: "imagem",
|
||||||
|
mime: "image/tiff",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "svg",
|
||||||
|
tipo: "imagem",
|
||||||
|
mime: "image/svg+xml",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "ico",
|
||||||
|
tipo: "imagem",
|
||||||
|
mime: "image/x-icon",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "pdf",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/pdf",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "doc",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/msword",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "docx",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "xls",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/vnd.ms-excel",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "xlsx",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "ppt",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/vnd.ms-powerpoint",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "pptx",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/vnd.openxmlformats-officedocument.presentationml.presentation",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "txt",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "text/plain",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "odt",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/vnd.oasis.opendocument.text",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "ods",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/vnd.oasis.opendocument.spreadsheet",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "rtf",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "application/rtf",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "csv",
|
||||||
|
tipo: "documento",
|
||||||
|
mime: "text/csv",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "mp4",
|
||||||
|
tipo: "vídeo",
|
||||||
|
mime: "video/mp4",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "avi",
|
||||||
|
tipo: "vídeo",
|
||||||
|
mime: "video/x-msvideo",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "mkv",
|
||||||
|
tipo: "vídeo",
|
||||||
|
mime: "video/x-matroska",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "mov",
|
||||||
|
tipo: "vídeo",
|
||||||
|
mime: "video/quicktime",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "wmv",
|
||||||
|
tipo: "vídeo",
|
||||||
|
mime: "video/x-ms-wmv",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "flv",
|
||||||
|
tipo: "vídeo",
|
||||||
|
mime: "video/x-flv",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "webm",
|
||||||
|
tipo: "vídeo",
|
||||||
|
mime: "video/webm",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "3gp",
|
||||||
|
tipo: "vídeo",
|
||||||
|
mime: "video/3gpp",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
ext: "mpeg",
|
||||||
|
tipo: "vídeo",
|
||||||
|
mime: "video/mpeg",
|
||||||
|
},
|
||||||
|
];
|
||||||
|
/**
|
||||||
|
* Função que retorna o tipo do arquivo
|
||||||
|
* @param nomeArquivo
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export const tipoArquivo = (nomeArquivo) => {
|
||||||
|
// extenssão do arquivo
|
||||||
|
const extArquivo = String(nomeArquivo || "")
|
||||||
|
.toLocaleLowerCase()
|
||||||
|
.split(".")
|
||||||
|
.pop();
|
||||||
|
// procura a extensão do arquivo na lista de extensões
|
||||||
|
const extensao = extensoes.find((extensao) => extensao.ext === extArquivo);
|
||||||
|
// retorna o tipo do arquivo
|
||||||
|
return extensao?.tipo || "outros";
|
||||||
|
};
|
||||||
0
dist/index.d.ts → dist-import/index.d.ts
vendored
0
dist/index.d.ts → dist-import/index.d.ts
vendored
11
dist-import/index.js
Normal file
11
dist-import/index.js
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
export * from "./aleatorio";
|
||||||
|
export * from "./constantes";
|
||||||
|
export * from "./consulta";
|
||||||
|
export * from "./ecosistema";
|
||||||
|
export * from "./extensoes";
|
||||||
|
export * from "./logger";
|
||||||
|
export * from "./texto_busca";
|
||||||
|
export * from "./tipagemRotas";
|
||||||
|
export * from "./unidades_medida";
|
||||||
|
export * from "./uuid";
|
||||||
|
export * from "./variaveisComuns";
|
||||||
0
dist/logger.d.ts → dist-import/logger.d.ts
vendored
0
dist/logger.d.ts → dist-import/logger.d.ts
vendored
60
dist-import/logger.js
Normal file
60
dist-import/logger.js
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
import crossFetch from "cross-fetch";
|
||||||
|
import { nomeVariavel } from "./variaveisComuns";
|
||||||
|
const LOKI_BASE_URL = "https://log.idz.one";
|
||||||
|
const LOKI_ENDPOINT = "/loki/api/v1/push";
|
||||||
|
export const postLogger = async ({ objeto, }) => {
|
||||||
|
const response = await crossFetch(`${LOKI_BASE_URL}${LOKI_ENDPOINT}`, {
|
||||||
|
method: "POST",
|
||||||
|
headers: { "Content-Type": "application/json" },
|
||||||
|
body: JSON.stringify(objeto),
|
||||||
|
}).catch((a) => a);
|
||||||
|
if (!response.ok) {
|
||||||
|
return [objeto, `Erro ${response.status}: ${await response?.text?.()}`];
|
||||||
|
}
|
||||||
|
return [objeto];
|
||||||
|
};
|
||||||
|
let cwd = "";
|
||||||
|
/** define a localização da pasta do projeto */
|
||||||
|
export const defineCwd = (novoCwd) => {
|
||||||
|
cwd = novoCwd;
|
||||||
|
};
|
||||||
|
export const logger = ({ app: app_e, eProducao, parametros: parametrosAmbiente }) => ({ inquilino, usuario, parametros: parametrosSessao }) => async (level, mensagem, op_tipoLog) => {
|
||||||
|
let { __filename, detalhes, local, parametros: parametrosLog, } = op_tipoLog || {};
|
||||||
|
const app = `${eProducao ? "" : "DEV-"}${app_e}`;
|
||||||
|
if (cwd && __filename) {
|
||||||
|
__filename = __filename.replace(cwd, "");
|
||||||
|
}
|
||||||
|
if (local) {
|
||||||
|
detalhes = [`${nomeVariavel({ local })}="${local}"`, ...(detalhes || [])];
|
||||||
|
}
|
||||||
|
if (__filename) {
|
||||||
|
detalhes = [
|
||||||
|
`${nomeVariavel({ __filename })}="${__filename}"`,
|
||||||
|
...(detalhes || []),
|
||||||
|
];
|
||||||
|
}
|
||||||
|
const timestamp = `${Date.now()}000000`;
|
||||||
|
const mainLog = detalhes?.length
|
||||||
|
? `${mensagem} | ${detalhes.map((d) => JSON.stringify(d)).join(" | ")}`
|
||||||
|
: mensagem;
|
||||||
|
const payload = {
|
||||||
|
stream: {
|
||||||
|
app,
|
||||||
|
inquilino,
|
||||||
|
usuario,
|
||||||
|
level,
|
||||||
|
...(parametrosAmbiente || {}),
|
||||||
|
...(parametrosSessao || {}),
|
||||||
|
...(parametrosLog || {}),
|
||||||
|
},
|
||||||
|
values: [
|
||||||
|
[
|
||||||
|
timestamp,
|
||||||
|
mainLog, // Linha de log direta
|
||||||
|
],
|
||||||
|
],
|
||||||
|
};
|
||||||
|
const objeto = { streams: [payload] };
|
||||||
|
const response = await postLogger({ objeto });
|
||||||
|
return response;
|
||||||
|
};
|
||||||
0
dist/teste.d.ts → dist-import/teste.d.ts
vendored
0
dist/teste.d.ts → dist-import/teste.d.ts
vendored
8
dist-import/teste.js
Normal file
8
dist-import/teste.js
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
import { logger } from "./logger";
|
||||||
|
const l = logger({ app: "teste", eProducao: true });
|
||||||
|
const lg = l({
|
||||||
|
inquilino: "conta_1",
|
||||||
|
usuario: "pedrinho",
|
||||||
|
});
|
||||||
|
lg("error", "Deu Ruim").then((a) => console.log(JSON.stringify(a)));
|
||||||
|
lg("info", "Deu Bom", { __filename }).then((a) => console.log(JSON.stringify(a)));
|
||||||
10
dist-import/texto_busca.js
Normal file
10
dist-import/texto_busca.js
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
/** gerar o texto de busca removendo caracteres especies e caixa alta */
|
||||||
|
export const texto_busca = (...texto) => texto
|
||||||
|
.map((txt) => txt === null || txt === undefined
|
||||||
|
? ""
|
||||||
|
: String(txt)
|
||||||
|
.normalize("NFD")
|
||||||
|
.replace(/[\u0300-\u036f]/g, "")
|
||||||
|
.replace(/\s+/g, " ")
|
||||||
|
.toLowerCase())
|
||||||
|
.join(" ");
|
||||||
87
dist-import/tipagemRotas.js
Normal file
87
dist-import/tipagemRotas.js
Normal file
|
|
@ -0,0 +1,87 @@
|
||||||
|
/** Gerar uma classe que facilita a gestão de rotas com a tipagem das querys
|
||||||
|
*
|
||||||
|
* Definições:
|
||||||
|
*
|
||||||
|
* caminho = "/aplicacao/funcionalidade"
|
||||||
|
*
|
||||||
|
* endereco = "http://localhost:3000/aplicacao/funcionalidade"
|
||||||
|
*
|
||||||
|
* parametros = {nome:"José"}
|
||||||
|
*/
|
||||||
|
export class TipagemRotas {
|
||||||
|
/** Ao criar novo obijeto de tipagem de rota é necessário passar o caminho parcial
|
||||||
|
** export const mCaminho = new TipagemRotas<{q:string}>("aplicacao","funcionalidade")
|
||||||
|
*/
|
||||||
|
constructor({ caminho, acaoIr, }) {
|
||||||
|
this._partesCaminho = [];
|
||||||
|
this._acaoIr = acaoIr;
|
||||||
|
this._partesCaminho = (Array.isArray(caminho) ? caminho : [caminho])
|
||||||
|
.flatMap((a) => a.split("/"))
|
||||||
|
.filter(Boolean);
|
||||||
|
}
|
||||||
|
/** Retorna o caminho completo da rota
|
||||||
|
** console.log(mCaminho.caminho)
|
||||||
|
** "/caminho"
|
||||||
|
*/
|
||||||
|
get caminho() {
|
||||||
|
const ret = `/${this._partesCaminho.join("/")}`;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
/** Define o caminho completo da rota
|
||||||
|
** mCaminho.caminho = "/novoCaminho"
|
||||||
|
** console.log(mCaminho.caminho)
|
||||||
|
** "/novoCaminho"
|
||||||
|
** */
|
||||||
|
set caminho(caminhoParcial) {
|
||||||
|
this._partesCaminho = caminhoParcial.split("/").filter((parte) => parte);
|
||||||
|
}
|
||||||
|
/** Retorna o caminho completo da rota com a query
|
||||||
|
** console.log(mCaminho.resolve({q:"query"}))
|
||||||
|
** "http://localhost:3000/caminho?q=query"
|
||||||
|
*/
|
||||||
|
endereco(query, usarComoHash) {
|
||||||
|
const url = new URL(typeof window !== "undefined" ? window.location.href : "http://localhost");
|
||||||
|
url.pathname = this.caminho;
|
||||||
|
url.search = "";
|
||||||
|
const queryKeys = Object.entries(query);
|
||||||
|
for (const [key, value] of queryKeys) {
|
||||||
|
url.searchParams.set(String(key), value === undefined || value === null ? "" : value);
|
||||||
|
}
|
||||||
|
url.hash = "";
|
||||||
|
if (usarComoHash) {
|
||||||
|
url.hash = `#${url.search}`;
|
||||||
|
url.search = "";
|
||||||
|
}
|
||||||
|
return url.href;
|
||||||
|
}
|
||||||
|
/** Vai para a url
|
||||||
|
** mCaminho.ir({q:"query"})
|
||||||
|
** window.location.href = "http://localhost:3000/caminho?q=query"
|
||||||
|
*/
|
||||||
|
ir(query) {
|
||||||
|
if (this._acaoIr) {
|
||||||
|
this._acaoIr(this.endereco(query));
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if (typeof window != "undefined") {
|
||||||
|
window.location.href = this.endereco(query);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/** Retorna os parametros da url
|
||||||
|
** console.log(mCaminho.parametros())
|
||||||
|
** {q:"query"}
|
||||||
|
*/
|
||||||
|
get parametros() {
|
||||||
|
const url = new URL(typeof window !== "undefined" ? window.location.href : "http://localhost");
|
||||||
|
const query = url.searchParams;
|
||||||
|
const queryObj = Object.fromEntries(query.entries());
|
||||||
|
// pegar hash
|
||||||
|
const hash = url.hash;
|
||||||
|
if (hash) {
|
||||||
|
const hashObj = Object.fromEntries(new URLSearchParams(hash.slice(1)).entries());
|
||||||
|
return { ...queryObj, ...hashObj };
|
||||||
|
}
|
||||||
|
return queryObj;
|
||||||
|
}
|
||||||
|
}
|
||||||
61
dist-import/unidades_medida.js
Normal file
61
dist-import/unidades_medida.js
Normal file
|
|
@ -0,0 +1,61 @@
|
||||||
|
/**
|
||||||
|
* Essa variável se conecta a tabela_lidades
|
||||||
|
*
|
||||||
|
* onde sigla se conecta com sigla
|
||||||
|
*
|
||||||
|
* Usuário terá mais opções de unidades, quando fazer o envio para o mtr, usar a opção fornecida pelo usuarios, caso não tenha
|
||||||
|
* usar a normalizada
|
||||||
|
*/
|
||||||
|
export var siglas_unidades_medida;
|
||||||
|
(function (siglas_unidades_medida) {
|
||||||
|
siglas_unidades_medida["UN"] = "UN";
|
||||||
|
siglas_unidades_medida["KG"] = "KG";
|
||||||
|
siglas_unidades_medida["TON"] = "TON";
|
||||||
|
siglas_unidades_medida["g"] = "g";
|
||||||
|
siglas_unidades_medida["M\u00B3"] = "M\u00B3";
|
||||||
|
siglas_unidades_medida["Lt"] = "Lt";
|
||||||
|
})(siglas_unidades_medida || (siglas_unidades_medida = {}));
|
||||||
|
export const unidades_medida = [
|
||||||
|
{
|
||||||
|
sigla_unidade: "KG",
|
||||||
|
nome: "Quilograma",
|
||||||
|
sigla_normalizada: "KG",
|
||||||
|
normalizar: (valor) => valor,
|
||||||
|
tipo: "massa",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sigla_unidade: "g",
|
||||||
|
nome: "Grama",
|
||||||
|
sigla_normalizada: "KG",
|
||||||
|
normalizar: (valor) => valor / 1000,
|
||||||
|
tipo: "massa",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sigla_unidade: "TON",
|
||||||
|
nome: "Tonelada",
|
||||||
|
sigla_normalizada: "KG",
|
||||||
|
normalizar: (valor) => valor * 1000,
|
||||||
|
tipo: "massa",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sigla_unidade: "Lt",
|
||||||
|
nome: "Litro",
|
||||||
|
sigla_normalizada: "Lt",
|
||||||
|
normalizar: (valor) => valor,
|
||||||
|
tipo: "volume",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sigla_unidade: "M³",
|
||||||
|
nome: "Metro Cúbico",
|
||||||
|
sigla_normalizada: "Lt",
|
||||||
|
normalizar: (valor) => valor * 1000,
|
||||||
|
tipo: "volume",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
sigla_unidade: "UN",
|
||||||
|
nome: "Unidade",
|
||||||
|
sigla_normalizada: "UN",
|
||||||
|
normalizar: (valor) => valor,
|
||||||
|
tipo: "unidade",
|
||||||
|
},
|
||||||
|
];
|
||||||
0
dist/uuid.d.ts → dist-import/uuid.d.ts
vendored
0
dist/uuid.d.ts → dist-import/uuid.d.ts
vendored
12
dist-import/uuid.js
Normal file
12
dist-import/uuid.js
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
//Gerar uma uuid V4
|
||||||
|
const letras = "0123456789abcdef".split("");
|
||||||
|
export const uuid = () => {
|
||||||
|
letras.sort(() => Math.random() - 0.5);
|
||||||
|
const modelo = "xxxxxxxx-xxxx-4xxx-xxxx-xxxxxxxxxxxx".split("");
|
||||||
|
const retorno = modelo
|
||||||
|
.map((letra) => letra === "x"
|
||||||
|
? letras[((1000 * Math.random()) | 0) % letras.length]
|
||||||
|
: letra)
|
||||||
|
.join("");
|
||||||
|
return retorno;
|
||||||
|
};
|
||||||
9
dist-import/variaveisComuns.js
Normal file
9
dist-import/variaveisComuns.js
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
export const esperar = (ms) => new Promise((resolve) => setTimeout(() => resolve(true), ms));
|
||||||
|
/**
|
||||||
|
* Usado para retronat o no de uma variável, deve ser usado dentro de um objeto
|
||||||
|
* const nomex = {a: 1, b: 2}
|
||||||
|
* nomeVariavel({nomex}) // retorna "nomex"
|
||||||
|
* @param v
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export const nomeVariavel = (v) => Object.keys(v).join("/");
|
||||||
1
dist-require/aleatorio.d.ts
vendored
Normal file
1
dist-require/aleatorio.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export declare const aleatorio: (tamanho?: number) => string;
|
||||||
|
|
@ -6,4 +6,3 @@ const aleatorio = (tamanho) => `eli-${Array.from({ length: tamanho || 8 })
|
||||||
.map(() => alfabeto[((999 * Math.random()) | 0) % alfabeto.length])
|
.map(() => alfabeto[((999 * Math.random()) | 0) % alfabeto.length])
|
||||||
.join("")}`;
|
.join("")}`;
|
||||||
exports.aleatorio = aleatorio;
|
exports.aleatorio = aleatorio;
|
||||||
//# sourceMappingURL=aleatorio.js.map
|
|
||||||
19
dist-require/constantes.d.ts
vendored
Normal file
19
dist-require/constantes.d.ts
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
||||||
|
export declare const uuid_null = "00000000-0000-0000-0000-000000000000";
|
||||||
|
/** Colunas Presentes n maioria das tabelas */
|
||||||
|
export declare enum camposComuns {
|
||||||
|
codigo = "codigo",
|
||||||
|
excluido = "excluido",
|
||||||
|
data_hora_criacao = "data_hora_criacao",
|
||||||
|
data_hora_atualizacao = "data_hora_atualizacao",
|
||||||
|
codigo_usuario_criacao = "codigo_usuario_criacao",
|
||||||
|
codigo_usuario_atualizacao = "codigo_usuario_atualizacao",
|
||||||
|
versao = "versao"
|
||||||
|
}
|
||||||
|
/** Palavras comumente usadas */
|
||||||
|
export declare enum tx {
|
||||||
|
token = "token"
|
||||||
|
}
|
||||||
|
export declare enum tipoUsuarioResiduos {
|
||||||
|
Usuario = "usuario",
|
||||||
|
Fornecedor = "fornecedor"
|
||||||
|
}
|
||||||
|
|
@ -23,4 +23,3 @@ var tipoUsuarioResiduos;
|
||||||
tipoUsuarioResiduos["Usuario"] = "usuario";
|
tipoUsuarioResiduos["Usuario"] = "usuario";
|
||||||
tipoUsuarioResiduos["Fornecedor"] = "fornecedor";
|
tipoUsuarioResiduos["Fornecedor"] = "fornecedor";
|
||||||
})(tipoUsuarioResiduos || (exports.tipoUsuarioResiduos = tipoUsuarioResiduos = {}));
|
})(tipoUsuarioResiduos || (exports.tipoUsuarioResiduos = tipoUsuarioResiduos = {}));
|
||||||
//# sourceMappingURL=constantes.js.map
|
|
||||||
26
dist-require/consulta.d.ts
vendored
Normal file
26
dist-require/consulta.d.ts
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
export declare enum operadores {
|
||||||
|
"=" = "=",
|
||||||
|
"!=" = "!=",
|
||||||
|
">" = ">",
|
||||||
|
">=" = ">=",
|
||||||
|
"<" = "<",
|
||||||
|
"<=" = "<=",
|
||||||
|
like = "like",
|
||||||
|
in = "in"
|
||||||
|
}
|
||||||
|
export type tipoFiltro = {
|
||||||
|
coluna: string;
|
||||||
|
valor: any;
|
||||||
|
operador: keyof typeof operadores | operadores;
|
||||||
|
ou?: boolean;
|
||||||
|
};
|
||||||
|
export type interfaceConsulta = {
|
||||||
|
offset?: number;
|
||||||
|
limit?: number;
|
||||||
|
filtros?: tipoFiltro[];
|
||||||
|
ordem?: string;
|
||||||
|
ordemTipo?: "asc" | "desc";
|
||||||
|
colunas?: string[];
|
||||||
|
apenasConsulta?: boolean;
|
||||||
|
apenasContagem?: boolean;
|
||||||
|
};
|
||||||
|
|
@ -12,4 +12,3 @@ var operadores;
|
||||||
operadores["like"] = "like";
|
operadores["like"] = "like";
|
||||||
operadores["in"] = "in";
|
operadores["in"] = "in";
|
||||||
})(operadores || (exports.operadores = operadores = {}));
|
})(operadores || (exports.operadores = operadores = {}));
|
||||||
//# sourceMappingURL=consulta.js.map
|
|
||||||
1
dist-require/ecosistema/index.d.ts
vendored
Normal file
1
dist-require/ecosistema/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export * from "./urls";
|
||||||
|
|
@ -15,4 +15,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
||||||
};
|
};
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
__exportStar(require("./urls"), exports);
|
__exportStar(require("./urls"), exports);
|
||||||
//# sourceMappingURL=index.js.map
|
|
||||||
1
dist-require/ecosistema/urls.d.ts
vendored
Normal file
1
dist-require/ecosistema/urls.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export declare const cdn_carro_de_boi = "https://carro-de-boi-idz-one.b-cdn.net";
|
||||||
|
|
@ -2,4 +2,3 @@
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.cdn_carro_de_boi = void 0;
|
exports.cdn_carro_de_boi = void 0;
|
||||||
exports.cdn_carro_de_boi = "https://carro-de-boi-idz-one.b-cdn.net";
|
exports.cdn_carro_de_boi = "https://carro-de-boi-idz-one.b-cdn.net";
|
||||||
//# sourceMappingURL=urls.js.map
|
|
||||||
13
dist-require/extensoes.d.ts
vendored
Normal file
13
dist-require/extensoes.d.ts
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
type tiposArquivo = "imagem" | "documento" | "vídeo" | "outros";
|
||||||
|
export declare const extensoes: {
|
||||||
|
ext: string;
|
||||||
|
tipo: tiposArquivo;
|
||||||
|
mime: string;
|
||||||
|
}[];
|
||||||
|
/**
|
||||||
|
* Função que retorna o tipo do arquivo
|
||||||
|
* @param nomeArquivo
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export declare const tipoArquivo: (nomeArquivo: string | null | undefined) => tiposArquivo;
|
||||||
|
export {};
|
||||||
|
|
@ -170,4 +170,3 @@ const tipoArquivo = (nomeArquivo) => {
|
||||||
return extensao?.tipo || "outros";
|
return extensao?.tipo || "outros";
|
||||||
};
|
};
|
||||||
exports.tipoArquivo = tipoArquivo;
|
exports.tipoArquivo = tipoArquivo;
|
||||||
//# sourceMappingURL=extensoes.js.map
|
|
||||||
11
dist-require/index.d.ts
vendored
Normal file
11
dist-require/index.d.ts
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
export * from "./aleatorio";
|
||||||
|
export * from "./constantes";
|
||||||
|
export * from "./consulta";
|
||||||
|
export * from "./ecosistema";
|
||||||
|
export * from "./extensoes";
|
||||||
|
export * from "./logger";
|
||||||
|
export * from "./texto_busca";
|
||||||
|
export * from "./tipagemRotas";
|
||||||
|
export * from "./unidades_medida";
|
||||||
|
export * from "./uuid";
|
||||||
|
export * from "./variaveisComuns";
|
||||||
|
|
@ -25,4 +25,3 @@ __exportStar(require("./tipagemRotas"), exports);
|
||||||
__exportStar(require("./unidades_medida"), exports);
|
__exportStar(require("./unidades_medida"), exports);
|
||||||
__exportStar(require("./uuid"), exports);
|
__exportStar(require("./uuid"), exports);
|
||||||
__exportStar(require("./variaveisComuns"), exports);
|
__exportStar(require("./variaveisComuns"), exports);
|
||||||
//# sourceMappingURL=index.js.map
|
|
||||||
40
dist-require/logger.d.ts
vendored
Normal file
40
dist-require/logger.d.ts
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
||||||
|
export type tipoLokiObjeto = {
|
||||||
|
streams: {
|
||||||
|
stream: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
values: [string, string][];
|
||||||
|
}[];
|
||||||
|
};
|
||||||
|
export declare const postLogger: ({ objeto, }: {
|
||||||
|
objeto: tipoLokiObjeto;
|
||||||
|
}) => Promise<[objeto: tipoLokiObjeto, erro?: string]>;
|
||||||
|
/** define a localização da pasta do projeto */
|
||||||
|
export declare const defineCwd: (novoCwd: string) => void;
|
||||||
|
type tipoLevel = "info" | "warn" | "error";
|
||||||
|
type tipoOpSessao = {
|
||||||
|
inquilino: string;
|
||||||
|
usuario: string;
|
||||||
|
parametros?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
type tipoLog = {
|
||||||
|
detalhes?: unknown[];
|
||||||
|
__filename?: string;
|
||||||
|
local?: string;
|
||||||
|
parametros?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
export type tipoLoggerLog = (level: tipoLevel, mensagem: string, op_tipoLog?: tipoLog) => Promise<[objeto: tipoLokiObjeto, erro?: string]>;
|
||||||
|
export type TipoLoggerSessao = (sess: tipoOpSessao) => tipoLoggerLog;
|
||||||
|
export type tipoLogger = (amb: {
|
||||||
|
app: string;
|
||||||
|
eProducao: boolean;
|
||||||
|
parametros?: {
|
||||||
|
[k: string]: string;
|
||||||
|
};
|
||||||
|
}) => TipoLoggerSessao;
|
||||||
|
export declare const logger: tipoLogger;
|
||||||
|
export {};
|
||||||
|
|
@ -67,4 +67,3 @@ const logger = ({ app: app_e, eProducao, parametros: parametrosAmbiente }) => ({
|
||||||
return response;
|
return response;
|
||||||
};
|
};
|
||||||
exports.logger = logger;
|
exports.logger = logger;
|
||||||
//# sourceMappingURL=logger.js.map
|
|
||||||
1
dist-require/teste.d.ts
vendored
Normal file
1
dist-require/teste.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export {};
|
||||||
|
|
@ -8,4 +8,3 @@ const lg = l({
|
||||||
});
|
});
|
||||||
lg("error", "Deu Ruim").then((a) => console.log(JSON.stringify(a)));
|
lg("error", "Deu Ruim").then((a) => console.log(JSON.stringify(a)));
|
||||||
lg("info", "Deu Bom", { __filename }).then((a) => console.log(JSON.stringify(a)));
|
lg("info", "Deu Bom", { __filename }).then((a) => console.log(JSON.stringify(a)));
|
||||||
//# sourceMappingURL=teste.js.map
|
|
||||||
2
dist-require/texto_busca.d.ts
vendored
Normal file
2
dist-require/texto_busca.d.ts
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
/** gerar o texto de busca removendo caracteres especies e caixa alta */
|
||||||
|
export declare const texto_busca: (...texto: any[]) => string;
|
||||||
|
|
@ -12,4 +12,3 @@ const texto_busca = (...texto) => texto
|
||||||
.toLowerCase())
|
.toLowerCase())
|
||||||
.join(" ");
|
.join(" ");
|
||||||
exports.texto_busca = texto_busca;
|
exports.texto_busca = texto_busca;
|
||||||
//# sourceMappingURL=texto_busca.js.map
|
|
||||||
49
dist-require/tipagemRotas.d.ts
vendored
Normal file
49
dist-require/tipagemRotas.d.ts
vendored
Normal file
|
|
@ -0,0 +1,49 @@
|
||||||
|
/** Gerar uma classe que facilita a gestão de rotas com a tipagem das querys
|
||||||
|
*
|
||||||
|
* Definições:
|
||||||
|
*
|
||||||
|
* caminho = "/aplicacao/funcionalidade"
|
||||||
|
*
|
||||||
|
* endereco = "http://localhost:3000/aplicacao/funcionalidade"
|
||||||
|
*
|
||||||
|
* parametros = {nome:"José"}
|
||||||
|
*/
|
||||||
|
export declare class TipagemRotas<T extends {
|
||||||
|
[q: string]: string | undefined;
|
||||||
|
}> {
|
||||||
|
_partesCaminho: string[];
|
||||||
|
_acaoIr?: (endereco: string) => undefined;
|
||||||
|
/** Ao criar novo obijeto de tipagem de rota é necessário passar o caminho parcial
|
||||||
|
** export const mCaminho = new TipagemRotas<{q:string}>("aplicacao","funcionalidade")
|
||||||
|
*/
|
||||||
|
constructor({ caminho, acaoIr, }: {
|
||||||
|
caminho: string[] | string;
|
||||||
|
acaoIr?: undefined | ((endereco: string) => undefined);
|
||||||
|
});
|
||||||
|
/** Retorna o caminho completo da rota
|
||||||
|
** console.log(mCaminho.caminho)
|
||||||
|
** "/caminho"
|
||||||
|
*/
|
||||||
|
get caminho(): string;
|
||||||
|
/** Define o caminho completo da rota
|
||||||
|
** mCaminho.caminho = "/novoCaminho"
|
||||||
|
** console.log(mCaminho.caminho)
|
||||||
|
** "/novoCaminho"
|
||||||
|
** */
|
||||||
|
set caminho(caminhoParcial: string);
|
||||||
|
/** Retorna o caminho completo da rota com a query
|
||||||
|
** console.log(mCaminho.resolve({q:"query"}))
|
||||||
|
** "http://localhost:3000/caminho?q=query"
|
||||||
|
*/
|
||||||
|
endereco(query: T, usarComoHash?: boolean): string;
|
||||||
|
/** Vai para a url
|
||||||
|
** mCaminho.ir({q:"query"})
|
||||||
|
** window.location.href = "http://localhost:3000/caminho?q=query"
|
||||||
|
*/
|
||||||
|
ir(query: T): void;
|
||||||
|
/** Retorna os parametros da url
|
||||||
|
** console.log(mCaminho.parametros())
|
||||||
|
** {q:"query"}
|
||||||
|
*/
|
||||||
|
get parametros(): Partial<T>;
|
||||||
|
}
|
||||||
|
|
@ -89,4 +89,3 @@ class TipagemRotas {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exports.TipagemRotas = TipagemRotas;
|
exports.TipagemRotas = TipagemRotas;
|
||||||
//# sourceMappingURL=tipagemRotas.js.map
|
|
||||||
23
dist-require/unidades_medida.d.ts
vendored
Normal file
23
dist-require/unidades_medida.d.ts
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
/**
|
||||||
|
* Essa variável se conecta a tabela_lidades
|
||||||
|
*
|
||||||
|
* onde sigla se conecta com sigla
|
||||||
|
*
|
||||||
|
* Usuário terá mais opções de unidades, quando fazer o envio para o mtr, usar a opção fornecida pelo usuarios, caso não tenha
|
||||||
|
* usar a normalizada
|
||||||
|
*/
|
||||||
|
export declare enum siglas_unidades_medida {
|
||||||
|
UN = "UN",
|
||||||
|
KG = "KG",
|
||||||
|
TON = "TON",
|
||||||
|
g = "g",
|
||||||
|
"M³" = "M\u00B3",
|
||||||
|
Lt = "Lt"
|
||||||
|
}
|
||||||
|
export declare const unidades_medida: {
|
||||||
|
sigla_unidade: keyof typeof siglas_unidades_medida;
|
||||||
|
nome: string;
|
||||||
|
sigla_normalizada: keyof typeof siglas_unidades_medida;
|
||||||
|
normalizar: (valor: number) => number;
|
||||||
|
tipo: "massa" | "volume" | "comprimento" | "unidade";
|
||||||
|
}[];
|
||||||
|
|
@ -62,4 +62,3 @@ exports.unidades_medida = [
|
||||||
tipo: "unidade",
|
tipo: "unidade",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
//# sourceMappingURL=unidades_medida.js.map
|
|
||||||
1
dist-require/uuid.d.ts
vendored
Normal file
1
dist-require/uuid.d.ts
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
export declare const uuid: () => string;
|
||||||
|
|
@ -14,4 +14,3 @@ const uuid = () => {
|
||||||
return retorno;
|
return retorno;
|
||||||
};
|
};
|
||||||
exports.uuid = uuid;
|
exports.uuid = uuid;
|
||||||
//# sourceMappingURL=uuid.js.map
|
|
||||||
11
dist-require/variaveisComuns.d.ts
vendored
Normal file
11
dist-require/variaveisComuns.d.ts
vendored
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
export declare const esperar: (ms: number) => Promise<true>;
|
||||||
|
/**
|
||||||
|
* Usado para retronat o no de uma variável, deve ser usado dentro de um objeto
|
||||||
|
* const nomex = {a: 1, b: 2}
|
||||||
|
* nomeVariavel({nomex}) // retorna "nomex"
|
||||||
|
* @param v
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export declare const nomeVariavel: (v: {
|
||||||
|
[key: string]: any;
|
||||||
|
}) => string;
|
||||||
|
|
@ -12,4 +12,3 @@ exports.esperar = esperar;
|
||||||
*/
|
*/
|
||||||
const nomeVariavel = (v) => Object.keys(v).join("/");
|
const nomeVariavel = (v) => Object.keys(v).join("/");
|
||||||
exports.nomeVariavel = nomeVariavel;
|
exports.nomeVariavel = nomeVariavel;
|
||||||
//# sourceMappingURL=variaveisComuns.js.map
|
|
||||||
1
dist/aleatorio.js.map
vendored
1
dist/aleatorio.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"aleatorio.js","sourceRoot":"","sources":["../src/aleatorio.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,4BAA4B,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;AAEhD,MAAM,SAAS,GAAG,CAAC,OAAgB,EAAE,EAAE,CAC5C,OAAO,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,IAAI,CAAC,EAAE,CAAC;KACxC,GAAG,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;KAClE,IAAI,CAAC,EAAE,CAAC,EAAE,CAAA;AAHF,QAAA,SAAS,aAGP"}
|
|
||||||
1
dist/constantes.js.map
vendored
1
dist/constantes.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"constantes.js","sourceRoot":"","sources":["../src/constantes.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,sCAAsC,CAAA;AAE/D,8CAA8C;AAC9C,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,uDAAuC,CAAA;IACvC,+DAA+C,CAAA;IAC/C,iEAAiD,CAAA;IACjD,yEAAyD,CAAA;IACzD,iCAAiB,CAAA;AACnB,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB;AAED,gCAAgC;AAChC,IAAY,EAEX;AAFD,WAAY,EAAE;IACZ,qBAAe,CAAA;AACjB,CAAC,EAFW,EAAE,kBAAF,EAAE,QAEb;AAED,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,gDAAyB,CAAA;AAC3B,CAAC,EAHW,mBAAmB,mCAAnB,mBAAmB,QAG9B"}
|
|
||||||
1
dist/consulta.js.map
vendored
1
dist/consulta.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"consulta.js","sourceRoot":"","sources":["../src/consulta.ts"],"names":[],"mappings":";;;AAAA,IAAY,UASX;AATD,WAAY,UAAU;IACpB,qBAAS,CAAA;IACT,uBAAW,CAAA;IACX,qBAAS,CAAA;IACT,uBAAW,CAAA;IACX,qBAAS,CAAA;IACT,uBAAW,CAAA;IACX,2BAAa,CAAA;IACb,uBAAS,CAAA;AACX,CAAC,EATW,UAAU,0BAAV,UAAU,QASrB"}
|
|
||||||
1
dist/ecosistema/index.js.map
vendored
1
dist/ecosistema/index.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ecosistema/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAsB"}
|
|
||||||
1
dist/ecosistema/urls.js.map
vendored
1
dist/ecosistema/urls.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"urls.js","sourceRoot":"","sources":["../../src/ecosistema/urls.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG,wCAAwC,CAAA"}
|
|
||||||
1
dist/extensoes.js.map
vendored
1
dist/extensoes.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"extensoes.js","sourceRoot":"","sources":["../src/extensoes.ts"],"names":[],"mappings":";;;AAEa,QAAA,SAAS,GAIhB;IACJ;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,WAAW;KAClB;IACD;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;KACnB;IACD;QACE,GAAG,EAAE,MAAM;QACX,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;KACnB;IACD;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,WAAW;KAClB;IACD;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,WAAW;KAClB;IACD;QACE,GAAG,EAAE,MAAM;QACX,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;KACnB;IACD;QACE,GAAG,EAAE,MAAM;QACX,IAAI,EAAE,QAAQ;QACd,IAAI,EAAE,YAAY;KACnB;IACD;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,QAAQ;QACd,IAAI,EAA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AE,iBAAiB;KACxB;IACD;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,kBAAkB;KACzB;IACD;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,iBAAiB;KACxB;IACD;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,gBAAgB;KACvB;IACD;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,aAAa;KACpB;IACD;QACE,GAAG,EAAE,MAAM;QACX,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,YAAY;KACnB;IACD;QACE,GAAG,EAAE,KAAK;QACV,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,YAAY;KACnB;IACD;QACE,GAAG,EAAE,MAAM;QACX,IAAI,EAAE,OAAO;QACb,IAAI,EAAE,YAAY;KACnB;CACF,CAAA;AAED;;;;GAIG;AACI,MAAM,WAAW,GAAG,CACzB,WAAsC,EACxB,EAAE;IAChB,uBAAuB;IACvB,MAAM,UAAU,GAAG,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC;SACzC,iBAAiB,EAAE;SACnB,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,EAAE,CAAA;IACR,sDAAsD;IACtD,MAAM,QAAQ,GAAG,iBAAS,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,KAAK,UAAU,CAAC,CAAA;IAC1E,4BAA4B;IAC5B,OAAO,QAAQ,EAAE,IAAI,IAAI,QAAQ,CAAA;AACnC,CAAC,CAAA;AAZY,QAAA,WAAW,eAYvB"}
|
|
||||||
1
dist/index.js.map
vendored
1
dist/index.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,+CAA4B;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CAAC,CAAC,CAAC,CAC/B,CAAA"}
|
|
||||||
1
dist/texto_busca.js.map
vendored
1
dist/texto_busca.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"texto_busca.js","sourceRoot":"","sources":["../src/texto_busca.ts"],"names":[],"mappings":";AAAA,wEAAwE;;;AAEjE,MAAM,WAAW,GAAG,CAAC,GAAG,KAAY,EAAU,EAAE,CACrD,KAAK;KACF,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CACX,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS;IAC/B,CAAC,CAAC,EAAE;IACJ,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;SACR,SAAS,CAAC,KAAK,CAAC;SAChB,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;SAC/B,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC;SACpB,WAAW,EAAE,CACrB;KACA,IAAI,CAAC,GAAG,CAAC,CAAA;AAXD,QAAA,WAAW,eAWV"}
|
|
||||||
1
dist/tipagemRotas.js.map
vendored
1
dist/tipagemRotas.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"tipagemRotas.js","sourceRoot":"","sources":["../src/tipagemRotas.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,MAAa,YAAY;IAIvB;;OAEG;IACH,YAAY,EACV,OAAO,EACP,MAAM,GAIP;QAZD,mBAAc,GAAa,EAAE,CAAA;QAa3B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAA;QAErB,IAAI,CAAC,cAAc,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;aACjE,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;aAC5B,MAAM,CAAC,OAAO,CAAC,CAAA;IACpB,CAAC;IA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AAE,CAAC,KAAQ;QACT,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAA;QACpC,CAAC;aAAM,CAAC;YACN,IAAI,OAAO,MAAM,IAAI,WAAW,EAAE,CAAC;gBACjC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;YAC7C,CAAC;QACH,CAAC;IACH,CAAC;IAED;;;OAGG;IAEH,IAAI,UAAU;QACZ,MAAM,GAAG,GAAG,IAAI,GAAG,CACjB,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAC1E,CAAA;QACD,MAAM,KAAK,GAAG,GAAG,CAAC,YAAY,CAAA;QAC9B,MAAM,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;QAEpD,aAAa;QACb,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAA;QACrB,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,OAAO,GAAG,MAAM,CAAC,WAAW,CAChC,IAAI,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAC7C,CAAA;YACD,OAAO,EAAE,GAAG,QAAQ,EAAE,GAAG,OAAO,EAAO,CAAA;QACzC,CAAC;QAED,OAAO,QAAsB,CAAA;IAC/B,CAAC;CACF;AA5GD,oCA4GC"}
|
|
||||||
1
dist/unidades_medida.js.map
vendored
1
dist/unidades_medida.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"unidades_medida.js","sourceRoot":"","sources":["../src/unidades_medida.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAEH,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,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ist/uuid.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"uuid.js","sourceRoot":"","sources":["../src/uuid.ts"],"names":[],"mappings":";;;AAAA,mBAAmB;AACnB,MAAM,MAAM,GAAG,kBAAkB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;AACpC,MAAM,IAAI,GAAG,GAAG,EAAE;IACvB,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAA;IACtC,MAAM,MAAM,GAAG,sCAAsC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA;IAC/D,MAAM,OAAO,GAAG,MAAM;SACnB,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CACb,KAAK,KAAK,GAAG;QACX,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC;QACtD,CAAC,CAAC,KAAK,CACV;SACA,IAAI,CAAC,EAAE,CAAC,CAAA;IAEX,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AAZY,QAAA,IAAI,QAYhB"}
|
|
||||||
1
dist/variaveisComuns.js.map
vendored
1
dist/variaveisComuns.js.map
vendored
|
|
@ -1 +0,0 @@
|
||||||
{"version":3,"file":"variaveisComuns.js","sourceRoot":"","sources":["../src/variaveisComuns.ts"],"names":[],"mappings":";;;AAAO,MAAM,OAAO,GAAG,CAAC,EAAU,EAAiB,EAAE,CACnD,IAAI,OAAO,CAAC,CAAC,OAA0B,EAAE,EAAE,CACzC,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CACpC,CAAA;AAHU,QAAA,OAAO,WAGjB;AACH;;;;;;GAMG;AACI,MAAM,YAAY,GAAG,CAAC,CAAyB,EAAE,EAAE,CACxD,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AADb,QAAA,YAAY,gBACC"}
|
|
||||||
12
package.json
12
package.json
|
|
@ -1,10 +1,18 @@
|
||||||
{
|
{
|
||||||
"name": "p-comuns",
|
"name": "p-comuns",
|
||||||
"version": "0.115.0",
|
"version": "0.118.0",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
|
"exports": {
|
||||||
|
".": {
|
||||||
|
"import": "./dist-import/index.js",
|
||||||
|
"require": "./dist-require/index.js"
|
||||||
|
}
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rm -rf ./dist && pnpm run biome && npm --no-git-tag-version version minor && tsc",
|
"build-back": "rm -fr dist-require && tsc --project ./tsconfig-back.json",
|
||||||
|
"build-front": "rm -fr dist-import && tsc --project ./tsconfig-front.json",
|
||||||
|
"build": "pnpm run biome && pnpm run build-back && pnpm run build-front",
|
||||||
"biome": "npx @biomejs/biome check --write ./src",
|
"biome": "npx @biomejs/biome check --write ./src",
|
||||||
"at": "pnpm up @biomejs/biome typescript"
|
"at": "pnpm up @biomejs/biome typescript"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -67,11 +67,4 @@ export const unidades_medida: {
|
||||||
normalizar: (valor: number) => valor,
|
normalizar: (valor: number) => valor,
|
||||||
tipo: "unidade",
|
tipo: "unidade",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
unidade: "UN",
|
|
||||||
nome: "Unidade",
|
|
||||||
unidade_normalizada: "Un",
|
|
||||||
normalizar: (valor: number) => valor,
|
|
||||||
tipo: "Unitario",
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
|
|
|
||||||
7
tsconfig-back.json
Normal file
7
tsconfig-back.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "./dist-require",
|
||||||
|
"module": "commonjs"
|
||||||
|
}
|
||||||
|
}
|
||||||
7
tsconfig-front.json
Normal file
7
tsconfig-front.json
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"extends": "./tsconfig",
|
||||||
|
"compilerOptions": {
|
||||||
|
"outDir": "./dist-import",
|
||||||
|
"module": "ES6"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -1,21 +1,25 @@
|
||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"outDir": "dist",
|
/* Linguagem e Ambiente */
|
||||||
"esModuleInterop": true,
|
"target": "ES2020", /* Define a versão do JavaScript para o código emitido. */
|
||||||
"noImplicitAny": true,
|
"lib": ["dom.iterable"], /* Especifica as bibliotecas padrão a serem incluídas, como DOM para iteradores. */
|
||||||
"target": "ES2020",
|
"experimentalDecorators": true, /* Habilita o suporte experimental a decoradores. */
|
||||||
"jsx": "react",
|
"emitDecoratorMetadata": true, /* Emite metadados de tipos de design para declarações decoradas. */
|
||||||
"declaration": true,
|
|
||||||
"declarationDir": "dist",
|
/* Módulos */
|
||||||
"sourceMap": true,
|
"moduleResolution": "node", /* Define como o TypeScript resolve módulos. */
|
||||||
"module": "CommonJS",
|
"rootDir": "./src", /* Define a pasta raiz para os arquivos de origem. */
|
||||||
"moduleResolution": "node"
|
|
||||||
},
|
/* Emissão */
|
||||||
"include": [
|
"declaration": true, /* Gera arquivos .d.ts para os arquivos TypeScript. */
|
||||||
"src/**/*.ts",
|
|
||||||
"src/**/*.tsx"
|
/* Interoperabilidade de Módulos */
|
||||||
],
|
"esModuleInterop": true, /* Habilita a compatibilidade com módulos CommonJS ao importar. */
|
||||||
"exclude": [
|
"forceConsistentCasingInFileNames": true,/* Garante consistência na diferenciação entre maiúsculas e minúsculas em nomes de arquivos. */
|
||||||
"node_modules"
|
|
||||||
]
|
/* Verificação de Tipos */
|
||||||
|
"strict": true, /* Habilita todas as opções de verificação estrita de tipos. */
|
||||||
|
"skipLibCheck": true /* Ignora a verificação de tipos em arquivos de declaração de bibliotecas. */
|
||||||
|
},
|
||||||
|
"include": ["src/**/*"] /* Inclui todos os arquivos TypeScript dentro da pasta src. */
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue