easywork-common-lib 1.0.585 → 1.0.586

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.
@@ -0,0 +1,4 @@
1
+ import { EntityBase } from '../../common/database/base.entity';
2
+ export declare class CourseAssigned extends EntityBase {
3
+ progress: number;
4
+ }
@@ -0,0 +1,28 @@
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.CourseAssigned = 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
+ let CourseAssigned = class CourseAssigned extends base_entity_1.EntityBase {
17
+ progress;
18
+ };
19
+ exports.CourseAssigned = CourseAssigned;
20
+ __decorate([
21
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Capacitation module progress' }),
22
+ (0, typeorm_1.Column)({ type: 'float', default: 0 }),
23
+ __metadata("design:type", Number)
24
+ ], CourseAssigned.prototype, "progress", void 0);
25
+ exports.CourseAssigned = CourseAssigned = __decorate([
26
+ (0, typeorm_1.Entity)()
27
+ ], CourseAssigned);
28
+ //# sourceMappingURL=course-assigned.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"course-assigned.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-assigned.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6CAA8C;AAE9C,mEAA+D;AAKxD,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,wBAAU;IAG5C,QAAQ,CAAS;CAOlB,CAAA;AAVY,wCAAc;AAGzB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,8BAA8B,EAAE,CAAC;IAC1E,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;gDACrB;yBAHN,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAU1B"}
@@ -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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,sBAAM;6CAAC;wBArBJ,aAAa;IADzB,IAAA,gBAAM,GAAE;GACI,aAAa,CAsBzB"}
@@ -2,6 +2,10 @@ import { EntityBase } from '../../common/database/base.entity';
2
2
  import { Course } from './course.entity';
3
3
  export declare class Lesson extends EntityBase {
4
4
  title: string;
5
+ description?: string;
6
+ content?: string;
7
+ coverPhotoSrc?: string;
8
+ progress: number;
5
9
  isCompleted: boolean;
6
10
  course: Course;
7
11
  }
@@ -16,6 +16,10 @@ const base_entity_1 = require("../../common/database/base.entity");
16
16
  const course_entity_1 = require("./course.entity");
17
17
  let Lesson = class Lesson extends base_entity_1.EntityBase {
18
18
  title;
19
+ description;
20
+ content;
21
+ coverPhotoSrc;
22
+ progress;
19
23
  isCompleted;
20
24
  course;
21
25
  };
@@ -25,12 +29,31 @@ __decorate([
25
29
  (0, typeorm_1.Column)(),
26
30
  __metadata("design:type", String)
27
31
  ], Lesson.prototype, "title", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson description', nullable: true }),
34
+ (0, typeorm_1.Column)({ nullable: true }),
35
+ __metadata("design:type", String)
36
+ ], Lesson.prototype, "description", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson content', nullable: true }),
39
+ (0, typeorm_1.Column)({ nullable: true }),
40
+ __metadata("design:type", String)
41
+ ], Lesson.prototype, "content", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
44
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], Lesson.prototype, "coverPhotoSrc", void 0);
47
+ __decorate([
48
+ (0, typeorm_1.Column)({ default: 0, type: 'float' }),
49
+ __metadata("design:type", Number)
50
+ ], Lesson.prototype, "progress", void 0);
28
51
  __decorate([
29
52
  (0, typeorm_1.Column)({ default: false }),
30
53
  __metadata("design:type", Boolean)
31
54
  ], Lesson.prototype, "isCompleted", void 0);
32
55
  __decorate([
33
- (0, swagger_1.ApiProperty)({ type: () => course_entity_1.Course, description: 'Module owner of the lesson', required: false }),
56
+ (0, swagger_1.ApiProperty)({ type: () => course_entity_1.Course, description: 'Course owner of the lesson', required: false }),
34
57
  (0, typeorm_1.ManyToOne)(() => course_entity_1.Course, {
35
58
  onDelete: 'SET NULL',
36
59
  onUpdate: 'CASCADE',
@@ -1 +1 @@
1
- {"version":3,"file":"lesson.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,mDAAyC;AAGlC,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAU;IAGpC,KAAK,CAAS;IAGd,WAAW,CAAU;IAQrB,MAAM,CAAS;CAChB,CAAA;AAfY,wBAAM;AAGjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACzD,IAAA,gBAAM,GAAE;;qCACK;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CACN;AAQrB;IANC,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;QACvB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC;8BACM,sBAAM;sCAAC;iBAdJ,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAelB"}
1
+ {"version":3,"file":"lesson.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/lesson.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,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W,EAAE,4BAA4B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC/F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE;QACvB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC;8BACM,sBAAM;sCAAC;iBA7BJ,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CA8BlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.585",
3
+ "version": "1.0.586",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {