@uniorganization/uni-lib 1.0.0

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 (127) hide show
  1. package/dist/config/db.config.d.ts +4 -0
  2. package/dist/config/db.config.js +24 -0
  3. package/dist/config/index.d.ts +1 -0
  4. package/dist/config/index.js +13 -0
  5. package/dist/entities/applications.entity.d.ts +9 -0
  6. package/dist/entities/applications.entity.js +41 -0
  7. package/dist/entities/apps-user-id.entity.d.ts +20 -0
  8. package/dist/entities/apps-user-id.entity.js +91 -0
  9. package/dist/entities/blacklist.entity.d.ts +9 -0
  10. package/dist/entities/blacklist.entity.js +43 -0
  11. package/dist/entities/call-driver-data.entity.d.ts +18 -0
  12. package/dist/entities/call-driver-data.entity.js +77 -0
  13. package/dist/entities/call-drivers.entity.d.ts +19 -0
  14. package/dist/entities/call-drivers.entity.js +79 -0
  15. package/dist/entities/cb-completed-reasons.entity.d.ts +5 -0
  16. package/dist/entities/cb-completed-reasons.entity.js +31 -0
  17. package/dist/entities/change-alert.entity.d.ts +11 -0
  18. package/dist/entities/change-alert.entity.js +51 -0
  19. package/dist/entities/config.entity.d.ts +5 -0
  20. package/dist/entities/config.entity.js +31 -0
  21. package/dist/entities/depreciation-categories.entity.d.ts +6 -0
  22. package/dist/entities/depreciation-categories.entity.js +32 -0
  23. package/dist/entities/depreciation-details.entity.d.ts +9 -0
  24. package/dist/entities/depreciation-details.entity.js +45 -0
  25. package/dist/entities/detail-type.entity.d.ts +4 -0
  26. package/dist/entities/detail-type.entity.js +27 -0
  27. package/dist/entities/enr-calculation-log.entity.d.ts +49 -0
  28. package/dist/entities/enr-calculation-log.entity.js +203 -0
  29. package/dist/entities/enr-results.entity.d.ts +5 -0
  30. package/dist/entities/enr-results.entity.js +31 -0
  31. package/dist/entities/escalation-category.entity.d.ts +4 -0
  32. package/dist/entities/escalation-category.entity.js +27 -0
  33. package/dist/entities/escalation-notes.entity.d.ts +10 -0
  34. package/dist/entities/escalation-notes.entity.js +43 -0
  35. package/dist/entities/escalation-outcome.entity.d.ts +4 -0
  36. package/dist/entities/escalation-outcome.entity.js +27 -0
  37. package/dist/entities/escalation-status.entity.d.ts +4 -0
  38. package/dist/entities/escalation-status.entity.js +27 -0
  39. package/dist/entities/escalation-type.entity.d.ts +5 -0
  40. package/dist/entities/escalation-type.entity.js +31 -0
  41. package/dist/entities/escalations.entity.d.ts +32 -0
  42. package/dist/entities/escalations.entity.js +134 -0
  43. package/dist/entities/evaluation-data.entity.d.ts +8 -0
  44. package/dist/entities/evaluation-data.entity.js +43 -0
  45. package/dist/entities/evaluation-questions.entity.d.ts +10 -0
  46. package/dist/entities/evaluation-questions.entity.js +47 -0
  47. package/dist/entities/evaluations.entity.d.ts +25 -0
  48. package/dist/entities/evaluations.entity.js +102 -0
  49. package/dist/entities/file-contents.entity.d.ts +56 -0
  50. package/dist/entities/file-contents.entity.js +231 -0
  51. package/dist/entities/file-upload.entity.d.ts +10 -0
  52. package/dist/entities/file-upload.entity.js +47 -0
  53. package/dist/entities/form-definition.entity.d.ts +9 -0
  54. package/dist/entities/form-definition.entity.js +43 -0
  55. package/dist/entities/form-fields.entity.d.ts +18 -0
  56. package/dist/entities/form-fields.entity.js +79 -0
  57. package/dist/entities/form.entity.d.ts +15 -0
  58. package/dist/entities/form.entity.js +64 -0
  59. package/dist/entities/incident-notes.entity.d.ts +10 -0
  60. package/dist/entities/incident-notes.entity.js +43 -0
  61. package/dist/entities/incident.entity.d.ts +20 -0
  62. package/dist/entities/incident.entity.js +82 -0
  63. package/dist/entities/incoterms.entity.d.ts +9 -0
  64. package/dist/entities/incoterms.entity.js +47 -0
  65. package/dist/entities/index.d.ts +6 -0
  66. package/dist/entities/index.js +18 -0
  67. package/dist/entities/inventory.entity.d.ts +11 -0
  68. package/dist/entities/inventory.entity.js +55 -0
  69. package/dist/entities/it-info.entity.d.ts +12 -0
  70. package/dist/entities/it-info.entity.js +59 -0
  71. package/dist/entities/lob-assignment.entity.d.ts +6 -0
  72. package/dist/entities/lob-assignment.entity.js +35 -0
  73. package/dist/entities/lob-call-drivers.entity.d.ts +5 -0
  74. package/dist/entities/lob-call-drivers.entity.js +31 -0
  75. package/dist/entities/location-addresses.entity.d.ts +12 -0
  76. package/dist/entities/location-addresses.entity.js +59 -0
  77. package/dist/entities/ltp-history-transactions.entity.d.ts +11 -0
  78. package/dist/entities/ltp-history-transactions.entity.js +53 -0
  79. package/dist/entities/ltp-stm-roster.entity.d.ts +11 -0
  80. package/dist/entities/ltp-stm-roster.entity.js +55 -0
  81. package/dist/entities/modules-roles.entity.d.ts +13 -0
  82. package/dist/entities/modules-roles.entity.js +53 -0
  83. package/dist/entities/offphone-activities.entity.d.ts +5 -0
  84. package/dist/entities/offphone-activities.entity.js +31 -0
  85. package/dist/entities/onsite-ordering.entity.d.ts +11 -0
  86. package/dist/entities/onsite-ordering.entity.js +55 -0
  87. package/dist/entities/ost.entity.d.ts +6 -0
  88. package/dist/entities/ost.entity.js +35 -0
  89. package/dist/entities/otwe-offers.entity.d.ts +5 -0
  90. package/dist/entities/otwe-offers.entity.js +31 -0
  91. package/dist/entities/product-codes.entity.d.ts +17 -0
  92. package/dist/entities/product-codes.entity.js +77 -0
  93. package/dist/entities/question-group.entity.d.ts +9 -0
  94. package/dist/entities/question-group.entity.js +44 -0
  95. package/dist/entities/questions.entity.d.ts +10 -0
  96. package/dist/entities/questions.entity.js +49 -0
  97. package/dist/entities/regional-service-mgr.entity.d.ts +4 -0
  98. package/dist/entities/regional-service-mgr.entity.js +27 -0
  99. package/dist/entities/role-definition.entity.d.ts +7 -0
  100. package/dist/entities/role-definition.entity.js +35 -0
  101. package/dist/entities/role-privileges.entity.d.ts +10 -0
  102. package/dist/entities/role-privileges.entity.js +44 -0
  103. package/dist/entities/roster-personnel.entity.d.ts +9 -0
  104. package/dist/entities/roster-personnel.entity.js +49 -0
  105. package/dist/entities/roster.entity.d.ts +19 -0
  106. package/dist/entities/roster.entity.js +80 -0
  107. package/dist/entities/sap-raw-data.entity.d.ts +132 -0
  108. package/dist/entities/sap-raw-data.entity.js +539 -0
  109. package/dist/entities/service-type.entity.d.ts +4 -0
  110. package/dist/entities/service-type.entity.js +27 -0
  111. package/dist/entities/state.entity.d.ts +8 -0
  112. package/dist/entities/state.entity.js +43 -0
  113. package/dist/entities/template.entity.d.ts +10 -0
  114. package/dist/entities/template.entity.js +51 -0
  115. package/dist/entities/transactions.entity.d.ts +28 -0
  116. package/dist/entities/transactions.entity.js +118 -0
  117. package/dist/entities/user-roles.entity.d.ts +8 -0
  118. package/dist/entities/user-roles.entity.js +41 -0
  119. package/dist/entities/usr.entity.d.ts +21 -0
  120. package/dist/entities/usr.entity.js +93 -0
  121. package/dist/entities/warranty-category.entity.d.ts +4 -0
  122. package/dist/entities/warranty-category.entity.js +27 -0
  123. package/dist/index.d.ts +2 -0
  124. package/dist/index.js +14 -0
  125. package/dist/test.d.ts +1 -0
  126. package/dist/test.js +7 -0
  127. package/package.json +64 -0
