easywork-common-lib 1.0.598 → 1.0.599
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/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/contact.entity.d.ts +1 -1
- package/dist/entities/sales/contact.entity.js +8 -10
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/lead.entity.d.ts +1 -1
- package/dist/entities/sales/lead.entity.js +2 -4
- package/dist/entities/sales/lead.entity.js.map +1 -1
- package/dist/entities/sales/poliza_pdf.entity.d.ts +98 -0
- package/dist/entities/sales/poliza_pdf.entity.js +951 -0
- package/dist/entities/sales/poliza_pdf.entity.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/entities/capacitation/course-assigned.entity.d.ts +0 -4
- package/dist/entities/capacitation/course-assigned.entity.js +0 -28
- package/dist/entities/capacitation/course-assigned.entity.js.map +0 -1
|
@@ -0,0 +1,951 @@
|
|
|
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.PolizaPDF = void 0;
|
|
13
|
+
const user_entity_1 = require("../user.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
const contact_entity_1 = require("./contact.entity");
|
|
16
|
+
const helpers_1 = require("../helpers");
|
|
17
|
+
const poliza_siniestro_entity_1 = require("./poliza_siniestro.entity");
|
|
18
|
+
const enums_1 = require("../../common/enums");
|
|
19
|
+
const base_entity_1 = require("../../common/database/base.entity");
|
|
20
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
21
|
+
const currency_entity_1 = require("../currency.entity");
|
|
22
|
+
const receipt_entity_1 = require("./receipt.entity");
|
|
23
|
+
const vehicle_entity_1 = require("./beneficiarios/vehicle.entity");
|
|
24
|
+
const poliza_comment_entity_1 = require("./poliza-comment.entity");
|
|
25
|
+
const drive_1 = require("../../entities/drive");
|
|
26
|
+
const agent_entity_1 = require("./agent.entity");
|
|
27
|
+
const poliza_entity_1 = require("./poliza.entity");
|
|
28
|
+
let PolizaPDF = class PolizaPDF extends base_entity_1.EntityBase {
|
|
29
|
+
idBitrix;
|
|
30
|
+
operacion;
|
|
31
|
+
name;
|
|
32
|
+
poliza;
|
|
33
|
+
version;
|
|
34
|
+
renovacion;
|
|
35
|
+
renewal;
|
|
36
|
+
vigenciaDesde;
|
|
37
|
+
vigenciaHasta;
|
|
38
|
+
vigenciaDesdeVersion;
|
|
39
|
+
vigenciaHastaVersion;
|
|
40
|
+
vigenciaDesdeRenovacion;
|
|
41
|
+
vigenciaHastaRenovacion;
|
|
42
|
+
fechaEmision;
|
|
43
|
+
description;
|
|
44
|
+
primaNeta;
|
|
45
|
+
recargoFraccionado;
|
|
46
|
+
derechoPoliza;
|
|
47
|
+
iva;
|
|
48
|
+
importePagar;
|
|
49
|
+
primaNetaRenovacion;
|
|
50
|
+
recargoFraccionadoRenovacion;
|
|
51
|
+
derechoPolizaRenovacion;
|
|
52
|
+
ivaRenovacion;
|
|
53
|
+
importePagarRenovacion;
|
|
54
|
+
primaNetaMovimiento;
|
|
55
|
+
recargoFraccionadoMovimiento;
|
|
56
|
+
derechoPolizaMovimiento;
|
|
57
|
+
ivaMovimiento;
|
|
58
|
+
importePagarMovimiento;
|
|
59
|
+
frecuenciaCobro;
|
|
60
|
+
currency;
|
|
61
|
+
plazoPago;
|
|
62
|
+
expeditionDate;
|
|
63
|
+
cobertura;
|
|
64
|
+
plan;
|
|
65
|
+
typeMovement;
|
|
66
|
+
movementDescription;
|
|
67
|
+
agentText;
|
|
68
|
+
closed;
|
|
69
|
+
taxValue;
|
|
70
|
+
observations;
|
|
71
|
+
eventDate;
|
|
72
|
+
eventDescription;
|
|
73
|
+
product;
|
|
74
|
+
source;
|
|
75
|
+
sourceDescription;
|
|
76
|
+
company;
|
|
77
|
+
type;
|
|
78
|
+
conductoPago;
|
|
79
|
+
formaCobro;
|
|
80
|
+
agenteIntermediario;
|
|
81
|
+
contact;
|
|
82
|
+
file;
|
|
83
|
+
previousVersion;
|
|
84
|
+
status;
|
|
85
|
+
siniestros;
|
|
86
|
+
assignedBy;
|
|
87
|
+
descripcionMovimiento;
|
|
88
|
+
especificacionesPlan;
|
|
89
|
+
agenteReclamo;
|
|
90
|
+
observers;
|
|
91
|
+
agenteReembolso;
|
|
92
|
+
agenteProgramaciones;
|
|
93
|
+
agenteReembolsoSubsecuente;
|
|
94
|
+
agenteRescateFondos;
|
|
95
|
+
agenteGMM;
|
|
96
|
+
agenteVida;
|
|
97
|
+
agenteAutos;
|
|
98
|
+
fechaReferidaPago;
|
|
99
|
+
receipts;
|
|
100
|
+
insured;
|
|
101
|
+
vehicles;
|
|
102
|
+
category;
|
|
103
|
+
subramo;
|
|
104
|
+
subramoSalud;
|
|
105
|
+
beneficiaries;
|
|
106
|
+
metadata;
|
|
107
|
+
tasks;
|
|
108
|
+
createdBy;
|
|
109
|
+
modifiedBy;
|
|
110
|
+
subAgente;
|
|
111
|
+
comments;
|
|
112
|
+
};
|
|
113
|
+
exports.PolizaPDF = PolizaPDF;
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, swagger_1.ApiProperty)({
|
|
116
|
+
type: Number,
|
|
117
|
+
description: "Bitrix ID of the policy",
|
|
118
|
+
required: false,
|
|
119
|
+
}),
|
|
120
|
+
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
121
|
+
__metadata("design:type", Number)
|
|
122
|
+
], PolizaPDF.prototype, "idBitrix", void 0);
|
|
123
|
+
__decorate([
|
|
124
|
+
(0, swagger_1.ApiProperty)({
|
|
125
|
+
enum: enums_1.PolizaOperacion,
|
|
126
|
+
description: "Tipo de operación de la póliza",
|
|
127
|
+
required: false,
|
|
128
|
+
}),
|
|
129
|
+
(0, typeorm_1.Column)({
|
|
130
|
+
type: "enum",
|
|
131
|
+
enum: enums_1.PolizaOperacion,
|
|
132
|
+
nullable: true,
|
|
133
|
+
}),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], PolizaPDF.prototype, "operacion", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiProperty)({
|
|
138
|
+
type: String,
|
|
139
|
+
description: "Name of the policy",
|
|
140
|
+
required: false,
|
|
141
|
+
}),
|
|
142
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], PolizaPDF.prototype, "name", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Policy number", required: false }),
|
|
147
|
+
(0, typeorm_1.Column)({ length: 55, nullable: true }),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], PolizaPDF.prototype, "poliza", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, swagger_1.ApiProperty)({
|
|
152
|
+
type: String,
|
|
153
|
+
description: "Version of the policy",
|
|
154
|
+
required: false,
|
|
155
|
+
}),
|
|
156
|
+
(0, typeorm_1.Column)({ nullable: true, default: 0 }),
|
|
157
|
+
__metadata("design:type", Number)
|
|
158
|
+
], PolizaPDF.prototype, "version", void 0);
|
|
159
|
+
__decorate([
|
|
160
|
+
(0, swagger_1.ApiProperty)({
|
|
161
|
+
type: String,
|
|
162
|
+
description: "Numero de renovación de la poliza",
|
|
163
|
+
required: false,
|
|
164
|
+
}),
|
|
165
|
+
(0, typeorm_1.Column)({ nullable: true, default: 0 }),
|
|
166
|
+
__metadata("design:type", Number)
|
|
167
|
+
], PolizaPDF.prototype, "renovacion", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: "Renovación?", default: false }),
|
|
170
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
171
|
+
__metadata("design:type", Boolean)
|
|
172
|
+
], PolizaPDF.prototype, "renewal", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, swagger_1.ApiProperty)({
|
|
175
|
+
type: Date,
|
|
176
|
+
description: "Policy validity start date",
|
|
177
|
+
required: false,
|
|
178
|
+
}),
|
|
179
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
180
|
+
__metadata("design:type", Date)
|
|
181
|
+
], PolizaPDF.prototype, "vigenciaDesde", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
(0, swagger_1.ApiProperty)({
|
|
184
|
+
type: Date,
|
|
185
|
+
description: "Policy validity end date",
|
|
186
|
+
required: false,
|
|
187
|
+
}),
|
|
188
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
189
|
+
__metadata("design:type", Date)
|
|
190
|
+
], PolizaPDF.prototype, "vigenciaHasta", void 0);
|
|
191
|
+
__decorate([
|
|
192
|
+
(0, swagger_1.ApiProperty)({
|
|
193
|
+
type: Date,
|
|
194
|
+
description: "Policy version validity start date",
|
|
195
|
+
required: false,
|
|
196
|
+
}),
|
|
197
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
198
|
+
__metadata("design:type", Date)
|
|
199
|
+
], PolizaPDF.prototype, "vigenciaDesdeVersion", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, swagger_1.ApiProperty)({
|
|
202
|
+
type: Date,
|
|
203
|
+
description: "Policy version validity end date",
|
|
204
|
+
required: false,
|
|
205
|
+
}),
|
|
206
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
207
|
+
__metadata("design:type", Date)
|
|
208
|
+
], PolizaPDF.prototype, "vigenciaHastaVersion", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, swagger_1.ApiProperty)({
|
|
211
|
+
type: Date,
|
|
212
|
+
description: "Policy validity start date (Renovación)",
|
|
213
|
+
required: false,
|
|
214
|
+
}),
|
|
215
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
216
|
+
__metadata("design:type", Date)
|
|
217
|
+
], PolizaPDF.prototype, "vigenciaDesdeRenovacion", void 0);
|
|
218
|
+
__decorate([
|
|
219
|
+
(0, swagger_1.ApiProperty)({
|
|
220
|
+
type: Date,
|
|
221
|
+
description: "Policy validity end date (Renovación)",
|
|
222
|
+
required: false,
|
|
223
|
+
}),
|
|
224
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
225
|
+
__metadata("design:type", Date)
|
|
226
|
+
], PolizaPDF.prototype, "vigenciaHastaRenovacion", void 0);
|
|
227
|
+
__decorate([
|
|
228
|
+
(0, swagger_1.ApiProperty)({
|
|
229
|
+
type: Date,
|
|
230
|
+
description: "Policy issuance date",
|
|
231
|
+
required: false,
|
|
232
|
+
}),
|
|
233
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
234
|
+
__metadata("design:type", Date)
|
|
235
|
+
], PolizaPDF.prototype, "fechaEmision", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, swagger_1.ApiProperty)({
|
|
238
|
+
type: String,
|
|
239
|
+
description: "Description of the policy",
|
|
240
|
+
required: false,
|
|
241
|
+
}),
|
|
242
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
243
|
+
__metadata("design:type", String)
|
|
244
|
+
], PolizaPDF.prototype, "description", void 0);
|
|
245
|
+
__decorate([
|
|
246
|
+
(0, swagger_1.ApiProperty)({
|
|
247
|
+
type: Number,
|
|
248
|
+
description: "Net premium of the policy",
|
|
249
|
+
default: 0,
|
|
250
|
+
}),
|
|
251
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
252
|
+
__metadata("design:type", Number)
|
|
253
|
+
], PolizaPDF.prototype, "primaNeta", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
(0, swagger_1.ApiProperty)({
|
|
256
|
+
type: Number,
|
|
257
|
+
description: "Fractional surcharge of the policy",
|
|
258
|
+
default: 0,
|
|
259
|
+
}),
|
|
260
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
261
|
+
__metadata("design:type", Number)
|
|
262
|
+
], PolizaPDF.prototype, "recargoFraccionado", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Policy right fee", default: 0 }),
|
|
265
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
266
|
+
__metadata("design:type", Number)
|
|
267
|
+
], PolizaPDF.prototype, "derechoPoliza", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "IVA of the policy", default: 0 }),
|
|
270
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
271
|
+
__metadata("design:type", Number)
|
|
272
|
+
], PolizaPDF.prototype, "iva", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
(0, swagger_1.ApiProperty)({
|
|
275
|
+
type: Number,
|
|
276
|
+
description: "Amount to pay for the policy",
|
|
277
|
+
default: 0,
|
|
278
|
+
}),
|
|
279
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
280
|
+
__metadata("design:type", Number)
|
|
281
|
+
], PolizaPDF.prototype, "importePagar", void 0);
|
|
282
|
+
__decorate([
|
|
283
|
+
(0, swagger_1.ApiProperty)({
|
|
284
|
+
type: Number,
|
|
285
|
+
description: "Net premium of the policy",
|
|
286
|
+
default: 0,
|
|
287
|
+
}),
|
|
288
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
289
|
+
__metadata("design:type", Number)
|
|
290
|
+
], PolizaPDF.prototype, "primaNetaRenovacion", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
(0, swagger_1.ApiProperty)({
|
|
293
|
+
type: Number,
|
|
294
|
+
description: "Fractional surcharge of the policy",
|
|
295
|
+
default: 0,
|
|
296
|
+
}),
|
|
297
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
298
|
+
__metadata("design:type", Number)
|
|
299
|
+
], PolizaPDF.prototype, "recargoFraccionadoRenovacion", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Policy right fee", default: 0 }),
|
|
302
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
303
|
+
__metadata("design:type", Number)
|
|
304
|
+
], PolizaPDF.prototype, "derechoPolizaRenovacion", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "IVA of the policy", default: 0 }),
|
|
307
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
308
|
+
__metadata("design:type", Number)
|
|
309
|
+
], PolizaPDF.prototype, "ivaRenovacion", void 0);
|
|
310
|
+
__decorate([
|
|
311
|
+
(0, swagger_1.ApiProperty)({
|
|
312
|
+
type: Number,
|
|
313
|
+
description: "Amount to pay for the policy",
|
|
314
|
+
default: 0,
|
|
315
|
+
}),
|
|
316
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
317
|
+
__metadata("design:type", Number)
|
|
318
|
+
], PolizaPDF.prototype, "importePagarRenovacion", void 0);
|
|
319
|
+
__decorate([
|
|
320
|
+
(0, swagger_1.ApiProperty)({
|
|
321
|
+
type: Number,
|
|
322
|
+
description: "Net premium of the Movement",
|
|
323
|
+
default: 0,
|
|
324
|
+
}),
|
|
325
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
326
|
+
__metadata("design:type", Number)
|
|
327
|
+
], PolizaPDF.prototype, "primaNetaMovimiento", void 0);
|
|
328
|
+
__decorate([
|
|
329
|
+
(0, swagger_1.ApiProperty)({
|
|
330
|
+
type: Number,
|
|
331
|
+
description: "Fractional surcharge of the Movement",
|
|
332
|
+
default: 0,
|
|
333
|
+
}),
|
|
334
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
335
|
+
__metadata("design:type", Number)
|
|
336
|
+
], PolizaPDF.prototype, "recargoFraccionadoMovimiento", void 0);
|
|
337
|
+
__decorate([
|
|
338
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Policy right fee", default: 0 }),
|
|
339
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
340
|
+
__metadata("design:type", Number)
|
|
341
|
+
], PolizaPDF.prototype, "derechoPolizaMovimiento", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "IVA of the policy", default: 0 }),
|
|
344
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
345
|
+
__metadata("design:type", Number)
|
|
346
|
+
], PolizaPDF.prototype, "ivaMovimiento", void 0);
|
|
347
|
+
__decorate([
|
|
348
|
+
(0, swagger_1.ApiProperty)({
|
|
349
|
+
type: Number,
|
|
350
|
+
description: "Amount to pay for the policy",
|
|
351
|
+
default: 0,
|
|
352
|
+
}),
|
|
353
|
+
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
354
|
+
__metadata("design:type", Number)
|
|
355
|
+
], PolizaPDF.prototype, "importePagarMovimiento", void 0);
|
|
356
|
+
__decorate([
|
|
357
|
+
(0, swagger_1.ApiProperty)({
|
|
358
|
+
type: () => helpers_1.PolizaFrecuenciaPago,
|
|
359
|
+
description: "Payment frequency for the policy",
|
|
360
|
+
required: false,
|
|
361
|
+
}),
|
|
362
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaFrecuenciaPago, {
|
|
363
|
+
onDelete: "SET NULL",
|
|
364
|
+
onUpdate: "CASCADE",
|
|
365
|
+
nullable: true,
|
|
366
|
+
}),
|
|
367
|
+
__metadata("design:type", helpers_1.PolizaFrecuenciaPago)
|
|
368
|
+
], PolizaPDF.prototype, "frecuenciaCobro", void 0);
|
|
369
|
+
__decorate([
|
|
370
|
+
(0, swagger_1.ApiProperty)({
|
|
371
|
+
type: () => currency_entity_1.Currency,
|
|
372
|
+
description: "Currency",
|
|
373
|
+
required: false,
|
|
374
|
+
}),
|
|
375
|
+
(0, typeorm_1.ManyToOne)(() => currency_entity_1.Currency, {
|
|
376
|
+
onDelete: "SET NULL",
|
|
377
|
+
onUpdate: "CASCADE",
|
|
378
|
+
nullable: true,
|
|
379
|
+
}),
|
|
380
|
+
__metadata("design:type", currency_entity_1.Currency)
|
|
381
|
+
], PolizaPDF.prototype, "currency", void 0);
|
|
382
|
+
__decorate([
|
|
383
|
+
(0, swagger_1.ApiProperty)({
|
|
384
|
+
enum: enums_1.PolizaDiasPlazoPago,
|
|
385
|
+
description: "Status of the policy",
|
|
386
|
+
default: enums_1.PolizaDiasPlazoPago.Day15,
|
|
387
|
+
}),
|
|
388
|
+
(0, typeorm_1.Column)({
|
|
389
|
+
type: "enum",
|
|
390
|
+
enum: enums_1.PolizaDiasPlazoPago,
|
|
391
|
+
default: enums_1.PolizaDiasPlazoPago.Day15,
|
|
392
|
+
}),
|
|
393
|
+
__metadata("design:type", String)
|
|
394
|
+
], PolizaPDF.prototype, "plazoPago", void 0);
|
|
395
|
+
__decorate([
|
|
396
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: "Expedition Date", required: false }),
|
|
397
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
398
|
+
__metadata("design:type", Date)
|
|
399
|
+
], PolizaPDF.prototype, "expeditionDate", void 0);
|
|
400
|
+
__decorate([
|
|
401
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Cobertura", required: false }),
|
|
402
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
403
|
+
__metadata("design:type", String)
|
|
404
|
+
], PolizaPDF.prototype, "cobertura", void 0);
|
|
405
|
+
__decorate([
|
|
406
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Plan", required: false }),
|
|
407
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
408
|
+
__metadata("design:type", String)
|
|
409
|
+
], PolizaPDF.prototype, "plan", void 0);
|
|
410
|
+
__decorate([
|
|
411
|
+
(0, swagger_1.ApiProperty)({
|
|
412
|
+
type: String,
|
|
413
|
+
description: "Tipo de Movimiento",
|
|
414
|
+
required: false,
|
|
415
|
+
}),
|
|
416
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
417
|
+
__metadata("design:type", String)
|
|
418
|
+
], PolizaPDF.prototype, "typeMovement", void 0);
|
|
419
|
+
__decorate([
|
|
420
|
+
(0, swagger_1.ApiProperty)({
|
|
421
|
+
type: String,
|
|
422
|
+
description: "Descripción del movimiento",
|
|
423
|
+
required: false,
|
|
424
|
+
}),
|
|
425
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
426
|
+
__metadata("design:type", String)
|
|
427
|
+
], PolizaPDF.prototype, "movementDescription", void 0);
|
|
428
|
+
__decorate([
|
|
429
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Agente", required: false }),
|
|
430
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
431
|
+
__metadata("design:type", String)
|
|
432
|
+
], PolizaPDF.prototype, "agentText", void 0);
|
|
433
|
+
__decorate([
|
|
434
|
+
(0, swagger_1.ApiProperty)({
|
|
435
|
+
type: Boolean,
|
|
436
|
+
description: "Is the policy closed?",
|
|
437
|
+
default: false,
|
|
438
|
+
}),
|
|
439
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
440
|
+
__metadata("design:type", Boolean)
|
|
441
|
+
], PolizaPDF.prototype, "closed", void 0);
|
|
442
|
+
__decorate([
|
|
443
|
+
(0, swagger_1.ApiProperty)({
|
|
444
|
+
type: Number,
|
|
445
|
+
description: "Tax value for the policy",
|
|
446
|
+
required: false,
|
|
447
|
+
}),
|
|
448
|
+
(0, typeorm_1.Column)({ name: "tax_value", type: "float", nullable: true }),
|
|
449
|
+
__metadata("design:type", Number)
|
|
450
|
+
], PolizaPDF.prototype, "taxValue", void 0);
|
|
451
|
+
__decorate([
|
|
452
|
+
(0, swagger_1.ApiProperty)({
|
|
453
|
+
type: String,
|
|
454
|
+
description: "Comments about the policy",
|
|
455
|
+
required: false,
|
|
456
|
+
}),
|
|
457
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
458
|
+
__metadata("design:type", String)
|
|
459
|
+
], PolizaPDF.prototype, "observations", void 0);
|
|
460
|
+
__decorate([
|
|
461
|
+
(0, swagger_1.ApiProperty)({
|
|
462
|
+
type: Date,
|
|
463
|
+
description: "Event date of the policy",
|
|
464
|
+
required: false,
|
|
465
|
+
}),
|
|
466
|
+
(0, typeorm_1.Column)({ name: "event_date", nullable: true }),
|
|
467
|
+
__metadata("design:type", Date)
|
|
468
|
+
], PolizaPDF.prototype, "eventDate", void 0);
|
|
469
|
+
__decorate([
|
|
470
|
+
(0, swagger_1.ApiProperty)({
|
|
471
|
+
type: String,
|
|
472
|
+
description: "Event description of the policy",
|
|
473
|
+
required: false,
|
|
474
|
+
}),
|
|
475
|
+
(0, typeorm_1.Column)({ type: "text", nullable: true, name: "event_description" }),
|
|
476
|
+
__metadata("design:type", String)
|
|
477
|
+
], PolizaPDF.prototype, "eventDescription", void 0);
|
|
478
|
+
__decorate([
|
|
479
|
+
(0, swagger_1.ApiProperty)({
|
|
480
|
+
type: String,
|
|
481
|
+
description: "Product associated with the policy",
|
|
482
|
+
required: false,
|
|
483
|
+
}),
|
|
484
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
485
|
+
__metadata("design:type", String)
|
|
486
|
+
], PolizaPDF.prototype, "product", void 0);
|
|
487
|
+
__decorate([
|
|
488
|
+
(0, swagger_1.ApiProperty)({
|
|
489
|
+
type: String,
|
|
490
|
+
description: "Source of the policy",
|
|
491
|
+
required: false,
|
|
492
|
+
}),
|
|
493
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
494
|
+
__metadata("design:type", String)
|
|
495
|
+
], PolizaPDF.prototype, "source", void 0);
|
|
496
|
+
__decorate([
|
|
497
|
+
(0, swagger_1.ApiProperty)({
|
|
498
|
+
type: String,
|
|
499
|
+
description: "Source description of the policy",
|
|
500
|
+
required: false,
|
|
501
|
+
}),
|
|
502
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
503
|
+
__metadata("design:type", String)
|
|
504
|
+
], PolizaPDF.prototype, "sourceDescription", void 0);
|
|
505
|
+
__decorate([
|
|
506
|
+
(0, swagger_1.ApiProperty)({
|
|
507
|
+
type: () => helpers_1.PolizaInsurance,
|
|
508
|
+
description: "Insurance associated with the policy",
|
|
509
|
+
required: false,
|
|
510
|
+
}),
|
|
511
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaInsurance, {
|
|
512
|
+
onDelete: "SET NULL",
|
|
513
|
+
onUpdate: "CASCADE",
|
|
514
|
+
nullable: true,
|
|
515
|
+
}),
|
|
516
|
+
__metadata("design:type", helpers_1.PolizaInsurance)
|
|
517
|
+
], PolizaPDF.prototype, "company", void 0);
|
|
518
|
+
__decorate([
|
|
519
|
+
(0, swagger_1.ApiProperty)({
|
|
520
|
+
type: () => helpers_1.PolizaType,
|
|
521
|
+
description: "Type of the policy",
|
|
522
|
+
required: false,
|
|
523
|
+
}),
|
|
524
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaType, {
|
|
525
|
+
onDelete: "SET NULL",
|
|
526
|
+
onUpdate: "CASCADE",
|
|
527
|
+
nullable: true,
|
|
528
|
+
}),
|
|
529
|
+
__metadata("design:type", helpers_1.PolizaType)
|
|
530
|
+
], PolizaPDF.prototype, "type", void 0);
|
|
531
|
+
__decorate([
|
|
532
|
+
(0, swagger_1.ApiProperty)({
|
|
533
|
+
type: () => helpers_1.PolizaConductoPago,
|
|
534
|
+
description: "Conducto de Pago",
|
|
535
|
+
required: false,
|
|
536
|
+
}),
|
|
537
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaConductoPago, {
|
|
538
|
+
onDelete: "SET NULL",
|
|
539
|
+
onUpdate: "CASCADE",
|
|
540
|
+
nullable: true,
|
|
541
|
+
}),
|
|
542
|
+
__metadata("design:type", helpers_1.PolizaConductoPago)
|
|
543
|
+
], PolizaPDF.prototype, "conductoPago", void 0);
|
|
544
|
+
__decorate([
|
|
545
|
+
(0, swagger_1.ApiProperty)({
|
|
546
|
+
type: () => helpers_1.PolizaFormaCobro,
|
|
547
|
+
description: "Payment method for the policy",
|
|
548
|
+
required: false,
|
|
549
|
+
}),
|
|
550
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaFormaCobro, {
|
|
551
|
+
onDelete: "SET NULL",
|
|
552
|
+
onUpdate: "CASCADE",
|
|
553
|
+
nullable: true,
|
|
554
|
+
}),
|
|
555
|
+
__metadata("design:type", helpers_1.PolizaFormaCobro)
|
|
556
|
+
], PolizaPDF.prototype, "formaCobro", void 0);
|
|
557
|
+
__decorate([
|
|
558
|
+
(0, swagger_1.ApiProperty)({
|
|
559
|
+
type: () => agent_entity_1.Agent,
|
|
560
|
+
description: "Agente Intermediary associated with the policy",
|
|
561
|
+
required: false,
|
|
562
|
+
}),
|
|
563
|
+
(0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, {
|
|
564
|
+
onDelete: "SET NULL",
|
|
565
|
+
onUpdate: "CASCADE",
|
|
566
|
+
nullable: true,
|
|
567
|
+
}),
|
|
568
|
+
__metadata("design:type", agent_entity_1.Agent)
|
|
569
|
+
], PolizaPDF.prototype, "agenteIntermediario", void 0);
|
|
570
|
+
__decorate([
|
|
571
|
+
(0, swagger_1.ApiProperty)({
|
|
572
|
+
type: () => contact_entity_1.Contact,
|
|
573
|
+
description: "Contact associated with the policy",
|
|
574
|
+
required: false,
|
|
575
|
+
}),
|
|
576
|
+
(0, typeorm_1.ManyToOne)(() => contact_entity_1.Contact, {
|
|
577
|
+
onDelete: "SET NULL",
|
|
578
|
+
onUpdate: "CASCADE",
|
|
579
|
+
nullable: true,
|
|
580
|
+
}),
|
|
581
|
+
__metadata("design:type", contact_entity_1.Contact)
|
|
582
|
+
], PolizaPDF.prototype, "contact", void 0);
|
|
583
|
+
__decorate([
|
|
584
|
+
(0, swagger_1.ApiProperty)({
|
|
585
|
+
type: () => drive_1.File,
|
|
586
|
+
description: "File associated with the policy",
|
|
587
|
+
required: false,
|
|
588
|
+
}),
|
|
589
|
+
(0, typeorm_1.ManyToOne)(() => drive_1.File, {
|
|
590
|
+
onDelete: "SET NULL",
|
|
591
|
+
onUpdate: "CASCADE",
|
|
592
|
+
nullable: true,
|
|
593
|
+
}),
|
|
594
|
+
__metadata("design:type", drive_1.File)
|
|
595
|
+
], PolizaPDF.prototype, "file", void 0);
|
|
596
|
+
__decorate([
|
|
597
|
+
(0, swagger_1.ApiProperty)({
|
|
598
|
+
type: () => poliza_entity_1.Poliza,
|
|
599
|
+
description: "Parent policy",
|
|
600
|
+
required: false,
|
|
601
|
+
}),
|
|
602
|
+
(0, typeorm_1.ManyToOne)(() => poliza_entity_1.Poliza, {
|
|
603
|
+
onDelete: "SET NULL",
|
|
604
|
+
onUpdate: "CASCADE",
|
|
605
|
+
nullable: true,
|
|
606
|
+
}),
|
|
607
|
+
__metadata("design:type", poliza_entity_1.Poliza)
|
|
608
|
+
], PolizaPDF.prototype, "previousVersion", void 0);
|
|
609
|
+
__decorate([
|
|
610
|
+
(0, swagger_1.ApiProperty)({
|
|
611
|
+
enum: enums_1.PolizaStatus,
|
|
612
|
+
description: "Status of the policy",
|
|
613
|
+
required: false,
|
|
614
|
+
}),
|
|
615
|
+
(0, typeorm_1.Column)({
|
|
616
|
+
type: "enum",
|
|
617
|
+
enum: enums_1.PolizaStatus,
|
|
618
|
+
nullable: true,
|
|
619
|
+
}),
|
|
620
|
+
__metadata("design:type", String)
|
|
621
|
+
], PolizaPDF.prototype, "status", void 0);
|
|
622
|
+
__decorate([
|
|
623
|
+
(0, swagger_1.ApiProperty)({
|
|
624
|
+
type: () => [poliza_siniestro_entity_1.PolizaSiniestro],
|
|
625
|
+
description: "Claims associated with the policy",
|
|
626
|
+
}),
|
|
627
|
+
(0, typeorm_1.OneToMany)(() => poliza_siniestro_entity_1.PolizaSiniestro, (polizaSiniestro) => polizaSiniestro.poliza, {
|
|
628
|
+
onDelete: "CASCADE",
|
|
629
|
+
onUpdate: "CASCADE",
|
|
630
|
+
}),
|
|
631
|
+
__metadata("design:type", Array)
|
|
632
|
+
], PolizaPDF.prototype, "siniestros", void 0);
|
|
633
|
+
__decorate([
|
|
634
|
+
(0, swagger_1.ApiProperty)({
|
|
635
|
+
type: () => user_entity_1.User,
|
|
636
|
+
description: "User responsible of the policy",
|
|
637
|
+
required: false,
|
|
638
|
+
}),
|
|
639
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
640
|
+
onDelete: "SET NULL",
|
|
641
|
+
onUpdate: "CASCADE",
|
|
642
|
+
nullable: true,
|
|
643
|
+
}),
|
|
644
|
+
__metadata("design:type", user_entity_1.User)
|
|
645
|
+
], PolizaPDF.prototype, "assignedBy", void 0);
|
|
646
|
+
__decorate([
|
|
647
|
+
(0, swagger_1.ApiProperty)({
|
|
648
|
+
type: String,
|
|
649
|
+
description: "Movement description of the policy",
|
|
650
|
+
required: false,
|
|
651
|
+
}),
|
|
652
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true, name: "descripcion_movimiento" }),
|
|
653
|
+
__metadata("design:type", String)
|
|
654
|
+
], PolizaPDF.prototype, "descripcionMovimiento", void 0);
|
|
655
|
+
__decorate([
|
|
656
|
+
(0, swagger_1.ApiProperty)({
|
|
657
|
+
type: String,
|
|
658
|
+
description: "Plan specifications of the policy",
|
|
659
|
+
required: false,
|
|
660
|
+
}),
|
|
661
|
+
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
662
|
+
__metadata("design:type", String)
|
|
663
|
+
], PolizaPDF.prototype, "especificacionesPlan", void 0);
|
|
664
|
+
__decorate([
|
|
665
|
+
(0, swagger_1.ApiProperty)({
|
|
666
|
+
type: () => user_entity_1.User,
|
|
667
|
+
description: "Claim agent of the policy",
|
|
668
|
+
required: false,
|
|
669
|
+
}),
|
|
670
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
671
|
+
onDelete: "SET NULL",
|
|
672
|
+
onUpdate: "CASCADE",
|
|
673
|
+
nullable: true,
|
|
674
|
+
}),
|
|
675
|
+
__metadata("design:type", user_entity_1.User)
|
|
676
|
+
], PolizaPDF.prototype, "agenteReclamo", void 0);
|
|
677
|
+
__decorate([
|
|
678
|
+
(0, swagger_1.ApiProperty)({
|
|
679
|
+
type: () => [user_entity_1.User],
|
|
680
|
+
description: "Observers of the Poliza",
|
|
681
|
+
required: false,
|
|
682
|
+
}),
|
|
683
|
+
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
684
|
+
onDelete: "CASCADE",
|
|
685
|
+
onUpdate: "CASCADE",
|
|
686
|
+
}),
|
|
687
|
+
(0, typeorm_1.JoinTable)(),
|
|
688
|
+
__metadata("design:type", Array)
|
|
689
|
+
], PolizaPDF.prototype, "observers", void 0);
|
|
690
|
+
__decorate([
|
|
691
|
+
(0, swagger_1.ApiProperty)({
|
|
692
|
+
type: () => user_entity_1.User,
|
|
693
|
+
description: "Reimbursement agent of the policy",
|
|
694
|
+
required: false,
|
|
695
|
+
}),
|
|
696
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
697
|
+
onDelete: "SET NULL",
|
|
698
|
+
onUpdate: "CASCADE",
|
|
699
|
+
nullable: true,
|
|
700
|
+
}),
|
|
701
|
+
__metadata("design:type", user_entity_1.User)
|
|
702
|
+
], PolizaPDF.prototype, "agenteReembolso", void 0);
|
|
703
|
+
__decorate([
|
|
704
|
+
(0, swagger_1.ApiProperty)({
|
|
705
|
+
type: () => user_entity_1.User,
|
|
706
|
+
description: "Scheduling agent of the policy",
|
|
707
|
+
required: false,
|
|
708
|
+
}),
|
|
709
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
710
|
+
onDelete: "SET NULL",
|
|
711
|
+
onUpdate: "CASCADE",
|
|
712
|
+
nullable: true,
|
|
713
|
+
}),
|
|
714
|
+
__metadata("design:type", user_entity_1.User)
|
|
715
|
+
], PolizaPDF.prototype, "agenteProgramaciones", void 0);
|
|
716
|
+
__decorate([
|
|
717
|
+
(0, swagger_1.ApiProperty)({
|
|
718
|
+
type: () => user_entity_1.User,
|
|
719
|
+
description: "Subsequent reimbursement agent of the policy",
|
|
720
|
+
required: false,
|
|
721
|
+
}),
|
|
722
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
723
|
+
onDelete: "SET NULL",
|
|
724
|
+
onUpdate: "CASCADE",
|
|
725
|
+
nullable: true,
|
|
726
|
+
}),
|
|
727
|
+
__metadata("design:type", user_entity_1.User)
|
|
728
|
+
], PolizaPDF.prototype, "agenteReembolsoSubsecuente", void 0);
|
|
729
|
+
__decorate([
|
|
730
|
+
(0, swagger_1.ApiProperty)({
|
|
731
|
+
type: () => user_entity_1.User,
|
|
732
|
+
description: "Fund rescue agent of the policy",
|
|
733
|
+
required: false,
|
|
734
|
+
}),
|
|
735
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
736
|
+
onDelete: "SET NULL",
|
|
737
|
+
onUpdate: "CASCADE",
|
|
738
|
+
nullable: true,
|
|
739
|
+
}),
|
|
740
|
+
__metadata("design:type", user_entity_1.User)
|
|
741
|
+
], PolizaPDF.prototype, "agenteRescateFondos", void 0);
|
|
742
|
+
__decorate([
|
|
743
|
+
(0, swagger_1.ApiProperty)({
|
|
744
|
+
type: () => user_entity_1.User,
|
|
745
|
+
description: "Health GMM agent of the policy",
|
|
746
|
+
required: false,
|
|
747
|
+
}),
|
|
748
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
749
|
+
onDelete: "SET NULL",
|
|
750
|
+
onUpdate: "CASCADE",
|
|
751
|
+
nullable: true,
|
|
752
|
+
}),
|
|
753
|
+
__metadata("design:type", user_entity_1.User)
|
|
754
|
+
], PolizaPDF.prototype, "agenteGMM", void 0);
|
|
755
|
+
__decorate([
|
|
756
|
+
(0, swagger_1.ApiProperty)({
|
|
757
|
+
type: () => user_entity_1.User,
|
|
758
|
+
description: "Life insurance agent of the policy",
|
|
759
|
+
required: false,
|
|
760
|
+
}),
|
|
761
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
762
|
+
onDelete: "SET NULL",
|
|
763
|
+
onUpdate: "CASCADE",
|
|
764
|
+
nullable: true,
|
|
765
|
+
}),
|
|
766
|
+
__metadata("design:type", user_entity_1.User)
|
|
767
|
+
], PolizaPDF.prototype, "agenteVida", void 0);
|
|
768
|
+
__decorate([
|
|
769
|
+
(0, swagger_1.ApiProperty)({
|
|
770
|
+
type: () => user_entity_1.User,
|
|
771
|
+
description: "Car insurance agent of the policy",
|
|
772
|
+
required: false,
|
|
773
|
+
}),
|
|
774
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
775
|
+
onDelete: "SET NULL",
|
|
776
|
+
onUpdate: "CASCADE",
|
|
777
|
+
nullable: true,
|
|
778
|
+
}),
|
|
779
|
+
__metadata("design:type", user_entity_1.User)
|
|
780
|
+
], PolizaPDF.prototype, "agenteAutos", void 0);
|
|
781
|
+
__decorate([
|
|
782
|
+
(0, swagger_1.ApiProperty)({
|
|
783
|
+
type: String,
|
|
784
|
+
description: "Payment referral date of the policy",
|
|
785
|
+
required: false,
|
|
786
|
+
}),
|
|
787
|
+
(0, typeorm_1.Column)({ name: "fecha_referida_pago", nullable: true }),
|
|
788
|
+
__metadata("design:type", String)
|
|
789
|
+
], PolizaPDF.prototype, "fechaReferidaPago", void 0);
|
|
790
|
+
__decorate([
|
|
791
|
+
(0, swagger_1.ApiProperty)({ type: () => [receipt_entity_1.Receipt], description: "Receipts" }),
|
|
792
|
+
(0, typeorm_1.OneToMany)(() => receipt_entity_1.Receipt, (receipts) => receipts.poliza, {
|
|
793
|
+
onDelete: "CASCADE",
|
|
794
|
+
onUpdate: "CASCADE",
|
|
795
|
+
eager: true,
|
|
796
|
+
}),
|
|
797
|
+
__metadata("design:type", Array)
|
|
798
|
+
], PolizaPDF.prototype, "receipts", void 0);
|
|
799
|
+
__decorate([
|
|
800
|
+
(0, swagger_1.ApiProperty)({
|
|
801
|
+
type: () => [helpers_1.PolizaInsured],
|
|
802
|
+
description: "Beneficiaries associated with the policy",
|
|
803
|
+
}),
|
|
804
|
+
(0, typeorm_1.OneToMany)(() => helpers_1.PolizaInsured, (polizaInsuredPerson) => polizaInsuredPerson.poliza, {
|
|
805
|
+
onDelete: "CASCADE",
|
|
806
|
+
onUpdate: "CASCADE",
|
|
807
|
+
}),
|
|
808
|
+
__metadata("design:type", Array)
|
|
809
|
+
], PolizaPDF.prototype, "insured", void 0);
|
|
810
|
+
__decorate([
|
|
811
|
+
(0, swagger_1.ApiProperty)({
|
|
812
|
+
type: () => [vehicle_entity_1.BeneficiaryVehicle],
|
|
813
|
+
description: "Vehicles",
|
|
814
|
+
required: false,
|
|
815
|
+
}),
|
|
816
|
+
(0, typeorm_1.ManyToMany)(() => vehicle_entity_1.BeneficiaryVehicle, {
|
|
817
|
+
onDelete: "CASCADE",
|
|
818
|
+
onUpdate: "CASCADE",
|
|
819
|
+
}),
|
|
820
|
+
(0, typeorm_1.JoinTable)(),
|
|
821
|
+
__metadata("design:type", Array)
|
|
822
|
+
], PolizaPDF.prototype, "vehicles", void 0);
|
|
823
|
+
__decorate([
|
|
824
|
+
(0, swagger_1.ApiProperty)({
|
|
825
|
+
type: () => helpers_1.PolizaCategory,
|
|
826
|
+
description: "Categoría o Plan",
|
|
827
|
+
required: false,
|
|
828
|
+
}),
|
|
829
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaCategory, {
|
|
830
|
+
onDelete: "SET NULL",
|
|
831
|
+
onUpdate: "CASCADE",
|
|
832
|
+
nullable: true,
|
|
833
|
+
}),
|
|
834
|
+
__metadata("design:type", helpers_1.PolizaCategory)
|
|
835
|
+
], PolizaPDF.prototype, "category", void 0);
|
|
836
|
+
__decorate([
|
|
837
|
+
(0, swagger_1.ApiProperty)({
|
|
838
|
+
type: () => helpers_1.PolizaSubramo,
|
|
839
|
+
description: "Sub-Ramo",
|
|
840
|
+
required: false,
|
|
841
|
+
}),
|
|
842
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaSubramo, {
|
|
843
|
+
onDelete: "SET NULL",
|
|
844
|
+
onUpdate: "CASCADE",
|
|
845
|
+
nullable: true,
|
|
846
|
+
}),
|
|
847
|
+
__metadata("design:type", helpers_1.PolizaSubramo)
|
|
848
|
+
], PolizaPDF.prototype, "subramo", void 0);
|
|
849
|
+
__decorate([
|
|
850
|
+
(0, swagger_1.ApiProperty)({
|
|
851
|
+
type: () => helpers_1.PolizaSubramo,
|
|
852
|
+
description: "Sub-Ramo Salud",
|
|
853
|
+
required: false,
|
|
854
|
+
}),
|
|
855
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaSubramo, {
|
|
856
|
+
onDelete: "SET NULL",
|
|
857
|
+
onUpdate: "CASCADE",
|
|
858
|
+
nullable: true,
|
|
859
|
+
}),
|
|
860
|
+
__metadata("design:type", helpers_1.PolizaSubramo)
|
|
861
|
+
], PolizaPDF.prototype, "subramoSalud", void 0);
|
|
862
|
+
__decorate([
|
|
863
|
+
(0, swagger_1.ApiProperty)({
|
|
864
|
+
type: Object,
|
|
865
|
+
description: "Beneficiaries of the poliza",
|
|
866
|
+
required: false,
|
|
867
|
+
}),
|
|
868
|
+
(0, typeorm_1.Column)({
|
|
869
|
+
type: "json",
|
|
870
|
+
nullable: true,
|
|
871
|
+
}),
|
|
872
|
+
__metadata("design:type", Object)
|
|
873
|
+
], PolizaPDF.prototype, "beneficiaries", void 0);
|
|
874
|
+
__decorate([
|
|
875
|
+
(0, swagger_1.ApiProperty)({
|
|
876
|
+
type: Object,
|
|
877
|
+
description: "Additional metadata for the poliza",
|
|
878
|
+
required: false,
|
|
879
|
+
}),
|
|
880
|
+
(0, typeorm_1.Column)({
|
|
881
|
+
type: "simple-json",
|
|
882
|
+
nullable: true,
|
|
883
|
+
}),
|
|
884
|
+
__metadata("design:type", Object)
|
|
885
|
+
], PolizaPDF.prototype, "metadata", void 0);
|
|
886
|
+
__decorate([
|
|
887
|
+
(0, swagger_1.ApiProperty)({
|
|
888
|
+
type: () => [helpers_1.TaskCRM],
|
|
889
|
+
description: "Tasks associated with the poliza",
|
|
890
|
+
}),
|
|
891
|
+
(0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, (task) => task.poliza, {
|
|
892
|
+
cascade: true,
|
|
893
|
+
onDelete: "CASCADE",
|
|
894
|
+
}),
|
|
895
|
+
__metadata("design:type", Array)
|
|
896
|
+
], PolizaPDF.prototype, "tasks", void 0);
|
|
897
|
+
__decorate([
|
|
898
|
+
(0, swagger_1.ApiProperty)({
|
|
899
|
+
type: () => user_entity_1.User,
|
|
900
|
+
description: "User who created the comment",
|
|
901
|
+
required: false,
|
|
902
|
+
}),
|
|
903
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
904
|
+
onDelete: "SET NULL",
|
|
905
|
+
onUpdate: "CASCADE",
|
|
906
|
+
nullable: true,
|
|
907
|
+
}),
|
|
908
|
+
(0, typeorm_1.JoinColumn)(),
|
|
909
|
+
__metadata("design:type", user_entity_1.User)
|
|
910
|
+
], PolizaPDF.prototype, "createdBy", void 0);
|
|
911
|
+
__decorate([
|
|
912
|
+
(0, swagger_1.ApiProperty)({
|
|
913
|
+
type: () => user_entity_1.User,
|
|
914
|
+
description: "User who modified the comment",
|
|
915
|
+
required: false,
|
|
916
|
+
}),
|
|
917
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
918
|
+
onDelete: "SET NULL",
|
|
919
|
+
onUpdate: "CASCADE",
|
|
920
|
+
nullable: true,
|
|
921
|
+
}),
|
|
922
|
+
(0, typeorm_1.JoinColumn)(),
|
|
923
|
+
__metadata("design:type", user_entity_1.User)
|
|
924
|
+
], PolizaPDF.prototype, "modifiedBy", void 0);
|
|
925
|
+
__decorate([
|
|
926
|
+
(0, swagger_1.ApiProperty)({
|
|
927
|
+
type: () => agent_entity_1.Agent,
|
|
928
|
+
description: "Sub Agent associated with the poliza",
|
|
929
|
+
required: false,
|
|
930
|
+
}),
|
|
931
|
+
(0, typeorm_1.ManyToOne)(() => agent_entity_1.Agent, {
|
|
932
|
+
onDelete: "SET NULL",
|
|
933
|
+
onUpdate: "CASCADE",
|
|
934
|
+
nullable: true,
|
|
935
|
+
}),
|
|
936
|
+
__metadata("design:type", agent_entity_1.Agent)
|
|
937
|
+
], PolizaPDF.prototype, "subAgente", void 0);
|
|
938
|
+
__decorate([
|
|
939
|
+
(0, swagger_1.ApiProperty)({
|
|
940
|
+
type: () => [poliza_comment_entity_1.PolizaComment],
|
|
941
|
+
description: "Comments on the poliza",
|
|
942
|
+
}),
|
|
943
|
+
(0, typeorm_1.OneToMany)(() => poliza_comment_entity_1.PolizaComment, (polizaComment) => polizaComment.poliza),
|
|
944
|
+
(0, typeorm_1.JoinColumn)(),
|
|
945
|
+
__metadata("design:type", Array)
|
|
946
|
+
], PolizaPDF.prototype, "comments", void 0);
|
|
947
|
+
exports.PolizaPDF = PolizaPDF = __decorate([
|
|
948
|
+
(0, typeorm_1.Entity)(),
|
|
949
|
+
(0, typeorm_1.Index)(["poliza", "company", "type", "renovacion", "version"], { unique: true })
|
|
950
|
+
], PolizaPDF);
|
|
951
|
+
//# sourceMappingURL=poliza_pdf.entity.js.map
|