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 CHANGED
@@ -2278,7 +2278,6 @@ declare enum OrigenCUB {
2278
2278
  declare class CubicacionENTITY {
2279
2279
  ID_Cubicacion: number;
2280
2280
  ID_MacroObra: number;
2281
- MacroObra: string;
2282
2281
  detalle: DetalleCubicajeDTO[];
2283
2282
  Accion: string;
2284
2283
  Fecha: Date;
package/dist/index.d.ts CHANGED
@@ -2278,7 +2278,6 @@ declare enum OrigenCUB {
2278
2278
  declare class CubicacionENTITY {
2279
2279
  ID_Cubicacion: number;
2280
2280
  ID_MacroObra: number;
2281
- MacroObra: string;
2282
2281
  detalle: DetalleCubicajeDTO[];
2283
2282
  Accion: string;
2284
2283
  Fecha: Date;
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),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "1.0.43",
3
+ "version": "1.0.44",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",