easywork-common-lib 1.0.655 → 1.0.656

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.
Files changed (23) hide show
  1. package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.d.ts +5 -0
  2. package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.js +40 -0
  3. package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.js.map +1 -0
  4. package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +11 -0
  5. package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +68 -0
  6. package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
  7. package/dist/entities/sales/poliza/index.d.ts +4 -2
  8. package/dist/entities/sales/poliza/index.js +2 -0
  9. package/dist/entities/sales/poliza/index.js.map +1 -1
  10. package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.d.ts +5 -0
  11. package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js +35 -0
  12. package/dist/entities/sales/poliza/poliza_reimbursement-comment.entity.js.map +1 -0
  13. package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.d.ts +5 -0
  14. package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js +35 -0
  15. package/dist/entities/sales/poliza/poliza_scheduling-comment.entity.js.map +1 -0
  16. package/package.json +1 -1
  17. package/tsconfig.tsbuildinfo +1 -1
  18. package/dist/entities/capacitation/course-progress.entity.d.ts +0 -14
  19. package/dist/entities/capacitation/course-progress.entity.js +0 -53
  20. package/dist/entities/capacitation/course-progress.entity.js.map +0 -1
  21. package/dist/entities/capacitation/folder-page.entity.d.ts +0 -11
  22. package/dist/entities/capacitation/folder-page.entity.js +0 -57
  23. package/dist/entities/capacitation/folder-page.entity.js.map +0 -1
