easywork-common-lib 1.0.663 → 1.0.664
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/capacitation/course-evaluation-question.d.ts +13 -0
- package/dist/entities/capacitation/course-evaluation-question.js +52 -0
- package/dist/entities/capacitation/course-evaluation-question.js.map +1 -0
- package/dist/entities/capacitation/course-evaluation.entity.d.ts +11 -0
- package/dist/entities/capacitation/course-evaluation.entity.js +57 -0
- package/dist/entities/capacitation/course-evaluation.entity.js.map +1 -0
- package/dist/entities/capacitation/course-folder-page.entity.d.ts +2 -0
- package/dist/entities/capacitation/course-folder-page.entity.js +7 -0
- package/dist/entities/capacitation/course-folder-page.entity.js.map +1 -1
- package/dist/entities/capacitation/course.entity.d.ts +2 -0
- package/dist/entities/capacitation/course.entity.js +7 -0
- package/dist/entities/capacitation/course.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
+
import { CourseEvaluation } from './course-evaluation.entity';
|
|
3
|
+
export declare enum QuestionType {
|
|
4
|
+
TEXT = "TEXT",
|
|
5
|
+
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
6
|
+
TRUE_FALSE = "TRUE_FALSE"
|
|
7
|
+
}
|
|
8
|
+
export declare class CourseEvaluationQuestion extends EntityBase {
|
|
9
|
+
text: string;
|
|
10
|
+
type: QuestionType;
|
|
11
|
+
options: any;
|
|
12
|
+
evaluation: CourseEvaluation;
|
|
13
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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.CourseEvaluationQuestion = exports.QuestionType = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
|
+
const course_evaluation_entity_1 = require("./course-evaluation.entity");
|
|
16
|
+
var QuestionType;
|
|
17
|
+
(function (QuestionType) {
|
|
18
|
+
QuestionType["TEXT"] = "TEXT";
|
|
19
|
+
QuestionType["MULTIPLE_CHOICE"] = "MULTIPLE_CHOICE";
|
|
20
|
+
QuestionType["TRUE_FALSE"] = "TRUE_FALSE";
|
|
21
|
+
})(QuestionType || (exports.QuestionType = QuestionType = {}));
|
|
22
|
+
let CourseEvaluationQuestion = class CourseEvaluationQuestion extends base_entity_1.EntityBase {
|
|
23
|
+
text;
|
|
24
|
+
type;
|
|
25
|
+
options;
|
|
26
|
+
evaluation;
|
|
27
|
+
};
|
|
28
|
+
exports.CourseEvaluationQuestion = CourseEvaluationQuestion;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.Column)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CourseEvaluationQuestion.prototype, "text", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.Column)({
|
|
35
|
+
type: 'enum',
|
|
36
|
+
enum: QuestionType,
|
|
37
|
+
default: QuestionType.TEXT,
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CourseEvaluationQuestion.prototype, "type", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], CourseEvaluationQuestion.prototype, "options", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ManyToOne)(() => course_evaluation_entity_1.CourseEvaluation, evaluation => evaluation.questions),
|
|
47
|
+
__metadata("design:type", course_evaluation_entity_1.CourseEvaluation)
|
|
48
|
+
], CourseEvaluationQuestion.prototype, "evaluation", void 0);
|
|
49
|
+
exports.CourseEvaluationQuestion = CourseEvaluationQuestion = __decorate([
|
|
50
|
+
(0, typeorm_1.Entity)()
|
|
51
|
+
], CourseEvaluationQuestion);
|
|
52
|
+
//# sourceMappingURL=course-evaluation-question.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-evaluation-question.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation-question.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,mEAA+D;AAC/D,yEAA8D;AAE9D,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,mDAAmC,CAAA;IACnC,yCAAyB,CAAA;AAE3B,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,wBAAU;IAEtD,IAAI,CAAS;IAOb,IAAI,CAAe;IAGnB,OAAO,CAAM;IAGb,UAAU,CAAmB;CAC9B,CAAA;AAhBY,4DAAwB;AAEnC;IADC,IAAA,gBAAM,GAAE;;sDACI;AAOb;IALC,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,YAAY,CAAC,IAAI;KAC3B,CAAC;;sDACiB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yDAC7B;AAGb;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC;8BAC1D,2CAAgB;4DAAC;mCAflB,wBAAwB;IADpC,IAAA,gBAAM,GAAE;GACI,wBAAwB,CAgBpC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
+
import { User } from '../user.entity';
|
|
3
|
+
import { Course } from './course.entity';
|
|
4
|
+
import { CourseFolderPage } from './course-folder-page.entity';
|
|
5
|
+
import { CourseEvaluationQuestion } from './course-evaluation-question';
|
|
6
|
+
export declare class CourseEvaluation extends EntityBase {
|
|
7
|
+
page?: CourseFolderPage;
|
|
8
|
+
course: Course;
|
|
9
|
+
questions: CourseEvaluationQuestion[];
|
|
10
|
+
createdBy: User;
|
|
11
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.CourseEvaluation = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
16
|
+
const user_entity_1 = require("../user.entity");
|
|
17
|
+
const course_entity_1 = require("./course.entity");
|
|
18
|
+
const course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
19
|
+
const course_evaluation_question_1 = require("./course-evaluation-question");
|
|
20
|
+
let CourseEvaluation = class CourseEvaluation extends base_entity_1.EntityBase {
|
|
21
|
+
page;
|
|
22
|
+
course;
|
|
23
|
+
questions;
|
|
24
|
+
createdBy;
|
|
25
|
+
};
|
|
26
|
+
exports.CourseEvaluation = CourseEvaluation;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({ type: () => course_folder_page_entity_1.CourseFolderPage, description: "Page' evaluation", required: false }),
|
|
29
|
+
(0, typeorm_1.OneToOne)(() => course_folder_page_entity_1.CourseFolderPage, page => page.evaluation, {
|
|
30
|
+
nullable: true,
|
|
31
|
+
}),
|
|
32
|
+
(0, typeorm_1.JoinColumn)(),
|
|
33
|
+
__metadata("design:type", course_folder_page_entity_1.CourseFolderPage)
|
|
34
|
+
], CourseEvaluation.prototype, "page", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: () => course_entity_1.Course, description: "Course's evaluations", required: false }),
|
|
37
|
+
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.evaluations),
|
|
38
|
+
__metadata("design:type", course_entity_1.Course)
|
|
39
|
+
], CourseEvaluation.prototype, "course", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({ type: () => course_evaluation_question_1.CourseEvaluationQuestion, description: 'Evaluations questions', required: false }),
|
|
42
|
+
(0, typeorm_1.ManyToOne)(() => course_evaluation_question_1.CourseEvaluationQuestion, courseEvaluationQuestion => courseEvaluationQuestion.evaluation),
|
|
43
|
+
__metadata("design:type", Array)
|
|
44
|
+
], CourseEvaluation.prototype, "questions", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({
|
|
47
|
+
type: () => user_entity_1.User,
|
|
48
|
+
description: 'User who creates the evaluation',
|
|
49
|
+
required: false,
|
|
50
|
+
}),
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User),
|
|
52
|
+
__metadata("design:type", user_entity_1.User)
|
|
53
|
+
], CourseEvaluation.prototype, "createdBy", void 0);
|
|
54
|
+
exports.CourseEvaluation = CourseEvaluation = __decorate([
|
|
55
|
+
(0, typeorm_1.Entity)()
|
|
56
|
+
], CourseEvaluation);
|
|
57
|
+
//# sourceMappingURL=course-evaluation.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-evaluation.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAkE;AAClE,6CAA8C;AAE9C,mEAA+D;AAC/D,gDAAsC;AAEtC,mDAAyC;AACzC,2EAA+D;AAC/D,6EAAwE;AAGjE,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wBAAU;IAM9C,IAAI,CAAoB;IAIxB,MAAM,CAAS;IAIf,SAAS,CAA6B;IAQtC,SAAS,CAAO;CACjB,CAAA;AAvBY,4CAAgB;AAM3B;IALC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,4CAAgB,EAAE,WAAW,EAAE,kBAAkB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,4CAAgB,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE;QACzD,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,4CAAgB;8CAAC;AAIxB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,sBAAsB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACzF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC;8BAC9C,sBAAM;gDAAC;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,qDAAwB,EAAE,WAAW,EAAE,uBAAuB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5G,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,qDAAwB,EAAE,wBAAwB,CAAC,EAAE,CAAC,wBAAwB,CAAC,UAAU,CAAC;;mDACrE;AAQtC;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI;QAChB,WAAW,EAAE,iCAAiC;QAC9C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;8BACX,kBAAI;mDAAC;2BAtBL,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAuB5B"}
|
|
@@ -2,6 +2,7 @@ import { LMSFileUploaded } from 'common';
|
|
|
2
2
|
import { EntityBase } from '../../common/database/base.entity';
|
|
3
3
|
import { CourseFolder } from './course-folder.entity';
|
|
4
4
|
import { CourseAssigned } from './course-assigned.entity';
|
|
5
|
+
import { CourseEvaluation } from './course-evaluation.entity';
|
|
5
6
|
export declare class CourseFolderPage extends EntityBase {
|
|
6
7
|
name: string;
|
|
7
8
|
description?: string;
|
|
@@ -11,4 +12,5 @@ export declare class CourseFolderPage extends EntityBase {
|
|
|
11
12
|
files?: LMSFileUploaded[];
|
|
12
13
|
folder: CourseFolder;
|
|
13
14
|
courseAssigned: CourseAssigned[];
|
|
15
|
+
evaluation: CourseEvaluation;
|
|
14
16
|
}
|
|
@@ -15,6 +15,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
15
15
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
16
16
|
const course_folder_entity_1 = require("./course-folder.entity");
|
|
17
17
|
const course_assigned_entity_1 = require("./course-assigned.entity");
|
|
18
|
+
const course_evaluation_entity_1 = require("./course-evaluation.entity");
|
|
18
19
|
let CourseFolderPage = class CourseFolderPage extends base_entity_1.EntityBase {
|
|
19
20
|
name;
|
|
20
21
|
description;
|
|
@@ -24,6 +25,7 @@ let CourseFolderPage = class CourseFolderPage extends base_entity_1.EntityBase {
|
|
|
24
25
|
files;
|
|
25
26
|
folder;
|
|
26
27
|
courseAssigned;
|
|
28
|
+
evaluation;
|
|
27
29
|
};
|
|
28
30
|
exports.CourseFolderPage = CourseFolderPage;
|
|
29
31
|
__decorate([
|
|
@@ -67,6 +69,11 @@ __decorate([
|
|
|
67
69
|
(0, typeorm_1.OneToMany)(() => course_assigned_entity_1.CourseAssigned, courseAssigned => courseAssigned.lastCompletedPage),
|
|
68
70
|
__metadata("design:type", Array)
|
|
69
71
|
], CourseFolderPage.prototype, "courseAssigned", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, swagger_1.ApiProperty)({ type: () => course_evaluation_entity_1.CourseEvaluation, description: 'Evaluation of the page', required: false }),
|
|
74
|
+
(0, typeorm_1.OneToOne)(() => course_evaluation_entity_1.CourseEvaluation, evaluation => evaluation.page, { nullable: true }),
|
|
75
|
+
__metadata("design:type", course_evaluation_entity_1.CourseEvaluation)
|
|
76
|
+
], CourseFolderPage.prototype, "evaluation", void 0);
|
|
70
77
|
exports.CourseFolderPage = CourseFolderPage = __decorate([
|
|
71
78
|
(0, typeorm_1.Entity)()
|
|
72
79
|
], CourseFolderPage);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-folder-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-folder-page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"course-folder-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-folder-page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyE;AACzE,6CAA8C;AAI9C,mEAA+D;AAC/D,iEAAsD;AACtD,qEAA0D;AAC1D,yEAA8D;AAGvD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wBAAU;IAG9C,IAAI,CAAS;IAIb,WAAW,CAAU;IAGrB,WAAW,CAAU;IAGrB,WAAW,CAAU;IAQrB,KAAK,CAAS;IAId,KAAK,CAAqB;IAI1B,MAAM,CAAe;IAGrB,cAAc,CAAmB;IAIjC,UAAU,CAAmB;CAC9B,CAAA;AArCY,4CAAgB;AAG3B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAC9D,IAAA,gBAAM,GAAE;;8CACI;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACrF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACN;AAGrB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;qDACN;AAQrB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,0BAA0B;QACvC,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;;+CAClC;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,+BAA+B,EAAE,CAAC;IAC1F,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;+CAC7B;AAI1B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,mCAAY,EAAE,WAAW,EAAE,0BAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACnG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mCAAY,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACvE,mCAAY;gDAAC;AAGrB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,cAAc,CAAC,EAAE,CAAC,cAAc,CAAC,iBAAiB,CAAC;;wDACnD;AAIjC;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,2CAAgB,EAAE,WAAW,EAAE,wBAAwB,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACrG,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACxE,2CAAgB;oDAAC;2BApClB,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAqC5B"}
|
|
@@ -4,6 +4,7 @@ import { CourseAssigned } from './course-assigned.entity';
|
|
|
4
4
|
import { User } from '../user.entity';
|
|
5
5
|
import { Group } from '../group.entity';
|
|
6
6
|
import { CourseOrder } from './course-order.entity';
|
|
7
|
+
import { CourseEvaluation } from './course-evaluation.entity';
|
|
7
8
|
export declare class Course extends EntityBase {
|
|
8
9
|
name: string;
|
|
9
10
|
description?: string;
|
|
@@ -17,4 +18,5 @@ export declare class Course extends EntityBase {
|
|
|
17
18
|
groups: Group[];
|
|
18
19
|
assignedUsers: CourseAssigned[];
|
|
19
20
|
orders: CourseOrder[];
|
|
21
|
+
evaluations?: CourseEvaluation[];
|
|
20
22
|
}
|
|
@@ -18,6 +18,7 @@ const course_assigned_entity_1 = require("./course-assigned.entity");
|
|
|
18
18
|
const user_entity_1 = require("../user.entity");
|
|
19
19
|
const group_entity_1 = require("../group.entity");
|
|
20
20
|
const course_order_entity_1 = require("./course-order.entity");
|
|
21
|
+
const course_evaluation_entity_1 = require("./course-evaluation.entity");
|
|
21
22
|
let Course = class Course extends base_entity_1.EntityBase {
|
|
22
23
|
name;
|
|
23
24
|
description;
|
|
@@ -31,6 +32,7 @@ let Course = class Course extends base_entity_1.EntityBase {
|
|
|
31
32
|
groups;
|
|
32
33
|
assignedUsers;
|
|
33
34
|
orders;
|
|
35
|
+
evaluations;
|
|
34
36
|
};
|
|
35
37
|
exports.Course = Course;
|
|
36
38
|
__decorate([
|
|
@@ -116,6 +118,11 @@ __decorate([
|
|
|
116
118
|
(0, typeorm_1.OneToMany)(() => course_order_entity_1.CourseOrder, courseOrder => courseOrder.course),
|
|
117
119
|
__metadata("design:type", Array)
|
|
118
120
|
], Course.prototype, "orders", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, swagger_1.ApiProperty)({ type: () => course_evaluation_entity_1.CourseEvaluation, description: 'Evaluation of the course', required: false }),
|
|
123
|
+
(0, typeorm_1.OneToMany)(() => course_evaluation_entity_1.CourseEvaluation, evaluation => evaluation.course),
|
|
124
|
+
__metadata("design:type", Array)
|
|
125
|
+
], Course.prototype, "evaluations", void 0);
|
|
119
126
|
exports.Course = Course = __decorate([
|
|
120
127
|
(0, typeorm_1.Entity)()
|
|
121
128
|
], Course);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA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