easywork-common-lib 1.0.524 → 1.0.525
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/common/enums/drive.enum.d.ts +4 -0
- package/dist/common/enums/drive.enum.js +4 -0
- package/dist/common/enums/drive.enum.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.d.ts +12 -0
- package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.js +73 -0
- package/dist/entities/helpers/sales/poliza/poliza_beneficiary.entity.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -11,6 +11,10 @@ export declare enum AttachModule {
|
|
|
11
11
|
}
|
|
12
12
|
export declare enum AttachEntityType {
|
|
13
13
|
TASK = "task",
|
|
14
|
+
TASK_COMMENT = "task_comment",
|
|
15
|
+
POLIZA_COMMENT = "task_comment",
|
|
16
|
+
RECEIPT_COMMENT = "task_comment",
|
|
17
|
+
LEAD_COMMENT = "task_comment",
|
|
14
18
|
EMAIL = "email",
|
|
15
19
|
CONTACT = "contact",
|
|
16
20
|
LEAD = "lead",
|
|
@@ -16,6 +16,10 @@ var AttachModule;
|
|
|
16
16
|
var AttachEntityType;
|
|
17
17
|
(function (AttachEntityType) {
|
|
18
18
|
AttachEntityType["TASK"] = "task";
|
|
19
|
+
AttachEntityType["TASK_COMMENT"] = "task_comment";
|
|
20
|
+
AttachEntityType["POLIZA_COMMENT"] = "task_comment";
|
|
21
|
+
AttachEntityType["RECEIPT_COMMENT"] = "task_comment";
|
|
22
|
+
AttachEntityType["LEAD_COMMENT"] = "task_comment";
|
|
19
23
|
AttachEntityType["EMAIL"] = "email";
|
|
20
24
|
AttachEntityType["CONTACT"] = "contact";
|
|
21
25
|
AttachEntityType["LEAD"] = "lead";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drive.enum.js","sourceRoot":"","sources":["../../../src/common/enums/drive.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAUX;AAVD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;IACrB,qDAAqC,CAAA;IACrC,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;AACzB,CAAC,EAVW,YAAY,4BAAZ,YAAY,QAUvB;AAED,IAAY,
|
|
1
|
+
{"version":3,"file":"drive.enum.js","sourceRoot":"","sources":["../../../src/common/enums/drive.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAUX;AAVD,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,+BAAe,CAAA;IACf,2CAA2B,CAAA;IAC3B,yCAAyB,CAAA;IACzB,uCAAuB,CAAA;IACvB,qCAAqB,CAAA;IACrB,qDAAqC,CAAA;IACrC,uCAAuB,CAAA;IACvB,uCAAuB,CAAA;AACzB,CAAC,EAVW,YAAY,4BAAZ,YAAY,QAUvB;AAED,IAAY,gBAYX;AAZD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,iDAA6B,CAAA;IAC7B,mDAA+B,CAAA;IAC/B,oDAAgC,CAAA;IAChC,iDAA6B,CAAA;IAC7B,mCAAe,CAAA;IACf,uCAAmB,CAAA;IACnB,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,iCAAa,CAAA;IACb,uCAAmB,CAAA;AACrB,CAAC,EAZW,gBAAgB,gCAAhB,gBAAgB,QAY3B"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Poliza } from "../../../sales/poliza.entity";
|
|
3
|
+
import { BeneficiaryPerson } from "../../../sales/beneficiarios/person.entity";
|
|
4
|
+
export declare class PolizaBeneficiary extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
polizaId: string;
|
|
7
|
+
beneficiaryId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
percentage: number;
|
|
10
|
+
poliza: Poliza;
|
|
11
|
+
beneficiary: BeneficiaryPerson;
|
|
12
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
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.PolizaBeneficiary = 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 PolizaBeneficiary = class PolizaBeneficiary extends typeorm_1.BaseEntity {
|
|
19
|
+
id;
|
|
20
|
+
polizaId;
|
|
21
|
+
beneficiaryId;
|
|
22
|
+
relation;
|
|
23
|
+
percentage;
|
|
24
|
+
poliza;
|
|
25
|
+
beneficiary;
|
|
26
|
+
};
|
|
27
|
+
exports.PolizaBeneficiary = PolizaBeneficiary;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'UUID of the policy beneficiary', format: 'uuid' }),
|
|
30
|
+
(0, typeorm_1.PrimaryGeneratedColumn)("uuid"),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], PolizaBeneficiary.prototype, "id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated policy' }),
|
|
35
|
+
(0, typeorm_1.Column)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], PolizaBeneficiary.prototype, "polizaId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'ID of the associated beneficiary', format: 'uuid' }),
|
|
40
|
+
(0, typeorm_1.Column)({ type: "uuid" }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], PolizaBeneficiary.prototype, "beneficiaryId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Relation description or type', required: false }),
|
|
45
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], PolizaBeneficiary.prototype, "relation", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Distribution percentage', required: false }),
|
|
50
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], PolizaBeneficiary.prototype, "percentage", 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.beneficiaries, {
|
|
57
|
+
onDelete: "CASCADE",
|
|
58
|
+
onUpdate: "CASCADE",
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", poliza_entity_1.Poliza)
|
|
61
|
+
], PolizaBeneficiary.prototype, "poliza", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({ type: () => person_entity_1.BeneficiaryPerson, description: 'Beneficiary person associated' }),
|
|
64
|
+
(0, typeorm_1.ManyToOne)(() => person_entity_1.BeneficiaryPerson, {
|
|
65
|
+
onDelete: "CASCADE",
|
|
66
|
+
onUpdate: "CASCADE",
|
|
67
|
+
}),
|
|
68
|
+
__metadata("design:type", person_entity_1.BeneficiaryPerson)
|
|
69
|
+
], PolizaBeneficiary.prototype, "beneficiary", void 0);
|
|
70
|
+
exports.PolizaBeneficiary = PolizaBeneficiary = __decorate([
|
|
71
|
+
(0, typeorm_1.Entity)()
|
|
72
|
+
], PolizaBeneficiary);
|
|
73
|
+
//# sourceMappingURL=poliza_beneficiary.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"poliza_beneficiary.entity.js","sourceRoot":"","sources":["../../../../../src/entities/helpers/sales/poliza/poliza_beneficiary.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAwF;AACxF,yDAA4C;AAC5C,gEAAsD;AACtD,6CAA8C;AAC9C,8EAA+E;AAGxE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,oBAAU;IAG/C,EAAE,CAAU;IAIZ,QAAQ,CAAS;IAIjB,aAAa,CAAS;IAItB,QAAQ,CAAS;IAIjB,UAAU,CAAS;IAQZ,MAAM,CAAS;IAOf,WAAW,CAAoB;CACvC,CAAA;AAnCY,8CAAiB;AAG5B;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,gCAAgC,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;IAC5F,IAAA,gCAAsB,EAAC,MAAM,CAAC;;6CACnB;AAIZ;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;IACzE,IAAA,gBAAM,GAAE;;mDACQ;AAI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