easywork-common-lib 1.0.748 → 1.0.749

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.
Files changed (45) hide show
  1. package/.gitattributes +2 -2
  2. package/.github/workflows/npm-publish.yml +33 -33
  3. package/.vscode/settings.json +12 -12
  4. package/dist/entities/capacitation/capacitation-lesson.entity copy.d.ts +7 -0
  5. package/dist/entities/capacitation/capacitation-lesson.entity copy.js +45 -0
  6. package/dist/entities/capacitation/capacitation-lesson.entity copy.js.map +1 -0
  7. package/dist/entities/capacitation/capacitation-module.entity.d.ts +12 -0
  8. package/dist/entities/capacitation/capacitation-module.entity.js +85 -0
  9. package/dist/entities/capacitation/capacitation-module.entity.js.map +1 -0
  10. package/dist/entities/capacitation/course-evaluation-progress.d.ts +20 -0
  11. package/dist/entities/capacitation/course-evaluation-progress.entity.d.ts +19 -0
  12. package/dist/entities/capacitation/course-evaluation-progress.entity.js +81 -0
  13. package/dist/entities/capacitation/course-evaluation-progress.entity.js.map +1 -0
  14. package/dist/entities/capacitation/course-evaluation-progress.js +81 -0
  15. package/dist/entities/capacitation/course-evaluation-progress.js.map +1 -0
  16. package/dist/entities/capacitation/course-evaluation-question.d.ts +11 -0
  17. package/dist/entities/capacitation/course-evaluation-question.js +46 -0
  18. package/dist/entities/capacitation/course-evaluation-question.js.map +1 -0
  19. package/dist/entities/capacitation/course-progress.entity.d.ts +14 -0
  20. package/dist/entities/capacitation/course-progress.entity.js +53 -0
  21. package/dist/entities/capacitation/course-progress.entity.js.map +1 -0
  22. package/dist/entities/capacitation/folder-page.entity.d.ts +11 -0
  23. package/dist/entities/capacitation/folder-page.entity.js +57 -0
  24. package/dist/entities/capacitation/folder-page.entity.js.map +1 -0
  25. package/dist/entities/capacitation/lesson-page.entity.d.ts +13 -0
  26. package/dist/entities/capacitation/lesson-page.entity.js +69 -0
  27. package/dist/entities/capacitation/lesson-page.entity.js.map +1 -0
  28. package/dist/entities/capacitation/lesson-section.entity.d.ts +10 -0
  29. package/dist/entities/capacitation/lesson-section.entity.js +57 -0
  30. package/dist/entities/capacitation/lesson-section.entity.js.map +1 -0
  31. package/dist/entities/capacitation/lesson.entity.d.ts +15 -0
  32. package/dist/entities/capacitation/lesson.entity.js +77 -0
  33. package/dist/entities/capacitation/lesson.entity.js.map +1 -0
  34. package/dist/entities/user-invitations.entity.d.ts +1 -0
  35. package/dist/entities/user-invitations.entity.js +10 -0
  36. package/dist/entities/user-invitations.entity.js.map +1 -1
  37. package/dist/grpc/drive/drive.proto +260 -260
  38. package/dist/grpc/drive/leads.proto +114 -114
  39. package/justfile +8 -8
  40. package/package.json +46 -46
  41. package/scripts/bump.sh +8 -8
  42. package/test.bat +15 -15
  43. package/tsconfig.build.json +4 -4
  44. package/tsconfig.json +25 -25
  45. package/tsconfig.tsbuildinfo +1 -1
