easywork-common-lib 1.0.591 → 1.0.592

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"}
@@ -1,4 +1,4 @@
1
1
  export { Capacitation } from './capacitation.entity';
2
2
  export { Course } from './course.entity';
3
3
  export { Lesson } from './lesson.entity';
4
- export { LessonSection } from './lesson-section.entity';
4
+ export { LessonPage } from './lesson-page.entity';
@@ -1,12 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LessonSection = exports.Lesson = exports.Course = exports.Capacitation = void 0;
3
+ exports.LessonPage = exports.Lesson = 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 lesson_entity_1 = require("./lesson.entity");
9
9
  Object.defineProperty(exports, "Lesson", { enumerable: true, get: function () { return lesson_entity_1.Lesson; } });
10
- var lesson_section_entity_1 = require("./lesson-section.entity");
11
- Object.defineProperty(exports, "LessonSection", { enumerable: true, get: function () { return lesson_section_entity_1.LessonSection; } });
10
+ var lesson_page_entity_1 = require("./lesson-page.entity");
11
+ Object.defineProperty(exports, "LessonPage", { enumerable: true, get: function () { return lesson_page_entity_1.LessonPage; } });
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,iDAAyC;AAAhC,uGAAA,MAAM,OAAA;AACf,iEAAwD;AAA/C,sHAAA,aAAa,OAAA"}
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,iDAAyC;AAAhC,uGAAA,MAAM,OAAA;AACf,2DAAkD;AAAzC,gHAAA,UAAU,OAAA"}
@@ -0,0 +1,10 @@
1
+ import { EntityBase } from '../../common/database/base.entity';
2
+ import { Lesson } from './lesson.entity';
3
+ export declare class LessonPage extends EntityBase {
4
+ name: 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.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
+ lesson;
24
+ };
25
+ exports.LessonPage = LessonPage;
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson page name' }),
28
+ (0, typeorm_1.Column)(),
29
+ __metadata("design:type", String)
30
+ ], LessonPage.prototype, "name", void 0);
31
+ __decorate([
32
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Lesson page description', nullable: true }),
33
+ (0, typeorm_1.Column)({ nullable: true }),
34
+ __metadata("design:type", String)
35
+ ], LessonPage.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
+ ], LessonPage.prototype, "coverPhotoSrc", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ default: 0, type: 'float' }),
43
+ __metadata("design:type", Number)
44
+ ], LessonPage.prototype, "progress", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)({ default: false }),
47
+ __metadata("design:type", Boolean)
48
+ ], LessonPage.prototype, "isCompleted", void 0);
49
+ __decorate([
50
+ (0, swagger_1.ApiProperty)({ type: () => lesson_entity_1.Lesson, description: 'Lesson owner of the page', required: false }),
51
+ (0, typeorm_1.ManyToOne)(() => lesson_entity_1.Lesson, lesson => lesson.pages),
52
+ __metadata("design:type", lesson_entity_1.Lesson)
53
+ ], LessonPage.prototype, "lesson", void 0);
54
+ exports.LessonPage = LessonPage = __decorate([
55
+ (0, typeorm_1.Entity)()
56
+ ], LessonPage);
57
+ //# sourceMappingURL=les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AAC;IAC7F,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;8BACxC,sBAAM;0CAAC;qBArBJ,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAsBtB"}
@@ -1,5 +1,6 @@
1
1
  import { EntityBase } from '../../common/database/base.entity';
2
2
  import { Course } from './course.entity';
3
+ import { LessonPage } from './lesson-page.entity';
3
4
  export declare class Lesson extends EntityBase {
4
5
  name: string;
5
6
  description?: string;
@@ -7,4 +8,5 @@ export declare class Lesson extends EntityBase {
7
8
  coverPhotoSrc?: string;
8
9
  isCompleted: boolean;
9
10
  course: Course;
11
+ pages: LessonPage;
10
12
  }
@@ -14,6 +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 lesson_page_entity_1 = require("./lesson-page.entity");
17
18
  let Lesson = class Lesson extends base_entity_1.EntityBase {
18
19
  name;
19
20
  description;
@@ -21,6 +22,7 @@ let Lesson = class Lesson extends base_entity_1.EntityBase {
21
22
  coverPhotoSrc;
22
23
  isCompleted;
23
24
  course;
25
+ pages;
24
26
  };
25
27
  exports.Lesson = Lesson;
26
28
  __decorate([
@@ -52,6 +54,11 @@ __decorate([
52
54
  (0, typeorm_1.ManyToOne)(() => course_entity_1.Course, course => course.lessons),
53
55
  __metadata("design:type", course_entity_1.Course)
54
56
  ], Lesson.prototype, "course", void 0);
57
+ __decorate([
58
+ (0, swagger_1.ApiProperty)({ type: () => lesson_page_entity_1.LessonPage, description: 'Lesson owner of the pages', required: false }),
59
+ (0, typeorm_1.OneToMany)(() => lesson_page_entity_1.LessonPage, lessonPage => lessonPage.lesson),
60
+ __metadata("design:type", lesson_page_entity_1.LessonPage)
61
+ ], Lesson.prototype, "pages", void 0);
55
62
  exports.Lesson = Lesson = __decorate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E,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;;6CAClB;AAGvB;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CACN;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,CAAC;8BAC1C,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,CAAC;8BACtD,+BAAU;qCAAC;iBA1BP,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CA2BlB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.591",
3
+ "version": "1.0.592",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {