@uniorganization/uni-lib 4.3.0 → 4.3.2

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.
Files changed (86) hide show
  1. package/dist/entities/bp-alerts.entity.d.ts +2 -2
  2. package/dist/entities/bp-alerts.entity.js +4 -4
  3. package/dist/entities/business-schedule.entity.d.ts +2 -2
  4. package/dist/entities/business-schedule.entity.js +4 -4
  5. package/dist/entities/call-driver-data.entity.d.ts +2 -2
  6. package/dist/entities/call-driver-data.entity.js +4 -4
  7. package/dist/entities/call-drivers.entity.d.ts +1 -1
  8. package/dist/entities/call-drivers.entity.js +2 -2
  9. package/dist/entities/cb-completed-reasons.entity.d.ts +1 -1
  10. package/dist/entities/cb-completed-reasons.entity.js +2 -2
  11. package/dist/entities/claim-report.entity.d.ts +2 -2
  12. package/dist/entities/claim-report.entity.js +4 -4
  13. package/dist/entities/daily-payment.entity.d.ts +58 -0
  14. package/dist/entities/daily-payment.entity.js +248 -0
  15. package/dist/entities/dispute-request.entity.d.ts +2 -2
  16. package/dist/entities/dispute-request.entity.js +4 -4
  17. package/dist/entities/division.entity.d.ts +11 -0
  18. package/dist/entities/division.entity.js +52 -0
  19. package/dist/entities/enr-inventory.entity.d.ts +2 -2
  20. package/dist/entities/enr-inventory.entity.js +4 -4
  21. package/dist/entities/enr-results.entity.d.ts +1 -1
  22. package/dist/entities/enr-results.entity.js +2 -2
  23. package/dist/entities/escalations.entity.d.ts +2 -2
  24. package/dist/entities/escalations.entity.js +4 -4
  25. package/dist/entities/evaluation-forms.entity.d.ts +4 -4
  26. package/dist/entities/evaluations.entity.d.ts +2 -2
  27. package/dist/entities/evaluations.entity.js +4 -4
  28. package/dist/entities/form-fields.entity.d.ts +2 -2
  29. package/dist/entities/form-fields.entity.js +4 -4
  30. package/dist/entities/form.entity.d.ts +2 -2
  31. package/dist/entities/form.entity.js +4 -4
  32. package/dist/entities/inbox/message-case.entity.d.ts +2 -2
  33. package/dist/entities/inbox/message-case.entity.js +6 -8
  34. package/dist/entities/inbox/sla-policy.entity.d.ts +2 -2
  35. package/dist/entities/inbox/sla-policy.entity.js +4 -4
  36. package/dist/entities/index.d.ts +3 -0
  37. package/dist/entities/index.js +3 -0
  38. package/dist/entities/inventory.entity.d.ts +1 -1
  39. package/dist/entities/inventory.entity.js +2 -2
  40. package/dist/entities/lob-assignment.entity.d.ts +1 -1
  41. package/dist/entities/lob-assignment.entity.js +2 -2
  42. package/dist/entities/lob-call-drivers.entity.d.ts +1 -1
  43. package/dist/entities/lob-call-drivers.entity.js +2 -2
  44. package/dist/entities/lob.entity.d.ts +14 -0
  45. package/dist/entities/lob.entity.js +65 -0
  46. package/dist/entities/offphone-activities.entity.d.ts +1 -1
  47. package/dist/entities/offphone-activities.entity.js +2 -2
  48. package/dist/entities/otwe-offers.entity.d.ts +1 -1
  49. package/dist/entities/otwe-offers.entity.js +2 -2
  50. package/dist/entities/outbound-ticket-history.entity.d.ts +2 -2
  51. package/dist/entities/outbound-ticket-history.entity.js +4 -4
  52. package/dist/entities/pending-ticket-history.entity.d.ts +2 -2
  53. package/dist/entities/pending-ticket-history.entity.js +4 -4
  54. package/dist/entities/raw_roster.entity.d.ts +2 -2
  55. package/dist/entities/raw_roster.entity.js +4 -4
  56. package/dist/entities/roster.entity.d.ts +2 -2
  57. package/dist/entities/roster.entity.js +4 -4
  58. package/dist/entities/skipped-ticket.entity.d.ts +2 -2
  59. package/dist/entities/skipped-ticket.entity.js +4 -4
  60. package/dist/entities/template.entity.d.ts +2 -2
  61. package/dist/entities/template.entity.js +4 -4
  62. package/dist/entities/ticket-queue.entity.d.ts +2 -2
  63. package/dist/entities/ticket-queue.entity.js +4 -4
  64. package/dist/entities/user-roster.view.d.ts +2 -2
  65. package/dist/entities/user-roster.view.js +4 -4
  66. package/dist/entities/users-lobs.entity.d.ts +11 -0
  67. package/dist/entities/users-lobs.entity.js +57 -0
  68. package/dist/entities/usr.entity.d.ts +4 -2
  69. package/dist/entities/usr.entity.js +22 -14
  70. package/dist/entities/vw-escalation-age.d.ts +2 -0
  71. package/dist/entities/vw-escalation-age.js +8 -0
  72. package/dist/middlewares/index.d.ts +1 -0
  73. package/dist/middlewares/index.js +17 -0
  74. package/dist/middlewares/version-checker.middleware.d.ts +2 -0
  75. package/dist/middlewares/version-checker.middleware.js +27 -0
  76. package/dist/modules/common/jwt.strategy.js +2 -6
  77. package/dist/modules/tenant/redis-tenant-state.store.js +0 -3
  78. package/dist/modules/tenant/tenant-authorization.service.d.ts +2 -2
  79. package/dist/modules/tenant/tenant-authorization.service.js +37 -25
  80. package/dist/modules/tenant/tenant-authorization.types.d.ts +2 -2
  81. package/dist/modules/tenant/tenant.types.d.ts +0 -1
  82. package/package.json +13 -12
  83. package/dist/entities/user-client-context.entity.d.ts +0 -10
  84. package/dist/entities/user-client-context.entity.js +0 -59
  85. package/dist/modules/tenant/master-users.guard.d.ts +0 -4
  86. package/dist/modules/tenant/master-users.guard.js +0 -35
