sigo-entities 0.0.166 → 0.0.167

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 CHANGED
@@ -11379,6 +11379,7 @@ __decorateClass([
11379
11379
  (0, import_class_transformer194.Expose)()
11380
11380
  ], DataAdicionalDTO.prototype, "operacion", 2);
11381
11381
  __decorateClass([
11382
+ (0, import_class_transformer194.Transform)(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
11382
11383
  (0, import_class_validator194.IsDate)({ message: "debe ser una fecha" }),
11383
11384
  (0, import_class_validator194.IsNotEmpty)({ message: "es requerido" }),
11384
11385
  (0, import_class_transformer194.Expose)()
@@ -11449,11 +11450,13 @@ __decorateClass([
11449
11450
  (0, import_class_validator195.ValidateNested)()
11450
11451
  ], NotificacionesENTITY.prototype, "dataAdicional", 2);
11451
11452
  __decorateClass([
11453
+ (0, import_class_transformer195.Transform)(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
11452
11454
  (0, import_class_validator195.IsDate)({ message: "debe ser una fecha" }),
11453
11455
  (0, import_class_validator195.IsNotEmpty)({ message: "es requerido" }),
11454
11456
  (0, import_class_transformer195.Expose)()
11455
11457
  ], NotificacionesENTITY.prototype, "fechaCreacion", 2);
11456
11458
  __decorateClass([
11459
+ (0, import_class_transformer195.Transform)(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
11457
11460
  (0, import_class_validator195.IsDate)({ message: "debe ser una fecha" }),
11458
11461
  (0, import_class_validator195.IsNotEmpty)({ message: "es requerido" }),
11459
11462
  (0, import_class_transformer195.Expose)()
package/dist/index.mjs CHANGED
@@ -11150,7 +11150,7 @@ __decorateClass([
11150
11150
  import { IsDate as IsDate73, IsEnum as IsEnum5, IsNotEmpty as IsNotEmpty186, IsString as IsString170, Length as Length153, ValidateNested as ValidateNested120 } from "class-validator";
11151
11151
 
11152
11152
  // src/configuracion/notificaciones/shared/dto/data-adicional-dto.ts
11153
- import { Expose as Expose193 } from "class-transformer";
11153
+ import { Expose as Expose193, Transform } from "class-transformer";
11154
11154
  import { IsDate as IsDate72, IsEnum as IsEnum4, IsNotEmpty as IsNotEmpty185, IsString as IsString169, Length as Length152 } from "class-validator";
11155
11155
  var OperacionDataAdicional = /* @__PURE__ */ ((OperacionDataAdicional2) => {
11156
11156
  OperacionDataAdicional2["CREAR"] = "crear";
@@ -11180,13 +11180,14 @@ __decorateClass([
11180
11180
  Expose193()
11181
11181
  ], DataAdicionalDTO.prototype, "operacion", 2);
11182
11182
  __decorateClass([
11183
+ Transform(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
11183
11184
  IsDate72({ message: "debe ser una fecha" }),
11184
11185
  IsNotEmpty185({ message: "es requerido" }),
11185
11186
  Expose193()
11186
11187
  ], DataAdicionalDTO.prototype, "fecha", 2);
11187
11188
 
11188
11189
  // src/configuracion/notificaciones/shared/index.ts
11189
- import { Expose as Expose194, Type as Type137 } from "class-transformer";
11190
+ import { Expose as Expose194, Transform as Transform2, Type as Type137 } from "class-transformer";
11190
11191
  var TipoNotificacion = /* @__PURE__ */ ((TipoNotificacion2) => {
11191
11192
  TipoNotificacion2["INFO"] = "info";
11192
11193
  TipoNotificacion2["ERROR"] = "error";
@@ -11250,11 +11251,13 @@ __decorateClass([
11250
11251
  ValidateNested120()
11251
11252
  ], NotificacionesENTITY.prototype, "dataAdicional", 2);
11252
11253
  __decorateClass([
11254
+ Transform2(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
11253
11255
  IsDate73({ message: "debe ser una fecha" }),
11254
11256
  IsNotEmpty186({ message: "es requerido" }),
11255
11257
  Expose194()
11256
11258
  ], NotificacionesENTITY.prototype, "fechaCreacion", 2);
11257
11259
  __decorateClass([
11260
+ Transform2(({ value }) => typeof value === "string" ? new Date(value) : value, { toClassOnly: true }),
11258
11261
  IsDate73({ message: "debe ser una fecha" }),
11259
11262
  IsNotEmpty186({ message: "es requerido" }),
11260
11263
  Expose194()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-entities",
3
- "version": "0.0.166",
3
+ "version": "0.0.167",
4
4
  "description": "Desarrollo de modelos de datos SIGO",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",