easywork-common-lib 1.0.5 → 1.0.6
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/app_config/app-config.entity.d.ts +5 -0
- package/dist/entities/drive/folder.entity.d.ts +5 -0
- package/dist/entities/email.entity.d.ts +5 -0
- package/dist/entities/helpers/contact_email.entity.d.ts +11 -0
- package/dist/entities/helpers/contact_phone.entity.d.ts +11 -0
- package/dist/entities/helpers/contact_sources.entity.d.ts +5 -0
- package/dist/entities/helpers/contact_types.entity.d.ts +5 -0
- package/dist/entities/helpers/lead_email.entity.d.ts +11 -0
- package/dist/entities/helpers/lead_phone.entity.d.ts +11 -0
- package/dist/entities/index.d.ts +10 -0
- package/dist/entities/phone.entity.d.ts +5 -0
- package/dist/entities/sales/contact.entity.d.ts +41 -0
- package/dist/entities/sales/lead.entity.d.ts +46 -0
- package/dist/entities/sales/poliza.entity.d.ts +58 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/entities/app_config/app-config.entity.ts +13 -0
- package/src/entities/drive/folder.entity.ts +13 -0
- package/src/entities/email.entity.ts +13 -0
- package/src/entities/helpers/contact_email.entity.ts +33 -0
- package/src/entities/helpers/contact_phone.entity.ts +33 -0
- package/src/entities/helpers/contact_sources.entity.ts +13 -0
- package/src/entities/helpers/contact_types.entity.ts +13 -0
- package/src/entities/helpers/lead_email.entity.ts +31 -0
- package/src/entities/helpers/lead_phone.entity.ts +31 -0
- package/src/entities/index.ts +10 -0
- package/src/entities/phone.entity.ts +13 -0
- package/src/entities/profile.entity.ts +1 -1
- package/src/entities/sales/contact.entity.ts +140 -0
- package/src/entities/sales/lead.entity.ts +151 -0
- package/src/entities/sales/poliza.entity.ts +220 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Contact } from "../sales/contact.entity";
|
|
3
|
+
import { Email } from "../email.entity";
|
|
4
|
+
export declare class ContactEmail extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
contactId: string;
|
|
7
|
+
emailId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
contact: Contact;
|
|
10
|
+
email: Email;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Contact } from "../sales/contact.entity";
|
|
3
|
+
import { Phone } from "../phone.entity";
|
|
4
|
+
export declare class ContactPhone extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
contactId: string;
|
|
7
|
+
phoneId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
contact: Contact;
|
|
10
|
+
phone: Phone;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Lead } from "../sales/lead.entity";
|
|
3
|
+
import { Email } from "../email.entity";
|
|
4
|
+
export declare class LeadEmail extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
leadId: string;
|
|
7
|
+
emailId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
lead: Lead;
|
|
10
|
+
email: Email;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseEntity } from "typeorm";
|
|
2
|
+
import { Lead } from "../sales/lead.entity";
|
|
3
|
+
import { Phone } from "../phone.entity";
|
|
4
|
+
export declare class LeadPhone extends BaseEntity {
|
|
5
|
+
id?: string;
|
|
6
|
+
leadId: string;
|
|
7
|
+
phoneId: string;
|
|
8
|
+
relation: string;
|
|
9
|
+
lead: Lead;
|
|
10
|
+
phone: Phone;
|
|
11
|
+
}
|
package/dist/entities/index.d.ts
CHANGED
|
@@ -5,3 +5,13 @@ export * from "./refresh-token.entity";
|
|
|
5
5
|
export * from "./profile.entity";
|
|
6
6
|
export * from "./role.entity";
|
|
7
7
|
export * from "./permission.entity";
|
|
8
|
+
export * from "./sales/contact.entity";
|
|
9
|
+
export * from "./sales/lead.entity";
|
|
10
|
+
export * from "./sales/poliza.entity";
|
|
11
|
+
export * from "./phone.entity";
|
|
12
|
+
export * from "./email.entity";
|
|
13
|
+
export * from "./helpers/contact_phone.entity";
|
|
14
|
+
export * from "./helpers/contact_email.entity";
|
|
15
|
+
export * from "./helpers/contact_types.entity";
|
|
16
|
+
export * from "./helpers/contact_sources.entity";
|
|
17
|
+
export * from "./app_config/app-config.entity";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { BaseEntity } from "@common/database";
|
|
2
|
+
import { ContactEmail } from "../helpers/contact_email.entity";
|
|
3
|
+
import { ContactPhone } from "../helpers/contact_phone.entity";
|
|
4
|
+
import { ContactSource } from "../helpers/contact_sources.entity";
|
|
5
|
+
import { ContactType } from "../helpers/contact_types.entity";
|
|
6
|
+
import { User } from "../user.entity";
|
|
7
|
+
export declare class Contact extends BaseEntity {
|
|
8
|
+
curp: string;
|
|
9
|
+
idBitrix: number;
|
|
10
|
+
cua: string;
|
|
11
|
+
cargo: string;
|
|
12
|
+
fullName: string;
|
|
13
|
+
name: string;
|
|
14
|
+
lastName: string;
|
|
15
|
+
secondName: string;
|
|
16
|
+
photo: string;
|
|
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
|
+
sourceDescription: string;
|
|
34
|
+
assignedBy: User;
|
|
35
|
+
createdBy: User;
|
|
36
|
+
observador: User;
|
|
37
|
+
type: ContactType;
|
|
38
|
+
source: ContactSource;
|
|
39
|
+
phones?: ContactPhone[];
|
|
40
|
+
emails?: ContactEmail[];
|
|
41
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { BaseEntity } from "@common/database";
|
|
2
|
+
import { LeadEmail } from "../helpers/lead_email.entity";
|
|
3
|
+
import { LeadPhone } from "../helpers/lead_phone.entity";
|
|
4
|
+
import { User } from "../user.entity";
|
|
5
|
+
import { Contact } from "./contact.entity";
|
|
6
|
+
export declare class Lead extends BaseEntity {
|
|
7
|
+
curp: string;
|
|
8
|
+
idBitrix: number;
|
|
9
|
+
cua: string;
|
|
10
|
+
fullName: string;
|
|
11
|
+
name: string;
|
|
12
|
+
lastName: string;
|
|
13
|
+
secondName: string;
|
|
14
|
+
photo: string;
|
|
15
|
+
opportunity: number;
|
|
16
|
+
post: string;
|
|
17
|
+
address: string;
|
|
18
|
+
comments: string;
|
|
19
|
+
lead: string;
|
|
20
|
+
export: boolean;
|
|
21
|
+
originatorId: string;
|
|
22
|
+
originId: string;
|
|
23
|
+
originVersion: string;
|
|
24
|
+
birthdate: Date;
|
|
25
|
+
honorific: string;
|
|
26
|
+
hasPhone: boolean;
|
|
27
|
+
hasEmail: boolean;
|
|
28
|
+
hasImol: boolean;
|
|
29
|
+
faceId: string;
|
|
30
|
+
opened: boolean;
|
|
31
|
+
company: string;
|
|
32
|
+
statusId: string;
|
|
33
|
+
companyTitle: string;
|
|
34
|
+
accountCurrencyId: string;
|
|
35
|
+
title: string;
|
|
36
|
+
source: string;
|
|
37
|
+
sourceDescription: string;
|
|
38
|
+
isReturnCustomer: boolean;
|
|
39
|
+
isManualOpportunity: boolean;
|
|
40
|
+
assignedBy: User;
|
|
41
|
+
createdBy: User;
|
|
42
|
+
observador: User;
|
|
43
|
+
contact: Contact;
|
|
44
|
+
phones?: LeadPhone[];
|
|
45
|
+
emails?: LeadEmail[];
|
|
46
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { BaseEntity } from "@common/database";
|
|
2
|
+
import { User } from "../user.entity";
|
|
3
|
+
import { Contact } from "./contact.entity";
|
|
4
|
+
export declare class Poliza extends BaseEntity {
|
|
5
|
+
idBitrix: number;
|
|
6
|
+
noPoliza: string;
|
|
7
|
+
title: string;
|
|
8
|
+
version: string;
|
|
9
|
+
vigenciaDesde: Date;
|
|
10
|
+
vigenciaHasta: Date;
|
|
11
|
+
beginDate: Date;
|
|
12
|
+
closeDate: Date;
|
|
13
|
+
opened?: boolean;
|
|
14
|
+
stageSemantic?: string;
|
|
15
|
+
stage: string;
|
|
16
|
+
isNew: boolean;
|
|
17
|
+
primaNeta?: number;
|
|
18
|
+
recargoFraccionado?: number;
|
|
19
|
+
derechoPoliza?: number;
|
|
20
|
+
iva?: number;
|
|
21
|
+
importePagar?: number;
|
|
22
|
+
isRecurring?: boolean;
|
|
23
|
+
isReturnCustomer?: boolean;
|
|
24
|
+
isRepeatedApproach?: boolean;
|
|
25
|
+
closed?: boolean;
|
|
26
|
+
typeId?: string;
|
|
27
|
+
opportunity?: number;
|
|
28
|
+
isManualOpportunity?: boolean;
|
|
29
|
+
currencyId?: string;
|
|
30
|
+
taxValue?: number;
|
|
31
|
+
opportunityAccount?: number;
|
|
32
|
+
taxValueAccount?: number;
|
|
33
|
+
accountCurrencyId?: string;
|
|
34
|
+
probability?: number;
|
|
35
|
+
comments?: string;
|
|
36
|
+
eventDate?: Date;
|
|
37
|
+
eventId?: string;
|
|
38
|
+
eventDescription?: string;
|
|
39
|
+
exchRate?: number;
|
|
40
|
+
product?: string;
|
|
41
|
+
sourceId: string;
|
|
42
|
+
sourceDescription: string;
|
|
43
|
+
contact: Contact;
|
|
44
|
+
assignedBy?: User;
|
|
45
|
+
createdBy?: User;
|
|
46
|
+
descripcionMovimiento?: string;
|
|
47
|
+
especificacionesPlan: string;
|
|
48
|
+
agenteReclamo?: User;
|
|
49
|
+
agenteReembolso?: User;
|
|
50
|
+
agenteProgramaciones?: User;
|
|
51
|
+
agenteReembolsoSubsecuente?: User;
|
|
52
|
+
agenteRescateFondos?: User;
|
|
53
|
+
agenteSaludGMM?: User;
|
|
54
|
+
agenteVida?: User;
|
|
55
|
+
agenteAutos?: User;
|
|
56
|
+
fechaReferidaPago?: Date;
|
|
57
|
+
modifyBy?: User;
|
|
58
|
+
}
|