@uniorganization/uni-lib 2.0.35 → 2.0.36
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 +6 -1
- package/dist/entities/index.js +6 -1
- package/dist/entities/raw-daily-pending.entity.d.ts +57 -0
- package/dist/entities/raw-daily-pending.entity.js +245 -0
- package/dist/entities/raw-enr-pending.entity.d.ts +143 -0
- package/dist/entities/raw-enr-pending.entity.js +583 -0
- package/dist/entities/raw-sap.entity.d.ts +36 -0
- package/dist/entities/{sap-raw.entity.js → raw-sap.entity.js} +1 -1
- package/dist/entities/raw-sap.js +155 -0
- package/dist/entities/vw-raw-daily-pending.view.d.ts +57 -0
- package/dist/entities/vw-raw-daily-pending.view.js +239 -0
- package/dist/entities/vw-raw-enr-pending.view.d.ts +143 -0
- package/dist/entities/vw-raw-enr-pending.view.js +583 -0
- package/dist/entities/vw-raw-sap.view.d.ts +36 -0
- package/dist/entities/vw-raw-sap.view.js +155 -0
- package/dist/modules/common/constants.d.ts +3 -0
- package/dist/modules/common/constants.js +4 -1
- package/dist/modules/common/shared-db-repositories.provider.d.ts +17 -2
- package/dist/modules/common/shared-db-repositories.provider.js +39 -0
- package/package.json +71 -71
- package/dist/entities/feedback-activity-log.entity.d.ts +0 -13
- package/dist/entities/feedback-activity-log.entity.js +0 -60
- package/dist/entities/feedback-comment.entity.d.ts +0 -11
- package/dist/entities/feedback-comment.entity.js +0 -51
- package/dist/enums/activity-action.enum.d.ts +0 -7
- package/dist/enums/activity-action.enum.js +0 -11
- package/dist/enums/feedback-status.enum.d.ts +0 -6
- package/dist/enums/feedback-status.enum.js +0 -10
- /package/dist/entities/{sap-raw.entity.d.ts → raw-sap.d.ts} +0 -0
|
@@ -0,0 +1,155 @@
|
|
|
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.VwRawSap = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let VwRawSap = class VwRawSap {
|
|
15
|
+
};
|
|
16
|
+
exports.VwRawSap = VwRawSap;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'ticket_number' }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], VwRawSap.prototype, "ticketNo", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.PrimaryColumn)({ name: 'file_date' }),
|
|
23
|
+
__metadata("design:type", Date)
|
|
24
|
+
], VwRawSap.prototype, "fileDate", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, typeorm_1.Column)({ name: 'company_id' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], VwRawSap.prototype, "companyId", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)({ name: 'status' }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], VwRawSap.prototype, "status", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({ name: 'status_desc' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], VwRawSap.prototype, "statusDesc", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.Column)({ name: 'reason_description' }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], VwRawSap.prototype, "reasonDescription", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ name: 'detail_type' }),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], VwRawSap.prototype, "detailTypeName", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.Column)({ name: 'model' }),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], VwRawSap.prototype, "modelCode", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, typeorm_1.Column)({ name: 'category_id' }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], VwRawSap.prototype, "categoryId", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, typeorm_1.Column)({ name: 'serial_no' }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], VwRawSap.prototype, "serialNo", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ name: 'imei' }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], VwRawSap.prototype, "imei", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ name: 'posting_date' }),
|
|
63
|
+
__metadata("design:type", Date)
|
|
64
|
+
], VwRawSap.prototype, "createDate", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ name: 'unit_received_date' }),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], VwRawSap.prototype, "unitReceivedDate", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ name: 'category1_description' }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], VwRawSap.prototype, "category1Description", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ name: 'category2_description' }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], VwRawSap.prototype, "category2Description", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ name: 'category3_description' }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], VwRawSap.prototype, "category3Description", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ name: 'consumer' }),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], VwRawSap.prototype, "consumer", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ name: 'customer' }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], VwRawSap.prototype, "bpNo", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ name: 'state' }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], VwRawSap.prototype, "state", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ name: 'asc' }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], VwRawSap.prototype, "ascNo", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ name: 'created_by' }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], VwRawSap.prototype, "createdBy", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ name: 'in_out_wty' }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], VwRawSap.prototype, "warrantyStatus", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ name: 'in_out' }),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], VwRawSap.prototype, "inOut", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ name: 'ern' }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], VwRawSap.prototype, "ern", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ name: 'service_type' }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], VwRawSap.prototype, "serviceType", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ name: 'product_type' }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], VwRawSap.prototype, "productType", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ name: 'bucket_group' }),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], VwRawSap.prototype, "bucketGroup", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ name: 'posting_date_aging' }),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], VwRawSap.prototype, "postingDateAging", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.Column)({ name: 'unit_received_aging' }),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], VwRawSap.prototype, "unitReceivedAging", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, typeorm_1.Column)({ name: 'index' }),
|
|
135
|
+
__metadata("design:type", Number)
|
|
136
|
+
], VwRawSap.prototype, "index", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ name: 'return_reason_description' }),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], VwRawSap.prototype, "returnReasonDescription", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({ name: 'file_name' }),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], VwRawSap.prototype, "fileName", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ name: 'dacor_flag' }),
|
|
147
|
+
__metadata("design:type", String)
|
|
148
|
+
], VwRawSap.prototype, "dacorFlag", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.Column)({ name: 'text1' }),
|
|
151
|
+
__metadata("design:type", String)
|
|
152
|
+
], VwRawSap.prototype, "text1", void 0);
|
|
153
|
+
exports.VwRawSap = VwRawSap = __decorate([
|
|
154
|
+
(0, typeorm_1.ViewEntity)('raw_sap', { schema: 'public' })
|
|
155
|
+
], VwRawSap);
|
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export declare const SHARED_DB_CONNECTION = "SHARED_DB_CONNECTION";
|
|
2
2
|
export declare const USER_ROSTER_REPOSITORY = "USER_ROSTER_REPOSITORY";
|
|
3
|
+
export declare const SAP_RAW_DAILY_PENDING_REPOSITORY = "SAP_RAW_DAILY_PENDING_REPOSITORY";
|
|
4
|
+
export declare const SAP_RAW_ENR_PENDING_REPOSITORY = "SAP_RAW_ENR_PENDING_REPOSITORY";
|
|
5
|
+
export declare const SAP_RAW_SAP_REPOSITORY = "SAP_RAW_SAP_REPOSITORY";
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.USER_ROSTER_REPOSITORY = exports.SHARED_DB_CONNECTION = void 0;
|
|
3
|
+
exports.SAP_RAW_SAP_REPOSITORY = exports.SAP_RAW_ENR_PENDING_REPOSITORY = exports.SAP_RAW_DAILY_PENDING_REPOSITORY = exports.USER_ROSTER_REPOSITORY = exports.SHARED_DB_CONNECTION = void 0;
|
|
4
4
|
exports.SHARED_DB_CONNECTION = 'SHARED_DB_CONNECTION';
|
|
5
5
|
exports.USER_ROSTER_REPOSITORY = 'USER_ROSTER_REPOSITORY';
|
|
6
|
+
exports.SAP_RAW_DAILY_PENDING_REPOSITORY = 'SAP_RAW_DAILY_PENDING_REPOSITORY';
|
|
7
|
+
exports.SAP_RAW_ENR_PENDING_REPOSITORY = 'SAP_RAW_ENR_PENDING_REPOSITORY';
|
|
8
|
+
exports.SAP_RAW_SAP_REPOSITORY = 'SAP_RAW_SAP_REPOSITORY';
|
|
@@ -1,7 +1,22 @@
|
|
|
1
1
|
import { Connection } from 'typeorm';
|
|
2
2
|
import { VwUserRoster } from '../../entities/user-roster.view';
|
|
3
|
-
|
|
3
|
+
import { VwRawDailyPending } from '../../entities/vw-raw-daily-pending.view';
|
|
4
|
+
import { VwRawEnrPending } from '../../entities/vw-raw-enr-pending.view';
|
|
5
|
+
import { VwRawSap } from '../../entities/vw-raw-sap.view';
|
|
6
|
+
export declare const sharedDbRepositoriesProvider: ({
|
|
4
7
|
provide: string;
|
|
5
8
|
inject: string[];
|
|
6
9
|
useFactory: (connection: Connection) => Promise<import("typeorm").Repository<VwUserRoster>>;
|
|
7
|
-
}
|
|
10
|
+
} | {
|
|
11
|
+
provide: string;
|
|
12
|
+
inject: string[];
|
|
13
|
+
useFactory: (connection: Connection) => Promise<import("typeorm").Repository<VwRawDailyPending>>;
|
|
14
|
+
} | {
|
|
15
|
+
provide: string;
|
|
16
|
+
inject: string[];
|
|
17
|
+
useFactory: (connection: Connection) => Promise<import("typeorm").Repository<VwRawEnrPending>>;
|
|
18
|
+
} | {
|
|
19
|
+
provide: string;
|
|
20
|
+
inject: string[];
|
|
21
|
+
useFactory: (connection: Connection) => Promise<import("typeorm").Repository<VwRawSap>>;
|
|
22
|
+
})[];
|
|
@@ -12,6 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.sharedDbRepositoriesProvider = void 0;
|
|
13
13
|
const constants_1 = require("./constants");
|
|
14
14
|
const user_roster_view_1 = require("../../entities/user-roster.view");
|
|
15
|
+
const vw_raw_daily_pending_view_1 = require("../../entities/vw-raw-daily-pending.view");
|
|
16
|
+
const vw_raw_enr_pending_view_1 = require("../../entities/vw-raw-enr-pending.view");
|
|
17
|
+
const vw_raw_sap_view_1 = require("../../entities/vw-raw-sap.view");
|
|
15
18
|
exports.sharedDbRepositoriesProvider = [
|
|
16
19
|
{
|
|
17
20
|
provide: constants_1.USER_ROSTER_REPOSITORY,
|
|
@@ -25,4 +28,40 @@ exports.sharedDbRepositoriesProvider = [
|
|
|
25
28
|
}
|
|
26
29
|
}),
|
|
27
30
|
},
|
|
31
|
+
{
|
|
32
|
+
provide: constants_1.SAP_RAW_DAILY_PENDING_REPOSITORY,
|
|
33
|
+
inject: [constants_1.SHARED_DB_CONNECTION],
|
|
34
|
+
useFactory: (connection) => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
+
try {
|
|
36
|
+
return connection.getRepository(vw_raw_daily_pending_view_1.VwRawDailyPending);
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
console.log('Unable to get VwRawDailyPending Repo');
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
provide: constants_1.SAP_RAW_ENR_PENDING_REPOSITORY,
|
|
45
|
+
inject: [constants_1.SHARED_DB_CONNECTION],
|
|
46
|
+
useFactory: (connection) => __awaiter(void 0, void 0, void 0, function* () {
|
|
47
|
+
try {
|
|
48
|
+
return connection.getRepository(vw_raw_enr_pending_view_1.VwRawEnrPending);
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
console.log('Unable to get VwRawEnrPending Repo');
|
|
52
|
+
}
|
|
53
|
+
}),
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
provide: constants_1.SAP_RAW_SAP_REPOSITORY,
|
|
57
|
+
inject: [constants_1.SHARED_DB_CONNECTION],
|
|
58
|
+
useFactory: (connection) => __awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
try {
|
|
60
|
+
return connection.getRepository(vw_raw_sap_view_1.VwRawSap);
|
|
61
|
+
}
|
|
62
|
+
catch (error) {
|
|
63
|
+
console.log('Unable to get VwRawSap Repo');
|
|
64
|
+
}
|
|
65
|
+
}),
|
|
66
|
+
},
|
|
28
67
|
];
|
package/package.json
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@uniorganization/uni-lib",
|
|
3
|
-
"version": "2.0.
|
|
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
|
-
"dependencies": {
|
|
24
|
-
"@nestjs/axios": "3.0.3",
|
|
25
|
-
"@nestjs/jwt": "^10.2.0",
|
|
26
|
-
"@nestjs/common": "^10.4.1",
|
|
27
|
-
"@nestjs/core": "^10.4.1",
|
|
28
|
-
"@nestjs/passport": "^10.0.3",
|
|
29
|
-
"@nestjs/swagger": "^7.4.0",
|
|
30
|
-
"csvtojson": "^2.0.10",
|
|
31
|
-
"passport": "^0.7.0",
|
|
32
|
-
"passport-jwt": "^4.0.1",
|
|
33
|
-
"rxjs": "^7.8.1",
|
|
34
|
-
"swagger-ui-express": "^5.0.1",
|
|
35
|
-
"typeorm": "^0.3.20"
|
|
36
|
-
},
|
|
37
|
-
"devDependencies": {
|
|
38
|
-
"@nestjs/cli": "^10.4.5",
|
|
39
|
-
"@nestjs/platform-express": "^10.4.1",
|
|
40
|
-
"@nestjs/testing": "^10.4.1",
|
|
41
|
-
"@nestjs/typeorm": "^10.0.2",
|
|
42
|
-
"@types/express": "4.17.21",
|
|
43
|
-
"@types/jest": "^29.5.12",
|
|
44
|
-
"@types/node": "^22.5.4",
|
|
45
|
-
"@types/passport-jwt": "^4.0.1",
|
|
46
|
-
"@types/supertest": "^6.0.2",
|
|
47
|
-
"jest": "^29.7.0",
|
|
48
|
-
"prettier": "^3.3.3",
|
|
49
|
-
"supertest": "^7.0.0",
|
|
50
|
-
"ts-jest": "^29.2.5",
|
|
51
|
-
"ts-loader": "^9.5.1",
|
|
52
|
-
"ts-node": "^10.9.2",
|
|
53
|
-
"tsconfig-paths": "^4.2.0",
|
|
54
|
-
"tslint": "6.1.3",
|
|
55
|
-
"typescript": "^5.5.4"
|
|
56
|
-
},
|
|
57
|
-
"jest": {
|
|
58
|
-
"moduleFileExtensions": [
|
|
59
|
-
"js",
|
|
60
|
-
"json",
|
|
61
|
-
"ts"
|
|
62
|
-
],
|
|
63
|
-
"rootDir": "src",
|
|
64
|
-
"testRegex": ".spec.ts$",
|
|
65
|
-
"transform": {
|
|
66
|
-
"^.+\\.(t|j)s$": "ts-jest"
|
|
67
|
-
},
|
|
68
|
-
"coverageDirectory": "../coverage",
|
|
69
|
-
"testEnvironment": "node"
|
|
70
|
-
}
|
|
71
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@uniorganization/uni-lib",
|
|
3
|
+
"version": "2.0.36",
|
|
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
|
+
"dependencies": {
|
|
24
|
+
"@nestjs/axios": "3.0.3",
|
|
25
|
+
"@nestjs/jwt": "^10.2.0",
|
|
26
|
+
"@nestjs/common": "^10.4.1",
|
|
27
|
+
"@nestjs/core": "^10.4.1",
|
|
28
|
+
"@nestjs/passport": "^10.0.3",
|
|
29
|
+
"@nestjs/swagger": "^7.4.0",
|
|
30
|
+
"csvtojson": "^2.0.10",
|
|
31
|
+
"passport": "^0.7.0",
|
|
32
|
+
"passport-jwt": "^4.0.1",
|
|
33
|
+
"rxjs": "^7.8.1",
|
|
34
|
+
"swagger-ui-express": "^5.0.1",
|
|
35
|
+
"typeorm": "^0.3.20"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@nestjs/cli": "^10.4.5",
|
|
39
|
+
"@nestjs/platform-express": "^10.4.1",
|
|
40
|
+
"@nestjs/testing": "^10.4.1",
|
|
41
|
+
"@nestjs/typeorm": "^10.0.2",
|
|
42
|
+
"@types/express": "4.17.21",
|
|
43
|
+
"@types/jest": "^29.5.12",
|
|
44
|
+
"@types/node": "^22.5.4",
|
|
45
|
+
"@types/passport-jwt": "^4.0.1",
|
|
46
|
+
"@types/supertest": "^6.0.2",
|
|
47
|
+
"jest": "^29.7.0",
|
|
48
|
+
"prettier": "^3.3.3",
|
|
49
|
+
"supertest": "^7.0.0",
|
|
50
|
+
"ts-jest": "^29.2.5",
|
|
51
|
+
"ts-loader": "^9.5.1",
|
|
52
|
+
"ts-node": "^10.9.2",
|
|
53
|
+
"tsconfig-paths": "^4.2.0",
|
|
54
|
+
"tslint": "6.1.3",
|
|
55
|
+
"typescript": "^5.5.4"
|
|
56
|
+
},
|
|
57
|
+
"jest": {
|
|
58
|
+
"moduleFileExtensions": [
|
|
59
|
+
"js",
|
|
60
|
+
"json",
|
|
61
|
+
"ts"
|
|
62
|
+
],
|
|
63
|
+
"rootDir": "src",
|
|
64
|
+
"testRegex": ".spec.ts$",
|
|
65
|
+
"transform": {
|
|
66
|
+
"^.+\\.(t|j)s$": "ts-jest"
|
|
67
|
+
},
|
|
68
|
+
"coverageDirectory": "../coverage",
|
|
69
|
+
"testEnvironment": "node"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Users } from './usr.entity';
|
|
2
|
-
import { Feedback } from './feedback.entity';
|
|
3
|
-
import { ActivityAction } from '../enums/activity-action.enum';
|
|
4
|
-
export declare class FeedbackActivityLog {
|
|
5
|
-
id: number;
|
|
6
|
-
feedbackId: number;
|
|
7
|
-
action: ActivityAction;
|
|
8
|
-
performedBy: number;
|
|
9
|
-
performedAt: Date;
|
|
10
|
-
metadata: Record<string, any>;
|
|
11
|
-
feedback: Feedback;
|
|
12
|
-
performer: Users;
|
|
13
|
-
}
|
|
@@ -1,60 +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.FeedbackActivityLog = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const usr_entity_1 = require("./usr.entity");
|
|
15
|
-
const feedback_entity_1 = require("./feedback.entity");
|
|
16
|
-
const activity_action_enum_1 = require("../enums/activity-action.enum");
|
|
17
|
-
let FeedbackActivityLog = class FeedbackActivityLog {
|
|
18
|
-
};
|
|
19
|
-
exports.FeedbackActivityLog = FeedbackActivityLog;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], FeedbackActivityLog.prototype, "id", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, typeorm_1.Column)({ name: 'feedback_id' }),
|
|
26
|
-
__metadata("design:type", Number)
|
|
27
|
-
], FeedbackActivityLog.prototype, "feedbackId", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, typeorm_1.Column)({
|
|
30
|
-
type: 'enum',
|
|
31
|
-
enum: activity_action_enum_1.ActivityAction,
|
|
32
|
-
name: 'feedback_activity_log_action',
|
|
33
|
-
}),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], FeedbackActivityLog.prototype, "action", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.Column)({ name: 'performed_by' }),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], FeedbackActivityLog.prototype, "performedBy", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'performed_at' }),
|
|
42
|
-
__metadata("design:type", Date)
|
|
43
|
-
], FeedbackActivityLog.prototype, "performedAt", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'metadata' }),
|
|
46
|
-
__metadata("design:type", Object)
|
|
47
|
-
], FeedbackActivityLog.prototype, "metadata", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.ManyToOne)(() => feedback_entity_1.Feedback, (feedback) => feedback.activityLogs),
|
|
50
|
-
(0, typeorm_1.JoinColumn)({ name: 'feedback_id' }),
|
|
51
|
-
__metadata("design:type", feedback_entity_1.Feedback)
|
|
52
|
-
], FeedbackActivityLog.prototype, "feedback", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
|
|
55
|
-
(0, typeorm_1.JoinColumn)({ name: 'performed_by' }),
|
|
56
|
-
__metadata("design:type", usr_entity_1.Users)
|
|
57
|
-
], FeedbackActivityLog.prototype, "performer", void 0);
|
|
58
|
-
exports.FeedbackActivityLog = FeedbackActivityLog = __decorate([
|
|
59
|
-
(0, typeorm_1.Entity)('feedback_activity_log', { schema: 'tracking' })
|
|
60
|
-
], FeedbackActivityLog);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Users } from './usr.entity';
|
|
2
|
-
import { Feedback } from './feedback.entity';
|
|
3
|
-
export declare class FeedbackComment {
|
|
4
|
-
id: number;
|
|
5
|
-
feedbackId: number;
|
|
6
|
-
comment: string;
|
|
7
|
-
authorId: number;
|
|
8
|
-
createdAt: Date;
|
|
9
|
-
feedback: Feedback;
|
|
10
|
-
author: Users;
|
|
11
|
-
}
|
|
@@ -1,51 +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.FeedbackComment = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const usr_entity_1 = require("./usr.entity");
|
|
15
|
-
const feedback_entity_1 = require("./feedback.entity");
|
|
16
|
-
let FeedbackComment = class FeedbackComment {
|
|
17
|
-
};
|
|
18
|
-
exports.FeedbackComment = FeedbackComment;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, typeorm_1.PrimaryGeneratedColumn)({ name: 'id' }),
|
|
21
|
-
__metadata("design:type", Number)
|
|
22
|
-
], FeedbackComment.prototype, "id", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, typeorm_1.Column)({ name: 'feedback_id' }),
|
|
25
|
-
__metadata("design:type", Number)
|
|
26
|
-
], FeedbackComment.prototype, "feedbackId", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.Column)({ type: 'text', name: 'comment' }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], FeedbackComment.prototype, "comment", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)({ name: 'author_id' }),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], FeedbackComment.prototype, "authorId", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
37
|
-
__metadata("design:type", Date)
|
|
38
|
-
], FeedbackComment.prototype, "createdAt", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.ManyToOne)(() => feedback_entity_1.Feedback, (feedback) => feedback.comments),
|
|
41
|
-
(0, typeorm_1.JoinColumn)({ name: 'feedback_id' }),
|
|
42
|
-
__metadata("design:type", feedback_entity_1.Feedback)
|
|
43
|
-
], FeedbackComment.prototype, "feedback", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.ManyToOne)(() => usr_entity_1.Users),
|
|
46
|
-
(0, typeorm_1.JoinColumn)({ name: 'author_id' }),
|
|
47
|
-
__metadata("design:type", usr_entity_1.Users)
|
|
48
|
-
], FeedbackComment.prototype, "author", void 0);
|
|
49
|
-
exports.FeedbackComment = FeedbackComment = __decorate([
|
|
50
|
-
(0, typeorm_1.Entity)('feedback_comments', { schema: 'tracking' })
|
|
51
|
-
], FeedbackComment);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ActivityAction = void 0;
|
|
4
|
-
var ActivityAction;
|
|
5
|
-
(function (ActivityAction) {
|
|
6
|
-
ActivityAction["CREATED"] = "created";
|
|
7
|
-
ActivityAction["STATUS_CHANGED"] = "status_changed";
|
|
8
|
-
ActivityAction["COMMENT_ADDED"] = "comment_added";
|
|
9
|
-
ActivityAction["ACKNOWLEDGED"] = "acknowledged";
|
|
10
|
-
ActivityAction["REJECTED"] = "rejected";
|
|
11
|
-
})(ActivityAction || (exports.ActivityAction = ActivityAction = {}));
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FeedbackStatus = void 0;
|
|
4
|
-
var FeedbackStatus;
|
|
5
|
-
(function (FeedbackStatus) {
|
|
6
|
-
FeedbackStatus["NEW"] = "new";
|
|
7
|
-
FeedbackStatus["PENDING"] = "pending";
|
|
8
|
-
FeedbackStatus["ACKNOWLEDGED"] = "acknowledged";
|
|
9
|
-
FeedbackStatus["REJECTED"] = "rejected";
|
|
10
|
-
})(FeedbackStatus || (exports.FeedbackStatus = FeedbackStatus = {}));
|
|
File without changes
|