test-entity-library-asm 3.1.2 → 3.1.4

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.
@@ -11,7 +11,7 @@ export declare class ProductGroupComplement {
11
11
  position: number;
12
12
  current_values: any;
13
13
  status: number;
14
- inactive_until: Date;
14
+ inactive_until: any;
15
15
  status_review: number;
16
16
  review_comment: string;
17
17
  request_product_group_complements: RequestProductGroupComplement[];
@@ -77,11 +77,12 @@ var ProductGroupComplement = /** @class */ (function () {
77
77
  ], ProductGroupComplement.prototype, "status", void 0);
78
78
  __decorate([
79
79
  (0, typeorm_1.Column)({
80
- type: "date",
80
+ type: "text",
81
81
  nullable: true,
82
+ transformer: jsonTransformer_1.jsonTransformer,
82
83
  comment: "Cuando un complemento se inactiva, existe la opción de hacerlo por:\r\n1. Un solo día: El elemento no estará disponible hasta las 00:00 del siguiente día (Se guarda un elemento de tipo fecha).\r\n2. Fecha personalizada: Se puede escoger la fecha en la que el elemento estará activo (Se guarda un elemento de tipo fecha).\r\n3. Indefinidamente: El elemento estará inactivo hasta que se vuelva a activar (El campo inactive_until estará vacío).",
83
84
  }),
84
- __metadata("design:type", Date)
85
+ __metadata("design:type", Object)
85
86
  ], ProductGroupComplement.prototype, "inactive_until", void 0);
86
87
  __decorate([
87
88
  (0, typeorm_1.Column)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -76,12 +76,13 @@ export class ProductGroupComplement {
76
76
  status: number;
77
77
 
78
78
  @Column({
79
- type: "date",
79
+ type: "text",
80
80
  nullable: true,
81
+ transformer: jsonTransformer,
81
82
  comment:
82
83
  "Cuando un complemento se inactiva, existe la opción de hacerlo por:\r\n1. Un solo día: El elemento no estará disponible hasta las 00:00 del siguiente día (Se guarda un elemento de tipo fecha).\r\n2. Fecha personalizada: Se puede escoger la fecha en la que el elemento estará activo (Se guarda un elemento de tipo fecha).\r\n3. Indefinidamente: El elemento estará inactivo hasta que se vuelva a activar (El campo inactive_until estará vacío).",
83
84
  })
84
- inactive_until: Date;
85
+ inactive_until: any;
85
86
 
86
87
  @Column({
87
88
  default: 1,