@uniorganization/uni-lib 2.0.8 → 2.0.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/index.d.ts
CHANGED
package/dist/entities/index.js
CHANGED
|
@@ -91,3 +91,4 @@ __exportStar(require("./enr-inventory.entity"), exports);
|
|
|
91
91
|
__exportStar(require("./claim-report.entity"), exports);
|
|
92
92
|
__exportStar(require("./p1-service-center.entity"), exports);
|
|
93
93
|
__exportStar(require("./p1-service-network.entity"), exports);
|
|
94
|
+
__exportStar(require("./raw_roster.entity"), exports);
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Users } from './usr.entity';
|
|
2
|
+
export declare class RawRoster {
|
|
3
|
+
employeeId: string;
|
|
4
|
+
rowIndex?: number;
|
|
5
|
+
internalId?: number;
|
|
6
|
+
phoneLogin?: string;
|
|
7
|
+
verintSkill?: string;
|
|
8
|
+
firstLevelId?: string;
|
|
9
|
+
firstLevelName?: string;
|
|
10
|
+
secondLevelId?: string;
|
|
11
|
+
secondLevelName?: string;
|
|
12
|
+
thirdLevelId?: string;
|
|
13
|
+
thirdLevelName?: string;
|
|
14
|
+
startDate?: string;
|
|
15
|
+
endDate?: string;
|
|
16
|
+
jobTitle?: string;
|
|
17
|
+
verintUsername?: string;
|
|
18
|
+
tdUser?: string;
|
|
19
|
+
lmsClient?: string;
|
|
20
|
+
lmsNt?: string;
|
|
21
|
+
productionDate?: string;
|
|
22
|
+
gcicId?: string;
|
|
23
|
+
ern?: string;
|
|
24
|
+
trainerId?: string;
|
|
25
|
+
trainerName?: string;
|
|
26
|
+
trainingClass?: string;
|
|
27
|
+
emailId?: string;
|
|
28
|
+
smsId?: string;
|
|
29
|
+
lmsId?: string;
|
|
30
|
+
p1User?: string;
|
|
31
|
+
qaId?: string;
|
|
32
|
+
qaName?: string;
|
|
33
|
+
rowDate?: string;
|
|
34
|
+
employeeStatus?: string;
|
|
35
|
+
updatedBy?: string;
|
|
36
|
+
updatedDate?: string;
|
|
37
|
+
fullName?: string;
|
|
38
|
+
company?: string;
|
|
39
|
+
teamsUsername?: string;
|
|
40
|
+
mimecastId?: string;
|
|
41
|
+
revoId?: string;
|
|
42
|
+
phoenixId?: string;
|
|
43
|
+
five9Id?: string;
|
|
44
|
+
communityWfmId?: string;
|
|
45
|
+
division?: string;
|
|
46
|
+
mainLine?: string;
|
|
47
|
+
lob?: string;
|
|
48
|
+
employeeRole?: string;
|
|
49
|
+
sector?: string;
|
|
50
|
+
sprinklrId?: string;
|
|
51
|
+
user: Users;
|
|
52
|
+
}
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RawRoster = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const usr_entity_1 = require("./usr.entity");
|
|
15
|
+
let RawRoster = class RawRoster {
|
|
16
|
+
};
|
|
17
|
+
exports.RawRoster = RawRoster;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'employee_id' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], RawRoster.prototype, "employeeId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ name: 'row_index', type: 'integer', nullable: true }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], RawRoster.prototype, "rowIndex", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ name: 'internal_id', type: 'integer', nullable: true }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], RawRoster.prototype, "internalId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ name: 'phone_login', type: 'text', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], RawRoster.prototype, "phoneLogin", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'verint_skill', type: 'text', nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], RawRoster.prototype, "verintSkill", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'first_level_id', type: 'text', nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], RawRoster.prototype, "firstLevelId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ name: 'first_level_name', type: 'text', nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], RawRoster.prototype, "firstLevelName", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ name: 'second_level_id', type: 'text', nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], RawRoster.prototype, "secondLevelId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'second_level_name', type: 'text', nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], RawRoster.prototype, "secondLevelName", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ name: 'third_level_id', type: 'text', nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], RawRoster.prototype, "thirdLevelId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ name: 'third_level_name', type: 'text', nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], RawRoster.prototype, "thirdLevelName", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ name: 'start_date', type: 'text', nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], RawRoster.prototype, "startDate", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ name: 'end_date', type: 'text', nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], RawRoster.prototype, "endDate", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ name: 'job_title', type: 'text', nullable: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], RawRoster.prototype, "jobTitle", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ name: 'verint_username', type: 'text', nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], RawRoster.prototype, "verintUsername", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ name: 'td_user', type: 'text', nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], RawRoster.prototype, "tdUser", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ name: 'lms_client', type: 'text', nullable: true }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], RawRoster.prototype, "lmsClient", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ name: 'lms_nt', type: 'text', nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], RawRoster.prototype, "lmsNt", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ name: 'production_date', type: 'text', nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], RawRoster.prototype, "productionDate", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ name: 'gcic_id', type: 'text', nullable: true }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], RawRoster.prototype, "gcicId", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ name: 'ern', type: 'text', nullable: true }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], RawRoster.prototype, "ern", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ name: 'trainer_id', type: 'text', nullable: true }),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], RawRoster.prototype, "trainerId", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ name: 'trainer_name', type: 'text', nullable: true }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], RawRoster.prototype, "trainerName", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ name: 'training_class', type: 'text', nullable: true }),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], RawRoster.prototype, "trainingClass", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ name: 'email_id', type: 'text', nullable: true }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], RawRoster.prototype, "emailId", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ name: 'sms_id', type: 'text', nullable: true }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], RawRoster.prototype, "smsId", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ name: 'lms_id', type: 'text', nullable: true }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], RawRoster.prototype, "lmsId", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ name: 'p1_user', type: 'text', nullable: true }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], RawRoster.prototype, "p1User", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ name: 'qa_id', type: 'text', nullable: true }),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], RawRoster.prototype, "qaId", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ name: 'qa_name', type: 'text', nullable: true }),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], RawRoster.prototype, "qaName", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ name: 'row_date', type: 'text', nullable: true }),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], RawRoster.prototype, "rowDate", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ name: 'employee_status', type: 'text', nullable: true }),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], RawRoster.prototype, "employeeStatus", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)({ name: 'updated_by', type: 'text', nullable: true }),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], RawRoster.prototype, "updatedBy", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typeorm_1.Column)({ name: 'updated_date', type: 'text', nullable: true }),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], RawRoster.prototype, "updatedDate", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, typeorm_1.Column)({ name: 'full_name', type: 'text', nullable: true }),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], RawRoster.prototype, "fullName", void 0);
|
|
158
|
+
__decorate([
|
|
159
|
+
(0, typeorm_1.Column)({ name: 'company', type: 'text', nullable: true }),
|
|
160
|
+
__metadata("design:type", String)
|
|
161
|
+
], RawRoster.prototype, "company", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
(0, typeorm_1.Column)({ name: 'teams_username', type: 'text', nullable: true }),
|
|
164
|
+
__metadata("design:type", String)
|
|
165
|
+
], RawRoster.prototype, "teamsUsername", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
(0, typeorm_1.Column)({ name: 'mimecast_id', type: 'text', nullable: true }),
|
|
168
|
+
__metadata("design:type", String)
|
|
169
|
+
], RawRoster.prototype, "mimecastId", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, typeorm_1.Column)({ name: 'revo_id', type: 'text', nullable: true }),
|
|
172
|
+
__metadata("design:type", String)
|
|
173
|
+
], RawRoster.prototype, "revoId", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
(0, typeorm_1.Column)({ name: 'phoenix_id', type: 'text', nullable: true }),
|
|
176
|
+
__metadata("design:type", String)
|
|
177
|
+
], RawRoster.prototype, "phoenixId", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, typeorm_1.Column)({ name: 'five9_id', type: 'text', nullable: true }),
|
|
180
|
+
__metadata("design:type", String)
|
|
181
|
+
], RawRoster.prototype, "five9Id", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, typeorm_1.Column)({ name: 'community_wfm_id', type: 'text', nullable: true }),
|
|
184
|
+
__metadata("design:type", String)
|
|
185
|
+
], RawRoster.prototype, "communityWfmId", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, typeorm_1.Column)({ name: 'division', type: 'text', nullable: true }),
|
|
188
|
+
__metadata("design:type", String)
|
|
189
|
+
], RawRoster.prototype, "division", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, typeorm_1.Column)({ name: 'main_line', type: 'text', nullable: true }),
|
|
192
|
+
__metadata("design:type", String)
|
|
193
|
+
], RawRoster.prototype, "mainLine", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, typeorm_1.Column)({ name: 'lob', type: 'text', nullable: true }),
|
|
196
|
+
__metadata("design:type", String)
|
|
197
|
+
], RawRoster.prototype, "lob", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, typeorm_1.Column)({ name: 'employee_role', type: 'text', nullable: true }),
|
|
200
|
+
__metadata("design:type", String)
|
|
201
|
+
], RawRoster.prototype, "employeeRole", void 0);
|
|
202
|
+
__decorate([
|
|
203
|
+
(0, typeorm_1.Column)({ name: 'sector', type: 'text', nullable: true }),
|
|
204
|
+
__metadata("design:type", String)
|
|
205
|
+
], RawRoster.prototype, "sector", void 0);
|
|
206
|
+
__decorate([
|
|
207
|
+
(0, typeorm_1.Column)({ name: 'sprinklr_id', type: 'text', nullable: true }),
|
|
208
|
+
__metadata("design:type", String)
|
|
209
|
+
], RawRoster.prototype, "sprinklrId", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, typeorm_1.OneToOne)(() => usr_entity_1.Users, (user) => user.rawRoster),
|
|
212
|
+
(0, typeorm_1.JoinColumn)({ name: 'employee_id', referencedColumnName: 'ntgid' }),
|
|
213
|
+
__metadata("design:type", usr_entity_1.Users)
|
|
214
|
+
], RawRoster.prototype, "user", void 0);
|
|
215
|
+
exports.RawRoster = RawRoster = __decorate([
|
|
216
|
+
(0, typeorm_1.Entity)('raw_roster', { schema: 'stm' })
|
|
217
|
+
], RawRoster);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Timestamp } from 'typeorm';
|
|
2
2
|
import { UserCampaign } from './user-campaign.entity';
|
|
3
3
|
import { UserRoles } from './user-roles.entity';
|
|
4
|
+
import { RawRoster } from './raw_roster.entity';
|
|
4
5
|
export declare class Users {
|
|
5
6
|
id: number;
|
|
6
7
|
username: string;
|
|
@@ -22,6 +23,7 @@ export declare class Users {
|
|
|
22
23
|
userRoles: UserRoles[];
|
|
23
24
|
reportsTo: Users;
|
|
24
25
|
userCampaigns: UserCampaign[];
|
|
26
|
+
rawRoster: RawRoster;
|
|
25
27
|
fullName: string;
|
|
26
28
|
calculateFullName(): void;
|
|
27
29
|
}
|
|
@@ -13,6 +13,7 @@ exports.Users = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const user_campaign_entity_1 = require("./user-campaign.entity");
|
|
15
15
|
const user_roles_entity_1 = require("./user-roles.entity");
|
|
16
|
+
const raw_roster_entity_1 = require("./raw_roster.entity");
|
|
16
17
|
let Users = class Users {
|
|
17
18
|
calculateFullName() {
|
|
18
19
|
this.fullName = `${this.first_name} ${this.last_name}`;
|
|
@@ -105,6 +106,10 @@ __decorate([
|
|
|
105
106
|
}),
|
|
106
107
|
__metadata("design:type", Array)
|
|
107
108
|
], Users.prototype, "userCampaigns", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.OneToOne)(() => raw_roster_entity_1.RawRoster, (rawRoster) => rawRoster.user),
|
|
111
|
+
__metadata("design:type", raw_roster_entity_1.RawRoster)
|
|
112
|
+
], Users.prototype, "rawRoster", void 0);
|
|
108
113
|
__decorate([
|
|
109
114
|
(0, typeorm_1.AfterLoad)(),
|
|
110
115
|
__metadata("design:type", Function),
|