test-entity-library-asm 2.3.9 → 2.4.0

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.
@@ -6,9 +6,9 @@ export declare class Country {
6
6
  currency: string;
7
7
  prefix: string;
8
8
  structure_phone: string;
9
- legal_information: string;
10
- legal_agent: string;
11
- details: string;
9
+ legal_information: any;
10
+ legal_agent: any;
11
+ details: any;
12
12
  status: number;
13
13
  regions: Region[];
14
14
  }
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.Country = void 0;
13
13
  var typeorm_1 = require("typeorm");
14
14
  var Region_1 = require("./Region");
15
+ var jsonTransformer_1 = require("../transformers/jsonTransformer");
15
16
  var Country = /** @class */ (function () {
16
17
  function Country() {
17
18
  }
@@ -50,24 +51,27 @@ var Country = /** @class */ (function () {
50
51
  __decorate([
51
52
  (0, typeorm_1.Column)({
52
53
  type: 'longtext',
54
+ transformer: jsonTransformer_1.jsonTransformer,
53
55
  comment: 'Esta columna de tipo JSON nos sirve para agregar toda la información que se necesita a nivel de información legal de la empresa que se registre, ya que para cada país cambia la información.',
54
56
  }),
55
- __metadata("design:type", String)
57
+ __metadata("design:type", Object)
56
58
  ], Country.prototype, "legal_information", void 0);
57
59
  __decorate([
58
60
  (0, typeorm_1.Column)({
59
61
  type: 'longtext',
62
+ transformer: jsonTransformer_1.jsonTransformer,
60
63
  comment: 'Columna de tipo JSON para almacenar la información que se necesita para la información del representante legal de la empresa.',
61
64
  }),
62
- __metadata("design:type", String)
65
+ __metadata("design:type", Object)
63
66
  ], Country.prototype, "legal_agent", void 0);
64
67
  __decorate([
65
68
  (0, typeorm_1.Column)({
66
69
  type: 'longtext',
67
70
  nullable: true,
71
+ transformer: jsonTransformer_1.jsonTransformer,
68
72
  comment: 'Columna de tipo JSON para almacenar información adicional sobre el país.',
69
73
  }),
70
- __metadata("design:type", String)
74
+ __metadata("design:type", Object)
71
75
  ], Country.prototype, "details", void 0);
72
76
  __decorate([
73
77
  (0, typeorm_1.Column)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.3.9",
3
+ "version": "2.4.0",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,5 +1,6 @@
1
1
  import { Column, Entity, OneToMany, PrimaryGeneratedColumn } from 'typeorm'
2
2
  import { Region } from './Region'
3
+ import { jsonTransformer } from '../transformers/jsonTransformer'
3
4
 
4
5
  @Entity({ comment: 'Países donde está disponible la plataforma.' })
5
6
  export class Country {
@@ -32,25 +33,28 @@ export class Country {
32
33
 
33
34
  @Column({
34
35
  type: 'longtext',
36
+ transformer: jsonTransformer,
35
37
  comment:
36
38
  'Esta columna de tipo JSON nos sirve para agregar toda la información que se necesita a nivel de información legal de la empresa que se registre, ya que para cada país cambia la información.',
37
39
  })
38
- legal_information: string
40
+ legal_information: any
39
41
 
40
42
  @Column({
41
43
  type: 'longtext',
44
+ transformer: jsonTransformer,
42
45
  comment:
43
46
  'Columna de tipo JSON para almacenar la información que se necesita para la información del representante legal de la empresa.',
44
47
  })
45
- legal_agent: string
48
+ legal_agent: any
46
49
 
47
50
  @Column({
48
51
  type: 'longtext',
49
52
  nullable: true,
53
+ transformer: jsonTransformer,
50
54
  comment:
51
55
  'Columna de tipo JSON para almacenar información adicional sobre el país.',
52
56
  })
53
- details: string
57
+ details: any
54
58
 
55
59
  @Column({
56
60
  default: 1,