easywork-common-lib 1.0.669 → 1.0.670
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 +0 -2
- package/dist/entities/capacitation/course-evaluation-question.js +0 -6
- package/dist/entities/capacitation/course-evaluation-question.js.map +1 -1
- package/dist/entities/capacitation/course-evaluation.entity.d.ts +0 -2
- package/dist/entities/capacitation/course-evaluation.entity.js +0 -7
- package/dist/entities/capacitation/course-evaluation.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
-
import { CourseEvaluation } from './course-evaluation.entity';
|
|
3
2
|
export declare enum QuestionType {
|
|
4
3
|
TEXT = "TEXT",
|
|
5
4
|
MULTIPLE_CHOICE = "MULTIPLE_CHOICE",
|
|
@@ -9,5 +8,4 @@ export declare class CourseEvaluationQuestion extends EntityBase {
|
|
|
9
8
|
text: string;
|
|
10
9
|
type: QuestionType;
|
|
11
10
|
options: string;
|
|
12
|
-
evaluation: CourseEvaluation;
|
|
13
11
|
}
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CourseEvaluationQuestion = exports.QuestionType = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
|
-
const course_evaluation_entity_1 = require("./course-evaluation.entity");
|
|
16
15
|
var QuestionType;
|
|
17
16
|
(function (QuestionType) {
|
|
18
17
|
QuestionType["TEXT"] = "TEXT";
|
|
@@ -23,7 +22,6 @@ let CourseEvaluationQuestion = class CourseEvaluationQuestion extends base_entit
|
|
|
23
22
|
text;
|
|
24
23
|
type;
|
|
25
24
|
options;
|
|
26
|
-
evaluation;
|
|
27
25
|
};
|
|
28
26
|
exports.CourseEvaluationQuestion = CourseEvaluationQuestion;
|
|
29
27
|
__decorate([
|
|
@@ -42,10 +40,6 @@ __decorate([
|
|
|
42
40
|
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
43
41
|
__metadata("design:type", String)
|
|
44
42
|
], 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
43
|
exports.CourseEvaluationQuestion = CourseEvaluationQuestion = __decorate([
|
|
50
44
|
(0, typeorm_1.Entity)()
|
|
51
45
|
], CourseEvaluationQuestion);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-evaluation-question.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation-question.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"course-evaluation-question.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation-question.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,mEAA+D;AAG/D,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,CAAS;CAIjB,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;;yDAC1B;mCAZL,wBAAwB;IADpC,IAAA,gBAAM,GAAE;GACI,wBAAwB,CAgBpC"}
|
|
@@ -2,10 +2,8 @@ import { EntityBase } from '../../common/database/base.entity';
|
|
|
2
2
|
import { User } from '../user.entity';
|
|
3
3
|
import { Course } from './course.entity';
|
|
4
4
|
import { CourseFolderPage } from './course-folder-page.entity';
|
|
5
|
-
import { CourseEvaluationQuestion } from './course-evaluation-question';
|
|
6
5
|
export declare class CourseEvaluation extends EntityBase {
|
|
7
6
|
page?: CourseFolderPage;
|
|
8
7
|
course: Course;
|
|
9
|
-
questions: CourseEvaluationQuestion[];
|
|
10
8
|
createdBy: User;
|
|
11
9
|
}
|
|
@@ -16,11 +16,9 @@ const base_entity_1 = require("../../common/database/base.entity");
|
|
|
16
16
|
const user_entity_1 = require("../user.entity");
|
|
17
17
|
const course_entity_1 = require("./course.entity");
|
|
18
18
|
const course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
19
|
-
const course_evaluation_question_1 = require("./course-evaluation-question");
|
|
20
19
|
let CourseEvaluation = class CourseEvaluation extends base_entity_1.EntityBase {
|
|
21
20
|
page;
|
|
22
21
|
course;
|
|
23
|
-
questions;
|
|
24
22
|
createdBy;
|
|
25
23
|
};
|
|
26
24
|
exports.CourseEvaluation = CourseEvaluation;
|
|
@@ -36,11 +34,6 @@ __decorate([
|
|
|
36
34
|
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.evaluations),
|
|
37
35
|
__metadata("design:type", course_entity_1.Course)
|
|
38
36
|
], CourseEvaluation.prototype, "course", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, swagger_1.ApiProperty)({ type: () => course_evaluation_question_1.CourseEvaluationQuestion, description: 'Evaluations questions', required: false }),
|
|
41
|
-
(0, typeorm_1.OneToMany)(() => course_evaluation_question_1.CourseEvaluationQuestion, courseEvaluationQuestion => courseEvaluationQuestion.evaluation),
|
|
42
|
-
__metadata("design:type", Array)
|
|
43
|
-
], CourseEvaluation.prototype, "questions", void 0);
|
|
44
37
|
__decorate([
|
|
45
38
|
(0, swagger_1.ApiProperty)({
|
|
46
39
|
type: () => user_entity_1.User,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-evaluation.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"course-evaluation.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsD;AACtD,6CAA8C;AAE9C,mEAA+D;AAC/D,gDAAsC;AAEtC,mDAAyC;AACzC,2EAA+D;AAIxD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wBAAU;IAK9C,IAAI,CAAoB;IAIxB,MAAM,CAAS;IAYf,SAAS,CAAO;CACjB,CAAA;AAtBY,4CAAgB;AAK3B;IAJC,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;8BACK,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;AAYf;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;2BArBL,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAsB5B"}
|