@uniorganization/uni-lib 1.1.71 → 1.1.73
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.d.ts +4 -4
- package/dist/config/db.config.js +28 -28
- package/dist/config/index.d.ts +3 -3
- package/dist/config/index.js +15 -15
- package/dist/config/shared-db.config.d.ts +4 -4
- package/dist/config/shared-db.config.js +28 -28
- package/dist/config/swagger.config.d.ts +1 -1
- package/dist/config/swagger.config.js +14 -14
- package/dist/entities/active-loads.entity.d.ts +18 -18
- package/dist/entities/active-loads.entity.js +84 -84
- package/dist/entities/applications.entity.d.ts +9 -9
- package/dist/entities/applications.entity.js +41 -41
- package/dist/entities/apps-user-id.entity.d.ts +20 -20
- package/dist/entities/apps-user-id.entity.js +91 -91
- package/dist/entities/audit.entity.d.ts +19 -19
- package/dist/entities/audit.entity.js +61 -61
- package/dist/entities/autofail-reasons.entity.d.ts +4 -4
- package/dist/entities/autofail-reasons.entity.js +27 -27
- package/dist/entities/blacklist.entity.d.ts +9 -9
- package/dist/entities/blacklist.entity.js +43 -43
- package/dist/entities/call-driver-data.entity.d.ts +23 -23
- package/dist/entities/call-driver-data.entity.js +97 -97
- package/dist/entities/call-drivers.entity.d.ts +19 -19
- package/dist/entities/call-drivers.entity.js +79 -79
- package/dist/entities/cb-completed-reasons.entity.d.ts +5 -5
- package/dist/entities/cb-completed-reasons.entity.js +31 -31
- package/dist/entities/change-alert.entity.d.ts +11 -11
- package/dist/entities/change-alert.entity.js +51 -51
- package/dist/entities/config.entity.d.ts +5 -5
- package/dist/entities/config.entity.js +31 -31
- package/dist/entities/daily-payment-status.entity.d.ts +27 -27
- package/dist/entities/daily-payment-status.entity.js +120 -120
- package/dist/entities/depreciation-categories.entity.d.ts +6 -6
- package/dist/entities/depreciation-categories.entity.js +32 -32
- package/dist/entities/depreciation-details.entity.d.ts +9 -9
- package/dist/entities/depreciation-details.entity.js +45 -45
- package/dist/entities/detail-type.entity.d.ts +4 -4
- package/dist/entities/detail-type.entity.js +27 -27
- package/dist/entities/dispute-request.entity.d.ts +27 -27
- package/dist/entities/dispute-request.entity.js +110 -110
- package/dist/entities/enr-calculation-log.entity.d.ts +49 -49
- package/dist/entities/enr-calculation-log.entity.js +203 -203
- package/dist/entities/enr-inventory.entity.d.ts +14 -14
- package/dist/entities/enr-inventory.entity.js +67 -67
- package/dist/entities/enr-results.entity.d.ts +5 -5
- package/dist/entities/enr-results.entity.js +31 -31
- package/dist/entities/escalation-category.entity.d.ts +4 -4
- package/dist/entities/escalation-category.entity.js +27 -27
- package/dist/entities/escalation-notes.entity.d.ts +10 -10
- package/dist/entities/escalation-notes.entity.js +43 -43
- package/dist/entities/escalation-outcome.entity.d.ts +4 -4
- package/dist/entities/escalation-outcome.entity.js +27 -27
- package/dist/entities/escalation-status-log.entity.d.ts +8 -8
- package/dist/entities/escalation-status-log.entity.js +37 -37
- package/dist/entities/escalation-status.entity.d.ts +4 -4
- package/dist/entities/escalation-status.entity.js +27 -27
- package/dist/entities/escalation-type.entity.d.ts +5 -5
- package/dist/entities/escalation-type.entity.js +31 -31
- package/dist/entities/escalations.entity.d.ts +39 -39
- package/dist/entities/escalations.entity.js +163 -163
- package/dist/entities/evaluation-autofail-reasons.entity.d.ts +7 -7
- package/dist/entities/evaluation-autofail-reasons.entity.js +35 -35
- package/dist/entities/evaluation-data.entity.d.ts +8 -8
- package/dist/entities/evaluation-data.entity.js +43 -43
- package/dist/entities/evaluation-forms.entity.d.ts +20 -18
- package/dist/entities/evaluation-forms.entity.js +67 -59
- package/dist/entities/evaluation-questions.entity.d.ts +10 -10
- package/dist/entities/evaluation-questions.entity.js +47 -47
- package/dist/entities/evaluations.entity.d.ts +37 -37
- package/dist/entities/evaluations.entity.js +151 -151
- package/dist/entities/file-contents.entity.d.ts +56 -56
- package/dist/entities/file-contents.entity.js +231 -231
- package/dist/entities/file-upload.entity.d.ts +10 -10
- package/dist/entities/file-upload.entity.js +47 -47
- package/dist/entities/form-definition.entity.d.ts +9 -9
- package/dist/entities/form-definition.entity.js +43 -43
- package/dist/entities/form-fields.entity.d.ts +18 -18
- package/dist/entities/form-fields.entity.js +79 -79
- package/dist/entities/form.entity.d.ts +15 -15
- package/dist/entities/form.entity.js +68 -68
- package/dist/entities/incident-notes.entity.d.ts +10 -10
- package/dist/entities/incident-notes.entity.js +43 -43
- package/dist/entities/incident.entity.d.ts +20 -20
- package/dist/entities/incident.entity.js +82 -82
- package/dist/entities/incoterms.entity.d.ts +9 -9
- package/dist/entities/incoterms.entity.js +47 -47
- package/dist/entities/index.d.ts +74 -74
- package/dist/entities/index.js +86 -86
- package/dist/entities/inventory.entity.d.ts +11 -11
- package/dist/entities/inventory.entity.js +55 -55
- package/dist/entities/it-info.entity.d.ts +12 -12
- package/dist/entities/it-info.entity.js +59 -59
- package/dist/entities/lob-assignment.entity.d.ts +6 -6
- package/dist/entities/lob-assignment.entity.js +35 -35
- package/dist/entities/lob-call-drivers.entity.d.ts +5 -5
- package/dist/entities/lob-call-drivers.entity.js +31 -31
- package/dist/entities/location-addresses.entity.d.ts +12 -12
- package/dist/entities/location-addresses.entity.js +59 -59
- package/dist/entities/ltp-history-transactions.entity.d.ts +11 -11
- package/dist/entities/ltp-history-transactions.entity.js +53 -53
- package/dist/entities/ltp-stm-roster.entity.d.ts +11 -11
- package/dist/entities/ltp-stm-roster.entity.js +55 -55
- package/dist/entities/modules-roles.entity.d.ts +13 -13
- package/dist/entities/modules-roles.entity.js +53 -53
- package/dist/entities/offphone-activities.entity.d.ts +5 -5
- package/dist/entities/offphone-activities.entity.js +31 -31
- package/dist/entities/onsite-ordering.entity.d.ts +11 -11
- package/dist/entities/onsite-ordering.entity.js +55 -55
- package/dist/entities/ost.entity.d.ts +6 -6
- package/dist/entities/ost.entity.js +35 -35
- package/dist/entities/otwe-offers.entity.d.ts +5 -5
- package/dist/entities/otwe-offers.entity.js +31 -31
- package/dist/entities/outbound-ticket-history.entity.d.ts +13 -13
- package/dist/entities/outbound-ticket-history.entity.js +53 -53
- package/dist/entities/pending-ticket-history.entity.d.ts +9 -9
- package/dist/entities/pending-ticket-history.entity.js +47 -47
- package/dist/entities/product-codes.entity.d.ts +17 -17
- package/dist/entities/product-codes.entity.js +77 -77
- package/dist/entities/question-group.entity.d.ts +11 -11
- package/dist/entities/question-group.entity.js +50 -50
- package/dist/entities/questions.entity.d.ts +10 -10
- package/dist/entities/questions.entity.js +49 -49
- package/dist/entities/regional-service-mgr.entity.d.ts +4 -4
- package/dist/entities/regional-service-mgr.entity.js +27 -27
- package/dist/entities/role-definition.entity.d.ts +7 -7
- package/dist/entities/role-definition.entity.js +35 -35
- package/dist/entities/role-privileges.entity.d.ts +10 -10
- package/dist/entities/role-privileges.entity.js +44 -44
- package/dist/entities/roster-personnel.entity.d.ts +9 -9
- package/dist/entities/roster-personnel.entity.js +49 -49
- package/dist/entities/roster.entity.d.ts +19 -19
- package/dist/entities/roster.entity.js +80 -80
- package/dist/entities/sap-raw-data.entity.d.ts +132 -132
- package/dist/entities/sap-raw-data.entity.js +539 -539
- package/dist/entities/sap-raw.entity.d.ts +36 -36
- package/dist/entities/sap-raw.entity.js +155 -155
- package/dist/entities/service-type.entity.d.ts +4 -4
- package/dist/entities/service-type.entity.js +27 -27
- package/dist/entities/skipped-ticket.entity.d.ts +13 -13
- package/dist/entities/skipped-ticket.entity.js +63 -63
- package/dist/entities/state.entity.d.ts +8 -8
- package/dist/entities/state.entity.js +43 -43
- package/dist/entities/template.entity.d.ts +10 -10
- package/dist/entities/template.entity.js +51 -51
- package/dist/entities/ticket-queue.entity.d.ts +8 -8
- package/dist/entities/ticket-queue.entity.js +43 -43
- package/dist/entities/transactions.entity.d.ts +32 -32
- package/dist/entities/transactions.entity.js +132 -132
- package/dist/entities/user-campaign.entity.d.ts +11 -10
- package/dist/entities/user-campaign.entity.js +45 -45
- package/dist/entities/user-roles.entity.d.ts +8 -8
- package/dist/entities/user-roles.entity.js +41 -41
- package/dist/entities/user-roster.view.d.ts +38 -38
- package/dist/entities/user-roster.view.js +163 -163
- package/dist/entities/usr.entity.d.ts +24 -24
- package/dist/entities/usr.entity.js +104 -104
- package/dist/entities/vw-escalation-age.d.ts +12 -12
- package/dist/entities/vw-escalation-age.js +62 -62
- package/dist/entities/warranty-category.entity.d.ts +4 -4
- package/dist/entities/warranty-category.entity.js +27 -27
- package/dist/index.d.ts +5 -5
- package/dist/index.js +17 -17
- package/dist/middlewares/index.d.ts +1 -1
- package/dist/middlewares/index.js +13 -13
- package/dist/middlewares/version-checker.middleware.d.ts +2 -2
- package/dist/middlewares/version-checker.middleware.js +28 -28
- package/dist/modules/common/common.module.d.ts +2 -2
- package/dist/modules/common/common.module.js +28 -28
- package/dist/modules/common/index.d.ts +4 -4
- package/dist/modules/common/index.js +16 -16
- package/dist/modules/common/jwt-auth.guard.d.ts +5 -5
- package/dist/modules/common/jwt-auth.guard.js +26 -26
- package/dist/modules/common/jwt.strategy.d.ts +9 -9
- package/dist/modules/common/jwt.strategy.js +43 -43
- package/dist/modules/common/logged-user.decorator.d.ts +1 -1
- package/dist/modules/common/logged-user.decorator.js +9 -9
- package/dist/modules/index.d.ts +1 -1
- package/dist/modules/index.js +13 -13
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +14 -14
- package/dist/utils/object.utils.d.ts +2 -2
- package/dist/utils/object.utils.js +19 -19
- package/dist/utils/parse.util.d.ts +3 -3
- package/dist/utils/parse.util.js +32 -32
- package/dist/utils/string.utils.d.ts +5 -5
- package/dist/utils/string.utils.js +118 -118
- package/package.json +75 -75
- package/dist/entities/pending-ticket-history.entity..d.ts +0 -10
- package/dist/entities/pending-ticket-history.entity..js +0 -47
- package/dist/interceptors/audit-user-activity.interceptor.d.ts +0 -12
- package/dist/interceptors/audit-user-activity.interceptor.js +0 -57
- package/dist/interceptors/index.d.ts +0 -1
- package/dist/interceptors/index.js +0 -13
- package/dist/modules/crud/base-service.interface.d.ts +0 -7
- package/dist/modules/crud/base-service.interface.js +0 -2
- package/dist/modules/crud/base.controller.d.ts +0 -11
- package/dist/modules/crud/base.controller.js +0 -92
- package/dist/modules/crud/base.entity.d.ts +0 -3
- package/dist/modules/crud/base.entity.js +0 -20
- package/dist/modules/crud/base.service.d.ts +0 -12
- package/dist/modules/crud/base.service.js +0 -88
- package/dist/modules/crud/index.d.ts +0 -4
- package/dist/modules/crud/index.js +0 -20
- package/dist/services/audit.service.d.ts +0 -8
- package/dist/services/audit.service.js +0 -49
- package/dist/services/index.d.ts +0 -1
- package/dist/services/index.js +0 -13
|
@@ -1,118 +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;
|
|
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,75 +1,75 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@uniorganization/uni-lib",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "UNI Library",
|
|
5
|
-
"author": "Jhomiguel",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"types": "dist/index.d.ts",
|
|
8
|
-
"files": [
|
|
9
|
-
"dist/**/*",
|
|
10
|
-
"*.md"
|
|
11
|
-
],
|
|
12
|
-
"scripts": {
|
|
13
|
-
"start:dev": "tsc -w",
|
|
14
|
-
"build": "tsc",
|
|
15
|
-
"prepare": "npm run build",
|
|
16
|
-
"format": "prettier --write \"src/**/*.ts\"",
|
|
17
|
-
"lint": "tslint -p tsconfig.json -c tslint.json",
|
|
18
|
-
"test": "jest",
|
|
19
|
-
"test:watch": "jest --watch",
|
|
20
|
-
"test:cov": "jest --coverage",
|
|
21
|
-
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
22
|
-
},
|
|
23
|
-
"peerDependencies": {
|
|
24
|
-
"@nestjs/common": "^8.2.3"
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@nestjs/axios": "0.0.3",
|
|
28
|
-
"@nestjs/jwt": "^8.0.0",
|
|
29
|
-
"@nestjs/passport": "^8.0.1",
|
|
30
|
-
"@nestjs/swagger": "^5.1.5",
|
|
31
|
-
"@nestrx/aes-gcm": "0.0.4",
|
|
32
|
-
"csvtojson": "^2.0.10",
|
|
33
|
-
"passport": "^0.5.0",
|
|
34
|
-
"passport-jwt": "^4.0.0",
|
|
35
|
-
"rxjs": "^7.4.0",
|
|
36
|
-
"swagger-ui-express": "^4.1.6",
|
|
37
|
-
"typeorm": "^0.2.41"
|
|
38
|
-
},
|
|
39
|
-
"devDependencies": {
|
|
40
|
-
"@nestjs/cli": "^7.6.0",
|
|
41
|
-
"@nestjs/common": "^8.2.3",
|
|
42
|
-
"@nestjs/core": "^8.2.3",
|
|
43
|
-
"@nestjs/platform-express": "^8.2.3",
|
|
44
|
-
"@nestjs/testing": "^7.6.15",
|
|
45
|
-
"@nestjs/typeorm": "^8.0.2",
|
|
46
|
-
"@types/express": "4.16.1",
|
|
47
|
-
"@types/jest": "^26.0.22",
|
|
48
|
-
"@types/node": "^14.14.36",
|
|
49
|
-
"@types/passport-jwt": "^3.0.6",
|
|
50
|
-
"@types/supertest": "^2.0.10",
|
|
51
|
-
"jest": "^26.6.3",
|
|
52
|
-
"prettier": "^2.2.1",
|
|
53
|
-
"supertest": "^6.1.3",
|
|
54
|
-
"ts-jest": "^26.5.4",
|
|
55
|
-
"ts-loader": "^8.0.18",
|
|
56
|
-
"ts-node": "^9.1.1",
|
|
57
|
-
"tsconfig-paths": "^3.9.0",
|
|
58
|
-
"tslint": "5.16.0",
|
|
59
|
-
"typescript": "^4.2.3"
|
|
60
|
-
},
|
|
61
|
-
"jest": {
|
|
62
|
-
"moduleFileExtensions": [
|
|
63
|
-
"js",
|
|
64
|
-
"json",
|
|
65
|
-
"ts"
|
|
66
|
-
],
|
|
67
|
-
"rootDir": "src",
|
|
68
|
-
"testRegex": ".spec.ts$",
|
|
69
|
-
"transform": {
|
|
70
|
-
"^.+\\.(t|j)s$": "ts-jest"
|
|
71
|
-
},
|
|
72
|
-
"coverageDirectory": "../coverage",
|
|
73
|
-
"testEnvironment": "node"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@uniorganization/uni-lib",
|
|
3
|
+
"version": "1.1.73",
|
|
4
|
+
"description": "UNI Library",
|
|
5
|
+
"author": "Jhomiguel",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist/**/*",
|
|
10
|
+
"*.md"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"start:dev": "tsc -w",
|
|
14
|
+
"build": "tsc",
|
|
15
|
+
"prepare": "npm run build",
|
|
16
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
17
|
+
"lint": "tslint -p tsconfig.json -c tslint.json",
|
|
18
|
+
"test": "jest",
|
|
19
|
+
"test:watch": "jest --watch",
|
|
20
|
+
"test:cov": "jest --coverage",
|
|
21
|
+
"test:e2e": "jest --config ./test/jest-e2e.json"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"@nestjs/common": "^8.2.3"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@nestjs/axios": "0.0.3",
|
|
28
|
+
"@nestjs/jwt": "^8.0.0",
|
|
29
|
+
"@nestjs/passport": "^8.0.1",
|
|
30
|
+
"@nestjs/swagger": "^5.1.5",
|
|
31
|
+
"@nestrx/aes-gcm": "0.0.4",
|
|
32
|
+
"csvtojson": "^2.0.10",
|
|
33
|
+
"passport": "^0.5.0",
|
|
34
|
+
"passport-jwt": "^4.0.0",
|
|
35
|
+
"rxjs": "^7.4.0",
|
|
36
|
+
"swagger-ui-express": "^4.1.6",
|
|
37
|
+
"typeorm": "^0.2.41"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@nestjs/cli": "^7.6.0",
|
|
41
|
+
"@nestjs/common": "^8.2.3",
|
|
42
|
+
"@nestjs/core": "^8.2.3",
|
|
43
|
+
"@nestjs/platform-express": "^8.2.3",
|
|
44
|
+
"@nestjs/testing": "^7.6.15",
|
|
45
|
+
"@nestjs/typeorm": "^8.0.2",
|
|
46
|
+
"@types/express": "4.16.1",
|
|
47
|
+
"@types/jest": "^26.0.22",
|
|
48
|
+
"@types/node": "^14.14.36",
|
|
49
|
+
"@types/passport-jwt": "^3.0.6",
|
|
50
|
+
"@types/supertest": "^2.0.10",
|
|
51
|
+
"jest": "^26.6.3",
|
|
52
|
+
"prettier": "^2.2.1",
|
|
53
|
+
"supertest": "^6.1.3",
|
|
54
|
+
"ts-jest": "^26.5.4",
|
|
55
|
+
"ts-loader": "^8.0.18",
|
|
56
|
+
"ts-node": "^9.1.1",
|
|
57
|
+
"tsconfig-paths": "^3.9.0",
|
|
58
|
+
"tslint": "5.16.0",
|
|
59
|
+
"typescript": "^4.2.3"
|
|
60
|
+
},
|
|
61
|
+
"jest": {
|
|
62
|
+
"moduleFileExtensions": [
|
|
63
|
+
"js",
|
|
64
|
+
"json",
|
|
65
|
+
"ts"
|
|
66
|
+
],
|
|
67
|
+
"rootDir": "src",
|
|
68
|
+
"testRegex": ".spec.ts$",
|
|
69
|
+
"transform": {
|
|
70
|
+
"^.+\\.(t|j)s$": "ts-jest"
|
|
71
|
+
},
|
|
72
|
+
"coverageDirectory": "../coverage",
|
|
73
|
+
"testEnvironment": "node"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -1,47 +0,0 @@
|
|
|
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.PendingTicketHistory = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
let PendingTicketHistory = class PendingTicketHistory {
|
|
15
|
-
};
|
|
16
|
-
__decorate([
|
|
17
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
|
|
18
|
-
__metadata("design:type", Number)
|
|
19
|
-
], PendingTicketHistory.prototype, "id", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typeorm_1.Column)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], PendingTicketHistory.prototype, "division", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], PendingTicketHistory.prototype, "lob", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], PendingTicketHistory.prototype, "campaign", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, typeorm_1.Column)(),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], PendingTicketHistory.prototype, "category", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ name: 'transaction_id' }),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], PendingTicketHistory.prototype, "transaction", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)('timestamp', { name: 'upload_date' }),
|
|
42
|
-
__metadata("design:type", typeorm_1.Timestamp)
|
|
43
|
-
], PendingTicketHistory.prototype, "uploadDate", void 0);
|
|
44
|
-
PendingTicketHistory = __decorate([
|
|
45
|
-
(0, typeorm_1.Entity)('pending_ticket_history', { schema: 'tracking' })
|
|
46
|
-
], PendingTicketHistory);
|
|
47
|
-
exports.PendingTicketHistory = PendingTicketHistory;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NestInterceptor, ExecutionContext, CallHandler } from '@nestjs/common';
|
|
2
|
-
import { Reflector } from '@nestjs/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { EntityManager } from 'typeorm';
|
|
5
|
-
import { AuditService } from '../services/audit.service';
|
|
6
|
-
export declare class AuditUserActivityInterceptor implements NestInterceptor {
|
|
7
|
-
private readonly auditService;
|
|
8
|
-
private readonly entityManager;
|
|
9
|
-
private reflector;
|
|
10
|
-
constructor(auditService: AuditService, entityManager: EntityManager, reflector: Reflector);
|
|
11
|
-
intercept(context: ExecutionContext, next: CallHandler): Observable<any>;
|
|
12
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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.AuditUserActivityInterceptor = void 0;
|
|
13
|
-
const common_1 = require("@nestjs/common");
|
|
14
|
-
const core_1 = require("@nestjs/core");
|
|
15
|
-
const entities_1 = require("../entities");
|
|
16
|
-
const rxjs_1 = require("rxjs");
|
|
17
|
-
const typeorm_1 = require("typeorm");
|
|
18
|
-
const audit_service_1 = require("../services/audit.service");
|
|
19
|
-
let AuditUserActivityInterceptor = class AuditUserActivityInterceptor {
|
|
20
|
-
constructor(auditService, entityManager, reflector) {
|
|
21
|
-
this.auditService = auditService;
|
|
22
|
-
this.entityManager = entityManager;
|
|
23
|
-
this.reflector = reflector;
|
|
24
|
-
}
|
|
25
|
-
intercept(context, next) {
|
|
26
|
-
var _a;
|
|
27
|
-
const request = context.switchToHttp().getRequest();
|
|
28
|
-
const { body, params, user: { payload: { user: loggedUser }, }, } = request;
|
|
29
|
-
const operation = context.getHandler().name;
|
|
30
|
-
if (!/create?\w+|update?\w+/.test(operation))
|
|
31
|
-
return next.handle();
|
|
32
|
-
const objectId = (_a = body.id) !== null && _a !== void 0 ? _a : params.id;
|
|
33
|
-
const objectType = this.reflector.get('type', context.getClass());
|
|
34
|
-
const audit = new entities_1.Audit();
|
|
35
|
-
audit.objectId = objectId;
|
|
36
|
-
this.entityManager
|
|
37
|
-
.getRepository(objectType)
|
|
38
|
-
.findOne(objectId)
|
|
39
|
-
.then((data) => {
|
|
40
|
-
audit.beforeValue = data;
|
|
41
|
-
});
|
|
42
|
-
audit.requestType = entities_1.RequestType[request.method];
|
|
43
|
-
audit.objectType = objectType;
|
|
44
|
-
audit.user = loggedUser;
|
|
45
|
-
return next.handle().pipe((0, rxjs_1.tap)((data) => {
|
|
46
|
-
audit.afterValue = data;
|
|
47
|
-
this.auditService.recordOperation(audit);
|
|
48
|
-
}));
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
AuditUserActivityInterceptor = __decorate([
|
|
52
|
-
(0, common_1.Injectable)(),
|
|
53
|
-
__metadata("design:paramtypes", [audit_service_1.AuditService,
|
|
54
|
-
typeorm_1.EntityManager,
|
|
55
|
-
core_1.Reflector])
|
|
56
|
-
], AuditUserActivityInterceptor);
|
|
57
|
-
exports.AuditUserActivityInterceptor = AuditUserActivityInterceptor;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './audit-user-activity.interceptor';
|
|
@@ -1,13 +0,0 @@
|
|
|
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("./audit-user-activity.interceptor"), exports);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { IBaseService } from './base-service.interface';
|
|
2
|
-
import { BaseEntity } from './base.entity';
|
|
3
|
-
export declare class BaseController<T extends BaseEntity> {
|
|
4
|
-
private readonly IBaseService;
|
|
5
|
-
constructor(IBaseService: IBaseService<T>);
|
|
6
|
-
findAll(params: T): Promise<T[]>;
|
|
7
|
-
findById(id: string): Promise<T>;
|
|
8
|
-
create(entity: T): Promise<T>;
|
|
9
|
-
delete(id: string): Promise<void>;
|
|
10
|
-
update(id: string, entity: T): Promise<T>;
|
|
11
|
-
}
|
|
@@ -1,92 +0,0 @@
|
|
|
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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.BaseController = void 0;
|
|
25
|
-
const common_1 = require("@nestjs/common");
|
|
26
|
-
class BaseController {
|
|
27
|
-
constructor(IBaseService) {
|
|
28
|
-
this.IBaseService = IBaseService;
|
|
29
|
-
}
|
|
30
|
-
findAll(params) {
|
|
31
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
return this.IBaseService.getAll(params);
|
|
33
|
-
});
|
|
34
|
-
}
|
|
35
|
-
findById(id) {
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
return this.IBaseService.get(+id);
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
create(entity) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
return this.IBaseService.create(entity);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
delete(id) {
|
|
46
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
-
this.IBaseService.delete(+id);
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
update(id, entity) {
|
|
51
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
-
return this.IBaseService.update(+id, entity);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, common_1.Get)(),
|
|
58
|
-
__param(0, (0, common_1.Query)()),
|
|
59
|
-
__metadata("design:type", Function),
|
|
60
|
-
__metadata("design:paramtypes", [Object]),
|
|
61
|
-
__metadata("design:returntype", Promise)
|
|
62
|
-
], BaseController.prototype, "findAll", null);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, common_1.Get)(':id'),
|
|
65
|
-
__param(0, (0, common_1.Param)('id')),
|
|
66
|
-
__metadata("design:type", Function),
|
|
67
|
-
__metadata("design:paramtypes", [String]),
|
|
68
|
-
__metadata("design:returntype", Promise)
|
|
69
|
-
], BaseController.prototype, "findById", null);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, common_1.Post)(),
|
|
72
|
-
__param(0, (0, common_1.Body)()),
|
|
73
|
-
__metadata("design:type", Function),
|
|
74
|
-
__metadata("design:paramtypes", [Object]),
|
|
75
|
-
__metadata("design:returntype", Promise)
|
|
76
|
-
], BaseController.prototype, "create", null);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, common_1.Delete)(':id'),
|
|
79
|
-
__param(0, (0, common_1.Param)('id')),
|
|
80
|
-
__metadata("design:type", Function),
|
|
81
|
-
__metadata("design:paramtypes", [String]),
|
|
82
|
-
__metadata("design:returntype", Promise)
|
|
83
|
-
], BaseController.prototype, "delete", null);
|
|
84
|
-
__decorate([
|
|
85
|
-
(0, common_1.Patch)(':id'),
|
|
86
|
-
__param(0, (0, common_1.Param)('id')),
|
|
87
|
-
__param(1, (0, common_1.Body)()),
|
|
88
|
-
__metadata("design:type", Function),
|
|
89
|
-
__metadata("design:paramtypes", [String, Object]),
|
|
90
|
-
__metadata("design:returntype", Promise)
|
|
91
|
-
], BaseController.prototype, "update", null);
|
|
92
|
-
exports.BaseController = BaseController;
|