@uniorganization/uni-lib 1.0.0 → 1.0.4
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/config/db.config.js +4 -0
- package/dist/config/index.d.ts +1 -0
- package/dist/config/index.js +1 -0
- package/dist/config/swagger.config.d.ts +1 -0
- package/dist/config/swagger.config.js +14 -0
- package/dist/entities/index.d.ts +54 -0
- package/dist/entities/index.js +54 -0
- package/dist/entities/vw-escalation-age.d.ts +12 -0
- package/dist/entities/vw-escalation-age.js +62 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/modules/auth.module.d.ts +0 -0
- package/dist/modules/auth.module.js +0 -0
- package/dist/modules/index.d.ts +0 -0
- package/dist/modules/index.js +0 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.js +14 -0
- package/dist/utils/object.utils.d.ts +2 -0
- package/dist/utils/object.utils.js +19 -0
- package/dist/utils/string.utils.d.ts +5 -0
- package/dist/utils/string.utils.js +118 -0
- package/package.json +3 -1
package/dist/config/db.config.js
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TypeOrmConfigService = void 0;
|
|
4
4
|
const path_1 = require("path");
|
|
5
|
+
const config_entity_1 = require("../entities/config.entity");
|
|
6
|
+
const vw_escalation_age_1 = require("../entities/vw-escalation-age");
|
|
5
7
|
class TypeOrmConfigService {
|
|
6
8
|
createTypeOrmOptions() {
|
|
7
9
|
return {
|
|
@@ -16,6 +18,8 @@ class TypeOrmConfigService {
|
|
|
16
18
|
entities: [
|
|
17
19
|
(0, path_1.join)(__dirname, '/../*/*.entity{.ts,.js}'),
|
|
18
20
|
(0, path_1.join)(__dirname, '/../*/*/*.entity{.ts,.js}'),
|
|
21
|
+
config_entity_1.Config,
|
|
22
|
+
vw_escalation_age_1.VwEscalationAge,
|
|
19
23
|
],
|
|
20
24
|
synchronize: false,
|
|
21
25
|
};
|
package/dist/config/index.d.ts
CHANGED
package/dist/config/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function setUpSwagger(app: any): void;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.setUpSwagger = void 0;
|
|
4
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
5
|
+
function setUpSwagger(app) {
|
|
6
|
+
const options = new swagger_1.DocumentBuilder()
|
|
7
|
+
.setTitle('UNI')
|
|
8
|
+
.setDescription('UNI API')
|
|
9
|
+
.setVersion('1.0.0')
|
|
10
|
+
.build();
|
|
11
|
+
const document = swagger_1.SwaggerModule.createDocument(app, options);
|
|
12
|
+
swagger_1.SwaggerModule.setup('api', app, document);
|
|
13
|
+
}
|
|
14
|
+
exports.setUpSwagger = setUpSwagger;
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
export * from './applications.entity';
|
|
2
|
+
export * from './apps-user-id.entity';
|
|
3
|
+
export * from './blacklist.entity';
|
|
4
|
+
export * from './call-driver-data.entity';
|
|
5
|
+
export * from './call-drivers.entity';
|
|
6
|
+
export * from './cb-completed-reasons.entity';
|
|
7
|
+
export * from './change-alert.entity';
|
|
8
|
+
export * from './config.entity';
|
|
9
|
+
export * from './depreciation-categories.entity';
|
|
10
|
+
export * from './depreciation-details.entity';
|
|
11
|
+
export * from './detail-type.entity';
|
|
12
|
+
export * from './enr-calculation-log.entity';
|
|
13
|
+
export * from './enr-results.entity';
|
|
14
|
+
export * from './escalation-category.entity';
|
|
15
|
+
export * from './escalation-notes.entity';
|
|
16
|
+
export * from './escalation-outcome.entity';
|
|
17
|
+
export * from './escalation-status.entity';
|
|
18
|
+
export * from './escalation-type.entity';
|
|
19
|
+
export * from './escalations.entity';
|
|
20
|
+
export * from './evaluation-data.entity';
|
|
21
|
+
export * from './evaluation-questions.entity';
|
|
22
|
+
export * from './evaluations.entity';
|
|
23
|
+
export * from './file-contents.entity';
|
|
24
|
+
export * from './file-upload.entity';
|
|
25
|
+
export * from './form-definition.entity';
|
|
26
|
+
export * from './form-fields.entity';
|
|
27
|
+
export * from './form.entity';
|
|
28
|
+
export * from './incident-notes.entity';
|
|
29
|
+
export * from './incident.entity';
|
|
30
|
+
export * from './incoterms.entity';
|
|
31
|
+
export * from './index';
|
|
32
|
+
export * from './inventory.entity';
|
|
33
|
+
export * from './it-info.entity';
|
|
34
|
+
export * from './lob-assignment.entity';
|
|
35
|
+
export * from './lob-call-drivers.entity';
|
|
36
|
+
export * from './location-addresses.entity';
|
|
37
|
+
export * from './ltp-history-transactions.entity';
|
|
38
|
+
export * from './ltp-stm-roster.entity';
|
|
2
39
|
export * from './modules-roles.entity';
|
|
40
|
+
export * from './offphone-activities.entity';
|
|
41
|
+
export * from './onsite-ordering.entity';
|
|
42
|
+
export * from './ost.entity';
|
|
43
|
+
export * from './otwe-offers.entity';
|
|
44
|
+
export * from './product-codes.entity';
|
|
45
|
+
export * from './question-group.entity';
|
|
46
|
+
export * from './questions.entity';
|
|
47
|
+
export * from './regional-service-mgr.entity';
|
|
3
48
|
export * from './role-definition.entity';
|
|
4
49
|
export * from './role-privileges.entity';
|
|
50
|
+
export * from './roster-personnel.entity';
|
|
51
|
+
export * from './roster.entity';
|
|
52
|
+
export * from './sap-raw-data.entity';
|
|
53
|
+
export * from './service-type.entity';
|
|
54
|
+
export * from './state.entity';
|
|
55
|
+
export * from './template.entity';
|
|
56
|
+
export * from './transactions.entity';
|
|
5
57
|
export * from './user-roles.entity';
|
|
6
58
|
export * from './usr.entity';
|
|
59
|
+
export * from './vw-escalation-age';
|
|
60
|
+
export * from './warranty-category.entity';
|
package/dist/entities/index.js
CHANGED
|
@@ -11,8 +11,62 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./applications.entity"), exports);
|
|
14
|
+
__exportStar(require("./apps-user-id.entity"), exports);
|
|
15
|
+
__exportStar(require("./blacklist.entity"), exports);
|
|
16
|
+
__exportStar(require("./call-driver-data.entity"), exports);
|
|
17
|
+
__exportStar(require("./call-drivers.entity"), exports);
|
|
18
|
+
__exportStar(require("./cb-completed-reasons.entity"), exports);
|
|
19
|
+
__exportStar(require("./change-alert.entity"), exports);
|
|
20
|
+
__exportStar(require("./config.entity"), exports);
|
|
21
|
+
__exportStar(require("./depreciation-categories.entity"), exports);
|
|
22
|
+
__exportStar(require("./depreciation-details.entity"), exports);
|
|
23
|
+
__exportStar(require("./detail-type.entity"), exports);
|
|
24
|
+
__exportStar(require("./enr-calculation-log.entity"), exports);
|
|
25
|
+
__exportStar(require("./enr-results.entity"), exports);
|
|
26
|
+
__exportStar(require("./escalation-category.entity"), exports);
|
|
27
|
+
__exportStar(require("./escalation-notes.entity"), exports);
|
|
28
|
+
__exportStar(require("./escalation-outcome.entity"), exports);
|
|
29
|
+
__exportStar(require("./escalation-status.entity"), exports);
|
|
30
|
+
__exportStar(require("./escalation-type.entity"), exports);
|
|
31
|
+
__exportStar(require("./escalations.entity"), exports);
|
|
32
|
+
__exportStar(require("./evaluation-data.entity"), exports);
|
|
33
|
+
__exportStar(require("./evaluation-questions.entity"), exports);
|
|
34
|
+
__exportStar(require("./evaluations.entity"), exports);
|
|
35
|
+
__exportStar(require("./file-contents.entity"), exports);
|
|
36
|
+
__exportStar(require("./file-upload.entity"), exports);
|
|
37
|
+
__exportStar(require("./form-definition.entity"), exports);
|
|
38
|
+
__exportStar(require("./form-fields.entity"), exports);
|
|
39
|
+
__exportStar(require("./form.entity"), exports);
|
|
40
|
+
__exportStar(require("./incident-notes.entity"), exports);
|
|
41
|
+
__exportStar(require("./incident.entity"), exports);
|
|
42
|
+
__exportStar(require("./incoterms.entity"), exports);
|
|
43
|
+
__exportStar(require("./index"), exports);
|
|
44
|
+
__exportStar(require("./inventory.entity"), exports);
|
|
45
|
+
__exportStar(require("./it-info.entity"), exports);
|
|
46
|
+
__exportStar(require("./lob-assignment.entity"), exports);
|
|
47
|
+
__exportStar(require("./lob-call-drivers.entity"), exports);
|
|
48
|
+
__exportStar(require("./location-addresses.entity"), exports);
|
|
49
|
+
__exportStar(require("./ltp-history-transactions.entity"), exports);
|
|
50
|
+
__exportStar(require("./ltp-stm-roster.entity"), exports);
|
|
14
51
|
__exportStar(require("./modules-roles.entity"), exports);
|
|
52
|
+
__exportStar(require("./offphone-activities.entity"), exports);
|
|
53
|
+
__exportStar(require("./onsite-ordering.entity"), exports);
|
|
54
|
+
__exportStar(require("./ost.entity"), exports);
|
|
55
|
+
__exportStar(require("./otwe-offers.entity"), exports);
|
|
56
|
+
__exportStar(require("./product-codes.entity"), exports);
|
|
57
|
+
__exportStar(require("./question-group.entity"), exports);
|
|
58
|
+
__exportStar(require("./questions.entity"), exports);
|
|
59
|
+
__exportStar(require("./regional-service-mgr.entity"), exports);
|
|
15
60
|
__exportStar(require("./role-definition.entity"), exports);
|
|
16
61
|
__exportStar(require("./role-privileges.entity"), exports);
|
|
62
|
+
__exportStar(require("./roster-personnel.entity"), exports);
|
|
63
|
+
__exportStar(require("./roster.entity"), exports);
|
|
64
|
+
__exportStar(require("./sap-raw-data.entity"), exports);
|
|
65
|
+
__exportStar(require("./service-type.entity"), exports);
|
|
66
|
+
__exportStar(require("./state.entity"), exports);
|
|
67
|
+
__exportStar(require("./template.entity"), exports);
|
|
68
|
+
__exportStar(require("./transactions.entity"), exports);
|
|
17
69
|
__exportStar(require("./user-roles.entity"), exports);
|
|
18
70
|
__exportStar(require("./usr.entity"), exports);
|
|
71
|
+
__exportStar(require("./vw-escalation-age"), exports);
|
|
72
|
+
__exportStar(require("./warranty-category.entity"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class VwEscalationAge {
|
|
2
|
+
riskLevel: string;
|
|
3
|
+
category: string;
|
|
4
|
+
division: string;
|
|
5
|
+
lob: string;
|
|
6
|
+
escalationStatus: string;
|
|
7
|
+
zeroToThree: number;
|
|
8
|
+
fourToSeven: number;
|
|
9
|
+
eightToFourteen: number;
|
|
10
|
+
fiveteenToThirty: number;
|
|
11
|
+
thirtyPlus: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.VwEscalationAge = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let VwEscalationAge = class VwEscalationAge {
|
|
15
|
+
};
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, typeorm_1.ViewColumn)(),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], VwEscalationAge.prototype, "riskLevel", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, typeorm_1.ViewColumn)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], VwEscalationAge.prototype, "category", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, typeorm_1.ViewColumn)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], VwEscalationAge.prototype, "division", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.ViewColumn)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], VwEscalationAge.prototype, "lob", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.ViewColumn)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], VwEscalationAge.prototype, "escalationStatus", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ViewColumn)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], VwEscalationAge.prototype, "zeroToThree", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.ViewColumn)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], VwEscalationAge.prototype, "fourToSeven", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.ViewColumn)(),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], VwEscalationAge.prototype, "eightToFourteen", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.ViewColumn)(),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], VwEscalationAge.prototype, "fiveteenToThirty", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.ViewColumn)(),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], VwEscalationAge.prototype, "thirtyPlus", void 0);
|
|
56
|
+
VwEscalationAge = __decorate([
|
|
57
|
+
(0, typeorm_1.ViewEntity)({
|
|
58
|
+
name: 'vw_escalation_age',
|
|
59
|
+
schema: 'tracking',
|
|
60
|
+
})
|
|
61
|
+
], VwEscalationAge);
|
|
62
|
+
exports.VwEscalationAge = VwEscalationAge;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -10,5 +10,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./entities
|
|
13
|
+
__exportStar(require("./entities"), exports);
|
|
14
14
|
__exportStar(require("./config"), exports);
|
|
15
|
+
__exportStar(require("./utils"), exports);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./object.utils"), exports);
|
|
14
|
+
__exportStar(require("./string.utils"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseObjArrToPlainArr = exports.objValsToString = void 0;
|
|
4
|
+
const objValsToString = (obj) => {
|
|
5
|
+
Object.keys(obj).forEach(function (key) {
|
|
6
|
+
typeof obj[key] == 'object'
|
|
7
|
+
? this.objValsToString(obj[key])
|
|
8
|
+
: (obj[key] = String(obj[key]).trim());
|
|
9
|
+
});
|
|
10
|
+
return obj;
|
|
11
|
+
};
|
|
12
|
+
exports.objValsToString = objValsToString;
|
|
13
|
+
const parseObjArrToPlainArr = (objs) => {
|
|
14
|
+
const arrs = Object.values(objs).map((data) => {
|
|
15
|
+
return [...Object.values(data)];
|
|
16
|
+
});
|
|
17
|
+
return [].concat.apply([], arrs);
|
|
18
|
+
};
|
|
19
|
+
exports.parseObjArrToPlainArr = parseObjArrToPlainArr;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.sortCsvList = exports.clean = exports.parsedCvs = exports.formatDate = void 0;
|
|
13
|
+
const clean = value => {
|
|
14
|
+
try {
|
|
15
|
+
value = value.trim();
|
|
16
|
+
if (value === undefined ||
|
|
17
|
+
value === null ||
|
|
18
|
+
value === '' ||
|
|
19
|
+
value === '#' ||
|
|
20
|
+
value === '-') {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
catch (error) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return value.trim();
|
|
28
|
+
};
|
|
29
|
+
exports.clean = clean;
|
|
30
|
+
const formatDate = date => {
|
|
31
|
+
try {
|
|
32
|
+
if (date.indexOf('#') > -1) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return new Date(date).toLocaleDateString();
|
|
36
|
+
}
|
|
37
|
+
catch (error) { }
|
|
38
|
+
return null;
|
|
39
|
+
};
|
|
40
|
+
exports.formatDate = formatDate;
|
|
41
|
+
const sortCsvList = (ob) => {
|
|
42
|
+
try {
|
|
43
|
+
return ob.split(",").sort((a, b) => a.localeCompare(b)).join(",");
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
return ob;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
exports.sortCsvList = sortCsvList;
|
|
50
|
+
const parsedCvs = (ob, file) => __awaiter(void 0, void 0, void 0, function* () {
|
|
51
|
+
try {
|
|
52
|
+
let id = 0;
|
|
53
|
+
let fileContents = ob.data.map(row => {
|
|
54
|
+
if (clean(row[0]) !== null) {
|
|
55
|
+
return {
|
|
56
|
+
fileId: id,
|
|
57
|
+
transactionId: clean(row[0]),
|
|
58
|
+
pendingTatCal: clean(row[1]),
|
|
59
|
+
period: clean(row[2]),
|
|
60
|
+
assignAging: clean(row[3]),
|
|
61
|
+
reasonAging: clean(row[4]),
|
|
62
|
+
sapCreatedId: clean(row[5]),
|
|
63
|
+
postingDate: (0, exports.formatDate)(row[6]),
|
|
64
|
+
firstAscAssignDate: (0, exports.formatDate)(row[7]),
|
|
65
|
+
acknowledgeDate: (0, exports.formatDate)(row[8]),
|
|
66
|
+
ascAssignedDate: (0, exports.formatDate)(row[9]),
|
|
67
|
+
ccFirstAppDate: (0, exports.formatDate)(row[10]),
|
|
68
|
+
firstAppDateAsc: (0, exports.formatDate)(row[11]),
|
|
69
|
+
ascLastAppointment: (0, exports.formatDate)(row[12]),
|
|
70
|
+
scheduleWithin: clean(row[13]),
|
|
71
|
+
partsStatus: clean(row[14]),
|
|
72
|
+
sStatus: clean(row[15]),
|
|
73
|
+
roAcct: clean(row[16]),
|
|
74
|
+
centerType: clean(row[17]),
|
|
75
|
+
nAscRsm2015: clean(row[18]),
|
|
76
|
+
serviceCenter: clean(row[19]),
|
|
77
|
+
serviceCenter2: clean(row[20]),
|
|
78
|
+
nHq8ProductGro: clean(row[21]),
|
|
79
|
+
productCategory: clean(row[22]),
|
|
80
|
+
localServiceProduct: clean(row[23]),
|
|
81
|
+
localServiceProduct2: clean(row[24]),
|
|
82
|
+
serviceModel: clean(row[25]),
|
|
83
|
+
serialNumeric: clean(row[26]),
|
|
84
|
+
responsiblePerson: clean(row[27]),
|
|
85
|
+
customerRegion: clean(row[28]),
|
|
86
|
+
customerZipCode: clean(row[29]),
|
|
87
|
+
cbsaName: clean(row[30]),
|
|
88
|
+
customer: clean(row[31]),
|
|
89
|
+
customerTelNo: clean(row[32]),
|
|
90
|
+
scsiCoverage: clean(row[33]),
|
|
91
|
+
redoTicketNo: clean(row[34]),
|
|
92
|
+
inOutWarrantyIndicator: clean(row[35]),
|
|
93
|
+
status: clean(row[36]),
|
|
94
|
+
statusReason: clean(row[37]),
|
|
95
|
+
serviceType: clean(row[38]),
|
|
96
|
+
symptomCode2: clean(row[39]),
|
|
97
|
+
symptomCode3: clean(row[40]),
|
|
98
|
+
symptomCode4: clean(row[41]),
|
|
99
|
+
dataOriginInboundOutbound: clean(row[42]),
|
|
100
|
+
serviceEngineer: clean(row[43]),
|
|
101
|
+
techId: clean(row[44]),
|
|
102
|
+
contactRegion: clean(row[45]),
|
|
103
|
+
contactRegion2: clean(row[46]),
|
|
104
|
+
placeOfPurchase: clean(row[47]),
|
|
105
|
+
recall: clean(row[48]),
|
|
106
|
+
wtyExceptionCode: clean(row[49]),
|
|
107
|
+
actualTrCount: clean(row[50]),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
fileContents.splice(0, 1);
|
|
112
|
+
return fileContents;
|
|
113
|
+
}
|
|
114
|
+
catch (error) {
|
|
115
|
+
console.error(error);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
exports.parsedCvs = parsedCvs;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniorganization/uni-lib",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "UNI Library",
|
|
5
5
|
"author": "Jhomiguel",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"@nestjs/common": "^8.2.3"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
+
"@nestjs/swagger": "^5.1.5",
|
|
28
|
+
"swagger-ui-express": "^4.1.6",
|
|
27
29
|
"typeorm": "^0.2.41"
|
|
28
30
|
},
|
|
29
31
|
"devDependencies": {
|