easywork-common-lib 1.0.680 → 1.0.683
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-assigned.entity.d.ts +0 -2
- package/dist/entities/capacitation/course-assigned.entity.js +1 -7
- package/dist/entities/capacitation/course-assigned.entity.js.map +1 -1
- package/dist/entities/capacitation/course-folder-page.entity.d.ts +0 -2
- package/dist/entities/capacitation/course-folder-page.entity.js +0 -6
- package/dist/entities/capacitation/course-folder-page.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Course } from './course.entity';
|
|
2
|
-
import { CourseFolderPage } from './course-folder-page.entity';
|
|
3
2
|
import { User } from '../user.entity';
|
|
4
3
|
import { EntityBase } from '../../common/database/base.entity';
|
|
5
4
|
export declare class CourseAssigned extends EntityBase {
|
|
@@ -8,7 +7,6 @@ export declare class CourseAssigned extends EntityBase {
|
|
|
8
7
|
pageId: string;
|
|
9
8
|
completedAt: Date;
|
|
10
9
|
}[] | null;
|
|
11
|
-
lastCompletedPage: CourseFolderPage | null;
|
|
12
10
|
user: User;
|
|
13
11
|
course: Course;
|
|
14
12
|
}
|
|
@@ -12,29 +12,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CourseAssigned = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const course_entity_1 = require("./course.entity");
|
|
15
|
-
const course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
16
15
|
const user_entity_1 = require("../user.entity");
|
|
17
16
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
18
17
|
let CourseAssigned = class CourseAssigned extends base_entity_1.EntityBase {
|
|
19
18
|
progress;
|
|
20
19
|
completedPages;
|
|
21
|
-
lastCompletedPage;
|
|
22
20
|
user;
|
|
23
21
|
course;
|
|
24
22
|
};
|
|
25
23
|
exports.CourseAssigned = CourseAssigned;
|
|
26
24
|
__decorate([
|
|
27
|
-
(0, typeorm_1.Column)({ default: 0 }),
|
|
25
|
+
(0, typeorm_1.Column)({ default: 0, type: 'numeric' }),
|
|
28
26
|
__metadata("design:type", Number)
|
|
29
27
|
], CourseAssigned.prototype, "progress", void 0);
|
|
30
28
|
__decorate([
|
|
31
29
|
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
32
30
|
__metadata("design:type", Array)
|
|
33
31
|
], CourseAssigned.prototype, "completedPages", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.ManyToOne)(() => course_folder_page_entity_1.CourseFolderPage, page => page.courseAssigned, { nullable: true }),
|
|
36
|
-
__metadata("design:type", course_folder_page_entity_1.CourseFolderPage)
|
|
37
|
-
], CourseAssigned.prototype, "lastCompletedPage", void 0);
|
|
38
32
|
__decorate([
|
|
39
33
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.coursesAssigned),
|
|
40
34
|
__metadata("design:type", user_entity_1.User)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-assigned.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-assigned.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAC5D,mDAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"course-assigned.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-assigned.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4D;AAC5D,mDAAyC;AACzC,gDAAsC;AACtC,mEAA+D;AAIxD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,wBAAU;IAE5C,QAAQ,CAAS;IAGjB,cAAc,CAAiD;IAG/D,IAAI,CAAO;IAGX,MAAM,CAAS;CAChB,CAAA;AAZY,wCAAc;AAEzB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;;gDACvB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACqB;AAG/D;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC;8BAC9C,kBAAI;4CAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC;8BAChD,sBAAM;8CAAC;yBAXJ,cAAc;IAF1B,IAAA,gBAAM,GAAE;IACR,IAAA,gBAAM,EAAC,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;GACd,cAAc,CAY1B"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LMSFileUploaded } from 'common';
|
|
2
2
|
import { EntityBase } from '../../common/database/base.entity';
|
|
3
3
|
import { CourseFolder } from './course-folder.entity';
|
|
4
|
-
import { CourseAssigned } from './course-assigned.entity';
|
|
5
4
|
import { CourseEvaluation } from './course-evaluation.entity';
|
|
6
5
|
export declare class CourseFolderPage extends EntityBase {
|
|
7
6
|
name: string;
|
|
@@ -11,6 +10,5 @@ export declare class CourseFolderPage extends EntityBase {
|
|
|
11
10
|
order: number;
|
|
12
11
|
files?: LMSFileUploaded[];
|
|
13
12
|
folder: CourseFolder;
|
|
14
|
-
courseAssigned: CourseAssigned[];
|
|
15
13
|
evaluation: CourseEvaluation;
|
|
16
14
|
}
|
|
@@ -14,7 +14,6 @@ const typeorm_1 = require("typeorm");
|
|
|
14
14
|
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
|
-
const course_assigned_entity_1 = require("./course-assigned.entity");
|
|
18
17
|
const course_evaluation_entity_1 = require("./course-evaluation.entity");
|
|
19
18
|
let CourseFolderPage = class CourseFolderPage extends base_entity_1.EntityBase {
|
|
20
19
|
name;
|
|
@@ -24,7 +23,6 @@ let CourseFolderPage = class CourseFolderPage extends base_entity_1.EntityBase {
|
|
|
24
23
|
order;
|
|
25
24
|
files;
|
|
26
25
|
folder;
|
|
27
|
-
courseAssigned;
|
|
28
26
|
evaluation;
|
|
29
27
|
};
|
|
30
28
|
exports.CourseFolderPage = CourseFolderPage;
|
|
@@ -65,10 +63,6 @@ __decorate([
|
|
|
65
63
|
(0, typeorm_1.ManyToOne)(() => course_folder_entity_1.CourseFolder, folder => folder.pages, { onDelete: 'CASCADE' }),
|
|
66
64
|
__metadata("design:type", course_folder_entity_1.CourseFolder)
|
|
67
65
|
], CourseFolderPage.prototype, "folder", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, typeorm_1.OneToMany)(() => course_assigned_entity_1.CourseAssigned, courseAssigned => courseAssigned.lastCompletedPage),
|
|
70
|
-
__metadata("design:type", Array)
|
|
71
|
-
], CourseFolderPage.prototype, "courseAssigned", void 0);
|
|
72
66
|
__decorate([
|
|
73
67
|
(0, swagger_1.ApiProperty)({ type: () => course_evaluation_entity_1.CourseEvaluation, description: 'Evaluation of the page', required: false }),
|
|
74
68
|
(0, typeorm_1.OneToOne)(() => course_evaluation_entity_1.CourseEvaluation, evaluation => evaluation.page, { nullable: true }),
|
|
@@ -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,qCAA8D;AAC9D,6CAA8C;AAI9C,mEAA+D;AAC/D,iEAAsD;AACtD,yEAA8D;AAGvD,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wBAA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