@@ -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.FolderPage = 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 FolderPage = class FolderPage extends base_entity_1.EntityBase {
18
+ name;
19
+ description;
20
+ isCompleted;
21
+ isPublished;
22
+ files;
23
+ folder;
24
+ };
25
+ exports.FolderPage = FolderPage;
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Folder page name' }),
28
+ (0, typeorm_1.Column)(),
29
+ __metadata("design:type", String)
30
+ ], FolderPage.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
+ ], FolderPage.prototype, "description", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ default: false }),
38
+ __metadata("design:type", Boolean)
39
+ ], FolderPage.prototype, "isCompleted", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ default: false }),
42
+ __metadata("design:type", Boolean)
43
+ ], FolderPage.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
+ ], FolderPage.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
+ ], FolderPage.prototype, "folder", void 0);
54
+ exports.FolderPage = FolderPage = __decorate([
55
+ (0, typeorm_1.Entity)()
56
+ ], FolderPage);
57
+ //# sourceMappingURL=folder-page.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"folder-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/folder-page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,iEAAsD;AAI/C,IAAM,UA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,UAAU,CAsBtB"}
@@ -0,0 +1,13 @@
1
+ import { EntityBase } from '../../common/database/base.entity';
2
+ import { Lesson } from './lesson.entity';
3
+ import { LMSFileUploaded } from 'common';
4
+ export declare class LessonPage extends EntityBase {
5
+ name: string;
6
+ description?: string;
7
+ coverPhotoSrc?: string;
8
+ progress: number;
9
+ isCompleted: boolean;
10
+ images?: string[];
11
+ files?: LMSFileUploaded[];
12
+ lesson: Lesson;
13
+ }
@@ -0,0 +1,69 @@
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.LessonPage = 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 lesson_entity_1 = require("./lesson.entity");
17
+ let LessonPage = class LessonPage extends base_entity_1.EntityBase {
18
+ name;
19
+ description;
20
+ coverPhotoSrc;
21
+ progress;
22
+ isCompleted;
23
+ images;
24
+ files;
25
+ lesson;
26
+ };
27
+ exports.LessonPage = LessonPage;
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson page name' }),
30
+ (0, typeorm_1.Column)(),
31
+ __metadata("design:type", String)
32
+ ], LessonPage.prototype, "name", void 0);
33
+ __decorate([
34
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson page description', nullable: true }),
35
+ (0, typeorm_1.Column)({ nullable: true }),
36
+ __metadata("design:type", String)
37
+ ], LessonPage.prototype, "description", void 0);
38
+ __decorate([
39
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
40
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
41
+ __metadata("design:type", String)
42
+ ], LessonPage.prototype, "coverPhotoSrc", void 0);
43
+ __decorate([
44
+ (0, typeorm_1.Column)({ default: 0, type: 'float' }),
45
+ __metadata("design:type", Number)
46
+ ], LessonPage.prototype, "progress", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ default: false }),
49
+ __metadata("design:type", Boolean)
50
+ ], LessonPage.prototype, "isCompleted", void 0);
51
+ __decorate([
52
+ (0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Images uploaded to the content' }),
53
+ (0, typeorm_1.Column)({ type: 'text', array: true, default: [] }),
54
+ __metadata("design:type", Array)
55
+ ], LessonPage.prototype, "images", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Files uploaded to the content' }),
58
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
59
+ __metadata("design:type", Array)
60
+ ], LessonPage.prototype, "files", void 0);
61
+ __decorate([
62
+ (0, swagger_1.ApiProperty)({ type: () => lesson_entity_1.Lesson, description: 'Lesson owner of the page', required: false }),
63
+ (0, typeorm_1.ManyToOne)(() => lesson_entity_1.Lesson, lesson => lesson.pages, { onDelete: 'CASCADE' }),
64
+ __metadata("design:type", lesson_entity_1.Lesson)
65
+ ], LessonPage.prototype, "lesson", void 0);
66
+ exports.LessonPage = LessonPage = __decorate([
67
+ (0, typeorm_1.Entity)()
68
+ ], LessonPage);
69
+ //# sourceMappingURL=lesson-page.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lesson-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson-page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,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;0CACjC;AAIlB;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;;yCAC7B;AAI1B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC7F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACjE,sBAAM;0CAAC;qBA7BJ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CA8BtB"}
@@ -0,0 +1,10 @@
1
+ import { EntityBase } from '../../common/database/base.entity';
2
+ import { Lesson } from './lesson.entity';
3
+ export declare class LessonSection extends EntityBase {
4
+ title: string;
5
+ description?: string;
6
+ coverPhotoSrc?: string;
7
+ progress: number;
8
+ isCompleted: boolean;
9
+ lesson: Lesson;
10
+ }
@@ -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.LessonSection = 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 lesson_entity_1 = require("./lesson.entity");
17
+ let LessonSection = class LessonSection extends base_entity_1.EntityBase {
18
+ title;
19
+ description;
20
+ coverPhotoSrc;
21
+ progress;
22
+ isCompleted;
23
+ lesson;
24
+ };
25
+ exports.LessonSection = LessonSection;
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson section name' }),
28
+ (0, typeorm_1.Column)(),
29
+ __metadata("design:type", String)
30
+ ], LessonSection.prototype, "title", void 0);
31
+ __decorate([
32
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson section description', nullable: true }),
33
+ (0, typeorm_1.Column)({ nullable: true }),
34
+ __metadata("design:type", String)
35
+ ], LessonSection.prototype, "description", void 0);
36
+ __decorate([
37
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
38
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
39
+ __metadata("design:type", String)
40
+ ], LessonSection.prototype, "coverPhotoSrc", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ default: 0, type: 'float' }),
43
+ __metadata("design:type", Number)
44
+ ], LessonSection.prototype, "progress", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ default: false }),
47
+ __metadata("design:type", Boolean)
48
+ ], LessonSection.prototype, "isCompleted", void 0);
49
+ __decorate([
50
+ (0, swagger_1.ApiProperty)({ type: () => lesson_entity_1.Lesson, description: 'Lesson owner of the section', required: false }),
51
+ (0, typeorm_1.ManyToOne)(() => lesson_entity_1.Lesson, { nullable: false }),
52
+ __metadata("design:type", lesson_entity_1.Lesson)
53
+ ], LessonSection.prototype, "lesson", void 0);
54
+ exports.LessonSection = LessonSection = __decorate([
55
+ (0, typeorm_1.Entity)()
56
+ ], LessonSection);
57
+ //# sourceMappingURL=lesson-section.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lesson-section.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson-section.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AAGlC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,wBAAU;IAG3C,KAAK,CAAS;IAId,WAAW,CAAU;IAIrB,aAAa,CAAU;IAGvB,QAAQ,CAAS;IAGjB,WAAW,CAAU;IAIrB,MAAM,CAAS;CAChB,CAAA;AAtBY,sCAAa;AAGxB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACjE,IAAA,gBAAM,GAAE;;4CACK;AAId;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACxF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC7E,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAClB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;;+CACrB;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;kDACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;8BACrC,sBAAM;6CAAC;wBArBJ,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAsBzB"}
@@ -0,0 +1,15 @@
1
+ import { EntityBase } from '../../common/database/base.entity';
2
+ import { Course } from './course.entity';
3
+ import { LessonPage } from './lesson-page.entity';
4
+ import { LMSFileUploaded } from 'common';
5
+ export declare class Lesson extends EntityBase {
6
+ name: string;
7
+ description?: string;
8
+ content?: string;
9
+ coverPhotoSrc?: string;
10
+ images?: string[];
11
+ files?: LMSFileUploaded[];
12
+ isCompleted: boolean;
13
+ course: Course;
14
+ pages: LessonPage[];
15
+ }
@@ -0,0 +1,77 @@
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.Lesson = 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_entity_1 = require("./course.entity");
17
+ const lesson_page_entity_1 = require("./lesson-page.entity");
18
+ let Lesson = class Lesson extends base_entity_1.EntityBase {
19
+ name;
20
+ description;
21
+ content;
22
+ coverPhotoSrc;
23
+ images;
24
+ files;
25
+ isCompleted;
26
+ course;
27
+ pages;
28
+ };
29
+ exports.Lesson = Lesson;
30
+ __decorate([
31
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson name' }),
32
+ (0, typeorm_1.Column)(),
33
+ __metadata("design:type", String)
34
+ ], Lesson.prototype, "name", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson description', nullable: true }),
37
+ (0, typeorm_1.Column)({ nullable: true }),
38
+ __metadata("design:type", String)
39
+ ], Lesson.prototype, "description", void 0);
40
+ __decorate([
41
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson content', nullable: true }),
42
+ (0, typeorm_1.Column)({ nullable: true }),
43
+ __metadata("design:type", String)
44
+ ], Lesson.prototype, "content", void 0);
45
+ __decorate([
46
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
47
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
48
+ __metadata("design:type", String)
49
+ ], Lesson.prototype, "coverPhotoSrc", void 0);
50
+ __decorate([
51
+ (0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Images uploaded to the content' }),
52
+ (0, typeorm_1.Column)({ type: 'text', array: true, default: [] }),
53
+ __metadata("design:type", Array)
54
+ ], Lesson.prototype, "images", void 0);
55
+ __decorate([
56
+ (0, swagger_1.ApiProperty)({ isArray: true, type: String, description: 'Files uploaded to the content' }),
57
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, default: [] }),
58
+ __metadata("design:type", Array)
59
+ ], Lesson.prototype, "files", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.Column)({ default: false }),
62
+ __metadata("design:type", Boolean)
63
+ ], Lesson.prototype, "isCompleted", void 0);
64
+ __decorate([
65
+ (0, swagger_1.ApiProperty)({ type: () => course_entity_1.Course, description: 'Course owner of the lesson', required: false }),
66
+ (0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.lessons, { onDelete: 'CASCADE' }),
67
+ __metadata("design:type", course_entity_1.Course)
68
+ ], Lesson.prototype, "course", void 0);
69
+ __decorate([
70
+ (0, swagger_1.ApiProperty)({ type: () => lesson_page_entity_1.LessonPage, description: 'Lesson owner of the pages', required: false }),
71
+ (0, typeorm_1.OneToMany)(() => lesson_page_entity_1.LessonPage, lessonPage => lessonPage.lesson, { onDelete: 'CASCADE' }),
72
+ __metadata("design:type", Array)
73
+ ], Lesson.prototype, "pages", void 0);
74
+ exports.Lesson = Lesson = __decorate([
75
+ (0, typeorm_1.Entity)()
76
+ ], Lesson);
77
+ //# sourceMappingURL=lesson.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lesson.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA+D;AAC/D,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AACzC,6DAAkD;AAI3C,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAU;IAGpC,IAAI,CAAS;IAIb,WAAW,CAAU;IAIrB,OAAO,CAAU;IAIjB,aAAa,CAAU;IAIvB,MAAM,CAAY;IAIlB,KAAK,CAAqB;IAG1B,WAAW,CAAU;IAIrB,MAAM,CAAS;IAIf,KAAK,CAAe;CACrB,CAAA;AAnCY,wBAAM;AAGjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACzD,IAAA,gBAAM,GAAE;;oCACI;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,oBAAoB,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChF,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACN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,EAAE,CAAC;8BACnE,sBAAM;sCAAC;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,+BAAU,EAAE,WAAW,EAAE,2BAA2B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAClG,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+BAAU,EAAE,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;;qCAClE;iBAlCT,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAmClB"}
@@ -7,4 +7,5 @@ export declare class UserInvitations extends EntityBase {
7
7
  isLink: boolean;
8
8
  link: string;
9
9
  adminApproveRequired: boolean;
10
+ quickRegistration: boolean;
10
11
  }
