easywork-common-lib 1.0.522 → 1.0.524
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/constants/app.contants.d.ts +1 -0
- package/dist/common/constants/app.contants.js +29 -28
- package/dist/common/constants/app.contants.js.map +1 -1
- package/dist/common/constants/index.d.ts +1 -0
- package/dist/common/constants/index.js +1 -0
- package/dist/common/constants/index.js.map +1 -1
- package/dist/common/constants/string.constant.d.ts +5 -0
- package/dist/common/constants/string.constant.js +41 -0
- package/dist/common/constants/string.constant.js.map +1 -0
- package/dist/common/enums/notification.enum.d.ts +2 -1
- package/dist/common/enums/notification.enum.js +1 -0
- package/dist/common/enums/notification.enum.js.map +1 -1
- package/dist/common/enums/sales.enum.d.ts +5 -0
- package/dist/common/enums/sales.enum.js +7 -1
- package/dist/common/enums/sales.enum.js.map +1 -1
- package/dist/common/enums/tools.enum.d.ts +7 -0
- package/dist/common/enums/tools.enum.js +9 -1
- package/dist/common/enums/tools.enum.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/index.d.ts +0 -1
- package/dist/entities/helpers/sales/poliza/index.js +0 -1
- package/dist/entities/helpers/sales/poliza/index.js.map +1 -1
- package/dist/entities/role.entity.d.ts +1 -0
- package/dist/entities/role.entity.js +9 -3
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/sales/contact.entity.d.ts +1 -0
- package/dist/entities/sales/contact.entity.js +177 -38
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.d.ts +7 -21
- package/dist/entities/sales/poliza.entity.js +41 -193
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/dist/entities/tools/calendar/event.entity.js +54 -19
- package/dist/entities/tools/calendar/event.entity.js.map +1 -1
- package/dist/entities/tools/task.entity.d.ts +2 -0
- package/dist/entities/tools/task.entity.js +116 -29
- package/dist/entities/tools/task.entity.js.map +1 -1
- package/dist/entities/user.entity.d.ts +6 -1
- package/dist/entities/user.entity.js +86 -23
- package/dist/entities/user.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +45 -1
- package/dist/grpc/drive/leads.proto +114 -0
- package/dist/modules/queue/notifiers/calendar.notifier.d.ts +8 -0
- package/dist/modules/queue/notifiers/calendar.notifier.js +44 -1
- package/dist/modules/queue/notifiers/calendar.notifier.js.map +1 -1
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -60,10 +60,15 @@ let Contact = class Contact extends base_entity_1.EntityBase {
|
|
|
60
60
|
createdBy;
|
|
61
61
|
modifiedBy;
|
|
62
62
|
comments;
|
|
63
|
+
user;
|
|
63
64
|
};
|
|
64
65
|
exports.Contact = Contact;
|
|
65
66
|
__decorate([
|
|
66
|
-
(0, swagger_1.ApiProperty)({
|
|
67
|
+
(0, swagger_1.ApiProperty)({
|
|
68
|
+
type: Number,
|
|
69
|
+
description: "Bitrix ID of the contact",
|
|
70
|
+
required: false,
|
|
71
|
+
}),
|
|
67
72
|
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
68
73
|
__metadata("design:type", Number)
|
|
69
74
|
], Contact.prototype, "idBitrix", void 0);
|
|
@@ -75,43 +80,66 @@ __decorate([
|
|
|
75
80
|
__decorate([
|
|
76
81
|
(0, swagger_1.ApiProperty)({
|
|
77
82
|
enum: common_1.PersonType,
|
|
78
|
-
description:
|
|
79
|
-
default: common_1.PersonType.FISICA
|
|
83
|
+
description: "Type of person",
|
|
84
|
+
default: common_1.PersonType.FISICA,
|
|
80
85
|
}),
|
|
81
86
|
(0, typeorm_1.Column)({
|
|
82
87
|
type: "enum",
|
|
83
88
|
enum: common_1.PersonType,
|
|
84
|
-
default: common_1.PersonType.FISICA
|
|
89
|
+
default: common_1.PersonType.FISICA,
|
|
85
90
|
}),
|
|
86
91
|
__metadata("design:type", String)
|
|
87
92
|
], Contact.prototype, "typePerson", void 0);
|
|
88
93
|
__decorate([
|
|
89
|
-
(0, swagger_1.ApiProperty)({
|
|
94
|
+
(0, swagger_1.ApiProperty)({
|
|
95
|
+
type: String,
|
|
96
|
+
description: "Code of the contact",
|
|
97
|
+
required: false,
|
|
98
|
+
}),
|
|
90
99
|
(0, typeorm_1.Column)({ name: "codigo", length: 100, nullable: true }),
|
|
91
100
|
__metadata("design:type", String)
|
|
92
101
|
], Contact.prototype, "codigo", void 0);
|
|
93
102
|
__decorate([
|
|
94
|
-
(0, swagger_1.ApiProperty)({
|
|
103
|
+
(0, swagger_1.ApiProperty)({
|
|
104
|
+
type: String,
|
|
105
|
+
description: "Full name of the contact",
|
|
106
|
+
required: false,
|
|
107
|
+
}),
|
|
95
108
|
(0, typeorm_1.Column)({ name: "full_name", length: 255, nullable: true }),
|
|
96
109
|
__metadata("design:type", String)
|
|
97
110
|
], Contact.prototype, "fullName", void 0);
|
|
98
111
|
__decorate([
|
|
99
|
-
(0, swagger_1.ApiProperty)({
|
|
112
|
+
(0, swagger_1.ApiProperty)({
|
|
113
|
+
type: String,
|
|
114
|
+
description: "First name of the contact",
|
|
115
|
+
required: false,
|
|
116
|
+
}),
|
|
100
117
|
(0, typeorm_1.Column)({ name: "name", length: 150, nullable: true }),
|
|
101
118
|
__metadata("design:type", String)
|
|
102
119
|
], Contact.prototype, "name", void 0);
|
|
103
120
|
__decorate([
|
|
104
|
-
(0, swagger_1.ApiProperty)({
|
|
121
|
+
(0, swagger_1.ApiProperty)({
|
|
122
|
+
type: String,
|
|
123
|
+
description: "Last name of the contact",
|
|
124
|
+
required: false,
|
|
125
|
+
}),
|
|
105
126
|
(0, typeorm_1.Column)({ name: "last_name", length: 150, nullable: true }),
|
|
106
127
|
__metadata("design:type", String)
|
|
107
128
|
], Contact.prototype, "lastName", void 0);
|
|
108
129
|
__decorate([
|
|
109
|
-
(0, swagger_1.ApiProperty)({
|
|
130
|
+
(0, swagger_1.ApiProperty)({
|
|
131
|
+
type: String,
|
|
132
|
+
description: "Second name of the contact",
|
|
133
|
+
required: false,
|
|
134
|
+
}),
|
|
110
135
|
(0, typeorm_1.Column)({ name: "second_name", length: 150, nullable: true }),
|
|
111
136
|
__metadata("design:type", String)
|
|
112
137
|
], Contact.prototype, "secondName", void 0);
|
|
113
138
|
__decorate([
|
|
114
|
-
(0, swagger_1.ApiProperty)({
|
|
139
|
+
(0, swagger_1.ApiProperty)({
|
|
140
|
+
type: () => [contact_insurance_entity_1.ContactInsurance],
|
|
141
|
+
description: "Codigos de aseguradoras",
|
|
142
|
+
}),
|
|
115
143
|
(0, typeorm_1.OneToMany)(() => contact_insurance_entity_1.ContactInsurance, (contactEmail) => contactEmail.contact, {
|
|
116
144
|
onDelete: "CASCADE",
|
|
117
145
|
onUpdate: "CASCADE",
|
|
@@ -120,17 +148,28 @@ __decorate([
|
|
|
120
148
|
__metadata("design:type", Array)
|
|
121
149
|
], Contact.prototype, "codigos", void 0);
|
|
122
150
|
__decorate([
|
|
123
|
-
(0, swagger_1.ApiProperty)({
|
|
151
|
+
(0, swagger_1.ApiProperty)({
|
|
152
|
+
type: String,
|
|
153
|
+
description: "RFC of the contact",
|
|
154
|
+
required: false,
|
|
155
|
+
}),
|
|
124
156
|
(0, typeorm_1.Column)({ name: "rfc", length: 100, nullable: true }),
|
|
125
157
|
__metadata("design:type", String)
|
|
126
158
|
], Contact.prototype, "rfc", void 0);
|
|
127
159
|
__decorate([
|
|
128
|
-
(0, swagger_1.ApiProperty)({
|
|
160
|
+
(0, swagger_1.ApiProperty)({
|
|
161
|
+
type: String,
|
|
162
|
+
description: "Address of the contact",
|
|
163
|
+
required: false,
|
|
164
|
+
}),
|
|
129
165
|
(0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
|
|
130
166
|
__metadata("design:type", String)
|
|
131
167
|
], Contact.prototype, "address", void 0);
|
|
132
168
|
__decorate([
|
|
133
|
-
(0, swagger_1.ApiProperty)({
|
|
169
|
+
(0, swagger_1.ApiProperty)({
|
|
170
|
+
type: () => [contact_phone_entity_1.ContactPhone],
|
|
171
|
+
description: "Phones associated with the contact",
|
|
172
|
+
}),
|
|
134
173
|
(0, typeorm_1.OneToMany)(() => contact_phone_entity_1.ContactPhone, (contactPhone) => contactPhone.contact, {
|
|
135
174
|
onDelete: "CASCADE",
|
|
136
175
|
onUpdate: "CASCADE",
|
|
@@ -139,7 +178,10 @@ __decorate([
|
|
|
139
178
|
__metadata("design:type", Array)
|
|
140
179
|
], Contact.prototype, "phones", void 0);
|
|
141
180
|
__decorate([
|
|
142
|
-
(0, swagger_1.ApiProperty)({
|
|
181
|
+
(0, swagger_1.ApiProperty)({
|
|
182
|
+
type: () => [contact_email_entity_1.ContactEmail],
|
|
183
|
+
description: "Emails associated with the contact",
|
|
184
|
+
}),
|
|
143
185
|
(0, typeorm_1.OneToMany)(() => contact_email_entity_1.ContactEmail, (contactEmail) => contactEmail.contact, {
|
|
144
186
|
onDelete: "CASCADE",
|
|
145
187
|
onUpdate: "CASCADE",
|
|
@@ -148,22 +190,38 @@ __decorate([
|
|
|
148
190
|
__metadata("design:type", Array)
|
|
149
191
|
], Contact.prototype, "emails", void 0);
|
|
150
192
|
__decorate([
|
|
151
|
-
(0, swagger_1.ApiProperty)({
|
|
193
|
+
(0, swagger_1.ApiProperty)({
|
|
194
|
+
type: String,
|
|
195
|
+
description: "Cargo of the contact",
|
|
196
|
+
required: false,
|
|
197
|
+
}),
|
|
152
198
|
(0, typeorm_1.Column)({ name: "cargo", length: 150, nullable: true }),
|
|
153
199
|
__metadata("design:type", String)
|
|
154
200
|
], Contact.prototype, "cargo", void 0);
|
|
155
201
|
__decorate([
|
|
156
|
-
(0, swagger_1.ApiProperty)({
|
|
202
|
+
(0, swagger_1.ApiProperty)({
|
|
203
|
+
type: Date,
|
|
204
|
+
description: "Birthdate of the contact",
|
|
205
|
+
required: false,
|
|
206
|
+
}),
|
|
157
207
|
(0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
|
|
158
208
|
__metadata("design:type", Date)
|
|
159
209
|
], Contact.prototype, "birthdate", void 0);
|
|
160
210
|
__decorate([
|
|
161
|
-
(0, swagger_1.ApiProperty)({
|
|
211
|
+
(0, swagger_1.ApiProperty)({
|
|
212
|
+
type: String,
|
|
213
|
+
description: "Gender of the contact",
|
|
214
|
+
required: false,
|
|
215
|
+
}),
|
|
162
216
|
(0, typeorm_1.Column)({ name: "gender", length: 10, nullable: true }),
|
|
163
217
|
__metadata("design:type", String)
|
|
164
218
|
], Contact.prototype, "gender", void 0);
|
|
165
219
|
__decorate([
|
|
166
|
-
(0, swagger_1.ApiProperty)({
|
|
220
|
+
(0, swagger_1.ApiProperty)({
|
|
221
|
+
type: () => client_types_entity_1.ClientType,
|
|
222
|
+
description: "Contact type",
|
|
223
|
+
required: true,
|
|
224
|
+
}),
|
|
167
225
|
(0, typeorm_1.ManyToOne)(() => client_types_entity_1.ClientType, {
|
|
168
226
|
onDelete: "SET NULL",
|
|
169
227
|
onUpdate: "CASCADE",
|
|
@@ -173,7 +231,11 @@ __decorate([
|
|
|
173
231
|
__metadata("design:type", client_types_entity_1.ClientType)
|
|
174
232
|
], Contact.prototype, "type", void 0);
|
|
175
233
|
__decorate([
|
|
176
|
-
(0, swagger_1.ApiProperty)({
|
|
234
|
+
(0, swagger_1.ApiProperty)({
|
|
235
|
+
type: () => client_sources_entity_1.ClientSource,
|
|
236
|
+
description: "Contact source",
|
|
237
|
+
required: true,
|
|
238
|
+
}),
|
|
177
239
|
(0, typeorm_1.ManyToOne)(() => client_sources_entity_1.ClientSource, {
|
|
178
240
|
onDelete: "SET NULL",
|
|
179
241
|
onUpdate: "CASCADE",
|
|
@@ -183,7 +245,11 @@ __decorate([
|
|
|
183
245
|
__metadata("design:type", client_sources_entity_1.ClientSource)
|
|
184
246
|
], Contact.prototype, "source", void 0);
|
|
185
247
|
__decorate([
|
|
186
|
-
(0, swagger_1.ApiProperty)({
|
|
248
|
+
(0, swagger_1.ApiProperty)({
|
|
249
|
+
type: () => user_entity_1.User,
|
|
250
|
+
description: "User assigned to the contact",
|
|
251
|
+
required: false,
|
|
252
|
+
}),
|
|
187
253
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
188
254
|
onDelete: "SET NULL",
|
|
189
255
|
onUpdate: "CASCADE",
|
|
@@ -192,12 +258,22 @@ __decorate([
|
|
|
192
258
|
__metadata("design:type", user_entity_1.User)
|
|
193
259
|
], Contact.prototype, "assignedBy", void 0);
|
|
194
260
|
__decorate([
|
|
195
|
-
(0, swagger_1.ApiProperty)({
|
|
196
|
-
|
|
261
|
+
(0, swagger_1.ApiProperty)({
|
|
262
|
+
type: () => [helpers_1.TaskCRM],
|
|
263
|
+
description: "Tasks associated with the contact",
|
|
264
|
+
}),
|
|
265
|
+
(0, typeorm_1.OneToMany)(() => helpers_1.TaskCRM, (task) => task.contact, {
|
|
266
|
+
cascade: true,
|
|
267
|
+
onDelete: "CASCADE",
|
|
268
|
+
}),
|
|
197
269
|
__metadata("design:type", Array)
|
|
198
270
|
], Contact.prototype, "tasks", void 0);
|
|
199
271
|
__decorate([
|
|
200
|
-
(0, swagger_1.ApiProperty)({
|
|
272
|
+
(0, swagger_1.ApiProperty)({
|
|
273
|
+
type: () => user_entity_1.User,
|
|
274
|
+
description: "User observing the contact",
|
|
275
|
+
required: false,
|
|
276
|
+
}),
|
|
201
277
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
202
278
|
onDelete: "SET NULL",
|
|
203
279
|
onUpdate: "CASCADE",
|
|
@@ -206,7 +282,11 @@ __decorate([
|
|
|
206
282
|
__metadata("design:type", user_entity_1.User)
|
|
207
283
|
], Contact.prototype, "observer", void 0);
|
|
208
284
|
__decorate([
|
|
209
|
-
(0, swagger_1.ApiProperty)({
|
|
285
|
+
(0, swagger_1.ApiProperty)({
|
|
286
|
+
type: () => lead_entity_1.Lead,
|
|
287
|
+
description: "Lead associated with this contact",
|
|
288
|
+
required: false,
|
|
289
|
+
}),
|
|
210
290
|
(0, typeorm_1.OneToOne)(() => lead_entity_1.Lead, (lead) => lead.contact, {
|
|
211
291
|
onDelete: "CASCADE",
|
|
212
292
|
onUpdate: "CASCADE",
|
|
@@ -215,7 +295,7 @@ __decorate([
|
|
|
215
295
|
__metadata("design:type", lead_entity_1.Lead)
|
|
216
296
|
], Contact.prototype, "lead", void 0);
|
|
217
297
|
__decorate([
|
|
218
|
-
(0, swagger_1.ApiProperty)({ type: () => [Contact], description:
|
|
298
|
+
(0, swagger_1.ApiProperty)({ type: () => [Contact], description: "Contacts related" }),
|
|
219
299
|
(0, typeorm_1.ManyToMany)(() => Contact, {
|
|
220
300
|
onDelete: "CASCADE",
|
|
221
301
|
onUpdate: "CASCADE",
|
|
@@ -224,47 +304,82 @@ __decorate([
|
|
|
224
304
|
__metadata("design:type", Array)
|
|
225
305
|
], Contact.prototype, "relations", void 0);
|
|
226
306
|
__decorate([
|
|
227
|
-
(0, swagger_1.ApiProperty)({
|
|
307
|
+
(0, swagger_1.ApiProperty)({
|
|
308
|
+
type: String,
|
|
309
|
+
description: "CURP of the contact",
|
|
310
|
+
required: false,
|
|
311
|
+
}),
|
|
228
312
|
(0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
|
|
229
313
|
__metadata("design:type", String)
|
|
230
314
|
], Contact.prototype, "curp", void 0);
|
|
231
315
|
__decorate([
|
|
232
|
-
(0, swagger_1.ApiProperty)({
|
|
316
|
+
(0, swagger_1.ApiProperty)({
|
|
317
|
+
type: String,
|
|
318
|
+
description: "CUA of the contact",
|
|
319
|
+
required: false,
|
|
320
|
+
}),
|
|
233
321
|
(0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
|
|
234
322
|
__metadata("design:type", String)
|
|
235
323
|
], Contact.prototype, "cua", void 0);
|
|
236
324
|
__decorate([
|
|
237
|
-
(0, swagger_1.ApiProperty)({
|
|
325
|
+
(0, swagger_1.ApiProperty)({
|
|
326
|
+
type: String,
|
|
327
|
+
description: "Photo URL of the contact",
|
|
328
|
+
required: false,
|
|
329
|
+
}),
|
|
238
330
|
(0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
|
|
239
331
|
__metadata("design:type", String)
|
|
240
332
|
], Contact.prototype, "photo", void 0);
|
|
241
333
|
__decorate([
|
|
242
|
-
(0, swagger_1.ApiProperty)({
|
|
334
|
+
(0, swagger_1.ApiProperty)({
|
|
335
|
+
type: String,
|
|
336
|
+
description: "Post of the contact",
|
|
337
|
+
required: false,
|
|
338
|
+
}),
|
|
243
339
|
(0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
|
|
244
340
|
__metadata("design:type", String)
|
|
245
341
|
], Contact.prototype, "post", void 0);
|
|
246
342
|
__decorate([
|
|
247
|
-
(0, swagger_1.ApiProperty)({
|
|
343
|
+
(0, swagger_1.ApiProperty)({
|
|
344
|
+
type: String,
|
|
345
|
+
description: "Comments about the contact",
|
|
346
|
+
required: false,
|
|
347
|
+
}),
|
|
248
348
|
(0, typeorm_1.Column)({ name: "observations", type: "text", nullable: true }),
|
|
249
349
|
__metadata("design:type", String)
|
|
250
350
|
], Contact.prototype, "observations", void 0);
|
|
251
351
|
__decorate([
|
|
252
|
-
(0, swagger_1.ApiProperty)({
|
|
352
|
+
(0, swagger_1.ApiProperty)({
|
|
353
|
+
type: String,
|
|
354
|
+
description: "Company of the contact",
|
|
355
|
+
required: false,
|
|
356
|
+
}),
|
|
253
357
|
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
254
358
|
__metadata("design:type", String)
|
|
255
359
|
], Contact.prototype, "company", void 0);
|
|
256
360
|
__decorate([
|
|
257
|
-
(0, swagger_1.ApiProperty)({
|
|
361
|
+
(0, swagger_1.ApiProperty)({
|
|
362
|
+
type: Boolean,
|
|
363
|
+
description: "Is the contact exported?",
|
|
364
|
+
default: false,
|
|
365
|
+
}),
|
|
258
366
|
(0, typeorm_1.Column)({ name: "export", default: false }),
|
|
259
367
|
__metadata("design:type", Boolean)
|
|
260
368
|
], Contact.prototype, "export", void 0);
|
|
261
369
|
__decorate([
|
|
262
|
-
(0, swagger_1.ApiProperty)({
|
|
370
|
+
(0, swagger_1.ApiProperty)({
|
|
371
|
+
type: String,
|
|
372
|
+
description: "Source description of the contact",
|
|
373
|
+
required: false,
|
|
374
|
+
}),
|
|
263
375
|
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
264
376
|
__metadata("design:type", String)
|
|
265
377
|
], Contact.prototype, "sourceDescription", void 0);
|
|
266
378
|
__decorate([
|
|
267
|
-
(0, swagger_1.ApiProperty)({
|
|
379
|
+
(0, swagger_1.ApiProperty)({
|
|
380
|
+
type: () => [poliza_entity_1.Poliza],
|
|
381
|
+
description: "Polizas associated with the contact",
|
|
382
|
+
}),
|
|
268
383
|
(0, typeorm_1.OneToMany)(() => poliza_entity_1.Poliza, (poliza) => poliza.contact, {
|
|
269
384
|
onDelete: "CASCADE",
|
|
270
385
|
onUpdate: "CASCADE",
|
|
@@ -272,7 +387,11 @@ __decorate([
|
|
|
272
387
|
__metadata("design:type", Array)
|
|
273
388
|
], Contact.prototype, "polizas", void 0);
|
|
274
389
|
__decorate([
|
|
275
|
-
(0, swagger_1.ApiProperty)({
|
|
390
|
+
(0, swagger_1.ApiProperty)({
|
|
391
|
+
type: () => user_entity_1.User,
|
|
392
|
+
description: "User who created the contact",
|
|
393
|
+
required: false,
|
|
394
|
+
}),
|
|
276
395
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
277
396
|
onDelete: "SET NULL",
|
|
278
397
|
onUpdate: "CASCADE",
|
|
@@ -282,7 +401,11 @@ __decorate([
|
|
|
282
401
|
__metadata("design:type", user_entity_1.User)
|
|
283
402
|
], Contact.prototype, "createdBy", void 0);
|
|
284
403
|
__decorate([
|
|
285
|
-
(0, swagger_1.ApiProperty)({
|
|
404
|
+
(0, swagger_1.ApiProperty)({
|
|
405
|
+
type: () => user_entity_1.User,
|
|
406
|
+
description: "User who modified the contact",
|
|
407
|
+
required: false,
|
|
408
|
+
}),
|
|
286
409
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
287
410
|
onDelete: "SET NULL",
|
|
288
411
|
onUpdate: "CASCADE",
|
|
@@ -292,11 +415,27 @@ __decorate([
|
|
|
292
415
|
__metadata("design:type", user_entity_1.User)
|
|
293
416
|
], Contact.prototype, "modifiedBy", void 0);
|
|
294
417
|
__decorate([
|
|
295
|
-
(0, swagger_1.ApiProperty)({
|
|
296
|
-
|
|
418
|
+
(0, swagger_1.ApiProperty)({
|
|
419
|
+
type: () => [contact_comment_entity_1.ContactComment],
|
|
420
|
+
description: "Comments on the contact",
|
|
421
|
+
}),
|
|
422
|
+
(0, typeorm_1.OneToMany)(() => contact_comment_entity_1.ContactComment, (contactComment) => contactComment.contact),
|
|
297
423
|
(0, typeorm_1.JoinColumn)(),
|
|
298
424
|
__metadata("design:type", Array)
|
|
299
425
|
], Contact.prototype, "comments", void 0);
|
|
426
|
+
__decorate([
|
|
427
|
+
(0, swagger_1.ApiProperty)({
|
|
428
|
+
type: () => user_entity_1.User,
|
|
429
|
+
description: "User associated with the contact",
|
|
430
|
+
required: false,
|
|
431
|
+
}),
|
|
432
|
+
(0, typeorm_1.OneToOne)(() => user_entity_1.User, (user) => user.contact, {
|
|
433
|
+
onDelete: "SET NULL",
|
|
434
|
+
onUpdate: "CASCADE",
|
|
435
|
+
}),
|
|
436
|
+
(0, typeorm_1.JoinColumn)(),
|
|
437
|
+
__metadata("design:type", user_entity_1.User)
|
|
438
|
+
], Contact.prototype, "user", void 0);
|
|
300
439
|
exports.Contact = Contact = __decorate([
|
|
301
440
|
(0, typeorm_1.Entity)()
|
|
302
441
|
], Contact);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mEAA+D;AAC/D,wFAA6E;AAC7E,wFAA6E;AAC7E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5B,WAAW,EAAE,yBAAyB;KACvC,CAAC;IACD,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,uCAAc,EAAE,CAAC,cAAc,EAAE,EAAE,CAAC,cAAc,CAAC,OAAO,CAAC;IAC3E,IAAA,oBAAU,GAAE;;yCACc;AAa3B;IAVC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,kBAAI;QAChB,WAAW,EAAE,kCAAkC;QAC/C,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,kBAAQ,EAAC,GAAG,EAAE,CAAC,kBAAI,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE;QAC5C,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;KACpB,CAAC;IACD,IAAA,oBAAU,GAAE;8BACN,kBAAI;qCAAC;kBAnVD,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAoVnB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { User } from "../user.entity";
|
|
2
2
|
import { Contact } from "./contact.entity";
|
|
3
|
-
import { PolizaInsurance, PolizaFormaCobro, PolizaType,
|
|
3
|
+
import { PolizaInsurance, PolizaFormaCobro, PolizaType, PolizaFrecuenciaPago, PolizaCategory, PolizaSubramo, PolizaConductoPago, TaskCRM, PolizaInsured } from "../helpers";
|
|
4
4
|
import { PolizaSiniestro } from "./poliza_siniestro.entity";
|
|
5
|
-
import { PolizaDiasPlazoPago, PolizaStatus } from "../../common/enums";
|
|
5
|
+
import { PolizaDiasPlazoPago, PolizaOperacion, PolizaStatus } from "../../common/enums";
|
|
6
6
|
import { EntityBase } from "../../common/database/base.entity";
|
|
7
7
|
import { Currency } from "../currency.entity";
|
|
8
8
|
import { Receipt } from "./receipt.entity";
|
|
@@ -10,15 +10,14 @@ import { BeneficiaryVehicle } from "./beneficiarios/vehicle.entity";
|
|
|
10
10
|
import { AgenteIntermediario } from "./agente-intermediario.entity";
|
|
11
11
|
import { SubAgente } from "./receipt-sub-agente.entity";
|
|
12
12
|
import { PolizaComment } from "./poliza-comment.entity";
|
|
13
|
+
import { File } from "../../entities/drive";
|
|
13
14
|
export declare class Poliza extends EntityBase {
|
|
14
15
|
idBitrix: number;
|
|
16
|
+
operacion: PolizaOperacion;
|
|
17
|
+
name: string;
|
|
15
18
|
poliza: string;
|
|
16
|
-
polizaRenovacion: string;
|
|
17
|
-
tipoConexion: string;
|
|
18
19
|
version: number;
|
|
19
|
-
versionRenovacion: number;
|
|
20
20
|
renovacion: number;
|
|
21
|
-
repeated?: boolean;
|
|
22
21
|
renewal?: boolean;
|
|
23
22
|
vigenciaDesde: Date;
|
|
24
23
|
vigenciaHasta: Date;
|
|
@@ -27,7 +26,6 @@ export declare class Poliza extends EntityBase {
|
|
|
27
26
|
vigenciaDesdeRenovacion: Date;
|
|
28
27
|
vigenciaHastaRenovacion: Date;
|
|
29
28
|
fechaEmision: Date;
|
|
30
|
-
fechaEmisionRenovacion: Date;
|
|
31
29
|
description: string;
|
|
32
30
|
primaNeta?: number;
|
|
33
31
|
recargoFraccionado?: number;
|
|
@@ -45,7 +43,6 @@ export declare class Poliza extends EntityBase {
|
|
|
45
43
|
ivaMovimiento?: number;
|
|
46
44
|
importePagarMovimiento?: number;
|
|
47
45
|
frecuenciaCobro: PolizaFrecuenciaPago;
|
|
48
|
-
frecuenciaCobroRenovacion: PolizaFrecuenciaPago;
|
|
49
46
|
currency: Currency;
|
|
50
47
|
plazoPago: PolizaDiasPlazoPago;
|
|
51
48
|
expeditionDate: Date;
|
|
@@ -54,20 +51,11 @@ export declare class Poliza extends EntityBase {
|
|
|
54
51
|
typeMovement: string;
|
|
55
52
|
movementDescription: string;
|
|
56
53
|
agentText: string;
|
|
57
|
-
name: string;
|
|
58
54
|
closed?: boolean;
|
|
59
|
-
opportunity?: number;
|
|
60
|
-
isManualOpportunity?: boolean;
|
|
61
55
|
taxValue?: number;
|
|
62
|
-
opportunityAccount?: number;
|
|
63
|
-
taxValueAccount?: number;
|
|
64
|
-
accountCurrencyId?: string;
|
|
65
|
-
probability?: number;
|
|
66
56
|
observations?: string;
|
|
67
57
|
eventDate?: Date;
|
|
68
|
-
eventId?: string;
|
|
69
58
|
eventDescription?: string;
|
|
70
|
-
exchRate?: number;
|
|
71
59
|
product?: string;
|
|
72
60
|
source: string;
|
|
73
61
|
sourceDescription: string;
|
|
@@ -75,11 +63,10 @@ export declare class Poliza extends EntityBase {
|
|
|
75
63
|
type: PolizaType;
|
|
76
64
|
conductoPago: PolizaConductoPago;
|
|
77
65
|
formaCobro: PolizaFormaCobro;
|
|
78
|
-
formaCobroRenovacion: PolizaFormaCobro;
|
|
79
66
|
agenteIntermediario: AgenteIntermediario;
|
|
80
|
-
agenteIntermediarioRenovacion: AgenteIntermediario;
|
|
81
67
|
contact: Contact;
|
|
82
|
-
|
|
68
|
+
file?: File;
|
|
69
|
+
previousVersion?: Poliza;
|
|
83
70
|
status: PolizaStatus;
|
|
84
71
|
siniestros: PolizaSiniestro[];
|
|
85
72
|
assignedBy?: User;
|
|
@@ -95,7 +82,6 @@ export declare class Poliza extends EntityBase {
|
|
|
95
82
|
agenteVida?: User;
|
|
96
83
|
agenteAutos?: User;
|
|
97
84
|
fechaReferidaPago?: string;
|
|
98
|
-
fechaReferidaPagoRenovacion?: string;
|
|
99
85
|
receipts?: Receipt[];
|
|
100
86
|
insured?: PolizaInsured[];
|
|
101
87
|
vehicles?: BeneficiaryVehicle[];
|