easywork-common-lib 1.0.565 → 1.0.566
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/dist/entities/capacitation/course-assigned.entity.d.ts +8 -0
- package/dist/entities/capacitation/course-assigned.entity.js +40 -0
- package/dist/entities/capacitation/course-assigned.entity.js.map +1 -0
- package/dist/entities/capacitation/course.entity.d.ts +10 -0
- package/dist/entities/capacitation/course.entity.js +84 -0
- package/dist/entities/capacitation/course.entity.js.map +1 -0
- package/dist/entities/capacitation/index.d.ts +2 -2
- package/dist/entities/capacitation/index.js +5 -5
- package/dist/entities/capacitation/index.js.map +1 -1
- package/dist/entities/capacitation/lesson.entity.d.ts +7 -0
- package/dist/entities/capacitation/lesson.entity.js +44 -0
- package/dist/entities/capacitation/lesson.entity.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +0 -11
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +0 -68
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +0 -1
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
const user_entity_1 = require("../user.entity");
|
|
17
|
+
const course_entity_1 = require("./course.entity");
|
|
18
|
+
let CourseAssigned = class CourseAssigned extends base_entity_1.EntityBase {
|
|
19
|
+
progress;
|
|
20
|
+
user;
|
|
21
|
+
course;
|
|
22
|
+
};
|
|
23
|
+
exports.CourseAssigned = CourseAssigned;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Capacitation module progress' }),
|
|
26
|
+
(0, typeorm_1.Column)({ type: 'float', default: 0 }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CourseAssigned.prototype, "progress", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, { eager: true }),
|
|
31
|
+
__metadata("design:type", user_entity_1.User)
|
|
32
|
+
], CourseAssigned.prototype, "user", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, { eager: true }),
|
|
35
|
+
__metadata("design:type", course_entity_1.Course)
|
|
36
|
+
], CourseAssigned.prototype, "course", void 0);
|
|
37
|
+
exports.CourseAssigned = CourseAssigned = __decorate([
|
|
38
|
+
(0, typeorm_1.Entity)()
|
|
39
|
+
], CourseAssigned);
|
|
40
|
+
//# 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,qCAAoD;AACpD,6CAA8C;AAE9C,mEAA+D;AAC/D,gDAAsC;AACtC,mDAAyC;AAGlC,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,wBAAU;IAG5C,QAAQ,CAAS;IAGjB,IAAI,CAAO;IAGX,MAAM,CAAS;CAChB,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;AAGjB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;8BACjC,kBAAI;4CAAC;AAGX;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;8BACjC,sBAAM;8CAAC;yBATJ,cAAc;IAD1B,IAAA,gBAAM,GAAE;GACI,cAAc,CAU1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EntityBase } from '../../common/database/base.entity';
|
|
2
|
+
export declare class Course extends EntityBase {
|
|
3
|
+
name: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
openToAll: boolean;
|
|
6
|
+
private: boolean;
|
|
7
|
+
openAfterNDays: boolean;
|
|
8
|
+
coverPhotoSrc?: string;
|
|
9
|
+
isPublished: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.Course = 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 Course = class Course extends base_entity_1.EntityBase {
|
|
17
|
+
name;
|
|
18
|
+
description;
|
|
19
|
+
openToAll;
|
|
20
|
+
private;
|
|
21
|
+
openAfterNDays;
|
|
22
|
+
coverPhotoSrc;
|
|
23
|
+
isPublished;
|
|
24
|
+
};
|
|
25
|
+
exports.Course = Course;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
type: String,
|
|
29
|
+
description: 'Module name',
|
|
30
|
+
required: true,
|
|
31
|
+
}),
|
|
32
|
+
(0, typeorm_1.Column)({ length: 150, nullable: false }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Course.prototype, "name", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
type: String,
|
|
38
|
+
description: 'Module description',
|
|
39
|
+
required: false,
|
|
40
|
+
}),
|
|
41
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Course.prototype, "description", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
type: Boolean,
|
|
47
|
+
required: false,
|
|
48
|
+
}),
|
|
49
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], Course.prototype, "openToAll", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, swagger_1.ApiProperty)({
|
|
54
|
+
type: Boolean,
|
|
55
|
+
required: false,
|
|
56
|
+
}),
|
|
57
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
58
|
+
__metadata("design:type", Boolean)
|
|
59
|
+
], Course.prototype, "private", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)({
|
|
62
|
+
type: Boolean,
|
|
63
|
+
required: false,
|
|
64
|
+
}),
|
|
65
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], Course.prototype, "openAfterNDays", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Cover photo URL', nullable: true }),
|
|
70
|
+
(0, typeorm_1.Column)({ type: 'text', nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], Course.prototype, "coverPhotoSrc", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, swagger_1.ApiProperty)({
|
|
75
|
+
type: Boolean,
|
|
76
|
+
required: false,
|
|
77
|
+
}),
|
|
78
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
79
|
+
__metadata("design:type", Boolean)
|
|
80
|
+
], Course.prototype, "isPublished", void 0);
|
|
81
|
+
exports.Course = Course = __decorate([
|
|
82
|
+
(0, typeorm_1.Entity)()
|
|
83
|
+
], Course);
|
|
84
|
+
//# sourceMappingURL=course.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"course.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/course.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAyC;AACzC,6CAA8C;AAE9C,mEAA+D;AAGxD,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,wBAAU;IAOpC,IAAI,CAAS;IAQb,WAAW,C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CAClB;AAOvB;IALC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,OAAO;QACb,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2CACN;iBA/CV,MAAM;IADlB,IAAA,gBAAM,GAAE;GACI,MAAM,CAgDlB"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { Capacitation } from './capacitation.entity';
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
2
|
+
export { Course } from './course.entity';
|
|
3
|
+
export { Lesson } from './lesson.entity';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
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
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "
|
|
6
|
+
var course_entity_1 = require("./course.entity");
|
|
7
|
+
Object.defineProperty(exports, "Course", { enumerable: true, get: function () { return course_entity_1.Course; } });
|
|
8
|
+
var lesson_entity_1 = require("./lesson.entity");
|
|
9
|
+
Object.defineProperty(exports, "Lesson", { enumerable: true, get: function () { return lesson_entity_1.Lesson; } });
|
|
10
10
|
//# 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,
|
|
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"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
let Lesson = class Lesson extends base_entity_1.EntityBase {
|
|
18
|
+
title;
|
|
19
|
+
isCompleted;
|
|
20
|
+
course;
|
|
21
|
+
};
|
|
22
|
+
exports.Lesson = Lesson;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Lesson name' }),
|
|
25
|
+
(0, typeorm_1.Column)({ type: 'string' }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Lesson.prototype, "title", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
30
|
+
__metadata("design:type", Boolean)
|
|
31
|
+
], Lesson.prototype, "isCompleted", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ type: () => course_entity_1.Course, description: 'Module owner of the lesson', required: false }),
|
|
34
|
+
(0, typeorm_1.ManyToOne)(() => course_entity_1.Course, {
|
|
35
|
+
onDelete: 'SET NULL',
|
|
36
|
+
onUpdate: 'CASCADE',
|
|
37
|
+
nullable: false,
|
|
38
|
+
}),
|
|
39
|
+
__metadata("design:type", course_entity_1.Course)
|
|
40
|
+
], Lesson.prototype, "course", void 0);
|
|
41
|
+
exports.Lesson = Lesson = __decorate([
|
|
42
|
+
(0, typeorm_1.Entity)()
|
|
43
|
+
], Lesson);
|
|
44
|
+
//# 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,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,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;qCACb;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"}
|