sigo-entities 1.0.29 → 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 -4
- package/dist/index.mjs +8 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3301,14 +3301,18 @@ __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
3309
|
(0, import_class_transformer75.Expose)()
|
|
3308
3310
|
], PeriodoDTO.prototype, "FechaFin", 2);
|
|
3309
3311
|
__decorateClass([
|
|
3310
|
-
(0, import_class_transformer75.Transform)(({ value }) =>
|
|
3311
|
-
|
|
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
|
+
}),
|
|
3312
3316
|
(0, import_class_validator76.IsDate)({ message: "debe ser una fecha" }),
|
|
3313
3317
|
(0, import_class_transformer75.Expose)()
|
|
3314
3318
|
], PeriodoDTO.prototype, "FechaMaxima", 2);
|
package/dist/index.mjs
CHANGED
|
@@ -2923,14 +2923,18 @@ __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
2931
|
Expose73()
|
|
2930
2932
|
], PeriodoDTO.prototype, "FechaFin", 2);
|
|
2931
2933
|
__decorateClass([
|
|
2932
|
-
Transform4(({ value }) =>
|
|
2933
|
-
|
|
2934
|
+
Transform4(({ value }) => {
|
|
2935
|
+
if (value === "") return /* @__PURE__ */ new Date(0);
|
|
2936
|
+
return value instanceof Date ? value : new Date(value);
|
|
2937
|
+
}),
|
|
2934
2938
|
IsDate20({ message: "debe ser una fecha" }),
|
|
2935
2939
|
Expose73()
|
|
2936
2940
|
], PeriodoDTO.prototype, "FechaMaxima", 2);
|