easywork-common-lib 1.0.730 → 1.0.731
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/group.entity.d.ts +2 -0
- package/dist/entities/group.entity.js +6 -0
- package/dist/entities/group.entity.js.map +1 -1
- package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.js +40 -0
- package/dist/entities/helpers/sales/agent/h_agent_recruiment_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +68 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
- package/dist/entities/sales/agente-intermediario.entity.d.ts +2 -0
- package/dist/entities/sales/agente-intermediario.entity.js +10 -0
- package/dist/entities/sales/agente-intermediario.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/capacitation/course-evaluation-progress.d.ts +0 -20
- package/dist/entities/capacitation/course-evaluation-progress.js +0 -81
- package/dist/entities/capacitation/course-evaluation-progress.js.map +0 -1
- package/dist/entities/capacitation/course-progress.entity.d.ts +0 -14
- package/dist/entities/capacitation/course-progress.entity.js +0 -53
- package/dist/entities/capacitation/course-progress.entity.js.map +0 -1
- package/dist/entities/capacitation/folder-page.entity.d.ts +0 -11
- package/dist/entities/capacitation/folder-page.entity.js +0 -57
- package/dist/entities/capacitation/folder-page.entity.js.map +0 -1
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { EntityBase } from '../common/database/base.entity';
|
|
2
2
|
import { User } from './user.entity';
|
|
3
3
|
import { Course } from './capacitation';
|
|
4
|
+
import { AgenteIntermediario } from './sales/agente-intermediario.entity';
|
|
4
5
|
export declare class Group extends EntityBase {
|
|
5
6
|
name: string;
|
|
6
7
|
level: number;
|
|
7
8
|
users: User[];
|
|
8
9
|
courses: Course[];
|
|
10
|
+
agenteIntermediarios: AgenteIntermediario[];
|
|
9
11
|
}
|
|
@@ -15,11 +15,13 @@ const typeorm_1 = require("typeorm");
|
|
|
15
15
|
const base_entity_1 = require("../common/database/base.entity");
|
|
16
16
|
const user_entity_1 = require("./user.entity");
|
|
17
17
|
const capacitation_1 = require("./capacitation");
|
|
18
|
+
const agente_intermediario_entity_1 = require("./sales/agente-intermediario.entity");
|
|
18
19
|
let Group = class Group extends base_entity_1.EntityBase {
|
|
19
20
|
name;
|
|
20
21
|
level;
|
|
21
22
|
users;
|
|
22
23
|
courses;
|
|
24
|
+
agenteIntermediarios;
|
|
23
25
|
};
|
|
24
26
|
exports.Group = Group;
|
|
25
27
|
__decorate([
|
|
@@ -39,6 +41,10 @@ __decorate([
|
|
|
39
41
|
(0, typeorm_1.ManyToMany)(() => capacitation_1.Course, course => course.groups),
|
|
40
42
|
__metadata("design:type", Array)
|
|
41
43
|
], Group.prototype, "courses", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.OneToMany)(() => agente_intermediario_entity_1.AgenteIntermediario, agenteIntermediario => agenteIntermediario.group),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], Group.prototype, "agenteIntermediarios", void 0);
|
|
42
48
|
exports.Group = Group = __decorate([
|
|
43
49
|
(0, typeorm_1.Entity)()
|
|
44
50
|
], Group);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"group.entity.js","sourceRoot":"","sources":["../../src/entities/group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"group.entity.js","sourceRoot":"","sources":["../../src/entities/group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAA4C;AAC5C,qCAAgE;AAChE,gEAA4D;AAC5D,+CAAqC;AACrC,iDAAwC;AACxC,qFAA0E;AAGnE,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,wBAAU;IAGnC,IAAI,CAAS;IAGb,KAAK,CAAS;IAGd,KAAK,CAAS;IAGd,OAAO,CAAW;IAIlB,oBAAoB,CAAwB;CAC7C,CAAA;AAjBY,sBAAK;AAGhB;IAFC,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;mCACZ;AAGb;IADC,IAAA,gBAAM,GAAE;;oCACK;AAGd;IADC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC;;oCAC9B;AAGd;IADC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,qBAAM,EAAE,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC;;sCAChC;AAIlB;IADC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,iDAAmB,EAAE,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,CAAC,KAAK,CAAC;;mDAC3C;gBAhBjC,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAiBjB"}
|
|
@@ -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,M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,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"}
|
|
@@ -13,9 +13,11 @@ exports.AgenteIntermediario = void 0;
|
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const base_entity_1 = require("../../common/database/base.entity");
|
|
15
15
|
const typeorm_1 = require("typeorm");
|
|
16
|
+
const group_entity_1 = require("../../entities/group.entity");
|
|
16
17
|
let AgenteIntermediario = class AgenteIntermediario extends base_entity_1.BaseEntitySimple {
|
|
17
18
|
name;
|
|
18
19
|
cua;
|
|
20
|
+
group;
|
|
19
21
|
};
|
|
20
22
|
exports.AgenteIntermediario = AgenteIntermediario;
|
|
21
23
|
__decorate([
|
|
@@ -32,6 +34,14 @@ __decorate([
|
|
|
32
34
|
(0, typeorm_1.Column)({ length: 50, unique: true, nullable: true }),
|
|
33
35
|
__metadata("design:type", String)
|
|
34
36
|
], AgenteIntermediario.prototype, "cua", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, typeorm_1.ManyToOne)(() => group_entity_1.Group, group => group.agenteIntermediarios, {
|
|
39
|
+
nullable: false,
|
|
40
|
+
onDelete: 'CASCADE',
|
|
41
|
+
onUpdate: 'CASCADE'
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", group_entity_1.Group)
|
|
44
|
+
], AgenteIntermediario.prototype, "group", void 0);
|
|
35
45
|
exports.AgenteIntermediario = AgenteIntermediario = __decorate([
|
|
36
46
|
(0, typeorm_1.Entity)()
|
|
37
47
|
], AgenteIntermediario);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agente-intermediario.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/agente-intermediario.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,mEAAqE;AACrE,
|
|
1
|
+
{"version":3,"file":"agente-intermediario.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/agente-intermediario.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,mEAAqE;AACrE,qCAAoD;AACpD,8DAAoD;AAG7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,8BAAgB;IAGvD,IAAI,CAAS;IAQb,GAAG,CAAS;IAOZ,KAAK,CAAQ;CACd,CAAA;AAnBY,kDAAmB;AAG9B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;IAC5E,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;iDACX;AAQb;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,+BAA+B;QAC5C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACzC;AAOZ;IALC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAK,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,oBAAoB,EAAE;QAC3D,QAAQ,EAAE,KAAK;QACf,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACK,oBAAK;kDAAC;8BAlBF,mBAAmB;IAD/B,IAAA,gBAAM,GAAE;GACI,mBAAmB,CAmB/B"}
|