easywork-common-lib 1.0.649 → 1.0.651
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-folder-page.entity.d.ts +1 -1
- package/dist/entities/capacitation/course-folder-page.entity.js +1 -1
- package/dist/entities/capacitation/course-folder-page.entity.js.map +1 -1
- package/dist/entities/capacitation/course.entity.d.ts +1 -2
- package/dist/entities/capacitation/course.entity.js +5 -14
- package/dist/entities/capacitation/course.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LMSFileUploaded } from 'common';
|
|
2
|
-
import { EntityBase } from 'common/database/base.entity';
|
|
2
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
3
3
|
import { CourseFolder } from './course-folder.entity';
|
|
4
4
|
import { CourseProgress } from './course-progress.entity';
|
|
5
5
|
export declare class CourseFolderPage extends EntityBase {
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CourseFolderPage = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
-
const base_entity_1 = require("common/database/base.entity");
|
|
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_progress_entity_1 = require("./course-progress.entity");
|
|
18
18
|
let CourseFolderPage = class CourseFolderPage extends base_entity_1.EntityBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-folder-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-folder-page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAC/D,6CAA8C;AAI9C,
|
|
1
|
+
{"version":3,"file":"course-folder-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-folder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O,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;2BAhCtB,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAiC5B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityBase } from 'common/database/base.entity';
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
2
|
import { CourseFolder } from './course-folder.entity';
|
|
3
3
|
import { CourseProgress } from './course-progress.entity';
|
|
4
4
|
import { User } from '../user.entity';
|
|
@@ -9,7 +9,6 @@ export declare class Course extends EntityBase {
|
|
|
9
9
|
order: number;
|
|
10
10
|
openToAll: boolean;
|
|
11
11
|
private: boolean;
|
|
12
|
-
openAfterNDays: boolean;
|
|
13
12
|
coverPhotoSrc?: string;
|
|
14
13
|
isPublished: boolean;
|
|
15
14
|
folders: CourseFolder[];
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.Course = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
-
const base_entity_1 = require("common/database/base.entity");
|
|
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_progress_entity_1 = require("./course-progress.entity");
|
|
18
18
|
const user_entity_1 = require("../user.entity");
|
|
@@ -23,7 +23,6 @@ let Course = class Course extends base_entity_1.EntityBase {
|
|
|
23
23
|
order;
|
|
24
24
|
openToAll;
|
|
25
25
|
private;
|
|
26
|
-
openAfterNDays;
|
|
27
26
|
coverPhotoSrc;
|
|
28
27
|
isPublished;
|
|
29
28
|
folders;
|
|
@@ -75,14 +74,6 @@ __decorate([
|
|
|
75
74
|
(0, typeorm_1.Column)({ default: false }),
|
|
76
75
|
__metadata("design:type", Boolean)
|
|
77
76
|
], Course.prototype, "private", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, swagger_1.ApiProperty)({
|
|
80
|
-
type: Boolean,
|
|
81
|
-
required: false,
|
|
82
|
-
}),
|
|
83
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
84
|
-
__metadata("design:type", Boolean)
|
|
85
|
-
], Course.prototype, "openAfterNDays", void 0);
|
|
86
77
|
__decorate([
|
|
87
78
|
(0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
|
|
88
79
|
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
@@ -98,7 +89,7 @@ __decorate([
|
|
|
98
89
|
], Course.prototype, "isPublished", void 0);
|
|
99
90
|
__decorate([
|
|
100
91
|
(0, swagger_1.ApiProperty)({ type: () => course_folder_entity_1.CourseFolder }),
|
|
101
|
-
(0, typeorm_1.OneToMany)(() => course_folder_entity_1.CourseFolder, folder => folder.course),
|
|
92
|
+
(0, typeorm_1.OneToMany)(() => course_folder_entity_1.CourseFolder, folder => folder.course, { eager: false }),
|
|
102
93
|
__metadata("design:type", Array)
|
|
103
94
|
], Course.prototype, "folders", void 0);
|
|
104
95
|
__decorate([
|
|
@@ -107,16 +98,16 @@ __decorate([
|
|
|
107
98
|
description: 'User who creates the course',
|
|
108
99
|
required: false,
|
|
109
100
|
}),
|
|
110
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.createdCourses),
|
|
101
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.createdCourses, { eager: false }),
|
|
111
102
|
__metadata("design:type", user_entity_1.User)
|
|
112
103
|
], Course.prototype, "createdBy", void 0);
|
|
113
104
|
__decorate([
|
|
114
|
-
(0, typeorm_1.ManyToMany)(() => group_entity_1.Group, group => group.courses),
|
|
105
|
+
(0, typeorm_1.ManyToMany)(() => group_entity_1.Group, group => group.courses, { eager: false }),
|
|
115
106
|
(0, typeorm_1.JoinTable)(),
|
|
116
107
|
__metadata("design:type", Array)
|
|
117
108
|
], Course.prototype, "groups", void 0);
|
|
118
109
|
__decorate([
|
|
119
|
-
(0, typeorm_1.OneToMany)(() => course_progress_entity_1.CourseProgress, courseProgress => courseProgress.course),
|
|
110
|
+
(0, typeorm_1.OneToMany)(() => course_progress_entity_1.CourseProgress, courseProgress => courseProgress.course, { eager: false }),
|
|
120
111
|
__metadata("design:type", Array)
|
|
121
112
|
], Course.prototype, "courseProgress", void 0);
|
|
122
113
|
exports.Course = Course = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsF;AACtF,6CAA8C;AAE9C,
|
|
1
|
+
{"version":3,"file":"course.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsF;AACtF,6CAA8C;AAE9C,mEAA+D;AAC/D,iEAAsD;AACtD,qEAA0D;AAC1D,gDAAsC;AACtC,kDAAwC;AAGjC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAU;IAOpC,IAAI,CAAS;IAQb,WAAW,CAAU;IAQrB,KAAK,CAAS;IAOd,SAAS,CAAU;IAOnB,OAAO,CAAU;IAIjB,aAAa,CAAU;IAOvB,WAAW,CAAU;IAIrB,OAAO,CAAiB;IAQ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