@uniorganization/uni-lib 1.1.75 → 1.1.77

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.
@@ -35,4 +35,5 @@ export declare class VwUserRoster {
35
35
  mainLine: string;
36
36
  employeeRole: string;
37
37
  productionDate: Date;
38
+ tapp2: string;
38
39
  }
@@ -157,6 +157,10 @@ __decorate([
157
157
  (0, typeorm_1.Column)({ name: 'production_date' }),
158
158
  __metadata("design:type", Date)
159
159
  ], VwUserRoster.prototype, "productionDate", void 0);
160
+ __decorate([
161
+ (0, typeorm_1.Column)({ name: 'tapp_2' }),
162
+ __metadata("design:type", String)
163
+ ], VwUserRoster.prototype, "tapp2", void 0);
160
164
  VwUserRoster = __decorate([
161
165
  (0, typeorm_1.ViewEntity)('raw_roster', { schema: 'nroster' })
162
166
  ], VwUserRoster);
@@ -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.75",
3
+ "version": "1.1.77",
4
4
  "description": "UNI Library",
5
5
  "author": "Jhomiguel",
6
6
  "main": "dist/index.js",