sigo-package 1.1.53 → 1.1.55
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/getKeyRedisSortedSet.d.ts +2 -0
- package/dist/shared/Utils/index.d.ts +2 -1
- package/dist/shared/Utils/queueName.d.ts +2 -2
- package/dist/shared/index.d.ts +2 -2
- package/dist/sigo-package.cjs.development.js +32 -26
- 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 +32 -27
- 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 } 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 };
|
|
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, };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export * from './convertDates';
|
|
2
1
|
export * from './CurrencyFormat';
|
|
3
2
|
export * from './IsValidDate';
|
|
3
|
+
export * from './convertDates';
|
|
4
|
+
export * from './getKeyRedisSortedSet';
|
|
4
5
|
export * from './isValidPartialEntity';
|
|
5
6
|
export * from './logTiempoProceso';
|
|
6
7
|
export * from './queueName';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare type TARGET = 'calidad' | 'desarrollo' | 'produccion';
|
|
1
|
+
export declare type TARGET = 'calidad' | 'desarrollo' | 'produccion';
|
|
2
2
|
declare enum OperacionDataAdicional {
|
|
3
3
|
CREAR = "crear",
|
|
4
4
|
ACTUALIZAR = "actualizar",
|
|
@@ -10,7 +10,7 @@ export declare const getQueueName: (target: TARGET, containerName: string, opera
|
|
|
10
10
|
export declare const getModelDataAdicional: (queueName: string) => {
|
|
11
11
|
db: string;
|
|
12
12
|
col: string;
|
|
13
|
-
operacion:
|
|
13
|
+
operacion: OperacionDataAdicional;
|
|
14
14
|
fecha: Date;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
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 } from './Utils/index';
|
|
3
|
-
export { PaisDto, DelegacionDto, EmpresaDto, UnidadMedidaDto, EstadoDto, GeneralCodigoNombreDto, GeneralCodigoNombreUnidadDto, EmpresaUsuarioDto, esObjetoFecha, CurrencyFormat, isValidPartialEntity, convertDates, esCadenaFechaISOValida, logTiempoProceso, isValidDate, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification };
|
|
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 };
|
|
@@ -435,31 +435,6 @@ var UsuarioDto = function UsuarioDto() {
|
|
|
435
435
|
this.Fecha = new Date();
|
|
436
436
|
};
|
|
437
437
|
|
|
438
|
-
function convertDates(input) {
|
|
439
|
-
if (Array.isArray(input)) {
|
|
440
|
-
input.forEach(function (item) {
|
|
441
|
-
return convertDates(item);
|
|
442
|
-
});
|
|
443
|
-
} else if (typeof input === 'object' && input !== null) {
|
|
444
|
-
for (var key in input) {
|
|
445
|
-
var value = input[key];
|
|
446
|
-
if (typeof value === 'string' && esCadenaFechaISOValida(value)) {
|
|
447
|
-
input[key] = new Date(value);
|
|
448
|
-
} else if (typeof value === 'object' && value !== null) {
|
|
449
|
-
convertDates(value);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
function esCadenaFechaISOValida(dateString) {
|
|
455
|
-
var dateRegex = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z?)?$/;
|
|
456
|
-
if (!dateRegex.test(dateString)) {
|
|
457
|
-
return false;
|
|
458
|
-
}
|
|
459
|
-
var parsedDate = new Date(dateString);
|
|
460
|
-
return !isNaN(parsedDate.getTime());
|
|
461
|
-
}
|
|
462
|
-
|
|
463
438
|
var Position;
|
|
464
439
|
(function (Position) {
|
|
465
440
|
Position["left"] = "left";
|
|
@@ -601,6 +576,35 @@ function isValidDate(date) {
|
|
|
601
576
|
return !isNaN(Date.parse(date));
|
|
602
577
|
}
|
|
603
578
|
|
|
579
|
+
function convertDates(input) {
|
|
580
|
+
if (Array.isArray(input)) {
|
|
581
|
+
input.forEach(function (item) {
|
|
582
|
+
return convertDates(item);
|
|
583
|
+
});
|
|
584
|
+
} else if (typeof input === 'object' && input !== null) {
|
|
585
|
+
for (var key in input) {
|
|
586
|
+
var value = input[key];
|
|
587
|
+
if (typeof value === 'string' && esCadenaFechaISOValida(value)) {
|
|
588
|
+
input[key] = new Date(value);
|
|
589
|
+
} else if (typeof value === 'object' && value !== null) {
|
|
590
|
+
convertDates(value);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
function esCadenaFechaISOValida(dateString) {
|
|
596
|
+
var dateRegex = /^\d{4}-\d{2}-\d{2}(T\d{2}:\d{2}:\d{2}(?:\.\d{3})?Z?)?$/;
|
|
597
|
+
if (!dateRegex.test(dateString)) {
|
|
598
|
+
return false;
|
|
599
|
+
}
|
|
600
|
+
var parsedDate = new Date(dateString);
|
|
601
|
+
return !isNaN(parsedDate.getTime());
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
var getKeyRedisSortedSet = function getKeyRedisSortedSet(target, ContainerName, ID_User) {
|
|
605
|
+
return target + "__" + ContainerName + "__" + ID_User;
|
|
606
|
+
};
|
|
607
|
+
|
|
604
608
|
function isValidPartialEntity(payload, entity, exception) {
|
|
605
609
|
var entityKeys = Object.keys(entity);
|
|
606
610
|
payload = Array.isArray(payload) ? payload : [payload];
|
|
@@ -635,9 +639,10 @@ var getQueueName = function getQueueName(target, containerName, operacion, datab
|
|
|
635
639
|
};
|
|
636
640
|
var getModelDataAdicional = function getModelDataAdicional(queueName) {
|
|
637
641
|
var _queueName$split = queueName.split('__'),
|
|
638
|
-
|
|
642
|
+
ope = _queueName$split[2],
|
|
639
643
|
db = _queueName$split[3],
|
|
640
644
|
col = _queueName$split[4];
|
|
645
|
+
var operacion = ope;
|
|
641
646
|
return {
|
|
642
647
|
db: db,
|
|
643
648
|
col: col,
|
|
@@ -2245,6 +2250,7 @@ exports.convertDates = convertDates;
|
|
|
2245
2250
|
exports.dataFlujosHomePass = dataFlujosHomePass;
|
|
2246
2251
|
exports.esCadenaFechaISOValida = esCadenaFechaISOValida;
|
|
2247
2252
|
exports.esObjetoFecha = esObjetoFecha;
|
|
2253
|
+
exports.getKeyRedisSortedSet = getKeyRedisSortedSet;
|
|
2248
2254
|
exports.getModelDataAdicional = getModelDataAdicional;
|
|
2249
2255
|
exports.getQueueName = getQueueName;
|
|
2250
2256
|
exports.getQueueNameSaveOneNotification = getQueueNameSaveOneNotification;
|