easywork-common-lib 1.0.704 → 1.0.705

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,19 @@
1
+ import { EntityBase } from '../../common/database/base.entity';
2
+ import { CourseEvaluation } from './course-evaluation.entity';
3
+ import { User } from 'entities/user.entity';
4
+ export declare enum CourseEvaluationProgressStatus {
5
+ inProgress = "in-progress",
6
+ approved = "approved",
7
+ notPassed = "not-passed",
8
+ notStarted = "not-started"
9
+ }
10
+ export declare class CourseEvaluationProgress extends EntityBase {
11
+ status: CourseEvaluationProgressStatus;
12
+ attempt: number;
13
+ finishedAt?: Date;
14
+ startedAt?: Date;
15
+ qualification: number;
16
+ timeTaken: number;
17
+ evaluation: CourseEvaluation;
18
+ tookBy: User;
19
+ }
@@ -0,0 +1,81 @@
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.CourseEvaluationProgress = exports.CourseEvaluationProgressStatus = 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_evaluation_entity_1 = require("./course-evaluation.entity");
17
+ const user_entity_1 = require("entities/user.entity");
18
+ var CourseEvaluationProgressStatus;
19
+ (function (CourseEvaluationProgressStatus) {
20
+ CourseEvaluationProgressStatus["inProgress"] = "in-progress";
21
+ CourseEvaluationProgressStatus["approved"] = "approved";
22
+ CourseEvaluationProgressStatus["notPassed"] = "not-passed";
23
+ CourseEvaluationProgressStatus["notStarted"] = "not-started";
24
+ })(CourseEvaluationProgressStatus || (exports.CourseEvaluationProgressStatus = CourseEvaluationProgressStatus = {}));
25
+ let CourseEvaluationProgress = class CourseEvaluationProgress extends base_entity_1.EntityBase {
26
+ status;
27
+ attempt;
28
+ finishedAt;
29
+ startedAt;
30
+ qualification;
31
+ timeTaken;
32
+ evaluation;
33
+ tookBy;
34
+ };
35
+ exports.CourseEvaluationProgress = CourseEvaluationProgress;
36
+ __decorate([
37
+ (0, typeorm_1.Column)({ type: 'enum', nullable: false, default: CourseEvaluationProgressStatus.notStarted }),
38
+ __metadata("design:type", String)
39
+ ], CourseEvaluationProgress.prototype, "status", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.Column)({ type: 'int', nullable: false }),
42
+ __metadata("design:type", Number)
43
+ ], CourseEvaluationProgress.prototype, "attempt", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
46
+ __metadata("design:type", Date)
47
+ ], CourseEvaluationProgress.prototype, "finishedAt", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.Column)({ type: 'datetime', nullable: true }),
50
+ __metadata("design:type", Date)
51
+ ], CourseEvaluationProgress.prototype, "startedAt", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.Column)({ type: 'numeric', nullable: false, scale: 2, default: 0 }),
54
+ __metadata("design:type", Number)
55
+ ], CourseEvaluationProgress.prototype, "qualification", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ type: 'numeric', nullable: false, default: 60, scale: 2 }),
58
+ __metadata("design:type", Number)
59
+ ], CourseEvaluationProgress.prototype, "timeTaken", void 0);
60
+ __decorate([
61
+ (0, swagger_1.ApiProperty)({
62
+ type: () => course_evaluation_entity_1.CourseEvaluation,
63
+ description: 'Evaluation progress parent entity',
64
+ required: false,
65
+ }),
66
+ (0, typeorm_1.ManyToOne)(() => course_evaluation_entity_1.CourseEvaluation),
67
+ __metadata("design:type", course_evaluation_entity_1.CourseEvaluation)
68
+ ], CourseEvaluationProgress.prototype, "evaluation", void 0);
69
+ __decorate([
70
+ (0, swagger_1.ApiProperty)({
71
+ type: () => user_entity_1.User,
72
+ description: 'User who takes the evaluation',
73
+ required: false,
74
+ }),
75
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User),
76
+ __metadata("design:type", user_entity_1.User)
77
+ ], CourseEvaluationProgress.prototype, "tookBy", void 0);
78
+ exports.CourseEvaluationProgress = CourseEvaluationProgress = __decorate([
79
+ (0, typeorm_1.Entity)()
80
+ ], CourseEvaluationProgress);
81
+ //# sourceMappingURL=course-evaluation-progress.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"course-evaluation-progress.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course-evaluation-progress.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,yEAA8D;AAC9D,sDAA4C;AAE5C,IAAY,8BAKX;AALD,WAAY,8BAA8B;IACxC,4DAA0B,CAAA;IAC1B,uDAAqB,CAAA;IACrB,0DAAwB,CAAA;IACxB,4DAA0B,CAAA;AAC5B,CAAC,EALW,8BAA8B,8CAA9B,8BAA8B,QAKzC;AAGM,IAAM,wBAAwB,GAA9B,MAAM,wBAAyB,SAAQ,wBAAU;IAEtD,MAAM,CAAiC;IAGvC,OAAO,CAAS;IAGhB,UAAU,CAAQ;IAGlB,SAAS,CAAQ;IAGjB,aAAa,CAAS;IAGtB,SAAS,CAAS;IAQlB,UAAU,CAAmB;IAQ7B,MAAM,CAAO;CACd,CAAA;AAlCY,4DAAwB;AAEnC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,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'./course-folder-page.entity';
5
5
  export { CourseAssigned } from './course-assigned.entity';
