sigo-package 1.1.57 → 1.1.59
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.ts +2 -2
- package/dist/shared/Utils/index.d.ts +1 -0
- package/dist/shared/Utils/validateNoLookup.d.ts +1 -0
- package/dist/shared/index.d.ts +2 -2
- package/dist/sigo-package.cjs.development.js +21 -1
- package/dist/sigo-package.cjs.development.js.map +1 -1
- package/dist/sigo-package.cjs.production.min.js +1 -1
- package/dist/sigo-package.cjs.production.min.js.map +1 -1
- package/dist/sigo-package.esm.js +21 -2
- package/dist/sigo-package.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ActualizarDataResumenLiquidaciones, CalcularResumenLiquidaciones, DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas, ActualizarDataReserva, ActualizarDataManoObra, ActualizarDataTrabajos, paisMap, GetCodigoFechaActual, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, BuscarZonaContratista, ObtenerMONoReservada, dataFlujosHomePass, UpdateNodosDocDP, CalcularResumenHPMOLiquidado, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, codClientes, codNoCliente, codSopladoRD, CodsMapeoMOMaterial, codigosMaterialDuctos, codMOTroncal_ReglaLiquidacion1, codMOClientes_ReglaLiquidacion1, codMONoClientes_ReglaLiquidacion1, codigosMaterialUGG, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodigosMaterialSoplado, ActualizarDataResumenValorizacionesAlemania, CalcularResumenValorizacionesAlemania, codMOPublico, CodsMapeoMO_Material_Arquertas, codigosMOT1_F2, mapaReglaSopladoTroncal, mapaReglaSopladoClientes } from './Programados/index';
|
|
2
|
-
import { esObjetoFecha, esCadenaFechaISOValida, CurrencyFormat, isValidPartialEntity, convertDates, logTiempoProceso, isValidDate, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, getKeyRedisSortedSet } from './shared/index';
|
|
3
|
-
export { logTiempoProceso, ActualizarDataResumenLiquidaciones, CalcularResumenLiquidaciones, DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas, ActualizarDataReserva, ActualizarDataManoObra, ActualizarDataTrabajos, paisMap, GetCodigoFechaActual, esObjetoFecha, esCadenaFechaISOValida, CurrencyFormat, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, BuscarZonaContratista, ObtenerMONoReservada, dataFlujosHomePass, UpdateNodosDocDP, CalcularResumenHPMOLiquidado, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, codClientes, codNoCliente, codSopladoRD, CodsMapeoMOMaterial, codigosMaterialDuctos, codMOTroncal_ReglaLiquidacion1, codMOClientes_ReglaLiquidacion1, codMONoClientes_ReglaLiquidacion1, codigosMaterialUGG, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodigosMaterialSoplado, ActualizarDataResumenValorizacionesAlemania, CalcularResumenValorizacionesAlemania, codMOPublico, CodsMapeoMO_Material_Arquertas, codigosMOT1_F2, isValidPartialEntity, convertDates, mapaReglaSopladoTroncal, mapaReglaSopladoClientes, isValidDate, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, getKeyRedisSortedSet, };
|
|
2
|
+
import { esObjetoFecha, esCadenaFechaISOValida, CurrencyFormat, isValidPartialEntity, convertDates, logTiempoProceso, isValidDate, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, getKeyRedisSortedSet, validateNoLookup } from './shared/index';
|
|
3
|
+
export { logTiempoProceso, ActualizarDataResumenLiquidaciones, CalcularResumenLiquidaciones, DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas, ActualizarDataReserva, ActualizarDataManoObra, ActualizarDataTrabajos, paisMap, GetCodigoFechaActual, esObjetoFecha, esCadenaFechaISOValida, CurrencyFormat, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, BuscarZonaContratista, ObtenerMONoReservada, dataFlujosHomePass, UpdateNodosDocDP, CalcularResumenHPMOLiquidado, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, codClientes, codNoCliente, codSopladoRD, CodsMapeoMOMaterial, codigosMaterialDuctos, codMOTroncal_ReglaLiquidacion1, codMOClientes_ReglaLiquidacion1, codMONoClientes_ReglaLiquidacion1, codigosMaterialUGG, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodigosMaterialSoplado, ActualizarDataResumenValorizacionesAlemania, CalcularResumenValorizacionesAlemania, codMOPublico, CodsMapeoMO_Material_Arquertas, codigosMOT1_F2, isValidPartialEntity, convertDates, mapaReglaSopladoTroncal, mapaReglaSopladoClientes, isValidDate, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, getKeyRedisSortedSet, validateNoLookup, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateNoLookup(input: any | any[]): void;
|
package/dist/shared/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { PaisDto, DelegacionDto, EmpresaDto, UnidadMedidaDto, EstadoDto, GeneralCodigoNombreDto, GeneralCodigoNombreUnidadDto, EmpresaUsuarioDto } from './dtos/index';
|
|
2
|
-
import { esObjetoFecha, CurrencyFormat, isValidPartialEntity, convertDates, esCadenaFechaISOValida, logTiempoProceso, isValidDate, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, getKeyRedisSortedSet } from './Utils/index';
|
|
3
|
-
export { PaisDto, DelegacionDto, EmpresaDto, UnidadMedidaDto, EstadoDto, GeneralCodigoNombreDto, GeneralCodigoNombreUnidadDto, EmpresaUsuarioDto, esObjetoFecha, CurrencyFormat, isValidPartialEntity, convertDates, esCadenaFechaISOValida, logTiempoProceso, isValidDate, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, getKeyRedisSortedSet };
|
|
2
|
+
import { esObjetoFecha, CurrencyFormat, isValidPartialEntity, convertDates, esCadenaFechaISOValida, logTiempoProceso, isValidDate, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, getKeyRedisSortedSet, validateNoLookup } from './Utils/index';
|
|
3
|
+
export { PaisDto, DelegacionDto, EmpresaDto, UnidadMedidaDto, EstadoDto, GeneralCodigoNombreDto, GeneralCodigoNombreUnidadDto, EmpresaUsuarioDto, esObjetoFecha, CurrencyFormat, isValidPartialEntity, convertDates, esCadenaFechaISOValida, logTiempoProceso, isValidDate, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, getKeyRedisSortedSet, validateNoLookup, };
|
|
@@ -647,6 +647,23 @@ var getModelDataAdicional = function getModelDataAdicional(queueName) {
|
|
|
647
647
|
};
|
|
648
648
|
};
|
|
649
649
|
|
|
650
|
+
function validateNoLookup(input) {
|
|
651
|
+
if (Array.isArray(input)) {
|
|
652
|
+
input.forEach(function (item) {
|
|
653
|
+
return validateNoLookup(item);
|
|
654
|
+
});
|
|
655
|
+
} else if (typeof input === 'object' && input !== null) {
|
|
656
|
+
for (var key in input) {
|
|
657
|
+
var value = input[key];
|
|
658
|
+
if (key === '$lookup') {
|
|
659
|
+
throw new Error('No está permitido $lookup para consultas con Redis');
|
|
660
|
+
} else if (typeof value === 'object' && value !== null) {
|
|
661
|
+
validateNoLookup(value);
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
650
667
|
function ObtenerPrecioContratistaVigente(_ref) {
|
|
651
668
|
var actividad = _ref.actividad,
|
|
652
669
|
FechaVerificar = _ref.FechaVerificar;
|
|
@@ -1999,7 +2016,9 @@ var codMOTroncal_ReglaLiquidacion1 = ['011304100',
|
|
|
1999
2016
|
// '010602400',
|
|
2000
2017
|
'073106600',
|
|
2001
2018
|
// '010602500',
|
|
2002
|
-
'010602600', '062705701', '062705702', '062705703', '062705704', '062705805', '062705806', '062705807', '062705808', '062605300', '062605301', '062605302', 'T13', 'T1_T13', 'F2_T13', 'T12', 'T21', 'T22', 'T8', 'T2', 'T20', 'T27', 'T28', 'T23', 'T24', 'T25', 'T26', 'T29', 'T30', '041804900', '042904700', '042904800', '042904600', '042004400', '061305000', '041704500', '062505900', '041704300', '041704200', '061305100', 'T41', 'T42', 'T43', 'T44'
|
|
2019
|
+
'010602600', '062705701', '062705702', '062705703', '062705704', '062705805', '062705806', '062705807', '062705808', '062605300', '062605301', '062605302', 'T13', 'T1_T13', 'F2_T13', 'T12', 'T21', 'T22', 'T8', 'T2', 'T20', 'T27', 'T28', 'T23', 'T24', 'T25', 'T26', 'T29', 'T30', '041804900', '042904700', '042904800', '042904600', '042004400', '061305000', '041704500', '062505900', '041704300', '041704200', '061305100', 'T41', 'T42', 'T43', 'T44',
|
|
2020
|
+
//#region Cambios solicitados por arturo 04-02-2025
|
|
2021
|
+
'073006000', 'T11'];
|
|
2003
2022
|
var codMOClientes_ReglaLiquidacion1 = [
|
|
2004
2023
|
// '010602400',
|
|
2005
2024
|
'073106600', '031406300', 'T1_031406300', 'F2_031406300', '031406400', '031406500', 'T22'];
|
|
@@ -2258,4 +2277,5 @@ exports.mapaReglaSopladoTroncal = mapaReglaSopladoTroncal;
|
|
|
2258
2277
|
exports.obtenerDocumentacionClientes = obtenerDocumentacionClientes;
|
|
2259
2278
|
exports.obtenerDocumentacionNoClientes = obtenerDocumentacionNoClientes;
|
|
2260
2279
|
exports.paisMap = paisMap;
|
|
2280
|
+
exports.validateNoLookup = validateNoLookup;
|
|
2261
2281
|
//# sourceMappingURL=sigo-package.cjs.development.js.map
|