@@ -0,0 +1,9 @@
1
+ import { DepreciationCategories } from './depreciation-categories.entity';
2
+ export declare class DepreciationDetails {
3
+ id: number;
4
+ yearsOfOwnershipFrom: number;
5
+ yearsOfOwnershipTo: number;
6
+ depreciationRate: number;
7
+ refundRate: number;
8
+ depreciationCategory: DepreciationCategories;
9
+ }
@@ -0,0 +1,45 @@
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.DepreciationDetails = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const depreciation_categories_entity_1 = require("./depreciation-categories.entity");
15
+ let DepreciationDetails = class DepreciationDetails {
16
+ };
17
+ __decorate([
18
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
19
+ __metadata("design:type", Number)
20
+ ], DepreciationDetails.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, typeorm_1.Column)({ name: 'years_of_ownership_from' }),
23
+ __metadata("design:type", Number)
24
+ ], DepreciationDetails.prototype, "yearsOfOwnershipFrom", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ name: 'years_of_ownership_to' }),
27
+ __metadata("design:type", Number)
28
+ ], DepreciationDetails.prototype, "yearsOfOwnershipTo", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ name: 'depreciation_rate' }),
31
+ __metadata("design:type", Number)
32
+ ], DepreciationDetails.prototype, "depreciationRate", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ name: 'refund_rate' }),
35
+ __metadata("design:type", Number)
36
+ ], DepreciationDetails.prototype, "refundRate", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.ManyToOne)(type => depreciation_categories_entity_1.DepreciationCategories, depreciationCategories => depreciationCategories.depreciationDetails),
39
+ (0, typeorm_1.JoinColumn)({ name: 'depreciation_category_id' }),
40
+ __metadata("design:type", depreciation_categories_entity_1.DepreciationCategories)
41
+ ], DepreciationDetails.prototype, "depreciationCategory", void 0);
42
+ DepreciationDetails = __decorate([
43
+ (0, typeorm_1.Entity)('depreciation_details', { schema: 'enr' })
44
+ ], DepreciationDetails);
45
+ exports.DepreciationDetails = DepreciationDetails;
@@ -0,0 +1,4 @@
1
+ export declare class DetailType {
2
+ id: number;
3
+ detail: string;
4
+ }
@@ -0,0 +1,27 @@
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.DetailType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let DetailType = class DetailType {
15
+ };
16
+ __decorate([
17
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
18
+ __metadata("design:type", Number)
19
+ ], DetailType.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ name: 'detail' }),
22
+ __metadata("design:type", String)
23
+ ], DetailType.prototype, "detail", void 0);
24
+ DetailType = __decorate([
25
+ (0, typeorm_1.Entity)('detail_type', { schema: 'tracking' })
26
+ ], DetailType);
27
+ exports.DetailType = DetailType;
@@ -0,0 +1,49 @@
1
+ import { Timestamp } from 'typeorm';
2
+ import { Users } from './usr.entity';
3
+ export declare class CalculationLog {
4
+ id: number;
5
+ transactionId: string;
6
+ productType: string;
7
+ calculationType: string;
8
+ refundOfferDate: Date;
9
+ purchaseDate: Date;
10
+ manufacturerDate: Date;
11
+ productPrice: number;
12
+ discountListed: number;
13
+ installationFee: number;
14
+ warrantyFee: number;
15
+ deliveryFee: number;
16
+ taxRate: number;
17
+ taxAmount: number;
18
+ subtotal: number;
19
+ depreciationRate: number;
20
+ taxRefund: number;
21
+ totalRefund: number;
22
+ eCouponIncentive: number;
23
+ eCouponAmount: number;
24
+ dateCreated: Timestamp;
25
+ dateUpdated: Timestamp;
26
+ calculation: string;
27
+ discountType: string;
28
+ discountAppliedTo: string;
29
+ zipCode: string;
30
+ stateCode: string;
31
+ sraOffered: string;
32
+ pricing: string;
33
+ currentModel: string;
34
+ exchangeModel: string;
35
+ exchangeModelPrice: number;
36
+ exchangeFee: number;
37
+ exchangeReason: string;
38
+ exchangeType: string;
39
+ shipper: string;
40
+ plantType: string;
41
+ plant: string;
42
+ storageLocation: string;
43
+ incoterms: string;
44
+ shippingInstructions: string;
45
+ shipToLocation: string;
46
+ agent: Users;
47
+ supervisor: Users;
48
+ approvedBy: Users;
49
+ }
@@ -0,0 +1,203 @@
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.CalculationLog = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const usr_entity_1 = require("./usr.entity");
15
+ let CalculationLog = class CalculationLog {
16
+ };
17
+ __decorate([
18
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
19
+ __metadata("design:type", Number)
20
+ ], CalculationLog.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, typeorm_1.Column)({ name: 'transaction_id' }),
23
+ __metadata("design:type", String)
24
+ ], CalculationLog.prototype, "transactionId", void 0);
25
+ __decorate([
26
+ (0, typeorm_1.Column)({ name: 'product_type' }),
27
+ __metadata("design:type", String)
28
+ ], CalculationLog.prototype, "productType", void 0);
29
+ __decorate([
30
+ (0, typeorm_1.Column)({ name: 'calculation_type' }),
31
+ __metadata("design:type", String)
32
+ ], CalculationLog.prototype, "calculationType", void 0);
33
+ __decorate([
34
+ (0, typeorm_1.Column)({ name: 'refund_offer_date' }),
35
+ __metadata("design:type", Date)
36
+ ], CalculationLog.prototype, "refundOfferDate", void 0);
37
+ __decorate([
38
+ (0, typeorm_1.Column)({ name: 'purchase_date' }),
39
+ __metadata("design:type", Date)
40
+ ], CalculationLog.prototype, "purchaseDate", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ name: 'manufacturer_date' }),
43
+ __metadata("design:type", Date)
44
+ ], CalculationLog.prototype, "manufacturerDate", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ name: 'product_price' }),
47
+ __metadata("design:type", Number)
48
+ ], CalculationLog.prototype, "productPrice", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ name: 'discount_listed' }),
51
+ __metadata("design:type", Number)
52
+ ], CalculationLog.prototype, "discountListed", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)({ name: 'installation_fee' }),
55
+ __metadata("design:type", Number)
56
+ ], CalculationLog.prototype, "installationFee", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ name: 'warranty_fee' }),
59
+ __metadata("design:type", Number)
60
+ ], CalculationLog.prototype, "warrantyFee", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ name: 'delivery_fee' }),
63
+ __metadata("design:type", Number)
64
+ ], CalculationLog.prototype, "deliveryFee", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)({ name: 'tax_rate' }),
67
+ __metadata("design:type", Number)
68
+ ], CalculationLog.prototype, "taxRate", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ name: 'tax_amount' }),
71
+ __metadata("design:type", Number)
72
+ ], CalculationLog.prototype, "taxAmount", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)({ name: 'subtotal' }),
75
+ __metadata("design:type", Number)
76
+ ], CalculationLog.prototype, "subtotal", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ name: 'depreciation_rate' }),
79
+ __metadata("design:type", Number)
80
+ ], CalculationLog.prototype, "depreciationRate", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ name: 'tax_refund' }),
83
+ __metadata("design:type", Number)
84
+ ], CalculationLog.prototype, "taxRefund", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.Column)({ name: 'total_refund' }),
87
+ __metadata("design:type", Number)
88
+ ], CalculationLog.prototype, "totalRefund", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.Column)({ name: 'e_coupon_incentive' }),
91
+ __metadata("design:type", Number)
92
+ ], CalculationLog.prototype, "eCouponIncentive", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.Column)({ name: 'e_coupon_amount' }),
95
+ __metadata("design:type", Number)
96
+ ], CalculationLog.prototype, "eCouponAmount", void 0);
97
+ __decorate([
98
+ (0, typeorm_1.Column)('timestamp', { name: 'date_created' }),
99
+ __metadata("design:type", typeorm_1.Timestamp)
100
+ ], CalculationLog.prototype, "dateCreated", void 0);
101
+ __decorate([
102
+ (0, typeorm_1.Column)('timestamp', { name: 'date_updated' }),
103
+ __metadata("design:type", typeorm_1.Timestamp)
104
+ ], CalculationLog.prototype, "dateUpdated", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.Column)({ name: 'calculation' }),
107
+ __metadata("design:type", String)
108
+ ], CalculationLog.prototype, "calculation", void 0);
109
+ __decorate([
110
+ (0, typeorm_1.Column)({ name: 'discount_type' }),
111
+ __metadata("design:type", String)
112
+ ], CalculationLog.prototype, "discountType", void 0);
113
+ __decorate([
114
+ (0, typeorm_1.Column)({ name: 'discount_applied_to' }),
115
+ __metadata("design:type", String)
116
+ ], CalculationLog.prototype, "discountAppliedTo", void 0);
117
+ __decorate([
118
+ (0, typeorm_1.Column)({ name: 'zip_code' }),
119
+ __metadata("design:type", String)
120
+ ], CalculationLog.prototype, "zipCode", void 0);
121
+ __decorate([
122
+ (0, typeorm_1.Column)({ name: 'state_code' }),
123
+ __metadata("design:type", String)
124
+ ], CalculationLog.prototype, "stateCode", void 0);
125
+ __decorate([
126
+ (0, typeorm_1.Column)({ name: 'sra_offered', default: () => false }),
127
+ __metadata("design:type", String)
128
+ ], CalculationLog.prototype, "sraOffered", void 0);
129
+ __decorate([
130
+ (0, typeorm_1.Column)({ name: 'pricing' }),
131
+ __metadata("design:type", String)
132
+ ], CalculationLog.prototype, "pricing", void 0);
133
+ __decorate([
134
+ (0, typeorm_1.Column)({ name: 'current_model' }),
135
+ __metadata("design:type", String)
136
+ ], CalculationLog.prototype, "currentModel", void 0);
137
+ __decorate([
138
+ (0, typeorm_1.Column)({ name: 'exchange_model' }),
139
+ __metadata("design:type", String)
140
+ ], CalculationLog.prototype, "exchangeModel", void 0);
141
+ __decorate([
142
+ (0, typeorm_1.Column)({ name: 'exchange_model_price', precision: 12, scale: 2 }),
143
+ __metadata("design:type", Number)
144
+ ], CalculationLog.prototype, "exchangeModelPrice", void 0);
145
+ __decorate([
146
+ (0, typeorm_1.Column)({ name: 'exchange_fee', precision: 12, scale: 2 }),
147
+ __metadata("design:type", Number)
148
+ ], CalculationLog.prototype, "exchangeFee", void 0);
149
+ __decorate([
150
+ (0, typeorm_1.Column)({ name: 'exchange_reason' }),
151
+ __metadata("design:type", String)
152
+ ], CalculationLog.prototype, "exchangeReason", void 0);
153
+ __decorate([
154
+ (0, typeorm_1.Column)({ name: 'exchange_type' }),
155
+ __metadata("design:type", String)
156
+ ], CalculationLog.prototype, "exchangeType", void 0);
157
+ __decorate([
158
+ (0, typeorm_1.Column)({ name: 'shipper' }),
159
+ __metadata("design:type", String)
160
+ ], CalculationLog.prototype, "shipper", void 0);
161
+ __decorate([
162
+ (0, typeorm_1.Column)({ name: 'plant_type' }),
163
+ __metadata("design:type", String)
164
+ ], CalculationLog.prototype, "plantType", void 0);
165
+ __decorate([
166
+ (0, typeorm_1.Column)({ name: 'plant' }),
167
+ __metadata("design:type", String)
168
+ ], CalculationLog.prototype, "plant", void 0);
169
+ __decorate([
170
+ (0, typeorm_1.Column)({ name: 'storage_location' }),
171
+ __metadata("design:type", String)
172
+ ], CalculationLog.prototype, "storageLocation", void 0);
173
+ __decorate([
174
+ (0, typeorm_1.Column)({ name: 'incoterms' }),
175
+ __metadata("design:type", String)
176
+ ], CalculationLog.prototype, "incoterms", void 0);
177
+ __decorate([
178
+ (0, typeorm_1.Column)({ name: 'shipping_instructions' }),
179
+ __metadata("design:type", String)
180
+ ], CalculationLog.prototype, "shippingInstructions", void 0);
181
+ __decorate([
182
+ (0, typeorm_1.Column)({ name: 'ship_to_location' }),
183
+ __metadata("design:type", String)
184
+ ], CalculationLog.prototype, "shipToLocation", void 0);
185
+ __decorate([
186
+ (0, typeorm_1.OneToOne)((type) => usr_entity_1.Users),
187
+ (0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
188
+ __metadata("design:type", usr_entity_1.Users)
189
+ ], CalculationLog.prototype, "agent", void 0);
190
+ __decorate([
191
+ (0, typeorm_1.OneToOne)((type) => usr_entity_1.Users),
192
+ (0, typeorm_1.JoinColumn)({ name: 'supervisor_id' }),
193
+ __metadata("design:type", usr_entity_1.Users)
194
+ ], CalculationLog.prototype, "supervisor", void 0);
195
+ __decorate([
196
+ (0, typeorm_1.OneToOne)((type) => usr_entity_1.Users),
197
+ (0, typeorm_1.JoinColumn)({ name: 'approved_by' }),
198
+ __metadata("design:type", usr_entity_1.Users)
199
+ ], CalculationLog.prototype, "approvedBy", void 0);
200
+ CalculationLog = __decorate([
201
+ (0, typeorm_1.Entity)('calculation_log', { schema: 'enr' })
202
+ ], CalculationLog);
203
+ exports.CalculationLog = CalculationLog;
@@ -0,0 +1,5 @@
1
+ export declare class EnrResults {
2
+ id: number;
3
+ result: string;
4
+ lob: string;
5
+ }
@@ -0,0 +1,31 @@
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.EnrResults = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let EnrResults = class EnrResults {
15
+ };
16
+ __decorate([
17
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
18
+ __metadata("design:type", Number)
19
+ ], EnrResults.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ name: 'result' }),
22
+ __metadata("design:type", String)
23
+ ], EnrResults.prototype, "result", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ name: 'lob' }),
26
+ __metadata("design:type", String)
27
+ ], EnrResults.prototype, "lob", void 0);
28
+ EnrResults = __decorate([
29
+ (0, typeorm_1.Entity)('enr_result', { schema: 'tracking' })
30
+ ], EnrResults);
31
+ exports.EnrResults = EnrResults;
@@ -0,0 +1,4 @@
1
+ export declare class EscalationCategory {
2
+ id: number;
3
+ category: string;
4
+ }
@@ -0,0 +1,27 @@
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.EscalationCategory = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let EscalationCategory = class EscalationCategory {
15
+ };
16
+ __decorate([
17
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
18
+ __metadata("design:type", Number)
19
+ ], EscalationCategory.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ name: 'category' }),
22
+ __metadata("design:type", String)
23
+ ], EscalationCategory.prototype, "category", void 0);
24
+ EscalationCategory = __decorate([
25
+ (0, typeorm_1.Entity)('escalation_category', { schema: 'tracking' })
26
+ ], EscalationCategory);
27
+ exports.EscalationCategory = EscalationCategory;
@@ -0,0 +1,10 @@
1
+ import { Timestamp } from 'typeorm';
2
+ import { Users } from './usr.entity';
3
+ import { Escalations } from './escalations.entity';
4
+ export declare class EscalationNotes {
5
+ id: number;
6
+ escalation: Escalations;
7
+ notes: string;
8
+ addedOn: Timestamp;
9
+ addedBy: Users;
10
+ }
@@ -0,0 +1,43 @@
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.EscalationNotes = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const usr_entity_1 = require("./usr.entity");
15
+ const escalations_entity_1 = require("./escalations.entity");
16
+ let EscalationNotes = class EscalationNotes {
17
+ };
18
+ __decorate([
19
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
20
+ __metadata("design:type", Number)
21
+ ], EscalationNotes.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, typeorm_1.OneToOne)((type) => escalations_entity_1.Escalations),
24
+ (0, typeorm_1.JoinColumn)({ name: 'escalation_id' }),
25
+ __metadata("design:type", escalations_entity_1.Escalations)
26
+ ], EscalationNotes.prototype, "escalation", void 0);
27
+ __decorate([
28
+ (0, typeorm_1.Column)({ name: 'notes' }),
29
+ __metadata("design:type", String)
30
+ ], EscalationNotes.prototype, "notes", void 0);
31
+ __decorate([
32
+ (0, typeorm_1.Column)('timestamp', { name: 'added_on' }),
33
+ __metadata("design:type", typeorm_1.Timestamp)
34
+ ], EscalationNotes.prototype, "addedOn", void 0);
35
+ __decorate([
36
+ (0, typeorm_1.OneToOne)((type) => usr_entity_1.Users, { eager: true }),
37
+ (0, typeorm_1.JoinColumn)({ name: 'added_by' }),
38
+ __metadata("design:type", usr_entity_1.Users)
39
+ ], EscalationNotes.prototype, "addedBy", void 0);
40
+ EscalationNotes = __decorate([
41
+ (0, typeorm_1.Entity)('escalation_notes', { schema: 'tracking' })
42
+ ], EscalationNotes);
43
+ exports.EscalationNotes = EscalationNotes;
@@ -0,0 +1,4 @@
1
+ export declare class EscalationOutcome {
2
+ id: number;
3
+ outcome: string;
4
+ }
@@ -0,0 +1,27 @@
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.EscalationOutcome = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let EscalationOutcome = class EscalationOutcome {
15
+ };
16
+ __decorate([
17
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
18
+ __metadata("design:type", Number)
19
+ ], EscalationOutcome.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ name: 'outcome' }),
22
+ __metadata("design:type", String)
23
+ ], EscalationOutcome.prototype, "outcome", void 0);
24
+ EscalationOutcome = __decorate([
25
+ (0, typeorm_1.Entity)('escalation_outcome', { schema: 'tracking' })
26
+ ], EscalationOutcome);
27
+ exports.EscalationOutcome = EscalationOutcome;
@@ -0,0 +1,4 @@
1
+ export declare class EscalationStatus {
2
+ id: number;
3
+ status: string;
4
+ }
@@ -0,0 +1,27 @@
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.EscalationStatus = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let EscalationStatus = class EscalationStatus {
15
+ };
16
+ __decorate([
17
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
18
+ __metadata("design:type", Number)
19
+ ], EscalationStatus.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ name: 'status' }),
22
+ __metadata("design:type", String)
23
+ ], EscalationStatus.prototype, "status", void 0);
24
+ EscalationStatus = __decorate([
25
+ (0, typeorm_1.Entity)('escalation_status', { schema: 'tracking' })
26
+ ], EscalationStatus);
27
+ exports.EscalationStatus = EscalationStatus;
@@ -0,0 +1,5 @@
1
+ export declare class EscalationType {
2
+ id: number;
3
+ riskLevel: string;
4
+ category: string;
5
+ }
@@ -0,0 +1,31 @@
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.EscalationType = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ let EscalationType = class EscalationType {
15
+ };
16
+ __decorate([
17
+ (0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
18
+ __metadata("design:type", Number)
19
+ ], EscalationType.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, typeorm_1.Column)({ name: 'risk_level' }),
22
+ __metadata("design:type", String)
23
+ ], EscalationType.prototype, "riskLevel", void 0);
24
+ __decorate([
25
+ (0, typeorm_1.Column)({ name: 'category' }),
26
+ __metadata("design:type", String)
27
+ ], EscalationType.prototype, "category", void 0);
28
+ EscalationType = __decorate([
29
+ (0, typeorm_1.Entity)('escalation_type', { schema: 'tracking' })
30
+ ], EscalationType);
31
+ exports.EscalationType = EscalationType;
@@ -0,0 +1,32 @@
1
+ import { Timestamp } from 'typeorm';
2
+ import { EscalationType } from './escalation-type.entity';
3
+ import { Users } from './usr.entity';
4
+ import { EscalationNotes } from './escalation-notes.entity';
5
+ import { CallDriverData } from './call-driver-data.entity';
6
+ export declare class Escalations {
7
+ id: number;
8
+ escalationId: string;
9
+ division: string;
10
+ lob: string;
11
+ callDriverData: CallDriverData;
12
+ escalationType: EscalationType;
13
+ escalationTypeTitle: string;
14
+ escalationStatus: string;
15
+ escalationCategory: string;
16
+ escalationOutcome: string;
17
+ escalationReasons: string;
18
+ currentAscBe: string;
19
+ ascInput: string;
20
+ customerExpectations: string;
21
+ recommendedSolution: string;
22
+ validEscalation: string;
23
+ dateCreated: Timestamp;
24
+ dateUpdated: Timestamp;
25
+ dateResolved: Timestamp;
26
+ emailSent: boolean;
27
+ reEscalated: boolean;
28
+ agent: Users;
29
+ reviewer: Users;
30
+ sme: Users;
31
+ escalationNotes: EscalationNotes[];
32
+ }