easywork-common-lib 1.0.670 → 1.0.671
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/.gitattributes +2 -2
- package/.github/workflows/npm-publish.yml +33 -33
- package/.vscode/settings.json +12 -12
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +68 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
- package/dist/entities/tools/calendar/event.entity.d.ts +2 -0
- package/dist/entities/tools/calendar/event.entity.js +20 -0
- package/dist/entities/tools/calendar/event.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +240 -240
- package/dist/grpc/drive/leads.proto +114 -114
- package/justfile +8 -8
- package/package.json +4 -4
- package/scripts/bump.sh +8 -8
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +25 -25
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/capacitation/course-progress.entity.d.ts +0 -14
- package/dist/entities/capacitation/course-progress.entity.js +0 -53
- package/dist/entities/capacitation/course-progress.entity.js.map +0 -1
- package/dist/entities/capacitation/folder-page.entity.d.ts +0 -11
- package/dist/entities/capacitation/folder-page.entity.js +0 -57
- package/dist/entities/capacitation/folder-page.entity.js.map +0 -1
- package/dist/entities/capacitation/lesson-page.entity.d.ts +0 -13
- package/dist/entities/capacitation/lesson-page.entity.js +0 -69
- package/dist/entities/capacitation/lesson-page.entity.js.map +0 -1
- package/dist/entities/capacitation/lesson-section.entity.d.ts +0 -10
- package/dist/entities/capacitation/lesson-section.entity.js +0 -57
- package/dist/entities/capacitation/lesson-section.entity.js.map +0 -1
- package/dist/entities/capacitation/lesson.entity.d.ts +0 -15
- package/dist/entities/capacitation/lesson.entity.js +0 -77
- package/dist/entities/capacitation/lesson.entity.js.map +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Course } from './course.entity';
|
|
2
|
-
import { CourseFolderPage } from './course-folder-page.entity';
|
|
3
|
-
import { User } from '../user.entity';
|
|
4
|
-
export declare class CourseProgress {
|
|
5
|
-
id: number;
|
|
6
|
-
user: User;
|
|
7
|
-
course: Course;
|
|
8
|
-
lastCompletedPage: CourseFolderPage | null;
|
|
9
|
-
progress: number;
|
|
10
|
-
completedPages: {
|
|
11
|
-
pageId: number;
|
|
12
|
-
completedAt: Date;
|
|
13
|
-
}[] | null;
|
|
14
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
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.CourseProgress = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const course_entity_1 = require("./course.entity");
|
|
15
|
-
const course_folder_page_entity_1 = require("./course-folder-page.entity");
|
|
16
|
-
const user_entity_1 = require("../user.entity");
|
|
17
|
-
let CourseProgress = class CourseProgress {
|
|
18
|
-
id;
|
|
19
|
-
user;
|
|
20
|
-
course;
|
|
21
|
-
lastCompletedPage;
|
|
22
|
-
progress;
|
|
23
|
-
completedPages;
|
|
24
|
-
};
|
|
25
|
-
exports.CourseProgress = CourseProgress;
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], CourseProgress.prototype, "id", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, user => user.courseProgress),
|
|
32
|
-
__metadata("design:type", user_entity_1.User)
|
|
33
|
-
], CourseProgress.prototype, "user", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.courseProgress),
|
|
36
|
-
__metadata("design:type", course_entity_1.Course)
|
|
37
|
-
], CourseProgress.prototype, "course", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, typeorm_1.ManyToOne)(() => course_folder_page_entity_1.CourseFolderPage, page => page.courseProgress, { nullable: true }),
|
|
40
|
-
__metadata("design:type", course_folder_page_entity_1.CourseFolderPage)
|
|
41
|
-
], CourseProgress.prototype, "lastCompletedPage", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, typeorm_1.Column)({ default: 0 }),
|
|
44
|
-
__metadata("design:type", Number)
|
|
45
|
-
], CourseProgress.prototype, "progress", void 0);
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
|
|
48
|
-
__metadata("design:type", Array)
|
|
49
|
-
], CourseProgress.prototype, "completedPages", void 0);
|
|
50
|
-
exports.CourseProgress = CourseProgress = __decorate([
|
|
51
|
-
(0, typeorm_1.Entity)()
|
|
52
|
-
], CourseProgress);
|
|
53
|
-
//# sourceMappingURL=course-progress.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"course-progress.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-progress.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4E;AAC5E,mDAAyC;AACzC,2EAA+D;AAC/D,gDAAsC;AAG/B,IAAM,cAAc,GAApB,MAAM,cAAc;IAEzB,EAAE,CAAS;IAGX,IAAI,CAAO;IAGX,MAAM,CAAS;IAGf,iBAAiB,CAA0B;IAG3C,QAAQ,CAAS;IAGjB,cAAc,CAAiD;CAChE,CAAA;AAlBY,wCAAc;AAEzB;IADC,IAAA,gCAAsB,GAAE;;0CACd;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC;8BAC7C,kBAAI;4CAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC;8BACjD,sBAAM;8CAAC;AAGf;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,4CAAgB,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAChE,4CAAgB;yDAAQ;AAG3C;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACN;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACqB;yBAjBpD,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAkB1B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
-
import { CourseFolder } from './course-folder.entity';
|
|
3
|
-
import { LMSFileUploaded } from 'common';
|
|
4
|
-
export declare class FolderPage extends EntityBase {
|
|
5
|
-
name: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
isCompleted: boolean;
|
|
8
|
-
isPublished: boolean;
|
|
9
|
-
files?: LMSFileUploaded[];
|
|
10
|
-
folder: CourseFolder;
|
|
11
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAGxC,IAAI,CAAS;IAIb,WAAW,CAAU;IAGrB,WAAW,CAAU;IAGrB,WAAW,CAAU;IAIrB,KA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|
-
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
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lesson-page.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson-page.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AAIlC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,wBAAU;IAGxC,IAAI,CAAS;IAIb,WAAW,CAAU;IAIrB,aAAa,CAAU;IAGvB,QAAQ,CAAS;IAGjB,WAAW,CAAU;IAIrB,MAAM,CAAY;IAIlB,KAAK,CAAqB;IAI1B,MAAM,CAAS;CAChB,CAAA;AA9BY,gCAAU;AAGrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,CAAC;IAC9D,IAAA,gBAAM,GAAE;;wCACI;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;;+CACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,iBAAiB,EAAE,QAAQ,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.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
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lesson-section.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson-section.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA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AAA,gBAAM,GAAE;GACI,aAAa,CAsBzB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,C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