@asumano/worklip-typeorm-db 1.1.5 → 1.1.7

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.
@@ -14,7 +14,7 @@ export declare class Associate {
14
14
  surname: string;
15
15
  email: string;
16
16
  phone: string;
17
- city: City;
17
+ city: City | null;
18
18
  address: string | null;
19
19
  password: string;
20
20
  details: any | null;
@@ -88,9 +88,10 @@ __decorate([
88
88
  (0, typeorm_1.ManyToOne)(() => City_1.City, (city) => city.associates, {
89
89
  onDelete: "RESTRICT",
90
90
  onUpdate: "NO ACTION",
91
+ nullable: true,
91
92
  }),
92
93
  (0, typeorm_1.JoinColumn)({ name: "city" }),
93
- __metadata("design:type", City_1.City)
94
+ __metadata("design:type", Object)
94
95
  ], Associate.prototype, "city", void 0);
95
96
  __decorate([
96
97
  (0, typeorm_1.Column)({
@@ -3,6 +3,8 @@ export declare class AssociatePermission {
3
3
  id: number;
4
4
  section: AssociateSection;
5
5
  name: string;
6
+ label: string;
7
+ icon: string;
6
8
  status: number;
7
9
  roles: AssociateRole[];
8
10
  associates: Associate[];
@@ -34,6 +34,22 @@ __decorate([
34
34
  (0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre del permiso." }),
35
35
  __metadata("design:type", String)
36
36
  ], AssociatePermission.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({
39
+ length: 100,
40
+ type: "varchar",
41
+ comment: "Nombre que se va a mostrar en la página.",
42
+ }),
43
+ __metadata("design:type", String)
44
+ ], AssociatePermission.prototype, "label", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({
47
+ length: 30,
48
+ type: "varchar",
49
+ comment: "Icono que se va a mostrar en la página.",
50
+ }),
51
+ __metadata("design:type", String)
52
+ ], AssociatePermission.prototype, "icon", void 0);
37
53
  __decorate([
38
54
  (0, typeorm_1.Column)({
39
55
  default: 1,
@@ -2,6 +2,8 @@ import { AssociatePermission, AssociatePlatform } from "../entities.views.routes
2
2
  export declare class AssociateSection {
3
3
  id: number;
4
4
  name: string;
5
+ label: string;
6
+ icon: string;
5
7
  status: number;
6
8
  platforms: AssociatePlatform[];
7
9
  permissions: AssociatePermission[];
@@ -26,6 +26,14 @@ __decorate([
26
26
  (0, typeorm_1.Column)({ length: 50, type: "varchar", comment: "Nombre de la sección." }),
27
27
  __metadata("design:type", String)
28
28
  ], AssociateSection.prototype, "name", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ length: 100, type: "varchar", comment: "Nombre que se va a mostrar en la página." }),
31
+ __metadata("design:type", String)
32
+ ], AssociateSection.prototype, "label", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ length: 30, type: "varchar", comment: "Icono que se va a mostrar en la página." }),
35
+ __metadata("design:type", String)
36
+ ], AssociateSection.prototype, "icon", void 0);
29
37
  __decorate([
30
38
  (0, typeorm_1.Column)({
31
39
  default: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asumano/worklip-typeorm-db",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "publishConfig": {
5
5
  "access": "restricted"
6
6
  },