@@ -21,6 +21,7 @@ let UserInvitations = class UserInvitations extends base_entity_1.EntityBase {
21
21
  isLink;
22
22
  link;
23
23
  adminApproveRequired;
24
+ quickRegistration;
24
25
  };
25
26
  exports.UserInvitations = UserInvitations;
26
27
  __decorate([
@@ -86,6 +87,15 @@ __decorate([
86
87
  (0, typeorm_1.Column)({ nullable: false, default: false }),
87
88
  __metadata("design:type", Boolean)
88
89
  ], UserInvitations.prototype, "adminApproveRequired", void 0);
90
+ __decorate([
91
+ (0, swagger_1.ApiProperty)({
92
+ type: Boolean,
93
+ description: 'Admin approve',
94
+ required: false,
95
+ }),
96
+ (0, typeorm_1.Column)({ nullable: false, default: false }),
97
+ __metadata("design:type", Boolean)
98
+ ], UserInvitations.prototype, "quickRegistration", void 0);
89
99
  exports.UserInvitations = UserInvitations = __decorate([
90
100
  (0, typeorm_1.Entity)()
91
101
  ], UserInvitations);
@@ -1 +1 @@
1
- {"version":3,"file":"user-invitations.entity.js","sourceRoot":"","sources":["../../src/entities/user-invitations.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6CAA8C;AAE9C,gEAA4D;AAGrD,IAAM,eAAe,G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