@d19n/youfibre-odin-sdk 1.0.74 → 1.0.75
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/api-sdk-v2/LeadApi.d.ts +4 -4
- package/dist/api-sdk-v2/LeadApi.js +4 -4
- package/dist/db-sdk-v2/LeadDb.d.ts +4 -4
- package/dist/db-sdk-v2/LeadDb.js +4 -4
- package/dist/entities-v2/BillingAdjustment.d.ts +12 -12
- package/dist/entities-v2/BillingAdjustment.js +10 -10
- package/dist/entities-v2/Lead.d.ts +52 -53
- package/dist/entities-v2/Lead.js +30 -30
- package/package.json +2 -2
- package/src/api-sdk-v2/LeadApi.ts +18 -18
- package/src/db-sdk-v2/LeadDb.ts +22 -22
- package/src/entities-v2/BillingAdjustment.ts +16 -16
- package/src/entities-v2/Lead.ts +74 -75
|
@@ -16,14 +16,14 @@ export declare class LeadApi extends ApiProvider {
|
|
|
16
16
|
readonly contact: ApiRecordLinkManager;
|
|
17
17
|
readonly commission: ApiRecordLinkManager;
|
|
18
18
|
readonly file: ApiRecordLinkManager;
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
21
|
-
readonly call__lead: ApiRecordLinkManager;
|
|
22
|
-
readonly fingerprint__lead: ApiRecordLinkManager;
|
|
19
|
+
readonly workorder: ApiRecordLinkManager;
|
|
20
|
+
readonly crmdataset: ApiRecordLinkManager;
|
|
23
21
|
readonly visit: ApiRecordLinkManager;
|
|
24
22
|
readonly appointment: ApiRecordLinkManager;
|
|
23
|
+
readonly call: ApiRecordLinkManager;
|
|
25
24
|
readonly order: ApiRecordLinkManager;
|
|
26
25
|
readonly address: ApiRecordLinkManager;
|
|
26
|
+
readonly fingerprint: ApiRecordLinkManager;
|
|
27
27
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
28
28
|
setRecord(sourceRecord: any): void;
|
|
29
29
|
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
@@ -26,14 +26,14 @@ class LeadApi extends api_provider_1.ApiProvider {
|
|
|
26
26
|
this.contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Contact', 'Lead__Contact');
|
|
27
27
|
this.commission = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'BillingModule:Commission', 'Lead__Commission');
|
|
28
28
|
this.file = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'SchemaModule:File', 'Lead__File');
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.call__lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Lead', 'Call__Lead');
|
|
32
|
-
this.fingerprint__lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Lead', 'Fingerprint__Lead');
|
|
29
|
+
this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'FieldServiceModule:WorkOrder', 'WorkOrder__Lead');
|
|
30
|
+
this.crmdataset = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:CrmDataset', 'CrmDataset__Lead');
|
|
33
31
|
this.visit = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Visit', 'Lead__Visit');
|
|
34
32
|
this.appointment = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Appointment', 'Lead_Appointment');
|
|
33
|
+
this.call = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'NotificationModule:Call', 'Call__Lead');
|
|
35
34
|
this.order = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'OrderModule:Order', 'Lead_Order');
|
|
36
35
|
this.address = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Address', 'Lead_Address');
|
|
36
|
+
this.fingerprint = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Fingerprint', 'Fingerprint__Lead');
|
|
37
37
|
}
|
|
38
38
|
setRecord(sourceRecord) {
|
|
39
39
|
this.sourceRecord = sourceRecord;
|
|
@@ -16,14 +16,14 @@ export declare class LeadDb extends DbProvider {
|
|
|
16
16
|
readonly contact: DbRecordLinkManager;
|
|
17
17
|
readonly commission: DbRecordLinkManager;
|
|
18
18
|
readonly file: DbRecordLinkManager;
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
19
|
+
readonly workorder__lead: DbRecordLinkManager;
|
|
20
|
+
readonly crmdataset__lead: DbRecordLinkManager;
|
|
21
|
+
readonly call__lead: DbRecordLinkManager;
|
|
22
|
+
readonly fingerprint__lead: DbRecordLinkManager;
|
|
21
23
|
readonly visit: DbRecordLinkManager;
|
|
22
24
|
readonly appointment: DbRecordLinkManager;
|
|
23
|
-
readonly call: DbRecordLinkManager;
|
|
24
25
|
readonly order: DbRecordLinkManager;
|
|
25
26
|
readonly address: DbRecordLinkManager;
|
|
26
|
-
readonly fingerprint: DbRecordLinkManager;
|
|
27
27
|
constructor(principal: any, dbService: any);
|
|
28
28
|
setRecord(sourceRecord: any): void;
|
|
29
29
|
searchRecords(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/db.interfaces").OdinSearchResponse<any>>;
|
package/dist/db-sdk-v2/LeadDb.js
CHANGED
|
@@ -27,14 +27,14 @@ class LeadDb extends db_provider_1.DbProvider {
|
|
|
27
27
|
this.contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'CrmModule:Contact', 'Lead__Contact');
|
|
28
28
|
this.commission = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'BillingModule:Commission', 'Lead__Commission');
|
|
29
29
|
this.file = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'SchemaModule:File', 'Lead__File');
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
30
|
+
this.workorder__lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'CrmModule:Lead', 'WorkOrder__Lead');
|
|
31
|
+
this.crmdataset__lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'CrmModule:Lead', 'CrmDataset__Lead');
|
|
32
|
+
this.call__lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'CrmModule:Lead', 'Call__Lead');
|
|
33
|
+
this.fingerprint__lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'CrmModule:Lead', 'Fingerprint__Lead');
|
|
32
34
|
this.visit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'CrmModule:Visit', 'Lead__Visit');
|
|
33
35
|
this.appointment = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'CrmModule:Appointment', 'Lead_Appointment');
|
|
34
|
-
this.call = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'NotificationModule:Call', 'Call__Lead');
|
|
35
36
|
this.order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'OrderModule:Order', 'Lead_Order');
|
|
36
37
|
this.address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'CrmModule:Address', 'Lead_Address');
|
|
37
|
-
this.fingerprint = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'CrmModule:Fingerprint', 'Fingerprint__Lead');
|
|
38
38
|
}
|
|
39
39
|
setRecord(sourceRecord) {
|
|
40
40
|
this.sourceRecord = sourceRecord;
|
|
@@ -7,10 +7,6 @@ import { FileProperties } from './File';
|
|
|
7
7
|
export declare enum BillingAdjustmentEntityTypes {
|
|
8
8
|
DEFAULT = "DEFAULT"
|
|
9
9
|
}
|
|
10
|
-
export declare enum BillingAdjustmentDiscountType {
|
|
11
|
-
AMOUNT = "AMOUNT",
|
|
12
|
-
PERCENT = "PERCENT"
|
|
13
|
-
}
|
|
14
10
|
export declare enum BillingAdjustmentReason {
|
|
15
11
|
BILLING_DATE_CHANGE = "BILLING_DATE_CHANGE",
|
|
16
12
|
BILLING_DAY_ADJUSMENT_LEGACY = "BILLING_DAY_ADJUSTMENT",
|
|
@@ -26,21 +22,25 @@ export declare enum BillingAdjustmentReason {
|
|
|
26
22
|
RETENTION_DEAL = "RETENTION_DEAL",
|
|
27
23
|
SALES_MISSELLING_ADJUSTMENT = "SALES_MISSELLING_ADJUSTMENT"
|
|
28
24
|
}
|
|
25
|
+
export declare enum BillingAdjustmentDiscountType {
|
|
26
|
+
AMOUNT = "AMOUNT",
|
|
27
|
+
PERCENT = "PERCENT"
|
|
28
|
+
}
|
|
29
29
|
export declare enum BillingAdjustmentPropertyKeys {
|
|
30
|
-
|
|
30
|
+
FreePeriodLength = "FreePeriodLength",
|
|
31
|
+
Reason = "Reason",
|
|
32
|
+
DiscountValue = "DiscountValue",
|
|
31
33
|
DiscountLength = "DiscountLength",
|
|
32
34
|
DiscountType = "DiscountType",
|
|
33
|
-
|
|
34
|
-
FreePeriodLength = "FreePeriodLength",
|
|
35
|
-
Reason = "Reason"
|
|
35
|
+
Description = "Description"
|
|
36
36
|
}
|
|
37
37
|
export interface BillingAdjustmentProperties {
|
|
38
|
-
Description: string;
|
|
39
|
-
DiscountLength: number;
|
|
40
|
-
DiscountType: BillingAdjustmentDiscountType;
|
|
41
|
-
DiscountValue: number;
|
|
42
38
|
FreePeriodLength?: number;
|
|
43
39
|
Reason: BillingAdjustmentReason;
|
|
40
|
+
DiscountValue: number;
|
|
41
|
+
DiscountLength: number;
|
|
42
|
+
DiscountType: BillingAdjustmentDiscountType;
|
|
43
|
+
Description: string;
|
|
44
44
|
}
|
|
45
45
|
export interface BillingAdjustment {
|
|
46
46
|
id: string;
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateBillingAdjustmentDto = exports.CreateBillingAdjustmentDto = exports.BillingAdjustmentPropertyKeys = exports.
|
|
3
|
+
exports.UpdateBillingAdjustmentDto = exports.CreateBillingAdjustmentDto = exports.BillingAdjustmentPropertyKeys = exports.BillingAdjustmentDiscountType = exports.BillingAdjustmentReason = exports.BillingAdjustmentEntityTypes = void 0;
|
|
4
4
|
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
5
|
var BillingAdjustmentEntityTypes;
|
|
6
6
|
(function (BillingAdjustmentEntityTypes) {
|
|
7
7
|
BillingAdjustmentEntityTypes["DEFAULT"] = "DEFAULT";
|
|
8
8
|
})(BillingAdjustmentEntityTypes || (exports.BillingAdjustmentEntityTypes = BillingAdjustmentEntityTypes = {}));
|
|
9
|
-
var BillingAdjustmentDiscountType;
|
|
10
|
-
(function (BillingAdjustmentDiscountType) {
|
|
11
|
-
BillingAdjustmentDiscountType["AMOUNT"] = "AMOUNT";
|
|
12
|
-
BillingAdjustmentDiscountType["PERCENT"] = "PERCENT";
|
|
13
|
-
})(BillingAdjustmentDiscountType || (exports.BillingAdjustmentDiscountType = BillingAdjustmentDiscountType = {}));
|
|
14
9
|
var BillingAdjustmentReason;
|
|
15
10
|
(function (BillingAdjustmentReason) {
|
|
16
11
|
BillingAdjustmentReason["BILLING_DATE_CHANGE"] = "BILLING_DATE_CHANGE";
|
|
@@ -27,14 +22,19 @@ var BillingAdjustmentReason;
|
|
|
27
22
|
BillingAdjustmentReason["RETENTION_DEAL"] = "RETENTION_DEAL";
|
|
28
23
|
BillingAdjustmentReason["SALES_MISSELLING_ADJUSTMENT"] = "SALES_MISSELLING_ADJUSTMENT";
|
|
29
24
|
})(BillingAdjustmentReason || (exports.BillingAdjustmentReason = BillingAdjustmentReason = {}));
|
|
25
|
+
var BillingAdjustmentDiscountType;
|
|
26
|
+
(function (BillingAdjustmentDiscountType) {
|
|
27
|
+
BillingAdjustmentDiscountType["AMOUNT"] = "AMOUNT";
|
|
28
|
+
BillingAdjustmentDiscountType["PERCENT"] = "PERCENT";
|
|
29
|
+
})(BillingAdjustmentDiscountType || (exports.BillingAdjustmentDiscountType = BillingAdjustmentDiscountType = {}));
|
|
30
30
|
var BillingAdjustmentPropertyKeys;
|
|
31
31
|
(function (BillingAdjustmentPropertyKeys) {
|
|
32
|
-
BillingAdjustmentPropertyKeys["Description"] = "Description";
|
|
33
|
-
BillingAdjustmentPropertyKeys["DiscountLength"] = "DiscountLength";
|
|
34
|
-
BillingAdjustmentPropertyKeys["DiscountType"] = "DiscountType";
|
|
35
|
-
BillingAdjustmentPropertyKeys["DiscountValue"] = "DiscountValue";
|
|
36
32
|
BillingAdjustmentPropertyKeys["FreePeriodLength"] = "FreePeriodLength";
|
|
37
33
|
BillingAdjustmentPropertyKeys["Reason"] = "Reason";
|
|
34
|
+
BillingAdjustmentPropertyKeys["DiscountValue"] = "DiscountValue";
|
|
35
|
+
BillingAdjustmentPropertyKeys["DiscountLength"] = "DiscountLength";
|
|
36
|
+
BillingAdjustmentPropertyKeys["DiscountType"] = "DiscountType";
|
|
37
|
+
BillingAdjustmentPropertyKeys["Description"] = "Description";
|
|
38
38
|
})(BillingAdjustmentPropertyKeys || (exports.BillingAdjustmentPropertyKeys = BillingAdjustmentPropertyKeys = {}));
|
|
39
39
|
class CreateBillingAdjustmentDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
40
40
|
constructor() {
|
|
@@ -19,6 +19,11 @@ import { FingerprintProperties } from './Fingerprint';
|
|
|
19
19
|
export declare enum LeadEntityTypes {
|
|
20
20
|
DEFAULT = "DEFAULT"
|
|
21
21
|
}
|
|
22
|
+
export declare enum LeadType {
|
|
23
|
+
BUSINESS = "BUSINESS",
|
|
24
|
+
LANDLORD = "LANDLORD",
|
|
25
|
+
RESIDENTIAL = "RESIDENTIAL"
|
|
26
|
+
}
|
|
22
27
|
export declare enum LeadSource {
|
|
23
28
|
COMMUNITY_TEAM = "COMMUNITY_TEAM",
|
|
24
29
|
FACEBOOK = "FACEBOOK",
|
|
@@ -33,83 +38,78 @@ export declare enum LeadSource {
|
|
|
33
38
|
TWITTER = "TWITTER",
|
|
34
39
|
WEBSITE = "WEBSITE"
|
|
35
40
|
}
|
|
36
|
-
export declare enum LeadType {
|
|
37
|
-
BUSINESS = "BUSINESS",
|
|
38
|
-
LANDLORD = "LANDLORD",
|
|
39
|
-
RESIDENTIAL = "RESIDENTIAL"
|
|
40
|
-
}
|
|
41
41
|
export declare enum LeadVisit {
|
|
42
42
|
IN_CONTRACT = "IN_CONTRACT",
|
|
43
43
|
INTERESTED = "INTERESTED",
|
|
44
44
|
NOT_INTERESTED = "NOT_INTERESTED"
|
|
45
45
|
}
|
|
46
46
|
export declare enum LeadPropertyKeys {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
Type = "Type",
|
|
48
|
+
Source = "Source",
|
|
49
|
+
Name = "Name",
|
|
50
|
+
UtmSource = "UtmSource",
|
|
51
|
+
UtmMedium = "UtmMedium",
|
|
52
|
+
UtmCampaign = "UtmCampaign",
|
|
53
|
+
UtmTerm = "UtmTerm",
|
|
54
|
+
UtmContent = "UtmContent",
|
|
55
|
+
UtrNumber = "UTRNumber",
|
|
52
56
|
CompanyPosition = "CompanyPosition",
|
|
53
|
-
|
|
57
|
+
CompanyName = "CompanyName",
|
|
58
|
+
Vat = "VAT",
|
|
54
59
|
CurrentSpeed = "CurrentSpeed",
|
|
55
|
-
DataSetId = "DataSetId",
|
|
56
60
|
DateOfConsent = "DateOfConsent",
|
|
57
61
|
DsStatus = "DS_Status",
|
|
58
|
-
|
|
59
|
-
FirstName = "FirstName",
|
|
60
|
-
IsHot = "IsHot",
|
|
61
|
-
IsPhoneNumberValid = "IsPhoneNumberValid",
|
|
62
|
+
CallCount = "CallCount",
|
|
62
63
|
LandingPage = "LandingPage",
|
|
63
|
-
LastName = "LastName",
|
|
64
64
|
Latitude = "Latitude",
|
|
65
|
+
DataSetId = "DataSetId",
|
|
65
66
|
Longitude = "Longitude",
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
ConnexContactId = "ConnexContactId",
|
|
68
|
+
FirstName = "FirstName",
|
|
69
|
+
AcceptingInstalls = "AcceptingInstalls",
|
|
70
|
+
IsPhoneNumberValid = "IsPhoneNumberValid",
|
|
69
71
|
TotalValue = "TotalValue",
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
Vat = "VAT",
|
|
78
|
-
Visit = "Visit"
|
|
72
|
+
Visit = "Visit",
|
|
73
|
+
IsHot = "IsHot",
|
|
74
|
+
Comment = "Comment",
|
|
75
|
+
EmailAddress = "EmailAddress",
|
|
76
|
+
LastName = "LastName",
|
|
77
|
+
AddedToMaxContact = "AddedToMaxContact",
|
|
78
|
+
MaxContactDeactivated = "MaxContactDeactivated"
|
|
79
79
|
}
|
|
80
80
|
export interface LeadProperties {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
Type: LeadType;
|
|
82
|
+
Source?: LeadSource;
|
|
83
|
+
Name?: string;
|
|
84
|
+
UtmSource?: string;
|
|
85
|
+
UtmMedium?: string;
|
|
86
|
+
UtmCampaign?: string;
|
|
87
|
+
UtmTerm?: string;
|
|
88
|
+
UtmContent?: string;
|
|
89
|
+
UtrNumber?: string;
|
|
86
90
|
CompanyPosition?: string;
|
|
87
|
-
|
|
91
|
+
CompanyName?: string;
|
|
92
|
+
Vat?: number;
|
|
88
93
|
CurrentSpeed?: number;
|
|
89
|
-
DataSetId?: string;
|
|
90
94
|
DateOfConsent?: Date;
|
|
91
95
|
DsStatus?: string;
|
|
92
|
-
|
|
93
|
-
FirstName?: string;
|
|
94
|
-
IsHot?: boolean;
|
|
95
|
-
IsPhoneNumberValid?: boolean;
|
|
96
|
+
CallCount?: number;
|
|
96
97
|
LandingPage?: string;
|
|
97
|
-
LastName?: string;
|
|
98
98
|
Latitude?: string;
|
|
99
|
+
DataSetId?: string;
|
|
99
100
|
Longitude?: string;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
ConnexContactId?: string;
|
|
102
|
+
FirstName?: string;
|
|
103
|
+
AcceptingInstalls?: boolean;
|
|
104
|
+
IsPhoneNumberValid?: boolean;
|
|
103
105
|
TotalValue?: number;
|
|
104
|
-
Type: LeadType;
|
|
105
|
-
UtmCampaign?: string;
|
|
106
|
-
UtmContent?: string;
|
|
107
|
-
UtmMedium?: string;
|
|
108
|
-
UtmSource?: string;
|
|
109
|
-
UtmTerm?: string;
|
|
110
|
-
UtrNumber?: string;
|
|
111
|
-
Vat?: number;
|
|
112
106
|
Visit?: LeadVisit;
|
|
107
|
+
IsHot?: boolean;
|
|
108
|
+
Comment?: string;
|
|
109
|
+
EmailAddress: string;
|
|
110
|
+
LastName?: string;
|
|
111
|
+
AddedToMaxContact?: boolean;
|
|
112
|
+
MaxContactDeactivated?: boolean;
|
|
113
113
|
}
|
|
114
114
|
export interface Lead {
|
|
115
115
|
id: string;
|
|
@@ -144,7 +144,6 @@ export interface Lead {
|
|
|
144
144
|
};
|
|
145
145
|
properties: LeadProperties;
|
|
146
146
|
Organization: OdinLink<LinkedOdinRecord<OrganizationProperties>>;
|
|
147
|
-
Lead: OdinLink<LinkedOdinRecord<LeadProperties>>;
|
|
148
147
|
Offer: OdinLink<LinkedOdinRecord<OfferProperties>>;
|
|
149
148
|
Discount: OdinLink<LinkedOdinRecord<DiscountProperties>>;
|
|
150
149
|
Note: OdinLink<LinkedOdinRecord<NoteProperties>>;
|
package/dist/entities-v2/Lead.js
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateLeadDto = exports.CreateLeadDto = exports.LeadPropertyKeys = exports.LeadVisit = exports.
|
|
3
|
+
exports.UpdateLeadDto = exports.CreateLeadDto = exports.LeadPropertyKeys = exports.LeadVisit = exports.LeadSource = exports.LeadType = exports.LeadEntityTypes = void 0;
|
|
4
4
|
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
5
|
var LeadEntityTypes;
|
|
6
6
|
(function (LeadEntityTypes) {
|
|
7
7
|
LeadEntityTypes["DEFAULT"] = "DEFAULT";
|
|
8
8
|
})(LeadEntityTypes || (exports.LeadEntityTypes = LeadEntityTypes = {}));
|
|
9
|
+
var LeadType;
|
|
10
|
+
(function (LeadType) {
|
|
11
|
+
LeadType["BUSINESS"] = "BUSINESS";
|
|
12
|
+
LeadType["LANDLORD"] = "LANDLORD";
|
|
13
|
+
LeadType["RESIDENTIAL"] = "RESIDENTIAL";
|
|
14
|
+
})(LeadType || (exports.LeadType = LeadType = {}));
|
|
9
15
|
var LeadSource;
|
|
10
16
|
(function (LeadSource) {
|
|
11
17
|
LeadSource["COMMUNITY_TEAM"] = "COMMUNITY_TEAM";
|
|
@@ -21,12 +27,6 @@ var LeadSource;
|
|
|
21
27
|
LeadSource["TWITTER"] = "TWITTER";
|
|
22
28
|
LeadSource["WEBSITE"] = "WEBSITE";
|
|
23
29
|
})(LeadSource || (exports.LeadSource = LeadSource = {}));
|
|
24
|
-
var LeadType;
|
|
25
|
-
(function (LeadType) {
|
|
26
|
-
LeadType["BUSINESS"] = "BUSINESS";
|
|
27
|
-
LeadType["LANDLORD"] = "LANDLORD";
|
|
28
|
-
LeadType["RESIDENTIAL"] = "RESIDENTIAL";
|
|
29
|
-
})(LeadType || (exports.LeadType = LeadType = {}));
|
|
30
30
|
var LeadVisit;
|
|
31
31
|
(function (LeadVisit) {
|
|
32
32
|
LeadVisit["IN_CONTRACT"] = "IN_CONTRACT";
|
|
@@ -35,38 +35,38 @@ var LeadVisit;
|
|
|
35
35
|
})(LeadVisit || (exports.LeadVisit = LeadVisit = {}));
|
|
36
36
|
var LeadPropertyKeys;
|
|
37
37
|
(function (LeadPropertyKeys) {
|
|
38
|
-
LeadPropertyKeys["
|
|
39
|
-
LeadPropertyKeys["
|
|
40
|
-
LeadPropertyKeys["
|
|
41
|
-
LeadPropertyKeys["
|
|
42
|
-
LeadPropertyKeys["
|
|
38
|
+
LeadPropertyKeys["Type"] = "Type";
|
|
39
|
+
LeadPropertyKeys["Source"] = "Source";
|
|
40
|
+
LeadPropertyKeys["Name"] = "Name";
|
|
41
|
+
LeadPropertyKeys["UtmSource"] = "UtmSource";
|
|
42
|
+
LeadPropertyKeys["UtmMedium"] = "UtmMedium";
|
|
43
|
+
LeadPropertyKeys["UtmCampaign"] = "UtmCampaign";
|
|
44
|
+
LeadPropertyKeys["UtmTerm"] = "UtmTerm";
|
|
45
|
+
LeadPropertyKeys["UtmContent"] = "UtmContent";
|
|
46
|
+
LeadPropertyKeys["UtrNumber"] = "UTRNumber";
|
|
43
47
|
LeadPropertyKeys["CompanyPosition"] = "CompanyPosition";
|
|
44
|
-
LeadPropertyKeys["
|
|
48
|
+
LeadPropertyKeys["CompanyName"] = "CompanyName";
|
|
49
|
+
LeadPropertyKeys["Vat"] = "VAT";
|
|
45
50
|
LeadPropertyKeys["CurrentSpeed"] = "CurrentSpeed";
|
|
46
|
-
LeadPropertyKeys["DataSetId"] = "DataSetId";
|
|
47
51
|
LeadPropertyKeys["DateOfConsent"] = "DateOfConsent";
|
|
48
52
|
LeadPropertyKeys["DsStatus"] = "DS_Status";
|
|
49
|
-
LeadPropertyKeys["
|
|
50
|
-
LeadPropertyKeys["FirstName"] = "FirstName";
|
|
51
|
-
LeadPropertyKeys["IsHot"] = "IsHot";
|
|
52
|
-
LeadPropertyKeys["IsPhoneNumberValid"] = "IsPhoneNumberValid";
|
|
53
|
+
LeadPropertyKeys["CallCount"] = "CallCount";
|
|
53
54
|
LeadPropertyKeys["LandingPage"] = "LandingPage";
|
|
54
|
-
LeadPropertyKeys["LastName"] = "LastName";
|
|
55
55
|
LeadPropertyKeys["Latitude"] = "Latitude";
|
|
56
|
+
LeadPropertyKeys["DataSetId"] = "DataSetId";
|
|
56
57
|
LeadPropertyKeys["Longitude"] = "Longitude";
|
|
57
|
-
LeadPropertyKeys["
|
|
58
|
-
LeadPropertyKeys["
|
|
59
|
-
LeadPropertyKeys["
|
|
58
|
+
LeadPropertyKeys["ConnexContactId"] = "ConnexContactId";
|
|
59
|
+
LeadPropertyKeys["FirstName"] = "FirstName";
|
|
60
|
+
LeadPropertyKeys["AcceptingInstalls"] = "AcceptingInstalls";
|
|
61
|
+
LeadPropertyKeys["IsPhoneNumberValid"] = "IsPhoneNumberValid";
|
|
60
62
|
LeadPropertyKeys["TotalValue"] = "TotalValue";
|
|
61
|
-
LeadPropertyKeys["Type"] = "Type";
|
|
62
|
-
LeadPropertyKeys["UtmCampaign"] = "UtmCampaign";
|
|
63
|
-
LeadPropertyKeys["UtmContent"] = "UtmContent";
|
|
64
|
-
LeadPropertyKeys["UtmMedium"] = "UtmMedium";
|
|
65
|
-
LeadPropertyKeys["UtmSource"] = "UtmSource";
|
|
66
|
-
LeadPropertyKeys["UtmTerm"] = "UtmTerm";
|
|
67
|
-
LeadPropertyKeys["UtrNumber"] = "UTRNumber";
|
|
68
|
-
LeadPropertyKeys["Vat"] = "VAT";
|
|
69
63
|
LeadPropertyKeys["Visit"] = "Visit";
|
|
64
|
+
LeadPropertyKeys["IsHot"] = "IsHot";
|
|
65
|
+
LeadPropertyKeys["Comment"] = "Comment";
|
|
66
|
+
LeadPropertyKeys["EmailAddress"] = "EmailAddress";
|
|
67
|
+
LeadPropertyKeys["LastName"] = "LastName";
|
|
68
|
+
LeadPropertyKeys["AddedToMaxContact"] = "AddedToMaxContact";
|
|
69
|
+
LeadPropertyKeys["MaxContactDeactivated"] = "MaxContactDeactivated";
|
|
70
70
|
})(LeadPropertyKeys || (exports.LeadPropertyKeys = LeadPropertyKeys = {}));
|
|
71
71
|
class CreateLeadDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
72
72
|
constructor() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d19n/youfibre-odin-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.75",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "@d19n",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"typescript": "^5.4.5"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@d19n/odin-sdk-generator": "^1.0.
|
|
14
|
+
"@d19n/odin-sdk-generator": "^1.0.95",
|
|
15
15
|
"@d19n/odin-types": "^1.0.13",
|
|
16
16
|
"i": "^0.3.7",
|
|
17
17
|
"npm": "^10.9.1"
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
public readonly contact: ApiRecordLinkManager;
|
|
21
21
|
public readonly commission: ApiRecordLinkManager;
|
|
22
22
|
public readonly file: ApiRecordLinkManager;
|
|
23
|
-
public readonly
|
|
24
|
-
public readonly
|
|
25
|
-
public readonly call__lead: ApiRecordLinkManager;
|
|
26
|
-
public readonly fingerprint__lead: ApiRecordLinkManager;
|
|
23
|
+
public readonly workorder: ApiRecordLinkManager;
|
|
24
|
+
public readonly crmdataset: ApiRecordLinkManager;
|
|
27
25
|
public readonly visit: ApiRecordLinkManager;
|
|
28
26
|
public readonly appointment: ApiRecordLinkManager;
|
|
27
|
+
public readonly call: ApiRecordLinkManager;
|
|
29
28
|
public readonly order: ApiRecordLinkManager;
|
|
30
29
|
public readonly address: ApiRecordLinkManager;
|
|
30
|
+
public readonly fingerprint: ApiRecordLinkManager;
|
|
31
31
|
constructor(authParams?: OauthParams, protected readonly authToken?: string) {
|
|
32
32
|
super(authParams, authToken);
|
|
33
33
|
|
|
@@ -71,26 +71,16 @@
|
|
|
71
71
|
'SchemaModule:File',
|
|
72
72
|
'Lead__File'
|
|
73
73
|
);
|
|
74
|
-
this.
|
|
74
|
+
this.workorder = new ApiRecordLinkManager(
|
|
75
75
|
'CrmModule:Lead',
|
|
76
|
-
'
|
|
76
|
+
'FieldServiceModule:WorkOrder',
|
|
77
77
|
'WorkOrder__Lead'
|
|
78
78
|
);
|
|
79
|
-
this.
|
|
79
|
+
this.crmdataset = new ApiRecordLinkManager(
|
|
80
80
|
'CrmModule:Lead',
|
|
81
|
-
'CrmModule:
|
|
81
|
+
'CrmModule:CrmDataset',
|
|
82
82
|
'CrmDataset__Lead'
|
|
83
83
|
);
|
|
84
|
-
this.call__lead = new ApiRecordLinkManager(
|
|
85
|
-
'CrmModule:Lead',
|
|
86
|
-
'CrmModule:Lead',
|
|
87
|
-
'Call__Lead'
|
|
88
|
-
);
|
|
89
|
-
this.fingerprint__lead = new ApiRecordLinkManager(
|
|
90
|
-
'CrmModule:Lead',
|
|
91
|
-
'CrmModule:Lead',
|
|
92
|
-
'Fingerprint__Lead'
|
|
93
|
-
);
|
|
94
84
|
this.visit = new ApiRecordLinkManager(
|
|
95
85
|
'CrmModule:Lead',
|
|
96
86
|
'CrmModule:Visit',
|
|
@@ -101,6 +91,11 @@
|
|
|
101
91
|
'CrmModule:Appointment',
|
|
102
92
|
'Lead_Appointment'
|
|
103
93
|
);
|
|
94
|
+
this.call = new ApiRecordLinkManager(
|
|
95
|
+
'CrmModule:Lead',
|
|
96
|
+
'NotificationModule:Call',
|
|
97
|
+
'Call__Lead'
|
|
98
|
+
);
|
|
104
99
|
this.order = new ApiRecordLinkManager(
|
|
105
100
|
'CrmModule:Lead',
|
|
106
101
|
'OrderModule:Order',
|
|
@@ -111,6 +106,11 @@
|
|
|
111
106
|
'CrmModule:Address',
|
|
112
107
|
'Lead_Address'
|
|
113
108
|
);
|
|
109
|
+
this.fingerprint = new ApiRecordLinkManager(
|
|
110
|
+
'CrmModule:Lead',
|
|
111
|
+
'CrmModule:Fingerprint',
|
|
112
|
+
'Fingerprint__Lead'
|
|
113
|
+
);
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
|
package/src/db-sdk-v2/LeadDb.ts
CHANGED
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
public readonly contact: DbRecordLinkManager;
|
|
23
23
|
public readonly commission: DbRecordLinkManager;
|
|
24
24
|
public readonly file: DbRecordLinkManager;
|
|
25
|
-
public readonly
|
|
26
|
-
public readonly
|
|
25
|
+
public readonly workorder__lead: DbRecordLinkManager;
|
|
26
|
+
public readonly crmdataset__lead: DbRecordLinkManager;
|
|
27
|
+
public readonly call__lead: DbRecordLinkManager;
|
|
28
|
+
public readonly fingerprint__lead: DbRecordLinkManager;
|
|
27
29
|
public readonly visit: DbRecordLinkManager;
|
|
28
30
|
public readonly appointment: DbRecordLinkManager;
|
|
29
|
-
public readonly call: DbRecordLinkManager;
|
|
30
31
|
public readonly order: DbRecordLinkManager;
|
|
31
32
|
public readonly address: DbRecordLinkManager;
|
|
32
|
-
public readonly fingerprint: DbRecordLinkManager;
|
|
33
33
|
constructor(principal: any, dbService: any) {
|
|
34
34
|
super(principal, dbService);
|
|
35
35
|
|
|
@@ -92,20 +92,34 @@
|
|
|
92
92
|
'SchemaModule:File',
|
|
93
93
|
'Lead__File'
|
|
94
94
|
);
|
|
95
|
-
this.
|
|
95
|
+
this.workorder__lead = new DbRecordLinkManager(
|
|
96
96
|
this.principal,
|
|
97
97
|
this.dbService,
|
|
98
98
|
'CrmModule:Lead',
|
|
99
|
-
'
|
|
99
|
+
'CrmModule:Lead',
|
|
100
100
|
'WorkOrder__Lead'
|
|
101
101
|
);
|
|
102
|
-
this.
|
|
102
|
+
this.crmdataset__lead = new DbRecordLinkManager(
|
|
103
103
|
this.principal,
|
|
104
104
|
this.dbService,
|
|
105
105
|
'CrmModule:Lead',
|
|
106
|
-
'CrmModule:
|
|
106
|
+
'CrmModule:Lead',
|
|
107
107
|
'CrmDataset__Lead'
|
|
108
108
|
);
|
|
109
|
+
this.call__lead = new DbRecordLinkManager(
|
|
110
|
+
this.principal,
|
|
111
|
+
this.dbService,
|
|
112
|
+
'CrmModule:Lead',
|
|
113
|
+
'CrmModule:Lead',
|
|
114
|
+
'Call__Lead'
|
|
115
|
+
);
|
|
116
|
+
this.fingerprint__lead = new DbRecordLinkManager(
|
|
117
|
+
this.principal,
|
|
118
|
+
this.dbService,
|
|
119
|
+
'CrmModule:Lead',
|
|
120
|
+
'CrmModule:Lead',
|
|
121
|
+
'Fingerprint__Lead'
|
|
122
|
+
);
|
|
109
123
|
this.visit = new DbRecordLinkManager(
|
|
110
124
|
this.principal,
|
|
111
125
|
this.dbService,
|
|
@@ -120,13 +134,6 @@
|
|
|
120
134
|
'CrmModule:Appointment',
|
|
121
135
|
'Lead_Appointment'
|
|
122
136
|
);
|
|
123
|
-
this.call = new DbRecordLinkManager(
|
|
124
|
-
this.principal,
|
|
125
|
-
this.dbService,
|
|
126
|
-
'CrmModule:Lead',
|
|
127
|
-
'NotificationModule:Call',
|
|
128
|
-
'Call__Lead'
|
|
129
|
-
);
|
|
130
137
|
this.order = new DbRecordLinkManager(
|
|
131
138
|
this.principal,
|
|
132
139
|
this.dbService,
|
|
@@ -141,13 +148,6 @@
|
|
|
141
148
|
'CrmModule:Address',
|
|
142
149
|
'Lead_Address'
|
|
143
150
|
);
|
|
144
|
-
this.fingerprint = new DbRecordLinkManager(
|
|
145
|
-
this.principal,
|
|
146
|
-
this.dbService,
|
|
147
|
-
'CrmModule:Lead',
|
|
148
|
-
'CrmModule:Fingerprint',
|
|
149
|
-
'Fingerprint__Lead'
|
|
150
|
-
);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
|
|
@@ -11,10 +11,6 @@ export enum BillingAdjustmentEntityTypes {
|
|
|
11
11
|
DEFAULT = 'DEFAULT',
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export enum BillingAdjustmentDiscountType {
|
|
15
|
-
AMOUNT = 'AMOUNT',
|
|
16
|
-
PERCENT = 'PERCENT',
|
|
17
|
-
}
|
|
18
14
|
export enum BillingAdjustmentReason {
|
|
19
15
|
BILLING_DATE_CHANGE = 'BILLING_DATE_CHANGE',
|
|
20
16
|
BILLING_DAY_ADJUSMENT_LEGACY = 'BILLING_DAY_ADJUSTMENT',
|
|
@@ -30,28 +26,32 @@ export enum BillingAdjustmentReason {
|
|
|
30
26
|
RETENTION_DEAL = 'RETENTION_DEAL',
|
|
31
27
|
SALES_MISSELLING_ADJUSTMENT = 'SALES_MISSELLING_ADJUSTMENT',
|
|
32
28
|
}
|
|
29
|
+
export enum BillingAdjustmentDiscountType {
|
|
30
|
+
AMOUNT = 'AMOUNT',
|
|
31
|
+
PERCENT = 'PERCENT',
|
|
32
|
+
}
|
|
33
33
|
|
|
34
34
|
export enum BillingAdjustmentPropertyKeys {
|
|
35
|
-
Description = 'Description',
|
|
36
|
-
DiscountLength = 'DiscountLength',
|
|
37
|
-
DiscountType = 'DiscountType',
|
|
38
|
-
DiscountValue = 'DiscountValue',
|
|
39
35
|
FreePeriodLength = 'FreePeriodLength',
|
|
40
36
|
Reason = 'Reason',
|
|
37
|
+
DiscountValue = 'DiscountValue',
|
|
38
|
+
DiscountLength = 'DiscountLength',
|
|
39
|
+
DiscountType = 'DiscountType',
|
|
40
|
+
Description = 'Description',
|
|
41
41
|
}
|
|
42
42
|
export interface BillingAdjustmentProperties {
|
|
43
|
-
//Describe why this billing adjustment being applied
|
|
44
|
-
Description: string
|
|
45
|
-
//the length of the discount
|
|
46
|
-
DiscountLength: number
|
|
47
|
-
//the type of discount
|
|
48
|
-
DiscountType: BillingAdjustmentDiscountType
|
|
49
|
-
//the value of the discount to be applied
|
|
50
|
-
DiscountValue: number
|
|
51
43
|
//The number of future invoices that should be free of charge
|
|
52
44
|
FreePeriodLength?: number
|
|
53
45
|
//the billing adjustment reason
|
|
54
46
|
Reason: BillingAdjustmentReason
|
|
47
|
+
//the value of the discount to be applied
|
|
48
|
+
DiscountValue: number
|
|
49
|
+
//the length of the discount
|
|
50
|
+
DiscountLength: number
|
|
51
|
+
//the type of discount
|
|
52
|
+
DiscountType: BillingAdjustmentDiscountType
|
|
53
|
+
//Describe why this billing adjustment being applied
|
|
54
|
+
Description: string
|
|
55
55
|
}
|
|
56
56
|
export interface BillingAdjustment {
|
|
57
57
|
id: string
|
package/src/entities-v2/Lead.ts
CHANGED
|
@@ -23,6 +23,11 @@ export enum LeadEntityTypes {
|
|
|
23
23
|
DEFAULT = 'DEFAULT',
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
export enum LeadType {
|
|
27
|
+
BUSINESS = 'BUSINESS',
|
|
28
|
+
LANDLORD = 'LANDLORD',
|
|
29
|
+
RESIDENTIAL = 'RESIDENTIAL',
|
|
30
|
+
}
|
|
26
31
|
export enum LeadSource {
|
|
27
32
|
COMMUNITY_TEAM = 'COMMUNITY_TEAM',
|
|
28
33
|
FACEBOOK = 'FACEBOOK',
|
|
@@ -37,11 +42,6 @@ export enum LeadSource {
|
|
|
37
42
|
TWITTER = 'TWITTER',
|
|
38
43
|
WEBSITE = 'WEBSITE',
|
|
39
44
|
}
|
|
40
|
-
export enum LeadType {
|
|
41
|
-
BUSINESS = 'BUSINESS',
|
|
42
|
-
LANDLORD = 'LANDLORD',
|
|
43
|
-
RESIDENTIAL = 'RESIDENTIAL',
|
|
44
|
-
}
|
|
45
45
|
export enum LeadVisit {
|
|
46
46
|
IN_CONTRACT = 'IN_CONTRACT',
|
|
47
47
|
INTERESTED = 'INTERESTED',
|
|
@@ -49,104 +49,104 @@ export enum LeadVisit {
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
export enum LeadPropertyKeys {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
52
|
+
Type = 'Type',
|
|
53
|
+
Source = 'Source',
|
|
54
|
+
Name = 'Name',
|
|
55
|
+
UtmSource = 'UtmSource',
|
|
56
|
+
UtmMedium = 'UtmMedium',
|
|
57
|
+
UtmCampaign = 'UtmCampaign',
|
|
58
|
+
UtmTerm = 'UtmTerm',
|
|
59
|
+
UtmContent = 'UtmContent',
|
|
60
|
+
UtrNumber = 'UTRNumber',
|
|
57
61
|
CompanyPosition = 'CompanyPosition',
|
|
58
|
-
|
|
62
|
+
CompanyName = 'CompanyName',
|
|
63
|
+
Vat = 'VAT',
|
|
59
64
|
CurrentSpeed = 'CurrentSpeed',
|
|
60
|
-
DataSetId = 'DataSetId',
|
|
61
65
|
DateOfConsent = 'DateOfConsent',
|
|
62
66
|
DsStatus = 'DS_Status',
|
|
63
|
-
|
|
64
|
-
FirstName = 'FirstName',
|
|
65
|
-
IsHot = 'IsHot',
|
|
66
|
-
IsPhoneNumberValid = 'IsPhoneNumberValid',
|
|
67
|
+
CallCount = 'CallCount',
|
|
67
68
|
LandingPage = 'LandingPage',
|
|
68
|
-
LastName = 'LastName',
|
|
69
69
|
Latitude = 'Latitude',
|
|
70
|
+
DataSetId = 'DataSetId',
|
|
70
71
|
Longitude = 'Longitude',
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
ConnexContactId = 'ConnexContactId',
|
|
73
|
+
FirstName = 'FirstName',
|
|
74
|
+
AcceptingInstalls = 'AcceptingInstalls',
|
|
75
|
+
IsPhoneNumberValid = 'IsPhoneNumberValid',
|
|
74
76
|
TotalValue = 'TotalValue',
|
|
75
|
-
Type = 'Type',
|
|
76
|
-
UtmCampaign = 'UtmCampaign',
|
|
77
|
-
UtmContent = 'UtmContent',
|
|
78
|
-
UtmMedium = 'UtmMedium',
|
|
79
|
-
UtmSource = 'UtmSource',
|
|
80
|
-
UtmTerm = 'UtmTerm',
|
|
81
|
-
UtrNumber = 'UTRNumber',
|
|
82
|
-
Vat = 'VAT',
|
|
83
77
|
Visit = 'Visit',
|
|
78
|
+
IsHot = 'IsHot',
|
|
79
|
+
Comment = 'Comment',
|
|
80
|
+
EmailAddress = 'EmailAddress',
|
|
81
|
+
LastName = 'LastName',
|
|
82
|
+
AddedToMaxContact = 'AddedToMaxContact',
|
|
83
|
+
MaxContactDeactivated = 'MaxContactDeactivated',
|
|
84
84
|
}
|
|
85
85
|
export interface LeadProperties {
|
|
86
|
-
//
|
|
87
|
-
|
|
88
|
-
//
|
|
89
|
-
|
|
90
|
-
//
|
|
91
|
-
|
|
92
|
-
//
|
|
93
|
-
|
|
94
|
-
//
|
|
95
|
-
|
|
86
|
+
//Type of lead
|
|
87
|
+
Type: LeadType
|
|
88
|
+
//Lead source
|
|
89
|
+
Source?: LeadSource
|
|
90
|
+
//Lead name
|
|
91
|
+
Name?: string
|
|
92
|
+
//Identifies which site sent the traffic, and is a required parameter
|
|
93
|
+
UtmSource?: string
|
|
94
|
+
//Identifies what type of link was used
|
|
95
|
+
UtmMedium?: string
|
|
96
|
+
//Identifies a specific product promotion or strategic campaign
|
|
97
|
+
UtmCampaign?: string
|
|
98
|
+
//Note the keywords for ads
|
|
99
|
+
UtmTerm?: string
|
|
100
|
+
//Used for A/B testing and content-targeted ads.
|
|
101
|
+
UtmContent?: string
|
|
102
|
+
//UTR Number
|
|
103
|
+
UtrNumber?: string
|
|
96
104
|
//company position
|
|
97
105
|
CompanyPosition?: string
|
|
98
|
-
//
|
|
99
|
-
|
|
106
|
+
//Company Name
|
|
107
|
+
CompanyName?: string
|
|
108
|
+
//VAT
|
|
109
|
+
Vat?: number
|
|
100
110
|
//current internet speed
|
|
101
111
|
CurrentSpeed?: number
|
|
102
|
-
//DataSetId
|
|
103
|
-
DataSetId?: string
|
|
104
112
|
//Date of consent
|
|
105
113
|
DateOfConsent?: Date
|
|
106
114
|
//the status of the lead in relation to the data set it is associated with
|
|
107
115
|
DsStatus?: string
|
|
108
|
-
//
|
|
109
|
-
|
|
110
|
-
//first name
|
|
111
|
-
FirstName?: string
|
|
112
|
-
//is this a hot lead
|
|
113
|
-
IsHot?: boolean
|
|
114
|
-
//IsPhoneNumberValid
|
|
115
|
-
IsPhoneNumberValid?: boolean
|
|
116
|
+
//The number of outbound calls made to the lead
|
|
117
|
+
CallCount?: number
|
|
116
118
|
//Landing Page
|
|
117
119
|
LandingPage?: string
|
|
118
|
-
//last name
|
|
119
|
-
LastName?: string
|
|
120
120
|
//latitude
|
|
121
121
|
Latitude?: string
|
|
122
|
+
//DataSetId
|
|
123
|
+
DataSetId?: string
|
|
122
124
|
//longitude
|
|
123
125
|
Longitude?: string
|
|
124
|
-
//
|
|
125
|
-
|
|
126
|
-
//
|
|
127
|
-
|
|
128
|
-
//
|
|
129
|
-
|
|
126
|
+
//ConnexContactId
|
|
127
|
+
ConnexContactId?: string
|
|
128
|
+
//first name
|
|
129
|
+
FirstName?: string
|
|
130
|
+
//If the order can be sold to and has an install schedule this will be true
|
|
131
|
+
AcceptingInstalls?: boolean
|
|
132
|
+
//IsPhoneNumberValid
|
|
133
|
+
IsPhoneNumberValid?: boolean
|
|
130
134
|
//total opportunity value
|
|
131
135
|
TotalValue?: number
|
|
132
|
-
//Type of lead
|
|
133
|
-
Type: LeadType
|
|
134
|
-
//Identifies a specific product promotion or strategic campaign
|
|
135
|
-
UtmCampaign?: string
|
|
136
|
-
//Used for A/B testing and content-targeted ads.
|
|
137
|
-
UtmContent?: string
|
|
138
|
-
//Identifies what type of link was used
|
|
139
|
-
UtmMedium?: string
|
|
140
|
-
//Identifies which site sent the traffic, and is a required parameter
|
|
141
|
-
UtmSource?: string
|
|
142
|
-
//Note the keywords for ads
|
|
143
|
-
UtmTerm?: string
|
|
144
|
-
//UTR Number
|
|
145
|
-
UtrNumber?: string
|
|
146
|
-
//VAT
|
|
147
|
-
Vat?: number
|
|
148
136
|
//lead visit outcome
|
|
149
137
|
Visit?: LeadVisit
|
|
138
|
+
//is this a hot lead
|
|
139
|
+
IsHot?: boolean
|
|
140
|
+
//Comment
|
|
141
|
+
Comment?: string
|
|
142
|
+
//email address
|
|
143
|
+
EmailAddress: string
|
|
144
|
+
//last name
|
|
145
|
+
LastName?: string
|
|
146
|
+
//boolean to determine if the lead was sent to the max contact system
|
|
147
|
+
AddedToMaxContact?: boolean
|
|
148
|
+
//deactivated in the max contact system
|
|
149
|
+
MaxContactDeactivated?: boolean
|
|
150
150
|
}
|
|
151
151
|
export interface Lead {
|
|
152
152
|
id: string
|
|
@@ -171,7 +171,6 @@ export enum LeadPropertyKeys {
|
|
|
171
171
|
links: {id: string, title: string[], entity: string}
|
|
172
172
|
properties: LeadProperties,
|
|
173
173
|
Organization: OdinLink<LinkedOdinRecord<OrganizationProperties>>,
|
|
174
|
-
Lead: OdinLink<LinkedOdinRecord<LeadProperties>>,
|
|
175
174
|
Offer: OdinLink<LinkedOdinRecord<OfferProperties>>,
|
|
176
175
|
Discount: OdinLink<LinkedOdinRecord<DiscountProperties>>,
|
|
177
176
|
Note: OdinLink<LinkedOdinRecord<NoteProperties>>,
|