@@ -0,0 +1,5 @@
1
+ import { BaseEntitySimple } from "../../../../common/database/base.entity";
2
+ export declare class AgentRecruimentStage extends BaseEntitySimple {
3
+ name: string;
4
+ idx: number;
5
+ }
@@ -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.AgentRecruimentStage = void 0;
13
+ const base_entity_1 = require("../../../../common/database/base.entity");
14
+ const class_validator_1 = require("class-validator");
15
+ const typeorm_1 = require("typeorm");
16
+ const swagger_1 = require("@nestjs/swagger");
17
+ let AgentRecruimentStage = class AgentRecruimentStage extends base_entity_1.BaseEntitySimple {
18
+ name;
19
+ idx;
20
+ };
21
+ exports.AgentRecruimentStage = AgentRecruimentStage;
22
+ __decorate([
23
+ (0, swagger_1.ApiProperty)({
24
+ type: String,
25
+ description: "Name of the Agent Recruiment stage",
26
+ minLength: 1,
27
+ }),
28
+ (0, class_validator_1.MinLength)(1),
29
+ (0, typeorm_1.Column)({ unique: true }),
30
+ __metadata("design:type", String)
31
+ ], AgentRecruimentStage.prototype, "name", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({ type: Number, description: "Index of the lead stage" }),
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", Number)
36
+ ], AgentRecruimentStage.prototype, "idx", void 0);
37
+ exports.AgentRecruimentStage = AgentRecruimentStage = __decorate([
38
+ (0, typeorm_1.Entity)()
39
+ ], AgentRecruimentStage);
40
+ //# sourceMappingURL=h_agent_recruiment_stage.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"h_agent_recruiment_stage.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yEAA2E;AAC3E,qDAA4C;AAC5C,qCAAyC;AACzC,6CAA8C;AAGvC,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,8BAAgB;IAQxD,IAAI,CAAS;IAIb,GAAG,CAAS;CACb,CAAA;AAbY,oDAAoB;AAQ/B;IAPC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,oCAAoC;QACjD,SAAS,EAAE,CAAC;KACb,CAAC;IACD,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kDACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,CAAC;IACrE,IAAA,gBAAM,GAAE;;iDACG;+BAZD,oBAAoB;IADhC,IAAA,gBAAM,GAAE;GACI,oBAAoB,CAahC"}
@@ -0,0 +1,11 @@
1
+ import { BaseEntity } from "typeorm";
2
+ import { Poliza } from "../../../sales/poliza.entity";
3
+ import { File } from "../../../drive";
4
+ export declare class PolizaFile extends BaseEntity {
5
+ id?: string;
6
+ polizaId: string;
7
+ fileId: string;
8
+ relation: string;
9
+ poliza: Poliza;
10
+ file: File;
11
+ }
@@ -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.PolizaFile = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const class_transformer_1 = require("class-transformer");
15
+ const poliza_entity_1 = require("../../../sales/poliza.entity");
16
+ const drive_1 = require("../../../drive");
17
+ const swagger_1 = require("@nestjs/swagger");
18
+ let PolizaFile = class PolizaFile extends typeorm_1.BaseEntity {
19
+ id;
20
+ polizaId;
21
+ fileId;
22
+ relation;
23
+ poliza;
24
+ file;
25
+ };
26
+ exports.PolizaFile = PolizaFile;
27
+ __decorate([
28
+ (0, swagger_1.ApiProperty)({ type: String, description: 'UUID of the policy file', format: 'uuid' }),
29
+ (0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
30
+ __metadata("design:type", String)
31
+ ], PolizaFile.prototype, "id", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated policy' }),
34
+ (0, typeorm_1.Column)(),
35
+ __metadata("design:type", String)
36
+ ], PolizaFile.prototype, "polizaId", void 0);
37
+ __decorate([
38
+ (0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated file', format: 'uuid' }),
39
+ (0, typeorm_1.Column)({ type: "uuid" }),
40
+ __metadata("design:type", String)
41
+ ], PolizaFile.prototype, "fileId", void 0);
42
+ __decorate([
43
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Relation description or type', required: false }),
44
+ (0, typeorm_1.Column)({ nullable: true }),
45
+ __metadata("design:type", String)
46
+ ], PolizaFile.prototype, "relation", void 0);
47
+ __decorate([
48
+ (0, class_transformer_1.Exclude)(),
49
+ (0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Policy entity associated' }),
50
+ (0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, poliza => poliza.files, {
51
+ onDelete: "CASCADE",
52
+ onUpdate: "CASCADE",
53
+ }),
54
+ __metadata("design:type", poliza_entity_1.Poliza)
55
+ ], PolizaFile.prototype, "poliza", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({ type: () => drive_1.File, description: 'File entity associated' }),
58
+ (0, typeorm_1.ManyToOne)(() => drive_1.File, {
59
+ onDelete: "CASCADE",
60
+ onUpdate: "CASCADE",
61
+ eager: true,
62
+ }),
63
+ __metadata("design:type", drive_1.File)
64
+ ], PolizaFile.prototype, "file", void 0);
65
+ exports.PolizaFile = PolizaFile = __decorate([
66
+ (0, typeorm_1.Entity)()
67
+ ], PolizaFile);
68
+ //# sourceMappingURL=poliza_file.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poliza_file.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/poliza_file.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,gEAAsD;AACtD,0CAAsC;AACtC,6CAA8C;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,oBAAU;IAGxC,EAAE,CAAU;IAIZ,QAAQ,CAAS;IAIjB,MAAM,CAAS;IAIf,QAAQ,CAAS;IAQV,MAAM,CAAS;IAQf,IAAI,CAAO;CACnB,CAAA;AAhCY,gCAAU;AAGrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACrF,IAAA,gCAAsB,EAAC,MAAM,CAAC;;sCACnB;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,gBAAM,GAAE;;4CACQ;AAIjB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,2BAA2B,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IACvF,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;0CACV;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,8BAA8B,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAC3F,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACV;AAQV;IANN,IAAA,2BAAO,GAAE;IACT,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,sBAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IAC5E,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,sBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE;QAC/C,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACa,sBAAM;0CAAC;AAQf;IANN,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,YAAI,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACxE,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,YAAI,EAAE;QACrB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;8BACW,YAAI;wCAAC;qBA/BP,UAAU;IADtB,IAAA,gBAAM,GAAE;GACI,UAAU,CAgCtB"}
@@ -1,2 +1,4 @@
1
- export * from './poliza_reimbursement.entity';
2
- export * from './poliza_scheduling.entity';
1
+ export * from "./poliza_reimbursement.entity";
2
+ export * from "./poliza_scheduling.entity";
3
+ export * from "./poliza_reimbursement-comment.entity";
4
+ export * from "./poliza_scheduling-comment.entity";
@@ -16,4 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./poliza_reimbursement.entity"), exports);
18
18
  __exportStar(require("./poliza_scheduling.entity"), exports);
19
+ __exportStar(require("./poliza_reimbursement-comment.entity"), exports);
20
+ __exportStar(require("./poliza_scheduling-comment.entity"), exports);
19
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/sales/poliza/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,6DAA2C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/entities/sales/poliza/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,6DAA2C;AAC3C,wEAAsD;AACtD,qEAAmD"}
@@ -0,0 +1,5 @@
1
+ import { CommentBase } from "../../../common";
2
+ import { PolizaReimbursement } from "./poliza_reimbursement.entity";
3
+ export declare class PolizaReimbursementComment extends CommentBase {
4
+ contact: PolizaReimbursement;
5
+ }
@@ -0,0 +1,35 @@
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.PolizaReimbursementComment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const common_1 = require("../../../common");
16
+ const poliza_reimbursement_entity_1 = require("./poliza_reimbursement.entity");
17
+ let PolizaReimbursementComment = class PolizaReimbursementComment extends common_1.CommentBase {
18
+ contact;
19
+ };
20
+ exports.PolizaReimbursementComment = PolizaReimbursementComment;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({
23
+ type: () => poliza_reimbursement_entity_1.PolizaReimbursement,
24
+ description: "Reimbursement associated with the comment",
25
+ }),
26
+ (0, typeorm_1.ManyToOne)(() => poliza_reimbursement_entity_1.PolizaReimbursement, {
27
+ onDelete: "CASCADE",
28
+ onUpdate: "CASCADE",
29
+ }),
30
+ __metadata("design:type", poliza_reimbursement_entity_1.PolizaReimbursement)
31
+ ], PolizaReimbursementComment.prototype, "contact", void 0);
32
+ exports.PolizaReimbursementComment = PolizaReimbursementComment = __decorate([
33
+ (0, typeorm_1.Entity)()
34
+ ], PolizaReimbursementComment);
35
+ //# sourceMappingURL=poliza_reimbursement-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poliza_reimbursement-comment.entity.js","sourceRoot":"","sources":["../../../../src/entities/sales/poliza/poliza_reimbursement-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4C;AAC5C,6CAA8C;AAC9C,4CAA8C;AAC9C,+EAAoE;AAG7D,IAAM,0BAA0B,GAAhC,MAAM,0BAA2B,SAAQ,oBAAW;IASzD,OAAO,CAAsB;CAC9B,CAAA;AAVY,gEAA0B;AASrC;IARC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,iDAAmB;QAC/B,WAAW,EAAE,2CAA2C;KACzD,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iDAAmB,EAAE;QACpC,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACO,iDAAmB;2DAAC;qCATlB,0BAA0B;IADtC,IAAA,gBAAM,GAAE;GACI,0BAA0B,CAUtC"}
@@ -0,0 +1,5 @@
1
+ import { CommentBase } from "../../../common";
2
+ import { PolizaScheduling } from "./poliza_scheduling.entity";
3
+ export declare class PolizaSchedulingComment extends CommentBase {
4
+ contact: PolizaScheduling;
5
+ }
@@ -0,0 +1,35 @@
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.PolizaSchedulingComment = void 0;
13
+ const typeorm_1 = require("typeorm");
14
+ const swagger_1 = require("@nestjs/swagger");
15
+ const common_1 = require("../../../common");
16
+ const poliza_scheduling_entity_1 = require("./poliza_scheduling.entity");
17
+ let PolizaSchedulingComment = class PolizaSchedulingComment extends common_1.CommentBase {
18
+ contact;
19
+ };
20
+ exports.PolizaSchedulingComment = PolizaSchedulingComment;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({
23
+ type: () => poliza_scheduling_entity_1.PolizaScheduling,
24
+ description: "Scheduling associated with the comment",
25
+ }),
26
+ (0, typeorm_1.ManyToOne)(() => poliza_scheduling_entity_1.PolizaScheduling, {
27
+ onDelete: "CASCADE",
28
+ onUpdate: "CASCADE",
29
+ }),
30
+ __metadata("design:type", poliza_scheduling_entity_1.PolizaScheduling)
31
+ ], PolizaSchedulingComment.prototype, "contact", void 0);
32
+ exports.PolizaSchedulingComment = PolizaSchedulingComment = __decorate([
33
+ (0, typeorm_1.Entity)()
34
+ ], PolizaSchedulingComment);
35
+ //# sourceMappingURL=poliza_scheduling-comment.entity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"poliza_scheduling-comment.entity.js","sourceRoot":"","sources":["../../../../src/entities/sales/poliza/poliza_scheduling-comment.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAA4C;AAC5C,6CAA8C;AAC9C,4CAA8C;AAC9C,yEAA8D;AAGvD,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,oBAAW;IAStD,OAAO,CAAmB;CAC3B,CAAA;AAVY,0DAAuB;AASlC;IARC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,2CAAgB;QAC5B,WAAW,EAAE,wCAAwC;KACtD,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,2CAAgB,EAAE;QACjC,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACO,2CAAgB;wDAAC;kCATf,uBAAuB;IADnC,IAAA,gBAAM,GAAE;GACI,uBAAuB,CAUnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easywork-common-lib",
3
- "version": "1.0.655",
3
+ "version": "1.0.656",
4
4
  "description": "Librería común de Easywork",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {