sigo-package 1.2.65 → 1.2.67
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 +23 -1
- package/dist/index.mjs +22 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -568,4 +568,6 @@ declare function getContainerName(dirname: string): string;
|
|
|
568
568
|
|
|
569
569
|
declare function buildTenantCollectionName(countryName: string, delegation: string, collection: string): string;
|
|
570
570
|
|
|
571
|
-
|
|
571
|
+
declare function formatNumberSmart(value: number | string): number;
|
|
572
|
+
|
|
573
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, 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$1 as MatStockPersonalType, type MatUtilizadosType$1 as MatUtilizadosType, type MoUoType$1 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, SEGMENT_TY, type TARGET, UpdateNodosDocDP, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, 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, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, consumirStockPersonal, convertDates, dataFlujosHomePass, empresas, esCadenaFechaISOValida, esObjetoFecha, formatNumberSmart, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.d.ts
CHANGED
|
@@ -568,4 +568,6 @@ declare function getContainerName(dirname: string): string;
|
|
|
568
568
|
|
|
569
569
|
declare function buildTenantCollectionName(countryName: string, delegation: string, collection: string): string;
|
|
570
570
|
|
|
571
|
-
|
|
571
|
+
declare function formatNumberSmart(value: number | string): number;
|
|
572
|
+
|
|
573
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, 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$1 as MatStockPersonalType, type MatUtilizadosType$1 as MatUtilizadosType, type MoUoType$1 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, SEGMENT_TY, type TARGET, UpdateNodosDocDP, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, codBalizaAL04, codClientes, 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, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, consumirStockPersonal, convertDates, dataFlujosHomePass, empresas, esCadenaFechaISOValida, esObjetoFecha, formatNumberSmart, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -102,6 +102,7 @@ __export(index_exports, {
|
|
|
102
102
|
empresas: () => empresas,
|
|
103
103
|
esCadenaFechaISOValida: () => esCadenaFechaISOValida,
|
|
104
104
|
esObjetoFecha: () => esObjetoFecha,
|
|
105
|
+
formatNumberSmart: () => formatNumberSmart,
|
|
105
106
|
generateUniqueNumber: () => generateUniqueNumber,
|
|
106
107
|
generateUniqueNumberArray: () => generateUniqueNumberArray,
|
|
107
108
|
getChannelName: () => getChannelName,
|
|
@@ -3809,6 +3810,11 @@ var codMOClientes_ReglaLiquidacion1 = [
|
|
|
3809
3810
|
"F2_031406300",
|
|
3810
3811
|
"031406400",
|
|
3811
3812
|
"031406500",
|
|
3813
|
+
//#region Cambios solicitados por arturo 14-07-2025 Ticket (69876)
|
|
3814
|
+
"042904600",
|
|
3815
|
+
"042904700",
|
|
3816
|
+
"042904800",
|
|
3817
|
+
//#endregion Cambios solicitados por arturo 14-07-2025 Ticket (69876)
|
|
3812
3818
|
"T22"
|
|
3813
3819
|
];
|
|
3814
3820
|
var codMONoClientes_ReglaLiquidacion1 = [
|
|
@@ -3943,7 +3949,11 @@ var codClientes2 = [
|
|
|
3943
3949
|
"F2_073101300",
|
|
3944
3950
|
"073101400",
|
|
3945
3951
|
"073101500",
|
|
3946
|
-
"073102400"
|
|
3952
|
+
"073102400",
|
|
3953
|
+
//#region Cambios solicitados por arturo 14-07-2025 Ticket (69876)
|
|
3954
|
+
"042904600",
|
|
3955
|
+
"042904700",
|
|
3956
|
+
"042904800"
|
|
3947
3957
|
];
|
|
3948
3958
|
var codMOClientesAL02OC = [];
|
|
3949
3959
|
var codMOClientesAL02Soplado = [
|
|
@@ -15284,6 +15294,17 @@ function buildTenantCollectionName(countryName, delegation, collection) {
|
|
|
15284
15294
|
}
|
|
15285
15295
|
__name(buildTenantCollectionName, "buildTenantCollectionName");
|
|
15286
15296
|
|
|
15297
|
+
// src/shared/Utils/formatNumberSmart.ts
|
|
15298
|
+
function formatNumberSmart(value) {
|
|
15299
|
+
const num = typeof value === "string" ? Number(value) : value;
|
|
15300
|
+
if (typeof num !== "number" || isNaN(num) || !isFinite(num)) {
|
|
15301
|
+
throw new Error(`Valor no num\xE9rico v\xE1lido: ${value}`);
|
|
15302
|
+
}
|
|
15303
|
+
const fixed = Number(num.toFixed(2));
|
|
15304
|
+
return fixed % 1 === 0 ? Math.round(fixed) : fixed;
|
|
15305
|
+
}
|
|
15306
|
+
__name(formatNumberSmart, "formatNumberSmart");
|
|
15307
|
+
|
|
15287
15308
|
// src/Programados/Procesos/Preliquidar/ObtenerPrecioContratistaVigente.ts
|
|
15288
15309
|
function ObtenerPrecioContratistaVigente({ actividad, FechaVerificar }) {
|
|
15289
15310
|
const fechaVerificar = new Date(FechaVerificar);
|
|
@@ -15430,6 +15451,7 @@ var getNextID_AsignacionValorizacion = /* @__PURE__ */ __name((Valorizaciones) =
|
|
|
15430
15451
|
empresas,
|
|
15431
15452
|
esCadenaFechaISOValida,
|
|
15432
15453
|
esObjetoFecha,
|
|
15454
|
+
formatNumberSmart,
|
|
15433
15455
|
generateUniqueNumber,
|
|
15434
15456
|
generateUniqueNumberArray,
|
|
15435
15457
|
getChannelName,
|
package/dist/index.mjs
CHANGED
|
@@ -3670,6 +3670,11 @@ var codMOClientes_ReglaLiquidacion1 = [
|
|
|
3670
3670
|
"F2_031406300",
|
|
3671
3671
|
"031406400",
|
|
3672
3672
|
"031406500",
|
|
3673
|
+
//#region Cambios solicitados por arturo 14-07-2025 Ticket (69876)
|
|
3674
|
+
"042904600",
|
|
3675
|
+
"042904700",
|
|
3676
|
+
"042904800",
|
|
3677
|
+
//#endregion Cambios solicitados por arturo 14-07-2025 Ticket (69876)
|
|
3673
3678
|
"T22"
|
|
3674
3679
|
];
|
|
3675
3680
|
var codMONoClientes_ReglaLiquidacion1 = [
|
|
@@ -3804,7 +3809,11 @@ var codClientes2 = [
|
|
|
3804
3809
|
"F2_073101300",
|
|
3805
3810
|
"073101400",
|
|
3806
3811
|
"073101500",
|
|
3807
|
-
"073102400"
|
|
3812
|
+
"073102400",
|
|
3813
|
+
//#region Cambios solicitados por arturo 14-07-2025 Ticket (69876)
|
|
3814
|
+
"042904600",
|
|
3815
|
+
"042904700",
|
|
3816
|
+
"042904800"
|
|
3808
3817
|
];
|
|
3809
3818
|
var codMOClientesAL02OC = [];
|
|
3810
3819
|
var codMOClientesAL02Soplado = [
|
|
@@ -15145,6 +15154,17 @@ function buildTenantCollectionName(countryName, delegation, collection) {
|
|
|
15145
15154
|
}
|
|
15146
15155
|
__name(buildTenantCollectionName, "buildTenantCollectionName");
|
|
15147
15156
|
|
|
15157
|
+
// src/shared/Utils/formatNumberSmart.ts
|
|
15158
|
+
function formatNumberSmart(value) {
|
|
15159
|
+
const num = typeof value === "string" ? Number(value) : value;
|
|
15160
|
+
if (typeof num !== "number" || isNaN(num) || !isFinite(num)) {
|
|
15161
|
+
throw new Error(`Valor no num\xE9rico v\xE1lido: ${value}`);
|
|
15162
|
+
}
|
|
15163
|
+
const fixed = Number(num.toFixed(2));
|
|
15164
|
+
return fixed % 1 === 0 ? Math.round(fixed) : fixed;
|
|
15165
|
+
}
|
|
15166
|
+
__name(formatNumberSmart, "formatNumberSmart");
|
|
15167
|
+
|
|
15148
15168
|
// src/Programados/Procesos/Preliquidar/ObtenerPrecioContratistaVigente.ts
|
|
15149
15169
|
function ObtenerPrecioContratistaVigente({ actividad, FechaVerificar }) {
|
|
15150
15170
|
const fechaVerificar = new Date(FechaVerificar);
|
|
@@ -15290,6 +15310,7 @@ export {
|
|
|
15290
15310
|
empresas,
|
|
15291
15311
|
esCadenaFechaISOValida,
|
|
15292
15312
|
esObjetoFecha,
|
|
15313
|
+
formatNumberSmart,
|
|
15293
15314
|
generateUniqueNumber,
|
|
15294
15315
|
generateUniqueNumberArray,
|
|
15295
15316
|
getChannelName,
|