@@ -5,8 +5,8 @@ export declare class BpAlerts {
5
5
  dateCreated: Date;
6
6
  bpNumber: string;
7
7
  transaction: string;
8
- division: string;
9
- lob: string;
8
+ divisionId: string | null;
9
+ lobId: string | null;
10
10
  campaign: string;
11
11
  status: string;
12
12
  comment: string;
@@ -36,13 +36,13 @@ __decorate([
36
36
  __metadata("design:type", String)
37
37
  ], BpAlerts.prototype, "transaction", void 0);
38
38
  __decorate([
39
- (0, typeorm_1.Column)(),
39
+ (0, typeorm_1.Column)({ name: 'division_id', type: 'bigint', nullable: true }),
40
40
  __metadata("design:type", String)
41
- ], BpAlerts.prototype, "division", void 0);
41
+ ], BpAlerts.prototype, "divisionId", void 0);
42
42
  __decorate([
43
- (0, typeorm_1.Column)(),
43
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
44
44
  __metadata("design:type", String)
45
- ], BpAlerts.prototype, "lob", void 0);
45
+ ], BpAlerts.prototype, "lobId", void 0);
46
46
  __decorate([
47
47
  (0, typeorm_1.Column)(),
48
48
  __metadata("design:type", String)
@@ -3,8 +3,8 @@ export declare class BusinessSchedule {
3
3
  clientId: number;
4
4
  id: string;
5
5
  name: string;
6
- division: string | null;
7
- lob: string | null;
6
+ divisionId: string | null;
7
+ lobId: string | null;
8
8
  timezone: string;
9
9
  isActive: boolean;
10
10
  days: BusinessScheduleDay[];
@@ -28,13 +28,13 @@ __decorate([
28
28
  __metadata("design:type", String)
29
29
  ], BusinessSchedule.prototype, "name", void 0);
30
30
  __decorate([
31
- (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
31
+ (0, typeorm_1.Column)({ name: 'division_id', type: 'bigint', nullable: true }),
32
32
  __metadata("design:type", String)
33
- ], BusinessSchedule.prototype, "division", void 0);
33
+ ], BusinessSchedule.prototype, "divisionId", void 0);
34
34
  __decorate([
35
- (0, typeorm_1.Column)({ type: 'varchar', length: 100, nullable: true }),
35
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
36
36
  __metadata("design:type", String)
37
- ], BusinessSchedule.prototype, "lob", void 0);
37
+ ], BusinessSchedule.prototype, "lobId", void 0);
38
38
  __decorate([
39
39
  (0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
40
40
  __metadata("design:type", String)
@@ -7,8 +7,8 @@ export declare class CallDriverData {
7
7
  id: number;
8
8
  transaction: Transactions;
9
9
  campaignName: String;
10
- division: String;
11
- lob: String;
10
+ divisionId: string | null;
11
+ lobId: string | null;
12
12
  agent: String;
13
13
  ntgid: String;
14
14
  escalation: Escalations;
@@ -35,13 +35,13 @@ __decorate([
35
35
  __metadata("design:type", String)
36
36
  ], CallDriverData.prototype, "campaignName", void 0);
37
37
  __decorate([
38
- (0, typeorm_1.Column)({ name: 'division' }),
38
+ (0, typeorm_1.Column)({ name: 'division_id', type: 'bigint', nullable: true }),
39
39
  __metadata("design:type", String)
40
- ], CallDriverData.prototype, "division", void 0);
40
+ ], CallDriverData.prototype, "divisionId", void 0);
41
41
  __decorate([
42
- (0, typeorm_1.Column)({ name: 'lob' }),
42
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
43
43
  __metadata("design:type", String)
44
- ], CallDriverData.prototype, "lob", void 0);
44
+ ], CallDriverData.prototype, "lobId", void 0);
45
45
  __decorate([
46
46
  (0, typeorm_1.Column)({ name: 'agent' }),
47
47
  __metadata("design:type", String)
@@ -16,5 +16,5 @@ export declare class CallDrivers {
16
16
  agent: Users;
17
17
  dateCreated: Timestamp;
18
18
  notes: string;
19
- lob: string;
19
+ lobId: string | null;
20
20
  }
@@ -75,9 +75,9 @@ __decorate([
75
75
  __metadata("design:type", String)
76
76
  ], CallDrivers.prototype, "notes", void 0);
77
77
  __decorate([
78
- (0, typeorm_1.Column)({ name: 'lob' }),
78
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
79
79
  __metadata("design:type", String)
80
- ], CallDrivers.prototype, "lob", void 0);
80
+ ], CallDrivers.prototype, "lobId", void 0);
81
81
  exports.CallDrivers = CallDrivers = __decorate([
82
82
  (0, typeorm_1.Entity)('call_drivers', { schema: 'tracking' })
83
83
  ], CallDrivers);
