@uniorganization/uni-lib 4.0.25 → 4.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/index.d.ts +1 -0
- package/dist/entities/index.js +1 -0
- package/dist/entities/kenko.entity.d.ts +37 -0
- package/dist/entities/kenko.entity.js +160 -0
- package/dist/entities/service-center-interaction.entity.d.ts +35 -3
- package/dist/entities/service-center-interaction.entity.js +140 -7
- package/dist/entities/service-center.entity.d.ts +1 -0
- package/dist/entities/service-center.entity.js +4 -0
- package/dist/entities/transactions.entity.d.ts +2 -0
- package/dist/entities/transactions.entity.js +7 -0
- package/dist/utils/parse.util.d.ts +1 -0
- package/dist/utils/parse.util.js +27 -0
- package/package.json +2 -1
package/dist/entities/index.d.ts
CHANGED
package/dist/entities/index.js
CHANGED
|
@@ -100,3 +100,4 @@ __exportStar(require("./service-center-review.entity"), exports);
|
|
|
100
100
|
__exportStar(require("./service-center-phone.entity"), exports);
|
|
101
101
|
__exportStar(require("./service-center-distance-cache.entity"), exports);
|
|
102
102
|
__exportStar(require("./service-center-geocode-cache.entity"), exports);
|
|
103
|
+
__exportStar(require("./kenko.entity"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Transactions } from './transactions.entity';
|
|
2
|
+
export declare class Kenko {
|
|
3
|
+
id: number;
|
|
4
|
+
billToCode: string;
|
|
5
|
+
shipToCode: string;
|
|
6
|
+
shipToName: string;
|
|
7
|
+
soType: string;
|
|
8
|
+
inventoryOrgCode: string;
|
|
9
|
+
orderNumber: string;
|
|
10
|
+
soLineNumber: string;
|
|
11
|
+
prodL1Code: string;
|
|
12
|
+
partsNumber: string;
|
|
13
|
+
itemDescription: string;
|
|
14
|
+
prodL1Desc: string;
|
|
15
|
+
orderQty: number;
|
|
16
|
+
orderDate: Date;
|
|
17
|
+
deliveryNumber: string;
|
|
18
|
+
orderStatusName: string;
|
|
19
|
+
focReason: string;
|
|
20
|
+
focComments: string;
|
|
21
|
+
focReasonDesc: string;
|
|
22
|
+
customerPoNumber: string;
|
|
23
|
+
trackingNumber: string;
|
|
24
|
+
pickingReleaseDate: Date;
|
|
25
|
+
eta: Date;
|
|
26
|
+
actualShipmentDate: Date;
|
|
27
|
+
orderMonth: string;
|
|
28
|
+
prodL1Name: string;
|
|
29
|
+
prodL2Code: string;
|
|
30
|
+
prodL2Name: string;
|
|
31
|
+
prodL3Name: string;
|
|
32
|
+
backOrderQty: number;
|
|
33
|
+
backOrderHoldDate: Date;
|
|
34
|
+
backOrderReleaseDate: Date;
|
|
35
|
+
backOrderStatus: string;
|
|
36
|
+
transaction: Transactions;
|
|
37
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
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.Kenko = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const transactions_entity_1 = require("./transactions.entity");
|
|
15
|
+
let Kenko = class Kenko {
|
|
16
|
+
};
|
|
17
|
+
exports.Kenko = Kenko;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], Kenko.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ name: 'bill_to_code', type: 'varchar', nullable: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Kenko.prototype, "billToCode", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ name: 'ship_to_code', type: 'varchar', nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Kenko.prototype, "shipToCode", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ name: 'ship_to_name', type: 'varchar', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Kenko.prototype, "shipToName", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ name: 'so_type', type: 'varchar', nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Kenko.prototype, "soType", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ name: 'inventory_org_code', type: 'varchar', nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Kenko.prototype, "inventoryOrgCode", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ name: 'order_number', type: 'varchar', nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Kenko.prototype, "orderNumber", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ name: 'so_line_number', type: 'varchar', nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Kenko.prototype, "soLineNumber", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ name: 'prod_l1_code', type: 'varchar', nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], Kenko.prototype, "prodL1Code", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ name: 'parts_number', type: 'varchar', nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], Kenko.prototype, "partsNumber", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ name: 'item_description', type: 'varchar', nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], Kenko.prototype, "itemDescription", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ name: 'prod_l1_desc', type: 'varchar', nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], Kenko.prototype, "prodL1Desc", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ name: 'order_qty', type: 'integer', nullable: true }),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], Kenko.prototype, "orderQty", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ name: 'order_date', type: 'date', nullable: true }),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], Kenko.prototype, "orderDate", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ name: 'delivery_number', type: 'varchar', nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], Kenko.prototype, "deliveryNumber", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ name: 'order_status_name', type: 'varchar', nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], Kenko.prototype, "orderStatusName", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)({ name: 'foc_reason', type: 'varchar', nullable: true }),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], Kenko.prototype, "focReason", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)({ name: 'foc_comments', type: 'text', nullable: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], Kenko.prototype, "focComments", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)({ name: 'foc_reason_desc', type: 'varchar', nullable: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], Kenko.prototype, "focReasonDesc", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({ name: 'customer_po_number', type: 'varchar', nullable: true }),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], Kenko.prototype, "customerPoNumber", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)({ name: 'tracking_number', type: 'varchar', nullable: true }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], Kenko.prototype, "trackingNumber", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)({ name: 'picking_release_date', type: 'date', nullable: true }),
|
|
104
|
+
__metadata("design:type", Date)
|
|
105
|
+
], Kenko.prototype, "pickingReleaseDate", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)({ name: 'eta', type: 'date', nullable: true }),
|
|
108
|
+
__metadata("design:type", Date)
|
|
109
|
+
], Kenko.prototype, "eta", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)({ name: 'actual_shipment_date', type: 'date', nullable: true }),
|
|
112
|
+
__metadata("design:type", Date)
|
|
113
|
+
], Kenko.prototype, "actualShipmentDate", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)({ name: 'order_month', type: 'varchar', nullable: true }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], Kenko.prototype, "orderMonth", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)({ name: 'prod_l1_name', type: 'varchar', nullable: true }),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], Kenko.prototype, "prodL1Name", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)({ name: 'prod_l2_code', type: 'varchar', nullable: true }),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], Kenko.prototype, "prodL2Code", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)({ name: 'prod_l2_name', type: 'varchar', nullable: true }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], Kenko.prototype, "prodL2Name", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)({ name: 'prod_l3_name', type: 'varchar', nullable: true }),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], Kenko.prototype, "prodL3Name", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)({ name: 'back_order_qty', type: 'integer', nullable: true }),
|
|
136
|
+
__metadata("design:type", Number)
|
|
137
|
+
], Kenko.prototype, "backOrderQty", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)({ name: 'back_order_hold_date', type: 'date', nullable: true }),
|
|
140
|
+
__metadata("design:type", Date)
|
|
141
|
+
], Kenko.prototype, "backOrderHoldDate", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)({ name: 'back_order_release_date', type: 'date', nullable: true }),
|
|
144
|
+
__metadata("design:type", Date)
|
|
145
|
+
], Kenko.prototype, "backOrderReleaseDate", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)({ name: 'back_order_status', type: 'varchar', nullable: true }),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], Kenko.prototype, "backOrderStatus", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typeorm_1.ManyToOne)(() => transactions_entity_1.Transactions),
|
|
152
|
+
(0, typeorm_1.JoinColumn)({
|
|
153
|
+
name: 'customer_po_number',
|
|
154
|
+
referencedColumnName: 'transactionId',
|
|
155
|
+
}),
|
|
156
|
+
__metadata("design:type", transactions_entity_1.Transactions)
|
|
157
|
+
], Kenko.prototype, "transaction", void 0);
|
|
158
|
+
exports.Kenko = Kenko = __decorate([
|
|
159
|
+
(0, typeorm_1.Entity)('kenko', { schema: 'enr' })
|
|
160
|
+
], Kenko);
|
|
@@ -1,13 +1,45 @@
|
|
|
1
|
+
import { Point } from 'geojson';
|
|
1
2
|
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
|
-
|
|
9
|
+
serviceCenterServicerAccount: string;
|
|
10
|
+
serviceCenterSystem: string;
|
|
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;
|
|
41
|
+
clientAddress: string;
|
|
42
|
+
serviceCenterGeolocation: Point;
|
|
11
43
|
agent: Users;
|
|
12
44
|
agentId: number;
|
|
13
45
|
distance: number;
|
|
@@ -12,7 +12,6 @@ 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");
|
|
16
15
|
const usr_entity_1 = require("./usr.entity");
|
|
17
16
|
const service_center_geocode_cache_entity_1 = require("./service-center-geocode-cache.entity");
|
|
18
17
|
let ServiceCenterInteractionEntity = class ServiceCenterInteractionEntity {
|
|
@@ -32,14 +31,148 @@ __decorate([
|
|
|
32
31
|
__metadata("design:type", Number)
|
|
33
32
|
], ServiceCenterInteractionEntity.prototype, "callDriverDataId", void 0);
|
|
34
33
|
__decorate([
|
|
35
|
-
(0, typeorm_1.
|
|
36
|
-
(
|
|
37
|
-
|
|
38
|
-
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'service_center_servicer_account', type: 'varchar', nullable: true }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], ServiceCenterInteractionEntity.prototype, "serviceCenterServicerAccount", void 0);
|
|
37
|
+
__decorate([
|
|
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);
|
|
39
77
|
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)({ name: '
|
|
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);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ name: 'service_center_lg_score', type: 'integer', nullable: true }),
|
|
41
91
|
__metadata("design:type", Number)
|
|
42
|
-
], ServiceCenterInteractionEntity.prototype, "
|
|
92
|
+
], ServiceCenterInteractionEntity.prototype, "serviceCenterLgScore", void 0);
|
|
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);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.Column)({ name: 'client_address', type: 'text', nullable: true }),
|
|
163
|
+
__metadata("design:type", String)
|
|
164
|
+
], 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);
|
|
43
176
|
__decorate([
|
|
44
177
|
(0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
|
|
45
178
|
(0, typeorm_1.JoinColumn)({ name: 'agent_id' }),
|
|
@@ -161,6 +161,10 @@ __decorate([
|
|
|
161
161
|
(0, typeorm_1.Column)({ name: 'agent_id', nullable: true }),
|
|
162
162
|
__metadata("design:type", Number)
|
|
163
163
|
], ServiceCenterEntity.prototype, "agentId", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'date_created', type: 'timestamp' }),
|
|
166
|
+
__metadata("design:type", Date)
|
|
167
|
+
], ServiceCenterEntity.prototype, "dateCreated", void 0);
|
|
164
168
|
__decorate([
|
|
165
169
|
(0, typeorm_1.UpdateDateColumn)({ name: 'date_updated', type: 'timestamp' }),
|
|
166
170
|
__metadata("design:type", Date)
|
|
@@ -2,6 +2,7 @@ import { Timestamp } from 'typeorm';
|
|
|
2
2
|
import { CallDriverData } from './call-driver-data.entity';
|
|
3
3
|
import { ActiveLoad } from './active-loads.entity';
|
|
4
4
|
import { DailyPaymentStatus } from './daily-payment-status.entity';
|
|
5
|
+
import { Kenko } from './kenko.entity';
|
|
5
6
|
export declare class Transactions {
|
|
6
7
|
id: number;
|
|
7
8
|
transactionId: string;
|
|
@@ -29,4 +30,5 @@ export declare class Transactions {
|
|
|
29
30
|
callDrivers: CallDriverData[];
|
|
30
31
|
dailyPaymentStatus: DailyPaymentStatus[];
|
|
31
32
|
activeLoads: ActiveLoad[];
|
|
33
|
+
kenkoRecords: Kenko[];
|
|
32
34
|
}
|
|
@@ -14,6 +14,7 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
const call_driver_data_entity_1 = require("./call-driver-data.entity");
|
|
15
15
|
const active_loads_entity_1 = require("./active-loads.entity");
|
|
16
16
|
const daily_payment_status_entity_1 = require("./daily-payment-status.entity");
|
|
17
|
+
const kenko_entity_1 = require("./kenko.entity");
|
|
17
18
|
let Transactions = class Transactions {
|
|
18
19
|
};
|
|
19
20
|
exports.Transactions = Transactions;
|
|
@@ -127,6 +128,12 @@ __decorate([
|
|
|
127
128
|
}),
|
|
128
129
|
__metadata("design:type", Array)
|
|
129
130
|
], Transactions.prototype, "activeLoads", void 0);
|
|
131
|
+
__decorate([
|
|
132
|
+
(0, typeorm_1.OneToMany)(() => kenko_entity_1.Kenko, (kenko) => kenko.transaction, {
|
|
133
|
+
cascade: ['insert', 'update', 'remove'],
|
|
134
|
+
}),
|
|
135
|
+
__metadata("design:type", Array)
|
|
136
|
+
], Transactions.prototype, "kenkoRecords", void 0);
|
|
130
137
|
exports.Transactions = Transactions = __decorate([
|
|
131
138
|
(0, typeorm_1.Entity)('transactions', { schema: 'tracking' })
|
|
132
139
|
], Transactions);
|
package/dist/utils/parse.util.js
CHANGED
|
@@ -18,6 +18,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
exports.ParseUtils = void 0;
|
|
19
19
|
const common_1 = require("@nestjs/common");
|
|
20
20
|
const csv = require("csvtojson");
|
|
21
|
+
const xlsx = require("xlsx");
|
|
21
22
|
let ParseUtils = class ParseUtils {
|
|
22
23
|
parseCsvDataToJson(file) {
|
|
23
24
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -25,6 +26,32 @@ let ParseUtils = class ParseUtils {
|
|
|
25
26
|
return data;
|
|
26
27
|
});
|
|
27
28
|
}
|
|
29
|
+
parseExcelDataToJson(file) {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
var _a;
|
|
32
|
+
const workbook = xlsx.readFile(file.path, { raw: false, cellDates: false });
|
|
33
|
+
const firstSheetName = (_a = workbook.SheetNames) === null || _a === void 0 ? void 0 : _a[0];
|
|
34
|
+
if (!firstSheetName) {
|
|
35
|
+
return [];
|
|
36
|
+
}
|
|
37
|
+
const worksheet = workbook.Sheets[firstSheetName];
|
|
38
|
+
const data = xlsx.utils.sheet_to_json(worksheet, {
|
|
39
|
+
defval: null,
|
|
40
|
+
raw: false,
|
|
41
|
+
blankrows: false,
|
|
42
|
+
});
|
|
43
|
+
return data.map((row) => Object.keys(row).reduce((obj, key) => {
|
|
44
|
+
const value = row[key];
|
|
45
|
+
if (typeof value !== 'string') {
|
|
46
|
+
obj[key] = value;
|
|
47
|
+
return obj;
|
|
48
|
+
}
|
|
49
|
+
const trimmed = value.trim();
|
|
50
|
+
obj[key] = trimmed === '' || trimmed === '<NULL>' ? null : trimmed;
|
|
51
|
+
return obj;
|
|
52
|
+
}, {}));
|
|
53
|
+
});
|
|
54
|
+
}
|
|
28
55
|
};
|
|
29
56
|
exports.ParseUtils = ParseUtils;
|
|
30
57
|
exports.ParseUtils = ParseUtils = __decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniorganization/uni-lib",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.27",
|
|
4
4
|
"description": "UNI Library",
|
|
5
5
|
"author": "Jhomiguel",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"passport-jwt": "^4.0.1",
|
|
35
35
|
"rxjs": "^7.8.1",
|
|
36
36
|
"swagger-ui-express": "^5.0.1",
|
|
37
|
+
"xlsx": "^0.18.5",
|
|
37
38
|
"typeorm": "^0.3.20"
|
|
38
39
|
},
|
|
39
40
|
"devDependencies": {
|