easywork-common-lib 1.0.178 → 1.0.180
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/@types/enums/crm.enum.d.ts +8 -0
- package/dist/common/@types/enums/crm.enum.js +14 -0
- package/dist/common/@types/enums/crm.enum.js.map +1 -0
- package/dist/common/@types/enums/index.d.ts +3 -0
- package/dist/common/@types/enums/index.js +20 -0
- package/dist/common/@types/enums/index.js.map +1 -0
- package/dist/common/@types/enums/misc.enum.d.ts +60 -0
- package/dist/common/@types/enums/misc.enum.js +81 -0
- package/dist/common/@types/enums/misc.enum.js.map +1 -0
- package/dist/common/@types/enums/permission.enum.d.ts +13 -0
- package/dist/common/@types/enums/permission.enum.js +19 -0
- package/dist/common/@types/enums/permission.enum.js.map +1 -0
- package/dist/common/@types/index.d.ts +2 -0
- package/dist/common/@types/index.js +19 -0
- package/dist/common/@types/index.js.map +1 -0
- package/dist/common/@types/interfaces/authentication.interface.d.ts +17 -0
- package/dist/common/@types/interfaces/authentication.interface.js +3 -0
- package/dist/common/@types/interfaces/authentication.interface.js.map +1 -0
- package/dist/common/@types/interfaces/crm.interface.d.ts +131 -0
- package/dist/common/@types/interfaces/crm.interface.js +3 -0
- package/dist/common/@types/interfaces/crm.interface.js.map +1 -0
- package/dist/common/@types/interfaces/file.interface.d.ts +16 -0
- package/dist/common/@types/interfaces/file.interface.js +3 -0
- package/dist/common/@types/interfaces/file.interface.js.map +1 -0
- package/dist/common/@types/interfaces/index.d.ts +5 -0
- package/dist/common/@types/interfaces/index.js +22 -0
- package/dist/common/@types/interfaces/index.js.map +1 -0
- package/dist/common/@types/interfaces/mail.interface.d.ts +9 -0
- package/dist/common/@types/interfaces/mail.interface.js +3 -0
- package/dist/common/@types/interfaces/mail.interface.js.map +1 -0
- package/dist/common/@types/interfaces/validator.interface.d.ts +41 -0
- package/dist/common/@types/interfaces/validator.interface.js +3 -0
- package/dist/common/@types/interfaces/validator.interface.js.map +1 -0
- package/dist/common/constants/index.d.ts +1 -0
- package/dist/common/constants/index.js +18 -0
- package/dist/common/constants/index.js.map +1 -0
- package/dist/common/constants/regex.constant.d.ts +6 -0
- package/dist/common/constants/regex.constant.js +10 -0
- package/dist/common/constants/regex.constant.js.map +1 -0
- package/dist/common/database/base.entity.d.ts +26 -0
- package/dist/common/database/base.entity.js +133 -0
- package/dist/common/database/base.entity.js.map +1 -0
- package/dist/common/database/index.d.ts +1 -0
- package/dist/common/database/index.js +18 -0
- package/dist/common/database/index.js.map +1 -0
- package/dist/common/dtos/index.d.ts +1 -0
- package/dist/common/dtos/index.js +18 -0
- package/dist/common/dtos/index.js.map +1 -0
- package/dist/common/dtos/send-notification.dto.d.ts +10 -0
- package/dist/common/dtos/send-notification.dto.js +54 -0
- package/dist/common/dtos/send-notification.dto.js.map +1 -0
- package/dist/common/enums/index.d.ts +3 -0
- package/dist/common/enums/index.js +20 -0
- package/dist/common/enums/index.js.map +1 -0
- package/dist/common/enums/notification.enum.d.ts +30 -0
- package/dist/common/enums/notification.enum.js +37 -0
- package/dist/common/enums/notification.enum.js.map +1 -0
- package/dist/common/enums/sales.enum.d.ts +12 -0
- package/dist/common/enums/sales.enum.js +18 -0
- package/dist/common/enums/sales.enum.js.map +1 -0
- package/dist/common/enums/tools.enum.d.ts +10 -0
- package/dist/common/enums/tools.enum.js +16 -0
- package/dist/common/enums/tools.enum.js.map +1 -0
- package/dist/common/helpers/app.utils.d.ts +5 -0
- package/dist/common/helpers/app.utils.js +32 -0
- package/dist/common/helpers/app.utils.js.map +1 -0
- package/dist/common/helpers/helpers.utils.d.ts +5 -0
- package/dist/common/helpers/helpers.utils.js +26 -0
- package/dist/common/helpers/helpers.utils.js.map +1 -0
- package/dist/common/helpers/index.d.ts +2 -0
- package/dist/common/helpers/index.js +19 -0
- package/dist/common/helpers/index.js.map +1 -0
- package/dist/common/index.d.ts +7 -0
- package/dist/common/index.js +24 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/interceptors/index.d.ts +1 -0
- package/dist/common/interceptors/index.js +18 -0
- package/dist/common/interceptors/index.js.map +1 -0
- package/dist/common/interceptors/security.interceptor.d.ts +5 -0
- package/dist/common/interceptors/security.interceptor.js +22 -0
- package/dist/common/interceptors/security.interceptor.js.map +1 -0
- package/dist/entities/app_config/app-config.entity.d.ts +5 -0
- package/dist/entities/app_config/app-config.entity.js +33 -0
- package/dist/entities/app_config/app-config.entity.js.map +1 -0
- package/dist/entities/drive/file.entity.d.ts +13 -0
- package/dist/entities/drive/file.entity.js +72 -0
- package/dist/entities/drive/file.entity.js.map +1 -0
- package/dist/entities/drive/folder.entity.d.ts +10 -0
- package/dist/entities/drive/folder.entity.js +64 -0
- package/dist/entities/drive/folder.entity.js.map +1 -0
- package/dist/entities/drive/index.d.ts +2 -0
- package/dist/entities/drive/index.js +19 -0
- package/dist/entities/drive/index.js.map +1 -0
- package/dist/entities/easyapp/filter-view.entity.d.ts +7 -0
- package/dist/entities/easyapp/filter-view.entity.js +41 -0
- package/dist/entities/easyapp/filter-view.entity.js.map +1 -0
- package/dist/entities/easyapp/index.d.ts +1 -0
- package/dist/entities/easyapp/index.js +18 -0
- package/dist/entities/easyapp/index.js.map +1 -0
- package/dist/entities/email.entity.d.ts +5 -0
- package/dist/entities/email.entity.js +33 -0
- package/dist/entities/email.entity.js.map +1 -0
- package/dist/entities/group.entity.d.ts +4 -0
- package/dist/entities/group.entity.js +28 -0
- package/dist/entities/group.entity.js.map +1 -0
- package/dist/entities/helpers/entity_file.entity.d.ts +10 -0
- package/dist/entities/helpers/entity_file.entity.js +54 -0
- package/dist/entities/helpers/entity_file.entity.js.map +1 -0
- package/dist/entities/helpers/entity_folder.entity.d.ts +10 -0
- package/dist/entities/helpers/entity_folder.entity.js +54 -0
- package/dist/entities/helpers/entity_folder.entity.js.map +1 -0
- package/dist/entities/helpers/index.d.ts +4 -0
- package/dist/entities/helpers/index.js +21 -0
- package/dist/entities/helpers/index.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js +61 -0
- package/dist/entities/helpers/sales/contact/contact_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js +61 -0
- package/dist/entities/helpers/sales/contact/contact_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_sources.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js +33 -0
- package/dist/entities/helpers/sales/contact/contact_sources.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/contact_types.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/contact/contact_types.entity.js +33 -0
- package/dist/entities/helpers/sales/contact/contact_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/contact/index.d.ts +4 -0
- package/dist/entities/helpers/sales/contact/index.js +21 -0
- package/dist/entities/helpers/sales/contact/index.js.map +1 -0
- package/dist/entities/helpers/sales/index.d.ts +6 -0
- package/dist/entities/helpers/sales/index.js +23 -0
- package/dist/entities/helpers/sales/index.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js +28 -0
- package/dist/entities/helpers/sales/lead/h_lead_source.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js +33 -0
- package/dist/entities/helpers/sales/lead/h_lead_stage.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.d.ts +4 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js +28 -0
- package/dist/entities/helpers/sales/lead/h_lead_types.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/index.d.ts +5 -0
- package/dist/entities/helpers/sales/lead/index.js +22 -0
- package/dist/entities/helpers/sales/lead/index.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js +59 -0
- package/dist/entities/helpers/sales/lead/lead_email.entity.js.map +1 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js +59 -0
- package/dist/entities/helpers/sales/lead/lead_phone.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_company.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js +35 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_forma_cobro.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.d.ts +6 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js +35 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_frecuencia_pago.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js +30 -0
- package/dist/entities/helpers/sales/poliza/h_poliza_type.entity.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/index.d.ts +5 -0
- package/dist/entities/helpers/sales/poliza/index.js +22 -0
- package/dist/entities/helpers/sales/poliza/index.js.map +1 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.d.ts +11 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js +61 -0
- package/dist/entities/helpers/sales/poliza/poliza_file.entity.js.map +1 -0
- package/dist/entities/helpers/tools/index.d.ts +1 -0
- package/dist/entities/helpers/tools/index.js +18 -0
- package/dist/entities/helpers/tools/index.js.map +1 -0
- package/dist/entities/helpers/tools/task_crm.entity.d.ts +14 -0
- package/dist/entities/helpers/tools/task_crm.entity.js +85 -0
- package/dist/entities/helpers/tools/task_crm.entity.js.map +1 -0
- package/dist/entities/imap-config.entity.d.ts +11 -0
- package/dist/entities/imap-config.entity.js +61 -0
- package/dist/entities/imap-config.entity.js.map +1 -0
- package/dist/entities/imap-folder.entity.d.ts +7 -0
- package/dist/entities/imap-folder.entity.js +41 -0
- package/dist/entities/imap-folder.entity.js.map +1 -0
- package/dist/entities/index.d.ts +22 -0
- package/dist/entities/index.js +39 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/entities/notifications/index.d.ts +1 -0
- package/dist/entities/notifications/index.js +18 -0
- package/dist/entities/notifications/index.js.map +1 -0
- package/dist/entities/notifications/notification.entity.d.ts +14 -0
- package/dist/entities/notifications/notification.entity.js +84 -0
- package/dist/entities/notifications/notification.entity.js.map +1 -0
- package/dist/entities/oauth.entity.d.ts +14 -0
- package/dist/entities/oauth.entity.js +76 -0
- package/dist/entities/oauth.entity.js.map +1 -0
- package/dist/entities/otp-log.entity.d.ts +8 -0
- package/dist/entities/otp-log.entity.js +44 -0
- package/dist/entities/otp-log.entity.js.map +1 -0
- package/dist/entities/permission.entity.d.ts +7 -0
- package/dist/entities/permission.entity.js +42 -0
- package/dist/entities/permission.entity.js.map +1 -0
- package/dist/entities/phone.entity.d.ts +5 -0
- package/dist/entities/phone.entity.js +33 -0
- package/dist/entities/phone.entity.js.map +1 -0
- package/dist/entities/profile.entity.d.ts +9 -0
- package/dist/entities/profile.entity.js +50 -0
- package/dist/entities/profile.entity.js.map +1 -0
- package/dist/entities/protocol.entity.d.ts +8 -0
- package/dist/entities/protocol.entity.js +46 -0
- package/dist/entities/protocol.entity.js.map +1 -0
- package/dist/entities/refresh-token.entity.d.ts +8 -0
- package/dist/entities/refresh-token.entity.js +46 -0
- package/dist/entities/refresh-token.entity.js.map +1 -0
- package/dist/entities/role.entity.d.ts +5 -0
- package/dist/entities/role.entity.js +33 -0
- package/dist/entities/role.entity.js.map +1 -0
- package/dist/entities/sales/contact.entity.d.ts +42 -0
- package/dist/entities/sales/contact.entity.js +222 -0
- package/dist/entities/sales/contact.entity.js.map +1 -0
- package/dist/entities/sales/index.d.ts +4 -0
- package/dist/entities/sales/index.js +21 -0
- package/dist/entities/sales/index.js.map +1 -0
- package/dist/entities/sales/lead.entity.d.ts +49 -0
- package/dist/entities/sales/lead.entity.js +270 -0
- package/dist/entities/sales/lead.entity.js.map +1 -0
- package/dist/entities/sales/poliza.entity.d.ts +67 -0
- package/dist/entities/sales/poliza.entity.js +399 -0
- package/dist/entities/sales/poliza.entity.js.map +1 -0
- package/dist/entities/sales/poliza_siniestro.entity.d.ts +12 -0
- package/dist/entities/sales/poliza_siniestro.entity.js +65 -0
- package/dist/entities/sales/poliza_siniestro.entity.js.map +1 -0
- package/dist/entities/tag.entity.d.ts +8 -0
- package/dist/entities/tag.entity.js +49 -0
- package/dist/entities/tag.entity.js.map +1 -0
- package/dist/entities/tools/index.d.ts +3 -0
- package/dist/entities/tools/index.js +20 -0
- package/dist/entities/tools/index.js.map +1 -0
- package/dist/entities/tools/task-comment.entity.d.ts +9 -0
- package/dist/entities/tools/task-comment.entity.js +52 -0
- package/dist/entities/tools/task-comment.entity.js.map +1 -0
- package/dist/entities/tools/task-list-field.d.ts +5 -0
- package/dist/entities/tools/task-list-field.js +35 -0
- package/dist/entities/tools/task-list-field.js.map +1 -0
- package/dist/entities/tools/task.entity.d.ts +29 -0
- package/dist/entities/tools/task.entity.js +160 -0
- package/dist/entities/tools/task.entity.js.map +1 -0
- package/dist/entities/user.entity.d.ts +20 -0
- package/dist/entities/user.entity.js +104 -0
- package/dist/entities/user.entity.js.map +1 -0
- package/dist/eslint.config.d.ts +2 -0
- package/dist/eslint.config.js +47 -0
- package/dist/eslint.config.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/package.json +1 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Contact = void 0;
|
|
13
|
+
const database_1 = require("../../common/database");
|
|
14
|
+
const contact_email_entity_1 = require("../helpers/sales/contact/contact_email.entity");
|
|
15
|
+
const contact_phone_entity_1 = require("../helpers/sales/contact/contact_phone.entity");
|
|
16
|
+
const contact_sources_entity_1 = require("../helpers/sales/contact/contact_sources.entity");
|
|
17
|
+
const contact_types_entity_1 = require("../helpers/sales/contact/contact_types.entity");
|
|
18
|
+
const user_entity_1 = require("../user.entity");
|
|
19
|
+
const typeorm_1 = require("typeorm");
|
|
20
|
+
const poliza_entity_1 = require("./poliza.entity");
|
|
21
|
+
let Contact = class Contact extends database_1.BaseEntityWithUser {
|
|
22
|
+
curp;
|
|
23
|
+
idBitrix;
|
|
24
|
+
cua;
|
|
25
|
+
cargo;
|
|
26
|
+
fullName;
|
|
27
|
+
name;
|
|
28
|
+
lastName;
|
|
29
|
+
secondName;
|
|
30
|
+
photo;
|
|
31
|
+
post;
|
|
32
|
+
address;
|
|
33
|
+
comments;
|
|
34
|
+
lead;
|
|
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
|
+
sourceDescription;
|
|
48
|
+
assignedBy;
|
|
49
|
+
observador;
|
|
50
|
+
type;
|
|
51
|
+
source;
|
|
52
|
+
polizas;
|
|
53
|
+
phones;
|
|
54
|
+
emails;
|
|
55
|
+
};
|
|
56
|
+
exports.Contact = Contact;
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Contact.prototype, "curp", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], Contact.prototype, "idBitrix", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Contact.prototype, "cua", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ name: "cargo", length: 50, nullable: true }),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], Contact.prototype, "cargo", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.Column)({ name: "full_name", length: 100, nullable: true }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], Contact.prototype, "fullName", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, typeorm_1.Column)({ name: "name", length: 50, nullable: true }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], Contact.prototype, "name", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, typeorm_1.Column)({ name: "last_name", length: 50, nullable: true }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], Contact.prototype, "lastName", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, typeorm_1.Column)({ name: "second_name", length: 50, nullable: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], Contact.prototype, "secondName", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], Contact.prototype, "photo", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], Contact.prototype, "post", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], Contact.prototype, "address", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, typeorm_1.Column)({ name: "comments", type: "text", nullable: true }),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], Contact.prototype, "comments", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, typeorm_1.Column)({ name: "lead", nullable: true }),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], Contact.prototype, "lead", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, typeorm_1.Column)({ name: "export", default: false }),
|
|
111
|
+
__metadata("design:type", Boolean)
|
|
112
|
+
], Contact.prototype, "export", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, typeorm_1.Column)({ name: "originator_id", length: 255, nullable: true }),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], Contact.prototype, "originatorId", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, typeorm_1.Column)({ name: "origin_id", length: 255, nullable: true }),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], Contact.prototype, "originId", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, typeorm_1.Column)({ name: "origin_version", length: 255, nullable: true }),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], Contact.prototype, "originVersion", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
|
|
127
|
+
__metadata("design:type", Date)
|
|
128
|
+
], Contact.prototype, "birthdate", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, typeorm_1.Column)({ name: "honorific", length: 128, nullable: true }),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], Contact.prototype, "honorific", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, typeorm_1.Column)({ name: "has_phone", default: false }),
|
|
135
|
+
__metadata("design:type", Boolean)
|
|
136
|
+
], Contact.prototype, "hasPhone", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, typeorm_1.Column)({ name: "has_email", default: false }),
|
|
139
|
+
__metadata("design:type", Boolean)
|
|
140
|
+
], Contact.prototype, "hasEmail", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, typeorm_1.Column)({ name: "has_imol", default: false }),
|
|
143
|
+
__metadata("design:type", Boolean)
|
|
144
|
+
], Contact.prototype, "hasImol", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, typeorm_1.Column)({ name: "face_id", nullable: true }),
|
|
147
|
+
__metadata("design:type", String)
|
|
148
|
+
], Contact.prototype, "faceId", void 0);
|
|
149
|
+
__decorate([
|
|
150
|
+
(0, typeorm_1.Column)({ name: "opened", default: false }),
|
|
151
|
+
__metadata("design:type", Boolean)
|
|
152
|
+
], Contact.prototype, "opened", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, typeorm_1.Column)({ name: "company", nullable: true }),
|
|
155
|
+
__metadata("design:type", String)
|
|
156
|
+
], Contact.prototype, "company", void 0);
|
|
157
|
+
__decorate([
|
|
158
|
+
(0, typeorm_1.Column)({ name: "source_description", type: "text", nullable: true }),
|
|
159
|
+
__metadata("design:type", String)
|
|
160
|
+
], Contact.prototype, "sourceDescription", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
163
|
+
onDelete: "SET NULL",
|
|
164
|
+
onUpdate: "CASCADE",
|
|
165
|
+
nullable: true,
|
|
166
|
+
}),
|
|
167
|
+
__metadata("design:type", user_entity_1.User)
|
|
168
|
+
], Contact.prototype, "assignedBy", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
171
|
+
onDelete: "SET NULL",
|
|
172
|
+
onUpdate: "CASCADE",
|
|
173
|
+
nullable: true,
|
|
174
|
+
}),
|
|
175
|
+
__metadata("design:type", user_entity_1.User)
|
|
176
|
+
], Contact.prototype, "observador", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, typeorm_1.ManyToOne)(() => contact_types_entity_1.ContactType, {
|
|
179
|
+
onDelete: "SET NULL",
|
|
180
|
+
onUpdate: "CASCADE",
|
|
181
|
+
nullable: true,
|
|
182
|
+
eager: true,
|
|
183
|
+
}),
|
|
184
|
+
__metadata("design:type", contact_types_entity_1.ContactType)
|
|
185
|
+
], Contact.prototype, "type", void 0);
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, typeorm_1.ManyToOne)(() => contact_sources_entity_1.ContactSource, {
|
|
188
|
+
onDelete: "SET NULL",
|
|
189
|
+
onUpdate: "CASCADE",
|
|
190
|
+
nullable: true,
|
|
191
|
+
eager: true,
|
|
192
|
+
}),
|
|
193
|
+
__metadata("design:type", contact_sources_entity_1.ContactSource)
|
|
194
|
+
], Contact.prototype, "source", void 0);
|
|
195
|
+
__decorate([
|
|
196
|
+
(0, typeorm_1.OneToMany)(() => poliza_entity_1.Poliza, (poliza) => poliza.contact, {
|
|
197
|
+
onDelete: "CASCADE",
|
|
198
|
+
onUpdate: "CASCADE",
|
|
199
|
+
eager: true,
|
|
200
|
+
}),
|
|
201
|
+
__metadata("design:type", Array)
|
|
202
|
+
], Contact.prototype, "polizas", void 0);
|
|
203
|
+
__decorate([
|
|
204
|
+
(0, typeorm_1.OneToMany)(() => contact_phone_entity_1.ContactPhone, (contactPhone) => contactPhone.contact, {
|
|
205
|
+
onDelete: "CASCADE",
|
|
206
|
+
onUpdate: "CASCADE",
|
|
207
|
+
eager: true,
|
|
208
|
+
}),
|
|
209
|
+
__metadata("design:type", Array)
|
|
210
|
+
], Contact.prototype, "phones", void 0);
|
|
211
|
+
__decorate([
|
|
212
|
+
(0, typeorm_1.OneToMany)(() => contact_email_entity_1.ContactEmail, (contactEmail) => contactEmail.contact, {
|
|
213
|
+
onDelete: "CASCADE",
|
|
214
|
+
onUpdate: "CASCADE",
|
|
215
|
+
eager: true,
|
|
216
|
+
}),
|
|
217
|
+
__metadata("design:type", Array)
|
|
218
|
+
], Contact.prototype, "emails", void 0);
|
|
219
|
+
exports.Contact = Contact = __decorate([
|
|
220
|
+
(0, typeorm_1.Entity)()
|
|
221
|
+
], Contact);
|
|
222
|
+
//# sourceMappingURL=contact.entity.js.map
|
|
@@ -0,0 +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;AAGlC,IAAM,OAAO,GAAb,MAAM,OAAQ,SAAQ,6BAAkB;IAE7C,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,GAAG,CAAS;IAGZ,KAAK,CAAS;IAGd,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,KAAK,CAAS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AM,GAAE;GACI,OAAO,CAmInB"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./contact.entity"), exports);
|
|
18
|
+
__exportStar(require("./poliza_siniestro.entity"), exports);
|
|
19
|
+
__exportStar(require("./lead.entity"), exports);
|
|
20
|
+
__exportStar(require("./poliza.entity"), exports);
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/sales/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AACjC,4DAA0C;AAC1C,gDAA8B;AAC9B,kDAAgC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { BaseEntity } from "../../common/database";
|
|
2
|
+
import { LeadEmail } from "../helpers/sales/lead/lead_email.entity";
|
|
3
|
+
import { LeadPhone } from "../helpers/sales/lead/lead_phone.entity";
|
|
4
|
+
import { User } from "../user.entity";
|
|
5
|
+
import { Contact } from "./contact.entity";
|
|
6
|
+
import { LeadSource, LeadStage, LeadType } from "../helpers";
|
|
7
|
+
export declare class Lead extends BaseEntity {
|
|
8
|
+
curp: string;
|
|
9
|
+
idBitrix: number;
|
|
10
|
+
cua: string;
|
|
11
|
+
fullName: string;
|
|
12
|
+
name: string;
|
|
13
|
+
lastName: string;
|
|
14
|
+
secondName: string;
|
|
15
|
+
photo: string;
|
|
16
|
+
opportunity: number;
|
|
17
|
+
post: string;
|
|
18
|
+
address: string;
|
|
19
|
+
comments: string;
|
|
20
|
+
lead: string;
|
|
21
|
+
export: boolean;
|
|
22
|
+
originatorId: string;
|
|
23
|
+
originId: string;
|
|
24
|
+
originVersion: string;
|
|
25
|
+
birthdate: Date;
|
|
26
|
+
honorific: string;
|
|
27
|
+
hasPhone: boolean;
|
|
28
|
+
hasEmail: boolean;
|
|
29
|
+
hasImol: boolean;
|
|
30
|
+
faceId: string;
|
|
31
|
+
opened: boolean;
|
|
32
|
+
company: string;
|
|
33
|
+
statusId: string;
|
|
34
|
+
companyTitle: string;
|
|
35
|
+
accountCurrencyId: string;
|
|
36
|
+
title: string;
|
|
37
|
+
sourceDescription: string;
|
|
38
|
+
isReturnCustomer: boolean;
|
|
39
|
+
isManualOpportunity: boolean;
|
|
40
|
+
assignedBy: User;
|
|
41
|
+
createdBy: User;
|
|
42
|
+
observador: User;
|
|
43
|
+
contact: Contact;
|
|
44
|
+
type: LeadType;
|
|
45
|
+
stage: LeadStage;
|
|
46
|
+
source: LeadSource;
|
|
47
|
+
phones?: LeadPhone[];
|
|
48
|
+
emails?: LeadEmail[];
|
|
49
|
+
}
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Lead = void 0;
|
|
13
|
+
const database_1 = require("../../common/database");
|
|
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
|
+
const user_entity_1 = require("../user.entity");
|
|
17
|
+
const typeorm_1 = require("typeorm");
|
|
18
|
+
const contact_entity_1 = require("./contact.entity");
|
|
19
|
+
const helpers_1 = require("../helpers");
|
|
20
|
+
let Lead = class Lead extends database_1.BaseEntity {
|
|
21
|
+
curp;
|
|
22
|
+
idBitrix;
|
|
23
|
+
cua;
|
|
24
|
+
fullName;
|
|
25
|
+
name;
|
|
26
|
+
lastName;
|
|
27
|
+
secondName;
|
|
28
|
+
photo;
|
|
29
|
+
opportunity;
|
|
30
|
+
post;
|
|
31
|
+
address;
|
|
32
|
+
comments;
|
|
33
|
+
lead;
|
|
34
|
+
export;
|
|
35
|
+
originatorId;
|
|
36
|
+
originId;
|
|
37
|
+
originVersion;
|
|
38
|
+
birthdate;
|
|
39
|
+
honorific;
|
|
40
|
+
hasPhone;
|
|
41
|
+
hasEmail;
|
|
42
|
+
hasImol;
|
|
43
|
+
faceId;
|
|
44
|
+
opened;
|
|
45
|
+
company;
|
|
46
|
+
statusId;
|
|
47
|
+
companyTitle;
|
|
48
|
+
accountCurrencyId;
|
|
49
|
+
title;
|
|
50
|
+
sourceDescription;
|
|
51
|
+
isReturnCustomer;
|
|
52
|
+
isManualOpportunity;
|
|
53
|
+
assignedBy;
|
|
54
|
+
createdBy;
|
|
55
|
+
observador;
|
|
56
|
+
contact;
|
|
57
|
+
type;
|
|
58
|
+
stage;
|
|
59
|
+
source;
|
|
60
|
+
phones;
|
|
61
|
+
emails;
|
|
62
|
+
};
|
|
63
|
+
exports.Lead = Lead;
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.Column)({ name: "curp", length: 50, nullable: true }),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], Lead.prototype, "curp", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.Column)({ name: "id_bitrix", nullable: true }),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], Lead.prototype, "idBitrix", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.Column)({ name: "cua", length: 50, nullable: true }),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], Lead.prototype, "cua", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ name: "full_name", length: 100, nullable: true }),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], Lead.prototype, "fullName", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)({ name: "name", length: 50, nullable: true }),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], Lead.prototype, "name", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ name: "last_name", length: 50, nullable: true }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Lead.prototype, "lastName", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)({ name: "second_name", length: 50, nullable: true }),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], Lead.prototype, "secondName", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ name: "photo", length: 255, nullable: true }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], Lead.prototype, "photo", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ type: "decimal", nullable: true }),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], Lead.prototype, "opportunity", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ name: "post", type: "text", nullable: true }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], Lead.prototype, "post", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ name: "address", type: "text", nullable: true }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], Lead.prototype, "address", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)({ name: "comments", type: "text", nullable: true }),
|
|
110
|
+
__metadata("design:type", String)
|
|
111
|
+
], Lead.prototype, "comments", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)({ name: "lead", nullable: true }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], Lead.prototype, "lead", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ name: "export", default: false }),
|
|
118
|
+
__metadata("design:type", Boolean)
|
|
119
|
+
], Lead.prototype, "export", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)({ name: "originator_id", length: 255, nullable: true }),
|
|
122
|
+
__metadata("design:type", String)
|
|
123
|
+
], Lead.prototype, "originatorId", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)({ name: "origin_id", length: 255, nullable: true }),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], Lead.prototype, "originId", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)({ name: "origin_version", length: 255, nullable: true }),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], Lead.prototype, "originVersion", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ name: "birthdate", nullable: true }),
|
|
134
|
+
__metadata("design:type", Date)
|
|
135
|
+
], Lead.prototype, "birthdate", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ name: "honorific", length: 128, nullable: true }),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], Lead.prototype, "honorific", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, typeorm_1.Column)({ name: "has_phone", default: false }),
|
|
142
|
+
__metadata("design:type", Boolean)
|
|
143
|
+
], Lead.prototype, "hasPhone", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, typeorm_1.Column)({ name: "has_email", default: false }),
|
|
146
|
+
__metadata("design:type", Boolean)
|
|
147
|
+
], Lead.prototype, "hasEmail", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.Column)({ name: "has_imol", default: false }),
|
|
150
|
+
__metadata("design:type", Boolean)
|
|
151
|
+
], Lead.prototype, "hasImol", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, typeorm_1.Column)({ name: "face_id", nullable: true }),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], Lead.prototype, "faceId", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, typeorm_1.Column)({ name: "opened", default: false }),
|
|
158
|
+
__metadata("design:type", Boolean)
|
|
159
|
+
], Lead.prototype, "opened", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, typeorm_1.Column)({ name: "company", nullable: true }),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], Lead.prototype, "company", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, typeorm_1.Column)({ name: "status_id", nullable: true }),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], Lead.prototype, "statusId", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, typeorm_1.Column)({ name: "company_title", length: 255, nullable: true }),
|
|
170
|
+
__metadata("design:type", String)
|
|
171
|
+
], Lead.prototype, "companyTitle", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, typeorm_1.Column)({ name: "account_currency_id", nullable: true }),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], Lead.prototype, "accountCurrencyId", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], Lead.prototype, "title", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, typeorm_1.Column)({ name: "source_description", type: "text", nullable: true }),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], Lead.prototype, "sourceDescription", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, typeorm_1.Column)({ name: "is_return_customer", nullable: true }),
|
|
186
|
+
__metadata("design:type", Boolean)
|
|
187
|
+
], Lead.prototype, "isReturnCustomer", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, typeorm_1.Column)({ name: "is_manual_opportunity", nullable: true }),
|
|
190
|
+
__metadata("design:type", Boolean)
|
|
191
|
+
], Lead.prototype, "isManualOpportunity", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
194
|
+
onDelete: "SET NULL",
|
|
195
|
+
onUpdate: "CASCADE",
|
|
196
|
+
nullable: true,
|
|
197
|
+
}),
|
|
198
|
+
__metadata("design:type", user_entity_1.User)
|
|
199
|
+
], Lead.prototype, "assignedBy", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
202
|
+
onDelete: "SET NULL",
|
|
203
|
+
onUpdate: "CASCADE",
|
|
204
|
+
nullable: true,
|
|
205
|
+
}),
|
|
206
|
+
__metadata("design:type", user_entity_1.User)
|
|
207
|
+
], Lead.prototype, "createdBy", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User, {
|
|
210
|
+
onDelete: "SET NULL",
|
|
211
|
+
onUpdate: "CASCADE",
|
|
212
|
+
nullable: true,
|
|
213
|
+
}),
|
|
214
|
+
__metadata("design:type", user_entity_1.User)
|
|
215
|
+
], Lead.prototype, "observador", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, typeorm_1.OneToOne)(() => contact_entity_1.Contact, {
|
|
218
|
+
onDelete: "SET NULL",
|
|
219
|
+
onUpdate: "CASCADE",
|
|
220
|
+
nullable: true,
|
|
221
|
+
}),
|
|
222
|
+
__metadata("design:type", contact_entity_1.Contact)
|
|
223
|
+
], Lead.prototype, "contact", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadType, {
|
|
226
|
+
onDelete: "SET NULL",
|
|
227
|
+
onUpdate: "CASCADE",
|
|
228
|
+
nullable: true,
|
|
229
|
+
eager: true,
|
|
230
|
+
}),
|
|
231
|
+
__metadata("design:type", helpers_1.LeadType)
|
|
232
|
+
], Lead.prototype, "type", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadStage, {
|
|
235
|
+
onDelete: "SET NULL",
|
|
236
|
+
onUpdate: "CASCADE",
|
|
237
|
+
nullable: true,
|
|
238
|
+
eager: true,
|
|
239
|
+
}),
|
|
240
|
+
__metadata("design:type", helpers_1.LeadStage)
|
|
241
|
+
], Lead.prototype, "stage", void 0);
|
|
242
|
+
__decorate([
|
|
243
|
+
(0, typeorm_1.ManyToOne)(() => helpers_1.LeadSource, {
|
|
244
|
+
onDelete: "SET NULL",
|
|
245
|
+
onUpdate: "CASCADE",
|
|
246
|
+
nullable: true,
|
|
247
|
+
eager: true,
|
|
248
|
+
}),
|
|
249
|
+
__metadata("design:type", helpers_1.LeadSource)
|
|
250
|
+
], Lead.prototype, "source", void 0);
|
|
251
|
+
__decorate([
|
|
252
|
+
(0, typeorm_1.OneToMany)(() => lead_phone_entity_1.LeadPhone, (leadPhone) => leadPhone.lead, {
|
|
253
|
+
onDelete: "CASCADE",
|
|
254
|
+
onUpdate: "CASCADE",
|
|
255
|
+
eager: true,
|
|
256
|
+
}),
|
|
257
|
+
__metadata("design:type", Array)
|
|
258
|
+
], Lead.prototype, "phones", void 0);
|
|
259
|
+
__decorate([
|
|
260
|
+
(0, typeorm_1.OneToMany)(() => lead_email_entity_1.LeadEmail, (leadEmail) => leadEmail.lead, {
|
|
261
|
+
onDelete: "CASCADE",
|
|
262
|
+
onUpdate: "CASCADE",
|
|
263
|
+
eager: true,
|
|
264
|
+
}),
|
|
265
|
+
__metadata("design:type", Array)
|
|
266
|
+
], Lead.prototype, "emails", void 0);
|
|
267
|
+
exports.Lead = Lead = __decorate([
|
|
268
|
+
(0, typeorm_1.Entity)()
|
|
269
|
+
], Lead);
|
|
270
|
+
//# sourceMappingURL=lead.entity.js.map
|
|
@@ -0,0 +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;AAGtD,IAAM,IAAI,GAAV,MAAM,IAAK,SAAQ,qBAAU;IAElC,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,GAAG,CAAS;IAGZ,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,WAAW,CAAS;IAGpB,IAAI,CAAS;IAGb,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,IAAI,CAAS;IAGb,MAAM,CAAU;IAGhB,YAAY,CAAS;IAGrB,QAAQ,CAAS;IAGjB,aAAa,CA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;QACnB,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACZ,CAAC;8BACI,kBAAQ;kCAAC;AAQf;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,mBAAS,EAAE;QAC1B,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACZ,CAAC;8BACK,mBAAS;mCAAC;AAQjB;IANC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,oBAAU,EAAE;QAC3B,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,SAAS;QACnB,QAAQ,EAAE,IAAI;QACd,KAAK,EAAE,IAAI;KACZ,CAAC;8BACM,oBAAU;oCAAC;AAOnB;IALC,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;AAOrB;IALC,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;eAlKV,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAmKhB"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { User } from "../user.entity";
|
|
2
|
+
import { Contact } from "./contact.entity";
|
|
3
|
+
import { PolizaCompany, PolizaFormaCobro, PolizaType, PolizaFile } from "../helpers";
|
|
4
|
+
import { PolizaSiniestro } from "./poliza_siniestro.entity";
|
|
5
|
+
import { PolizaStatus } from "../../common/enums";
|
|
6
|
+
import { BaseEntityWithUser } from "../../common";
|
|
7
|
+
export declare class Poliza extends BaseEntityWithUser {
|
|
8
|
+
idBitrix: number;
|
|
9
|
+
noPoliza: string;
|
|
10
|
+
title: string;
|
|
11
|
+
version: string;
|
|
12
|
+
vigenciaDesde: Date;
|
|
13
|
+
vigenciaHasta: Date;
|
|
14
|
+
beginDate: Date;
|
|
15
|
+
closeDate: Date;
|
|
16
|
+
opened?: boolean;
|
|
17
|
+
stageSemantic?: string;
|
|
18
|
+
stage: string;
|
|
19
|
+
isNew: boolean;
|
|
20
|
+
primaNeta?: number;
|
|
21
|
+
recargoFraccionado?: number;
|
|
22
|
+
derechoPoliza?: number;
|
|
23
|
+
iva?: number;
|
|
24
|
+
importePagar?: number;
|
|
25
|
+
isRecurring?: boolean;
|
|
26
|
+
isReturnCustomer?: boolean;
|
|
27
|
+
isRepeatedApproach?: boolean;
|
|
28
|
+
closed?: boolean;
|
|
29
|
+
typeId?: string;
|
|
30
|
+
opportunity?: number;
|
|
31
|
+
isManualOpportunity?: boolean;
|
|
32
|
+
currencyId?: string;
|
|
33
|
+
taxValue?: number;
|
|
34
|
+
opportunityAccount?: number;
|
|
35
|
+
taxValueAccount?: number;
|
|
36
|
+
accountCurrencyId?: string;
|
|
37
|
+
probability?: number;
|
|
38
|
+
comments?: string;
|
|
39
|
+
eventDate?: Date;
|
|
40
|
+
eventId?: string;
|
|
41
|
+
eventDescription?: string;
|
|
42
|
+
exchRate?: number;
|
|
43
|
+
product?: string;
|
|
44
|
+
sourceId: string;
|
|
45
|
+
sourceDescription: string;
|
|
46
|
+
company: PolizaCompany;
|
|
47
|
+
type: PolizaType;
|
|
48
|
+
formaCobro: PolizaFormaCobro;
|
|
49
|
+
frecuenciaCobro: PolizaFormaCobro;
|
|
50
|
+
contact: Contact;
|
|
51
|
+
files?: PolizaFile[];
|
|
52
|
+
status: PolizaStatus;
|
|
53
|
+
siniestros: PolizaSiniestro[];
|
|
54
|
+
assignedBy?: User;
|
|
55
|
+
descripcionMovimiento?: string;
|
|
56
|
+
especificacionesPlan: string;
|
|
57
|
+
agenteReclamo?: User;
|
|
58
|
+
agenteReembolso?: User;
|
|
59
|
+
agenteProgramaciones?: User;
|
|
60
|
+
agenteReembolsoSubsecuente?: User;
|
|
61
|
+
agenteRescateFondos?: User;
|
|
62
|
+
agenteSaludGMM?: User;
|
|
63
|
+
agenteVida?: User;
|
|
64
|
+
agenteAutos?: User;
|
|
65
|
+
fechaReferidaPago?: Date;
|
|
66
|
+
modifyBy?: User;
|
|
67
|
+
}
|