easywork-common-lib 1.0.538 → 1.0.540

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,7 @@
1
+ import { EntityBase } from '../../common/database/base.entity';
2
+ import { CapacitationModule } from './capacitation-module.entity';
3
+ export declare class CapacitationLesson extends EntityBase {
4
+ title: string;
5
+ iCompleted: boolean;
6
+ module?: CapacitationModule;
7
+ }
@@ -0,0 +1,45 @@
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.CapacitationLesson = 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 capacitation_module_entity_1 = require("./capacitation-module.entity");
17
+ let CapacitationLesson = class CapacitationLesson extends base_entity_1.EntityBase {
18
+ title;
19
+ iCompleted;
20
+ module;
21
+ };
22
+ exports.CapacitationLesson = CapacitationLesson;
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
+ ], CapacitationLesson.prototype, "title", void 0);
28
+ __decorate([
29
+ (0, typeorm_1.Column)({ default: false }),
30
+ __metadata("design:type", Boolean)
31
+ ], CapacitationLesson.prototype, "iCompleted", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({ type: () => capacitation_module_entity_1.CapacitationModule, description: 'Module owner of the lesson', required: false }),
34
+ (0, typeorm_1.ManyToOne)(() => capacitation_module_entity_1.CapacitationModule, {
35
+ onDelete: 'SET NULL',
36
+ onUpdate: 'CASCADE',
37
+ nullable: false,
38
+ }),
39
+ (0, typeorm_1.JoinColumn)(),
40
+ __metadata("design:type", capacitation_module_entity_1.CapacitationModule)
41
+ ], CapacitationLesson.prototype, "module", void 0);
42
+ exports.CapacitationLesson = CapacitationLesson = __decorate([
43
+ (0, typeorm_1.Entity)()
44
+ ], CapacitationLesson);
45
+ //# sourceMappingURL=capacitation-lesson.entity%20copy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capacitation-lesson.entity copy.js","sourceRoot":"","sources":["../../../src/entities/capacitation/capacitation-lesson.entity copy.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6CAA8C;AAE9C,mEAA+D;AAC/D,6EAAkE;AAG3D,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAU;IAGhD,KAAK,CAAS;IAGd,UAAU,CAAU;IASpB,MAAM,CAAsB;CAC7B,CAAA;AAhBY,gDAAkB;AAG7B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC;IACzD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;iDACb;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;sDACP;AASpB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,+CAAkB,EAAE,WAAW,EAAE,4BAA4B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC3G,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,+CAAkB,EAAE;QACnC,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACJ,+CAAkB;kDAAC;6BAfjB,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAgB9B"}
@@ -0,0 +1,12 @@
1
+ import { EntityBase } from '../../common/database/base.entity';
2
+ import { User } from '../user.entity';
3
+ import { Group } from 'entities/group.entity';
4
+ export declare class CapacitationModule extends EntityBase {
5
+ name: string;
6
+ description?: string;
7
+ progress: string;
8
+ endDate?: Date;
9
+ isProcessClosed: boolean;
10
+ assignedTo?: Group[];
11
+ responsible?: User;
12
+ }
@@ -0,0 +1,85 @@
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.CapacitationModule = 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 group_entity_1 = require("entities/group.entity");
18
+ let CapacitationModule = class CapacitationModule extends base_entity_1.EntityBase {
19
+ name;
20
+ description;
21
+ progress;
22
+ endDate;
23
+ isProcessClosed;
24
+ assignedTo;
25
+ responsible;
26
+ };
27
+ exports.CapacitationModule = CapacitationModule;
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({
30
+ type: String,
31
+ description: 'Module name',
32
+ required: true,
33
+ }),
34
+ (0, typeorm_1.Column)({ length: 150, nullable: false }),
35
+ __metadata("design:type", String)
36
+ ], CapacitationModule.prototype, "name", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiProperty)({
39
+ type: String,
40
+ description: 'Module description',
41
+ required: false,
42
+ }),
43
+ (0, typeorm_1.Column)({ type: 'text', nullable: true }),
44
+ __metadata("design:type", String)
45
+ ], CapacitationModule.prototype, "description", void 0);
46
+ __decorate([
47
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Capacitation module progress' }),
48
+ (0, typeorm_1.Column)({ type: 'float', default: 0 }),
49
+ __metadata("design:type", String)
50
+ ], CapacitationModule.prototype, "progress", void 0);
51
+ __decorate([
52
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Capacitation process ends at this date' }),
53
+ (0, typeorm_1.Column)({ type: 'date' }),
54
+ __metadata("design:type", Date)
55
+ ], CapacitationModule.prototype, "endDate", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.Column)({ default: false }),
58
+ __metadata("design:type", Boolean)
59
+ ], CapacitationModule.prototype, "isProcessClosed", void 0);
60
+ __decorate([
61
+ (0, swagger_1.ApiProperty)({
62
+ type: () => group_entity_1.Group,
63
+ description: 'Groups assigned to the module',
64
+ }),
65
+ (0, typeorm_1.ManyToOne)(() => group_entity_1.Group, {
66
+ onDelete: 'CASCADE',
67
+ onUpdate: 'CASCADE',
68
+ }),
69
+ (0, typeorm_1.JoinColumn)(),
70
+ __metadata("design:type", Array)
71
+ ], CapacitationModule.prototype, "assignedTo", void 0);
72
+ __decorate([
73
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User responsible for capacitation tracking and management', required: false }),
74
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
75
+ onDelete: 'SET NULL',
76
+ onUpdate: 'CASCADE',
77
+ nullable: true,
78
+ }),
79
+ (0, typeorm_1.JoinColumn)(),
80
+ __metadata("design:type", user_entity_1.User)
81
+ ], CapacitationModule.prototype, "responsible", void 0);
82
+ exports.CapacitationModule = CapacitationModule = __decorate([
83
+ (0, typeorm_1.Entity)()
84
+ ], CapacitationModule);
85
+ //# sourceMappingURL=capacitation-module.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capacitation-module.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/capacitation-module.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAgE;AAChE,6CAA8C;AAE9C,mEAA+D;AAC/D,gDAAsC;AACtC,wDAA8C;AAGvC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,wBAAU;IAOhD,IAAI,CAAS;IAQb,WAAW,CAAU;IAIrB,QAAQ,CAAS;IAIjB,OAAO,CAAQ;IAGf,eAAe,CAAU;IAoBzB,UAAU,CAAW;IASrB,WAAW,CAAQ;CACpB,CAAA;AAxDY,gDAAkB;AAO7B;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,aAAa;QAC1B,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;;gDAC5B;AAQb;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,oBAAoB;QACjC,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACpB;AAIrB;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;;oDACrB;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,wCAAwC,EAAE,CAAC;IAClF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;8BACf,IAAI;mDAAC;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;2DACF;AAoBzB;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,oBAAK;QACjB,WAAW,EAAE,+BAA+B;KAC7C,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE;QACtB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;;sDACQ;AASrB;IAPC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI,EAAE,WAAW,EAAE,2DAA2D,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC5H,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACC,kBAAI;uDAAC;6BAvDR,kBAAkB;IAD9B,IAAA,gBAAM,GAAE;GACI,kBAAkB,CAwD9B"}
@@ -0,0 +1,10 @@
1
+ import { EntityBase } from '../../common/database/base.entity';
2
+ import { User } from '../user.entity';
3
+ export declare class Capacitation extends EntityBase {
4
+ stage: string;
5
+ startDate?: Date;
6
+ endDate?: Date;
7
+ isProcessClosed: boolean;
8
+ assignedTo?: User;
9
+ responsible?: User;
10
+ }
@@ -0,0 +1,68 @@
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.Capacitation = 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
+ let Capacitation = class Capacitation extends base_entity_1.EntityBase {
18
+ stage;
19
+ startDate;
20
+ endDate;
21
+ isProcessClosed;
22
+ assignedTo;
23
+ responsible;
24
+ };
25
+ exports.Capacitation = Capacitation;
26
+ __decorate([
27
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Capacitation process current step' }),
28
+ (0, typeorm_1.Column)({ type: 'string' }),
29
+ __metadata("design:type", String)
30
+ ], Capacitation.prototype, "stage", void 0);
31
+ __decorate([
32
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Capacitation process starts at this date' }),
33
+ (0, typeorm_1.Column)({ type: 'date' }),
34
+ __metadata("design:type", Date)
35
+ ], Capacitation.prototype, "startDate", void 0);
36
+ __decorate([
37
+ (0, swagger_1.ApiProperty)({ type: Date, description: 'Capacitation process ends at this date' }),
38
+ (0, typeorm_1.Column)({ type: 'date' }),
39
+ __metadata("design:type", Date)
40
+ ], Capacitation.prototype, "endDate", void 0);
41
+ __decorate([
42
+ (0, typeorm_1.Column)({ default: false }),
43
+ __metadata("design:type", Boolean)
44
+ ], Capacitation.prototype, "isProcessClosed", void 0);
45
+ __decorate([
46
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User assigned to capacitation process', required: false }),
47
+ (0, typeorm_1.OneToOne)(() => user_entity_1.User, {
48
+ onDelete: 'SET NULL',
49
+ onUpdate: 'CASCADE',
50
+ nullable: true,
51
+ }),
52
+ (0, typeorm_1.JoinColumn)(),
53
+ __metadata("design:type", user_entity_1.User)
54
+ ], Capacitation.prototype, "assignedTo", void 0);
55
+ __decorate([
56
+ (0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User responsible for capacitation tracking and management', required: false }),
57
+ (0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
58
+ onDelete: 'SET NULL',
59
+ onUpdate: 'CASCADE',
60
+ nullable: true,
61
+ }),
62
+ (0, typeorm_1.JoinColumn)(),
63
+ __metadata("design:type", user_entity_1.User)
64
+ ], Capacitation.prototype, "responsible", void 0);
65
+ exports.Capacitation = Capacitation = __decorate([
66
+ (0, typeorm_1.Entity)()
67
+ ], Capacitation);
68
+ //# sourceMappingURL=capacitation.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"capacitation.entity.js","sourceRoot":"","sources":["../../../src/entities/capacitation/capacitation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA0E;AAC1E,6CAA8C;AAE9C,mEAA+D;AAC/D,gDAAsC;AAG/B,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,wBAAU;IAG1C,KAAK,CAAS;IAId,SAAS,CAAQ;IAIjB,OAAO,CAAQ;IAGf,eAAe,CAAU;IASzB,UAAU,CAAQ;IASlB,WAAW,CAAQ;CACpB,CAAA;AAjCY,oCAAY;AAGvB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;IAC/E,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;;2CACb;AAId;IAFC,IAAA,qBAAW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.Capacitation = void 0;
4
+ var capacitation_entity_1 = require("./capacitation.entity");
5
+ Object.defineProperty(exports, "Capacitation", { enumerable: true, get: function () { return capacitation_entity_1.Capacitation; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/capacitation/index.ts"],"names":[],"mappings":";;;AAAA,6DAAqD;AAA5C,mHAAA,YAAY,OAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.538",
3
+ "version": "1.0.540",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {