easywork-common-lib 1.0.697 → 1.0.698
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.
|
@@ -2,7 +2,7 @@ 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
|
-
|
|
5
|
+
declare enum QuestionType {
|
|
6
6
|
text = "text",
|
|
7
7
|
multipleChoice = "multiple-choice",
|
|
8
8
|
trueOrFalse = "true-false",
|
|
@@ -11,7 +11,7 @@ export declare enum QuestionType {
|
|
|
11
11
|
imageSection = "image-section",
|
|
12
12
|
videoSection = "video-section"
|
|
13
13
|
}
|
|
14
|
-
export type
|
|
14
|
+
export type EvaluationQuestion = {
|
|
15
15
|
title: string;
|
|
16
16
|
description?: string;
|
|
17
17
|
body: object;
|
|
@@ -19,8 +19,9 @@ export type Question = {
|
|
|
19
19
|
required: boolean;
|
|
20
20
|
};
|
|
21
21
|
export declare class CourseEvaluation extends EntityBase {
|
|
22
|
-
questions:
|
|
22
|
+
questions: EvaluationQuestion[];
|
|
23
23
|
page?: CourseFolderPage;
|
|
24
24
|
course: Course;
|
|
25
25
|
createdBy: User;
|
|
26
26
|
}
|
|
27
|
+
export {};
|
|
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CourseEvaluation =
|
|
12
|
+
exports.CourseEvaluation = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
15
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
@@ -25,7 +25,7 @@ var QuestionType;
|
|
|
25
25
|
QuestionType["checkList"] = "check-list";
|
|
26
26
|
QuestionType["imageSection"] = "image-section";
|
|
27
27
|
QuestionType["videoSection"] = "video-section";
|
|
28
|
-
})(QuestionType || (
|
|
28
|
+
})(QuestionType || (QuestionType = {}));
|
|
29
29
|
let CourseEvaluation = class CourseEvaluation extends base_entity_1.EntityBase {
|
|
30
30
|
questions;
|
|
31
31
|
page;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-evaluation.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8D;AAC9D,6CAA8C;AAE9C,mEAA+D;AAC/D,gDAAsC;AAEtC,mDAAyC;AACzC,2EAA+D;AAE/D,
|
|
1
|
+
{"version":3,"file":"course-evaluation.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA8D;AAC9D,6CAA8C;AAE9C,mEAA+D;AAC/D,gDAAsC;AAEtC,mDAAyC;AACzC,2EAA+D;AAE/D,IAAK,YAQJ;AARD,WAAK,YAAY;IACf,6BAAa,CAAA;IACb,kDAAkC,CAAA;IAClC,0CAA0B,CAAA;IAC1B,uCAAuB,CAAA;IACvB,wCAAwB,CAAA;IACxB,8CAA8B,CAAA;IAC9B,8CAA8B,CAAA;AAChC,CAAC,EARI,YAAY,KAAZ,YAAY,QAQhB;AAWM,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wBAAU;IAE9C,SAAS,CAAuB;IAMhC,IAAI,CAAoB;IAIxB,MAAM,CAAS;IAQf,SAAS,CAAO;CACjB,CAAA;AArBY,4CAAgB;AAE3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;mDACxB;AAMhC;IAJC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,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