easywork-common-lib 1.0.206 → 1.0.208
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/drive/file.entity.js +12 -2
- package/dist/entities/drive/file.entity.js.map +1 -1
- package/dist/entities/drive/folder.entity.js +7 -1
- package/dist/entities/drive/folder.entity.js.map +1 -1
- package/dist/entities/email.entity.js +3 -0
- package/dist/entities/email.entity.js.map +1 -1
- package/dist/entities/helpers/entity_file.entity.js +7 -0
- package/dist/entities/helpers/entity_file.entity.js.map +1 -1
- package/dist/entities/helpers/entity_folder.entity.js +7 -0
- package/dist/entities/helpers/entity_folder.entity.js.map +1 -1
- package/dist/entities/helpers/sales/contact/contact_email.entity.js +9 -2
- package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -1
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js +7 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -1
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js +3 -0
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +1 -1
- package/dist/entities/helpers/sales/contact/contact_types.entity.js +3 -0
- package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +2 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +3 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +2 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/lead_email.entity.js +9 -2
- package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -1
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js +9 -2
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +4 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +4 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +3 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +8 -1
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -1
- package/dist/entities/helpers/tools/task_crm.entity.js +9 -0
- package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -1
- package/dist/entities/notifications/notification.entity.js +27 -0
- package/dist/entities/notifications/notification.entity.js.map +1 -1
- package/dist/entities/notifications/push-token.entity.js +4 -0
- package/dist/entities/notifications/push-token.entity.js.map +1 -1
- package/dist/entities/otp-log.entity.js +5 -0
- package/dist/entities/otp-log.entity.js.map +1 -1
- package/dist/entities/permission.entity.js +4 -0
- package/dist/entities/permission.entity.js.map +1 -1
- package/dist/entities/phone.entity.js +3 -0
- package/dist/entities/phone.entity.js.map +1 -1
- package/dist/entities/profile.entity.js +6 -0
- package/dist/entities/profile.entity.js.map +1 -1
- package/dist/entities/role.entity.js +3 -0
- package/dist/entities/role.entity.js.map +1 -1
- package/dist/entities/sales/contact.entity.js +34 -0
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/lead.entity.js +42 -0
- package/dist/entities/sales/lead.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.js +60 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/dist/entities/sales/poliza_siniestro.entity.js +7 -0
- package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -1
- package/dist/entities/tag.entity.js +4 -0
- package/dist/entities/tag.entity.js.map +1 -1
- package/dist/entities/tools/task-comment.entity.js +5 -0
- package/dist/entities/tools/task-comment.entity.js.map +1 -1
- package/dist/entities/tools/task-list-field.js +4 -0
- package/dist/entities/tools/task-list-field.js.map +1 -1
- package/dist/entities/tools/task.entity.d.ts +1 -1
- package/dist/entities/tools/task.entity.js +28 -1
- package/dist/entities/tools/task.entity.js.map +1 -1
- package/dist/entities/user.entity.js +16 -0
- package/dist/entities/user.entity.js.map +1 -1
- package/package.json +2 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -18,6 +18,7 @@ const contact_types_entity_1 = require("../helpers/sales/contact/contact_types.e
|
|
|
18
18
|
const user_entity_1 = require("../user.entity");
|
|
19
19
|
const typeorm_1 = require("typeorm");
|
|
20
20
|
const poliza_entity_1 = require("./poliza.entity");
|
|
21
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
21
22
|
let Contact = class Contact extends database_1.BaseEntityWithUser {
|
|
22
23
|
curp;
|
|
23
24
|
idBitrix;
|
|
@@ -55,110 +56,137 @@ let Contact = class Contact extends database_1.BaseEntityWithUser {
|
|
|
55
56
|
};
|
|
56
57
|
exports.Contact = Contact;
|
|
57
58
|
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CURP of the contact', required: false }),
|
|
58
60
|
(0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
|
|
59
61
|
__metadata("design:type", String)
|
|
60
62
|
], Contact.prototype, "curp", void 0);
|
|
61
63
|
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Bitrix ID of the contact', required: false }),
|
|
62
65
|
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
63
66
|
__metadata("design:type", Number)
|
|
64
67
|
], Contact.prototype, "idBitrix", void 0);
|
|
65
68
|
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the contact', required: false }),
|
|
66
70
|
(0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
|
|
67
71
|
__metadata("design:type", String)
|
|
68
72
|
], Contact.prototype, "cua", void 0);
|
|
69
73
|
__decorate([
|
|
74
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Cargo of the contact', required: false }),
|
|
70
75
|
(0, typeorm_1.Column)({ name: "cargo", length: 50, nullable: true }),
|
|
71
76
|
__metadata("design:type", String)
|
|
72
77
|
], Contact.prototype, "cargo", void 0);
|
|
73
78
|
__decorate([
|
|
79
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the contact', required: false }),
|
|
74
80
|
(0, typeorm_1.Column)({ name: "full_name", length: 100, nullable: true }),
|
|
75
81
|
__metadata("design:type", String)
|
|
76
82
|
], Contact.prototype, "fullName", void 0);
|
|
77
83
|
__decorate([
|
|
84
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'First name of the contact', required: false }),
|
|
78
85
|
(0, typeorm_1.Column)({ name: "name", length: 50, nullable: true }),
|
|
79
86
|
__metadata("design:type", String)
|
|
80
87
|
], Contact.prototype, "name", void 0);
|
|
81
88
|
__decorate([
|
|
89
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Last name of the contact', required: false }),
|
|
82
90
|
(0, typeorm_1.Column)({ name: "last_name", length: 50, nullable: true }),
|
|
83
91
|
__metadata("design:type", String)
|
|
84
92
|
], Contact.prototype, "lastName", void 0);
|
|
85
93
|
__decorate([
|
|
94
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Second name of the contact', required: false }),
|
|
86
95
|
(0, typeorm_1.Column)({ name: "second_name", length: 50, nullable: true }),
|
|
87
96
|
__metadata("design:type", String)
|
|
88
97
|
], Contact.prototype, "secondName", void 0);
|
|
89
98
|
__decorate([
|
|
99
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Photo URL of the contact', required: false }),
|
|
90
100
|
(0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
|
|
91
101
|
__metadata("design:type", String)
|
|
92
102
|
], Contact.prototype, "photo", void 0);
|
|
93
103
|
__decorate([
|
|
104
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Post of the contact', required: false }),
|
|
94
105
|
(0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
|
|
95
106
|
__metadata("design:type", String)
|
|
96
107
|
], Contact.prototype, "post", void 0);
|
|
97
108
|
__decorate([
|
|
109
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Address of the contact', required: false }),
|
|
98
110
|
(0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
|
|
99
111
|
__metadata("design:type", String)
|
|
100
112
|
], Contact.prototype, "address", void 0);
|
|
101
113
|
__decorate([
|
|
114
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Comments about the contact', required: false }),
|
|
102
115
|
(0, typeorm_1.Column)({ name: "comments", type: "text", nullable: true }),
|
|
103
116
|
__metadata("design:type", String)
|
|
104
117
|
], Contact.prototype, "comments", void 0);
|
|
105
118
|
__decorate([
|
|
119
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Lead of the contact', required: false }),
|
|
106
120
|
(0, typeorm_1.Column)({ name: "lead", nullable: true }),
|
|
107
121
|
__metadata("design:type", String)
|
|
108
122
|
], Contact.prototype, "lead", void 0);
|
|
109
123
|
__decorate([
|
|
124
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the contact exported?', default: false }),
|
|
110
125
|
(0, typeorm_1.Column)({ name: "export", default: false }),
|
|
111
126
|
__metadata("design:type", Boolean)
|
|
112
127
|
], Contact.prototype, "export", void 0);
|
|
113
128
|
__decorate([
|
|
129
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Originator ID of the contact', required: false }),
|
|
114
130
|
(0, typeorm_1.Column)({ name: "originator_id", length: 255, nullable: true }),
|
|
115
131
|
__metadata("design:type", String)
|
|
116
132
|
], Contact.prototype, "originatorId", void 0);
|
|
117
133
|
__decorate([
|
|
134
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Origin ID of the contact', required: false }),
|
|
118
135
|
(0, typeorm_1.Column)({ name: "origin_id", length: 255, nullable: true }),
|
|
119
136
|
__metadata("design:type", String)
|
|
120
137
|
], Contact.prototype, "originId", void 0);
|
|
121
138
|
__decorate([
|
|
139
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Origin version of the contact', required: false }),
|
|
122
140
|
(0, typeorm_1.Column)({ name: "origin_version", length: 255, nullable: true }),
|
|
123
141
|
__metadata("design:type", String)
|
|
124
142
|
], Contact.prototype, "originVersion", void 0);
|
|
125
143
|
__decorate([
|
|
144
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Birthdate of the contact', required: false }),
|
|
126
145
|
(0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
|
|
127
146
|
__metadata("design:type", Date)
|
|
128
147
|
], Contact.prototype, "birthdate", void 0);
|
|
129
148
|
__decorate([
|
|
149
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Honorific of the contact', required: false }),
|
|
130
150
|
(0, typeorm_1.Column)({ name: "honorific", length: 128, nullable: true }),
|
|
131
151
|
__metadata("design:type", String)
|
|
132
152
|
], Contact.prototype, "honorific", void 0);
|
|
133
153
|
__decorate([
|
|
154
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the contact have a phone?', default: false }),
|
|
134
155
|
(0, typeorm_1.Column)({ name: "has_phone", default: false }),
|
|
135
156
|
__metadata("design:type", Boolean)
|
|
136
157
|
], Contact.prototype, "hasPhone", void 0);
|
|
137
158
|
__decorate([
|
|
159
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the contact have an email?', default: false }),
|
|
138
160
|
(0, typeorm_1.Column)({ name: "has_email", default: false }),
|
|
139
161
|
__metadata("design:type", Boolean)
|
|
140
162
|
], Contact.prototype, "hasEmail", void 0);
|
|
141
163
|
__decorate([
|
|
164
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the contact have IMOL?', default: false }),
|
|
142
165
|
(0, typeorm_1.Column)({ name: "has_imol", default: false }),
|
|
143
166
|
__metadata("design:type", Boolean)
|
|
144
167
|
], Contact.prototype, "hasImol", void 0);
|
|
145
168
|
__decorate([
|
|
169
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Face ID of the contact', required: false }),
|
|
146
170
|
(0, typeorm_1.Column)({ name: "face_id", nullable: true }),
|
|
147
171
|
__metadata("design:type", String)
|
|
148
172
|
], Contact.prototype, "faceId", void 0);
|
|
149
173
|
__decorate([
|
|
174
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the contact opened?', default: false }),
|
|
150
175
|
(0, typeorm_1.Column)({ name: "opened", default: false }),
|
|
151
176
|
__metadata("design:type", Boolean)
|
|
152
177
|
], Contact.prototype, "opened", void 0);
|
|
153
178
|
__decorate([
|
|
179
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Company of the contact', required: false }),
|
|
154
180
|
(0, typeorm_1.Column)({ name: "company", nullable: true }),
|
|
155
181
|
__metadata("design:type", String)
|
|
156
182
|
], Contact.prototype, "company", void 0);
|
|
157
183
|
__decorate([
|
|
184
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Source description of the contact', required: false }),
|
|
158
185
|
(0, typeorm_1.Column)({ name: "source_description", type: "text", nullable: true }),
|
|
159
186
|
__metadata("design:type", String)
|
|
160
187
|
], Contact.prototype, "sourceDescription", void 0);
|
|
161
188
|
__decorate([
|
|
189
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User assigned to the contact', required: false }),
|
|
162
190
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
163
191
|
onDelete: "SET NULL",
|
|
164
192
|
onUpdate: "CASCADE",
|
|
@@ -167,6 +195,7 @@ __decorate([
|
|
|
167
195
|
__metadata("design:type", user_entity_1.User)
|
|
168
196
|
], Contact.prototype, "assignedBy", void 0);
|
|
169
197
|
__decorate([
|
|
198
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User observing the contact', required: false }),
|
|
170
199
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
171
200
|
onDelete: "SET NULL",
|
|
172
201
|
onUpdate: "CASCADE",
|
|
@@ -175,6 +204,7 @@ __decorate([
|
|
|
175
204
|
__metadata("design:type", user_entity_1.User)
|
|
176
205
|
], Contact.prototype, "observador", void 0);
|
|
177
206
|
__decorate([
|
|
207
|
+
(0, swagger_1.ApiProperty)({ type: () => contact_types_entity_1.ContactType, description: 'Contact type', required: true }),
|
|
178
208
|
(0, typeorm_1.ManyToOne)(() => contact_types_entity_1.ContactType, {
|
|
179
209
|
onDelete: "SET NULL",
|
|
180
210
|
onUpdate: "CASCADE",
|
|
@@ -184,6 +214,7 @@ __decorate([
|
|
|
184
214
|
__metadata("design:type", contact_types_entity_1.ContactType)
|
|
185
215
|
], Contact.prototype, "type", void 0);
|
|
186
216
|
__decorate([
|
|
217
|
+
(0, swagger_1.ApiProperty)({ type: () => contact_sources_entity_1.ContactSource, description: 'Contact source', required: true }),
|
|
187
218
|
(0, typeorm_1.ManyToOne)(() => contact_sources_entity_1.ContactSource, {
|
|
188
219
|
onDelete: "SET NULL",
|
|
189
220
|
onUpdate: "CASCADE",
|
|
@@ -193,6 +224,7 @@ __decorate([
|
|
|
193
224
|
__metadata("design:type", contact_sources_entity_1.ContactSource)
|
|
194
225
|
], Contact.prototype, "source", void 0);
|
|
195
226
|
__decorate([
|
|
227
|
+
(0, swagger_1.ApiProperty)({ type: () => [poliza_entity_1.Poliza], description: 'Polizas associated with the contact' }),
|
|
196
228
|
(0, typeorm_1.OneToMany)(() => poliza_entity_1.Poliza, (poliza) => poliza.contact, {
|
|
197
229
|
onDelete: "CASCADE",
|
|
198
230
|
onUpdate: "CASCADE",
|
|
@@ -201,6 +233,7 @@ __decorate([
|
|
|
201
233
|
__metadata("design:type", Array)
|
|
202
234
|
], Contact.prototype, "polizas", void 0);
|
|
203
235
|
__decorate([
|
|
236
|
+
(0, swagger_1.ApiProperty)({ type: () => [contact_phone_entity_1.ContactPhone], description: 'Phones associated with the contact' }),
|
|
204
237
|
(0, typeorm_1.OneToMany)(() => contact_phone_entity_1.ContactPhone, (contactPhone) => contactPhone.contact, {
|
|
205
238
|
onDelete: "CASCADE",
|
|
206
239
|
onUpdate: "CASCADE",
|
|
@@ -209,6 +242,7 @@ __decorate([
|
|
|
209
242
|
__metadata("design:type", Array)
|
|
210
243
|
], Contact.prototype, "phones", void 0);
|
|
211
244
|
__decorate([
|
|
245
|
+
(0, swagger_1.ApiProperty)({ type: () => [contact_email_entity_1.ContactEmail], description: 'Emails associated with the contact' }),
|
|
212
246
|
(0, typeorm_1.OneToMany)(() => contact_email_entity_1.ContactEmail, (contactEmail) => contactEmail.contact, {
|
|
213
247
|
onDelete: "CASCADE",
|
|
214
248
|
onUpdate: "CASCADE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,wFAA6E;AAC7E,wFAA6E;AAC7E,4FAAgF;AAChF,wFAA4E;AAC5E,gDAAsC;AACtC,qCAA+D;AAC/D,mDAAyC;
|
|
1
|
+
{"version":3,"file":"contact.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/contact.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAA2D;AAC3D,wFAA6E;AAC7E,wFAA6E;AAC7E,4FAAgF;AAChF,wFAA4E;AAC5E,gDAAsC;AACtC,qCAA+D;AAC/D,mDAAyC;AACzC,6CAA8C;AAGvC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,6BAAkB;IAG7C,IAAI,CAAS;IAIb,QAAQ,CAAS;IAIjB,GAAG,CAAS;IAIZ,KAAK,CAAS;IAId,QAAQ,CAAS;IAIjB,IAAI,CAAS;IAIb,QAAQ,CAAS;IAIjB,UAAU,CAAS;IAInB,KAAK,CAAS;IAId,IAAI,CAAS;IAIb,OAAO,CAAS;IAIhB,QAAQ,CAAS;IAIjB,IAAI,CAAS;IAIb,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;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;;uCACsB;kBAjKb,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CAkKnB"}
|
|
@@ -17,6 +17,7 @@ const user_entity_1 = require("../user.entity");
|
|
|
17
17
|
const typeorm_1 = require("typeorm");
|
|
18
18
|
const contact_entity_1 = require("./contact.entity");
|
|
19
19
|
const helpers_1 = require("../helpers");
|
|
20
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
20
21
|
let Lead = class Lead extends database_1.BaseEntity {
|
|
21
22
|
curp;
|
|
22
23
|
idBitrix;
|
|
@@ -62,134 +63,167 @@ let Lead = class Lead extends database_1.BaseEntity {
|
|
|
62
63
|
};
|
|
63
64
|
exports.Lead = Lead;
|
|
64
65
|
__decorate([
|
|
66
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CURP of the lead', required: false }),
|
|
65
67
|
(0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
|
|
66
68
|
__metadata("design:type", String)
|
|
67
69
|
], Lead.prototype, "curp", void 0);
|
|
68
70
|
__decorate([
|
|
71
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Bitrix ID of the lead', required: false }),
|
|
69
72
|
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
70
73
|
__metadata("design:type", Number)
|
|
71
74
|
], Lead.prototype, "idBitrix", void 0);
|
|
72
75
|
__decorate([
|
|
76
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the lead', required: false }),
|
|
73
77
|
(0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
|
|
74
78
|
__metadata("design:type", String)
|
|
75
79
|
], Lead.prototype, "cua", void 0);
|
|
76
80
|
__decorate([
|
|
81
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the lead', required: false }),
|
|
77
82
|
(0, typeorm_1.Column)({ name: "full_name", length: 100, nullable: true }),
|
|
78
83
|
__metadata("design:type", String)
|
|
79
84
|
], Lead.prototype, "fullName", void 0);
|
|
80
85
|
__decorate([
|
|
86
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'First name of the lead', required: false }),
|
|
81
87
|
(0, typeorm_1.Column)({ name: "name", length: 50, nullable: true }),
|
|
82
88
|
__metadata("design:type", String)
|
|
83
89
|
], Lead.prototype, "name", void 0);
|
|
84
90
|
__decorate([
|
|
91
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Last name of the lead', required: false }),
|
|
85
92
|
(0, typeorm_1.Column)({ name: "last_name", length: 50, nullable: true }),
|
|
86
93
|
__metadata("design:type", String)
|
|
87
94
|
], Lead.prototype, "lastName", void 0);
|
|
88
95
|
__decorate([
|
|
96
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Second name of the lead', required: false }),
|
|
89
97
|
(0, typeorm_1.Column)({ name: "second_name", length: 50, nullable: true }),
|
|
90
98
|
__metadata("design:type", String)
|
|
91
99
|
], Lead.prototype, "secondName", void 0);
|
|
92
100
|
__decorate([
|
|
101
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Photo URL of the lead', required: false }),
|
|
93
102
|
(0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
|
|
94
103
|
__metadata("design:type", String)
|
|
95
104
|
], Lead.prototype, "photo", void 0);
|
|
96
105
|
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Opportunity amount', required: false }),
|
|
97
107
|
(0, typeorm_1.Column)({ type: "decimal", nullable: true }),
|
|
98
108
|
__metadata("design:type", Number)
|
|
99
109
|
], Lead.prototype, "opportunity", void 0);
|
|
100
110
|
__decorate([
|
|
111
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Post of the lead', required: false }),
|
|
101
112
|
(0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
|
|
102
113
|
__metadata("design:type", String)
|
|
103
114
|
], Lead.prototype, "post", void 0);
|
|
104
115
|
__decorate([
|
|
116
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Address of the lead', required: false }),
|
|
105
117
|
(0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
|
|
106
118
|
__metadata("design:type", String)
|
|
107
119
|
], Lead.prototype, "address", void 0);
|
|
108
120
|
__decorate([
|
|
121
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Comments about the lead', required: false }),
|
|
109
122
|
(0, typeorm_1.Column)({ name: "comments", type: "text", nullable: true }),
|
|
110
123
|
__metadata("design:type", String)
|
|
111
124
|
], Lead.prototype, "comments", void 0);
|
|
112
125
|
__decorate([
|
|
126
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Lead reference', required: false }),
|
|
113
127
|
(0, typeorm_1.Column)({ name: "lead", nullable: true }),
|
|
114
128
|
__metadata("design:type", String)
|
|
115
129
|
], Lead.prototype, "lead", void 0);
|
|
116
130
|
__decorate([
|
|
131
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the lead exported?', default: false }),
|
|
117
132
|
(0, typeorm_1.Column)({ name: "export", default: false }),
|
|
118
133
|
__metadata("design:type", Boolean)
|
|
119
134
|
], Lead.prototype, "export", void 0);
|
|
120
135
|
__decorate([
|
|
136
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Originator ID of the lead', required: false }),
|
|
121
137
|
(0, typeorm_1.Column)({ name: "originator_id", length: 255, nullable: true }),
|
|
122
138
|
__metadata("design:type", String)
|
|
123
139
|
], Lead.prototype, "originatorId", void 0);
|
|
124
140
|
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Origin ID of the lead', required: false }),
|
|
125
142
|
(0, typeorm_1.Column)({ name: "origin_id", length: 255, nullable: true }),
|
|
126
143
|
__metadata("design:type", String)
|
|
127
144
|
], Lead.prototype, "originId", void 0);
|
|
128
145
|
__decorate([
|
|
146
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Origin version of the lead', required: false }),
|
|
129
147
|
(0, typeorm_1.Column)({ name: "origin_version", length: 255, nullable: true }),
|
|
130
148
|
__metadata("design:type", String)
|
|
131
149
|
], Lead.prototype, "originVersion", void 0);
|
|
132
150
|
__decorate([
|
|
151
|
+
(0, swagger_1.ApiProperty)({ type: Date, description: 'Birthdate of the lead', required: false }),
|
|
133
152
|
(0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
|
|
134
153
|
__metadata("design:type", Date)
|
|
135
154
|
], Lead.prototype, "birthdate", void 0);
|
|
136
155
|
__decorate([
|
|
156
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Honorific of the lead', required: false }),
|
|
137
157
|
(0, typeorm_1.Column)({ name: "honorific", length: 128, nullable: true }),
|
|
138
158
|
__metadata("design:type", String)
|
|
139
159
|
], Lead.prototype, "honorific", void 0);
|
|
140
160
|
__decorate([
|
|
161
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the lead have a phone?', default: false }),
|
|
141
162
|
(0, typeorm_1.Column)({ name: "has_phone", default: false }),
|
|
142
163
|
__metadata("design:type", Boolean)
|
|
143
164
|
], Lead.prototype, "hasPhone", void 0);
|
|
144
165
|
__decorate([
|
|
166
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the lead have an email?', default: false }),
|
|
145
167
|
(0, typeorm_1.Column)({ name: "has_email", default: false }),
|
|
146
168
|
__metadata("design:type", Boolean)
|
|
147
169
|
], Lead.prototype, "hasEmail", void 0);
|
|
148
170
|
__decorate([
|
|
171
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the lead have IMOL?', default: false }),
|
|
149
172
|
(0, typeorm_1.Column)({ name: "has_imol", default: false }),
|
|
150
173
|
__metadata("design:type", Boolean)
|
|
151
174
|
], Lead.prototype, "hasImol", void 0);
|
|
152
175
|
__decorate([
|
|
176
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Face ID of the lead', required: false }),
|
|
153
177
|
(0, typeorm_1.Column)({ name: "face_id", nullable: true }),
|
|
154
178
|
__metadata("design:type", String)
|
|
155
179
|
], Lead.prototype, "faceId", void 0);
|
|
156
180
|
__decorate([
|
|
181
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the lead opened?', default: false }),
|
|
157
182
|
(0, typeorm_1.Column)({ name: "opened", default: false }),
|
|
158
183
|
__metadata("design:type", Boolean)
|
|
159
184
|
], Lead.prototype, "opened", void 0);
|
|
160
185
|
__decorate([
|
|
186
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Company associated with the lead', required: false }),
|
|
161
187
|
(0, typeorm_1.Column)({ name: "company", nullable: true }),
|
|
162
188
|
__metadata("design:type", String)
|
|
163
189
|
], Lead.prototype, "company", void 0);
|
|
164
190
|
__decorate([
|
|
191
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Status ID of the lead', required: false }),
|
|
165
192
|
(0, typeorm_1.Column)({ name: "status_id", nullable: true }),
|
|
166
193
|
__metadata("design:type", String)
|
|
167
194
|
], Lead.prototype, "statusId", void 0);
|
|
168
195
|
__decorate([
|
|
196
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Company title associated with the lead', required: false }),
|
|
169
197
|
(0, typeorm_1.Column)({ name: "company_title", length: 255, nullable: true }),
|
|
170
198
|
__metadata("design:type", String)
|
|
171
199
|
], Lead.prototype, "companyTitle", void 0);
|
|
172
200
|
__decorate([
|
|
201
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Account currency ID of the lead', required: false }),
|
|
173
202
|
(0, typeorm_1.Column)({ name: "account_currency_id", nullable: true }),
|
|
174
203
|
__metadata("design:type", String)
|
|
175
204
|
], Lead.prototype, "accountCurrencyId", void 0);
|
|
176
205
|
__decorate([
|
|
206
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Title of the lead', required: false }),
|
|
177
207
|
(0, typeorm_1.Column)({ nullable: true }),
|
|
178
208
|
__metadata("design:type", String)
|
|
179
209
|
], Lead.prototype, "title", void 0);
|
|
180
210
|
__decorate([
|
|
211
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Source description of the lead', required: false }),
|
|
181
212
|
(0, typeorm_1.Column)({ name: "source_description", type: "text", nullable: true }),
|
|
182
213
|
__metadata("design:type", String)
|
|
183
214
|
], Lead.prototype, "sourceDescription", void 0);
|
|
184
215
|
__decorate([
|
|
216
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the lead a return customer?', required: false }),
|
|
185
217
|
(0, typeorm_1.Column)({ name: "is_return_customer", nullable: true }),
|
|
186
218
|
__metadata("design:type", Boolean)
|
|
187
219
|
], Lead.prototype, "isReturnCustomer", void 0);
|
|
188
220
|
__decorate([
|
|
221
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the opportunity manual?', required: false }),
|
|
189
222
|
(0, typeorm_1.Column)({ name: "is_manual_opportunity", nullable: true }),
|
|
190
223
|
__metadata("design:type", Boolean)
|
|
191
224
|
], Lead.prototype, "isManualOpportunity", void 0);
|
|
192
225
|
__decorate([
|
|
226
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User assigned to the lead', required: false }),
|
|
193
227
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
194
228
|
onDelete: "SET NULL",
|
|
195
229
|
onUpdate: "CASCADE",
|
|
@@ -198,6 +232,7 @@ __decorate([
|
|
|
198
232
|
__metadata("design:type", user_entity_1.User)
|
|
199
233
|
], Lead.prototype, "assignedBy", void 0);
|
|
200
234
|
__decorate([
|
|
235
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the lead', required: false }),
|
|
201
236
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
202
237
|
onDelete: "SET NULL",
|
|
203
238
|
onUpdate: "CASCADE",
|
|
@@ -206,6 +241,7 @@ __decorate([
|
|
|
206
241
|
__metadata("design:type", user_entity_1.User)
|
|
207
242
|
], Lead.prototype, "createdBy", void 0);
|
|
208
243
|
__decorate([
|
|
244
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'Observer of the lead', required: false }),
|
|
209
245
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
210
246
|
onDelete: "SET NULL",
|
|
211
247
|
onUpdate: "CASCADE",
|
|
@@ -214,6 +250,7 @@ __decorate([
|
|
|
214
250
|
__metadata("design:type", user_entity_1.User)
|
|
215
251
|
], Lead.prototype, "observador", void 0);
|
|
216
252
|
__decorate([
|
|
253
|
+
(0, swagger_1.ApiProperty)({ type: () => contact_entity_1.Contact, description: 'Contact associated with the lead', required: false }),
|
|
217
254
|
(0, typeorm_1.OneToOne)(() => contact_entity_1.Contact, {
|
|
218
255
|
onDelete: "SET NULL",
|
|
219
256
|
onUpdate: "CASCADE",
|
|
@@ -222,6 +259,7 @@ __decorate([
|
|
|
222
259
|
__metadata("design:type", contact_entity_1.Contact)
|
|
223
260
|
], Lead.prototype, "contact", void 0);
|
|
224
261
|
__decorate([
|
|
262
|
+
(0, swagger_1.ApiProperty)({ type: () => helpers_1.LeadType, description: 'Type of the lead', required: true }),
|
|
225
263
|
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadType, {
|
|
226
264
|
onDelete: "SET NULL",
|
|
227
265
|
onUpdate: "CASCADE",
|
|
@@ -231,6 +269,7 @@ __decorate([
|
|
|
231
269
|
__metadata("design:type", helpers_1.LeadType)
|
|
232
270
|
], Lead.prototype, "type", void 0);
|
|
233
271
|
__decorate([
|
|
272
|
+
(0, swagger_1.ApiProperty)({ type: () => helpers_1.LeadStage, description: 'Stage of the lead', required: true }),
|
|
234
273
|
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadStage, {
|
|
235
274
|
onDelete: "SET NULL",
|
|
236
275
|
onUpdate: "CASCADE",
|
|
@@ -240,6 +279,7 @@ __decorate([
|
|
|
240
279
|
__metadata("design:type", helpers_1.LeadStage)
|
|
241
280
|
], Lead.prototype, "stage", void 0);
|
|
242
281
|
__decorate([
|
|
282
|
+
(0, swagger_1.ApiProperty)({ type: () => helpers_1.LeadSource, description: 'Source of the lead', required: true }),
|
|
243
283
|
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadSource, {
|
|
244
284
|
onDelete: "SET NULL",
|
|
245
285
|
onUpdate: "CASCADE",
|
|
@@ -249,6 +289,7 @@ __decorate([
|
|
|
249
289
|
__metadata("design:type", helpers_1.LeadSource)
|
|
250
290
|
], Lead.prototype, "source", void 0);
|
|
251
291
|
__decorate([
|
|
292
|
+
(0, swagger_1.ApiProperty)({ type: () => [lead_phone_entity_1.LeadPhone], description: 'Phones associated with the lead' }),
|
|
252
293
|
(0, typeorm_1.OneToMany)(() => lead_phone_entity_1.LeadPhone, (leadPhone) => leadPhone.lead, {
|
|
253
294
|
onDelete: "CASCADE",
|
|
254
295
|
onUpdate: "CASCADE",
|
|
@@ -257,6 +298,7 @@ __decorate([
|
|
|
257
298
|
__metadata("design:type", Array)
|
|
258
299
|
], Lead.prototype, "phones", void 0);
|
|
259
300
|
__decorate([
|
|
301
|
+
(0, swagger_1.ApiProperty)({ type: () => [lead_email_entity_1.LeadEmail], description: 'Emails associated with the lead' }),
|
|
260
302
|
(0, typeorm_1.OneToMany)(() => lead_email_entity_1.LeadEmail, (leadEmail) => leadEmail.lead, {
|
|
261
303
|
onDelete: "CASCADE",
|
|
262
304
|
onUpdate: "CASCADE",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lead.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,+EAAoE;AACpE,+EAAoE;AACpE,gDAAsC;AACtC,qCAAyE;AACzE,qDAA2C;AAC3C,wCAA6D;
|
|
1
|
+
{"version":3,"file":"lead.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oDAAmD;AACnD,+EAAoE;AACpE,+EAAoE;AACpE,gDAAsC;AACtC,qCAAyE;AACzE,qDAA2C;AAC3C,wCAA6D;AAC7D,6CAA8C;AAGvC,IAA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