@asumano/worklip-typeorm-db 1.1.8 → 1.1.10
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.
- package/dist/entities/Associate.d.ts +1 -2
- package/dist/entities/Associate.js +0 -15
- package/dist/entities/AssociatePlatform.d.ts +1 -0
- package/dist/entities/AssociatePlatform.js +8 -0
- package/dist/entities/AssociateRole.d.ts +1 -2
- package/dist/entities/AssociateRole.js +0 -15
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { AssociateSession } from "./AssociateSession";
|
|
|
4
4
|
import { Workshop } from "./Workshop";
|
|
5
5
|
import { ServiceOrderHistory } from "./ServiceOrderHistory";
|
|
6
6
|
import { Reminder } from "./Reminder";
|
|
7
|
-
import { AssociatePermission
|
|
7
|
+
import { AssociatePermission } from "../entities.views.routes";
|
|
8
8
|
export declare class Associate {
|
|
9
9
|
id: number;
|
|
10
10
|
code: string;
|
|
@@ -27,6 +27,5 @@ export declare class Associate {
|
|
|
27
27
|
workshops_associated: Workshop[];
|
|
28
28
|
service_order_history: ServiceOrderHistory[];
|
|
29
29
|
reminders: Reminder[];
|
|
30
|
-
roles: AssociateRole[];
|
|
31
30
|
permissions: AssociatePermission[];
|
|
32
31
|
}
|
|
@@ -192,21 +192,6 @@ __decorate([
|
|
|
192
192
|
(0, typeorm_1.OneToMany)(() => Reminder_1.Reminder, (reminder) => reminder.associate),
|
|
193
193
|
__metadata("design:type", Array)
|
|
194
194
|
], Associate.prototype, "reminders", void 0);
|
|
195
|
-
__decorate([
|
|
196
|
-
(0, typeorm_1.ManyToMany)(() => entities_views_routes_1.AssociateRole, (role) => role.associates),
|
|
197
|
-
(0, typeorm_1.JoinTable)({
|
|
198
|
-
name: "associate_assigned_role",
|
|
199
|
-
joinColumn: {
|
|
200
|
-
name: "associate",
|
|
201
|
-
referencedColumnName: "id",
|
|
202
|
-
},
|
|
203
|
-
inverseJoinColumn: {
|
|
204
|
-
name: "role",
|
|
205
|
-
referencedColumnName: "id",
|
|
206
|
-
},
|
|
207
|
-
}),
|
|
208
|
-
__metadata("design:type", Array)
|
|
209
|
-
], Associate.prototype, "roles", void 0);
|
|
210
195
|
__decorate([
|
|
211
196
|
(0, typeorm_1.ManyToMany)(() => entities_views_routes_1.AssociatePermission, (permission) => permission.associates),
|
|
212
197
|
(0, typeorm_1.JoinTable)({
|
|
@@ -26,6 +26,14 @@ __decorate([
|
|
|
26
26
|
(0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre de la plataforma." }),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], AssociatePlatform.prototype, "name", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({
|
|
31
|
+
length: 50,
|
|
32
|
+
type: "varchar",
|
|
33
|
+
comment: "Nombre que se va a mostrar en el front.",
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], AssociatePlatform.prototype, "label", void 0);
|
|
29
37
|
__decorate([
|
|
30
38
|
(0, typeorm_1.Column)({
|
|
31
39
|
default: 1,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AssociatePermission, AssociatePlatform } from "../entities.views.routes";
|
|
2
2
|
export declare class AssociateRole {
|
|
3
3
|
id: number;
|
|
4
4
|
platform: AssociatePlatform;
|
|
5
5
|
name: string;
|
|
6
6
|
status: number;
|
|
7
7
|
permissions: AssociatePermission[];
|
|
8
|
-
associates: Associate[];
|
|
9
8
|
}
|
|
@@ -58,21 +58,6 @@ __decorate([
|
|
|
58
58
|
}),
|
|
59
59
|
__metadata("design:type", Array)
|
|
60
60
|
], AssociateRole.prototype, "permissions", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.ManyToMany)(() => entities_views_routes_1.Associate, (associate) => associate.roles),
|
|
63
|
-
(0, typeorm_1.JoinTable)({
|
|
64
|
-
name: "associate_assigned_role",
|
|
65
|
-
joinColumn: {
|
|
66
|
-
name: "role",
|
|
67
|
-
referencedColumnName: "id",
|
|
68
|
-
},
|
|
69
|
-
inverseJoinColumn: {
|
|
70
|
-
name: "associate",
|
|
71
|
-
referencedColumnName: "id",
|
|
72
|
-
},
|
|
73
|
-
}),
|
|
74
|
-
__metadata("design:type", Array)
|
|
75
|
-
], AssociateRole.prototype, "associates", void 0);
|
|
76
61
|
exports.AssociateRole = AssociateRole = __decorate([
|
|
77
62
|
(0, typeorm_1.Entity)({
|
|
78
63
|
comment: "Roles que van a tener los concesionarios/talleres.",
|