test-entity-library-asm 2.5.7 → 2.5.9
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.
|
@@ -12,11 +12,11 @@ export declare class Company {
|
|
|
12
12
|
name: string;
|
|
13
13
|
city: City;
|
|
14
14
|
partner: Partner;
|
|
15
|
-
profile:
|
|
15
|
+
profile: any;
|
|
16
16
|
quantity_locals: number;
|
|
17
17
|
quantity_users: number;
|
|
18
|
-
legal_information:
|
|
19
|
-
legal_agent:
|
|
18
|
+
legal_information: any;
|
|
19
|
+
legal_agent: any;
|
|
20
20
|
plan: Plan;
|
|
21
21
|
created: Date;
|
|
22
22
|
expiration: Date;
|
package/dist/entities/Company.js
CHANGED
|
@@ -19,6 +19,8 @@ var Partner_1 = require("./Partner");
|
|
|
19
19
|
var PartnerRole_1 = require("./PartnerRole");
|
|
20
20
|
var Plan_1 = require("./Plan");
|
|
21
21
|
var ProductTopping_1 = require("./ProductTopping");
|
|
22
|
+
var jsonTransformer_1 = require("../transformers/jsonTransformer");
|
|
23
|
+
var dateTransformer_1 = require("../transformers/dateTransformer");
|
|
22
24
|
var Company = /** @class */ (function () {
|
|
23
25
|
function Company() {
|
|
24
26
|
}
|
|
@@ -56,9 +58,10 @@ var Company = /** @class */ (function () {
|
|
|
56
58
|
(0, typeorm_1.Column)({
|
|
57
59
|
type: 'longtext',
|
|
58
60
|
nullable: true,
|
|
61
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
59
62
|
comment: 'Campo de tipo JSON donde se guarda información necesaria para la empresa.',
|
|
60
63
|
}),
|
|
61
|
-
__metadata("design:type",
|
|
64
|
+
__metadata("design:type", Object)
|
|
62
65
|
], Company.prototype, "profile", void 0);
|
|
63
66
|
__decorate([
|
|
64
67
|
(0, typeorm_1.Column)({
|
|
@@ -78,17 +81,19 @@ var Company = /** @class */ (function () {
|
|
|
78
81
|
(0, typeorm_1.Column)({
|
|
79
82
|
type: 'longtext',
|
|
80
83
|
nullable: true,
|
|
84
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
81
85
|
comment: 'Información de tipo JSON donde se guarda la información legal de la empresa.',
|
|
82
86
|
}),
|
|
83
|
-
__metadata("design:type",
|
|
87
|
+
__metadata("design:type", Object)
|
|
84
88
|
], Company.prototype, "legal_information", void 0);
|
|
85
89
|
__decorate([
|
|
86
90
|
(0, typeorm_1.Column)({
|
|
87
91
|
type: 'longtext',
|
|
88
92
|
nullable: true,
|
|
93
|
+
transformer: jsonTransformer_1.jsonTransformer,
|
|
89
94
|
comment: 'Información de tipo JSON donde se guarda la información del representante legal del representante.',
|
|
90
95
|
}),
|
|
91
|
-
__metadata("design:type",
|
|
96
|
+
__metadata("design:type", Object)
|
|
92
97
|
], Company.prototype, "legal_agent", void 0);
|
|
93
98
|
__decorate([
|
|
94
99
|
(0, typeorm_1.ManyToOne)(function () { return Plan_1.Plan; }, function (plan) { return plan.companies; }, {
|
|
@@ -99,7 +104,11 @@ var Company = /** @class */ (function () {
|
|
|
99
104
|
__metadata("design:type", Plan_1.Plan)
|
|
100
105
|
], Company.prototype, "plan", void 0);
|
|
101
106
|
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({
|
|
107
|
+
(0, typeorm_1.Column)({
|
|
108
|
+
type: 'datetime',
|
|
109
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
110
|
+
comment: 'Fecha creación de la empresa.',
|
|
111
|
+
}),
|
|
103
112
|
__metadata("design:type", Date)
|
|
104
113
|
], Company.prototype, "created", void 0);
|
|
105
114
|
__decorate([
|
|
@@ -113,6 +122,7 @@ var Company = /** @class */ (function () {
|
|
|
113
122
|
__decorate([
|
|
114
123
|
(0, typeorm_1.Column)({
|
|
115
124
|
type: 'datetime',
|
|
125
|
+
transformer: new dateTransformer_1.DateTransformer(),
|
|
116
126
|
comment: 'Fecha de actualización de la empresa.',
|
|
117
127
|
}),
|
|
118
128
|
__metadata("design:type", Date)
|
|
@@ -165,6 +165,18 @@ var VerifyLocals = /** @class */ (function () {
|
|
|
165
165
|
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
166
166
|
__metadata("design:type", Object)
|
|
167
167
|
], VerifyLocals.prototype, "partner_profile", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, typeorm_1.ViewColumn)(),
|
|
170
|
+
__metadata("design:type", Number)
|
|
171
|
+
], VerifyLocals.prototype, "company_id", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, typeorm_1.ViewColumn)(),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], VerifyLocals.prototype, "company_name", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
178
|
+
__metadata("design:type", Object)
|
|
179
|
+
], VerifyLocals.prototype, "company_profile", void 0);
|
|
168
180
|
VerifyLocals = __decorate([
|
|
169
181
|
(0, typeorm_1.ViewEntity)({
|
|
170
182
|
name: 'verify_locals',
|
package/package.json
CHANGED
package/src/entities/Company.ts
CHANGED
|
@@ -14,6 +14,8 @@ import { Partner } from './Partner'
|
|
|
14
14
|
import { PartnerRole } from './PartnerRole'
|
|
15
15
|
import { Plan } from './Plan'
|
|
16
16
|
import { ProductTopping } from './ProductTopping'
|
|
17
|
+
import { jsonTransformer } from '../transformers/jsonTransformer'
|
|
18
|
+
import { DateTransformer } from '../transformers/dateTransformer'
|
|
17
19
|
|
|
18
20
|
@Entity({
|
|
19
21
|
comment:
|
|
@@ -48,10 +50,11 @@ export class Company {
|
|
|
48
50
|
@Column({
|
|
49
51
|
type: 'longtext',
|
|
50
52
|
nullable: true,
|
|
53
|
+
transformer: jsonTransformer,
|
|
51
54
|
comment:
|
|
52
55
|
'Campo de tipo JSON donde se guarda información necesaria para la empresa.',
|
|
53
56
|
})
|
|
54
|
-
profile:
|
|
57
|
+
profile: any
|
|
55
58
|
|
|
56
59
|
@Column({
|
|
57
60
|
default: 1,
|
|
@@ -70,18 +73,20 @@ export class Company {
|
|
|
70
73
|
@Column({
|
|
71
74
|
type: 'longtext',
|
|
72
75
|
nullable: true,
|
|
76
|
+
transformer: jsonTransformer,
|
|
73
77
|
comment:
|
|
74
78
|
'Información de tipo JSON donde se guarda la información legal de la empresa.',
|
|
75
79
|
})
|
|
76
|
-
legal_information:
|
|
80
|
+
legal_information: any
|
|
77
81
|
|
|
78
82
|
@Column({
|
|
79
83
|
type: 'longtext',
|
|
80
84
|
nullable: true,
|
|
85
|
+
transformer: jsonTransformer,
|
|
81
86
|
comment:
|
|
82
87
|
'Información de tipo JSON donde se guarda la información del representante legal del representante.',
|
|
83
88
|
})
|
|
84
|
-
legal_agent:
|
|
89
|
+
legal_agent: any
|
|
85
90
|
|
|
86
91
|
@ManyToOne(() => Plan, (plan) => plan.companies, {
|
|
87
92
|
onDelete: 'RESTRICT',
|
|
@@ -90,7 +95,11 @@ export class Company {
|
|
|
90
95
|
@JoinColumn({ name: 'plan' })
|
|
91
96
|
plan: Plan
|
|
92
97
|
|
|
93
|
-
@Column({
|
|
98
|
+
@Column({
|
|
99
|
+
type: 'datetime',
|
|
100
|
+
transformer: new DateTransformer(),
|
|
101
|
+
comment: 'Fecha creación de la empresa.',
|
|
102
|
+
})
|
|
94
103
|
created: Date
|
|
95
104
|
|
|
96
105
|
@Column({
|
|
@@ -102,6 +111,7 @@ export class Company {
|
|
|
102
111
|
|
|
103
112
|
@Column({
|
|
104
113
|
type: 'datetime',
|
|
114
|
+
transformer: new DateTransformer(),
|
|
105
115
|
comment: 'Fecha de actualización de la empresa.',
|
|
106
116
|
})
|
|
107
117
|
updated: Date
|
|
@@ -122,4 +122,13 @@ export class VerifyLocals {
|
|
|
122
122
|
|
|
123
123
|
@ViewColumn({ transformer: jsonTransformer })
|
|
124
124
|
partner_profile: any
|
|
125
|
+
|
|
126
|
+
@ViewColumn()
|
|
127
|
+
company_id: number
|
|
128
|
+
|
|
129
|
+
@ViewColumn()
|
|
130
|
+
company_name: string
|
|
131
|
+
|
|
132
|
+
@ViewColumn({ transformer: jsonTransformer })
|
|
133
|
+
company_profile: any
|
|
125
134
|
}
|