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