@uniorganization/uni-lib 2.0.31 → 2.0.32
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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Users } from './usr.entity';
|
|
2
|
+
import { Evaluations } from './evaluations.entity';
|
|
2
3
|
import { FeedbackComment } from './feedback-comment.entity';
|
|
3
4
|
import { FeedbackActivityLog } from './feedback-activity-log.entity';
|
|
4
5
|
import { FeedbackStatus } from '../enums/feedback-status.enum';
|
|
@@ -7,10 +8,13 @@ export declare class Feedback {
|
|
|
7
8
|
status: FeedbackStatus;
|
|
8
9
|
agentId: number;
|
|
9
10
|
coachId: number;
|
|
11
|
+
evaluationId: number;
|
|
12
|
+
feedbackContent: string;
|
|
10
13
|
createdAt: Date;
|
|
11
14
|
updatedAt: Date;
|
|
12
15
|
agent: Users;
|
|
13
16
|
coach: Users;
|
|
17
|
+
evaluation: Evaluations;
|
|
14
18
|
comments: FeedbackComment[];
|
|
15
19
|
activityLogs: FeedbackActivityLog[];
|
|
16
20
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Feedback = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const usr_entity_1 = require("./usr.entity");
|
|
15
|
+
const evaluations_entity_1 = require("./evaluations.entity");
|
|
15
16
|
const feedback_comment_entity_1 = require("./feedback-comment.entity");
|
|
16
17
|
const feedback_activity_log_entity_1 = require("./feedback-activity-log.entity");
|
|
17
18
|
const feedback_status_enum_1 = require("../enums/feedback-status.enum");
|
|
@@ -39,6 +40,14 @@ __decorate([
|
|
|
39
40
|
(0, typeorm_1.Column)({ name: 'coach_id', nullable: true }),
|
|
40
41
|
__metadata("design:type", Number)
|
|
41
42
|
], Feedback.prototype, "coachId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({ name: 'evaluation_id', nullable: true }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], Feedback.prototype, "evaluationId", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)({ type: 'text', name: 'feedback_content', nullable: true }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], Feedback.prototype, "feedbackContent", void 0);
|
|
42
51
|
__decorate([
|
|
43
52
|
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
44
53
|
__metadata("design:type", Date)
|
|
@@ -57,6 +66,11 @@ __decorate([
|
|
|
57
66
|
(0, typeorm_1.JoinColumn)({ name: 'coach_id' }),
|
|
58
67
|
__metadata("design:type", usr_entity_1.Users)
|
|
59
68
|
], Feedback.prototype, "coach", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.ManyToOne)(() => evaluations_entity_1.Evaluations),
|
|
71
|
+
(0, typeorm_1.JoinColumn)({ name: 'evaluation_id' }),
|
|
72
|
+
__metadata("design:type", evaluations_entity_1.Evaluations)
|
|
73
|
+
], Feedback.prototype, "evaluation", void 0);
|
|
60
74
|
__decorate([
|
|
61
75
|
(0, typeorm_1.OneToMany)(() => feedback_comment_entity_1.FeedbackComment, (comment) => comment.feedback),
|
|
62
76
|
__metadata("design:type", Array)
|