@@ -2,5 +2,5 @@ export declare class CallbackCompletedReasons {
2
2
  clientId: number;
3
3
  id: number;
4
4
  reason: string;
5
- lob: string;
5
+ lobId: string | null;
6
6
  }
@@ -27,9 +27,9 @@ __decorate([
27
27
  __metadata("design:type", String)
28
28
  ], CallbackCompletedReasons.prototype, "reason", void 0);
29
29
  __decorate([
30
- (0, typeorm_1.Column)({ name: 'lob' }),
30
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
31
31
  __metadata("design:type", String)
32
- ], CallbackCompletedReasons.prototype, "lob", void 0);
32
+ ], CallbackCompletedReasons.prototype, "lobId", void 0);
33
33
  exports.CallbackCompletedReasons = CallbackCompletedReasons = __decorate([
34
34
  (0, typeorm_1.Entity)('callback_completed_reasons', { schema: 'tracking' })
35
35
  ], CallbackCompletedReasons);
@@ -33,8 +33,8 @@ export declare class ClaimReport {
33
33
  changedByResponsible: String;
34
34
  reasonForDelay: String;
35
35
  uploadDate: Date;
36
- division: String;
37
- lob: String;
36
+ divisionId: string | null;
37
+ lobId: string | null;
38
38
  campaign: String;
39
39
  status: String;
40
40
  agent: String;
@@ -151,13 +151,13 @@ __decorate([
151
151
  __metadata("design:type", Date)
152
152
  ], ClaimReport.prototype, "uploadDate", void 0);
153
153
  __decorate([
154
- (0, typeorm_1.Column)(),
154
+ (0, typeorm_1.Column)({ name: 'division_id', type: 'bigint', nullable: true }),
155
155
  __metadata("design:type", String)
156
- ], ClaimReport.prototype, "division", void 0);
156
+ ], ClaimReport.prototype, "divisionId", void 0);
157
157
  __decorate([
158
- (0, typeorm_1.Column)(),
158
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
159
159
  __metadata("design:type", String)
160
- ], ClaimReport.prototype, "lob", void 0);
160
+ ], ClaimReport.prototype, "lobId", void 0);
161
161
  __decorate([
162
162
  (0, typeorm_1.Column)(),
163
163
  __metadata("design:type", String)
@@ -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);
@@ -5,8 +5,8 @@ export type RequestStatus = 'NEW' | 'OPS APPROVED' | 'OPS REJECTED' | 'QA REJECT
5
5
  export declare class DisputeRequest {
6
6
  clientId: number;
7
7
  id: number;
8
- division: string;
9
- lob: string;
8
+ divisionId: string | null;
9
+ lobId: string | null;
10
10
  requestStatus: RequestStatus;
11
11
  requestDate: Date;
12
12
  agent: Users;
@@ -25,13 +25,13 @@ __decorate([
25
25
  __metadata("design:type", Number)
26
26
  ], DisputeRequest.prototype, "id", void 0);
27
27
  __decorate([
28
- (0, typeorm_1.Column)(),
28
+ (0, typeorm_1.Column)({ name: 'division_id', type: 'bigint', nullable: true }),
29
29
  __metadata("design:type", String)
30
- ], DisputeRequest.prototype, "division", void 0);
30
+ ], DisputeRequest.prototype, "divisionId", void 0);
31
31
  __decorate([
32
- (0, typeorm_1.Column)(),
32
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
33
33
  __metadata("design:type", String)
34
- ], DisputeRequest.prototype, "lob", void 0);
34
+ ], DisputeRequest.prototype, "lobId", void 0);
35
35
  __decorate([
36
36
  (0, typeorm_1.Column)('varchar', { name: 'request_status' }),
37
37
  __metadata("design:type", String)
@@ -0,0 +1,11 @@
1
+ import { Lob } from './lob.entity';
2
+ export declare class Division {
3
+ id: string;
4
+ name: string;
5
+ clientId: number;
6
+ createdById: number;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ deletedAt: Date | null;
10
+ lobs: Lob[];
11
+ }
@@ -0,0 +1,52 @@
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.Division = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const lob_entity_1 = require("./lob.entity");
15
+ let Division = class Division {
16
+ };
17
+ exports.Division = Division;
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)('identity', { type: 'bigint' }),
20
+ __metadata("design:type", String)
21
+ ], Division.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.Column)({ type: 'varchar', length: 100 }),
24
+ __metadata("design:type", String)
25
+ ], Division.prototype, "name", void 0);
26
+ __decorate([
27
+ (0, typeorm_1.Column)({ name: 'client_id', type: 'integer' }),
28
+ __metadata("design:type", Number)
29
+ ], Division.prototype, "clientId", void 0);
30
+ __decorate([
31
+ (0, typeorm_1.Column)({ name: 'created_by_id', type: 'numeric' }),
32
+ __metadata("design:type", Number)
33
+ ], Division.prototype, "createdById", void 0);
34
+ __decorate([
35
+ (0, typeorm_1.CreateDateColumn)({ name: 'created_at', type: 'timestamptz' }),
36
+ __metadata("design:type", Date)
37
+ ], Division.prototype, "createdAt", void 0);
38
+ __decorate([
39
+ (0, typeorm_1.UpdateDateColumn)({ name: 'updated_at', type: 'timestamptz' }),
40
+ __metadata("design:type", Date)
41
+ ], Division.prototype, "updatedAt", void 0);
42
+ __decorate([
43
+ (0, typeorm_1.DeleteDateColumn)({ name: 'deleted_at', type: 'timestamptz', nullable: true }),
44
+ __metadata("design:type", Date)
45
+ ], Division.prototype, "deletedAt", void 0);
46
+ __decorate([
47
+ (0, typeorm_1.OneToMany)(() => lob_entity_1.Lob, (lob) => lob.division),
48
+ __metadata("design:type", Array)
49
+ ], Division.prototype, "lobs", void 0);
50
+ exports.Division = Division = __decorate([
51
+ (0, typeorm_1.Entity)('division', { schema: 'stm' })
52
+ ], Division);
@@ -3,8 +3,8 @@ export declare class EnrInventory {
3
3
  id: number;
4
4
  company: string;
5
5
  plant: string;
6
- division: string;
7
- lob: string;
6
+ divisionId: string | null;
7
+ lobId: string | null;
8
8
  material: string;
9
9
  storageLocation: string;
10
10
  stockType: string;
@@ -31,13 +31,13 @@ __decorate([
31
31
  __metadata("design:type", String)
32
32
  ], EnrInventory.prototype, "plant", void 0);
33
33
  __decorate([
34
- (0, typeorm_1.Column)(),
34
+ (0, typeorm_1.Column)({ name: 'division_id', type: 'bigint', nullable: true }),
35
35
  __metadata("design:type", String)
36
- ], EnrInventory.prototype, "division", void 0);
36
+ ], EnrInventory.prototype, "divisionId", void 0);
37
37
  __decorate([
38
- (0, typeorm_1.Column)(),
38
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
39
39
  __metadata("design:type", String)
40
- ], EnrInventory.prototype, "lob", void 0);
40
+ ], EnrInventory.prototype, "lobId", void 0);
41
41
  __decorate([
42
42
  (0, typeorm_1.Column)(),
43
43
  __metadata("design:type", String)
@@ -2,5 +2,5 @@ export declare class EnrResults {
2
2
  clientId: number;
3
3
  id: number;
4
4
  result: string;
5
- lob: string;
5
+ lobId: string | null;
6
6
  }
@@ -27,9 +27,9 @@ __decorate([
27
27
  __metadata("design:type", String)
28
28
  ], EnrResults.prototype, "result", void 0);
29
29
  __decorate([
30
- (0, typeorm_1.Column)({ name: 'lob' }),
30
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
31
31
  __metadata("design:type", String)
32
- ], EnrResults.prototype, "lob", void 0);
32
+ ], EnrResults.prototype, "lobId", void 0);
33
33
  exports.EnrResults = EnrResults = __decorate([
34
34
  (0, typeorm_1.Entity)('enr_result', { schema: 'tracking' })
35
35
  ], EnrResults);
