sigo-package 1.2.148 → 1.2.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +37 -5
- package/dist/index.mjs +26 -5
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -686,6 +686,8 @@ declare class Params {
|
|
|
686
686
|
*/
|
|
687
687
|
declare function CurrencyFormat(value?: any, options?: Params): string;
|
|
688
688
|
|
|
689
|
+
declare function dumpJson(data: unknown, dataDir?: string): void;
|
|
690
|
+
|
|
689
691
|
declare function esObjetoFecha(date: any): boolean;
|
|
690
692
|
declare function isValidDate(date: string): boolean;
|
|
691
693
|
|
|
@@ -822,4 +824,4 @@ declare const buildMenu: (data: SystemOptionEntity[], t: TranslateFn) => MenuDto
|
|
|
822
824
|
|
|
823
825
|
declare function validateUUIDv4Param(BadRequestException: ClassConstructor<Error>, req: Request<any>, _res: Response, next: NextFunction): Promise<void>;
|
|
824
826
|
|
|
825
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validateNoLookup, validateUUIDv4Param };
|
|
827
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, dumpJson, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validateNoLookup, validateUUIDv4Param };
|
package/dist/index.d.ts
CHANGED
|
@@ -686,6 +686,8 @@ declare class Params {
|
|
|
686
686
|
*/
|
|
687
687
|
declare function CurrencyFormat(value?: any, options?: Params): string;
|
|
688
688
|
|
|
689
|
+
declare function dumpJson(data: unknown, dataDir?: string): void;
|
|
690
|
+
|
|
689
691
|
declare function esObjetoFecha(date: any): boolean;
|
|
690
692
|
declare function isValidDate(date: string): boolean;
|
|
691
693
|
|
|
@@ -822,4 +824,4 @@ declare const buildMenu: (data: SystemOptionEntity[], t: TranslateFn) => MenuDto
|
|
|
822
824
|
|
|
823
825
|
declare function validateUUIDv4Param(BadRequestException: ClassConstructor<Error>, req: Request<any>, _res: Response, next: NextFunction): Promise<void>;
|
|
824
826
|
|
|
825
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validateNoLookup, validateUUIDv4Param };
|
|
827
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, builSystemOption, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildMenu, buildReservaMOJobMajorProjectsAlemaniaAL02, buildReservaMOJobMajorProjectsAlemaniaAL04, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, codIssueByPeriodoAL02, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncalHistoricoAL02, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, dumpJson, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, hashCode, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, mapeoZonasSimilares, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, parseDuplicateKeyError, roundNumber, searchCurrentContractorSpecialtyPrice, setColModels, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, updatePricePBBudgetAlemaniaAL02, updatePricePBBudgetAlemaniaAL04, uuidRegex, validateNoLookup, validateUUIDv4Param };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
7
9
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
@@ -17,6 +19,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
19
|
}
|
|
18
20
|
return to;
|
|
19
21
|
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
23
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
24
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
25
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
26
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
27
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
28
|
+
mod
|
|
29
|
+
));
|
|
20
30
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
21
31
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
22
32
|
|
|
@@ -114,6 +124,7 @@ __export(index_exports, {
|
|
|
114
124
|
dataFlujosHomePass: () => dataFlujosHomePass,
|
|
115
125
|
db_default: () => db_default,
|
|
116
126
|
db_root: () => db_root,
|
|
127
|
+
dumpJson: () => dumpJson,
|
|
117
128
|
empresas: () => empresas,
|
|
118
129
|
esCadenaFechaISOValida: () => esCadenaFechaISOValida,
|
|
119
130
|
esObjetoFecha: () => esObjetoFecha,
|
|
@@ -457,7 +468,14 @@ var codMOTroncalAL04Soplado = [
|
|
|
457
468
|
"MS01"
|
|
458
469
|
];
|
|
459
470
|
var codMOTroncalAL04Asfaltado = [
|
|
460
|
-
"AP02"
|
|
471
|
+
"AP02",
|
|
472
|
+
"AP02_61/70",
|
|
473
|
+
"AP02_71/80",
|
|
474
|
+
"AP02_81//90",
|
|
475
|
+
"AP02_91/100",
|
|
476
|
+
"AP02_101/110",
|
|
477
|
+
"AP02_111/120",
|
|
478
|
+
"AP02_121"
|
|
461
479
|
];
|
|
462
480
|
var codMOTroncalAL04Issue = [
|
|
463
481
|
"EXTRA05"
|
|
@@ -16293,6 +16311,19 @@ function formaterMiles(value = 0, { symbolCoin = "", symbolCoinPosition = "left"
|
|
|
16293
16311
|
}
|
|
16294
16312
|
__name(formaterMiles, "formaterMiles");
|
|
16295
16313
|
|
|
16314
|
+
// src/shared/Utils/dumpJson.ts
|
|
16315
|
+
var fs = __toESM(require("fs"));
|
|
16316
|
+
var path = __toESM(require("path"));
|
|
16317
|
+
function dumpJson(data, dataDir = path.join(process.cwd(), "data")) {
|
|
16318
|
+
if (!fs.existsSync(dataDir)) fs.mkdirSync(dataDir, {
|
|
16319
|
+
recursive: true
|
|
16320
|
+
});
|
|
16321
|
+
const existentes = fs.readdirSync(dataDir).map((f) => Number(f.match(/^json(\d+)\.json$/)?.[1])).filter((n) => !isNaN(n));
|
|
16322
|
+
const siguiente = existentes.length ? Math.max(...existentes) + 1 : 1;
|
|
16323
|
+
fs.writeFileSync(path.join(dataDir, `json${siguiente}.json`), JSON.stringify(data, null, 2));
|
|
16324
|
+
}
|
|
16325
|
+
__name(dumpJson, "dumpJson");
|
|
16326
|
+
|
|
16296
16327
|
// src/shared/Utils/IsValidDate.ts
|
|
16297
16328
|
function esObjetoFecha(date) {
|
|
16298
16329
|
return date instanceof Date;
|
|
@@ -16439,8 +16470,8 @@ var defaultContextOptions = {
|
|
|
16439
16470
|
};
|
|
16440
16471
|
function setContext(modules, obj = defaultContextOptions) {
|
|
16441
16472
|
const routes = modules.keys().filter((item) => item.startsWith("./"));
|
|
16442
|
-
const buildx = routes.reduce((result,
|
|
16443
|
-
const file = modules(
|
|
16473
|
+
const buildx = routes.reduce((result, path2) => {
|
|
16474
|
+
const file = modules(path2);
|
|
16444
16475
|
if (Object.entries(file).length) {
|
|
16445
16476
|
const [_key, value] = Object.entries(file)[0];
|
|
16446
16477
|
const type = getDataType(value);
|
|
@@ -16463,8 +16494,8 @@ __name(setContext, "setContext");
|
|
|
16463
16494
|
|
|
16464
16495
|
// src/shared/Utils/setColModels.ts
|
|
16465
16496
|
function setColModels(modules) {
|
|
16466
|
-
modules.keys().filter((
|
|
16467
|
-
const file = modules(
|
|
16497
|
+
modules.keys().filter((path2) => path2.startsWith("./")).forEach((path2) => {
|
|
16498
|
+
const file = modules(path2);
|
|
16468
16499
|
Object.entries(file).forEach(([key, value]) => {
|
|
16469
16500
|
if (getDataType(value) === "function" && isColModel(value)) {
|
|
16470
16501
|
this[key] = value.call(this);
|
|
@@ -17059,6 +17090,7 @@ __name(validateUUIDv4Param, "validateUUIDv4Param");
|
|
|
17059
17090
|
dataFlujosHomePass,
|
|
17060
17091
|
db_default,
|
|
17061
17092
|
db_root,
|
|
17093
|
+
dumpJson,
|
|
17062
17094
|
empresas,
|
|
17063
17095
|
esCadenaFechaISOValida,
|
|
17064
17096
|
esObjetoFecha,
|
package/dist/index.mjs
CHANGED
|
@@ -288,7 +288,14 @@ var codMOTroncalAL04Soplado = [
|
|
|
288
288
|
"MS01"
|
|
289
289
|
];
|
|
290
290
|
var codMOTroncalAL04Asfaltado = [
|
|
291
|
-
"AP02"
|
|
291
|
+
"AP02",
|
|
292
|
+
"AP02_61/70",
|
|
293
|
+
"AP02_71/80",
|
|
294
|
+
"AP02_81//90",
|
|
295
|
+
"AP02_91/100",
|
|
296
|
+
"AP02_101/110",
|
|
297
|
+
"AP02_111/120",
|
|
298
|
+
"AP02_121"
|
|
292
299
|
];
|
|
293
300
|
var codMOTroncalAL04Issue = [
|
|
294
301
|
"EXTRA05"
|
|
@@ -16124,6 +16131,19 @@ function formaterMiles(value = 0, { symbolCoin = "", symbolCoinPosition = "left"
|
|
|
16124
16131
|
}
|
|
16125
16132
|
__name(formaterMiles, "formaterMiles");
|
|
16126
16133
|
|
|
16134
|
+
// src/shared/Utils/dumpJson.ts
|
|
16135
|
+
import * as fs from "fs";
|
|
16136
|
+
import * as path from "path";
|
|
16137
|
+
function dumpJson(data, dataDir = path.join(process.cwd(), "data")) {
|
|
16138
|
+
if (!fs.existsSync(dataDir)) fs.mkdirSync(dataDir, {
|
|
16139
|
+
recursive: true
|
|
16140
|
+
});
|
|
16141
|
+
const existentes = fs.readdirSync(dataDir).map((f) => Number(f.match(/^json(\d+)\.json$/)?.[1])).filter((n) => !isNaN(n));
|
|
16142
|
+
const siguiente = existentes.length ? Math.max(...existentes) + 1 : 1;
|
|
16143
|
+
fs.writeFileSync(path.join(dataDir, `json${siguiente}.json`), JSON.stringify(data, null, 2));
|
|
16144
|
+
}
|
|
16145
|
+
__name(dumpJson, "dumpJson");
|
|
16146
|
+
|
|
16127
16147
|
// src/shared/Utils/IsValidDate.ts
|
|
16128
16148
|
function esObjetoFecha(date) {
|
|
16129
16149
|
return date instanceof Date;
|
|
@@ -16270,8 +16290,8 @@ var defaultContextOptions = {
|
|
|
16270
16290
|
};
|
|
16271
16291
|
function setContext(modules, obj = defaultContextOptions) {
|
|
16272
16292
|
const routes = modules.keys().filter((item) => item.startsWith("./"));
|
|
16273
|
-
const buildx = routes.reduce((result,
|
|
16274
|
-
const file = modules(
|
|
16293
|
+
const buildx = routes.reduce((result, path2) => {
|
|
16294
|
+
const file = modules(path2);
|
|
16275
16295
|
if (Object.entries(file).length) {
|
|
16276
16296
|
const [_key, value] = Object.entries(file)[0];
|
|
16277
16297
|
const type = getDataType(value);
|
|
@@ -16294,8 +16314,8 @@ __name(setContext, "setContext");
|
|
|
16294
16314
|
|
|
16295
16315
|
// src/shared/Utils/setColModels.ts
|
|
16296
16316
|
function setColModels(modules) {
|
|
16297
|
-
modules.keys().filter((
|
|
16298
|
-
const file = modules(
|
|
16317
|
+
modules.keys().filter((path2) => path2.startsWith("./")).forEach((path2) => {
|
|
16318
|
+
const file = modules(path2);
|
|
16299
16319
|
Object.entries(file).forEach(([key, value]) => {
|
|
16300
16320
|
if (getDataType(value) === "function" && isColModel(value)) {
|
|
16301
16321
|
this[key] = value.call(this);
|
|
@@ -16889,6 +16909,7 @@ export {
|
|
|
16889
16909
|
dataFlujosHomePass,
|
|
16890
16910
|
db_default,
|
|
16891
16911
|
db_root,
|
|
16912
|
+
dumpJson,
|
|
16892
16913
|
empresas,
|
|
16893
16914
|
esCadenaFechaISOValida,
|
|
16894
16915
|
esObjetoFecha,
|