@uniorganization/uni-lib 1.1.74 → 1.1.76

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.
@@ -7,5 +7,6 @@ export declare class UserCampaign {
7
7
  user: Users;
8
8
  form: Form;
9
9
  ticketQueue: TicketQueue;
10
+ formType: string;
10
11
  ticketCount: number;
11
12
  }
@@ -39,6 +39,10 @@ __decorate([
39
39
  (0, typeorm_1.JoinColumn)({ name: 'queue_id' }),
40
40
  __metadata("design:type", ticket_queue_entity_1.TicketQueue)
41
41
  ], UserCampaign.prototype, "ticketQueue", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.Column)({ name: 'form_type' }),
44
+ __metadata("design:type", String)
45
+ ], UserCampaign.prototype, "formType", void 0);
42
46
  UserCampaign = __decorate([
43
47
  (0, typeorm_1.Entity)({ name: 'user_campaign', schema: 'tracking' })
44
48
  ], UserCampaign);
@@ -21,4 +21,6 @@ export declare class Users {
21
21
  userRoles: UserRoles[];
22
22
  reportsTo: Users;
23
23
  userCampaigns: UserCampaign[];
24
+ fullName: string;
25
+ calculateFullName(): void;
24
26
  }
@@ -15,6 +15,9 @@ const typeorm_1 = require("typeorm");
15
15
  const user_campaign_entity_1 = require("./user-campaign.entity");
16
16
  const user_roles_entity_1 = require("./user-roles.entity");
17
17
  let Users = Users_1 = class Users {
18
+ calculateFullName() {
19
+ this.fullName = `${this.first_name} ${this.last_name}`;
20
+ }
18
21
  };
19
22
  __decorate([
20
23
  (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'ID' }),
@@ -98,6 +101,12 @@ __decorate([
98
101
  }),
99
102
  __metadata("design:type", Array)
100
103
  ], Users.prototype, "userCampaigns", void 0);
104
+ __decorate([
105
+ (0, typeorm_1.AfterLoad)(),
106
+ __metadata("design:type", Function),
107
+ __metadata("design:paramtypes", []),
108
+ __metadata("design:returntype", void 0)
109
+ ], Users.prototype, "calculateFullName", null);
101
110
  Users = Users_1 = __decorate([
102
111
  (0, typeorm_1.Entity)('USERS')
103
112
  ], Users);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniorganization/uni-lib",
3
- "version": "1.1.74",
3
+ "version": "1.1.76",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",