sigo-package 1.2.64 → 1.2.66
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 +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +13 -0
- package/dist/index.mjs +12 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as sigo_entities from 'sigo-entities';
|
|
2
|
-
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionManoObraDTO, ValorizacionAlemaniaDTO, PrecioContratistaMOAL02ENTITY, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionManoObraDTO, ValorizacionAlemaniaDTO, PrecioContratistaMOAL02ENTITY, ValorizacionDTO, PrecioContratistaMOAL04ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
3
3
|
|
|
4
4
|
interface IenvSIGO$1 {
|
|
5
5
|
SISTEMAS_VALORIZACION_MANO_OBRA: string[];
|
|
@@ -341,7 +341,7 @@ declare function updatePriceContractorMOAL04(valorizaciones: Pick<ValorizacionAl
|
|
|
341
341
|
|
|
342
342
|
declare function updatePriceMOAL04(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'Precio' | 'Total' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
|
|
343
343
|
|
|
344
|
-
declare function obtenerPrecioManoObraAL04(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<
|
|
344
|
+
declare function obtenerPrecioManoObraAL04(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<PrecioContratistaMOAL04ENTITY, 'ManoObraGlobal' | 'Empresa'>): number;
|
|
345
345
|
|
|
346
346
|
declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
|
|
347
347
|
TipoMO: string | null;
|
|
@@ -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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as sigo_entities from 'sigo-entities';
|
|
2
|
-
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionManoObraDTO, ValorizacionAlemaniaDTO, PrecioContratistaMOAL02ENTITY, ValorizacionDTO, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, TrabajoAlemaniaENTITY, ValorizacionManoObraDTO, ValorizacionAlemaniaDTO, PrecioContratistaMOAL02ENTITY, ValorizacionDTO, PrecioContratistaMOAL04ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, PrecioContratistaMaterialENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
3
3
|
|
|
4
4
|
interface IenvSIGO$1 {
|
|
5
5
|
SISTEMAS_VALORIZACION_MANO_OBRA: string[];
|
|
@@ -341,7 +341,7 @@ declare function updatePriceContractorMOAL04(valorizaciones: Pick<ValorizacionAl
|
|
|
341
341
|
|
|
342
342
|
declare function updatePriceMOAL04(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'Precio' | 'Total' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
|
|
343
343
|
|
|
344
|
-
declare function obtenerPrecioManoObraAL04(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<
|
|
344
|
+
declare function obtenerPrecioManoObraAL04(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<PrecioContratistaMOAL04ENTITY, 'ManoObraGlobal' | 'Empresa'>): number;
|
|
345
345
|
|
|
346
346
|
declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
|
|
347
347
|
TipoMO: string | null;
|
|
@@ -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,
|
|
@@ -15284,6 +15285,17 @@ function buildTenantCollectionName(countryName, delegation, collection) {
|
|
|
15284
15285
|
}
|
|
15285
15286
|
__name(buildTenantCollectionName, "buildTenantCollectionName");
|
|
15286
15287
|
|
|
15288
|
+
// src/shared/Utils/formatNumberSmart.ts
|
|
15289
|
+
function formatNumberSmart(value) {
|
|
15290
|
+
const num = typeof value === "string" ? Number(value) : value;
|
|
15291
|
+
if (typeof num !== "number" || isNaN(num) || !isFinite(num)) {
|
|
15292
|
+
throw new Error(`Valor no num\xE9rico v\xE1lido: ${value}`);
|
|
15293
|
+
}
|
|
15294
|
+
const fixed = Number(num.toFixed(2));
|
|
15295
|
+
return fixed % 1 === 0 ? Math.round(fixed) : fixed;
|
|
15296
|
+
}
|
|
15297
|
+
__name(formatNumberSmart, "formatNumberSmart");
|
|
15298
|
+
|
|
15287
15299
|
// src/Programados/Procesos/Preliquidar/ObtenerPrecioContratistaVigente.ts
|
|
15288
15300
|
function ObtenerPrecioContratistaVigente({ actividad, FechaVerificar }) {
|
|
15289
15301
|
const fechaVerificar = new Date(FechaVerificar);
|
|
@@ -15430,6 +15442,7 @@ var getNextID_AsignacionValorizacion = /* @__PURE__ */ __name((Valorizaciones) =
|
|
|
15430
15442
|
empresas,
|
|
15431
15443
|
esCadenaFechaISOValida,
|
|
15432
15444
|
esObjetoFecha,
|
|
15445
|
+
formatNumberSmart,
|
|
15433
15446
|
generateUniqueNumber,
|
|
15434
15447
|
generateUniqueNumberArray,
|
|
15435
15448
|
getChannelName,
|
package/dist/index.mjs
CHANGED
|
@@ -15145,6 +15145,17 @@ function buildTenantCollectionName(countryName, delegation, collection) {
|
|
|
15145
15145
|
}
|
|
15146
15146
|
__name(buildTenantCollectionName, "buildTenantCollectionName");
|
|
15147
15147
|
|
|
15148
|
+
// src/shared/Utils/formatNumberSmart.ts
|
|
15149
|
+
function formatNumberSmart(value) {
|
|
15150
|
+
const num = typeof value === "string" ? Number(value) : value;
|
|
15151
|
+
if (typeof num !== "number" || isNaN(num) || !isFinite(num)) {
|
|
15152
|
+
throw new Error(`Valor no num\xE9rico v\xE1lido: ${value}`);
|
|
15153
|
+
}
|
|
15154
|
+
const fixed = Number(num.toFixed(2));
|
|
15155
|
+
return fixed % 1 === 0 ? Math.round(fixed) : fixed;
|
|
15156
|
+
}
|
|
15157
|
+
__name(formatNumberSmart, "formatNumberSmart");
|
|
15158
|
+
|
|
15148
15159
|
// src/Programados/Procesos/Preliquidar/ObtenerPrecioContratistaVigente.ts
|
|
15149
15160
|
function ObtenerPrecioContratistaVigente({ actividad, FechaVerificar }) {
|
|
15150
15161
|
const fechaVerificar = new Date(FechaVerificar);
|
|
@@ -15290,6 +15301,7 @@ export {
|
|
|
15290
15301
|
empresas,
|
|
15291
15302
|
esCadenaFechaISOValida,
|
|
15292
15303
|
esObjetoFecha,
|
|
15304
|
+
formatNumberSmart,
|
|
15293
15305
|
generateUniqueNumber,
|
|
15294
15306
|
generateUniqueNumberArray,
|
|
15295
15307
|
getChannelName,
|