@@ -8,8 +8,8 @@ export declare class Escalations {
8
8
  clientId: number;
9
9
  id: number;
10
10
  escalationId: string;
11
- division: string;
12
- lob: string;
11
+ divisionId: string | null;
12
+ lobId: string | null;
13
13
  callDriverData: CallDriverData;
14
14
  escalationType: EscalationType;
15
15
  escalationTypeTitle: string;
@@ -32,13 +32,13 @@ __decorate([
32
32
  __metadata("design:type", String)
33
33
  ], Escalations.prototype, "escalationId", void 0);
34
34
  __decorate([
35
- (0, typeorm_1.Column)({ name: 'division' }),
35
+ (0, typeorm_1.Column)({ name: 'division_id', type: 'bigint', nullable: true }),
36
36
  __metadata("design:type", String)
37
- ], Escalations.prototype, "division", void 0);
37
+ ], Escalations.prototype, "divisionId", void 0);
38
38
  __decorate([
39
- (0, typeorm_1.Column)({ name: 'lob' }),
39
+ (0, typeorm_1.Column)({ name: 'lob_id', type: 'bigint', nullable: true }),
40
40
  __metadata("design:type", String)
41
- ], Escalations.prototype, "lob", void 0);
41
+ ], Escalations.prototype, "lobId", void 0);
42
42
  __decorate([
43
43
  (0, typeorm_1.OneToOne)(() => call_driver_data_entity_1.CallDriverData, (cd) => cd.escalation),
44
44
  __metadata("design:type", call_driver_data_entity_1.CallDriverData)