easywork-common-lib 1.0.637 → 1.0.638
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 +11 -0
- package/dist/entities/capacitation/course-folder-page.entity.js +57 -0
- package/dist/entities/capacitation/course-folder-page.entity.js.map +1 -0
- package/dist/entities/capacitation/course-folder.entity.d.ts +2 -2
- package/dist/entities/capacitation/course-folder.entity.js +3 -3
- package/dist/entities/capacitation/course-folder.entity.js.map +1 -1
- package/dist/entities/capacitation/index.d.ts +1 -1
- package/dist/entities/capacitation/index.js +3 -3
- package/dist/entities/capacitation/index.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
+
import { CourseFolder } from './course-folder.entity';
|
|
3
|
+
import { LMSFileUploaded } from 'common';
|
|
4
|
+
export declare class CourseFolderPage extends EntityBase {
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
isCompleted: boolean;
|
|
8
|
+
isPublished: boolean;
|
|
9
|
+
files?: LMSFileUploaded[];
|
|
10
|
+
folder: CourseFolder;
|
|
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.CourseFolderPage = 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 course_folder_entity_1 = require("./course-folder.entity");
|
|
17
|
+
let CourseFolderPage = class CourseFolderPage extends base_entity_1.EntityBase {
|
|
18
|
+
name;
|
|
19
|
+
description;
|
|
20
|
+
isCompleted;
|
|
21
|
+
isPublished;
|
|
22
|
+
files;
|
|
23
|
+
folder;
|
|
24
|
+
};
|
|
25
|
+
exports.CourseFolderPage = CourseFolderPage;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Folder page name' }),
|
|
28
|
+
(0, typeorm_1.Column)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CourseFolderPage.prototype, "name", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Folder page description', nullable: true }),
|
|
33
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CourseFolderPage.prototype, "description", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], CourseFolderPage.prototype, "isCompleted", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], CourseFolderPage.prototype, "isPublished", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Files uploaded to the content' }),
|
|
46
|
+
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], CourseFolderPage.prototype, "files", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ type: () => course_folder_entity_1.CourseFolder, description: 'Folder owner of the page', required: false }),
|
|
51
|
+
(0, typeorm_1.ManyToOne)(() => course_folder_entity_1.CourseFolder, folder => folder.pages, { onDelete: 'CASCADE' }),
|
|
52
|
+
__metadata("design:type", course_folder_entity_1.CourseFolder)
|
|
53
|
+
], CourseFolderPage.prototype, "folder", void 0);
|
|
54
|
+
exports.CourseFolderPage = CourseFolderPage = __decorate([
|
|
55
|
+
(0, typeorm_1.Entity)()
|
|
56
|
+
], CourseFolderPage);
|
|
57
|
+
//# sourceMappingURL=course-folder-page.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course-folder-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-folder-page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,iEAAsD;AAI/C,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,wBAAU;IAG9C,IAAI,CAAS;IAIb,WAAW,CAAU;IAGrB,WAAW,CAAU;IAGrB,WAAW,CAAU;IAIrB,KAAK,CAAqB;IAI1B,MAAM,CAAe;CACtB,CAAA;AAtBY,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;AAIrB;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;2BArBV,gBAAgB;IAD5B,IAAA,gBAAM,GAAE;GACI,gBAAgB,CAsB5B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EntityBase } from '../../common/database/base.entity';
|
|
2
2
|
import { Course } from './course.entity';
|
|
3
|
-
import {
|
|
3
|
+
import { CourseFolderPage } from './course-folder-page.entity';
|
|
4
4
|
export declare class CourseFolder extends EntityBase {
|
|
5
5
|
name: string;
|
|
6
6
|
isPublished: boolean;
|
|
7
7
|
course: Course;
|
|
8
|
-
pages:
|
|
8
|
+
pages: CourseFolderPage[];
|
|
9
9
|
}
|
|
@@ -14,7 +14,7 @@ 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_entity_1 = require("./course.entity");
|
|
17
|
-
const
|
|
17
|
+
const course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
18
18
|
let CourseFolder = class CourseFolder extends base_entity_1.EntityBase {
|
|
19
19
|
name;
|
|
20
20
|
isPublished;
|
|
@@ -37,8 +37,8 @@ __decorate([
|
|
|
37
37
|
__metadata("design:type", course_entity_1.Course)
|
|
38
38
|
], CourseFolder.prototype, "course", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0, swagger_1.ApiProperty)({ type: () =>
|
|
41
|
-
(0, typeorm_1.OneToMany)(() =>
|
|
40
|
+
(0, swagger_1.ApiProperty)({ type: () => course_folder_page_entity_1.CourseFolderPage, description: 'Folder owner of the pages', required: false }),
|
|
41
|
+
(0, typeorm_1.OneToMany)(() => course_folder_page_entity_1.CourseFolderPage, courseFolderPage => courseFolderPage.folder, { onDelete: 'CASCADE' }),
|
|
42
42
|
__metadata("design:type", Array)
|
|
43
43
|
], CourseFolder.prototype, "pages", void 0);
|
|
44
44
|
exports.CourseFolder = CourseFolder = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course-folder.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAC/D,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"course-folder.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-folder.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAC/D,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AACzC,2EAA+D;AAGxD,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,wBAAU;IAG1C,IAAI,CAAS;IAGb,WAAW,CAAU;IAIrB,MAAM,CAAS;IAIf,KAAK,CAAqB;CAC3B,CAAA;AAfY,oCAAY;AAGvB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACzD,IAAA,gBAAM,GAAE;;0CACI;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;iDACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACnE,sBAAM;4CAAC;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,4CAAgB,EAAE,WAAW,EAAE,2BAA2B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACxG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4CAAgB,EAAE,gBAAgB,CAAC,EAAE,CAAC,gBAAgB,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;;2CAC9E;uBAdf,YAAY;IADxB,IAAA,gBAAM,GAAE;GACI,YAAY,CAexB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { Capacitation } from './capacitation.entity';
|
|
2
2
|
export { Course } from './course.entity';
|
|
3
3
|
export { CourseFolder } from './course-folder.entity';
|
|
4
|
-
export {
|
|
4
|
+
export { CourseFolderPage } from './course-folder-page.entity';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CourseFolderPage = exports.CourseFolder = exports.Course = exports.Capacitation = void 0;
|
|
4
4
|
var capacitation_entity_1 = require("./capacitation.entity");
|
|
5
5
|
Object.defineProperty(exports, "Capacitation", { enumerable: true, get: function () { return capacitation_entity_1.Capacitation; } });
|
|
6
6
|
var course_entity_1 = require("./course.entity");
|
|
7
7
|
Object.defineProperty(exports, "Course", { enumerable: true, get: function () { return course_entity_1.Course; } });
|
|
8
8
|
var course_folder_entity_1 = require("./course-folder.entity");
|
|
9
9
|
Object.defineProperty(exports, "CourseFolder", { enumerable: true, get: function () { return course_folder_entity_1.CourseFolder; } });
|
|
10
|
-
var
|
|
11
|
-
Object.defineProperty(exports, "
|
|
10
|
+
var course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
11
|
+
Object.defineProperty(exports, "CourseFolderPage", { enumerable: true, get: function () { return course_folder_page_entity_1.CourseFolderPage; } });
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/capacitation/index.ts"],"names":[],"mappings":";;;AAAA,6DAAqD;AAA5C,mHAAA,YAAY,OAAA;AACrB,iDAAyC;AAAhC,uGAAA,MAAM,OAAA;AACf,+DAAsD;AAA7C,oHAAA,YAAY,OAAA;AACrB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/capacitation/index.ts"],"names":[],"mappings":";;;AAAA,6DAAqD;AAA5C,mHAAA,YAAY,OAAA;AACrB,iDAAyC;AAAhC,uGAAA,MAAM,OAAA;AACf,+DAAsD;AAA7C,oHAAA,YAAY,OAAA;AACrB,yEAA+D;AAAtD,6HAAA,gBAAgB,OAAA"}
|