6
6
  export { CourseOrder } from './course-order.entity';
7
7
  export { CourseEvaluation, EvaluationQuestion } from './course-evaluation.entity';
8
+ export { CourseEvaluationProgress, CourseEvaluationProgressStatus } from './course-evaluation-progress.entity';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CourseEvaluation = exports.CourseOrder = exports.CourseAssigned = exports.CourseFolderPage = exports.CourseFolder = exports.Course = exports.Capacitation = void 0;
3
+ exports.CourseEvaluationProgressStatus = exports.CourseEvaluationProgress = exports.CourseEvaluation = exports.CourseOrder = exports.CourseAssigned = 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");
@@ -15,4 +15,7 @@ var course_order_entity_1 = require("./course-order.entity");
15
15
  Object.defineProperty(exports, "CourseOrder", { enumerable: true, get: function () { return course_order_entity_1.CourseOrder; } });
16
16
  var course_evaluation_entity_1 = require("./course-evaluation.entity");
17
17
  Object.defineProperty(exports, "CourseEvaluation", { enumerable: true, get: function () { return course_evaluation_entity_1.CourseEvaluation; } });
18
+ var course_evaluation_progress_entity_1 = require("./course-evaluation-progress.entity");
19
+ Object.defineProperty(exports, "CourseEvaluationProgress", { enumerable: true, get: function () { return course_evaluation_progress_entity_1.CourseEvaluationProgress; } });
20
+ Object.defineProperty(exports, "CourseEvaluationProgressStatus", { enumerable: true, get: function () { return course_evaluation_progress_entity_1.CourseEvaluationProgressStatus; } });
18
21
  //# 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,yEAA+D;AAAtD,6HAAA,gBAAgB,OAAA;AACzB,mEAA0D;AAAjD,wHAAA,cAAc,OAAA;AACvB,6DAAoD;AAA3C,kHAAA,WAAW,OAAA;AACpB,uEAAkF;AAAzE,4HAAA,gBAAgB,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,+DAAsD;AAA7C,oHAAA,YAAY,OAAA;AACrB,yEAA+D;AAAtD,6HAAA,gBAAgB,OAAA;AACzB,mEAA0D;AAAjD,wHAAA,cAAc,OAAA;AACvB,6DAAoD;AAA3C,kHAAA,WAAW,OAAA;AACpB,uEAAkF;AAAzE,4HAAA,gBAAgB,OAAA;AACzB,yFAA+G;AAAtG,6IAAA,wBAAwB,OAAA;AAAE,mJAAA,8BAA8B,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.704",
3
+ "version": "1.0.705",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {