easywork-common-lib 1.0.765 → 1.0.767

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 (35) hide show
  1. package/dist/entities/user-invitations.entity.d.ts +2 -2
  2. package/dist/entities/user-invitations.entity.js +14 -14
  3. package/dist/entities/user-invitations.entity.js.map +1 -1
  4. package/package.json +1 -1
  5. package/tsconfig.tsbuildinfo +1 -1
  6. package/dist/entities/capacitation/capacitation-lesson.entity copy.d.ts +0 -7
  7. package/dist/entities/capacitation/capacitation-lesson.entity copy.js +0 -45
  8. package/dist/entities/capacitation/capacitation-lesson.entity copy.js.map +0 -1
  9. package/dist/entities/capacitation/capacitation-module.entity.d.ts +0 -12
  10. package/dist/entities/capacitation/capacitation-module.entity.js +0 -85
  11. package/dist/entities/capacitation/capacitation-module.entity.js.map +0 -1
  12. package/dist/entities/capacitation/course-evaluation-progress.entity.d.ts +0 -19
  13. package/dist/entities/capacitation/course-evaluation-progress.entity.js +0 -81
  14. package/dist/entities/capacitation/course-evaluation-progress.entity.js.map +0 -1
  15. package/dist/entities/capacitation/course-evaluation-question.d.ts +0 -11
  16. package/dist/entities/capacitation/course-evaluation-question.js +0 -46
  17. package/dist/entities/capacitation/course-evaluation-question.js.map +0 -1
  18. package/dist/entities/capacitation/lesson-page.entity.d.ts +0 -13
  19. package/dist/entities/capacitation/lesson-page.entity.js +0 -69
  20. package/dist/entities/capacitation/lesson-page.entity.js.map +0 -1
  21. package/dist/entities/capacitation/lesson-section.entity.d.ts +0 -10
  22. package/dist/entities/capacitation/lesson-section.entity.js +0 -57
  23. package/dist/entities/capacitation/lesson-section.entity.js.map +0 -1
  24. package/dist/entities/capacitation/lesson.entity.d.ts +0 -15
  25. package/dist/entities/capacitation/lesson.entity.js +0 -77
  26. package/dist/entities/capacitation/lesson.entity.js.map +0 -1
  27. package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.d.ts +0 -5
  28. package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.js +0 -40
  29. package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.js.map +0 -1
  30. package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +0 -11
  31. package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +0 -68
  32. package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +0 -1
  33. package/dist/entities/sales/poliza_siniestro.entity.d.ts +0 -12
  34. package/dist/entities/sales/poliza_siniestro.entity.js +0 -72
  35. package/dist/entities/sales/poliza_siniestro.entity.js.map +0 -1
@@ -1,40 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,11 +0,0 @@
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
- }
@@ -1,68 +0,0 @@
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
@@ -1 +0,0 @@
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,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0 @@
1
- import { StatusSiniestro } from "../../common/enums/sales.enum";
2
- import { EntityBase } from "../../common/database/base.entity";
3
- import { Poliza } from "./poliza.entity";
4
- import { File } from "../drive";
5
- export declare class PolizaSiniestro extends EntityBase {
6
- sigre: string;
7
- numeroReclamacion: string;
8
- fecha: Date;
9
- status: StatusSiniestro;
10
- poliza: Poliza;
11
- finiquito: File;
12
- }
@@ -1,72 +0,0 @@
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.PolizaSiniestro = void 0;
13
- const sales_enum_1 = require("../../common/enums/sales.enum");
14
- const base_entity_1 = require("../../common/database/base.entity");
15
- const typeorm_1 = require("typeorm");
16
- const poliza_entity_1 = require("./poliza.entity");
17
- const drive_1 = require("../drive");
18
- const swagger_1 = require("@nestjs/swagger");
19
- let PolizaSiniestro = class PolizaSiniestro extends base_entity_1.EntityBase {
20
- sigre;
21
- numeroReclamacion;
22
- fecha;
23
- status;
24
- poliza;
25
- finiquito;
26
- };
27
- exports.PolizaSiniestro = PolizaSiniestro;
28
- __decorate([
29
- (0, swagger_1.ApiProperty)({ type: String, description: 'Unique SIGRE number' }),
30
- (0, typeorm_1.Column)({ unique: true }),
31
- __metadata("design:type", String)
32
- ], PolizaSiniestro.prototype, "sigre", void 0);
33
- __decorate([
34
- (0, swagger_1.ApiProperty)({ type: String, description: 'Claim number' }),
35
- (0, typeorm_1.Column)(),
36
- __metadata("design:type", String)
37
- ], PolizaSiniestro.prototype, "numeroReclamacion", void 0);
38
- __decorate([
39
- (0, swagger_1.ApiProperty)({ type: Date, description: 'Date of the claim' }),
40
- (0, typeorm_1.Column)(),
41
- __metadata("design:type", Date)
42
- ], PolizaSiniestro.prototype, "fecha", void 0);
43
- __decorate([
44
- (0, swagger_1.ApiProperty)({ enum: sales_enum_1.StatusSiniestro, description: 'Status of the claim', default: sales_enum_1.StatusSiniestro.VIGENTE }),
45
- (0, typeorm_1.Column)({
46
- type: "enum",
47
- enum: sales_enum_1.StatusSiniestro,
48
- default: sales_enum_1.StatusSiniestro.VIGENTE
49
- }),
50
- __metadata("design:type", String)
51
- ], PolizaSiniestro.prototype, "status", void 0);
52
- __decorate([
53
- (0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: 'Policy associated with the claim' }),
54
- (0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, {
55
- onDelete: "CASCADE",
56
- onUpdate: "CASCADE",
57
- }),
58
- __metadata("design:type", poliza_entity_1.Poliza)
59
- ], PolizaSiniestro.prototype, "poliza", void 0);
60
- __decorate([
61
- (0, swagger_1.ApiProperty)({ type: () => drive_1.File, description: 'File associated with the claim', required: false }),
62
- (0, typeorm_1.OneToOne)(() => drive_1.File, {
63
- onDelete: "SET NULL",
64
- onUpdate: "CASCADE"
65
- }),
66
- (0, typeorm_1.JoinColumn)(),
67
- __metadata("design:type", drive_1.File)
68
- ], PolizaSiniestro.prototype, "finiquito", void 0);
69
- exports.PolizaSiniestro = PolizaSiniestro = __decorate([
70
- (0, typeorm_1.Entity)()
71
- ], PolizaSiniestro);
72
- //# sourceMappingURL=poliza_siniestro.entity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"poliza_siniestro.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/poliza_siniestro.entity.ts"],"names":[],"mappings":";;;;;;;;;;;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