test-entity-library-asm 3.9.60 → 3.9.62

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.
@@ -1,5 +1,6 @@
1
1
  export declare class LocalsCompany {
2
2
  id: number;
3
+ code: string;
3
4
  company: number;
4
5
  name: string;
5
6
  address: string;
@@ -12,10 +12,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.LocalsCompany = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  // JSON Transformer
15
- const jsonTransformer = {
16
- to: (value) => JSON.stringify(value),
17
- from: (value) => JSON.parse(value),
18
- };
15
+ // const jsonTransformer = {
16
+ // to: (value: any) => JSON.stringify(value),
17
+ // from: (value: string) => JSON.parse(value),
18
+ // };
19
19
  let LocalsCompany = class LocalsCompany {
20
20
  };
21
21
  exports.LocalsCompany = LocalsCompany;
@@ -23,6 +23,10 @@ __decorate([
23
23
  (0, typeorm_1.ViewColumn)(),
24
24
  __metadata("design:type", Number)
25
25
  ], LocalsCompany.prototype, "id", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.ViewColumn)(),
28
+ __metadata("design:type", String)
29
+ ], LocalsCompany.prototype, "code", void 0);
26
30
  __decorate([
27
31
  (0, typeorm_1.ViewColumn)(),
28
32
  __metadata("design:type", Number)
@@ -44,7 +48,7 @@ __decorate([
44
48
  __metadata("design:type", String)
45
49
  ], LocalsCompany.prototype, "longitude", void 0);
46
50
  __decorate([
47
- (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
51
+ (0, typeorm_1.ViewColumn)(),
48
52
  __metadata("design:type", Object)
49
53
  ], LocalsCompany.prototype, "details", void 0);
50
54
  __decorate([
@@ -100,7 +104,7 @@ __decorate([
100
104
  __metadata("design:type", Number)
101
105
  ], LocalsCompany.prototype, "country_status", void 0);
102
106
  __decorate([
103
- (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
107
+ (0, typeorm_1.ViewColumn)(),
104
108
  __metadata("design:type", Object)
105
109
  ], LocalsCompany.prototype, "country_details", void 0);
106
110
  __decorate([
@@ -148,11 +152,11 @@ __decorate([
148
152
  __metadata("design:type", String)
149
153
  ], LocalsCompany.prototype, "pos_system_description", void 0);
150
154
  __decorate([
151
- (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
155
+ (0, typeorm_1.ViewColumn)(),
152
156
  __metadata("design:type", Object)
153
157
  ], LocalsCompany.prototype, "pos_system_endpoint_products", void 0);
154
158
  __decorate([
155
- (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
159
+ (0, typeorm_1.ViewColumn)(),
156
160
  __metadata("design:type", Object)
157
161
  ], LocalsCompany.prototype, "pos_system_endpoint_order", void 0);
158
162
  __decorate([
@@ -160,7 +164,7 @@ __decorate([
160
164
  __metadata("design:type", Object)
161
165
  ], LocalsCompany.prototype, "pos_system_authentication_credentials", void 0);
162
166
  __decorate([
163
- (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
167
+ (0, typeorm_1.ViewColumn)(),
164
168
  __metadata("design:type", Object)
165
169
  ], LocalsCompany.prototype, "pos_system_settings", void 0);
166
170
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "3.9.60",
3
+ "version": "3.9.62",
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,10 +1,10 @@
1
1
  import { ViewColumn, ViewEntity } from "typeorm";
2
2
 
3
3
  // JSON Transformer
4
- const jsonTransformer = {
5
- to: (value: any) => JSON.stringify(value),
6
- from: (value: string) => JSON.parse(value),
7
- };
4
+ // const jsonTransformer = {
5
+ // to: (value: any) => JSON.stringify(value),
6
+ // from: (value: string) => JSON.parse(value),
7
+ // };
8
8
 
9
9
  @ViewEntity({
10
10
  name: "locals_company",
@@ -13,6 +13,9 @@ export class LocalsCompany {
13
13
  @ViewColumn()
14
14
  id: number;
15
15
 
16
+ @ViewColumn()
17
+ code: string;
18
+
16
19
  @ViewColumn()
17
20
  company: number;
18
21
 
@@ -28,7 +31,7 @@ export class LocalsCompany {
28
31
  @ViewColumn()
29
32
  longitude: string;
30
33
 
31
- @ViewColumn({ transformer: jsonTransformer })
34
+ @ViewColumn()
32
35
  details: any | null;
33
36
 
34
37
  @ViewColumn()
@@ -70,7 +73,7 @@ export class LocalsCompany {
70
73
  @ViewColumn()
71
74
  country_status: number;
72
75
 
73
- @ViewColumn({ transformer: jsonTransformer })
76
+ @ViewColumn()
74
77
  country_details: any | null;
75
78
 
76
79
  @ViewColumn()
@@ -106,16 +109,16 @@ export class LocalsCompany {
106
109
  @ViewColumn()
107
110
  pos_system_description: string;
108
111
 
109
- @ViewColumn({ transformer: jsonTransformer })
112
+ @ViewColumn()
110
113
  pos_system_endpoint_products: any;
111
114
 
112
- @ViewColumn({ transformer: jsonTransformer })
115
+ @ViewColumn()
113
116
  pos_system_endpoint_order: any;
114
117
 
115
118
  @ViewColumn()
116
119
  pos_system_authentication_credentials: number | null;
117
120
 
118
- @ViewColumn({ transformer: jsonTransformer })
121
+ @ViewColumn()
119
122
  pos_system_settings: any | null;
120
123
 
121
124
  @ViewColumn()