easywork-common-lib 1.0.449 → 1.0.450
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/helpers/sales/poliza/index.d.ts +1 -1
- package/dist/entities/helpers/sales/poliza/index.js +1 -1
- package/dist/entities/helpers/sales/poliza/index.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js +86 -0
- package/dist/entities/helpers/sales/poliza/poliza_insured.entity.js.map +1 -0
- package/dist/entities/sales/beneficiarios/person.entity.d.ts +1 -1
- package/dist/entities/sales/beneficiarios/person.entity.js +12 -13
- package/dist/entities/sales/beneficiarios/person.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.d.ts +2 -2
- package/dist/entities/sales/poliza.entity.js +431 -105
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -5,6 +5,6 @@ export * from "./poliza_file.entity";
|
|
|
5
5
|
export * from "./h_poliza_insurance.entity";
|
|
6
6
|
export * from "./h_poliza_category.entity";
|
|
7
7
|
export * from "./h_poliza_subramo.entity";
|
|
8
|
-
export * from "./
|
|
8
|
+
export * from "./poliza_insured.entity";
|
|
9
9
|
export * from "./h_poliza_conducto_pago.entity";
|
|
10
10
|
export * from "./h_receipt_stage.entity";
|
|
@@ -21,7 +21,7 @@ __exportStar(require("./poliza_file.entity"), exports);
|
|
|
21
21
|
__exportStar(require("./h_poliza_insurance.entity"), exports);
|
|
22
22
|
__exportStar(require("./h_poliza_category.entity"), exports);
|
|
23
23
|
__exportStar(require("./h_poliza_subramo.entity"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./poliza_insured.entity"), exports);
|
|
25
25
|
__exportStar(require("./h_poliza_conducto_pago.entity"), exports);
|
|
26
26
|
__exportStar(require("./h_receipt_stage.entity"), exports);
|
|
27
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,oEAAkD;AAClD,yDAAuC;AACvC,uDAAqC;AACrC,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gEAA8C;AAC9C,oEAAkD;AAClD,yDAAuC;AACvC,uDAAqC;AACrC,8DAA4C;AAC5C,6DAA2C;AAC3C,4DAA0C;AAC1C,0DAAwC;AACxC,kEAAgD;AAChD,2DAAyC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Poliza } from "../../../sales/poliza.entity";
|
|
3
|
+
import { InsuredPerson } from "../../../sales/beneficiarios/person.entity";
|
|
4
|
+
export declare class PolizaInsured extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
metadata: Record<string, any>;
|
|
7
|
+
polizaId: string;
|
|
8
|
+
poliza: Poliza;
|
|
9
|
+
insuredId: string;
|
|
10
|
+
insured: InsuredPerson;
|
|
11
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.PolizaInsured = 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 swagger_1 = require("@nestjs/swagger");
|
|
17
|
+
const person_entity_1 = require("../../../sales/beneficiarios/person.entity");
|
|
18
|
+
let PolizaInsured = class PolizaInsured extends typeorm_1.BaseEntity {
|
|
19
|
+
id;
|
|
20
|
+
metadata;
|
|
21
|
+
polizaId;
|
|
22
|
+
poliza;
|
|
23
|
+
insuredId;
|
|
24
|
+
insured;
|
|
25
|
+
};
|
|
26
|
+
exports.PolizaInsured = PolizaInsured;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({
|
|
29
|
+
type: String,
|
|
30
|
+
description: "UUID of the policy insured person",
|
|
31
|
+
format: "uuid",
|
|
32
|
+
}),
|
|
33
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], PolizaInsured.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({
|
|
38
|
+
type: Object,
|
|
39
|
+
description: "Additional metadata for the insured person",
|
|
40
|
+
required: false,
|
|
41
|
+
}),
|
|
42
|
+
(0, typeorm_1.Column)({
|
|
43
|
+
type: "json",
|
|
44
|
+
nullable: true,
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", Object)
|
|
47
|
+
], PolizaInsured.prototype, "metadata", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "ID of the associated policy" }),
|
|
50
|
+
(0, typeorm_1.Column)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], PolizaInsured.prototype, "polizaId", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Exclude)(),
|
|
55
|
+
(0, swagger_1.ApiProperty)({ type: () => poliza_entity_1.Poliza, description: "Policy entity associated" }),
|
|
56
|
+
(0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, (poliza) => poliza.insured, {
|
|
57
|
+
onDelete: "CASCADE",
|
|
58
|
+
onUpdate: "CASCADE",
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", poliza_entity_1.Poliza)
|
|
61
|
+
], PolizaInsured.prototype, "poliza", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
type: String,
|
|
65
|
+
description: "ID of the associated insured person",
|
|
66
|
+
format: "uuid",
|
|
67
|
+
}),
|
|
68
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], PolizaInsured.prototype, "insuredId", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
type: () => person_entity_1.InsuredPerson,
|
|
74
|
+
description: "Insured person associated",
|
|
75
|
+
}),
|
|
76
|
+
(0, typeorm_1.ManyToOne)(() => person_entity_1.InsuredPerson, {
|
|
77
|
+
onDelete: "CASCADE",
|
|
78
|
+
onUpdate: "CASCADE",
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", person_entity_1.InsuredPerson)
|
|
81
|
+
], PolizaInsured.prototype, "insured", void 0);
|
|
82
|
+
exports.PolizaInsured = PolizaInsured = __decorate([
|
|
83
|
+
(0, typeorm_1.Index)(["polizaId", "insuredId"], { unique: true }),
|
|
84
|
+
(0, typeorm_1.Entity)()
|
|
85
|
+
], PolizaInsured);
|
|
86
|
+
//# sourceMappingURL=poliza_insured.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poliza_insured.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/poliza_insured.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,yDAA4C;AAC5C,gEAAsD;AACtD,6CAA8C;AAC9C,8EAA2E;AAIpE,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,oBAAU;IAO3C,EAAE,CAAU;IAWZ,QAAQ,CAAsB;IAI9B,QAAQ,CAAS;IAQV,MAAM,CAAS;IAQtB,SAAS,CAAS;IAUX,OAAO,CAAgB;CAC/B,CAAA;AAjDY,sCAAa;AAOxB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,mCAAmC;QAChD,MAAM,EAAE,MAAM;KACf,CAAC;IACD,IAAA,gCAAsB,EAAC,MAAM,CAAC;;yCACnB;AAWZ;IATC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,4CAA4C;QACzD,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,gBAAM,EAAC;QACN,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;KACf,CAAC;;+CAC4B;AAI9B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,gBAAM,GAAE;;+CACQ;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,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE;QACnD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACa,sBAAM;6CAAC;AAQtB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,qCAAqC;QAClD,MAAM,EAAE,MAAM;KACf,CAAC;IACD,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;gDACP;AAUX;IARN,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,6BAAa;QACzB,WAAW,EAAE,2BAA2B;KACzC,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAa,EAAE;QAC9B,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;KACpB,CAAC;8BACc,6BAAa;8CAAC;wBAhDnB,aAAa;IAFzB,IAAA,eAAK,EAAC,CAAC,UAAU,EAAE,WAAW,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAClD,IAAA,gBAAM,GAAE;GACI,aAAa,CAiDzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EntityBase } from "../../../common/database/base.entity";
|
|
2
2
|
import { User } from "../../user.entity";
|
|
3
3
|
import { PolizaInsurance } from "../../helpers";
|
|
4
|
-
export declare class
|
|
4
|
+
export declare class InsuredPerson extends EntityBase {
|
|
5
5
|
codigo?: number;
|
|
6
6
|
fullName?: string;
|
|
7
7
|
company?: PolizaInsurance;
|
|
@@ -9,38 +9,37 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.InsuredPerson = 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
16
|
const user_entity_1 = require("../../user.entity");
|
|
17
17
|
const helpers_1 = require("../../helpers");
|
|
18
|
-
let
|
|
18
|
+
let InsuredPerson = class InsuredPerson extends base_entity_1.EntityBase {
|
|
19
19
|
codigo;
|
|
20
20
|
fullName;
|
|
21
21
|
company;
|
|
22
22
|
createdBy;
|
|
23
23
|
modifiedBy;
|
|
24
24
|
};
|
|
25
|
-
exports.
|
|
25
|
+
exports.InsuredPerson = InsuredPerson;
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, swagger_1.ApiProperty)({
|
|
28
28
|
type: Number,
|
|
29
29
|
description: "Codigo de cliente",
|
|
30
|
-
required: false,
|
|
31
30
|
}),
|
|
32
|
-
(0, typeorm_1.Column)({ name: "codigo", nullable:
|
|
31
|
+
(0, typeorm_1.Column)({ name: "codigo", nullable: false }),
|
|
33
32
|
__metadata("design:type", Number)
|
|
34
|
-
],
|
|
33
|
+
], InsuredPerson.prototype, "codigo", void 0);
|
|
35
34
|
__decorate([
|
|
36
35
|
(0, swagger_1.ApiProperty)({
|
|
37
36
|
type: String,
|
|
38
|
-
description: "Full name of the
|
|
37
|
+
description: "Full name of the Insured Person",
|
|
39
38
|
required: false,
|
|
40
39
|
}),
|
|
41
40
|
(0, typeorm_1.Column)({ length: 150, nullable: true }),
|
|
42
41
|
__metadata("design:type", String)
|
|
43
|
-
],
|
|
42
|
+
], InsuredPerson.prototype, "fullName", void 0);
|
|
44
43
|
__decorate([
|
|
45
44
|
(0, swagger_1.ApiProperty)({
|
|
46
45
|
type: () => helpers_1.PolizaInsurance,
|
|
@@ -54,7 +53,7 @@ __decorate([
|
|
|
54
53
|
}),
|
|
55
54
|
(0, typeorm_1.JoinColumn)(),
|
|
56
55
|
__metadata("design:type", helpers_1.PolizaInsurance)
|
|
57
|
-
],
|
|
56
|
+
], InsuredPerson.prototype, "company", void 0);
|
|
58
57
|
__decorate([
|
|
59
58
|
(0, swagger_1.ApiProperty)({
|
|
60
59
|
type: () => user_entity_1.User,
|
|
@@ -68,7 +67,7 @@ __decorate([
|
|
|
68
67
|
}),
|
|
69
68
|
(0, typeorm_1.JoinColumn)(),
|
|
70
69
|
__metadata("design:type", user_entity_1.User)
|
|
71
|
-
],
|
|
70
|
+
], InsuredPerson.prototype, "createdBy", void 0);
|
|
72
71
|
__decorate([
|
|
73
72
|
(0, swagger_1.ApiProperty)({
|
|
74
73
|
type: () => user_entity_1.User,
|
|
@@ -82,9 +81,9 @@ __decorate([
|
|
|
82
81
|
}),
|
|
83
82
|
(0, typeorm_1.JoinColumn)(),
|
|
84
83
|
__metadata("design:type", user_entity_1.User)
|
|
85
|
-
],
|
|
86
|
-
exports.
|
|
84
|
+
], InsuredPerson.prototype, "modifiedBy", void 0);
|
|
85
|
+
exports.InsuredPerson = InsuredPerson = __decorate([
|
|
87
86
|
(0, typeorm_1.Index)(["codigo", "company"], { unique: true }),
|
|
88
87
|
(0, typeorm_1.Entity)()
|
|
89
|
-
],
|
|
88
|
+
], InsuredPerson);
|
|
90
89
|
//# sourceMappingURL=person.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"person.entity.js","sourceRoot":"","sources":["../../../../src/entities/sales/beneficiarios/person.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,sEAAkE;AAClE,qCAAuE;AACvE,mDAAyC;AACzC,2CAAgD;
|
|
1
|
+
{"version":3,"file":"person.entity.js","sourceRoot":"","sources":["../../../../src/entities/sales/beneficiarios/person.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,sEAAkE;AAClE,qCAAuE;AACvE,mDAAyC;AACzC,2CAAgD;AAKzC,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,wBAAU;IAM3C,MAAM,CAAU;IAShB,QAAQ,CAAU;IAalB,OAAO,CAAmB;IAa1B,SAAS,CAAQ;IAajB,UAAU,CAAQ;CACnB,CAAA;AAvDY,sCAAa;AAM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I,EAAE;QACrB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;iDAAC;wBAtDP,aAAa;IAFzB,IAAA,eAAK,EAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9C,IAAA,gBAAM,GAAE;GACI,aAAa,CAuDzB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { User } from "../user.entity";
|
|
2
2
|
import { Contact } from "./contact.entity";
|
|
3
|
-
import { PolizaInsurance, PolizaFormaCobro, PolizaType, PolizaFile, PolizaFrecuenciaPago, PolizaCategory, PolizaSubramo,
|
|
3
|
+
import { PolizaInsurance, PolizaFormaCobro, PolizaType, PolizaFile, PolizaFrecuenciaPago, PolizaCategory, PolizaSubramo, PolizaConductoPago, TaskCRM, PolizaInsured } from "../helpers";
|
|
4
4
|
import { PolizaSiniestro } from "./poliza_siniestro.entity";
|
|
5
5
|
import { PolizaDiasPlazoPago, PolizaStatus } from "../../common/enums";
|
|
6
6
|
import { EntityBase } from "../../common/database/base.entity";
|
|
@@ -97,7 +97,7 @@ export declare class Poliza extends EntityBase {
|
|
|
97
97
|
fechaReferidaPago?: string;
|
|
98
98
|
fechaReferidaPagoRenovacion?: string;
|
|
99
99
|
receipts?: Receipt[];
|
|
100
|
-
|
|
100
|
+
insured?: PolizaInsured[];
|
|
101
101
|
vehicles?: BeneficiaryVehicle[];
|
|
102
102
|
category?: PolizaCategory;
|
|
103
103
|
subramo?: PolizaSubramo;
|