@d19n/youfibre-odin-sdk 1.0.34 → 1.0.35
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/AddressApi.d.ts +1 -0
- package/dist/api-sdk-v2/AddressApi.js +1 -0
- package/dist/api-sdk-v2/AppointmentApi.d.ts +1 -0
- package/dist/api-sdk-v2/AppointmentApi.js +1 -0
- package/dist/api-sdk-v2/BlockageA55Api.d.ts +36 -0
- package/dist/api-sdk-v2/BlockageA55Api.js +103 -0
- package/dist/api-sdk-v2/ContactApi.d.ts +1 -1
- package/dist/api-sdk-v2/ContactApi.js +1 -1
- package/dist/api-sdk-v2/DashboardApi.d.ts +31 -0
- package/dist/api-sdk-v2/DashboardApi.js +98 -0
- package/dist/api-sdk-v2/KnowledgeArticleApi.d.ts +35 -0
- package/dist/api-sdk-v2/KnowledgeArticleApi.js +102 -0
- package/dist/api-sdk-v2/LeadApi.d.ts +1 -0
- package/dist/api-sdk-v2/LeadApi.js +1 -0
- package/dist/api-sdk-v2/NetomniaFtth2StageInstallAuditApi.d.ts +35 -0
- package/dist/api-sdk-v2/NetomniaFtth2StageInstallAuditApi.js +102 -0
- package/dist/api-sdk-v2/NoteApi.d.ts +8 -0
- package/dist/api-sdk-v2/NoteApi.js +8 -0
- package/dist/api-sdk-v2/OhRetroAuditApi.d.ts +35 -0
- package/dist/api-sdk-v2/OhRetroAuditApi.js +102 -0
- package/dist/api-sdk-v2/OrderApi.d.ts +1 -0
- package/dist/api-sdk-v2/OrderApi.js +1 -0
- package/dist/api-sdk-v2/RemediationOutcomeFormApi.d.ts +35 -0
- package/dist/api-sdk-v2/RemediationOutcomeFormApi.js +102 -0
- package/dist/api-sdk-v2/UgRetroAuditApi.d.ts +35 -0
- package/dist/api-sdk-v2/UgRetroAuditApi.js +102 -0
- package/dist/api-sdk-v2/UserApi.d.ts +1 -0
- package/dist/api-sdk-v2/UserApi.js +1 -0
- package/dist/api-sdk-v2/VisitApi.d.ts +38 -0
- package/dist/api-sdk-v2/VisitApi.js +105 -0
- package/dist/api-sdk-v2/WorkOrderApi.d.ts +6 -0
- package/dist/api-sdk-v2/WorkOrderApi.js +6 -0
- package/dist/api-sdk-v2/YfStockCountApi.d.ts +35 -0
- package/dist/api-sdk-v2/YfStockCountApi.js +102 -0
- package/dist/db-sdk-v2/AddressDb.d.ts +1 -0
- package/dist/db-sdk-v2/AddressDb.js +1 -0
- package/dist/db-sdk-v2/AppointmentDb.d.ts +1 -0
- package/dist/db-sdk-v2/AppointmentDb.js +1 -0
- package/dist/db-sdk-v2/BlockageA55Db.d.ts +27 -0
- package/dist/db-sdk-v2/BlockageA55Db.js +93 -0
- package/dist/db-sdk-v2/ContactDb.d.ts +15 -15
- package/dist/db-sdk-v2/ContactDb.js +15 -15
- package/dist/db-sdk-v2/DashboardDb.d.ts +22 -0
- package/dist/db-sdk-v2/DashboardDb.js +88 -0
- package/dist/db-sdk-v2/KnowledgeArticleDb.d.ts +26 -0
- package/dist/db-sdk-v2/KnowledgeArticleDb.js +92 -0
- package/dist/db-sdk-v2/LeadDb.d.ts +5 -4
- package/dist/db-sdk-v2/LeadDb.js +5 -4
- package/dist/db-sdk-v2/NetomniaFtth2StageInstallAuditDb.d.ts +26 -0
- package/dist/db-sdk-v2/NetomniaFtth2StageInstallAuditDb.js +92 -0
- package/dist/db-sdk-v2/NoteDb.d.ts +8 -0
- package/dist/db-sdk-v2/NoteDb.js +8 -0
- package/dist/db-sdk-v2/OhRetroAuditDb.d.ts +26 -0
- package/dist/db-sdk-v2/OhRetroAuditDb.js +92 -0
- package/dist/db-sdk-v2/OrderDb.d.ts +1 -0
- package/dist/db-sdk-v2/OrderDb.js +1 -0
- package/dist/db-sdk-v2/RemediationOutcomeFormDb.d.ts +26 -0
- package/dist/db-sdk-v2/RemediationOutcomeFormDb.js +92 -0
- package/dist/db-sdk-v2/UgRetroAuditDb.d.ts +26 -0
- package/dist/db-sdk-v2/UgRetroAuditDb.js +92 -0
- package/dist/db-sdk-v2/UserDb.d.ts +1 -0
- package/dist/db-sdk-v2/UserDb.js +1 -0
- package/dist/db-sdk-v2/VisitDb.d.ts +29 -0
- package/dist/db-sdk-v2/VisitDb.js +95 -0
- package/dist/db-sdk-v2/WorkOrderDb.d.ts +6 -0
- package/dist/db-sdk-v2/WorkOrderDb.js +6 -0
- package/dist/db-sdk-v2/YfStockCountDb.d.ts +26 -0
- package/dist/db-sdk-v2/YfStockCountDb.js +92 -0
- package/dist/entities-v2/Address.d.ts +2 -0
- package/dist/entities-v2/Appointment.d.ts +2 -0
- package/dist/entities-v2/BlockageA55.d.ts +205 -0
- package/dist/entities-v2/BlockageA55.js +134 -0
- package/dist/entities-v2/ChangeReason.d.ts +1 -0
- package/dist/entities-v2/ChangeReason.js +1 -0
- package/dist/entities-v2/CollectionWorkOrder.d.ts +4 -0
- package/dist/entities-v2/Contact.d.ts +2 -2
- package/dist/entities-v2/Dashboard.d.ts +41 -0
- package/dist/entities-v2/Dashboard.js +10 -0
- package/dist/entities-v2/DefaultAddress.d.ts +2 -0
- package/dist/entities-v2/DefaultAppointment.d.ts +2 -0
- package/dist/entities-v2/DefaultContact.d.ts +80 -78
- package/dist/entities-v2/DefaultContact.js +60 -60
- package/dist/entities-v2/DefaultCustomerDeviceOnt.d.ts +2 -0
- package/dist/entities-v2/DefaultDashboard.d.ts +38 -0
- package/dist/entities-v2/DefaultDashboard.js +6 -0
- package/dist/entities-v2/DefaultFile.d.ts +18 -0
- package/dist/entities-v2/DefaultLead.d.ts +2 -0
- package/dist/entities-v2/DefaultNote.d.ts +18 -0
- package/dist/entities-v2/DefaultOneTouchSwitch.d.ts +4 -0
- package/dist/entities-v2/DefaultOneTouchSwitch.js +1 -0
- package/dist/entities-v2/DefaultOrder.d.ts +4 -0
- package/dist/entities-v2/DefaultOrderItem.d.ts +2 -0
- package/dist/entities-v2/DefaultPaymentMethodRefund.d.ts +2 -0
- package/dist/entities-v2/DefaultServiceAppointment.d.ts +3 -1
- package/dist/entities-v2/DefaultServiceAppointment.js +1 -0
- package/dist/entities-v2/DefaultUser.d.ts +2 -0
- package/dist/entities-v2/DefaultVisit.d.ts +146 -0
- package/dist/entities-v2/DefaultVisit.js +89 -0
- package/dist/entities-v2/EmailFile.d.ts +18 -0
- package/dist/entities-v2/File.d.ts +16 -0
- package/dist/entities-v2/FinanceWorkOrder.d.ts +2 -0
- package/dist/entities-v2/GainingOneTouchSwitch.d.ts +4 -0
- package/dist/entities-v2/GainingOneTouchSwitch.js +1 -0
- package/dist/entities-v2/InspectionWorkOrder.d.ts +6 -0
- package/dist/entities-v2/InstallBusinessWorkOrder.d.ts +8 -0
- package/dist/entities-v2/InstallServiceWorkOrder.d.ts +2 -0
- package/dist/entities-v2/InstallWorkOrder.d.ts +10 -0
- package/dist/entities-v2/KnowledgeArticle.d.ts +92 -0
- package/dist/entities-v2/KnowledgeArticle.js +48 -0
- package/dist/entities-v2/Lead.d.ts +2 -0
- package/dist/entities-v2/LosingOneTouchSwitch.d.ts +4 -0
- package/dist/entities-v2/LosingOneTouchSwitch.js +1 -0
- package/dist/entities-v2/MandateBillingRequest.d.ts +2 -0
- package/dist/entities-v2/NetomniaFtth2StageInstallAudit.d.ts +217 -0
- package/dist/entities-v2/NetomniaFtth2StageInstallAudit.js +158 -0
- package/dist/entities-v2/NetworkAdjustmentWorkOrder.d.ts +4 -0
- package/dist/entities-v2/Note.d.ts +16 -0
- package/dist/entities-v2/OhRetroAudit.d.ts +153 -0
- package/dist/entities-v2/OhRetroAudit.js +106 -0
- package/dist/entities-v2/OneTouchSwitch.d.ts +2 -0
- package/dist/entities-v2/OneTouchSwitch.js +1 -0
- package/dist/entities-v2/Order.d.ts +2 -0
- package/dist/entities-v2/OutcomeFormBlockageA55.d.ts +200 -0
- package/dist/entities-v2/OutcomeFormBlockageA55.js +130 -0
- package/dist/entities-v2/OutcomeFormNetomniaFtth2StageInstallAudit.d.ts +212 -0
- package/dist/entities-v2/OutcomeFormNetomniaFtth2StageInstallAudit.js +154 -0
- package/dist/entities-v2/OutcomeFormOhInstallationAudit.d.ts +32 -32
- package/dist/entities-v2/OutcomeFormOhInstallationAudit.js +30 -30
- package/dist/entities-v2/OutcomeFormOhRetroAudit.d.ts +148 -0
- package/dist/entities-v2/OutcomeFormOhRetroAudit.js +102 -0
- package/dist/entities-v2/OutcomeFormOverlayRealA55.d.ts +40 -40
- package/dist/entities-v2/OutcomeFormOverlayRealA55.js +38 -38
- package/dist/entities-v2/OutcomeFormRemediationOutcomeForm.d.ts +138 -0
- package/dist/entities-v2/OutcomeFormRemediationOutcomeForm.js +69 -0
- package/dist/entities-v2/OutcomeFormRemediationRequiredReason.d.ts +0 -2
- package/dist/entities-v2/OutcomeFormRemediationRequiredReason.js +0 -2
- package/dist/entities-v2/OutcomeFormServiceVisitAudit.d.ts +37 -37
- package/dist/entities-v2/OutcomeFormServiceVisitAudit.js +28 -28
- package/dist/entities-v2/OutcomeFormUgRetroAudit.d.ts +127 -0
- package/dist/entities-v2/OutcomeFormUgRetroAudit.js +82 -0
- package/dist/entities-v2/OutcomeFormYfFieldServiceVisit.d.ts +10 -10
- package/dist/entities-v2/OutcomeFormYfFieldServiceVisit.js +9 -9
- package/dist/entities-v2/OutcomeFormYfStockCount.d.ts +98 -0
- package/dist/entities-v2/OutcomeFormYfStockCount.js +37 -0
- package/dist/entities-v2/OverlayRealA55.d.ts +40 -40
- package/dist/entities-v2/OverlayRealA55.js +38 -38
- package/dist/entities-v2/PaymentBillingRequest.d.ts +2 -0
- package/dist/entities-v2/PlanningWorkOrder.d.ts +2 -0
- package/dist/entities-v2/PrePullWorkOrder.d.ts +4 -0
- package/dist/entities-v2/ReleaseNoteKnowledgeArticle.d.ts +89 -0
- package/dist/entities-v2/ReleaseNoteKnowledgeArticle.js +43 -0
- package/dist/entities-v2/RemediationOutcomeForm.d.ts +143 -0
- package/dist/entities-v2/RemediationOutcomeForm.js +73 -0
- package/dist/entities-v2/RemediationRequiredReason.d.ts +0 -2
- package/dist/entities-v2/RemediationRequiredReason.js +0 -2
- package/dist/entities-v2/RemediationWorkOrder.d.ts +6 -0
- package/dist/entities-v2/SaRescheduleChangeReason.d.ts +1 -0
- package/dist/entities-v2/SaRescheduleChangeReason.js +1 -0
- package/dist/entities-v2/ServiceAppointment.d.ts +3 -1
- package/dist/entities-v2/ServiceAppointment.js +1 -0
- package/dist/entities-v2/ServiceWorkOrder.d.ts +4 -0
- package/dist/entities-v2/UgRetroAudit.d.ts +132 -0
- package/dist/entities-v2/UgRetroAudit.js +86 -0
- package/dist/entities-v2/User.d.ts +2 -0
- package/dist/entities-v2/UserGuideKnowledgeArticle.d.ts +88 -0
- package/dist/entities-v2/UserGuideKnowledgeArticle.js +43 -0
- package/dist/entities-v2/Visit.d.ts +149 -0
- package/dist/entities-v2/Visit.js +93 -0
- package/dist/entities-v2/WayleaveWorkOrder.d.ts +2 -0
- package/dist/entities-v2/WorkOrder.d.ts +12 -0
- package/dist/entities-v2/YfStockCount.d.ts +103 -0
- package/dist/entities-v2/YfStockCount.js +41 -0
- package/dist/types-v1/Types.d.ts +14 -5
- package/dist/types-v1/Types.js +14 -5
- package/package.json +1 -1
- package/src/api-sdk-v2/AddressApi.ts +6 -0
- package/src/api-sdk-v2/AppointmentApi.ts +6 -0
- package/src/api-sdk-v2/BlockageA55Api.ts +129 -0
- package/src/api-sdk-v2/ContactApi.ts +6 -6
- package/src/api-sdk-v2/DashboardApi.ts +105 -0
- package/src/api-sdk-v2/KnowledgeArticleApi.ts +123 -0
- package/src/api-sdk-v2/LeadApi.ts +6 -0
- package/src/api-sdk-v2/NetomniaFtth2StageInstallAuditApi.ts +123 -0
- package/src/api-sdk-v2/NoteApi.ts +48 -0
- package/src/api-sdk-v2/OhRetroAuditApi.ts +123 -0
- package/src/api-sdk-v2/OrderApi.ts +6 -0
- package/src/api-sdk-v2/RemediationOutcomeFormApi.ts +123 -0
- package/src/api-sdk-v2/UgRetroAuditApi.ts +123 -0
- package/src/api-sdk-v2/UserApi.ts +6 -0
- package/src/api-sdk-v2/VisitApi.ts +141 -0
- package/src/api-sdk-v2/WorkOrderApi.ts +36 -0
- package/src/api-sdk-v2/YfStockCountApi.ts +123 -0
- package/src/db-sdk-v2/AddressDb.ts +8 -0
- package/src/db-sdk-v2/AppointmentDb.ts +8 -0
- package/src/db-sdk-v2/BlockageA55Db.ts +133 -0
- package/src/db-sdk-v2/ContactDb.ts +87 -87
- package/src/db-sdk-v2/DashboardDb.ts +101 -0
- package/src/db-sdk-v2/KnowledgeArticleDb.ts +125 -0
- package/src/db-sdk-v2/LeadDb.ts +29 -21
- package/src/db-sdk-v2/NetomniaFtth2StageInstallAuditDb.ts +125 -0
- package/src/db-sdk-v2/NoteDb.ts +64 -0
- package/src/db-sdk-v2/OhRetroAuditDb.ts +125 -0
- package/src/db-sdk-v2/OrderDb.ts +8 -0
- package/src/db-sdk-v2/RemediationOutcomeFormDb.ts +125 -0
- package/src/db-sdk-v2/UgRetroAuditDb.ts +125 -0
- package/src/db-sdk-v2/UserDb.ts +8 -0
- package/src/db-sdk-v2/VisitDb.ts +149 -0
- package/src/db-sdk-v2/WorkOrderDb.ts +48 -0
- package/src/db-sdk-v2/YfStockCountDb.ts +125 -0
- package/src/entities-v2/Address.ts +2 -0
- package/src/entities-v2/Appointment.ts +2 -0
- package/src/entities-v2/BlockageA55.ts +207 -0
- package/src/entities-v2/ChangeReason.ts +1 -0
- package/src/entities-v2/CollectionWorkOrder.ts +4 -0
- package/src/entities-v2/Contact.ts +2 -2
- package/src/entities-v2/Dashboard.ts +43 -0
- package/src/entities-v2/DefaultAddress.ts +2 -0
- package/src/entities-v2/DefaultAppointment.ts +2 -0
- package/src/entities-v2/DefaultContact.ts +77 -75
- package/src/entities-v2/DefaultCustomerDeviceOnt.ts +2 -0
- package/src/entities-v2/DefaultDashboard.ts +41 -0
- package/src/entities-v2/DefaultFile.ts +18 -0
- package/src/entities-v2/DefaultLead.ts +2 -0
- package/src/entities-v2/DefaultNote.ts +18 -0
- package/src/entities-v2/DefaultOneTouchSwitch.ts +4 -0
- package/src/entities-v2/DefaultOrder.ts +4 -0
- package/src/entities-v2/DefaultOrderItem.ts +2 -0
- package/src/entities-v2/DefaultPaymentMethodRefund.ts +2 -0
- package/src/entities-v2/DefaultServiceAppointment.ts +2 -0
- package/src/entities-v2/DefaultUser.ts +2 -0
- package/src/entities-v2/DefaultVisit.ts +149 -0
- package/src/entities-v2/EmailFile.ts +18 -0
- package/src/entities-v2/File.ts +22 -5
- package/src/entities-v2/FinanceWorkOrder.ts +2 -0
- package/src/entities-v2/GainingOneTouchSwitch.ts +4 -0
- package/src/entities-v2/InspectionWorkOrder.ts +6 -0
- package/src/entities-v2/InstallBusinessWorkOrder.ts +8 -0
- package/src/entities-v2/InstallServiceWorkOrder.ts +2 -0
- package/src/entities-v2/InstallWorkOrder.ts +10 -0
- package/src/entities-v2/KnowledgeArticle.ts +94 -0
- package/src/entities-v2/Lead.ts +2 -0
- package/src/entities-v2/LosingOneTouchSwitch.ts +4 -0
- package/src/entities-v2/MandateBillingRequest.ts +2 -0
- package/src/entities-v2/NetomniaFtth2StageInstallAudit.ts +219 -0
- package/src/entities-v2/NetworkAdjustmentWorkOrder.ts +4 -0
- package/src/entities-v2/Note.ts +16 -0
- package/src/entities-v2/OhRetroAudit.ts +155 -0
- package/src/entities-v2/OneTouchSwitch.ts +2 -0
- package/src/entities-v2/Order.ts +2 -0
- package/src/entities-v2/OutcomeFormBlockageA55.ts +203 -0
- package/src/entities-v2/OutcomeFormNetomniaFtth2StageInstallAudit.ts +215 -0
- package/src/entities-v2/OutcomeFormOhInstallationAudit.ts +31 -31
- package/src/entities-v2/OutcomeFormOhRetroAudit.ts +151 -0
- package/src/entities-v2/OutcomeFormOverlayRealA55.ts +40 -40
- package/src/entities-v2/OutcomeFormRemediationOutcomeForm.ts +141 -0
- package/src/entities-v2/OutcomeFormRemediationRequiredReason.ts +0 -2
- package/src/entities-v2/OutcomeFormServiceVisitAudit.ts +37 -37
- package/src/entities-v2/OutcomeFormUgRetroAudit.ts +130 -0
- package/src/entities-v2/OutcomeFormYfFieldServiceVisit.ts +10 -10
- package/src/entities-v2/OutcomeFormYfStockCount.ts +101 -0
- package/src/entities-v2/OverlayRealA55.ts +40 -40
- package/src/entities-v2/PaymentBillingRequest.ts +2 -0
- package/src/entities-v2/PlanningWorkOrder.ts +2 -0
- package/src/entities-v2/PrePullWorkOrder.ts +4 -0
- package/src/entities-v2/ReleaseNoteKnowledgeArticle.ts +92 -0
- package/src/entities-v2/RemediationOutcomeForm.ts +145 -0
- package/src/entities-v2/RemediationRequiredReason.ts +0 -2
- package/src/entities-v2/RemediationWorkOrder.ts +6 -0
- package/src/entities-v2/SaRescheduleChangeReason.ts +1 -0
- package/src/entities-v2/ServiceAppointment.ts +2 -0
- package/src/entities-v2/ServiceWorkOrder.ts +4 -0
- package/src/entities-v2/UgRetroAudit.ts +134 -0
- package/src/entities-v2/User.ts +2 -0
- package/src/entities-v2/UserGuideKnowledgeArticle.ts +91 -0
- package/src/entities-v2/Visit.ts +151 -0
- package/src/entities-v2/WayleaveWorkOrder.ts +2 -0
- package/src/entities-v2/WorkOrder.ts +12 -0
- package/src/entities-v2/YfStockCount.ts +105 -0
- package/src/generators/runner.ts +2 -20
- package/src/types-v1/Types.ts +14 -5
|
@@ -12,6 +12,7 @@ export declare class AddressApi extends ApiProvider {
|
|
|
12
12
|
readonly workorder: ApiRecordLinkManager;
|
|
13
13
|
readonly customerdeviceont: ApiRecordLinkManager;
|
|
14
14
|
readonly contact: ApiRecordLinkManager;
|
|
15
|
+
readonly visit: ApiRecordLinkManager;
|
|
15
16
|
readonly user: ApiRecordLinkManager;
|
|
16
17
|
readonly invoice: ApiRecordLinkManager;
|
|
17
18
|
readonly customerdevicerouter: ApiRecordLinkManager;
|
|
@@ -22,6 +22,7 @@ class AddressApi extends api_provider_1.ApiProvider {
|
|
|
22
22
|
this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Address', 'FieldServiceModule:WorkOrder', 'WorkOrder__Address');
|
|
23
23
|
this.customerdeviceont = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Address', 'ServiceModule:CustomerDeviceOnt', 'Address__CustomerDeviceOnt');
|
|
24
24
|
this.contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Address', 'CrmModule:Contact', 'Contact__Address');
|
|
25
|
+
this.visit = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Address', 'CrmModule:Visit', 'Address__Visit');
|
|
25
26
|
this.user = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Address', 'IdentityModule:User', 'Address_User');
|
|
26
27
|
this.invoice = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Address', 'BillingModule:Invoice', 'Invoice__Address');
|
|
27
28
|
this.customerdevicerouter = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Address', 'ServiceModule:CustomerDeviceRouter', 'Address__CustomerDeviceRouter');
|
|
@@ -10,6 +10,7 @@ export declare class AppointmentApi extends ApiProvider {
|
|
|
10
10
|
private sourceRecord;
|
|
11
11
|
readonly file: ApiRecordLinkManager;
|
|
12
12
|
readonly note: ApiRecordLinkManager;
|
|
13
|
+
readonly visit: ApiRecordLinkManager;
|
|
13
14
|
readonly address: ApiRecordLinkManager;
|
|
14
15
|
readonly lead: ApiRecordLinkManager;
|
|
15
16
|
readonly contact: ApiRecordLinkManager;
|
|
@@ -20,6 +20,7 @@ class AppointmentApi extends api_provider_1.ApiProvider {
|
|
|
20
20
|
this.entityName = 'Appointment';
|
|
21
21
|
this.file = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Appointment', 'SchemaModule:File', 'Appointment__File');
|
|
22
22
|
this.note = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Appointment', 'SupportModule:Note', 'Appointment__Note');
|
|
23
|
+
this.visit = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Appointment', 'CrmModule:Visit', 'Visit__Appointment');
|
|
23
24
|
this.address = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Appointment', 'CrmModule:Address', 'Address__Appointment');
|
|
24
25
|
this.lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Appointment', 'CrmModule:Lead', 'Lead_Appointment');
|
|
25
26
|
this.contact = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Appointment', 'CrmModule:Contact', 'Contact__Appointment');
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
6
|
+
export declare class BlockageA55Api extends ApiProvider {
|
|
7
|
+
protected readonly authToken?: string;
|
|
8
|
+
private readonly moduleName;
|
|
9
|
+
private readonly entityName;
|
|
10
|
+
private sourceRecord;
|
|
11
|
+
readonly user: ApiRecordLinkManager;
|
|
12
|
+
readonly file: ApiRecordLinkManager;
|
|
13
|
+
readonly note: ApiRecordLinkManager;
|
|
14
|
+
readonly workorder: ApiRecordLinkManager;
|
|
15
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
16
|
+
setRecord(sourceRecord: any): void;
|
|
17
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
18
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
19
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
20
|
+
reIndex(body: {
|
|
21
|
+
id: string;
|
|
22
|
+
schemaId: string;
|
|
23
|
+
}[]): Promise<any>;
|
|
24
|
+
get(blockageA55Id: string): Promise<any>;
|
|
25
|
+
getMany(blockageA55Ids: string[]): Promise<any[]>;
|
|
26
|
+
upsert(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
|
|
27
|
+
update(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
|
|
28
|
+
delete(blockageA55Ids: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
29
|
+
restore(blockageA55Ids: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
30
|
+
getVersions(): Promise<{
|
|
31
|
+
[key: string]: Record<string, any>;
|
|
32
|
+
}>;
|
|
33
|
+
getRevisionTimeline(): Promise<{
|
|
34
|
+
[key: string]: Record<string, any>[];
|
|
35
|
+
}>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BlockageA55Api = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
class BlockageA55Api extends api_provider_1.ApiProvider {
|
|
16
|
+
constructor(authParams, authToken) {
|
|
17
|
+
super(authParams, authToken);
|
|
18
|
+
this.authToken = authToken;
|
|
19
|
+
this.moduleName = 'FieldServiceModule';
|
|
20
|
+
this.entityName = 'BlockageA55';
|
|
21
|
+
this.user = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:BlockageA55', 'IdentityModule:User', 'BlockageA55_User');
|
|
22
|
+
this.file = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:BlockageA55', 'SchemaModule:File', 'BlockageA55_File');
|
|
23
|
+
this.note = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:BlockageA55', 'SupportModule:Note', 'BlockageA55_Note');
|
|
24
|
+
this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:BlockageA55', 'FieldServiceModule:WorkOrder', 'WorkOrder_BlockageA55');
|
|
25
|
+
}
|
|
26
|
+
setRecord(sourceRecord) {
|
|
27
|
+
this.sourceRecord = sourceRecord;
|
|
28
|
+
}
|
|
29
|
+
schema() {
|
|
30
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
35
|
+
search(params) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
// Use this function when you want paginating through the results to be handled
|
|
41
|
+
searchAndPaginate(params) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
// Use this function to re-index records in elastic search
|
|
47
|
+
reIndex(body) {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
return yield this._reIndexRecords(body);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
// Use this function when you want to return a single record
|
|
53
|
+
get(blockageA55Id) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, blockageA55Id);
|
|
56
|
+
this.setRecord(res);
|
|
57
|
+
return res;
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
// Use this function when you want to return many records by primaryKeys
|
|
61
|
+
getMany(blockageA55Ids) {
|
|
62
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, blockageA55Ids);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
// Use this function when you want to upsert one or many records
|
|
67
|
+
upsert(upsertDtos) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
// Use this function when you want to update one or many records
|
|
73
|
+
update(updateDtos) {
|
|
74
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
// Use this function when you want to delete one or many records
|
|
79
|
+
delete(blockageA55Ids) {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
return yield this._delete(this.moduleName, this.entityName, blockageA55Ids);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
// Use this function when you want to restore one or many records
|
|
85
|
+
restore(blockageA55Ids) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
return yield this._restore(this.moduleName, this.entityName, blockageA55Ids);
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
// Use this function when you want to return the versions for a single record
|
|
91
|
+
getVersions() {
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
// Use this function when you want to return the change history for a single record
|
|
97
|
+
getRevisionTimeline() {
|
|
98
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
99
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
exports.BlockageA55Api = BlockageA55Api;
|
|
@@ -29,10 +29,10 @@ export declare class ContactApi extends ApiProvider {
|
|
|
29
29
|
readonly billingrequest: ApiRecordLinkManager;
|
|
30
30
|
readonly file: ApiRecordLinkManager;
|
|
31
31
|
readonly contactidentity: ApiRecordLinkManager;
|
|
32
|
-
readonly paymentmethod: ApiRecordLinkManager;
|
|
33
32
|
readonly paymentmethodrefund: ApiRecordLinkManager;
|
|
34
33
|
readonly phonenumber: ApiRecordLinkManager;
|
|
35
34
|
readonly appointment: ApiRecordLinkManager;
|
|
35
|
+
readonly paymentmethod: ApiRecordLinkManager;
|
|
36
36
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
37
37
|
setRecord(sourceRecord: any): void;
|
|
38
38
|
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
@@ -39,10 +39,10 @@ class ContactApi extends api_provider_1.ApiProvider {
|
|
|
39
39
|
this.billingrequest = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:BillingRequest', 'Contact__BillingRequest');
|
|
40
40
|
this.file = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'SchemaModule:File', 'Contact__File');
|
|
41
41
|
this.contactidentity = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:ContactIdentity', 'Contact__ContactIdentity');
|
|
42
|
-
this.paymentmethod = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:PaymentMethod', 'Contact__PaymentMethod');
|
|
43
42
|
this.paymentmethodrefund = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:PaymentMethodRefund', 'Contact__PaymentMethodRefund');
|
|
44
43
|
this.phonenumber = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:PhoneNumber', 'Contact__PhoneNumber');
|
|
45
44
|
this.appointment = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'CrmModule:Appointment', 'Contact__Appointment');
|
|
45
|
+
this.paymentmethod = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Contact', 'BillingModule:PaymentMethod', 'Contact__PaymentMethod');
|
|
46
46
|
}
|
|
47
47
|
setRecord(sourceRecord) {
|
|
48
48
|
this.sourceRecord = sourceRecord;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
export declare class DashboardApi extends ApiProvider {
|
|
6
|
+
protected readonly authToken?: string;
|
|
7
|
+
private readonly moduleName;
|
|
8
|
+
private readonly entityName;
|
|
9
|
+
private sourceRecord;
|
|
10
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
11
|
+
setRecord(sourceRecord: any): void;
|
|
12
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
13
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
14
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
15
|
+
reIndex(body: {
|
|
16
|
+
id: string;
|
|
17
|
+
schemaId: string;
|
|
18
|
+
}[]): Promise<any>;
|
|
19
|
+
get(dashboardId: string): Promise<any>;
|
|
20
|
+
getMany(dashboardIds: string[]): Promise<any[]>;
|
|
21
|
+
upsert(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
|
|
22
|
+
update(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
|
|
23
|
+
delete(dashboardIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
24
|
+
restore(dashboardIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
25
|
+
getVersions(): Promise<{
|
|
26
|
+
[key: string]: Record<string, any>;
|
|
27
|
+
}>;
|
|
28
|
+
getRevisionTimeline(): Promise<{
|
|
29
|
+
[key: string]: Record<string, any>[];
|
|
30
|
+
}>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DashboardApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
class DashboardApi extends api_provider_1.ApiProvider {
|
|
15
|
+
constructor(authParams, authToken) {
|
|
16
|
+
super(authParams, authToken);
|
|
17
|
+
this.authToken = authToken;
|
|
18
|
+
this.moduleName = 'FieldServiceModule';
|
|
19
|
+
this.entityName = 'Dashboard';
|
|
20
|
+
}
|
|
21
|
+
setRecord(sourceRecord) {
|
|
22
|
+
this.sourceRecord = sourceRecord;
|
|
23
|
+
}
|
|
24
|
+
schema() {
|
|
25
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
30
|
+
search(params) {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// Use this function when you want paginating through the results to be handled
|
|
36
|
+
searchAndPaginate(params) {
|
|
37
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
// Use this function to re-index records in elastic search
|
|
42
|
+
reIndex(body) {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
return yield this._reIndexRecords(body);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
// Use this function when you want to return a single record
|
|
48
|
+
get(dashboardId) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, dashboardId);
|
|
51
|
+
this.setRecord(res);
|
|
52
|
+
return res;
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
// Use this function when you want to return many records by primaryKeys
|
|
56
|
+
getMany(dashboardIds) {
|
|
57
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, dashboardIds);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
// Use this function when you want to upsert one or many records
|
|
62
|
+
upsert(upsertDtos) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
// Use this function when you want to update one or many records
|
|
68
|
+
update(updateDtos) {
|
|
69
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
// Use this function when you want to delete one or many records
|
|
74
|
+
delete(dashboardIds) {
|
|
75
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
76
|
+
return yield this._delete(this.moduleName, this.entityName, dashboardIds);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
// Use this function when you want to restore one or many records
|
|
80
|
+
restore(dashboardIds) {
|
|
81
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
return yield this._restore(this.moduleName, this.entityName, dashboardIds);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
// Use this function when you want to return the versions for a single record
|
|
86
|
+
getVersions() {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
// Use this function when you want to return the change history for a single record
|
|
92
|
+
getRevisionTimeline() {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
exports.DashboardApi = DashboardApi;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
6
|
+
export declare class KnowledgeArticleApi extends ApiProvider {
|
|
7
|
+
protected readonly authToken?: string;
|
|
8
|
+
private readonly moduleName;
|
|
9
|
+
private readonly entityName;
|
|
10
|
+
private sourceRecord;
|
|
11
|
+
readonly file: ApiRecordLinkManager;
|
|
12
|
+
readonly knowledgearticle: ApiRecordLinkManager;
|
|
13
|
+
readonly note: ApiRecordLinkManager;
|
|
14
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
15
|
+
setRecord(sourceRecord: any): void;
|
|
16
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
17
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
18
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
19
|
+
reIndex(body: {
|
|
20
|
+
id: string;
|
|
21
|
+
schemaId: string;
|
|
22
|
+
}[]): Promise<any>;
|
|
23
|
+
get(knowledgeArticleId: string): Promise<any>;
|
|
24
|
+
getMany(knowledgeArticleIds: string[]): Promise<any[]>;
|
|
25
|
+
upsert(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
|
|
26
|
+
update(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
|
|
27
|
+
delete(knowledgeArticleIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
28
|
+
restore(knowledgeArticleIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
29
|
+
getVersions(): Promise<{
|
|
30
|
+
[key: string]: Record<string, any>;
|
|
31
|
+
}>;
|
|
32
|
+
getRevisionTimeline(): Promise<{
|
|
33
|
+
[key: string]: Record<string, any>[];
|
|
34
|
+
}>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.KnowledgeArticleApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
class KnowledgeArticleApi extends api_provider_1.ApiProvider {
|
|
16
|
+
constructor(authParams, authToken) {
|
|
17
|
+
super(authParams, authToken);
|
|
18
|
+
this.authToken = authToken;
|
|
19
|
+
this.moduleName = 'SupportModule';
|
|
20
|
+
this.entityName = 'KnowledgeArticle';
|
|
21
|
+
this.file = new api_record_link_manager_1.ApiRecordLinkManager('SupportModule:KnowledgeArticle', 'SchemaModule:File', 'KnowledgeArticle__File');
|
|
22
|
+
this.knowledgearticle = new api_record_link_manager_1.ApiRecordLinkManager('SupportModule:KnowledgeArticle', 'SupportModule:KnowledgeArticle', 'KnowledgeArticle__KnowledgeArticle');
|
|
23
|
+
this.note = new api_record_link_manager_1.ApiRecordLinkManager('SupportModule:KnowledgeArticle', 'SupportModule:Note', 'KnowledgeArticle__Note');
|
|
24
|
+
}
|
|
25
|
+
setRecord(sourceRecord) {
|
|
26
|
+
this.sourceRecord = sourceRecord;
|
|
27
|
+
}
|
|
28
|
+
schema() {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
34
|
+
search(params) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
// Use this function when you want paginating through the results to be handled
|
|
40
|
+
searchAndPaginate(params) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
// Use this function to re-index records in elastic search
|
|
46
|
+
reIndex(body) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return yield this._reIndexRecords(body);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
// Use this function when you want to return a single record
|
|
52
|
+
get(knowledgeArticleId) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, knowledgeArticleId);
|
|
55
|
+
this.setRecord(res);
|
|
56
|
+
return res;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
// Use this function when you want to return many records by primaryKeys
|
|
60
|
+
getMany(knowledgeArticleIds) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, knowledgeArticleIds);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
// Use this function when you want to upsert one or many records
|
|
66
|
+
upsert(upsertDtos) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// Use this function when you want to update one or many records
|
|
72
|
+
update(updateDtos) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
// Use this function when you want to delete one or many records
|
|
78
|
+
delete(knowledgeArticleIds) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return yield this._delete(this.moduleName, this.entityName, knowledgeArticleIds);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
// Use this function when you want to restore one or many records
|
|
84
|
+
restore(knowledgeArticleIds) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
return yield this._restore(this.moduleName, this.entityName, knowledgeArticleIds);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
// Use this function when you want to return the versions for a single record
|
|
90
|
+
getVersions() {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
// Use this function when you want to return the change history for a single record
|
|
96
|
+
getRevisionTimeline() {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.KnowledgeArticleApi = KnowledgeArticleApi;
|
|
@@ -20,6 +20,7 @@ export declare class LeadApi extends ApiProvider {
|
|
|
20
20
|
readonly crmdataset__lead: ApiRecordLinkManager;
|
|
21
21
|
readonly call__lead: ApiRecordLinkManager;
|
|
22
22
|
readonly fingerprint__lead: ApiRecordLinkManager;
|
|
23
|
+
readonly visit: ApiRecordLinkManager;
|
|
23
24
|
readonly appointment: ApiRecordLinkManager;
|
|
24
25
|
readonly order: ApiRecordLinkManager;
|
|
25
26
|
readonly address: ApiRecordLinkManager;
|
|
@@ -30,6 +30,7 @@ class LeadApi extends api_provider_1.ApiProvider {
|
|
|
30
30
|
this.crmdataset__lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Lead', 'CrmDataset__Lead');
|
|
31
31
|
this.call__lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Lead', 'Call__Lead');
|
|
32
32
|
this.fingerprint__lead = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Lead', 'Fingerprint__Lead');
|
|
33
|
+
this.visit = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Visit', 'Lead__Visit');
|
|
33
34
|
this.appointment = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Appointment', 'Lead_Appointment');
|
|
34
35
|
this.order = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'OrderModule:Order', 'Lead_Order');
|
|
35
36
|
this.address = new api_record_link_manager_1.ApiRecordLinkManager('CrmModule:Lead', 'CrmModule:Address', 'Lead_Address');
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
6
|
+
export declare class NetomniaFtth2StageInstallAuditApi extends ApiProvider {
|
|
7
|
+
protected readonly authToken?: string;
|
|
8
|
+
private readonly moduleName;
|
|
9
|
+
private readonly entityName;
|
|
10
|
+
private sourceRecord;
|
|
11
|
+
readonly note: ApiRecordLinkManager;
|
|
12
|
+
readonly file: ApiRecordLinkManager;
|
|
13
|
+
readonly workorder: ApiRecordLinkManager;
|
|
14
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
15
|
+
setRecord(sourceRecord: any): void;
|
|
16
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
17
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
18
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
|
|
19
|
+
reIndex(body: {
|
|
20
|
+
id: string;
|
|
21
|
+
schemaId: string;
|
|
22
|
+
}[]): Promise<any>;
|
|
23
|
+
get(netomniaFtth2StageInstallAuditId: string): Promise<any>;
|
|
24
|
+
getMany(netomniaFtth2StageInstallAuditIds: string[]): Promise<any[]>;
|
|
25
|
+
upsert(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
|
|
26
|
+
update(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
|
|
27
|
+
delete(netomniaFtth2StageInstallAuditIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
28
|
+
restore(netomniaFtth2StageInstallAuditIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
29
|
+
getVersions(): Promise<{
|
|
30
|
+
[key: string]: Record<string, any>;
|
|
31
|
+
}>;
|
|
32
|
+
getRevisionTimeline(): Promise<{
|
|
33
|
+
[key: string]: Record<string, any>[];
|
|
34
|
+
}>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.NetomniaFtth2StageInstallAuditApi = void 0;
|
|
13
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
14
|
+
const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
|
|
15
|
+
class NetomniaFtth2StageInstallAuditApi extends api_provider_1.ApiProvider {
|
|
16
|
+
constructor(authParams, authToken) {
|
|
17
|
+
super(authParams, authToken);
|
|
18
|
+
this.authToken = authToken;
|
|
19
|
+
this.moduleName = 'FieldServiceModule';
|
|
20
|
+
this.entityName = 'NetomniaFtth2StageInstallAudit';
|
|
21
|
+
this.note = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:NetomniaFtth2StageInstallAudit', 'SupportModule:Note', 'NetomniaFtth2StageInstallAudit__Note');
|
|
22
|
+
this.file = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:NetomniaFtth2StageInstallAudit', 'SchemaModule:File', 'NetomniaFtth2StageInstallAudit__File');
|
|
23
|
+
this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('FieldServiceModule:NetomniaFtth2StageInstallAudit', 'FieldServiceModule:WorkOrder', 'WorkOrder__NetomniaFtth2StageInstallAudit');
|
|
24
|
+
}
|
|
25
|
+
setRecord(sourceRecord) {
|
|
26
|
+
this.sourceRecord = sourceRecord;
|
|
27
|
+
}
|
|
28
|
+
schema() {
|
|
29
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
30
|
+
return yield this.getSchema(this.moduleName, this.entityName);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
34
|
+
search(params) {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return yield this._searchRecords(this.moduleName, this.entityName, params);
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
// Use this function when you want paginating through the results to be handled
|
|
40
|
+
searchAndPaginate(params) {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
// Use this function to re-index records in elastic search
|
|
46
|
+
reIndex(body) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return yield this._reIndexRecords(body);
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
// Use this function when you want to return a single record
|
|
52
|
+
get(netomniaFtth2StageInstallAuditId) {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, netomniaFtth2StageInstallAuditId);
|
|
55
|
+
this.setRecord(res);
|
|
56
|
+
return res;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
// Use this function when you want to return many records by primaryKeys
|
|
60
|
+
getMany(netomniaFtth2StageInstallAuditIds) {
|
|
61
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62
|
+
return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, netomniaFtth2StageInstallAuditIds);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
// Use this function when you want to upsert one or many records
|
|
66
|
+
upsert(upsertDtos) {
|
|
67
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
68
|
+
return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
// Use this function when you want to update one or many records
|
|
72
|
+
update(updateDtos) {
|
|
73
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
74
|
+
return yield this._update(this.moduleName, this.entityName, updateDtos);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
// Use this function when you want to delete one or many records
|
|
78
|
+
delete(netomniaFtth2StageInstallAuditIds) {
|
|
79
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
return yield this._delete(this.moduleName, this.entityName, netomniaFtth2StageInstallAuditIds);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
// Use this function when you want to restore one or many records
|
|
84
|
+
restore(netomniaFtth2StageInstallAuditIds) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
return yield this._restore(this.moduleName, this.entityName, netomniaFtth2StageInstallAuditIds);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
// Use this function when you want to return the versions for a single record
|
|
90
|
+
getVersions() {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
// Use this function when you want to return the change history for a single record
|
|
96
|
+
getRevisionTimeline() {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.NetomniaFtth2StageInstallAuditApi = NetomniaFtth2StageInstallAuditApi;
|