sigo-entities 1.0.43 → 1.0.44
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 +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +2 -8
- package/dist/index.mjs +2 -8
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3327,7 +3327,7 @@ __decorateClass([
|
|
|
3327
3327
|
], PeriodoDTO.prototype, "FechaInicio", 2);
|
|
3328
3328
|
__decorateClass([
|
|
3329
3329
|
(0, import_class_transformer75.Transform)(({ value }) => {
|
|
3330
|
-
if (value === "") return /* @__PURE__ */ new Date(0);
|
|
3330
|
+
if (value === "" || typeof value == "object" && !(value instanceof Date)) return /* @__PURE__ */ new Date(0);
|
|
3331
3331
|
return value instanceof Date ? value : new Date(value);
|
|
3332
3332
|
}),
|
|
3333
3333
|
(0, import_class_validator76.IsDate)({ message: "debe ser una fecha" }),
|
|
@@ -3335,7 +3335,7 @@ __decorateClass([
|
|
|
3335
3335
|
], PeriodoDTO.prototype, "FechaFin", 2);
|
|
3336
3336
|
__decorateClass([
|
|
3337
3337
|
(0, import_class_transformer75.Transform)(({ value }) => {
|
|
3338
|
-
if (value === "") return /* @__PURE__ */ new Date(0);
|
|
3338
|
+
if (value === "" || typeof value == "object" && !(value instanceof Date)) return /* @__PURE__ */ new Date(0);
|
|
3339
3339
|
return value instanceof Date ? value : new Date(value);
|
|
3340
3340
|
}),
|
|
3341
3341
|
(0, import_class_validator76.IsDate)({ message: "debe ser una fecha" }),
|
|
@@ -12516,7 +12516,6 @@ var OrigenCUB = /* @__PURE__ */ ((OrigenCUB2) => {
|
|
|
12516
12516
|
var CubicacionENTITY = class {
|
|
12517
12517
|
ID_Cubicacion = 0;
|
|
12518
12518
|
ID_MacroObra = 0;
|
|
12519
|
-
MacroObra = "";
|
|
12520
12519
|
detalle = [];
|
|
12521
12520
|
Accion = "";
|
|
12522
12521
|
Fecha = /* @__PURE__ */ new Date();
|
|
@@ -12536,11 +12535,6 @@ __decorateClass([
|
|
|
12536
12535
|
(0, import_class_transformer213.Expose)(),
|
|
12537
12536
|
(0, import_class_validator214.Min)(0, { message: "debe ser al menos 0" })
|
|
12538
12537
|
], CubicacionENTITY.prototype, "ID_MacroObra", 2);
|
|
12539
|
-
__decorateClass([
|
|
12540
|
-
(0, import_class_transformer213.Expose)(),
|
|
12541
|
-
(0, import_class_validator214.IsString)({ message: "debe ser una cadena de texto" }),
|
|
12542
|
-
(0, import_class_validator214.MinLength)(1, { message: "debe ser al menos 1 caracter" })
|
|
12543
|
-
], CubicacionENTITY.prototype, "MacroObra", 2);
|
|
12544
12538
|
__decorateClass([
|
|
12545
12539
|
(0, import_class_validator214.IsArray)({ message: "debe ser un arreglo" }),
|
|
12546
12540
|
(0, import_class_transformer213.Type)(() => DetalleCubicajeDTO),
|
package/dist/index.mjs
CHANGED
|
@@ -2942,7 +2942,7 @@ __decorateClass([
|
|
|
2942
2942
|
], PeriodoDTO.prototype, "FechaInicio", 2);
|
|
2943
2943
|
__decorateClass([
|
|
2944
2944
|
Transform7(({ value }) => {
|
|
2945
|
-
if (value === "") return /* @__PURE__ */ new Date(0);
|
|
2945
|
+
if (value === "" || typeof value == "object" && !(value instanceof Date)) return /* @__PURE__ */ new Date(0);
|
|
2946
2946
|
return value instanceof Date ? value : new Date(value);
|
|
2947
2947
|
}),
|
|
2948
2948
|
IsDate20({ message: "debe ser una fecha" }),
|
|
@@ -2950,7 +2950,7 @@ __decorateClass([
|
|
|
2950
2950
|
], PeriodoDTO.prototype, "FechaFin", 2);
|
|
2951
2951
|
__decorateClass([
|
|
2952
2952
|
Transform7(({ value }) => {
|
|
2953
|
-
if (value === "") return /* @__PURE__ */ new Date(0);
|
|
2953
|
+
if (value === "" || typeof value == "object" && !(value instanceof Date)) return /* @__PURE__ */ new Date(0);
|
|
2954
2954
|
return value instanceof Date ? value : new Date(value);
|
|
2955
2955
|
}),
|
|
2956
2956
|
IsDate20({ message: "debe ser una fecha" }),
|
|
@@ -12158,7 +12158,6 @@ var OrigenCUB = /* @__PURE__ */ ((OrigenCUB2) => {
|
|
|
12158
12158
|
var CubicacionENTITY = class {
|
|
12159
12159
|
ID_Cubicacion = 0;
|
|
12160
12160
|
ID_MacroObra = 0;
|
|
12161
|
-
MacroObra = "";
|
|
12162
12161
|
detalle = [];
|
|
12163
12162
|
Accion = "";
|
|
12164
12163
|
Fecha = /* @__PURE__ */ new Date();
|
|
@@ -12178,11 +12177,6 @@ __decorateClass([
|
|
|
12178
12177
|
Expose211(),
|
|
12179
12178
|
Min117(0, { message: "debe ser al menos 0" })
|
|
12180
12179
|
], CubicacionENTITY.prototype, "ID_MacroObra", 2);
|
|
12181
|
-
__decorateClass([
|
|
12182
|
-
Expose211(),
|
|
12183
|
-
IsString167({ message: "debe ser una cadena de texto" }),
|
|
12184
|
-
MinLength28(1, { message: "debe ser al menos 1 caracter" })
|
|
12185
|
-
], CubicacionENTITY.prototype, "MacroObra", 2);
|
|
12186
12180
|
__decorateClass([
|
|
12187
12181
|
IsArray78({ message: "debe ser un arreglo" }),
|
|
12188
12182
|
Type144(() => DetalleCubicajeDTO),
|