easywork-common-lib 1.0.503 → 1.0.505
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/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/grpc/drive/leads.proto +114 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -16,23 +16,29 @@ const class_validator_1 = require("class-validator");
|
|
|
16
16
|
const typeorm_1 = require("typeorm");
|
|
17
17
|
let Role = class Role extends base_entity_1.EntityBase {
|
|
18
18
|
name;
|
|
19
|
+
displayName;
|
|
19
20
|
isDefault;
|
|
20
21
|
defaultMenuPermissions;
|
|
21
22
|
};
|
|
22
23
|
exports.Role = Role;
|
|
23
24
|
__decorate([
|
|
24
|
-
(0, swagger_1.ApiProperty)({ type: String, description:
|
|
25
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Name of the role", minLength: 3 }),
|
|
25
26
|
(0, class_validator_1.MinLength)(3),
|
|
26
27
|
(0, typeorm_1.Column)({ unique: true }),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], Role.prototype, "name", void 0);
|
|
29
30
|
__decorate([
|
|
30
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
31
|
+
(0, swagger_1.ApiProperty)({ type: String, description: "Display Name of the role" }),
|
|
32
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], Role.prototype, "displayName", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: "¿Is this the default role?" }),
|
|
31
37
|
(0, typeorm_1.Column)({ default: false }),
|
|
32
38
|
__metadata("design:type", Boolean)
|
|
33
39
|
], Role.prototype, "isDefault", void 0);
|
|
34
40
|
__decorate([
|
|
35
|
-
(0, swagger_1.ApiProperty)({ type: [String], description:
|
|
41
|
+
(0, swagger_1.ApiProperty)({ type: [String], description: "Default Menu Permissions" }),
|
|
36
42
|
(0, typeorm_1.Column)({ type: "varchar", array: true, nullable: true }),
|
|
37
43
|
__metadata("design:type", Array)
|
|
38
44
|
], Role.prototype, "defaultMenuPermissions", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAIlC,IAAI,CAAS;IAIb,SAAS,CAAU;IAInB,sBAAsB,CAAW;
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,gEAA4D;AAC5D,qDAA4C;AAC5C,qCAAyC;AAGlC,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,wBAAU;IAIlC,IAAI,CAAS;IAIb,WAAW,CAAU;IAIrB,SAAS,CAAU;IAInB,sBAAsB,CAAW;CAClC,CAAA;AAjBY,oBAAI;AAIf;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC5E,IAAA,2BAAS,EAAC,CAAC,CAAC;IACZ,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;kCACZ;AAIb;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACtE,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACN;AAIrB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,4BAA4B,EAAE,CAAC;IACzE,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;uCACR;AAInB;IAFC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,CAAC;IACxE,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACxB;eAhBtB,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAiBhB"}
|
|
@@ -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)(() => lead_entity_1.Lead, (lead) => lead.contact, {
|
|
433
|
+
onDelete: "SET NULL",
|
|
434
|
+
onUpdate: "CASCADE",
|
|
435
|
+
}),
|
|
436
|
+
(0, typeorm_1.JoinColumn)(),
|
|
437
|
+
__metadata("design:type", lead_entity_1.Lead)
|
|
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,yFAA6E;AAC7E,qFAAyE;AACzE,gDAAsC;AACtC,qCAUiB;AACjB,mDAAyC;AACzC,6CAA8C;AAC9C,+CAAqC;AACrC,yCAA0C;AAC1C,gGAAqF;AACrF,wCAAqC;AACrC,qEAA0D;AAGnD,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,wBAAU;IAOrC,QAAQ,CAAU;IAIlB,MAAM,CAAS;IAYf,UAAU,CAAa;IAQvB,MAAM,CAAU;IAShB,QAAQ,CAAU;IAQlB,IAAI,CAAU;IAQd,QAAQ,CAAU;IAQlB,UAAU,CAAU;IAYpB,OAAO,CAAsB;IAQ7B,GAAG,CAAU;IAQb,OAAO,CAAU;IAWjB,MAAM,CAAkB;IAWxB,MAAM,CAAkB;IAQxB,KAAK,CAAU;IAQf,SAAS,CAAQ;IAQjB,MAAM,CAAU;IAahB,IAAI,CAAc;IAalB,MAAM,CAAgB;IAYtB,UAAU,CAAQ;IAUlB,KAAK,CAAY;IAYjB,QAAQ,CAAQ;IAYhB,IAAI,CAAQ;IAQZ,SAAS,CAAa;IAQtB,IAAI,CAAU;IAQd,GAAG,CAAU;IAQb,KAAK,CAAU;IAQf,IAAI,CAAU;IAQd,YAAY,CAAU;IAQtB,OAAO,CAAU;IAQjB,MAAM,CAAW;IAQjB,iBAAiB,CAAU;IAU3B,OAAO,CAAY;IAanB,SAAS,CAAQ;IAajB,UAAU,CAAQ;IAQlB,QAAQ,CAAmB;IAa3B,IAAI,CAAQ;CACb,CAAA;AApVY,0BAAO;AAOlB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,MAAM;QACZ,WAAW,EAAE,0BAA0B;QACvC,QAA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AAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,oBAAU,GAAE;8BACA,kBAAI;2CAAC;AAQlB;IANC,IAAA,qBAAW,EAAC;QACX,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,uCAAc,CAAC;QAC5B,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"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package leads;
|
|
4
|
+
|
|
5
|
+
// Definición del mensaje principal para crear un Lead
|
|
6
|
+
message CreateLeadRequest {
|
|
7
|
+
// Representa la foto del lead
|
|
8
|
+
bytes photo = 1;
|
|
9
|
+
|
|
10
|
+
// Especifica el tipo de persona para el lead
|
|
11
|
+
PersonType typePerson = 2;
|
|
12
|
+
|
|
13
|
+
// Nombre del lead
|
|
14
|
+
string name = 3;
|
|
15
|
+
|
|
16
|
+
// Apellido del lead
|
|
17
|
+
string lastName = 4;
|
|
18
|
+
|
|
19
|
+
// Nombre completo del lead
|
|
20
|
+
string fullName = 5;
|
|
21
|
+
|
|
22
|
+
// Segundo nombre del lead
|
|
23
|
+
string secondName = 6;
|
|
24
|
+
|
|
25
|
+
// RFC del lead
|
|
26
|
+
string rfc = 7;
|
|
27
|
+
|
|
28
|
+
// Dirección del lead
|
|
29
|
+
string address = 8;
|
|
30
|
+
|
|
31
|
+
// Cargo del lead
|
|
32
|
+
string cargo = 9;
|
|
33
|
+
|
|
34
|
+
// Fecha de nacimiento del lead
|
|
35
|
+
string birthdate = 10;
|
|
36
|
+
|
|
37
|
+
// Género del lead
|
|
38
|
+
string gender = 11;
|
|
39
|
+
|
|
40
|
+
// CURP del lead
|
|
41
|
+
string curp = 12;
|
|
42
|
+
|
|
43
|
+
// CUA del lead
|
|
44
|
+
string cua = 13;
|
|
45
|
+
|
|
46
|
+
// Puesto del lead
|
|
47
|
+
string post = 14;
|
|
48
|
+
|
|
49
|
+
// Observaciones sobre el lead
|
|
50
|
+
string observations = 15;
|
|
51
|
+
|
|
52
|
+
// ¿El lead es exportado?
|
|
53
|
+
bool export = 16;
|
|
54
|
+
|
|
55
|
+
// Descripción de la fuente del lead
|
|
56
|
+
string sourceDescription = 17;
|
|
57
|
+
|
|
58
|
+
// Compañía del lead
|
|
59
|
+
string company = 18;
|
|
60
|
+
|
|
61
|
+
// ID Tipo de Cliente
|
|
62
|
+
string typeId = 19;
|
|
63
|
+
|
|
64
|
+
// ID Origen del lead
|
|
65
|
+
string sourceId = 20;
|
|
66
|
+
|
|
67
|
+
// Números de teléfono asociados con el lead
|
|
68
|
+
repeated PhoneDto phones = 21;
|
|
69
|
+
|
|
70
|
+
// Emails asociados con el lead
|
|
71
|
+
repeated EmailDto emails = 22;
|
|
72
|
+
|
|
73
|
+
// Códigos de aseguradora asociados con el lead
|
|
74
|
+
repeated CodigoDto codigos = 23;
|
|
75
|
+
|
|
76
|
+
// ID del usuario asignado al lead
|
|
77
|
+
string assignedById = 24;
|
|
78
|
+
|
|
79
|
+
// ID del usuario observador
|
|
80
|
+
string observerId = 25;
|
|
81
|
+
|
|
82
|
+
// Monto de la cotización
|
|
83
|
+
double quoteAmount = 26;
|
|
84
|
+
|
|
85
|
+
// ID de la moneda de la cotización
|
|
86
|
+
string quoteCurrencyId = 27;
|
|
87
|
+
|
|
88
|
+
// IDs de los archivos
|
|
89
|
+
repeated string filesIds = 28;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Definición del enum PersonType
|
|
93
|
+
enum PersonType {
|
|
94
|
+
FISICA = 0;
|
|
95
|
+
MORAL = 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Definición de PhoneDto
|
|
99
|
+
message PhoneDto {
|
|
100
|
+
string number = 1;
|
|
101
|
+
string relation = 2;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Definición de EmailDto
|
|
105
|
+
message EmailDto {
|
|
106
|
+
string email = 1;
|
|
107
|
+
string relation = 2;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Definición de CodigoDto
|
|
111
|
+
message CodigoDto {
|
|
112
|
+
string codigo = 1;
|
|
113
|
+
string insuranceId = 2;
|
|
114
|
+
}
|