easywork-common-lib 1.0.303 → 1.0.305
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/index.d.ts +0 -1
- package/dist/common/index.js +0 -1
- package/dist/common/index.js.map +1 -1
- package/dist/entities/helpers/sales/lead/index.d.ts +0 -1
- package/dist/entities/helpers/sales/lead/index.js +0 -1
- package/dist/entities/helpers/sales/lead/index.js.map +1 -1
- package/dist/entities/index.d.ts +2 -1
- package/dist/entities/index.js +2 -1
- package/dist/entities/index.js.map +1 -1
- package/dist/entities/sales/contact.entity.js +0 -1
- package/dist/entities/sales/contact.entity.js.map +1 -1
- package/dist/entities/sales/index.d.ts +0 -2
- package/dist/entities/sales/index.js +0 -2
- package/dist/entities/sales/index.js.map +1 -1
- package/dist/entities/sales/lead.entity.d.ts +44 -35
- package/dist/entities/sales/lead.entity.js +199 -146
- package/dist/entities/sales/lead.entity.js.map +1 -1
- package/dist/entities/sales/poliza.entity.d.ts +0 -15
- package/dist/entities/sales/poliza.entity.js +1 -103
- package/dist/entities/sales/poliza.entity.js.map +1 -1
- package/dist/entities/sales/receipt.entity.d.ts +0 -5
- package/dist/entities/sales/receipt.entity.js +1 -31
- package/dist/entities/sales/receipt.entity.js.map +1 -1
- package/dist/entities/thirdparty/email.entity.d.ts +2 -3
- package/dist/entities/thirdparty/email.entity.js +2 -7
- package/dist/entities/thirdparty/email.entity.js.map +1 -1
- package/dist/grpc/drive/drive.proto +69 -69
- package/dist/modules/notifier/notifier.module.js +4 -1
- package/dist/modules/notifier/notifier.module.js.map +1 -1
- package/dist/modules/notifier/notifier.service.js +3 -3
- package/dist/modules/notifier/notifier.service.js.map +1 -1
- package/dist/modules/notifier/scheduler.service.d.ts +9 -0
- package/dist/modules/notifier/scheduler.service.js +40 -0
- package/dist/modules/notifier/scheduler.service.js.map +1 -0
- package/dist/modules/queue/subservices/calendar.service.d.ts +2 -0
- package/dist/modules/queue/subservices/calendar.service.js +17 -0
- package/dist/modules/queue/subservices/calendar.service.js.map +1 -0
- package/dist/modules/queue/subservices/contact.service.d.ts +7 -0
- package/dist/modules/queue/subservices/contact.service.js +49 -0
- package/dist/modules/queue/subservices/contact.service.js.map +1 -0
- package/dist/modules/queue/subservices/index.d.ts +3 -0
- package/dist/{common/functions → modules/queue/subservices}/index.js +3 -2
- package/dist/modules/queue/subservices/index.js.map +1 -0
- package/dist/modules/queue/subservices/task.service.d.ts +12 -0
- package/dist/modules/queue/subservices/task.service.js +173 -0
- package/dist/modules/queue/subservices/task.service.js.map +1 -0
- package/package.json +42 -42
- package/scripts/bump.sh +5 -5
- package/test.bat +15 -15
- package/tsconfig.build.json +4 -4
- package/tsconfig.json +26 -26
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/common/functions/cripto.d.ts +0 -1
- package/dist/common/functions/cripto.js +0 -9
- package/dist/common/functions/cripto.js.map +0 -1
- package/dist/common/functions/image.d.ts +0 -3
- package/dist/common/functions/image.js +0 -15
- package/dist/common/functions/image.js.map +0 -1
- package/dist/common/functions/index.d.ts +0 -2
- package/dist/common/functions/index.js.map +0 -1
- package/dist/entities/easyapp/index.d.ts +0 -1
- package/dist/entities/easyapp/index.js +0 -18
- package/dist/entities/easyapp/index.js.map +0 -1
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.d.ts +0 -4
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js +0 -29
- package/dist/entities/helpers/sales/lead/lead_cancel_reazon.entity.js.map +0 -1
- package/dist/entities/sales/receipt-sub-agente.entity.d.ts +0 -5
- package/dist/entities/sales/receipt-sub-agente.entity.js +0 -35
- package/dist/entities/sales/receipt-sub-agente.entity.js.map +0 -1
- package/dist/entities/thirdparty/email-config.d.ts +0 -1
- package/dist/entities/thirdparty/email-config.js +0 -3
- package/dist/entities/thirdparty/email-config.js.map +0 -1
- package/dist/entities/thirdparty/oauth.entity.d.ts +0 -17
- package/dist/entities/thirdparty/oauth.entity.js +0 -88
- package/dist/entities/thirdparty/oauth.entity.js.map +0 -1
|
@@ -11,165 +11,237 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Lead = void 0;
|
|
13
13
|
const database_1 = require("../../common/database");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const lead_email_entity_1 = require("../helpers/sales/lead/lead_email.entity");
|
|
15
|
+
const lead_phone_entity_1 = require("../helpers/sales/lead/lead_phone.entity");
|
|
16
16
|
const user_entity_1 = require("../user.entity");
|
|
17
17
|
const typeorm_1 = require("typeorm");
|
|
18
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
-
const common_1 = require("../../common");
|
|
20
18
|
const contact_entity_1 = require("./contact.entity");
|
|
21
|
-
const helpers_1 = require("
|
|
22
|
-
const
|
|
23
|
-
let Lead = class Lead extends database_1.
|
|
19
|
+
const helpers_1 = require("../helpers");
|
|
20
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
21
|
+
let Lead = class Lead extends database_1.BaseEntity {
|
|
22
|
+
curp;
|
|
24
23
|
idBitrix;
|
|
25
|
-
|
|
26
|
-
codigo;
|
|
24
|
+
cua;
|
|
27
25
|
fullName;
|
|
28
26
|
name;
|
|
29
27
|
lastName;
|
|
30
28
|
secondName;
|
|
31
|
-
rfc;
|
|
32
|
-
address;
|
|
33
|
-
phones;
|
|
34
|
-
emails;
|
|
35
|
-
cargo;
|
|
36
|
-
birthdate;
|
|
37
|
-
gender;
|
|
38
|
-
type;
|
|
39
|
-
source;
|
|
40
|
-
assignedBy;
|
|
41
|
-
observador;
|
|
42
|
-
lead;
|
|
43
|
-
relations;
|
|
44
|
-
curp;
|
|
45
|
-
cua;
|
|
46
29
|
photo;
|
|
30
|
+
opportunity;
|
|
47
31
|
post;
|
|
32
|
+
address;
|
|
48
33
|
comments;
|
|
49
|
-
|
|
34
|
+
lead;
|
|
50
35
|
export;
|
|
36
|
+
originatorId;
|
|
37
|
+
originId;
|
|
38
|
+
originVersion;
|
|
39
|
+
birthdate;
|
|
40
|
+
honorific;
|
|
41
|
+
hasPhone;
|
|
42
|
+
hasEmail;
|
|
43
|
+
hasImol;
|
|
44
|
+
faceId;
|
|
45
|
+
opened;
|
|
46
|
+
company;
|
|
47
|
+
statusId;
|
|
48
|
+
companyTitle;
|
|
49
|
+
accountCurrencyId;
|
|
50
|
+
title;
|
|
51
51
|
sourceDescription;
|
|
52
|
-
|
|
52
|
+
isReturnCustomer;
|
|
53
|
+
isManualOpportunity;
|
|
54
|
+
assignedBy;
|
|
55
|
+
createdBy;
|
|
56
|
+
observador;
|
|
57
|
+
contact;
|
|
58
|
+
type;
|
|
53
59
|
stage;
|
|
60
|
+
source;
|
|
61
|
+
phones;
|
|
62
|
+
emails;
|
|
54
63
|
};
|
|
55
64
|
exports.Lead = Lead;
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CURP of the lead', required: false }),
|
|
67
|
+
(0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], Lead.prototype, "curp", void 0);
|
|
56
70
|
__decorate([
|
|
57
71
|
(0, swagger_1.ApiProperty)({ type: Number, description: 'Bitrix ID of the lead', required: false }),
|
|
58
72
|
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
59
73
|
__metadata("design:type", Number)
|
|
60
74
|
], Lead.prototype, "idBitrix", void 0);
|
|
61
75
|
__decorate([
|
|
62
|
-
(0, swagger_1.ApiProperty)({
|
|
63
|
-
|
|
64
|
-
description: 'Type of person',
|
|
65
|
-
default: common_1.PersonType.FISICA
|
|
66
|
-
}),
|
|
67
|
-
(0, typeorm_1.Column)({
|
|
68
|
-
type: "enum",
|
|
69
|
-
enum: common_1.PersonType,
|
|
70
|
-
default: common_1.PersonType.FISICA
|
|
71
|
-
}),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], Lead.prototype, "typePerson", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Code of the lead', required: false }),
|
|
76
|
-
(0, typeorm_1.Column)({ name: "codigo", length: 100, nullable: true }),
|
|
76
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the lead', required: false }),
|
|
77
|
+
(0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
|
|
77
78
|
__metadata("design:type", String)
|
|
78
|
-
], Lead.prototype, "
|
|
79
|
+
], Lead.prototype, "cua", void 0);
|
|
79
80
|
__decorate([
|
|
80
81
|
(0, swagger_1.ApiProperty)({ type: String, description: 'Full name of the lead', required: false }),
|
|
81
|
-
(0, typeorm_1.Column)({ name: "full_name", length:
|
|
82
|
+
(0, typeorm_1.Column)({ name: "full_name", length: 100, nullable: true }),
|
|
82
83
|
__metadata("design:type", String)
|
|
83
84
|
], Lead.prototype, "fullName", void 0);
|
|
84
85
|
__decorate([
|
|
85
86
|
(0, swagger_1.ApiProperty)({ type: String, description: 'First name of the lead', required: false }),
|
|
86
|
-
(0, typeorm_1.Column)({ name: "name", length:
|
|
87
|
+
(0, typeorm_1.Column)({ name: "name", length: 50, nullable: true }),
|
|
87
88
|
__metadata("design:type", String)
|
|
88
89
|
], Lead.prototype, "name", void 0);
|
|
89
90
|
__decorate([
|
|
90
91
|
(0, swagger_1.ApiProperty)({ type: String, description: 'Last name of the lead', required: false }),
|
|
91
|
-
(0, typeorm_1.Column)({ name: "last_name", length:
|
|
92
|
+
(0, typeorm_1.Column)({ name: "last_name", length: 50, nullable: true }),
|
|
92
93
|
__metadata("design:type", String)
|
|
93
94
|
], Lead.prototype, "lastName", void 0);
|
|
94
95
|
__decorate([
|
|
95
96
|
(0, swagger_1.ApiProperty)({ type: String, description: 'Second name of the lead', required: false }),
|
|
96
|
-
(0, typeorm_1.Column)({ name: "second_name", length:
|
|
97
|
+
(0, typeorm_1.Column)({ name: "second_name", length: 50, nullable: true }),
|
|
97
98
|
__metadata("design:type", String)
|
|
98
99
|
], Lead.prototype, "secondName", void 0);
|
|
99
100
|
__decorate([
|
|
100
|
-
(0, swagger_1.ApiProperty)({ type: String, description: '
|
|
101
|
-
(0, typeorm_1.Column)({ name: "
|
|
101
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Photo URL of the lead', required: false }),
|
|
102
|
+
(0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], Lead.prototype, "photo", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({ type: Number, description: 'Opportunity amount', required: false }),
|
|
107
|
+
(0, typeorm_1.Column)({ type: "decimal", nullable: true }),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], Lead.prototype, "opportunity", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Post of the lead', required: false }),
|
|
112
|
+
(0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
|
|
102
113
|
__metadata("design:type", String)
|
|
103
|
-
], Lead.prototype, "
|
|
114
|
+
], Lead.prototype, "post", void 0);
|
|
104
115
|
__decorate([
|
|
105
116
|
(0, swagger_1.ApiProperty)({ type: String, description: 'Address of the lead', required: false }),
|
|
106
117
|
(0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
|
|
107
118
|
__metadata("design:type", String)
|
|
108
119
|
], Lead.prototype, "address", void 0);
|
|
109
120
|
__decorate([
|
|
110
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
111
|
-
(0, typeorm_1.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
eager: true,
|
|
115
|
-
}),
|
|
116
|
-
__metadata("design:type", Array)
|
|
117
|
-
], Lead.prototype, "phones", void 0);
|
|
121
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Comments about the lead', required: false }),
|
|
122
|
+
(0, typeorm_1.Column)({ name: "comments", type: "text", nullable: true }),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], Lead.prototype, "comments", void 0);
|
|
118
125
|
__decorate([
|
|
119
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
120
|
-
(0, typeorm_1.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
eager: true,
|
|
124
|
-
}),
|
|
125
|
-
__metadata("design:type", Array)
|
|
126
|
-
], Lead.prototype, "emails", void 0);
|
|
126
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Lead reference', required: false }),
|
|
127
|
+
(0, typeorm_1.Column)({ name: "lead", nullable: true }),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], Lead.prototype, "lead", void 0);
|
|
127
130
|
__decorate([
|
|
128
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
129
|
-
(0, typeorm_1.Column)({ name: "
|
|
131
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the lead exported?', default: false }),
|
|
132
|
+
(0, typeorm_1.Column)({ name: "export", default: false }),
|
|
133
|
+
__metadata("design:type", Boolean)
|
|
134
|
+
], Lead.prototype, "export", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Originator ID of the lead', required: false }),
|
|
137
|
+
(0, typeorm_1.Column)({ name: "originator_id", length: 255, nullable: true }),
|
|
130
138
|
__metadata("design:type", String)
|
|
131
|
-
], Lead.prototype, "
|
|
139
|
+
], Lead.prototype, "originatorId", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Origin ID of the lead', required: false }),
|
|
142
|
+
(0, typeorm_1.Column)({ name: "origin_id", length: 255, nullable: true }),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], Lead.prototype, "originId", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Origin version of the lead', required: false }),
|
|
147
|
+
(0, typeorm_1.Column)({ name: "origin_version", length: 255, nullable: true }),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], Lead.prototype, "originVersion", void 0);
|
|
132
150
|
__decorate([
|
|
133
151
|
(0, swagger_1.ApiProperty)({ type: Date, description: 'Birthdate of the lead', required: false }),
|
|
134
152
|
(0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
|
|
135
153
|
__metadata("design:type", Date)
|
|
136
154
|
], Lead.prototype, "birthdate", void 0);
|
|
137
155
|
__decorate([
|
|
138
|
-
(0, swagger_1.ApiProperty)({ type: String, description: '
|
|
139
|
-
(0, typeorm_1.Column)({ name: "
|
|
156
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Honorific of the lead', required: false }),
|
|
157
|
+
(0, typeorm_1.Column)({ name: "honorific", length: 128, nullable: true }),
|
|
140
158
|
__metadata("design:type", String)
|
|
141
|
-
], Lead.prototype, "
|
|
159
|
+
], Lead.prototype, "honorific", void 0);
|
|
142
160
|
__decorate([
|
|
143
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
144
|
-
(0, typeorm_1.
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}),
|
|
150
|
-
__metadata("design:type",
|
|
151
|
-
], Lead.prototype, "
|
|
161
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the lead have a phone?', default: false }),
|
|
162
|
+
(0, typeorm_1.Column)({ name: "has_phone", default: false }),
|
|
163
|
+
__metadata("design:type", Boolean)
|
|
164
|
+
], Lead.prototype, "hasPhone", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the lead have an email?', default: false }),
|
|
167
|
+
(0, typeorm_1.Column)({ name: "has_email", default: false }),
|
|
168
|
+
__metadata("design:type", Boolean)
|
|
169
|
+
], Lead.prototype, "hasEmail", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Does the lead have IMOL?', default: false }),
|
|
172
|
+
(0, typeorm_1.Column)({ name: "has_imol", default: false }),
|
|
173
|
+
__metadata("design:type", Boolean)
|
|
174
|
+
], Lead.prototype, "hasImol", void 0);
|
|
175
|
+
__decorate([
|
|
176
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Face ID of the lead', required: false }),
|
|
177
|
+
(0, typeorm_1.Column)({ name: "face_id", nullable: true }),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], Lead.prototype, "faceId", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the lead opened?', default: false }),
|
|
182
|
+
(0, typeorm_1.Column)({ name: "opened", default: false }),
|
|
183
|
+
__metadata("design:type", Boolean)
|
|
184
|
+
], Lead.prototype, "opened", void 0);
|
|
152
185
|
__decorate([
|
|
153
|
-
(0, swagger_1.ApiProperty)({ type:
|
|
154
|
-
(0, typeorm_1.
|
|
186
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Company associated with the lead', required: false }),
|
|
187
|
+
(0, typeorm_1.Column)({ name: "company", nullable: true }),
|
|
188
|
+
__metadata("design:type", String)
|
|
189
|
+
], Lead.prototype, "company", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Status ID of the lead', required: false }),
|
|
192
|
+
(0, typeorm_1.Column)({ name: "status_id", nullable: true }),
|
|
193
|
+
__metadata("design:type", String)
|
|
194
|
+
], Lead.prototype, "statusId", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Company title associated with the lead', required: false }),
|
|
197
|
+
(0, typeorm_1.Column)({ name: "company_title", length: 255, nullable: true }),
|
|
198
|
+
__metadata("design:type", String)
|
|
199
|
+
], Lead.prototype, "companyTitle", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Account currency ID of the lead', required: false }),
|
|
202
|
+
(0, typeorm_1.Column)({ name: "account_currency_id", nullable: true }),
|
|
203
|
+
__metadata("design:type", String)
|
|
204
|
+
], Lead.prototype, "accountCurrencyId", void 0);
|
|
205
|
+
__decorate([
|
|
206
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Title of the lead', required: false }),
|
|
207
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
208
|
+
__metadata("design:type", String)
|
|
209
|
+
], Lead.prototype, "title", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Source description of the lead', required: false }),
|
|
212
|
+
(0, typeorm_1.Column)({ name: "source_description", type: "text", nullable: true }),
|
|
213
|
+
__metadata("design:type", String)
|
|
214
|
+
], Lead.prototype, "sourceDescription", void 0);
|
|
215
|
+
__decorate([
|
|
216
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the lead a return customer?', required: false }),
|
|
217
|
+
(0, typeorm_1.Column)({ name: "is_return_customer", nullable: true }),
|
|
218
|
+
__metadata("design:type", Boolean)
|
|
219
|
+
], Lead.prototype, "isReturnCustomer", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the opportunity manual?', required: false }),
|
|
222
|
+
(0, typeorm_1.Column)({ name: "is_manual_opportunity", nullable: true }),
|
|
223
|
+
__metadata("design:type", Boolean)
|
|
224
|
+
], Lead.prototype, "isManualOpportunity", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User assigned to the lead', required: false }),
|
|
227
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
155
228
|
onDelete: "SET NULL",
|
|
156
229
|
onUpdate: "CASCADE",
|
|
157
230
|
nullable: true,
|
|
158
|
-
eager: true,
|
|
159
231
|
}),
|
|
160
|
-
__metadata("design:type",
|
|
161
|
-
], Lead.prototype, "
|
|
232
|
+
__metadata("design:type", user_entity_1.User)
|
|
233
|
+
], Lead.prototype, "assignedBy", void 0);
|
|
162
234
|
__decorate([
|
|
163
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User
|
|
235
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'User who created the lead', required: false }),
|
|
164
236
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
165
237
|
onDelete: "SET NULL",
|
|
166
238
|
onUpdate: "CASCADE",
|
|
167
239
|
nullable: true,
|
|
168
240
|
}),
|
|
169
241
|
__metadata("design:type", user_entity_1.User)
|
|
170
|
-
], Lead.prototype, "
|
|
242
|
+
], Lead.prototype, "createdBy", void 0);
|
|
171
243
|
__decorate([
|
|
172
|
-
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: '
|
|
244
|
+
(0, swagger_1.ApiProperty)({ type: () => user_entity_1.User, description: 'Observer of the lead', required: false }),
|
|
173
245
|
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
174
246
|
onDelete: "SET NULL",
|
|
175
247
|
onUpdate: "CASCADE",
|
|
@@ -178,81 +250,62 @@ __decorate([
|
|
|
178
250
|
__metadata("design:type", user_entity_1.User)
|
|
179
251
|
], Lead.prototype, "observador", void 0);
|
|
180
252
|
__decorate([
|
|
181
|
-
(0, swagger_1.ApiProperty)({ type: () =>
|
|
182
|
-
(0, typeorm_1.
|
|
253
|
+
(0, swagger_1.ApiProperty)({ type: () => contact_entity_1.Contact, description: 'Contact associated with the lead', required: false }),
|
|
254
|
+
(0, typeorm_1.OneToOne)(() => contact_entity_1.Contact, {
|
|
183
255
|
onDelete: "SET NULL",
|
|
184
256
|
onUpdate: "CASCADE",
|
|
185
257
|
nullable: true,
|
|
186
258
|
}),
|
|
187
|
-
__metadata("design:type",
|
|
188
|
-
], Lead.prototype, "
|
|
259
|
+
__metadata("design:type", contact_entity_1.Contact)
|
|
260
|
+
], Lead.prototype, "contact", void 0);
|
|
189
261
|
__decorate([
|
|
190
|
-
(0, swagger_1.ApiProperty)({ type: () =>
|
|
191
|
-
(0, typeorm_1.
|
|
192
|
-
onDelete: "
|
|
262
|
+
(0, swagger_1.ApiProperty)({ type: () => helpers_1.LeadType, description: 'Type of the lead', required: true }),
|
|
263
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadType, {
|
|
264
|
+
onDelete: "SET NULL",
|
|
193
265
|
onUpdate: "CASCADE",
|
|
266
|
+
nullable: true,
|
|
267
|
+
eager: true,
|
|
194
268
|
}),
|
|
195
|
-
(
|
|
196
|
-
|
|
197
|
-
], Lead.prototype, "relations", void 0);
|
|
198
|
-
__decorate([
|
|
199
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'CURP of the lead', required: false }),
|
|
200
|
-
(0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
|
|
201
|
-
__metadata("design:type", String)
|
|
202
|
-
], Lead.prototype, "curp", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'CUA of the lead', required: false }),
|
|
205
|
-
(0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
|
|
206
|
-
__metadata("design:type", String)
|
|
207
|
-
], Lead.prototype, "cua", void 0);
|
|
208
|
-
__decorate([
|
|
209
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Photo URL of the lead', required: false }),
|
|
210
|
-
(0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
|
|
211
|
-
__metadata("design:type", String)
|
|
212
|
-
], Lead.prototype, "photo", void 0);
|
|
213
|
-
__decorate([
|
|
214
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Post of the lead', required: false }),
|
|
215
|
-
(0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
|
|
216
|
-
__metadata("design:type", String)
|
|
217
|
-
], Lead.prototype, "post", void 0);
|
|
218
|
-
__decorate([
|
|
219
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Comments about the lead', required: false }),
|
|
220
|
-
(0, typeorm_1.Column)({ name: "comments", type: "text", nullable: true }),
|
|
221
|
-
__metadata("design:type", String)
|
|
222
|
-
], Lead.prototype, "comments", void 0);
|
|
223
|
-
__decorate([
|
|
224
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Company of the lead', required: false }),
|
|
225
|
-
(0, typeorm_1.Column)({ length: 255, nullable: true }),
|
|
226
|
-
__metadata("design:type", String)
|
|
227
|
-
], Lead.prototype, "company", void 0);
|
|
228
|
-
__decorate([
|
|
229
|
-
(0, swagger_1.ApiProperty)({ type: Boolean, description: 'Is the lead exported?', default: false }),
|
|
230
|
-
(0, typeorm_1.Column)({ name: "export", default: false }),
|
|
231
|
-
__metadata("design:type", Boolean)
|
|
232
|
-
], Lead.prototype, "export", void 0);
|
|
233
|
-
__decorate([
|
|
234
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Source description of the lead', required: false }),
|
|
235
|
-
(0, typeorm_1.Column)({ type: "text", nullable: true }),
|
|
236
|
-
__metadata("design:type", String)
|
|
237
|
-
], Lead.prototype, "sourceDescription", void 0);
|
|
269
|
+
__metadata("design:type", helpers_1.LeadType)
|
|
270
|
+
], Lead.prototype, "type", void 0);
|
|
238
271
|
__decorate([
|
|
239
|
-
(0, swagger_1.ApiProperty)({ type: () => helpers_1.
|
|
240
|
-
(0, typeorm_1.ManyToOne)(() => helpers_1.
|
|
272
|
+
(0, swagger_1.ApiProperty)({ type: () => helpers_1.LeadStage, description: 'Stage of the lead', required: true }),
|
|
273
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadStage, {
|
|
241
274
|
onDelete: "SET NULL",
|
|
242
275
|
onUpdate: "CASCADE",
|
|
276
|
+
nullable: true,
|
|
277
|
+
eager: true,
|
|
243
278
|
}),
|
|
244
|
-
__metadata("design:type", helpers_1.
|
|
245
|
-
], Lead.prototype, "
|
|
279
|
+
__metadata("design:type", helpers_1.LeadStage)
|
|
280
|
+
], Lead.prototype, "stage", void 0);
|
|
246
281
|
__decorate([
|
|
247
|
-
(0, swagger_1.ApiProperty)({ type: () =>
|
|
248
|
-
(0, typeorm_1.ManyToOne)(() =>
|
|
282
|
+
(0, swagger_1.ApiProperty)({ type: () => helpers_1.LeadSource, description: 'Source of the lead', required: true }),
|
|
283
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadSource, {
|
|
249
284
|
onDelete: "SET NULL",
|
|
250
285
|
onUpdate: "CASCADE",
|
|
251
286
|
nullable: true,
|
|
252
287
|
eager: true,
|
|
253
288
|
}),
|
|
254
|
-
__metadata("design:type",
|
|
255
|
-
], Lead.prototype, "
|
|
289
|
+
__metadata("design:type", helpers_1.LeadSource)
|
|
290
|
+
], Lead.prototype, "source", void 0);
|
|
291
|
+
__decorate([
|
|
292
|
+
(0, swagger_1.ApiProperty)({ type: () => [lead_phone_entity_1.LeadPhone], description: 'Phones associated with the lead' }),
|
|
293
|
+
(0, typeorm_1.OneToMany)(() => lead_phone_entity_1.LeadPhone, (leadPhone) => leadPhone.lead, {
|
|
294
|
+
onDelete: "CASCADE",
|
|
295
|
+
onUpdate: "CASCADE",
|
|
296
|
+
eager: true,
|
|
297
|
+
}),
|
|
298
|
+
__metadata("design:type", Array)
|
|
299
|
+
], Lead.prototype, "phones", void 0);
|
|
300
|
+
__decorate([
|
|
301
|
+
(0, swagger_1.ApiProperty)({ type: () => [lead_email_entity_1.LeadEmail], description: 'Emails associated with the lead' }),
|
|
302
|
+
(0, typeorm_1.OneToMany)(() => lead_email_entity_1.LeadEmail, (leadEmail) => leadEmail.lead, {
|
|
303
|
+
onDelete: "CASCADE",
|
|
304
|
+
onUpdate: "CASCADE",
|
|
305
|
+
eager: true,
|
|
306
|
+
}),
|
|
307
|
+
__metadata("design:type", Array)
|
|
308
|
+
], Lead.prototype, "emails", void 0);
|
|
256
309
|
exports.Lead = Lead = __decorate([
|
|
257
310
|
(0, typeorm_1.Entity)()
|
|
258
311
|
], Lead);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lead.entity.js","sourceRoot":"","sources":["../../../src/entities/sales/lead.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
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,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;IAGlC,IAAI,CAAS;IAIb,QAAQ,CAAS;IAIjB,GAAG,CAAS;IAIZ,QAAQ,CAAS;IAIjB,IAAI,CAAS;IAIb,QAAQ,CAAS;IAIjB,UAAU,CAAS;IAInB,KAAK,CAAS;IAId,WAAW,CAAS;IAIpB,IAAI,CAAS;IAIb,OAAO,CAAS;IAIhB,QAAQ,CAAS;IAIjB,IAAI,CAAS;IAIb,MAAM,CAAU;IAIhB,YAAY,CAAS;IAIrB,QAAQ,CAAS;IAIjB,aAAa,CAAS;IAItB,SAAS,CAAO;IAIhB,SAAS,CAAS;IAIlB,QAAQ,CAAU;IAIlB,QAAQ,CAAU;IAIlB,OAAO,CAAU;IAIjB,MAAM,CAAS;IAIf,MAAM,CAAU;IAIhB,OAAO,CAAS;IAIhB,QAAQ,CAAS;IAIjB,YAAY,CAAS;IAIrB,iBAAiB,CAAS;IAI1B,KAAK,CAAS;IAId,iBAAiB,CAAS;IAI1B,gBAAgB,CAAU;IAI1B,mBAAmB,CAAU;IAQ7B,UAAU,CAAO;IAQjB,SAAS,CAAO;IAQhB,UAAU,CAAO;IAQjB,OAAO,CAAU;IASjB,IAAI,CAAW;IASf,KAAK,CAAY;IASjB,MAAM,CAAa;IAQnB,MAAM,CAAe;IAQrB,MAAM,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B;IANC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC,6BAAS,CAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;IACxF,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,6BAAS,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,EAAE;QACzD,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,SAAS;QACnB,KAAK,EAAE,IAAI;KACZ,CAAC;;oCACmB;eA1MV,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA2MhB"}
|
|
@@ -11,10 +11,7 @@ import { AgenteIntermediario } from "./agente-intermediario.entity";
|
|
|
11
11
|
export declare class Poliza extends BaseEntityWithUser {
|
|
12
12
|
idBitrix: number;
|
|
13
13
|
poliza: string;
|
|
14
|
-
polizaRenovacion: string;
|
|
15
|
-
tipoConexion: string;
|
|
16
14
|
version: number;
|
|
17
|
-
versionRenovacion: number;
|
|
18
15
|
renovacion: number;
|
|
19
16
|
repeated?: boolean;
|
|
20
17
|
renewal?: boolean;
|
|
@@ -22,21 +19,13 @@ export declare class Poliza extends BaseEntityWithUser {
|
|
|
22
19
|
vigenciaHasta: Date;
|
|
23
20
|
vigenciaDesdeVersion: Date;
|
|
24
21
|
vigenciaHastaVersion: Date;
|
|
25
|
-
vigenciaDesdeRenovacion: Date;
|
|
26
|
-
vigenciaHastaRenovacion: Date;
|
|
27
22
|
fechaEmision: Date;
|
|
28
|
-
fechaEmisionRenovacion: Date;
|
|
29
23
|
description: string;
|
|
30
24
|
primaNeta?: number;
|
|
31
25
|
recargoFraccionado?: number;
|
|
32
26
|
derechoPoliza?: number;
|
|
33
27
|
iva?: number;
|
|
34
28
|
importePagar?: number;
|
|
35
|
-
primaNetaRenovacion?: number;
|
|
36
|
-
recargoFraccionadoRenovacion?: number;
|
|
37
|
-
derechoPolizaRenovacion?: number;
|
|
38
|
-
ivaRenovacion?: number;
|
|
39
|
-
importePagarRenovacion?: number;
|
|
40
29
|
primaNetaMovimiento?: number;
|
|
41
30
|
recargoFraccionadoMovimiento?: number;
|
|
42
31
|
derechoPolizaMovimiento?: number;
|
|
@@ -44,7 +33,6 @@ export declare class Poliza extends BaseEntityWithUser {
|
|
|
44
33
|
importePagarMovimiento?: number;
|
|
45
34
|
conductoPago: string;
|
|
46
35
|
frecuenciaCobro: PolizaFrecuenciaPago;
|
|
47
|
-
frecuenciaCobroRenovacion: PolizaFrecuenciaPago;
|
|
48
36
|
currency: Currency;
|
|
49
37
|
plazoPago: PolizaDiasPlazoPago;
|
|
50
38
|
expeditionDate: Date;
|
|
@@ -73,9 +61,7 @@ export declare class Poliza extends BaseEntityWithUser {
|
|
|
73
61
|
company: PolizaInsurance;
|
|
74
62
|
type: PolizaType;
|
|
75
63
|
formaCobro: PolizaFormaCobro;
|
|
76
|
-
formaCobroRenovacion: PolizaFormaCobro;
|
|
77
64
|
agenteIntermediario: AgenteIntermediario;
|
|
78
|
-
agenteIntermediarioRenovacion: AgenteIntermediario;
|
|
79
65
|
contact: Contact;
|
|
80
66
|
files?: PolizaFile[];
|
|
81
67
|
status: PolizaStatus;
|
|
@@ -93,7 +79,6 @@ export declare class Poliza extends BaseEntityWithUser {
|
|
|
93
79
|
agenteVida?: User;
|
|
94
80
|
agenteAutos?: User;
|
|
95
81
|
fechaReferidaPago?: string;
|
|
96
|
-
fechaReferidaPagoRenovacion?: string;
|
|
97
82
|
receipts?: Receipt[];
|
|
98
83
|
beneficiaries?: PolizaBeneficiary[];
|
|
99
84
|
vehicles?: BeneficiaryVehicle[];
|