easywork-common-lib 1.0.448 → 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
|
@@ -111,7 +111,7 @@ let Poliza = class Poliza extends base_entity_1.EntityBase {
|
|
|
111
111
|
fechaReferidaPago;
|
|
112
112
|
fechaReferidaPagoRenovacion;
|
|
113
113
|
receipts;
|
|
114
|
-
|
|
114
|
+
insured;
|
|
115
115
|
vehicles;
|
|
116
116
|
category;
|
|
117
117
|
subramo;
|
|
@@ -125,172 +125,272 @@ let Poliza = class Poliza extends base_entity_1.EntityBase {
|
|
|
125
125
|
};
|
|
126
126
|
exports.Poliza = Poliza;
|
|
127
127
|
__decorate([
|
|
128
|
-
(0, swagger_1.ApiProperty)({
|
|
128
|
+
(0, swagger_1.ApiProperty)({
|
|
129
|
+
type: Number,
|
|
130
|
+
description: "Bitrix ID of the policy",
|
|
131
|
+
required: false,
|
|
132
|
+
}),
|
|
129
133
|
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
130
134
|
__metadata("design:type", Number)
|
|
131
135
|
], Poliza.prototype, "idBitrix", void 0);
|
|
132
136
|
__decorate([
|
|
133
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
137
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Policy number", required: false }),
|
|
134
138
|
(0, typeorm_1.Column)({ length: 55, nullable: true }),
|
|
135
139
|
__metadata("design:type", String)
|
|
136
140
|
], Poliza.prototype, "poliza", void 0);
|
|
137
141
|
__decorate([
|
|
138
|
-
(0, swagger_1.ApiProperty)({
|
|
142
|
+
(0, swagger_1.ApiProperty)({
|
|
143
|
+
type: String,
|
|
144
|
+
description: "Policy number (Renovacion)",
|
|
145
|
+
required: false,
|
|
146
|
+
}),
|
|
139
147
|
(0, typeorm_1.Column)({ length: 55, nullable: true }),
|
|
140
148
|
__metadata("design:type", String)
|
|
141
149
|
], Poliza.prototype, "polizaRenovacion", void 0);
|
|
142
150
|
__decorate([
|
|
143
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
151
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Tipo Conexion", required: false }),
|
|
144
152
|
(0, typeorm_1.Column)({ length: 100, nullable: true }),
|
|
145
153
|
__metadata("design:type", String)
|
|
146
154
|
], Poliza.prototype, "tipoConexion", void 0);
|
|
147
155
|
__decorate([
|
|
148
|
-
(0, swagger_1.ApiProperty)({
|
|
156
|
+
(0, swagger_1.ApiProperty)({
|
|
157
|
+
type: String,
|
|
158
|
+
description: "Version of the policy",
|
|
159
|
+
required: false,
|
|
160
|
+
}),
|
|
149
161
|
(0, typeorm_1.Column)({ nullable: true, default: 0 }),
|
|
150
162
|
__metadata("design:type", Number)
|
|
151
163
|
], Poliza.prototype, "version", void 0);
|
|
152
164
|
__decorate([
|
|
153
|
-
(0, swagger_1.ApiProperty)({
|
|
165
|
+
(0, swagger_1.ApiProperty)({
|
|
166
|
+
type: String,
|
|
167
|
+
description: "Version of the policy",
|
|
168
|
+
required: false,
|
|
169
|
+
}),
|
|
154
170
|
(0, typeorm_1.Column)({ nullable: true, default: 0 }),
|
|
155
171
|
__metadata("design:type", Number)
|
|
156
172
|
], Poliza.prototype, "versionRenovacion", void 0);
|
|
157
173
|
__decorate([
|
|
158
|
-
(0, swagger_1.ApiProperty)({
|
|
174
|
+
(0, swagger_1.ApiProperty)({
|
|
175
|
+
type: String,
|
|
176
|
+
description: "Numero de renovación de la poliza",
|
|
177
|
+
required: false,
|
|
178
|
+
}),
|
|
159
179
|
(0, typeorm_1.Column)({ nullable: true, default: 0 }),
|
|
160
180
|
__metadata("design:type", Number)
|
|
161
181
|
], Poliza.prototype, "renovacion", void 0);
|
|
162
182
|
__decorate([
|
|
163
|
-
(0, swagger_1.ApiProperty)({
|
|
183
|
+
(0, swagger_1.ApiProperty)({
|
|
184
|
+
type: Boolean,
|
|
185
|
+
description: "Policy Repeated?",
|
|
186
|
+
default: false,
|
|
187
|
+
}),
|
|
164
188
|
(0, typeorm_1.Column)({ default: false }),
|
|
165
189
|
__metadata("design:type", Boolean)
|
|
166
190
|
], Poliza.prototype, "repeated", void 0);
|
|
167
191
|
__decorate([
|
|
168
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description:
|
|
192
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: "Renovación?", default: false }),
|
|
169
193
|
(0, typeorm_1.Column)({ default: false }),
|
|
170
194
|
__metadata("design:type", Boolean)
|
|
171
195
|
], Poliza.prototype, "renewal", void 0);
|
|
172
196
|
__decorate([
|
|
173
|
-
(0, swagger_1.ApiProperty)({
|
|
197
|
+
(0, swagger_1.ApiProperty)({
|
|
198
|
+
type: Date,
|
|
199
|
+
description: "Policy validity start date",
|
|
200
|
+
required: false,
|
|
201
|
+
}),
|
|
174
202
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
175
203
|
__metadata("design:type", Date)
|
|
176
204
|
], Poliza.prototype, "vigenciaDesde", void 0);
|
|
177
205
|
__decorate([
|
|
178
|
-
(0, swagger_1.ApiProperty)({
|
|
206
|
+
(0, swagger_1.ApiProperty)({
|
|
207
|
+
type: Date,
|
|
208
|
+
description: "Policy validity end date",
|
|
209
|
+
required: false,
|
|
210
|
+
}),
|
|
179
211
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
180
212
|
__metadata("design:type", Date)
|
|
181
213
|
], Poliza.prototype, "vigenciaHasta", void 0);
|
|
182
214
|
__decorate([
|
|
183
|
-
(0, swagger_1.ApiProperty)({
|
|
215
|
+
(0, swagger_1.ApiProperty)({
|
|
216
|
+
type: Date,
|
|
217
|
+
description: "Policy version validity start date",
|
|
218
|
+
required: false,
|
|
219
|
+
}),
|
|
184
220
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
185
221
|
__metadata("design:type", Date)
|
|
186
222
|
], Poliza.prototype, "vigenciaDesdeVersion", void 0);
|
|
187
223
|
__decorate([
|
|
188
|
-
(0, swagger_1.ApiProperty)({
|
|
224
|
+
(0, swagger_1.ApiProperty)({
|
|
225
|
+
type: Date,
|
|
226
|
+
description: "Policy version validity end date",
|
|
227
|
+
required: false,
|
|
228
|
+
}),
|
|
189
229
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
190
230
|
__metadata("design:type", Date)
|
|
191
231
|
], Poliza.prototype, "vigenciaHastaVersion", void 0);
|
|
192
232
|
__decorate([
|
|
193
|
-
(0, swagger_1.ApiProperty)({
|
|
233
|
+
(0, swagger_1.ApiProperty)({
|
|
234
|
+
type: Date,
|
|
235
|
+
description: "Policy validity start date (Renovación)",
|
|
236
|
+
required: false,
|
|
237
|
+
}),
|
|
194
238
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
195
239
|
__metadata("design:type", Date)
|
|
196
240
|
], Poliza.prototype, "vigenciaDesdeRenovacion", void 0);
|
|
197
241
|
__decorate([
|
|
198
|
-
(0, swagger_1.ApiProperty)({
|
|
242
|
+
(0, swagger_1.ApiProperty)({
|
|
243
|
+
type: Date,
|
|
244
|
+
description: "Policy validity end date (Renovación)",
|
|
245
|
+
required: false,
|
|
246
|
+
}),
|
|
199
247
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
200
248
|
__metadata("design:type", Date)
|
|
201
249
|
], Poliza.prototype, "vigenciaHastaRenovacion", void 0);
|
|
202
250
|
__decorate([
|
|
203
|
-
(0, swagger_1.ApiProperty)({
|
|
251
|
+
(0, swagger_1.ApiProperty)({
|
|
252
|
+
type: Date,
|
|
253
|
+
description: "Policy issuance date",
|
|
254
|
+
required: false,
|
|
255
|
+
}),
|
|
204
256
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
205
257
|
__metadata("design:type", Date)
|
|
206
258
|
], Poliza.prototype, "fechaEmision", void 0);
|
|
207
259
|
__decorate([
|
|
208
|
-
(0, swagger_1.ApiProperty)({
|
|
260
|
+
(0, swagger_1.ApiProperty)({
|
|
261
|
+
type: Date,
|
|
262
|
+
description: "Policy issuance date (Renovación)",
|
|
263
|
+
required: false,
|
|
264
|
+
}),
|
|
209
265
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
210
266
|
__metadata("design:type", Date)
|
|
211
267
|
], Poliza.prototype, "fechaEmisionRenovacion", void 0);
|
|
212
268
|
__decorate([
|
|
213
|
-
(0, swagger_1.ApiProperty)({
|
|
269
|
+
(0, swagger_1.ApiProperty)({
|
|
270
|
+
type: String,
|
|
271
|
+
description: "Description of the policy",
|
|
272
|
+
required: false,
|
|
273
|
+
}),
|
|
214
274
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
215
275
|
__metadata("design:type", String)
|
|
216
276
|
], Poliza.prototype, "description", void 0);
|
|
217
277
|
__decorate([
|
|
218
|
-
(0, swagger_1.ApiProperty)({
|
|
278
|
+
(0, swagger_1.ApiProperty)({
|
|
279
|
+
type: Number,
|
|
280
|
+
description: "Net premium of the policy",
|
|
281
|
+
default: 0,
|
|
282
|
+
}),
|
|
219
283
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
220
284
|
__metadata("design:type", Number)
|
|
221
285
|
], Poliza.prototype, "primaNeta", void 0);
|
|
222
286
|
__decorate([
|
|
223
|
-
(0, swagger_1.ApiProperty)({
|
|
287
|
+
(0, swagger_1.ApiProperty)({
|
|
288
|
+
type: Number,
|
|
289
|
+
description: "Fractional surcharge of the policy",
|
|
290
|
+
default: 0,
|
|
291
|
+
}),
|
|
224
292
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
225
293
|
__metadata("design:type", Number)
|
|
226
294
|
], Poliza.prototype, "recargoFraccionado", void 0);
|
|
227
295
|
__decorate([
|
|
228
|
-
(0, swagger_1.ApiProperty)({ type: Number, description:
|
|
296
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Policy right fee", default: 0 }),
|
|
229
297
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
230
298
|
__metadata("design:type", Number)
|
|
231
299
|
], Poliza.prototype, "derechoPoliza", void 0);
|
|
232
300
|
__decorate([
|
|
233
|
-
(0, swagger_1.ApiProperty)({ type: Number, description:
|
|
301
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "IVA of the policy", default: 0 }),
|
|
234
302
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
235
303
|
__metadata("design:type", Number)
|
|
236
304
|
], Poliza.prototype, "iva", void 0);
|
|
237
305
|
__decorate([
|
|
238
|
-
(0, swagger_1.ApiProperty)({
|
|
306
|
+
(0, swagger_1.ApiProperty)({
|
|
307
|
+
type: Number,
|
|
308
|
+
description: "Amount to pay for the policy",
|
|
309
|
+
default: 0,
|
|
310
|
+
}),
|
|
239
311
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
240
312
|
__metadata("design:type", Number)
|
|
241
313
|
], Poliza.prototype, "importePagar", void 0);
|
|
242
314
|
__decorate([
|
|
243
|
-
(0, swagger_1.ApiProperty)({
|
|
315
|
+
(0, swagger_1.ApiProperty)({
|
|
316
|
+
type: Number,
|
|
317
|
+
description: "Net premium of the policy",
|
|
318
|
+
default: 0,
|
|
319
|
+
}),
|
|
244
320
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
245
321
|
__metadata("design:type", Number)
|
|
246
322
|
], Poliza.prototype, "primaNetaRenovacion", void 0);
|
|
247
323
|
__decorate([
|
|
248
|
-
(0, swagger_1.ApiProperty)({
|
|
324
|
+
(0, swagger_1.ApiProperty)({
|
|
325
|
+
type: Number,
|
|
326
|
+
description: "Fractional surcharge of the policy",
|
|
327
|
+
default: 0,
|
|
328
|
+
}),
|
|
249
329
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
250
330
|
__metadata("design:type", Number)
|
|
251
331
|
], Poliza.prototype, "recargoFraccionadoRenovacion", void 0);
|
|
252
332
|
__decorate([
|
|
253
|
-
(0, swagger_1.ApiProperty)({ type: Number, description:
|
|
333
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Policy right fee", default: 0 }),
|
|
254
334
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
255
335
|
__metadata("design:type", Number)
|
|
256
336
|
], Poliza.prototype, "derechoPolizaRenovacion", void 0);
|
|
257
337
|
__decorate([
|
|
258
|
-
(0, swagger_1.ApiProperty)({ type: Number, description:
|
|
338
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "IVA of the policy", default: 0 }),
|
|
259
339
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
260
340
|
__metadata("design:type", Number)
|
|
261
341
|
], Poliza.prototype, "ivaRenovacion", void 0);
|
|
262
342
|
__decorate([
|
|
263
|
-
(0, swagger_1.ApiProperty)({
|
|
343
|
+
(0, swagger_1.ApiProperty)({
|
|
344
|
+
type: Number,
|
|
345
|
+
description: "Amount to pay for the policy",
|
|
346
|
+
default: 0,
|
|
347
|
+
}),
|
|
264
348
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
265
349
|
__metadata("design:type", Number)
|
|
266
350
|
], Poliza.prototype, "importePagarRenovacion", void 0);
|
|
267
351
|
__decorate([
|
|
268
|
-
(0, swagger_1.ApiProperty)({
|
|
352
|
+
(0, swagger_1.ApiProperty)({
|
|
353
|
+
type: Number,
|
|
354
|
+
description: "Net premium of the Movement",
|
|
355
|
+
default: 0,
|
|
356
|
+
}),
|
|
269
357
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
270
358
|
__metadata("design:type", Number)
|
|
271
359
|
], Poliza.prototype, "primaNetaMovimiento", void 0);
|
|
272
360
|
__decorate([
|
|
273
|
-
(0, swagger_1.ApiProperty)({
|
|
361
|
+
(0, swagger_1.ApiProperty)({
|
|
362
|
+
type: Number,
|
|
363
|
+
description: "Fractional surcharge of the Movement",
|
|
364
|
+
default: 0,
|
|
365
|
+
}),
|
|
274
366
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
275
367
|
__metadata("design:type", Number)
|
|
276
368
|
], Poliza.prototype, "recargoFraccionadoMovimiento", void 0);
|
|
277
369
|
__decorate([
|
|
278
|
-
(0, swagger_1.ApiProperty)({ type: Number, description:
|
|
370
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "Policy right fee", default: 0 }),
|
|
279
371
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
280
372
|
__metadata("design:type", Number)
|
|
281
373
|
], Poliza.prototype, "derechoPolizaMovimiento", void 0);
|
|
282
374
|
__decorate([
|
|
283
|
-
(0, swagger_1.ApiProperty)({ type: Number, description:
|
|
375
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: "IVA of the policy", default: 0 }),
|
|
284
376
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
285
377
|
__metadata("design:type", Number)
|
|
286
378
|
], Poliza.prototype, "ivaMovimiento", void 0);
|
|
287
379
|
__decorate([
|
|
288
|
-
(0, swagger_1.ApiProperty)({
|
|
380
|
+
(0, swagger_1.ApiProperty)({
|
|
381
|
+
type: Number,
|
|
382
|
+
description: "Amount to pay for the policy",
|
|
383
|
+
default: 0,
|
|
384
|
+
}),
|
|
289
385
|
(0, typeorm_1.Column)({ type: "float", default: 0 }),
|
|
290
386
|
__metadata("design:type", Number)
|
|
291
387
|
], Poliza.prototype, "importePagarMovimiento", void 0);
|
|
292
388
|
__decorate([
|
|
293
|
-
(0, swagger_1.ApiProperty)({
|
|
389
|
+
(0, swagger_1.ApiProperty)({
|
|
390
|
+
type: () => helpers_1.PolizaFrecuenciaPago,
|
|
391
|
+
description: "Payment frequency for the policy",
|
|
392
|
+
required: false,
|
|
393
|
+
}),
|
|
294
394
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaFrecuenciaPago, {
|
|
295
395
|
onDelete: "SET NULL",
|
|
296
396
|
onUpdate: "CASCADE",
|
|
@@ -299,7 +399,11 @@ __decorate([
|
|
|
299
399
|
__metadata("design:type", helpers_1.PolizaFrecuenciaPago)
|
|
300
400
|
], Poliza.prototype, "frecuenciaCobro", void 0);
|
|
301
401
|
__decorate([
|
|
302
|
-
(0, swagger_1.ApiProperty)({
|
|
402
|
+
(0, swagger_1.ApiProperty)({
|
|
403
|
+
type: () => helpers_1.PolizaFrecuenciaPago,
|
|
404
|
+
description: "Payment frequency for the policy (Renovacion)",
|
|
405
|
+
required: false,
|
|
406
|
+
}),
|
|
303
407
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaFrecuenciaPago, {
|
|
304
408
|
onDelete: "SET NULL",
|
|
305
409
|
onUpdate: "CASCADE",
|
|
@@ -308,7 +412,11 @@ __decorate([
|
|
|
308
412
|
__metadata("design:type", helpers_1.PolizaFrecuenciaPago)
|
|
309
413
|
], Poliza.prototype, "frecuenciaCobroRenovacion", void 0);
|
|
310
414
|
__decorate([
|
|
311
|
-
(0, swagger_1.ApiProperty)({
|
|
415
|
+
(0, swagger_1.ApiProperty)({
|
|
416
|
+
type: () => currency_entity_1.Currency,
|
|
417
|
+
description: "Currency",
|
|
418
|
+
required: false,
|
|
419
|
+
}),
|
|
312
420
|
(0, typeorm_1.ManyToOne)(() => currency_entity_1.Currency, {
|
|
313
421
|
onDelete: "SET NULL",
|
|
314
422
|
onUpdate: "CASCADE",
|
|
@@ -317,111 +425,179 @@ __decorate([
|
|
|
317
425
|
__metadata("design:type", currency_entity_1.Currency)
|
|
318
426
|
], Poliza.prototype, "currency", void 0);
|
|
319
427
|
__decorate([
|
|
320
|
-
(0, swagger_1.ApiProperty)({
|
|
428
|
+
(0, swagger_1.ApiProperty)({
|
|
429
|
+
enum: enums_1.PolizaDiasPlazoPago,
|
|
430
|
+
description: "Status of the policy",
|
|
431
|
+
default: enums_1.PolizaDiasPlazoPago.Day15,
|
|
432
|
+
}),
|
|
321
433
|
(0, typeorm_1.Column)({
|
|
322
434
|
type: "enum",
|
|
323
435
|
enum: enums_1.PolizaDiasPlazoPago,
|
|
324
|
-
default: enums_1.PolizaDiasPlazoPago.Day15
|
|
436
|
+
default: enums_1.PolizaDiasPlazoPago.Day15,
|
|
325
437
|
}),
|
|
326
438
|
__metadata("design:type", String)
|
|
327
439
|
], Poliza.prototype, "plazoPago", void 0);
|
|
328
440
|
__decorate([
|
|
329
|
-
(0, swagger_1.ApiProperty)({ type: Date, description:
|
|
441
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: "Expedition Date", required: false }),
|
|
330
442
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
331
443
|
__metadata("design:type", Date)
|
|
332
444
|
], Poliza.prototype, "expeditionDate", void 0);
|
|
333
445
|
__decorate([
|
|
334
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
446
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Cobertura", required: false }),
|
|
335
447
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
336
448
|
__metadata("design:type", String)
|
|
337
449
|
], Poliza.prototype, "cobertura", void 0);
|
|
338
450
|
__decorate([
|
|
339
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
451
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Plan", required: false }),
|
|
340
452
|
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
341
453
|
__metadata("design:type", String)
|
|
342
454
|
], Poliza.prototype, "plan", void 0);
|
|
343
455
|
__decorate([
|
|
344
|
-
(0, swagger_1.ApiProperty)({
|
|
456
|
+
(0, swagger_1.ApiProperty)({
|
|
457
|
+
type: String,
|
|
458
|
+
description: "Tipo de Movimiento",
|
|
459
|
+
required: false,
|
|
460
|
+
}),
|
|
345
461
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
346
462
|
__metadata("design:type", String)
|
|
347
463
|
], Poliza.prototype, "typeMovement", void 0);
|
|
348
464
|
__decorate([
|
|
349
|
-
(0, swagger_1.ApiProperty)({
|
|
465
|
+
(0, swagger_1.ApiProperty)({
|
|
466
|
+
type: String,
|
|
467
|
+
description: "Descripción del movimiento",
|
|
468
|
+
required: false,
|
|
469
|
+
}),
|
|
350
470
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
351
471
|
__metadata("design:type", String)
|
|
352
472
|
], Poliza.prototype, "movementDescription", void 0);
|
|
353
473
|
__decorate([
|
|
354
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
474
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Agente", required: false }),
|
|
355
475
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
356
476
|
__metadata("design:type", String)
|
|
357
477
|
], Poliza.prototype, "agentText", void 0);
|
|
358
478
|
__decorate([
|
|
359
|
-
(0, swagger_1.ApiProperty)({
|
|
479
|
+
(0, swagger_1.ApiProperty)({
|
|
480
|
+
type: String,
|
|
481
|
+
description: "Name of the policy",
|
|
482
|
+
required: false,
|
|
483
|
+
}),
|
|
360
484
|
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
361
485
|
__metadata("design:type", String)
|
|
362
486
|
], Poliza.prototype, "name", void 0);
|
|
363
487
|
__decorate([
|
|
364
|
-
(0, swagger_1.ApiProperty)({
|
|
488
|
+
(0, swagger_1.ApiProperty)({
|
|
489
|
+
type: Boolean,
|
|
490
|
+
description: "Is the policy closed?",
|
|
491
|
+
default: false,
|
|
492
|
+
}),
|
|
365
493
|
(0, typeorm_1.Column)({ default: false }),
|
|
366
494
|
__metadata("design:type", Boolean)
|
|
367
495
|
], Poliza.prototype, "closed", void 0);
|
|
368
496
|
__decorate([
|
|
369
|
-
(0, swagger_1.ApiProperty)({
|
|
497
|
+
(0, swagger_1.ApiProperty)({
|
|
498
|
+
type: Number,
|
|
499
|
+
description: "Opportunity amount for the policy",
|
|
500
|
+
required: false,
|
|
501
|
+
}),
|
|
370
502
|
(0, typeorm_1.Column)({ type: "float", nullable: true }),
|
|
371
503
|
__metadata("design:type", Number)
|
|
372
504
|
], Poliza.prototype, "opportunity", void 0);
|
|
373
505
|
__decorate([
|
|
374
|
-
(0, swagger_1.ApiProperty)({
|
|
506
|
+
(0, swagger_1.ApiProperty)({
|
|
507
|
+
type: Boolean,
|
|
508
|
+
description: "Is the opportunity manual?",
|
|
509
|
+
default: false,
|
|
510
|
+
}),
|
|
375
511
|
(0, typeorm_1.Column)({ default: false, name: "is_manual_opportunity" }),
|
|
376
512
|
__metadata("design:type", Boolean)
|
|
377
513
|
], Poliza.prototype, "isManualOpportunity", void 0);
|
|
378
514
|
__decorate([
|
|
379
|
-
(0, swagger_1.ApiProperty)({
|
|
515
|
+
(0, swagger_1.ApiProperty)({
|
|
516
|
+
type: Number,
|
|
517
|
+
description: "Tax value for the policy",
|
|
518
|
+
required: false,
|
|
519
|
+
}),
|
|
380
520
|
(0, typeorm_1.Column)({ name: "tax_value", type: "float", nullable: true }),
|
|
381
521
|
__metadata("design:type", Number)
|
|
382
522
|
], Poliza.prototype, "taxValue", void 0);
|
|
383
523
|
__decorate([
|
|
384
|
-
(0, swagger_1.ApiProperty)({
|
|
524
|
+
(0, swagger_1.ApiProperty)({
|
|
525
|
+
type: Number,
|
|
526
|
+
description: "Opportunity account for the policy",
|
|
527
|
+
default: 0,
|
|
528
|
+
}),
|
|
385
529
|
(0, typeorm_1.Column)({ type: "float", default: 0, name: "opportunity_account" }),
|
|
386
530
|
__metadata("design:type", Number)
|
|
387
531
|
], Poliza.prototype, "opportunityAccount", void 0);
|
|
388
532
|
__decorate([
|
|
389
|
-
(0, swagger_1.ApiProperty)({
|
|
533
|
+
(0, swagger_1.ApiProperty)({
|
|
534
|
+
type: Number,
|
|
535
|
+
description: "Tax value account for the policy",
|
|
536
|
+
default: 0,
|
|
537
|
+
}),
|
|
390
538
|
(0, typeorm_1.Column)({ type: "float", default: 0, name: "tax_value_account" }),
|
|
391
539
|
__metadata("design:type", Number)
|
|
392
540
|
], Poliza.prototype, "taxValueAccount", void 0);
|
|
393
541
|
__decorate([
|
|
394
|
-
(0, swagger_1.ApiProperty)({
|
|
542
|
+
(0, swagger_1.ApiProperty)({
|
|
543
|
+
type: String,
|
|
544
|
+
description: "Account currency ID of the policy",
|
|
545
|
+
required: false,
|
|
546
|
+
}),
|
|
395
547
|
(0, typeorm_1.Column)({ name: "account_currency_id", nullable: true }),
|
|
396
548
|
__metadata("design:type", String)
|
|
397
549
|
], Poliza.prototype, "accountCurrencyId", void 0);
|
|
398
550
|
__decorate([
|
|
399
|
-
(0, swagger_1.ApiProperty)({
|
|
551
|
+
(0, swagger_1.ApiProperty)({
|
|
552
|
+
type: Number,
|
|
553
|
+
description: "Probability of the policy",
|
|
554
|
+
required: false,
|
|
555
|
+
}),
|
|
400
556
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
401
557
|
__metadata("design:type", Number)
|
|
402
558
|
], Poliza.prototype, "probability", void 0);
|
|
403
559
|
__decorate([
|
|
404
|
-
(0, swagger_1.ApiProperty)({
|
|
560
|
+
(0, swagger_1.ApiProperty)({
|
|
561
|
+
type: String,
|
|
562
|
+
description: "Comments about the policy",
|
|
563
|
+
required: false,
|
|
564
|
+
}),
|
|
405
565
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
406
566
|
__metadata("design:type", String)
|
|
407
567
|
], Poliza.prototype, "observations", void 0);
|
|
408
568
|
__decorate([
|
|
409
|
-
(0, swagger_1.ApiProperty)({
|
|
569
|
+
(0, swagger_1.ApiProperty)({
|
|
570
|
+
type: Date,
|
|
571
|
+
description: "Event date of the policy",
|
|
572
|
+
required: false,
|
|
573
|
+
}),
|
|
410
574
|
(0, typeorm_1.Column)({ name: "event_date", nullable: true }),
|
|
411
575
|
__metadata("design:type", Date)
|
|
412
576
|
], Poliza.prototype, "eventDate", void 0);
|
|
413
577
|
__decorate([
|
|
414
|
-
(0, swagger_1.ApiProperty)({
|
|
578
|
+
(0, swagger_1.ApiProperty)({
|
|
579
|
+
type: String,
|
|
580
|
+
description: "Event ID of the policy",
|
|
581
|
+
required: false,
|
|
582
|
+
}),
|
|
415
583
|
(0, typeorm_1.Column)({ type: "varchar", length: 50, nullable: true, name: "event_id" }),
|
|
416
584
|
__metadata("design:type", String)
|
|
417
585
|
], Poliza.prototype, "eventId", void 0);
|
|
418
586
|
__decorate([
|
|
419
|
-
(0, swagger_1.ApiProperty)({
|
|
587
|
+
(0, swagger_1.ApiProperty)({
|
|
588
|
+
type: String,
|
|
589
|
+
description: "Event description of the policy",
|
|
590
|
+
required: false,
|
|
591
|
+
}),
|
|
420
592
|
(0, typeorm_1.Column)({ type: "text", nullable: true, name: "event_description" }),
|
|
421
593
|
__metadata("design:type", String)
|
|
422
594
|
], Poliza.prototype, "eventDescription", void 0);
|
|
423
595
|
__decorate([
|
|
424
|
-
(0, swagger_1.ApiProperty)({
|
|
596
|
+
(0, swagger_1.ApiProperty)({
|
|
597
|
+
type: Number,
|
|
598
|
+
description: "Exchange rate of the policy",
|
|
599
|
+
default: 1.0,
|
|
600
|
+
}),
|
|
425
601
|
(0, typeorm_1.Column)({
|
|
426
602
|
type: "decimal",
|
|
427
603
|
precision: 20,
|
|
@@ -431,22 +607,38 @@ __decorate([
|
|
|
431
607
|
__metadata("design:type", Number)
|
|
432
608
|
], Poliza.prototype, "exchRate", void 0);
|
|
433
609
|
__decorate([
|
|
434
|
-
(0, swagger_1.ApiProperty)({
|
|
610
|
+
(0, swagger_1.ApiProperty)({
|
|
611
|
+
type: String,
|
|
612
|
+
description: "Product associated with the policy",
|
|
613
|
+
required: false,
|
|
614
|
+
}),
|
|
435
615
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
436
616
|
__metadata("design:type", String)
|
|
437
617
|
], Poliza.prototype, "product", void 0);
|
|
438
618
|
__decorate([
|
|
439
|
-
(0, swagger_1.ApiProperty)({
|
|
619
|
+
(0, swagger_1.ApiProperty)({
|
|
620
|
+
type: String,
|
|
621
|
+
description: "Source of the policy",
|
|
622
|
+
required: false,
|
|
623
|
+
}),
|
|
440
624
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
441
625
|
__metadata("design:type", String)
|
|
442
626
|
], Poliza.prototype, "source", void 0);
|
|
443
627
|
__decorate([
|
|
444
|
-
(0, swagger_1.ApiProperty)({
|
|
628
|
+
(0, swagger_1.ApiProperty)({
|
|
629
|
+
type: String,
|
|
630
|
+
description: "Source description of the policy",
|
|
631
|
+
required: false,
|
|
632
|
+
}),
|
|
445
633
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
446
634
|
__metadata("design:type", String)
|
|
447
635
|
], Poliza.prototype, "sourceDescription", void 0);
|
|
448
636
|
__decorate([
|
|
449
|
-
(0, swagger_1.ApiProperty)({
|
|
637
|
+
(0, swagger_1.ApiProperty)({
|
|
638
|
+
type: () => helpers_1.PolizaInsurance,
|
|
639
|
+
description: "Insurance associated with the policy",
|
|
640
|
+
required: false,
|
|
641
|
+
}),
|
|
450
642
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaInsurance, {
|
|
451
643
|
onDelete: "SET NULL",
|
|
452
644
|
onUpdate: "CASCADE",
|
|
@@ -455,7 +647,11 @@ __decorate([
|
|
|
455
647
|
__metadata("design:type", helpers_1.PolizaInsurance)
|
|
456
648
|
], Poliza.prototype, "company", void 0);
|
|
457
649
|
__decorate([
|
|
458
|
-
(0, swagger_1.ApiProperty)({
|
|
650
|
+
(0, swagger_1.ApiProperty)({
|
|
651
|
+
type: () => helpers_1.PolizaType,
|
|
652
|
+
description: "Type of the policy",
|
|
653
|
+
required: false,
|
|
654
|
+
}),
|
|
459
655
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaType, {
|
|
460
656
|
onDelete: "SET NULL",
|
|
461
657
|
onUpdate: "CASCADE",
|
|
@@ -464,7 +660,11 @@ __decorate([
|
|
|
464
660
|
__metadata("design:type", helpers_1.PolizaType)
|
|
465
661
|
], Poliza.prototype, "type", void 0);
|
|
466
662
|
__decorate([
|
|
467
|
-
(0, swagger_1.ApiProperty)({
|
|
663
|
+
(0, swagger_1.ApiProperty)({
|
|
664
|
+
type: () => helpers_1.PolizaConductoPago,
|
|
665
|
+
description: "Conducto de Pago",
|
|
666
|
+
required: false,
|
|
667
|
+
}),
|
|
468
668
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaConductoPago, {
|
|
469
669
|
onDelete: "SET NULL",
|
|
470
670
|
onUpdate: "CASCADE",
|
|
@@ -473,7 +673,11 @@ __decorate([
|
|
|
473
673
|
__metadata("design:type", helpers_1.PolizaConductoPago)
|
|
474
674
|
], Poliza.prototype, "conductoPago", void 0);
|
|
475
675
|
__decorate([
|
|
476
|
-
(0, swagger_1.ApiProperty)({
|
|
676
|
+
(0, swagger_1.ApiProperty)({
|
|
677
|
+
type: () => helpers_1.PolizaFormaCobro,
|
|
678
|
+
description: "Payment method for the policy",
|
|
679
|
+
required: false,
|
|
680
|
+
}),
|
|
477
681
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaFormaCobro, {
|
|
478
682
|
onDelete: "SET NULL",
|
|
479
683
|
onUpdate: "CASCADE",
|
|
@@ -482,7 +686,11 @@ __decorate([
|
|
|
482
686
|
__metadata("design:type", helpers_1.PolizaFormaCobro)
|
|
483
687
|
], Poliza.prototype, "formaCobro", void 0);
|
|
484
688
|
__decorate([
|
|
485
|
-
(0, swagger_1.ApiProperty)({
|
|
689
|
+
(0, swagger_1.ApiProperty)({
|
|
690
|
+
type: () => helpers_1.PolizaFormaCobro,
|
|
691
|
+
description: "Payment method for the policy",
|
|
692
|
+
required: false,
|
|
693
|
+
}),
|
|
486
694
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaFormaCobro, {
|
|
487
695
|
onDelete: "SET NULL",
|
|
488
696
|
onUpdate: "CASCADE",
|
|
@@ -491,7 +699,11 @@ __decorate([
|
|
|
491
699
|
__metadata("design:type", helpers_1.PolizaFormaCobro)
|
|
492
700
|
], Poliza.prototype, "formaCobroRenovacion", void 0);
|
|
493
701
|
__decorate([
|
|
494
|
-
(0, swagger_1.ApiProperty)({
|
|
702
|
+
(0, swagger_1.ApiProperty)({
|
|
703
|
+
type: () => agente_intermediario_entity_1.AgenteIntermediario,
|
|
704
|
+
description: "Agente Intermediary associated with the policy",
|
|
705
|
+
required: false,
|
|
706
|
+
}),
|
|
495
707
|
(0, typeorm_1.ManyToOne)(() => agente_intermediario_entity_1.AgenteIntermediario, {
|
|
496
708
|
onDelete: "SET NULL",
|
|
497
709
|
onUpdate: "CASCADE",
|
|
@@ -500,7 +712,11 @@ __decorate([
|
|
|
500
712
|
__metadata("design:type", agente_intermediario_entity_1.AgenteIntermediario)
|
|
501
713
|
], Poliza.prototype, "agenteIntermediario", void 0);
|
|
502
714
|
__decorate([
|
|
503
|
-
(0, swagger_1.ApiProperty)({
|
|
715
|
+
(0, swagger_1.ApiProperty)({
|
|
716
|
+
type: () => agente_intermediario_entity_1.AgenteIntermediario,
|
|
717
|
+
description: "Agente Intermediary associated with the policy",
|
|
718
|
+
required: false,
|
|
719
|
+
}),
|
|
504
720
|
(0, typeorm_1.ManyToOne)(() => agente_intermediario_entity_1.AgenteIntermediario, {
|
|
505
721
|
onDelete: "SET NULL",
|
|
506
722
|
onUpdate: "CASCADE",
|
|
@@ -509,7 +725,11 @@ __decorate([
|
|
|
509
725
|
__metadata("design:type", agente_intermediario_entity_1.AgenteIntermediario)
|
|
510
726
|
], Poliza.prototype, "agenteIntermediarioRenovacion", void 0);
|
|
511
727
|
__decorate([
|
|
512
|
-
(0, swagger_1.ApiProperty)({
|
|
728
|
+
(0, swagger_1.ApiProperty)({
|
|
729
|
+
type: () => contact_entity_1.Contact,
|
|
730
|
+
description: "Contact associated with the policy",
|
|
731
|
+
required: false,
|
|
732
|
+
}),
|
|
513
733
|
(0, typeorm_1.ManyToOne)(() => contact_entity_1.Contact, {
|
|
514
734
|
onDelete: "SET NULL",
|
|
515
735
|
onUpdate: "CASCADE",
|
|
@@ -518,7 +738,10 @@ __decorate([
|
|
|
518
738
|
__metadata("design:type", contact_entity_1.Contact)
|
|
519
739
|
], Poliza.prototype, "contact", void 0);
|
|
520
740
|
__decorate([
|
|
521
|
-
(0, swagger_1.ApiProperty)({
|
|
741
|
+
(0, swagger_1.ApiProperty)({
|
|
742
|
+
type: () => [helpers_1.PolizaFile],
|
|
743
|
+
description: "Files associated with the policy",
|
|
744
|
+
}),
|
|
522
745
|
(0, typeorm_1.OneToMany)(() => helpers_1.PolizaFile, (polizaFile) => polizaFile.poliza, {
|
|
523
746
|
onDelete: "CASCADE",
|
|
524
747
|
onUpdate: "CASCADE",
|
|
@@ -526,7 +749,11 @@ __decorate([
|
|
|
526
749
|
__metadata("design:type", Array)
|
|
527
750
|
], Poliza.prototype, "files", void 0);
|
|
528
751
|
__decorate([
|
|
529
|
-
(0, swagger_1.ApiProperty)({
|
|
752
|
+
(0, swagger_1.ApiProperty)({
|
|
753
|
+
enum: enums_1.PolizaStatus,
|
|
754
|
+
description: "Status of the policy",
|
|
755
|
+
required: false,
|
|
756
|
+
}),
|
|
530
757
|
(0, typeorm_1.Column)({
|
|
531
758
|
type: "enum",
|
|
532
759
|
enum: enums_1.PolizaStatus,
|
|
@@ -535,7 +762,10 @@ __decorate([
|
|
|
535
762
|
__metadata("design:type", String)
|
|
536
763
|
], Poliza.prototype, "status", void 0);
|
|
537
764
|
__decorate([
|
|
538
|
-
(0, swagger_1.ApiProperty)({
|
|
765
|
+
(0, swagger_1.ApiProperty)({
|
|
766
|
+
type: () => [poliza_siniestro_entity_1.PolizaSiniestro],
|
|
767
|
+
description: "Claims associated with the policy",
|
|
768
|
+
}),
|
|
539
769
|
(0, typeorm_1.OneToMany)(() => poliza_siniestro_entity_1.PolizaSiniestro, (polizaSiniestro) => polizaSiniestro.poliza, {
|
|
540
770
|
onDelete: "CASCADE",
|
|
541
771
|
onUpdate: "CASCADE",
|
|
@@ -543,7 +773,11 @@ __decorate([
|
|
|
543
773
|
__metadata("design:type", Array)
|
|
544
774
|
], Poliza.prototype, "siniestros", void 0);
|
|
545
775
|
__decorate([
|
|
546
|
-
(0, swagger_1.ApiProperty)({
|
|
776
|
+
(0, swagger_1.ApiProperty)({
|
|
777
|
+
type: () => user_entity_1.User,
|
|
778
|
+
description: "User responsible of the policy",
|
|
779
|
+
required: false,
|
|
780
|
+
}),
|
|
547
781
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
548
782
|
onDelete: "SET NULL",
|
|
549
783
|
onUpdate: "CASCADE",
|
|
@@ -552,17 +786,29 @@ __decorate([
|
|
|
552
786
|
__metadata("design:type", user_entity_1.User)
|
|
553
787
|
], Poliza.prototype, "assignedBy", void 0);
|
|
554
788
|
__decorate([
|
|
555
|
-
(0, swagger_1.ApiProperty)({
|
|
789
|
+
(0, swagger_1.ApiProperty)({
|
|
790
|
+
type: String,
|
|
791
|
+
description: "Movement description of the policy",
|
|
792
|
+
required: false,
|
|
793
|
+
}),
|
|
556
794
|
(0, typeorm_1.Column)({ length: 255, nullable: true, name: "descripcion_movimiento" }),
|
|
557
795
|
__metadata("design:type", String)
|
|
558
796
|
], Poliza.prototype, "descripcionMovimiento", void 0);
|
|
559
797
|
__decorate([
|
|
560
|
-
(0, swagger_1.ApiProperty)({
|
|
798
|
+
(0, swagger_1.ApiProperty)({
|
|
799
|
+
type: String,
|
|
800
|
+
description: "Plan specifications of the policy",
|
|
801
|
+
required: false,
|
|
802
|
+
}),
|
|
561
803
|
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
562
804
|
__metadata("design:type", String)
|
|
563
805
|
], Poliza.prototype, "especificacionesPlan", void 0);
|
|
564
806
|
__decorate([
|
|
565
|
-
(0, swagger_1.ApiProperty)({
|
|
807
|
+
(0, swagger_1.ApiProperty)({
|
|
808
|
+
type: () => user_entity_1.User,
|
|
809
|
+
description: "Claim agent of the policy",
|
|
810
|
+
required: false,
|
|
811
|
+
}),
|
|
566
812
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
567
813
|
onDelete: "SET NULL",
|
|
568
814
|
onUpdate: "CASCADE",
|
|
@@ -571,7 +817,11 @@ __decorate([
|
|
|
571
817
|
__metadata("design:type", user_entity_1.User)
|
|
572
818
|
], Poliza.prototype, "agenteReclamo", void 0);
|
|
573
819
|
__decorate([
|
|
574
|
-
(0, swagger_1.ApiProperty)({
|
|
820
|
+
(0, swagger_1.ApiProperty)({
|
|
821
|
+
type: () => [user_entity_1.User],
|
|
822
|
+
description: "Observers of the Poliza",
|
|
823
|
+
required: false,
|
|
824
|
+
}),
|
|
575
825
|
(0, typeorm_1.ManyToMany)(() => user_entity_1.User, {
|
|
576
826
|
onDelete: "CASCADE",
|
|
577
827
|
onUpdate: "CASCADE",
|
|
@@ -580,7 +830,11 @@ __decorate([
|
|
|
580
830
|
__metadata("design:type", Array)
|
|
581
831
|
], Poliza.prototype, "observers", void 0);
|
|
582
832
|
__decorate([
|
|
583
|
-
(0, swagger_1.ApiProperty)({
|
|
833
|
+
(0, swagger_1.ApiProperty)({
|
|
834
|
+
type: () => user_entity_1.User,
|
|
835
|
+
description: "Reimbursement agent of the policy",
|
|
836
|
+
required: false,
|
|
837
|
+
}),
|
|
584
838
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
585
839
|
onDelete: "SET NULL",
|
|
586
840
|
onUpdate: "CASCADE",
|
|
@@ -589,7 +843,11 @@ __decorate([
|
|
|
589
843
|
__metadata("design:type", user_entity_1.User)
|
|
590
844
|
], Poliza.prototype, "agenteReembolso", void 0);
|
|
591
845
|
__decorate([
|
|
592
|
-
(0, swagger_1.ApiProperty)({
|
|
846
|
+
(0, swagger_1.ApiProperty)({
|
|
847
|
+
type: () => user_entity_1.User,
|
|
848
|
+
description: "Scheduling agent of the policy",
|
|
849
|
+
required: false,
|
|
850
|
+
}),
|
|
593
851
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
594
852
|
onDelete: "SET NULL",
|
|
595
853
|
onUpdate: "CASCADE",
|
|
@@ -598,7 +856,11 @@ __decorate([
|
|
|
598
856
|
__metadata("design:type", user_entity_1.User)
|
|
599
857
|
], Poliza.prototype, "agenteProgramaciones", void 0);
|
|
600
858
|
__decorate([
|
|
601
|
-
(0, swagger_1.ApiProperty)({
|
|
859
|
+
(0, swagger_1.ApiProperty)({
|
|
860
|
+
type: () => user_entity_1.User,
|
|
861
|
+
description: "Subsequent reimbursement agent of the policy",
|
|
862
|
+
required: false,
|
|
863
|
+
}),
|
|
602
864
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
603
865
|
onDelete: "SET NULL",
|
|
604
866
|
onUpdate: "CASCADE",
|
|
@@ -607,7 +869,11 @@ __decorate([
|
|
|
607
869
|
__metadata("design:type", user_entity_1.User)
|
|
608
870
|
], Poliza.prototype, "agenteReembolsoSubsecuente", void 0);
|
|
609
871
|
__decorate([
|
|
610
|
-
(0, swagger_1.ApiProperty)({
|
|
872
|
+
(0, swagger_1.ApiProperty)({
|
|
873
|
+
type: () => user_entity_1.User,
|
|
874
|
+
description: "Fund rescue agent of the policy",
|
|
875
|
+
required: false,
|
|
876
|
+
}),
|
|
611
877
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
612
878
|
onDelete: "SET NULL",
|
|
613
879
|
onUpdate: "CASCADE",
|
|
@@ -616,7 +882,11 @@ __decorate([
|
|
|
616
882
|
__metadata("design:type", user_entity_1.User)
|
|
617
883
|
], Poliza.prototype, "agenteRescateFondos", void 0);
|
|
618
884
|
__decorate([
|
|
619
|
-
(0, swagger_1.ApiProperty)({
|
|
885
|
+
(0, swagger_1.ApiProperty)({
|
|
886
|
+
type: () => user_entity_1.User,
|
|
887
|
+
description: "Health GMM agent of the policy",
|
|
888
|
+
required: false,
|
|
889
|
+
}),
|
|
620
890
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
621
891
|
onDelete: "SET NULL",
|
|
622
892
|
onUpdate: "CASCADE",
|
|
@@ -625,7 +895,11 @@ __decorate([
|
|
|
625
895
|
__metadata("design:type", user_entity_1.User)
|
|
626
896
|
], Poliza.prototype, "agenteGMM", void 0);
|
|
627
897
|
__decorate([
|
|
628
|
-
(0, swagger_1.ApiProperty)({
|
|
898
|
+
(0, swagger_1.ApiProperty)({
|
|
899
|
+
type: () => user_entity_1.User,
|
|
900
|
+
description: "Life insurance agent of the policy",
|
|
901
|
+
required: false,
|
|
902
|
+
}),
|
|
629
903
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
630
904
|
onDelete: "SET NULL",
|
|
631
905
|
onUpdate: "CASCADE",
|
|
@@ -634,7 +908,11 @@ __decorate([
|
|
|
634
908
|
__metadata("design:type", user_entity_1.User)
|
|
635
909
|
], Poliza.prototype, "agenteVida", void 0);
|
|
636
910
|
__decorate([
|
|
637
|
-
(0, swagger_1.ApiProperty)({
|
|
911
|
+
(0, swagger_1.ApiProperty)({
|
|
912
|
+
type: () => user_entity_1.User,
|
|
913
|
+
description: "Car insurance agent of the policy",
|
|
914
|
+
required: false,
|
|
915
|
+
}),
|
|
638
916
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
639
917
|
onDelete: "SET NULL",
|
|
640
918
|
onUpdate: "CASCADE",
|
|
@@ -643,17 +921,25 @@ __decorate([
|
|
|
643
921
|
__metadata("design:type", user_entity_1.User)
|
|
644
922
|
], Poliza.prototype, "agenteAutos", void 0);
|
|
645
923
|
__decorate([
|
|
646
|
-
(0, swagger_1.ApiProperty)({
|
|
924
|
+
(0, swagger_1.ApiProperty)({
|
|
925
|
+
type: String,
|
|
926
|
+
description: "Payment referral date of the policy",
|
|
927
|
+
required: false,
|
|
928
|
+
}),
|
|
647
929
|
(0, typeorm_1.Column)({ name: "fecha_referida_pago", nullable: true }),
|
|
648
930
|
__metadata("design:type", String)
|
|
649
931
|
], Poliza.prototype, "fechaReferidaPago", void 0);
|
|
650
932
|
__decorate([
|
|
651
|
-
(0, swagger_1.ApiProperty)({
|
|
933
|
+
(0, swagger_1.ApiProperty)({
|
|
934
|
+
type: String,
|
|
935
|
+
description: "Payment referral date of the policy (Renovacion)",
|
|
936
|
+
required: false,
|
|
937
|
+
}),
|
|
652
938
|
(0, typeorm_1.Column)({ name: "fecha_referida_pago_renovacion", nullable: true }),
|
|
653
939
|
__metadata("design:type", String)
|
|
654
940
|
], Poliza.prototype, "fechaReferidaPagoRenovacion", void 0);
|
|
655
941
|
__decorate([
|
|
656
|
-
(0, swagger_1.ApiProperty)({ type: () => [receipt_entity_1.Receipt], description:
|
|
942
|
+
(0, swagger_1.ApiProperty)({ type: () => [receipt_entity_1.Receipt], description: "Receipts" }),
|
|
657
943
|
(0, typeorm_1.OneToMany)(() => receipt_entity_1.Receipt, (receipts) => receipts.poliza, {
|
|
658
944
|
onDelete: "CASCADE",
|
|
659
945
|
onUpdate: "CASCADE",
|
|
@@ -662,15 +948,22 @@ __decorate([
|
|
|
662
948
|
__metadata("design:type", Array)
|
|
663
949
|
], Poliza.prototype, "receipts", void 0);
|
|
664
950
|
__decorate([
|
|
665
|
-
(0, swagger_1.ApiProperty)({
|
|
666
|
-
|
|
951
|
+
(0, swagger_1.ApiProperty)({
|
|
952
|
+
type: () => [helpers_1.PolizaInsured],
|
|
953
|
+
description: "Beneficiaries associated with the policy",
|
|
954
|
+
}),
|
|
955
|
+
(0, typeorm_1.OneToMany)(() => helpers_1.PolizaInsured, (polizaInsuredPerson) => polizaInsuredPerson.poliza, {
|
|
667
956
|
onDelete: "CASCADE",
|
|
668
957
|
onUpdate: "CASCADE",
|
|
669
958
|
}),
|
|
670
959
|
__metadata("design:type", Array)
|
|
671
|
-
], Poliza.prototype, "
|
|
960
|
+
], Poliza.prototype, "insured", void 0);
|
|
672
961
|
__decorate([
|
|
673
|
-
(0, swagger_1.ApiProperty)({
|
|
962
|
+
(0, swagger_1.ApiProperty)({
|
|
963
|
+
type: () => [vehicle_entity_1.BeneficiaryVehicle],
|
|
964
|
+
description: "Vehicles",
|
|
965
|
+
required: false,
|
|
966
|
+
}),
|
|
674
967
|
(0, typeorm_1.ManyToMany)(() => vehicle_entity_1.BeneficiaryVehicle, {
|
|
675
968
|
onDelete: "CASCADE",
|
|
676
969
|
onUpdate: "CASCADE",
|
|
@@ -679,7 +972,11 @@ __decorate([
|
|
|
679
972
|
__metadata("design:type", Array)
|
|
680
973
|
], Poliza.prototype, "vehicles", void 0);
|
|
681
974
|
__decorate([
|
|
682
|
-
(0, swagger_1.ApiProperty)({
|
|
975
|
+
(0, swagger_1.ApiProperty)({
|
|
976
|
+
type: () => helpers_1.PolizaCategory,
|
|
977
|
+
description: "Categoría o Plan",
|
|
978
|
+
required: false,
|
|
979
|
+
}),
|
|
683
980
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaCategory, {
|
|
684
981
|
onDelete: "SET NULL",
|
|
685
982
|
onUpdate: "CASCADE",
|
|
@@ -688,7 +985,11 @@ __decorate([
|
|
|
688
985
|
__metadata("design:type", helpers_1.PolizaCategory)
|
|
689
986
|
], Poliza.prototype, "category", void 0);
|
|
690
987
|
__decorate([
|
|
691
|
-
(0, swagger_1.ApiProperty)({
|
|
988
|
+
(0, swagger_1.ApiProperty)({
|
|
989
|
+
type: () => helpers_1.PolizaSubramo,
|
|
990
|
+
description: "Sub-Ramo",
|
|
991
|
+
required: false,
|
|
992
|
+
}),
|
|
692
993
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaSubramo, {
|
|
693
994
|
onDelete: "SET NULL",
|
|
694
995
|
onUpdate: "CASCADE",
|
|
@@ -697,7 +998,11 @@ __decorate([
|
|
|
697
998
|
__metadata("design:type", helpers_1.PolizaSubramo)
|
|
698
999
|
], Poliza.prototype, "subramo", void 0);
|
|
699
1000
|
__decorate([
|
|
700
|
-
(0, swagger_1.ApiProperty)({
|
|
1001
|
+
(0, swagger_1.ApiProperty)({
|
|
1002
|
+
type: () => helpers_1.PolizaSubramo,
|
|
1003
|
+
description: "Sub-Ramo Salud",
|
|
1004
|
+
required: false,
|
|
1005
|
+
}),
|
|
701
1006
|
(0, typeorm_1.ManyToOne)(() => helpers_1.PolizaSubramo, {
|
|
702
1007
|
onDelete: "SET NULL",
|
|
703
1008
|
onUpdate: "CASCADE",
|
|
@@ -708,22 +1013,32 @@ __decorate([
|
|
|
708
1013
|
__decorate([
|
|
709
1014
|
(0, swagger_1.ApiProperty)({
|
|
710
1015
|
type: Object,
|
|
711
|
-
description:
|
|
712
|
-
required: false
|
|
1016
|
+
description: "Additional metadata for the poliza",
|
|
1017
|
+
required: false,
|
|
713
1018
|
}),
|
|
714
1019
|
(0, typeorm_1.Column)({
|
|
715
1020
|
type: "simple-json",
|
|
716
|
-
nullable: true
|
|
1021
|
+
nullable: true,
|
|
717
1022
|
}),
|
|
718
1023
|
__metadata("design:type", Object)
|
|
719
1024
|
], Poliza.prototype, "metadata", void 0);
|
|
720
1025
|
__decorate([
|
|
721
|
-
(0, swagger_1.ApiProperty)({
|
|
722
|
-
|
|
1026
|
+
(0, swagger_1.ApiProperty)({
|
|
1027
|
+
type: () => [helpers_1.TaskCRM],
|
|
1028
|
+
description: "Tasks associated with the poliza",
|
|
1029
|
+
}),
|
|
1030
|
+
(0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, (task) => task.poliza, {
|
|
1031
|
+
cascade: true,
|
|
1032
|
+
onDelete: "CASCADE",
|
|
1033
|
+
}),
|
|
723
1034
|
__metadata("design:type", Array)
|
|
724
1035
|
], Poliza.prototype, "tasks", void 0);
|
|
725
1036
|
__decorate([
|
|
726
|
-
(0, swagger_1.ApiProperty)({
|
|
1037
|
+
(0, swagger_1.ApiProperty)({
|
|
1038
|
+
type: () => user_entity_1.User,
|
|
1039
|
+
description: "User who created the comment",
|
|
1040
|
+
required: false,
|
|
1041
|
+
}),
|
|
727
1042
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
728
1043
|
onDelete: "SET NULL",
|
|
729
1044
|
onUpdate: "CASCADE",
|
|
@@ -733,7 +1048,11 @@ __decorate([
|
|
|
733
1048
|
__metadata("design:type", user_entity_1.User)
|
|
734
1049
|
], Poliza.prototype, "createdBy", void 0);
|
|
735
1050
|
__decorate([
|
|
736
|
-
(0, swagger_1.ApiProperty)({
|
|
1051
|
+
(0, swagger_1.ApiProperty)({
|
|
1052
|
+
type: () => user_entity_1.User,
|
|
1053
|
+
description: "User who modified the comment",
|
|
1054
|
+
required: false,
|
|
1055
|
+
}),
|
|
737
1056
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
738
1057
|
onDelete: "SET NULL",
|
|
739
1058
|
onUpdate: "CASCADE",
|
|
@@ -743,7 +1062,11 @@ __decorate([
|
|
|
743
1062
|
__metadata("design:type", user_entity_1.User)
|
|
744
1063
|
], Poliza.prototype, "modifiedBy", void 0);
|
|
745
1064
|
__decorate([
|
|
746
|
-
(0, swagger_1.ApiProperty)({
|
|
1065
|
+
(0, swagger_1.ApiProperty)({
|
|
1066
|
+
type: () => receipt_sub_agente_entity_1.SubAgente,
|
|
1067
|
+
description: "Sub Agent associated with the poliza",
|
|
1068
|
+
required: false,
|
|
1069
|
+
}),
|
|
747
1070
|
(0, typeorm_1.ManyToOne)(() => receipt_sub_agente_entity_1.SubAgente, {
|
|
748
1071
|
onDelete: "SET NULL",
|
|
749
1072
|
onUpdate: "CASCADE",
|
|
@@ -752,8 +1075,11 @@ __decorate([
|
|
|
752
1075
|
__metadata("design:type", receipt_sub_agente_entity_1.SubAgente)
|
|
753
1076
|
], Poliza.prototype, "subAgente", void 0);
|
|
754
1077
|
__decorate([
|
|
755
|
-
(0, swagger_1.ApiProperty)({
|
|
756
|
-
|
|
1078
|
+
(0, swagger_1.ApiProperty)({
|
|
1079
|
+
type: () => [poliza_comment_entity_1.PolizaComment],
|
|
1080
|
+
description: "Comments on the poliza",
|
|
1081
|
+
}),
|
|
1082
|
+
(0, typeorm_1.OneToMany)(() => poliza_comment_entity_1.PolizaComment, (polizaComment) => polizaComment.poliza),
|
|
757
1083
|
(0, typeorm_1.JoinColumn)(),
|
|
758
1084
|
__metadata("design:type", Array)
|
|
759
1085
|
], Poliza.prototype, "comments", void 0);
|