test-entity-library-asm 1.6.4 → 1.6.6

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.
@@ -17,7 +17,7 @@ export declare class Partner {
17
17
  city: City;
18
18
  address: string;
19
19
  password: string;
20
- profile: Object;
20
+ profile: string;
21
21
  owner: number;
22
22
  created: Date;
23
23
  updated: Date;
@@ -19,7 +19,7 @@ var PartnerRole_1 = require("./PartnerRole");
19
19
  var Terminal_1 = require("./Terminal");
20
20
  var TerminalSession_1 = require("./TerminalSession");
21
21
  var jsonTransformer = {
22
- to: function (value) { return JSON.stringify(value); },
22
+ to: function (value) { return value; },
23
23
  from: function (value) { return JSON.parse(value); },
24
24
  };
25
25
  var Partner = /** @class */ (function () {
@@ -98,11 +98,12 @@ var Partner = /** @class */ (function () {
98
98
  ], Partner.prototype, "password", void 0);
99
99
  __decorate([
100
100
  (0, typeorm_1.Column)({
101
+ type: 'json',
101
102
  nullable: true,
102
103
  transformer: jsonTransformer,
103
104
  comment: 'Campo de tipo JSON donde se guarda información necesaria para el registro.',
104
105
  }),
105
- __metadata("design:type", Object)
106
+ __metadata("design:type", String)
106
107
  ], Partner.prototype, "profile", void 0);
107
108
  __decorate([
108
109
  (0, typeorm_1.Column)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -17,7 +17,7 @@ import { Terminal } from './Terminal'
17
17
  import { TerminalSession } from './TerminalSession'
18
18
 
19
19
  const jsonTransformer = {
20
- to: (value: any) => JSON.stringify(value),
20
+ to: (value: any) => value,
21
21
  from: (value: string) => JSON.parse(value),
22
22
  }
23
23
 
@@ -87,12 +87,13 @@ export class Partner {
87
87
  password: string
88
88
 
89
89
  @Column({
90
+ type: 'json',
90
91
  nullable: true,
91
92
  transformer: jsonTransformer,
92
93
  comment:
93
94
  'Campo de tipo JSON donde se guarda información necesaria para el registro.',
94
95
  })
95
- profile: Object
96
+ profile: string
96
97
 
97
98
  @Column({
98
99
  default: 0,