sigo-entities 1.0.28 → 1.0.30
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.js +8 -6
- package/dist/index.mjs +8 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3301,17 +3301,19 @@ __decorateClass([
|
|
|
3301
3301
|
(0, import_class_transformer75.Type)(() => Date)
|
|
3302
3302
|
], PeriodoDTO.prototype, "FechaInicio", 2);
|
|
3303
3303
|
__decorateClass([
|
|
3304
|
-
(0, import_class_transformer75.Transform)(({ value }) =>
|
|
3305
|
-
|
|
3304
|
+
(0, import_class_transformer75.Transform)(({ value }) => {
|
|
3305
|
+
if (value === "") return /* @__PURE__ */ new Date(0);
|
|
3306
|
+
return value instanceof Date ? value : new Date(value);
|
|
3307
|
+
}),
|
|
3306
3308
|
(0, import_class_validator76.IsDate)({ message: "debe ser una fecha" }),
|
|
3307
|
-
(0, import_class_validator76.IsNotEmpty)({ message: "es requerido" }),
|
|
3308
3309
|
(0, import_class_transformer75.Expose)()
|
|
3309
3310
|
], PeriodoDTO.prototype, "FechaFin", 2);
|
|
3310
3311
|
__decorateClass([
|
|
3311
|
-
(0, import_class_transformer75.Transform)(({ value }) =>
|
|
3312
|
-
|
|
3312
|
+
(0, import_class_transformer75.Transform)(({ value }) => {
|
|
3313
|
+
if (value === "") return /* @__PURE__ */ new Date(0);
|
|
3314
|
+
return value instanceof Date ? value : new Date(value);
|
|
3315
|
+
}),
|
|
3313
3316
|
(0, import_class_validator76.IsDate)({ message: "debe ser una fecha" }),
|
|
3314
|
-
(0, import_class_validator76.IsNotEmpty)({ message: "es requerido" }),
|
|
3315
3317
|
(0, import_class_transformer75.Expose)()
|
|
3316
3318
|
], PeriodoDTO.prototype, "FechaMaxima", 2);
|
|
3317
3319
|
__decorateClass([
|
package/dist/index.mjs
CHANGED
|
@@ -2923,17 +2923,19 @@ __decorateClass([
|
|
|
2923
2923
|
Type42(() => Date)
|
|
2924
2924
|
], PeriodoDTO.prototype, "FechaInicio", 2);
|
|
2925
2925
|
__decorateClass([
|
|
2926
|
-
Transform4(({ value }) =>
|
|
2927
|
-
|
|
2926
|
+
Transform4(({ value }) => {
|
|
2927
|
+
if (value === "") return /* @__PURE__ */ new Date(0);
|
|
2928
|
+
return value instanceof Date ? value : new Date(value);
|
|
2929
|
+
}),
|
|
2928
2930
|
IsDate20({ message: "debe ser una fecha" }),
|
|
2929
|
-
IsNotEmpty61({ message: "es requerido" }),
|
|
2930
2931
|
Expose73()
|
|
2931
2932
|
], PeriodoDTO.prototype, "FechaFin", 2);
|
|
2932
2933
|
__decorateClass([
|
|
2933
|
-
Transform4(({ value }) =>
|
|
2934
|
-
|
|
2934
|
+
Transform4(({ value }) => {
|
|
2935
|
+
if (value === "") return /* @__PURE__ */ new Date(0);
|
|
2936
|
+
return value instanceof Date ? value : new Date(value);
|
|
2937
|
+
}),
|
|
2935
2938
|
IsDate20({ message: "debe ser una fecha" }),
|
|
2936
|
-
IsNotEmpty61({ message: "es requerido" }),
|
|
2937
2939
|
Expose73()
|
|
2938
2940
|
], PeriodoDTO.prototype, "FechaMaxima", 2);
|
|
2939
2941
|
__decorateClass([
|