@d19n/youfibre-odin-sdk 1.0.49 → 1.0.51
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/ContactApi.d.ts +15 -15
- package/dist/api-sdk-v2/ContactApi.js +15 -15
- package/dist/api-sdk-v2/FileApi.d.ts +55 -55
- package/dist/api-sdk-v2/FileApi.js +56 -56
- package/dist/api-sdk-v2/LeadApi.d.ts +4 -4
- package/dist/api-sdk-v2/LeadApi.js +4 -4
- package/dist/db-sdk-v2/FileDb.d.ts +55 -55
- package/dist/db-sdk-v2/FileDb.js +56 -56
- package/dist/entities-v2/AfpInvoiceFile.d.ts +0 -2
- package/dist/entities-v2/CsvFile.d.ts +0 -2
- package/dist/entities-v2/EmailFile.d.ts +0 -2
- package/dist/entities-v2/File.d.ts +0 -1
- package/dist/entities-v2/InvoiceFile.d.ts +0 -2
- package/dist/entities-v2/Lead.d.ts +53 -52
- package/dist/entities-v2/Lead.js +30 -30
- package/dist/entities-v2/NaProblemEvidenceFile.d.ts +0 -2
- package/dist/entities-v2/NaSolutionEvidenceFile.d.ts +0 -2
- package/dist/entities-v2/OpenreachA55File.d.ts +0 -2
- package/dist/entities-v2/Order.d.ts +126 -126
- package/dist/entities-v2/Order.js +72 -72
- package/dist/entities-v2/OtdrFile.d.ts +0 -2
- package/dist/entities-v2/Visit.d.ts +60 -60
- package/dist/entities-v2/Visit.js +49 -49
- package/dist/types-v1/Types.d.ts +1 -1
- package/dist/types-v1/Types.js +1 -1
- package/package.json +1 -1
- package/src/api-sdk-v2/ContactApi.ts +84 -84
- package/src/api-sdk-v2/FileApi.ts +173 -173
- package/src/api-sdk-v2/LeadApi.ts +18 -18
- package/src/db-sdk-v2/FileDb.ts +177 -177
- package/src/entities-v2/AfpInvoiceFile.ts +0 -2
- package/src/entities-v2/CsvFile.ts +0 -2
- package/src/entities-v2/EmailFile.ts +0 -2
- package/src/entities-v2/File.ts +0 -1
- package/src/entities-v2/InvoiceFile.ts +0 -2
- package/src/entities-v2/Lead.ts +75 -74
- package/src/entities-v2/NaProblemEvidenceFile.ts +0 -2
- package/src/entities-v2/NaSolutionEvidenceFile.ts +0 -2
- package/src/entities-v2/OpenreachA55File.ts +0 -2
- package/src/entities-v2/Order.ts +184 -184
- package/src/entities-v2/OtdrFile.ts +0 -2
- package/src/entities-v2/Visit.ts +75 -75
- package/src/types-v1/Types.ts +1 -1
package/dist/db-sdk-v2/FileDb.js
CHANGED
|
@@ -19,62 +19,62 @@ class FileDb extends db_provider_1.DbProvider {
|
|
|
19
19
|
this.entityName = 'File';
|
|
20
20
|
this.principal = principal;
|
|
21
21
|
this.dbService = dbService;
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
50
|
-
this.
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
54
|
-
this.
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
73
|
-
this.
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
22
|
+
this.appointment = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'CrmModule:Appointment', 'Appointment__File');
|
|
23
|
+
this.ugexternalaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:UgExternalAudit', 'UgExternalAudit_File');
|
|
24
|
+
this.yftoolaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:YfToolAudit', 'YfToolAudit_File');
|
|
25
|
+
this.wayleaveaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:WayleaveAudit', 'WayleaveAudit_File');
|
|
26
|
+
this.file__note = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'SupportModule:Note', 'File__Note');
|
|
27
|
+
this.note__file = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'SupportModule:Note', 'Note__File');
|
|
28
|
+
this.workorder = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:WorkOrder', 'WorkOrder__File');
|
|
29
|
+
this.internalinstallaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:InternalInstallAudit', 'InternalInstallAudit_File');
|
|
30
|
+
this.knowledgearticle = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'SupportModule:KnowledgeArticle', 'KnowledgeArticle__File');
|
|
31
|
+
this.case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'SupportModule:Case', 'Case__File');
|
|
32
|
+
this.lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'CrmModule:Lead', 'Lead__File');
|
|
33
|
+
this.contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'CrmModule:Contact', 'Contact__File');
|
|
34
|
+
this.order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'OrderModule:Order', 'Order__File');
|
|
35
|
+
this.billingrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'BillingModule:BillingRequest', 'BillingRequest__File');
|
|
36
|
+
this.transaction = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'BillingModule:Transaction', 'Transaction__File');
|
|
37
|
+
this.paymentmethod = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'BillingModule:PaymentMethod', 'PaymentMethod__File');
|
|
38
|
+
this.customerdeviceont = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'ServiceModule:CustomerDeviceOnt', 'CustomerDeviceOnt__File');
|
|
39
|
+
this.creditnote = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'BillingModule:CreditNote', 'CreditNote__File');
|
|
40
|
+
this.address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'CrmModule:Address', 'Address__File');
|
|
41
|
+
this.changereason = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:ChangeReason', 'ChangeReason__File');
|
|
42
|
+
this.discount = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'ProductModule:Discount', 'Discount__File');
|
|
43
|
+
this.paymentmethodrefund = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'BillingModule:PaymentMethodRefund', 'PaymentMethodRefund__File');
|
|
44
|
+
this.serviceappointment = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:ServiceAppointment', 'ServiceAppointment__File');
|
|
45
|
+
this.billingadjustment = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'OrderModule:BillingAdjustment', 'BillingAdjustment__File');
|
|
46
|
+
this.activity = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'SchemaModule:Activity', 'Activity__File');
|
|
47
|
+
this.netomniainstallverification = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:NetomniaInstallVerification', 'NetomniaInstallVerification__File');
|
|
48
|
+
this.netomniaftthservicevisitsheet = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:NetomniaFtthServiceVisitSheet', 'NetomniaFtthServiceVisitSheet__File');
|
|
49
|
+
this.netomniaftth1stageinstallaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:NetomniaFtth1StageInstallAudit', 'NetomniaFtth1StageInstallAudit__File');
|
|
50
|
+
this.customerdevicerouter = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'ServiceModule:CustomerDeviceRouter', 'CustomerDeviceRouter__File');
|
|
51
|
+
this.visit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'CrmModule:Visit', 'Visit__File');
|
|
52
|
+
this.netomniaftth2stageinstallaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:NetomniaFtth2StageInstallAudit', 'NetomniaFtth2StageInstallAudit__File');
|
|
53
|
+
this.yfstockcount = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:YfStockCount', 'YfStockCount__File');
|
|
54
|
+
this.yfequipmentcollection = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:YfEquipmentCollection', 'YfEquipmentCollection__File');
|
|
55
|
+
this.onetouchswitch = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'OrderModule:OneTouchSwitch', 'OneTouchSwitch_File');
|
|
56
|
+
this.yffieldservicevisit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:YfFieldServiceVisit', 'YfFieldServiceVisit__File');
|
|
57
|
+
this.remediationrequiredreason = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:RemediationRequiredReason', 'RemediationRequiredReason__File');
|
|
58
|
+
this.invoice = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'BillingModule:Invoice', 'Invoice__File');
|
|
59
|
+
this.yfvanaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:YfVanAudit', 'YfVanAudit_File');
|
|
60
|
+
this.fingerprint = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'CrmModule:Fingerprint', 'Fingerprint__File');
|
|
61
|
+
this.sweepermaintenanceaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:SweeperMaintenanceAudit', 'SweeperMaintenanceAudit__File');
|
|
62
|
+
this.blockagereporta55 = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:BlockageReportA55', 'BlockageReportA55__File');
|
|
63
|
+
this.uginstallationaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:UgInstallationAudit', 'UgInstallationAudit__File');
|
|
64
|
+
this.ohinstallationaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:OhInstallationAudit', 'OhInstallationAudit__File');
|
|
65
|
+
this.servicevisitaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:ServiceVisitAudit', 'ServiceVisitAudit__File');
|
|
66
|
+
this.ohauditofinstallation = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:OhAuditOfInstallation', 'OhAuditOfInstallation__File');
|
|
67
|
+
this.ugauditofinstallation = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:UgAuditOfInstallation', 'UgAuditOfInstallation__File');
|
|
68
|
+
this.ugretroaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:UgRetroAudit', 'UgRetroAudit__File');
|
|
69
|
+
this.ohretroaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:OhRetroAudit', 'OhRetroAudit__File');
|
|
70
|
+
this.remediationoutcomeform = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:RemediationOutcomeForm', 'RemediationOutcomeForm_File');
|
|
71
|
+
this.uginprogressaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:UgInProgressAudit', 'UgInProgressAudit_File');
|
|
72
|
+
this.ohinprogressaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:OhInProgressAudit', 'OhInProgressAudit_File');
|
|
73
|
+
this.blockagea55 = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:BlockageA55', 'BlockageA55_File');
|
|
74
|
+
this.overlayreala55 = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:OverlayRealA55', 'OverlayRealA55_File');
|
|
75
|
+
this.ohexternalaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:OhExternalAudit', 'OhExternalAudit_File');
|
|
76
|
+
this.email = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'NotificationModule:Email', 'Attachments');
|
|
77
|
+
this.message = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'NotificationModule:Message', 'Message_File');
|
|
78
78
|
}
|
|
79
79
|
setRecord(sourceRecord) {
|
|
80
80
|
this.sourceRecord = sourceRecord;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OdinPipelineStage, OdinGroup, OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
2
2
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
-
import { FileProperties } from './File';
|
|
4
3
|
import { AppointmentProperties } from './Appointment';
|
|
5
4
|
import { UgExternalAuditProperties } from './UgExternalAudit';
|
|
6
5
|
import { YfToolAuditProperties } from './YfToolAudit';
|
|
@@ -122,7 +121,6 @@ export interface AfpInvoiceFile {
|
|
|
122
121
|
entity: string;
|
|
123
122
|
};
|
|
124
123
|
properties: AfpInvoiceFileProperties;
|
|
125
|
-
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
126
124
|
Appointment: OdinLink<LinkedOdinRecord<AppointmentProperties>>;
|
|
127
125
|
UgExternalAudit: OdinLink<LinkedOdinRecord<UgExternalAuditProperties>>;
|
|
128
126
|
YfToolAudit: OdinLink<LinkedOdinRecord<YfToolAuditProperties>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OdinPipelineStage, OdinGroup, OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
2
2
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
-
import { FileProperties } from './File';
|
|
4
3
|
import { AppointmentProperties } from './Appointment';
|
|
5
4
|
import { UgExternalAuditProperties } from './UgExternalAudit';
|
|
6
5
|
import { YfToolAuditProperties } from './YfToolAudit';
|
|
@@ -122,7 +121,6 @@ export interface CsvFile {
|
|
|
122
121
|
entity: string;
|
|
123
122
|
};
|
|
124
123
|
properties: CsvFileProperties;
|
|
125
|
-
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
126
124
|
Appointment: OdinLink<LinkedOdinRecord<AppointmentProperties>>;
|
|
127
125
|
UgExternalAudit: OdinLink<LinkedOdinRecord<UgExternalAuditProperties>>;
|
|
128
126
|
YfToolAudit: OdinLink<LinkedOdinRecord<YfToolAuditProperties>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OdinPipelineStage, OdinGroup, OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
2
2
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
-
import { FileProperties } from './File';
|
|
4
3
|
import { AppointmentProperties } from './Appointment';
|
|
5
4
|
import { UgExternalAuditProperties } from './UgExternalAudit';
|
|
6
5
|
import { YfToolAuditProperties } from './YfToolAudit';
|
|
@@ -122,7 +121,6 @@ export interface EmailFile {
|
|
|
122
121
|
entity: string;
|
|
123
122
|
};
|
|
124
123
|
properties: EmailFileProperties;
|
|
125
|
-
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
126
124
|
Appointment: OdinLink<LinkedOdinRecord<AppointmentProperties>>;
|
|
127
125
|
UgExternalAudit: OdinLink<LinkedOdinRecord<UgExternalAuditProperties>>;
|
|
128
126
|
YfToolAudit: OdinLink<LinkedOdinRecord<YfToolAuditProperties>>;
|
|
@@ -133,7 +133,6 @@ export interface File {
|
|
|
133
133
|
entity: string;
|
|
134
134
|
};
|
|
135
135
|
properties: FileProperties;
|
|
136
|
-
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
137
136
|
Appointment: OdinLink<LinkedOdinRecord<AppointmentProperties>>;
|
|
138
137
|
UgExternalAudit: OdinLink<LinkedOdinRecord<UgExternalAuditProperties>>;
|
|
139
138
|
YfToolAudit: OdinLink<LinkedOdinRecord<YfToolAuditProperties>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OdinPipelineStage, OdinGroup, OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
2
2
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
-
import { FileProperties } from './File';
|
|
4
3
|
import { AppointmentProperties } from './Appointment';
|
|
5
4
|
import { UgExternalAuditProperties } from './UgExternalAudit';
|
|
6
5
|
import { YfToolAuditProperties } from './YfToolAudit';
|
|
@@ -122,7 +121,6 @@ export interface InvoiceFile {
|
|
|
122
121
|
entity: string;
|
|
123
122
|
};
|
|
124
123
|
properties: InvoiceFileProperties;
|
|
125
|
-
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
126
124
|
Appointment: OdinLink<LinkedOdinRecord<AppointmentProperties>>;
|
|
127
125
|
UgExternalAudit: OdinLink<LinkedOdinRecord<UgExternalAuditProperties>>;
|
|
128
126
|
YfToolAudit: OdinLink<LinkedOdinRecord<YfToolAuditProperties>>;
|
|
@@ -19,11 +19,6 @@ 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
|
-
}
|
|
27
22
|
export declare enum LeadSource {
|
|
28
23
|
COMMUNITY_TEAM = "COMMUNITY_TEAM",
|
|
29
24
|
FACEBOOK = "FACEBOOK",
|
|
@@ -38,78 +33,83 @@ export declare enum LeadSource {
|
|
|
38
33
|
TWITTER = "TWITTER",
|
|
39
34
|
WEBSITE = "WEBSITE"
|
|
40
35
|
}
|
|
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
|
-
UtmMedium = "UtmMedium",
|
|
52
|
-
UtmCampaign = "UtmCampaign",
|
|
53
|
-
UtmTerm = "UtmTerm",
|
|
54
|
-
UtmContent = "UtmContent",
|
|
55
|
-
UtrNumber = "UTRNumber",
|
|
56
|
-
CompanyPosition = "CompanyPosition",
|
|
47
|
+
AcceptingInstalls = "AcceptingInstalls",
|
|
48
|
+
AddedToMaxContact = "AddedToMaxContact",
|
|
49
|
+
CallCount = "CallCount",
|
|
50
|
+
Comment = "Comment",
|
|
57
51
|
CompanyName = "CompanyName",
|
|
58
|
-
|
|
52
|
+
CompanyPosition = "CompanyPosition",
|
|
53
|
+
ConnexContactId = "ConnexContactId",
|
|
59
54
|
CurrentSpeed = "CurrentSpeed",
|
|
55
|
+
DataSetId = "DataSetId",
|
|
60
56
|
DateOfConsent = "DateOfConsent",
|
|
61
57
|
DsStatus = "DS_Status",
|
|
62
|
-
|
|
58
|
+
EmailAddress = "EmailAddress",
|
|
59
|
+
FirstName = "FirstName",
|
|
60
|
+
IsHot = "IsHot",
|
|
61
|
+
IsPhoneNumberValid = "IsPhoneNumberValid",
|
|
63
62
|
LandingPage = "LandingPage",
|
|
63
|
+
LastName = "LastName",
|
|
64
64
|
Latitude = "Latitude",
|
|
65
|
-
DataSetId = "DataSetId",
|
|
66
65
|
Longitude = "Longitude",
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
IsPhoneNumberValid = "IsPhoneNumberValid",
|
|
66
|
+
MaxContactDeactivated = "MaxContactDeactivated",
|
|
67
|
+
Name = "Name",
|
|
68
|
+
Source = "Source",
|
|
71
69
|
TotalValue = "TotalValue",
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
70
|
+
Type = "Type",
|
|
71
|
+
UtmCampaign = "UtmCampaign",
|
|
72
|
+
UtmContent = "UtmContent",
|
|
73
|
+
UtmMedium = "UtmMedium",
|
|
74
|
+
UtmSource = "UtmSource",
|
|
75
|
+
UtmTerm = "UtmTerm",
|
|
76
|
+
UtrNumber = "UTRNumber",
|
|
77
|
+
Vat = "VAT",
|
|
78
|
+
Visit = "Visit"
|
|
79
79
|
}
|
|
80
80
|
export interface LeadProperties {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
UtmMedium?: string;
|
|
86
|
-
UtmCampaign?: string;
|
|
87
|
-
UtmTerm?: string;
|
|
88
|
-
UtmContent?: string;
|
|
89
|
-
UtrNumber?: string;
|
|
90
|
-
CompanyPosition?: string;
|
|
81
|
+
AcceptingInstalls?: boolean;
|
|
82
|
+
AddedToMaxContact?: boolean;
|
|
83
|
+
CallCount?: number;
|
|
84
|
+
Comment?: string;
|
|
91
85
|
CompanyName?: string;
|
|
92
|
-
|
|
86
|
+
CompanyPosition?: string;
|
|
87
|
+
ConnexContactId?: string;
|
|
93
88
|
CurrentSpeed?: number;
|
|
89
|
+
DataSetId?: string;
|
|
94
90
|
DateOfConsent?: Date;
|
|
95
91
|
DsStatus?: string;
|
|
96
|
-
|
|
92
|
+
EmailAddress: string;
|
|
93
|
+
FirstName?: string;
|
|
94
|
+
IsHot?: boolean;
|
|
95
|
+
IsPhoneNumberValid?: boolean;
|
|
97
96
|
LandingPage?: string;
|
|
97
|
+
LastName?: string;
|
|
98
98
|
Latitude?: string;
|
|
99
|
-
DataSetId?: string;
|
|
100
99
|
Longitude?: string;
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
IsPhoneNumberValid?: boolean;
|
|
100
|
+
MaxContactDeactivated?: boolean;
|
|
101
|
+
Name?: string;
|
|
102
|
+
Source?: LeadSource;
|
|
105
103
|
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;
|
|
106
112
|
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,6 +144,7 @@ export interface Lead {
|
|
|
144
144
|
};
|
|
145
145
|
properties: LeadProperties;
|
|
146
146
|
Organization: OdinLink<LinkedOdinRecord<OrganizationProperties>>;
|
|
147
|
+
Lead: OdinLink<LinkedOdinRecord<LeadProperties>>;
|
|
147
148
|
Offer: OdinLink<LinkedOdinRecord<OfferProperties>>;
|
|
148
149
|
Discount: OdinLink<LinkedOdinRecord<DiscountProperties>>;
|
|
149
150
|
Note: OdinLink<LinkedOdinRecord<NoteProperties>>;
|
package/dist/entities-v2/Lead.js
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
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.LeadType = exports.LeadSource = 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 = {}));
|
|
15
9
|
var LeadSource;
|
|
16
10
|
(function (LeadSource) {
|
|
17
11
|
LeadSource["COMMUNITY_TEAM"] = "COMMUNITY_TEAM";
|
|
@@ -27,6 +21,12 @@ var LeadSource;
|
|
|
27
21
|
LeadSource["TWITTER"] = "TWITTER";
|
|
28
22
|
LeadSource["WEBSITE"] = "WEBSITE";
|
|
29
23
|
})(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["UtmMedium"] = "UtmMedium";
|
|
43
|
-
LeadPropertyKeys["UtmCampaign"] = "UtmCampaign";
|
|
44
|
-
LeadPropertyKeys["UtmTerm"] = "UtmTerm";
|
|
45
|
-
LeadPropertyKeys["UtmContent"] = "UtmContent";
|
|
46
|
-
LeadPropertyKeys["UtrNumber"] = "UTRNumber";
|
|
47
|
-
LeadPropertyKeys["CompanyPosition"] = "CompanyPosition";
|
|
38
|
+
LeadPropertyKeys["AcceptingInstalls"] = "AcceptingInstalls";
|
|
39
|
+
LeadPropertyKeys["AddedToMaxContact"] = "AddedToMaxContact";
|
|
40
|
+
LeadPropertyKeys["CallCount"] = "CallCount";
|
|
41
|
+
LeadPropertyKeys["Comment"] = "Comment";
|
|
48
42
|
LeadPropertyKeys["CompanyName"] = "CompanyName";
|
|
49
|
-
LeadPropertyKeys["
|
|
43
|
+
LeadPropertyKeys["CompanyPosition"] = "CompanyPosition";
|
|
44
|
+
LeadPropertyKeys["ConnexContactId"] = "ConnexContactId";
|
|
50
45
|
LeadPropertyKeys["CurrentSpeed"] = "CurrentSpeed";
|
|
46
|
+
LeadPropertyKeys["DataSetId"] = "DataSetId";
|
|
51
47
|
LeadPropertyKeys["DateOfConsent"] = "DateOfConsent";
|
|
52
48
|
LeadPropertyKeys["DsStatus"] = "DS_Status";
|
|
53
|
-
LeadPropertyKeys["
|
|
49
|
+
LeadPropertyKeys["EmailAddress"] = "EmailAddress";
|
|
50
|
+
LeadPropertyKeys["FirstName"] = "FirstName";
|
|
51
|
+
LeadPropertyKeys["IsHot"] = "IsHot";
|
|
52
|
+
LeadPropertyKeys["IsPhoneNumberValid"] = "IsPhoneNumberValid";
|
|
54
53
|
LeadPropertyKeys["LandingPage"] = "LandingPage";
|
|
54
|
+
LeadPropertyKeys["LastName"] = "LastName";
|
|
55
55
|
LeadPropertyKeys["Latitude"] = "Latitude";
|
|
56
|
-
LeadPropertyKeys["DataSetId"] = "DataSetId";
|
|
57
56
|
LeadPropertyKeys["Longitude"] = "Longitude";
|
|
58
|
-
LeadPropertyKeys["
|
|
59
|
-
LeadPropertyKeys["
|
|
60
|
-
LeadPropertyKeys["
|
|
61
|
-
LeadPropertyKeys["IsPhoneNumberValid"] = "IsPhoneNumberValid";
|
|
57
|
+
LeadPropertyKeys["MaxContactDeactivated"] = "MaxContactDeactivated";
|
|
58
|
+
LeadPropertyKeys["Name"] = "Name";
|
|
59
|
+
LeadPropertyKeys["Source"] = "Source";
|
|
62
60
|
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";
|
|
63
69
|
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() {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OdinPipelineStage, OdinGroup, OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
2
2
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
-
import { FileProperties } from './File';
|
|
4
3
|
import { AppointmentProperties } from './Appointment';
|
|
5
4
|
import { UgExternalAuditProperties } from './UgExternalAudit';
|
|
6
5
|
import { YfToolAuditProperties } from './YfToolAudit';
|
|
@@ -122,7 +121,6 @@ export interface NaProblemEvidenceFile {
|
|
|
122
121
|
entity: string;
|
|
123
122
|
};
|
|
124
123
|
properties: NaProblemEvidenceFileProperties;
|
|
125
|
-
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
126
124
|
Appointment: OdinLink<LinkedOdinRecord<AppointmentProperties>>;
|
|
127
125
|
UgExternalAudit: OdinLink<LinkedOdinRecord<UgExternalAuditProperties>>;
|
|
128
126
|
YfToolAudit: OdinLink<LinkedOdinRecord<YfToolAuditProperties>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OdinPipelineStage, OdinGroup, OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
2
2
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
-
import { FileProperties } from './File';
|
|
4
3
|
import { AppointmentProperties } from './Appointment';
|
|
5
4
|
import { UgExternalAuditProperties } from './UgExternalAudit';
|
|
6
5
|
import { YfToolAuditProperties } from './YfToolAudit';
|
|
@@ -122,7 +121,6 @@ export interface NaSolutionEvidenceFile {
|
|
|
122
121
|
entity: string;
|
|
123
122
|
};
|
|
124
123
|
properties: NaSolutionEvidenceFileProperties;
|
|
125
|
-
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
126
124
|
Appointment: OdinLink<LinkedOdinRecord<AppointmentProperties>>;
|
|
127
125
|
UgExternalAudit: OdinLink<LinkedOdinRecord<UgExternalAuditProperties>>;
|
|
128
126
|
YfToolAudit: OdinLink<LinkedOdinRecord<YfToolAuditProperties>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OdinPipelineStage, OdinGroup, OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
2
2
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
-
import { FileProperties } from './File';
|
|
4
3
|
import { AppointmentProperties } from './Appointment';
|
|
5
4
|
import { UgExternalAuditProperties } from './UgExternalAudit';
|
|
6
5
|
import { YfToolAuditProperties } from './YfToolAudit';
|
|
@@ -122,7 +121,6 @@ export interface OpenreachA55File {
|
|
|
122
121
|
entity: string;
|
|
123
122
|
};
|
|
124
123
|
properties: OpenreachA55FileProperties;
|
|
125
|
-
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
126
124
|
Appointment: OdinLink<LinkedOdinRecord<AppointmentProperties>>;
|
|
127
125
|
UgExternalAudit: OdinLink<LinkedOdinRecord<UgExternalAuditProperties>>;
|
|
128
126
|
YfToolAudit: OdinLink<LinkedOdinRecord<YfToolAuditProperties>>;
|