@uniorganization/uni-lib 4.0.27 → 4.0.29
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/daily-payment.entity.d.ts +58 -0
- package/dist/entities/daily-payment.entity.js +248 -0
- package/dist/entities/index.d.ts +2 -0
- package/dist/entities/index.js +2 -0
- package/dist/entities/service-center-interaction.entity.d.ts +3 -34
- package/dist/entities/service-center-interaction.entity.js +7 -136
- package/dist/entities/service-center-ranking.entity.d.ts +7 -0
- package/dist/entities/service-center-ranking.entity.js +36 -0
- package/dist/entities/service-center.entity.d.ts +3 -0
- package/dist/entities/service-center.entity.js +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Transactions } from './transactions.entity';
|
|
2
|
+
export declare class DailyPayment {
|
|
3
|
+
transactionId: string;
|
|
4
|
+
rowDate: Date;
|
|
5
|
+
rowSource: string;
|
|
6
|
+
rnnNumber: string;
|
|
7
|
+
sourceType: string;
|
|
8
|
+
customerNo: string;
|
|
9
|
+
cnnNumber: string;
|
|
10
|
+
symptom: string;
|
|
11
|
+
subSymptom: string;
|
|
12
|
+
createdBy: string;
|
|
13
|
+
receiptUserName: string;
|
|
14
|
+
partsUseFlag: string;
|
|
15
|
+
svcCenterType: string;
|
|
16
|
+
repairReceiptTimestamp: Date;
|
|
17
|
+
model: string;
|
|
18
|
+
serialNo: string;
|
|
19
|
+
state: string;
|
|
20
|
+
zipCode: string;
|
|
21
|
+
callStatus: string;
|
|
22
|
+
product: string;
|
|
23
|
+
receiptRemark: string;
|
|
24
|
+
dateScheduled: Date;
|
|
25
|
+
ascCode: string;
|
|
26
|
+
svcEngineerName: string;
|
|
27
|
+
callSubstatus: string;
|
|
28
|
+
updatedOn: Date;
|
|
29
|
+
daysSinceLastStatusUpdate: string;
|
|
30
|
+
svcContKey: string;
|
|
31
|
+
callEndDate: Date;
|
|
32
|
+
tappTicketStatus: string;
|
|
33
|
+
tappSubStatus: string;
|
|
34
|
+
tappTrackingResult: string;
|
|
35
|
+
tappApptScheduleDateOrCompletionDate: Date;
|
|
36
|
+
tappStatusEndedDate: Date;
|
|
37
|
+
statusEndedDate: Date;
|
|
38
|
+
agreedPrice: string;
|
|
39
|
+
serviceCenter: string;
|
|
40
|
+
orderDate: Date;
|
|
41
|
+
orderStatusName: string;
|
|
42
|
+
actualShipmentDate: Date;
|
|
43
|
+
trackingNo: string;
|
|
44
|
+
eta: Date;
|
|
45
|
+
backOrderHold: string;
|
|
46
|
+
backOrderRelease: string;
|
|
47
|
+
postingDate: Date;
|
|
48
|
+
tat: string;
|
|
49
|
+
repairTat: string;
|
|
50
|
+
schWithin: string;
|
|
51
|
+
svcType: string;
|
|
52
|
+
partsAging: string;
|
|
53
|
+
primaryRepairCode: string;
|
|
54
|
+
vocNo: string;
|
|
55
|
+
workInfoSkill: string;
|
|
56
|
+
rmaNo: string;
|
|
57
|
+
transaction: Transactions;
|
|
58
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
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.DailyPayment = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const transactions_entity_1 = require("./transactions.entity");
|
|
15
|
+
let DailyPayment = class DailyPayment {
|
|
16
|
+
};
|
|
17
|
+
exports.DailyPayment = DailyPayment;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'transaction_id' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], DailyPayment.prototype, "transactionId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'row_date', type: 'date' }),
|
|
24
|
+
__metadata("design:type", Date)
|
|
25
|
+
], DailyPayment.prototype, "rowDate", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'row_source' }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DailyPayment.prototype, "rowSource", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'rnn_number' }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], DailyPayment.prototype, "rnnNumber", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'source_type', nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], DailyPayment.prototype, "sourceType", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'customer_no', nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], DailyPayment.prototype, "customerNo", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ name: 'cnn_number', nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], DailyPayment.prototype, "cnnNumber", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], DailyPayment.prototype, "symptom", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'sub_symptom', nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], DailyPayment.prototype, "subSymptom", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ name: 'created_by', nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], DailyPayment.prototype, "createdBy", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ name: 'receipt_user_name', nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], DailyPayment.prototype, "receiptUserName", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ name: 'parts_use_flag', nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], DailyPayment.prototype, "partsUseFlag", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ name: 'svc_center_type', nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], DailyPayment.prototype, "svcCenterType", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)('timestamp', { name: 'repair_receipt_timestamp', nullable: true }),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], DailyPayment.prototype, "repairReceiptTimestamp", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], DailyPayment.prototype, "model", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ name: 'serial_no', nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], DailyPayment.prototype, "serialNo", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], DailyPayment.prototype, "state", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ name: 'zip_code', nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], DailyPayment.prototype, "zipCode", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ name: 'call_status', nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], DailyPayment.prototype, "callStatus", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], DailyPayment.prototype, "product", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ name: 'receipt_remark', nullable: true }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], DailyPayment.prototype, "receiptRemark", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)('date', { name: 'date_scheduled', nullable: true }),
|
|
104
|
+
__metadata("design:type", Date)
|
|
105
|
+
], DailyPayment.prototype, "dateScheduled", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ name: 'asc_code', nullable: true }),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], DailyPayment.prototype, "ascCode", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ name: 'svc_engineer_name', nullable: true }),
|
|
112
|
+
__metadata("design:type", String)
|
|
113
|
+
], DailyPayment.prototype, "svcEngineerName", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ name: 'call_substatus', nullable: true }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], DailyPayment.prototype, "callSubstatus", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)('timestamp', { name: 'updated_on', nullable: true }),
|
|
120
|
+
__metadata("design:type", Date)
|
|
121
|
+
], DailyPayment.prototype, "updatedOn", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ name: 'days_since_last_status_update', nullable: true }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], DailyPayment.prototype, "daysSinceLastStatusUpdate", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ name: 'svc_cont_key', nullable: true }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], DailyPayment.prototype, "svcContKey", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)('date', { name: 'call_end_date', nullable: true }),
|
|
132
|
+
__metadata("design:type", Date)
|
|
133
|
+
], DailyPayment.prototype, "callEndDate", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ name: 'tapp_ticket_status', nullable: true }),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], DailyPayment.prototype, "tappTicketStatus", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ name: 'tapp_sub_status', nullable: true }),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], DailyPayment.prototype, "tappSubStatus", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ name: 'tapp_tracking_result', nullable: true }),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], DailyPayment.prototype, "tappTrackingResult", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)('date', {
|
|
148
|
+
name: 'tapp_appt_schedule_date_or_completion_date',
|
|
149
|
+
nullable: true,
|
|
150
|
+
}),
|
|
151
|
+
__metadata("design:type", Date)
|
|
152
|
+
], DailyPayment.prototype, "tappApptScheduleDateOrCompletionDate", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.Column)('timestamp', { name: 'tapp_status_ended_date', nullable: true }),
|
|
155
|
+
__metadata("design:type", Date)
|
|
156
|
+
], DailyPayment.prototype, "tappStatusEndedDate", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.Column)('timestamp', { name: 'status_ended_date', nullable: true }),
|
|
159
|
+
__metadata("design:type", Date)
|
|
160
|
+
], DailyPayment.prototype, "statusEndedDate", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.Column)({ name: 'agreed_price', nullable: true }),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], DailyPayment.prototype, "agreedPrice", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, typeorm_1.Column)({ name: 'service_center', nullable: true }),
|
|
167
|
+
__metadata("design:type", String)
|
|
168
|
+
], DailyPayment.prototype, "serviceCenter", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, typeorm_1.Column)('date', { name: 'order_date', nullable: true }),
|
|
171
|
+
__metadata("design:type", Date)
|
|
172
|
+
], DailyPayment.prototype, "orderDate", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, typeorm_1.Column)({ name: 'order_status_name', nullable: true }),
|
|
175
|
+
__metadata("design:type", String)
|
|
176
|
+
], DailyPayment.prototype, "orderStatusName", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.Column)('date', { name: 'actual_shipment_date', nullable: true }),
|
|
179
|
+
__metadata("design:type", Date)
|
|
180
|
+
], DailyPayment.prototype, "actualShipmentDate", void 0);
|
|
181
|
+
__decorate([
|
|
182
|
+
(0, typeorm_1.Column)({ name: 'tracking_no', nullable: true }),
|
|
183
|
+
__metadata("design:type", String)
|
|
184
|
+
], DailyPayment.prototype, "trackingNo", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, typeorm_1.Column)('date', { name: 'eta', nullable: true }),
|
|
187
|
+
__metadata("design:type", Date)
|
|
188
|
+
], DailyPayment.prototype, "eta", void 0);
|
|
189
|
+
__decorate([
|
|
190
|
+
(0, typeorm_1.Column)({ name: 'back_order_hold', nullable: true }),
|
|
191
|
+
__metadata("design:type", String)
|
|
192
|
+
], DailyPayment.prototype, "backOrderHold", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, typeorm_1.Column)({ name: 'back_order_release', nullable: true }),
|
|
195
|
+
__metadata("design:type", String)
|
|
196
|
+
], DailyPayment.prototype, "backOrderRelease", void 0);
|
|
197
|
+
__decorate([
|
|
198
|
+
(0, typeorm_1.Column)('date', { name: 'posting_date', nullable: true }),
|
|
199
|
+
__metadata("design:type", Date)
|
|
200
|
+
], DailyPayment.prototype, "postingDate", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
203
|
+
__metadata("design:type", String)
|
|
204
|
+
], DailyPayment.prototype, "tat", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, typeorm_1.Column)({ name: 'repair_tat', nullable: true }),
|
|
207
|
+
__metadata("design:type", String)
|
|
208
|
+
], DailyPayment.prototype, "repairTat", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, typeorm_1.Column)({ name: 'sch_within', nullable: true }),
|
|
211
|
+
__metadata("design:type", String)
|
|
212
|
+
], DailyPayment.prototype, "schWithin", void 0);
|
|
213
|
+
__decorate([
|
|
214
|
+
(0, typeorm_1.Column)({ name: 'svc_type', nullable: true }),
|
|
215
|
+
__metadata("design:type", String)
|
|
216
|
+
], DailyPayment.prototype, "svcType", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, typeorm_1.Column)({ name: 'parts_aging', nullable: true }),
|
|
219
|
+
__metadata("design:type", String)
|
|
220
|
+
], DailyPayment.prototype, "partsAging", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, typeorm_1.Column)({ name: 'primary_repair_code', nullable: true }),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], DailyPayment.prototype, "primaryRepairCode", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, typeorm_1.Column)({ name: 'voc_no', nullable: true }),
|
|
227
|
+
__metadata("design:type", String)
|
|
228
|
+
], DailyPayment.prototype, "vocNo", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, typeorm_1.Column)({ name: 'work_info_skill', nullable: true }),
|
|
231
|
+
__metadata("design:type", String)
|
|
232
|
+
], DailyPayment.prototype, "workInfoSkill", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, typeorm_1.Column)({ name: 'rma_no', nullable: true }),
|
|
235
|
+
__metadata("design:type", String)
|
|
236
|
+
], DailyPayment.prototype, "rmaNo", void 0);
|
|
237
|
+
__decorate([
|
|
238
|
+
(0, typeorm_1.ManyToOne)(() => transactions_entity_1.Transactions, { nullable: true }),
|
|
239
|
+
(0, typeorm_1.JoinColumn)({
|
|
240
|
+
name: 'transaction_id',
|
|
241
|
+
referencedColumnName: 'transactionId',
|
|
242
|
+
}),
|
|
243
|
+
__metadata("design:type", transactions_entity_1.Transactions)
|
|
244
|
+
], DailyPayment.prototype, "transaction", void 0);
|
|
245
|
+
exports.DailyPayment = DailyPayment = __decorate([
|
|
246
|
+
(0, typeorm_1.Entity)('daily_payments', { schema: 'lgai' }),
|
|
247
|
+
(0, typeorm_1.Index)(['transactionId', 'rowDate'])
|
|
248
|
+
], DailyPayment);
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -68,6 +68,7 @@ export * from './pending-ticket-history.entity';
|
|
|
68
68
|
export * from './dispute-request.entity';
|
|
69
69
|
export * from './sap-raw.entity';
|
|
70
70
|
export * from './active-loads.entity';
|
|
71
|
+
export * from './daily-payment.entity';
|
|
71
72
|
export * from './daily-payment-status.entity';
|
|
72
73
|
export * from './skipped-ticket.entity';
|
|
73
74
|
export * from './user-roster.view';
|
|
@@ -79,6 +80,7 @@ export * from './raw_roster.entity';
|
|
|
79
80
|
export * from './bp-alerts.entity';
|
|
80
81
|
export * from './feedback.entity';
|
|
81
82
|
export * from './service-center.entity';
|
|
83
|
+
export * from './service-center-ranking.entity';
|
|
82
84
|
export * from './service-center-interaction.entity';
|
|
83
85
|
export * from './service-center-review.entity';
|
|
84
86
|
export * from './service-center-phone.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -84,6 +84,7 @@ __exportStar(require("./pending-ticket-history.entity"), exports);
|
|
|
84
84
|
__exportStar(require("./dispute-request.entity"), exports);
|
|
85
85
|
__exportStar(require("./sap-raw.entity"), exports);
|
|
86
86
|
__exportStar(require("./active-loads.entity"), exports);
|
|
87
|
+
__exportStar(require("./daily-payment.entity"), exports);
|
|
87
88
|
__exportStar(require("./daily-payment-status.entity"), exports);
|
|
88
89
|
__exportStar(require("./skipped-ticket.entity"), exports);
|
|
89
90
|
__exportStar(require("./user-roster.view"), exports);
|
|
@@ -95,6 +96,7 @@ __exportStar(require("./raw_roster.entity"), exports);
|
|
|
95
96
|
__exportStar(require("./bp-alerts.entity"), exports);
|
|
96
97
|
__exportStar(require("./feedback.entity"), exports);
|
|
97
98
|
__exportStar(require("./service-center.entity"), exports);
|
|
99
|
+
__exportStar(require("./service-center-ranking.entity"), exports);
|
|
98
100
|
__exportStar(require("./service-center-interaction.entity"), exports);
|
|
99
101
|
__exportStar(require("./service-center-review.entity"), exports);
|
|
100
102
|
__exportStar(require("./service-center-phone.entity"), exports);
|
|
@@ -1,45 +1,14 @@
|
|
|
1
|
-
import { Point } from 'geojson';
|
|
2
1
|
import { CallDriverData } from './call-driver-data.entity';
|
|
2
|
+
import { ServiceCenterEntity } from './service-center.entity';
|
|
3
3
|
import { Users } from './usr.entity';
|
|
4
4
|
import { ServiceCenterGeocodeCacheEntity } from './service-center-geocode-cache.entity';
|
|
5
5
|
export declare class ServiceCenterInteractionEntity {
|
|
6
6
|
id: number;
|
|
7
7
|
callDriverData: CallDriverData;
|
|
8
8
|
callDriverDataId: number;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
serviceCenterUseFlag: string;
|
|
12
|
-
serviceCenterServicerName: string;
|
|
13
|
-
serviceCenterContact: string;
|
|
14
|
-
serviceCenterAddress: string;
|
|
15
|
-
serviceCenterCity: string;
|
|
16
|
-
serviceCenterCounty: string;
|
|
17
|
-
serviceCenterState: string;
|
|
18
|
-
serviceCenterZipCode: string;
|
|
19
|
-
serviceCenterCountry: string;
|
|
20
|
-
serviceCenterServicerType: string;
|
|
21
|
-
serviceCenterFax: string;
|
|
22
|
-
serviceCenterEmail: string;
|
|
23
|
-
serviceCenterLgScore: number;
|
|
24
|
-
serviceCenterProfileIndicator: string;
|
|
25
|
-
serviceCenterStatus: string;
|
|
26
|
-
serviceCenterEligible: boolean;
|
|
27
|
-
serviceCenterLocatingFlag: boolean;
|
|
28
|
-
serviceCenterAutoAcceptanceFlag: boolean;
|
|
29
|
-
serviceCenterPartsManagementProgramFlag: boolean;
|
|
30
|
-
serviceCenterZipcodeCoverage: boolean;
|
|
31
|
-
serviceCenterBrandCoverage: boolean;
|
|
32
|
-
serviceCenterProductCoverage: boolean;
|
|
33
|
-
serviceCenterOverwriteCutOffTime: string;
|
|
34
|
-
serviceCenterExcludeServicerFromEmail: boolean;
|
|
35
|
-
serviceCenterNotesNotificationEmail: string;
|
|
36
|
-
serviceCenterClassification: string;
|
|
37
|
-
serviceCenterIsAuthorized: boolean;
|
|
38
|
-
serviceCenterOverallReviewScore: number;
|
|
39
|
-
serviceCenterTotalReviews: number;
|
|
40
|
-
serviceCenterPhonesCsv: string;
|
|
9
|
+
serviceCenter: ServiceCenterEntity;
|
|
10
|
+
serviceCenterId: number;
|
|
41
11
|
clientAddress: string;
|
|
42
|
-
serviceCenterGeolocation: Point;
|
|
43
12
|
agent: Users;
|
|
44
13
|
agentId: number;
|
|
45
14
|
distance: number;
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ServiceCenterInteractionEntity = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const call_driver_data_entity_1 = require("./call-driver-data.entity");
|
|
15
|
+
const service_center_entity_1 = require("./service-center.entity");
|
|
15
16
|
const usr_entity_1 = require("./usr.entity");
|
|
16
17
|
const service_center_geocode_cache_entity_1 = require("./service-center-geocode-cache.entity");
|
|
17
18
|
let ServiceCenterInteractionEntity = class ServiceCenterInteractionEntity {
|
|
@@ -31,148 +32,18 @@ __decorate([
|
|
|
31
32
|
__metadata("design:type", Number)
|
|
32
33
|
], ServiceCenterInteractionEntity.prototype, "callDriverDataId", void 0);
|
|
33
34
|
__decorate([
|
|
34
|
-
(0, typeorm_1.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
(0, typeorm_1.Column)({ name: 'service_center_system', type: 'varchar', nullable: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterSystem", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, typeorm_1.Column)({ name: 'service_center_use_flag', type: 'varchar', nullable: true }),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterUseFlag", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, typeorm_1.Column)({ name: 'service_center_servicer_name', type: 'varchar', nullable: true }),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterServicerName", void 0);
|
|
49
|
-
__decorate([
|
|
50
|
-
(0, typeorm_1.Column)({ name: 'service_center_contact', type: 'varchar', nullable: true }),
|
|
51
|
-
__metadata("design:type", String)
|
|
52
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterContact", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.Column)({ name: 'service_center_address', type: 'varchar', nullable: true }),
|
|
55
|
-
__metadata("design:type", String)
|
|
56
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterAddress", void 0);
|
|
57
|
-
__decorate([
|
|
58
|
-
(0, typeorm_1.Column)({ name: 'service_center_city', type: 'varchar', nullable: true }),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterCity", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, typeorm_1.Column)({ name: 'service_center_county', type: 'varchar', nullable: true }),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterCounty", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, typeorm_1.Column)({ name: 'service_center_state', type: 'varchar', nullable: true }),
|
|
67
|
-
__metadata("design:type", String)
|
|
68
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterState", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ name: 'service_center_zip_code', type: 'varchar', nullable: true }),
|
|
71
|
-
__metadata("design:type", String)
|
|
72
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterZipCode", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.Column)({ name: 'service_center_country', type: 'varchar', nullable: true }),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterCountry", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, typeorm_1.Column)({ name: 'service_center_servicer_type', type: 'varchar', nullable: true }),
|
|
79
|
-
__metadata("design:type", String)
|
|
80
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterServicerType", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, typeorm_1.Column)({ name: 'service_center_fax', type: 'varchar', nullable: true }),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterFax", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, typeorm_1.Column)({ name: 'service_center_email', type: 'varchar', nullable: true }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterEmail", void 0);
|
|
35
|
+
(0, typeorm_1.ManyToOne)(() => service_center_entity_1.ServiceCenterEntity),
|
|
36
|
+
(0, typeorm_1.JoinColumn)({ name: 'service_center_id' }),
|
|
37
|
+
__metadata("design:type", service_center_entity_1.ServiceCenterEntity)
|
|
38
|
+
], ServiceCenterInteractionEntity.prototype, "serviceCenter", void 0);
|
|
89
39
|
__decorate([
|
|
90
|
-
(0, typeorm_1.Column)({ name: '
|
|
40
|
+
(0, typeorm_1.Column)({ name: 'service_center_id', type: 'integer' }),
|
|
91
41
|
__metadata("design:type", Number)
|
|
92
|
-
], ServiceCenterInteractionEntity.prototype, "
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, typeorm_1.Column)({ name: 'service_center_profile_indicator', type: 'varchar', nullable: true }),
|
|
95
|
-
__metadata("design:type", String)
|
|
96
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterProfileIndicator", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, typeorm_1.Column)({ name: 'service_center_status', type: 'varchar', nullable: true }),
|
|
99
|
-
__metadata("design:type", String)
|
|
100
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterStatus", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, typeorm_1.Column)({ name: 'service_center_eligible', type: 'boolean', nullable: true }),
|
|
103
|
-
__metadata("design:type", Boolean)
|
|
104
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterEligible", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, typeorm_1.Column)({ name: 'service_center_locating_flag', type: 'boolean', nullable: true }),
|
|
107
|
-
__metadata("design:type", Boolean)
|
|
108
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterLocatingFlag", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, typeorm_1.Column)({ name: 'service_center_auto_acceptance_flag', type: 'boolean', nullable: true }),
|
|
111
|
-
__metadata("design:type", Boolean)
|
|
112
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterAutoAcceptanceFlag", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, typeorm_1.Column)({ name: 'service_center_parts_management_program_flag', type: 'boolean', nullable: true }),
|
|
115
|
-
__metadata("design:type", Boolean)
|
|
116
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterPartsManagementProgramFlag", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, typeorm_1.Column)({ name: 'service_center_zipcode_coverage', type: 'boolean', nullable: true }),
|
|
119
|
-
__metadata("design:type", Boolean)
|
|
120
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterZipcodeCoverage", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, typeorm_1.Column)({ name: 'service_center_brand_coverage', type: 'boolean', nullable: true }),
|
|
123
|
-
__metadata("design:type", Boolean)
|
|
124
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterBrandCoverage", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
(0, typeorm_1.Column)({ name: 'service_center_product_coverage', type: 'boolean', nullable: true }),
|
|
127
|
-
__metadata("design:type", Boolean)
|
|
128
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterProductCoverage", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
(0, typeorm_1.Column)({ name: 'service_center_overwrite_cut_off_time', type: 'varchar', nullable: true }),
|
|
131
|
-
__metadata("design:type", String)
|
|
132
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterOverwriteCutOffTime", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
(0, typeorm_1.Column)({ name: 'service_center_exclude_servicer_from_email', type: 'boolean', nullable: true }),
|
|
135
|
-
__metadata("design:type", Boolean)
|
|
136
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterExcludeServicerFromEmail", void 0);
|
|
137
|
-
__decorate([
|
|
138
|
-
(0, typeorm_1.Column)({ name: 'service_center_notes_notification_email', type: 'varchar', nullable: true }),
|
|
139
|
-
__metadata("design:type", String)
|
|
140
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterNotesNotificationEmail", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, typeorm_1.Column)({ name: 'service_center_classification', type: 'varchar', nullable: true }),
|
|
143
|
-
__metadata("design:type", String)
|
|
144
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterClassification", void 0);
|
|
145
|
-
__decorate([
|
|
146
|
-
(0, typeorm_1.Column)({ name: 'service_center_is_authorized', type: 'boolean', nullable: true }),
|
|
147
|
-
__metadata("design:type", Boolean)
|
|
148
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterIsAuthorized", void 0);
|
|
149
|
-
__decorate([
|
|
150
|
-
(0, typeorm_1.Column)('numeric', { name: 'service_center_overall_review_score', precision: 3, scale: 2, nullable: true }),
|
|
151
|
-
__metadata("design:type", Number)
|
|
152
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterOverallReviewScore", void 0);
|
|
153
|
-
__decorate([
|
|
154
|
-
(0, typeorm_1.Column)({ name: 'service_center_total_reviews', type: 'integer', nullable: true }),
|
|
155
|
-
__metadata("design:type", Number)
|
|
156
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterTotalReviews", void 0);
|
|
157
|
-
__decorate([
|
|
158
|
-
(0, typeorm_1.Column)({ name: 'service_center_phones_csv', type: 'text', nullable: true }),
|
|
159
|
-
__metadata("design:type", String)
|
|
160
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterPhonesCsv", void 0);
|
|
42
|
+
], ServiceCenterInteractionEntity.prototype, "serviceCenterId", void 0);
|
|
161
43
|
__decorate([
|
|
162
44
|
(0, typeorm_1.Column)({ name: 'client_address', type: 'text', nullable: true }),
|
|
163
45
|
__metadata("design:type", String)
|
|
164
46
|
], ServiceCenterInteractionEntity.prototype, "clientAddress", void 0);
|
|
165
|
-
__decorate([
|
|
166
|
-
(0, typeorm_1.Index)({ spatial: true }),
|
|
167
|
-
(0, typeorm_1.Column)({
|
|
168
|
-
name: 'service_center_geolocation',
|
|
169
|
-
type: 'geometry',
|
|
170
|
-
spatialFeatureType: 'Point',
|
|
171
|
-
srid: 4326,
|
|
172
|
-
nullable: true,
|
|
173
|
-
}),
|
|
174
|
-
__metadata("design:type", Object)
|
|
175
|
-
], ServiceCenterInteractionEntity.prototype, "serviceCenterGeolocation", void 0);
|
|
176
47
|
__decorate([
|
|
177
48
|
(0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
|
|
178
49
|
(0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
|
|
@@ -0,0 +1,36 @@
|
|
|
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.ServiceCenterRankingEntity = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const service_center_entity_1 = require("./service-center.entity");
|
|
15
|
+
let ServiceCenterRankingEntity = class ServiceCenterRankingEntity {
|
|
16
|
+
};
|
|
17
|
+
exports.ServiceCenterRankingEntity = ServiceCenterRankingEntity;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'servicer_account', type: 'varchar' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ServiceCenterRankingEntity.prototype, "servicerAccount", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ name: 'servicer_name', type: 'varchar', nullable: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], ServiceCenterRankingEntity.prototype, "servicerName", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ name: 'score', type: 'smallint', nullable: true }),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], ServiceCenterRankingEntity.prototype, "score", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.OneToOne)(() => service_center_entity_1.ServiceCenterEntity, (serviceCenter) => serviceCenter.serviceCenterRanking),
|
|
32
|
+
__metadata("design:type", service_center_entity_1.ServiceCenterEntity)
|
|
33
|
+
], ServiceCenterRankingEntity.prototype, "serviceCenter", void 0);
|
|
34
|
+
exports.ServiceCenterRankingEntity = ServiceCenterRankingEntity = __decorate([
|
|
35
|
+
(0, typeorm_1.Entity)('service_center_ranking', { schema: 'enr' })
|
|
36
|
+
], ServiceCenterRankingEntity);
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Point } from 'geojson';
|
|
2
2
|
import { Users } from './usr.entity';
|
|
3
3
|
import { ServiceCenterPhoneEntity } from './service-center-phone.entity';
|
|
4
|
+
import { ServiceCenterRankingEntity } from './service-center-ranking.entity';
|
|
4
5
|
import { ServiceCenterStatus } from '../enums/service-center-status.enum';
|
|
5
6
|
export declare class ServiceCenterEntity {
|
|
6
7
|
id: number;
|
|
@@ -17,6 +18,7 @@ export declare class ServiceCenterEntity {
|
|
|
17
18
|
country: string;
|
|
18
19
|
servicerType: string;
|
|
19
20
|
status: ServiceCenterStatus;
|
|
21
|
+
statusReason: string;
|
|
20
22
|
eligible: boolean;
|
|
21
23
|
locatingFlag: boolean;
|
|
22
24
|
autoAcceptanceFlag: boolean;
|
|
@@ -36,6 +38,7 @@ export declare class ServiceCenterEntity {
|
|
|
36
38
|
overallReviewScore: number;
|
|
37
39
|
totalReviews: number;
|
|
38
40
|
phones: ServiceCenterPhoneEntity[];
|
|
41
|
+
serviceCenterRanking: ServiceCenterRankingEntity;
|
|
39
42
|
agent: Users;
|
|
40
43
|
agentId: number;
|
|
41
44
|
dateCreated: Date;
|
|
@@ -13,6 +13,7 @@ exports.ServiceCenterEntity = void 0;
|
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const usr_entity_1 = require("./usr.entity");
|
|
15
15
|
const service_center_phone_entity_1 = require("./service-center-phone.entity");
|
|
16
|
+
const service_center_ranking_entity_1 = require("./service-center-ranking.entity");
|
|
16
17
|
const service_center_status_enum_1 = require("../enums/service-center-status.enum");
|
|
17
18
|
let ServiceCenterEntity = class ServiceCenterEntity {
|
|
18
19
|
};
|
|
@@ -74,6 +75,10 @@ __decorate([
|
|
|
74
75
|
(0, typeorm_1.Column)({ name: 'status', type: 'varchar', default: service_center_status_enum_1.ServiceCenterStatus.PENDING_APPROVAL }),
|
|
75
76
|
__metadata("design:type", String)
|
|
76
77
|
], ServiceCenterEntity.prototype, "status", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ name: 'status_reason', type: 'varchar', nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], ServiceCenterEntity.prototype, "statusReason", void 0);
|
|
77
82
|
__decorate([
|
|
78
83
|
(0, typeorm_1.Column)({ name: 'eligible', type: 'boolean', nullable: true, select: false }),
|
|
79
84
|
__metadata("design:type", Boolean)
|
|
@@ -152,6 +157,13 @@ __decorate([
|
|
|
152
157
|
}),
|
|
153
158
|
__metadata("design:type", Array)
|
|
154
159
|
], ServiceCenterEntity.prototype, "phones", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, typeorm_1.OneToOne)(() => service_center_ranking_entity_1.ServiceCenterRankingEntity, (serviceCenterRanking) => serviceCenterRanking.serviceCenter, {
|
|
162
|
+
createForeignKeyConstraints: false,
|
|
163
|
+
}),
|
|
164
|
+
(0, typeorm_1.JoinColumn)({ name: 'servicer_account', referencedColumnName: 'servicerAccount' }),
|
|
165
|
+
__metadata("design:type", service_center_ranking_entity_1.ServiceCenterRankingEntity)
|
|
166
|
+
], ServiceCenterEntity.prototype, "serviceCenterRanking", void 0);
|
|
155
167
|
__decorate([
|
|
156
168
|
(0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
|
|
157
169
|
(0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
|