@uniorganization/uni-lib 4.0.24 → 4.0.26
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/transactions.entity.d.ts +2 -0
- package/dist/entities/transactions.entity.js +7 -0
- package/dist/modules/common/index.d.ts +1 -0
- package/dist/modules/common/index.js +1 -0
- package/dist/modules/common/jwt-auth.guard.d.ts +4 -1
- package/dist/modules/common/jwt-auth.guard.js +16 -2
- package/dist/modules/common/skip-jwt-auth.decorator.d.ts +2 -0
- package/dist/modules/common/skip-jwt-auth.decorator.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);
|
|
@@ -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);
|
|
@@ -2,6 +2,7 @@ export * from './common.module';
|
|
|
2
2
|
export * from './jwt-auth.guard';
|
|
3
3
|
export * from './jwt.strategy';
|
|
4
4
|
export * from './logged-user.decorator';
|
|
5
|
+
export * from './skip-jwt-auth.decorator';
|
|
5
6
|
export * from './shared-db.module';
|
|
6
7
|
export * from './shared-db-connection.provider';
|
|
7
8
|
export * from './shared-db-repositories.provider';
|
|
@@ -18,6 +18,7 @@ __exportStar(require("./common.module"), exports);
|
|
|
18
18
|
__exportStar(require("./jwt-auth.guard"), exports);
|
|
19
19
|
__exportStar(require("./jwt.strategy"), exports);
|
|
20
20
|
__exportStar(require("./logged-user.decorator"), exports);
|
|
21
|
+
__exportStar(require("./skip-jwt-auth.decorator"), exports);
|
|
21
22
|
__exportStar(require("./shared-db.module"), exports);
|
|
22
23
|
__exportStar(require("./shared-db-connection.provider"), exports);
|
|
23
24
|
__exportStar(require("./shared-db-repositories.provider"), exports);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import { Reflector } from '@nestjs/core';
|
|
1
2
|
declare const JwtAuthGuard_base: import("@nestjs/passport").Type<import("@nestjs/passport").IAuthGuard>;
|
|
2
3
|
export declare class JwtAuthGuard extends JwtAuthGuard_base {
|
|
3
|
-
|
|
4
|
+
private readonly reflector;
|
|
5
|
+
constructor(reflector: Reflector);
|
|
6
|
+
handleRequest(err: any, user: any, info: any, context: any): any;
|
|
4
7
|
}
|
|
5
8
|
export {};
|
|
@@ -5,12 +5,25 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
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
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
12
|
exports.JwtAuthGuard = void 0;
|
|
10
13
|
const common_1 = require("@nestjs/common");
|
|
14
|
+
const core_1 = require("@nestjs/core");
|
|
11
15
|
const passport_1 = require("@nestjs/passport");
|
|
16
|
+
const skip_jwt_auth_decorator_1 = require("./skip-jwt-auth.decorator");
|
|
12
17
|
let JwtAuthGuard = class JwtAuthGuard extends (0, passport_1.AuthGuard)('jwt') {
|
|
13
|
-
|
|
18
|
+
constructor(reflector) {
|
|
19
|
+
super();
|
|
20
|
+
this.reflector = reflector;
|
|
21
|
+
}
|
|
22
|
+
handleRequest(err, user, info, context) {
|
|
23
|
+
const shouldSkip = this.reflector.getAllAndOverride(skip_jwt_auth_decorator_1.SKIP_JWT_AUTH_KEY, [context.getHandler(), context.getClass()]);
|
|
24
|
+
if (shouldSkip) {
|
|
25
|
+
return user || true;
|
|
26
|
+
}
|
|
14
27
|
const enableJWT = JSON.parse(process.env.JWT_ENABLE);
|
|
15
28
|
if (enableJWT) {
|
|
16
29
|
if (err || !user) {
|
|
@@ -22,5 +35,6 @@ let JwtAuthGuard = class JwtAuthGuard extends (0, passport_1.AuthGuard)('jwt') {
|
|
|
22
35
|
};
|
|
23
36
|
exports.JwtAuthGuard = JwtAuthGuard;
|
|
24
37
|
exports.JwtAuthGuard = JwtAuthGuard = __decorate([
|
|
25
|
-
(0, common_1.Injectable)()
|
|
38
|
+
(0, common_1.Injectable)(),
|
|
39
|
+
__metadata("design:paramtypes", [core_1.Reflector])
|
|
26
40
|
], JwtAuthGuard);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SkipJwtAuth = exports.SKIP_JWT_AUTH_KEY = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
exports.SKIP_JWT_AUTH_KEY = 'skipJwtAuth';
|
|
6
|
+
const SkipJwtAuth = () => (0, common_1.SetMetadata)(exports.SKIP_JWT_AUTH_KEY, true);
|
|
7
|
+
exports.SkipJwtAuth = SkipJwtAuth;
|
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.26",
|
|
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": {
|