sigo-entities 0.0.190 → 0.0.192
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 +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -18
- package/dist/index.mjs +11 -20
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1289,8 +1289,8 @@ declare class AreaGOMDTO {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
1291
|
declare class CausacionDTO {
|
|
1292
|
-
FechaCausacion: Date;
|
|
1293
|
-
FechaLiquidacion: Date;
|
|
1292
|
+
FechaCausacion: Date | string;
|
|
1293
|
+
FechaLiquidacion: Date | string;
|
|
1294
1294
|
TipoLiquidacion: string;
|
|
1295
1295
|
NumeroLiquidacion: string;
|
|
1296
1296
|
Estado: string;
|
|
@@ -1310,8 +1310,8 @@ declare class ContratoObraOTDTO {
|
|
|
1310
1310
|
declare class HistoricoDTO {
|
|
1311
1311
|
Actividad: string;
|
|
1312
1312
|
Estado: string;
|
|
1313
|
-
Inicio: Date;
|
|
1314
|
-
Fin: Date;
|
|
1313
|
+
Inicio: Date | string;
|
|
1314
|
+
Fin: Date | string;
|
|
1315
1315
|
Usuario: string;
|
|
1316
1316
|
Comentario: string;
|
|
1317
1317
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1289,8 +1289,8 @@ declare class AreaGOMDTO {
|
|
|
1289
1289
|
}
|
|
1290
1290
|
|
|
1291
1291
|
declare class CausacionDTO {
|
|
1292
|
-
FechaCausacion: Date;
|
|
1293
|
-
FechaLiquidacion: Date;
|
|
1292
|
+
FechaCausacion: Date | string;
|
|
1293
|
+
FechaLiquidacion: Date | string;
|
|
1294
1294
|
TipoLiquidacion: string;
|
|
1295
1295
|
NumeroLiquidacion: string;
|
|
1296
1296
|
Estado: string;
|
|
@@ -1310,8 +1310,8 @@ declare class ContratoObraOTDTO {
|
|
|
1310
1310
|
declare class HistoricoDTO {
|
|
1311
1311
|
Actividad: string;
|
|
1312
1312
|
Estado: string;
|
|
1313
|
-
Inicio: Date;
|
|
1314
|
-
Fin: Date;
|
|
1313
|
+
Inicio: Date | string;
|
|
1314
|
+
Fin: Date | string;
|
|
1315
1315
|
Usuario: string;
|
|
1316
1316
|
Comentario: string;
|
|
1317
1317
|
}
|
package/dist/index.js
CHANGED
|
@@ -6814,13 +6814,11 @@ var CausacionDTO = class {
|
|
|
6814
6814
|
Total = 0;
|
|
6815
6815
|
};
|
|
6816
6816
|
__decorateClass([
|
|
6817
|
-
(0, import_class_validator116.
|
|
6818
|
-
(0, import_class_validator116.IsNotEmpty)({ message: "es requerido" }),
|
|
6817
|
+
(0, import_class_validator116.ValidateIf)((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
|
|
6819
6818
|
(0, import_class_transformer116.Expose)()
|
|
6820
6819
|
], CausacionDTO.prototype, "FechaCausacion", 2);
|
|
6821
6820
|
__decorateClass([
|
|
6822
|
-
(0, import_class_validator116.
|
|
6823
|
-
(0, import_class_validator116.IsNotEmpty)({ message: "es requerido" }),
|
|
6821
|
+
(0, import_class_validator116.ValidateIf)((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
|
|
6824
6822
|
(0, import_class_transformer116.Expose)()
|
|
6825
6823
|
], CausacionDTO.prototype, "FechaLiquidacion", 2);
|
|
6826
6824
|
__decorateClass([
|
|
@@ -6831,8 +6829,7 @@ __decorateClass([
|
|
|
6831
6829
|
], CausacionDTO.prototype, "TipoLiquidacion", 2);
|
|
6832
6830
|
__decorateClass([
|
|
6833
6831
|
(0, import_class_validator116.IsString)({ message: "debe ser un texto" }),
|
|
6834
|
-
(0, import_class_validator116.
|
|
6835
|
-
(0, import_class_validator116.Length)(1, 100, { message: "debe tener entre 1 y 100 caracteres" }),
|
|
6832
|
+
(0, import_class_validator116.Length)(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
6836
6833
|
(0, import_class_transformer116.Expose)()
|
|
6837
6834
|
], CausacionDTO.prototype, "NumeroLiquidacion", 2);
|
|
6838
6835
|
__decorateClass([
|
|
@@ -6843,27 +6840,23 @@ __decorateClass([
|
|
|
6843
6840
|
], CausacionDTO.prototype, "Estado", 2);
|
|
6844
6841
|
__decorateClass([
|
|
6845
6842
|
(0, import_class_validator116.IsNumber)({}, { message: "debe ser un numero" }),
|
|
6846
|
-
(0, import_class_validator116.IsNotEmpty)({ message: "es requerido" }),
|
|
6847
6843
|
(0, import_class_transformer116.Expose)(),
|
|
6848
|
-
(0, import_class_validator116.Min)(
|
|
6844
|
+
(0, import_class_validator116.Min)(0)
|
|
6849
6845
|
], CausacionDTO.prototype, "TotalBaremos", 2);
|
|
6850
6846
|
__decorateClass([
|
|
6851
6847
|
(0, import_class_validator116.IsNumber)({}, { message: "debe ser un numero" }),
|
|
6852
|
-
(0, import_class_validator116.IsNotEmpty)({ message: "es requerido" }),
|
|
6853
6848
|
(0, import_class_transformer116.Expose)(),
|
|
6854
|
-
(0, import_class_validator116.Min)(
|
|
6849
|
+
(0, import_class_validator116.Min)(0)
|
|
6855
6850
|
], CausacionDTO.prototype, "ManoDeObra", 2);
|
|
6856
6851
|
__decorateClass([
|
|
6857
6852
|
(0, import_class_validator116.IsNumber)({}, { message: "debe ser un numero" }),
|
|
6858
|
-
(0, import_class_validator116.IsNotEmpty)({ message: "es requerido" }),
|
|
6859
6853
|
(0, import_class_transformer116.Expose)(),
|
|
6860
|
-
(0, import_class_validator116.Min)(
|
|
6854
|
+
(0, import_class_validator116.Min)(0)
|
|
6861
6855
|
], CausacionDTO.prototype, "Materiales", 2);
|
|
6862
6856
|
__decorateClass([
|
|
6863
6857
|
(0, import_class_validator116.IsNumber)({}, { message: "debe ser un numero" }),
|
|
6864
|
-
(0, import_class_validator116.IsNotEmpty)({ message: "es requerido" }),
|
|
6865
6858
|
(0, import_class_transformer116.Expose)(),
|
|
6866
|
-
(0, import_class_validator116.Min)(
|
|
6859
|
+
(0, import_class_validator116.Min)(0)
|
|
6867
6860
|
], CausacionDTO.prototype, "Total", 2);
|
|
6868
6861
|
|
|
6869
6862
|
// src/programados/procesos/obra/shared/dto/contrato-ot-dto.ts
|
|
@@ -6926,13 +6919,11 @@ __decorateClass([
|
|
|
6926
6919
|
(0, import_class_transformer118.Expose)()
|
|
6927
6920
|
], HistoricoDTO.prototype, "Estado", 2);
|
|
6928
6921
|
__decorateClass([
|
|
6929
|
-
(0, import_class_validator118.
|
|
6930
|
-
(0, import_class_validator118.IsNotEmpty)({ message: "es requerido" }),
|
|
6922
|
+
(0, import_class_validator118.ValidateIf)((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
|
|
6931
6923
|
(0, import_class_transformer118.Expose)()
|
|
6932
6924
|
], HistoricoDTO.prototype, "Inicio", 2);
|
|
6933
6925
|
__decorateClass([
|
|
6934
|
-
(0, import_class_validator118.
|
|
6935
|
-
(0, import_class_validator118.IsNotEmpty)({ message: "es requerido" }),
|
|
6926
|
+
(0, import_class_validator118.ValidateIf)((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
|
|
6936
6927
|
(0, import_class_transformer118.Expose)()
|
|
6937
6928
|
], HistoricoDTO.prototype, "Fin", 2);
|
|
6938
6929
|
__decorateClass([
|
package/dist/index.mjs
CHANGED
|
@@ -6561,7 +6561,7 @@ __decorateClass([
|
|
|
6561
6561
|
|
|
6562
6562
|
// src/programados/procesos/obra/shared/dto/causacion-dto.ts
|
|
6563
6563
|
import { Expose as Expose115 } from "class-transformer";
|
|
6564
|
-
import {
|
|
6564
|
+
import { IsNotEmpty as IsNotEmpty114, IsNumber as IsNumber79, IsString as IsString96, Length as Length82, Min as Min49, ValidateIf as ValidateIf3 } from "class-validator";
|
|
6565
6565
|
var CausacionDTO = class {
|
|
6566
6566
|
FechaCausacion = /* @__PURE__ */ new Date();
|
|
6567
6567
|
FechaLiquidacion = /* @__PURE__ */ new Date();
|
|
@@ -6574,13 +6574,11 @@ var CausacionDTO = class {
|
|
|
6574
6574
|
Total = 0;
|
|
6575
6575
|
};
|
|
6576
6576
|
__decorateClass([
|
|
6577
|
-
|
|
6578
|
-
IsNotEmpty114({ message: "es requerido" }),
|
|
6577
|
+
ValidateIf3((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
|
|
6579
6578
|
Expose115()
|
|
6580
6579
|
], CausacionDTO.prototype, "FechaCausacion", 2);
|
|
6581
6580
|
__decorateClass([
|
|
6582
|
-
|
|
6583
|
-
IsNotEmpty114({ message: "es requerido" }),
|
|
6581
|
+
ValidateIf3((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
|
|
6584
6582
|
Expose115()
|
|
6585
6583
|
], CausacionDTO.prototype, "FechaLiquidacion", 2);
|
|
6586
6584
|
__decorateClass([
|
|
@@ -6591,8 +6589,7 @@ __decorateClass([
|
|
|
6591
6589
|
], CausacionDTO.prototype, "TipoLiquidacion", 2);
|
|
6592
6590
|
__decorateClass([
|
|
6593
6591
|
IsString96({ message: "debe ser un texto" }),
|
|
6594
|
-
|
|
6595
|
-
Length82(1, 100, { message: "debe tener entre 1 y 100 caracteres" }),
|
|
6592
|
+
Length82(0, 100, { message: "debe tener entre 0 y 100 caracteres" }),
|
|
6596
6593
|
Expose115()
|
|
6597
6594
|
], CausacionDTO.prototype, "NumeroLiquidacion", 2);
|
|
6598
6595
|
__decorateClass([
|
|
@@ -6603,27 +6600,23 @@ __decorateClass([
|
|
|
6603
6600
|
], CausacionDTO.prototype, "Estado", 2);
|
|
6604
6601
|
__decorateClass([
|
|
6605
6602
|
IsNumber79({}, { message: "debe ser un numero" }),
|
|
6606
|
-
IsNotEmpty114({ message: "es requerido" }),
|
|
6607
6603
|
Expose115(),
|
|
6608
|
-
Min49(
|
|
6604
|
+
Min49(0)
|
|
6609
6605
|
], CausacionDTO.prototype, "TotalBaremos", 2);
|
|
6610
6606
|
__decorateClass([
|
|
6611
6607
|
IsNumber79({}, { message: "debe ser un numero" }),
|
|
6612
|
-
IsNotEmpty114({ message: "es requerido" }),
|
|
6613
6608
|
Expose115(),
|
|
6614
|
-
Min49(
|
|
6609
|
+
Min49(0)
|
|
6615
6610
|
], CausacionDTO.prototype, "ManoDeObra", 2);
|
|
6616
6611
|
__decorateClass([
|
|
6617
6612
|
IsNumber79({}, { message: "debe ser un numero" }),
|
|
6618
|
-
IsNotEmpty114({ message: "es requerido" }),
|
|
6619
6613
|
Expose115(),
|
|
6620
|
-
Min49(
|
|
6614
|
+
Min49(0)
|
|
6621
6615
|
], CausacionDTO.prototype, "Materiales", 2);
|
|
6622
6616
|
__decorateClass([
|
|
6623
6617
|
IsNumber79({}, { message: "debe ser un numero" }),
|
|
6624
|
-
IsNotEmpty114({ message: "es requerido" }),
|
|
6625
6618
|
Expose115(),
|
|
6626
|
-
Min49(
|
|
6619
|
+
Min49(0)
|
|
6627
6620
|
], CausacionDTO.prototype, "Total", 2);
|
|
6628
6621
|
|
|
6629
6622
|
// src/programados/procesos/obra/shared/dto/contrato-ot-dto.ts
|
|
@@ -6666,7 +6659,7 @@ import { IsArray as IsArray37, IsDate as IsDate41, IsNotEmpty as IsNotEmpty118,
|
|
|
6666
6659
|
|
|
6667
6660
|
// src/programados/procesos/obra/shared/dto/historico-dto.ts
|
|
6668
6661
|
import { Expose as Expose117 } from "class-transformer";
|
|
6669
|
-
import {
|
|
6662
|
+
import { IsString as IsString98, Length as Length84, ValidateIf as ValidateIf4 } from "class-validator";
|
|
6670
6663
|
var HistoricoDTO = class {
|
|
6671
6664
|
Actividad = "";
|
|
6672
6665
|
Estado = "";
|
|
@@ -6686,13 +6679,11 @@ __decorateClass([
|
|
|
6686
6679
|
Expose117()
|
|
6687
6680
|
], HistoricoDTO.prototype, "Estado", 2);
|
|
6688
6681
|
__decorateClass([
|
|
6689
|
-
|
|
6690
|
-
IsNotEmpty116({ message: "es requerido" }),
|
|
6682
|
+
ValidateIf4((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
|
|
6691
6683
|
Expose117()
|
|
6692
6684
|
], HistoricoDTO.prototype, "Inicio", 2);
|
|
6693
6685
|
__decorateClass([
|
|
6694
|
-
|
|
6695
|
-
IsNotEmpty116({ message: "es requerido" }),
|
|
6686
|
+
ValidateIf4((o) => typeof o.Fin === "string" || o.Fin instanceof Date),
|
|
6696
6687
|
Expose117()
|
|
6697
6688
|
], HistoricoDTO.prototype, "Fin", 2);
|
|
6698
6689
|
__decorateClass([
|