@d19n/youfibre-odin-sdk 1.0.27 → 1.0.28
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/types-v1/Types.d.ts +23 -20
- package/dist/types-v1/Types.js +23 -20
- package/package.json +2 -2
- package/src/api-sdk-v2/AccountApi.ts +159 -0
- package/src/api-sdk-v2/ActivityApi.ts +165 -0
- package/src/api-sdk-v2/ActivityLogApi.ts +117 -0
- package/src/api-sdk-v2/AddressApi.ts +207 -0
- package/src/api-sdk-v2/AppointmentApi.ts +141 -0
- package/src/api-sdk-v2/AppointmentCalendarApi.ts +105 -0
- package/src/api-sdk-v2/BillingAdjustmentApi.ts +129 -0
- package/src/api-sdk-v2/BillingRequestApi.ts +147 -0
- package/src/api-sdk-v2/BlockageReportA55Api.ts +123 -0
- package/src/api-sdk-v2/CalendarApi.ts +105 -0
- package/src/api-sdk-v2/CallApi.ts +129 -0
- package/src/api-sdk-v2/CaseApi.ts +177 -0
- package/src/api-sdk-v2/CaseQueueListViewApi.ts +105 -0
- package/src/api-sdk-v2/ChangeReasonApi.ts +135 -0
- package/src/api-sdk-v2/ChurnRequestApi.ts +117 -0
- package/src/api-sdk-v2/CommissionApi.ts +129 -0
- package/src/api-sdk-v2/ConsumptionRateApi.ts +117 -0
- package/src/api-sdk-v2/ConsumptionScheduleApi.ts +123 -0
- package/src/api-sdk-v2/ContactApi.ts +255 -0
- package/src/api-sdk-v2/ContactIdentityApi.ts +129 -0
- package/src/api-sdk-v2/CreditNoteApi.ts +129 -0
- package/src/api-sdk-v2/CrmDatasetApi.ts +147 -0
- package/src/api-sdk-v2/CustomerDeviceAtaApi.ts +111 -0
- package/src/api-sdk-v2/CustomerDeviceOntApi.ts +165 -0
- package/src/api-sdk-v2/CustomerDeviceOntRemovalApi.ts +117 -0
- package/src/api-sdk-v2/CustomerDeviceRouterApi.ts +141 -0
- package/src/api-sdk-v2/CustomerPhonePortingApi.ts +111 -0
- package/src/api-sdk-v2/DeactivationApprovalApi.ts +123 -0
- package/src/api-sdk-v2/DiscountApi.ts +141 -0
- package/src/api-sdk-v2/EngineerApi.ts +105 -0
- package/src/api-sdk-v2/ExchangeApi.ts +123 -0
- package/src/api-sdk-v2/FileApi.ts +423 -0
- package/src/api-sdk-v2/FingerprintApi.ts +129 -0
- package/src/api-sdk-v2/InternalInstallAuditApi.ts +123 -0
- package/src/api-sdk-v2/InvoiceApi.ts +201 -0
- package/src/api-sdk-v2/InvoiceItemApi.ts +117 -0
- package/src/api-sdk-v2/LeadApi.ts +195 -0
- package/src/api-sdk-v2/LinearIssueApi.ts +105 -0
- package/src/api-sdk-v2/MilestoneApi.ts +129 -0
- package/src/api-sdk-v2/NetomniaFtth1StageInstallAuditApi.ts +123 -0
- package/src/api-sdk-v2/NetomniaFtthServiceVisitSheetApi.ts +123 -0
- package/src/api-sdk-v2/NetomniaInstallVerificationApi.ts +123 -0
- package/src/api-sdk-v2/NetworkDeviceApi.ts +111 -0
- package/src/api-sdk-v2/Noinstall3AuditOfInstallationSheetApi.ts +111 -0
- package/src/api-sdk-v2/NoteApi.ts +477 -0
- package/src/api-sdk-v2/OfferApi.ts +135 -0
- package/src/api-sdk-v2/OhAuditOfInstallationApi.ts +123 -0
- package/src/api-sdk-v2/OhExternalAuditApi.ts +123 -0
- package/src/api-sdk-v2/OhInProgressAuditApi.ts +123 -0
- package/src/api-sdk-v2/OhInstallationAuditApi.ts +123 -0
- package/src/api-sdk-v2/OneTouchSwitchApi.ts +165 -0
- package/src/api-sdk-v2/OntReplacementApprovalApi.ts +117 -0
- package/src/api-sdk-v2/OrderApi.ts +291 -0
- package/src/api-sdk-v2/OrderCheckApi.ts +111 -0
- package/src/api-sdk-v2/OrderItemApi.ts +195 -0
- package/src/api-sdk-v2/OrderRemediationTaskApi.ts +129 -0
- package/src/api-sdk-v2/OrganizationApi.ts +129 -0
- package/src/api-sdk-v2/OutageApi.ts +105 -0
- package/src/api-sdk-v2/OverlayRealA55Api.ts +123 -0
- package/src/api-sdk-v2/PICRequestApi.ts +117 -0
- package/src/api-sdk-v2/PaymentMethodApi.ts +141 -0
- package/src/api-sdk-v2/PaymentMethodRefundApi.ts +153 -0
- package/src/api-sdk-v2/PermissionToFailApi.ts +123 -0
- package/src/api-sdk-v2/PhoneNumberApi.ts +117 -0
- package/src/api-sdk-v2/Premise2Api.ts +105 -0
- package/src/api-sdk-v2/PremiseApi.ts +105 -0
- package/src/api-sdk-v2/PriceBookApi.ts +117 -0
- package/src/api-sdk-v2/ProductApi.ts +165 -0
- package/src/api-sdk-v2/ProductComponentApi.ts +123 -0
- package/src/api-sdk-v2/ProgramApi.ts +117 -0
- package/src/api-sdk-v2/ProjectApi.ts +123 -0
- package/src/api-sdk-v2/QueueApi.ts +123 -0
- package/src/api-sdk-v2/QueueChangeApi.ts +117 -0
- package/src/api-sdk-v2/RegionApi.ts +117 -0
- package/src/api-sdk-v2/RemediationRequiredReasonApi.ts +129 -0
- package/src/api-sdk-v2/RestrictionApi.ts +123 -0
- package/src/api-sdk-v2/ReturnOrderApi.ts +117 -0
- package/src/api-sdk-v2/SalesLeaderBoardApi.ts +105 -0
- package/src/api-sdk-v2/SalesTerritoryApi.ts +123 -0
- package/src/api-sdk-v2/ScheduleSlotApi.ts +111 -0
- package/src/api-sdk-v2/ServiceApi.ts +117 -0
- package/src/api-sdk-v2/ServiceAppointmentApi.ts +129 -0
- package/src/api-sdk-v2/ServiceAppointmentConfigApi.ts +159 -0
- package/src/api-sdk-v2/ServiceVisitAuditApi.ts +129 -0
- package/src/api-sdk-v2/SmsMessageApi.ts +141 -0
- package/src/api-sdk-v2/SplitOrderApi.ts +129 -0
- package/src/api-sdk-v2/SubtaskApi.ts +117 -0
- package/src/api-sdk-v2/SupportTaskApi.ts +111 -0
- package/src/api-sdk-v2/SweeperMaintenanceAuditApi.ts +123 -0
- package/src/api-sdk-v2/TaskApi.ts +123 -0
- package/src/api-sdk-v2/TeamApi.ts +123 -0
- package/src/api-sdk-v2/TelesalesDashboardApi.ts +105 -0
- package/src/api-sdk-v2/TimeOffApi.ts +111 -0
- package/src/api-sdk-v2/TimeSlotApi.ts +111 -0
- package/src/api-sdk-v2/TransactionApi.ts +147 -0
- package/src/api-sdk-v2/UgAuditOfInstallationApi.ts +123 -0
- package/src/api-sdk-v2/UgExternalAuditApi.ts +123 -0
- package/src/api-sdk-v2/UgInProgressAuditApi.ts +123 -0
- package/src/api-sdk-v2/UgInstallationAuditApi.ts +123 -0
- package/src/api-sdk-v2/UserApi.ts +201 -0
- package/src/api-sdk-v2/VendorApi.ts +117 -0
- package/src/api-sdk-v2/VoiceConfigurationApi.ts +111 -0
- package/src/api-sdk-v2/WorkOrderApi.ts +393 -0
- package/src/api-sdk-v2/WorkOrderRemediationViewApi.ts +105 -0
- package/src/api-sdk-v2/YfEquipmentCollectionApi.ts +111 -0
- package/src/api-sdk-v2/YfFieldServiceVisitApi.ts +123 -0
- package/src/api-sdk-v2/YfToolAuditApi.ts +135 -0
- package/src/api-sdk-v2/YfVanAuditApi.ts +135 -0
- package/src/db-sdk-v2/AccountDb.ts +173 -0
- package/src/db-sdk-v2/ActivityDb.ts +181 -0
- package/src/db-sdk-v2/ActivityLogDb.ts +117 -0
- package/src/db-sdk-v2/AddressDb.ts +237 -0
- package/src/db-sdk-v2/AppointmentCalendarDb.ts +101 -0
- package/src/db-sdk-v2/AppointmentDb.ts +149 -0
- package/src/db-sdk-v2/BillingAdjustmentDb.ts +133 -0
- package/src/db-sdk-v2/BillingRequestDb.ts +157 -0
- package/src/db-sdk-v2/BlockageReportA55Db.ts +125 -0
- package/src/db-sdk-v2/CalendarDb.ts +101 -0
- package/src/db-sdk-v2/CallDb.ts +133 -0
- package/src/db-sdk-v2/CaseDb.ts +197 -0
- package/src/db-sdk-v2/CaseQueueListViewDb.ts +101 -0
- package/src/db-sdk-v2/ChangeReasonDb.ts +141 -0
- package/src/db-sdk-v2/ChurnRequestDb.ts +117 -0
- package/src/db-sdk-v2/CommissionDb.ts +133 -0
- package/src/db-sdk-v2/ConsumptionRateDb.ts +117 -0
- package/src/db-sdk-v2/ConsumptionScheduleDb.ts +125 -0
- package/src/db-sdk-v2/ContactDb.ts +301 -0
- package/src/db-sdk-v2/ContactIdentityDb.ts +133 -0
- package/src/db-sdk-v2/CreditNoteDb.ts +133 -0
- package/src/db-sdk-v2/CrmDatasetDb.ts +157 -0
- package/src/db-sdk-v2/CustomerDeviceAtaDb.ts +109 -0
- package/src/db-sdk-v2/CustomerDeviceOntDb.ts +181 -0
- package/src/db-sdk-v2/CustomerDeviceOntRemovalDb.ts +117 -0
- package/src/db-sdk-v2/CustomerDeviceRouterDb.ts +149 -0
- package/src/db-sdk-v2/CustomerPhonePortingDb.ts +109 -0
- package/src/db-sdk-v2/DeactivationApprovalDb.ts +125 -0
- package/src/db-sdk-v2/DiscountDb.ts +149 -0
- package/src/db-sdk-v2/EngineerDb.ts +101 -0
- package/src/db-sdk-v2/ExchangeDb.ts +125 -0
- package/src/db-sdk-v2/FileDb.ts +525 -0
- package/src/db-sdk-v2/FingerprintDb.ts +133 -0
- package/src/db-sdk-v2/InternalInstallAuditDb.ts +125 -0
- package/src/db-sdk-v2/InvoiceDb.ts +229 -0
- package/src/db-sdk-v2/InvoiceItemDb.ts +117 -0
- package/src/db-sdk-v2/LeadDb.ts +221 -0
- package/src/db-sdk-v2/LinearIssueDb.ts +101 -0
- package/src/db-sdk-v2/MilestoneDb.ts +133 -0
- package/src/db-sdk-v2/NetomniaFtth1StageInstallAuditDb.ts +125 -0
- package/src/db-sdk-v2/NetomniaFtthServiceVisitSheetDb.ts +125 -0
- package/src/db-sdk-v2/NetomniaInstallVerificationDb.ts +125 -0
- package/src/db-sdk-v2/NetworkDeviceDb.ts +109 -0
- package/src/db-sdk-v2/Noinstall3AuditOfInstallationSheetDb.ts +109 -0
- package/src/db-sdk-v2/NoteDb.ts +597 -0
- package/src/db-sdk-v2/OfferDb.ts +141 -0
- package/src/db-sdk-v2/OhAuditOfInstallationDb.ts +125 -0
- package/src/db-sdk-v2/OhExternalAuditDb.ts +125 -0
- package/src/db-sdk-v2/OhInProgressAuditDb.ts +125 -0
- package/src/db-sdk-v2/OhInstallationAuditDb.ts +125 -0
- package/src/db-sdk-v2/OneTouchSwitchDb.ts +181 -0
- package/src/db-sdk-v2/OntReplacementApprovalDb.ts +117 -0
- package/src/db-sdk-v2/OrderCheckDb.ts +109 -0
- package/src/db-sdk-v2/OrderDb.ts +349 -0
- package/src/db-sdk-v2/OrderItemDb.ts +221 -0
- package/src/db-sdk-v2/OrderRemediationTaskDb.ts +133 -0
- package/src/db-sdk-v2/OrganizationDb.ts +133 -0
- package/src/db-sdk-v2/OutageDb.ts +101 -0
- package/src/db-sdk-v2/OverlayRealA55Db.ts +125 -0
- package/src/db-sdk-v2/PICRequestDb.ts +117 -0
- package/src/db-sdk-v2/PaymentMethodDb.ts +149 -0
- package/src/db-sdk-v2/PaymentMethodRefundDb.ts +165 -0
- package/src/db-sdk-v2/PermissionToFailDb.ts +125 -0
- package/src/db-sdk-v2/PhoneNumberDb.ts +117 -0
- package/src/db-sdk-v2/Premise2Db.ts +101 -0
- package/src/db-sdk-v2/PremiseDb.ts +101 -0
- package/src/db-sdk-v2/PriceBookDb.ts +117 -0
- package/src/db-sdk-v2/ProductComponentDb.ts +125 -0
- package/src/db-sdk-v2/ProductDb.ts +181 -0
- package/src/db-sdk-v2/ProgramDb.ts +117 -0
- package/src/db-sdk-v2/ProjectDb.ts +125 -0
- package/src/db-sdk-v2/QueueChangeDb.ts +117 -0
- package/src/db-sdk-v2/QueueDb.ts +125 -0
- package/src/db-sdk-v2/RegionDb.ts +117 -0
- package/src/db-sdk-v2/RemediationRequiredReasonDb.ts +133 -0
- package/src/db-sdk-v2/RestrictionDb.ts +125 -0
- package/src/db-sdk-v2/ReturnOrderDb.ts +117 -0
- package/src/db-sdk-v2/SalesLeaderBoardDb.ts +101 -0
- package/src/db-sdk-v2/SalesTerritoryDb.ts +125 -0
- package/src/db-sdk-v2/ScheduleSlotDb.ts +109 -0
- package/src/db-sdk-v2/ServiceAppointmentConfigDb.ts +173 -0
- package/src/db-sdk-v2/ServiceAppointmentDb.ts +133 -0
- package/src/db-sdk-v2/ServiceDb.ts +117 -0
- package/src/db-sdk-v2/ServiceVisitAuditDb.ts +133 -0
- package/src/db-sdk-v2/SmsMessageDb.ts +149 -0
- package/src/db-sdk-v2/SplitOrderDb.ts +133 -0
- package/src/db-sdk-v2/SubtaskDb.ts +117 -0
- package/src/db-sdk-v2/SupportTaskDb.ts +109 -0
- package/src/db-sdk-v2/SweeperMaintenanceAuditDb.ts +125 -0
- package/src/db-sdk-v2/TaskDb.ts +125 -0
- package/src/db-sdk-v2/TeamDb.ts +125 -0
- package/src/db-sdk-v2/TelesalesDashboardDb.ts +101 -0
- package/src/db-sdk-v2/TimeOffDb.ts +109 -0
- package/src/db-sdk-v2/TimeSlotDb.ts +109 -0
- package/src/db-sdk-v2/TransactionDb.ts +157 -0
- package/src/db-sdk-v2/UgAuditOfInstallationDb.ts +125 -0
- package/src/db-sdk-v2/UgExternalAuditDb.ts +125 -0
- package/src/db-sdk-v2/UgInProgressAuditDb.ts +125 -0
- package/src/db-sdk-v2/UgInstallationAuditDb.ts +125 -0
- package/src/db-sdk-v2/UserDb.ts +229 -0
- package/src/db-sdk-v2/VendorDb.ts +117 -0
- package/src/db-sdk-v2/VoiceConfigurationDb.ts +109 -0
- package/src/db-sdk-v2/WorkOrderDb.ts +485 -0
- package/src/db-sdk-v2/WorkOrderRemediationViewDb.ts +101 -0
- package/src/db-sdk-v2/YfEquipmentCollectionDb.ts +109 -0
- package/src/db-sdk-v2/YfFieldServiceVisitDb.ts +125 -0
- package/src/db-sdk-v2/YfToolAuditDb.ts +141 -0
- package/src/db-sdk-v2/YfVanAuditDb.ts +141 -0
- package/src/entities-v2/Account.ts +101 -0
- package/src/entities-v2/Activity.ts +100 -0
- package/src/entities-v2/ActivityLog.ts +65 -0
- package/src/entities-v2/Address.ts +211 -0
- package/src/entities-v2/AddressCrmDataset.ts +78 -0
- package/src/entities-v2/Appointment.ts +85 -0
- package/src/entities-v2/AppointmentCalendar.ts +43 -0
- package/src/entities-v2/BillingAdjustment.ts +82 -0
- package/src/entities-v2/BillingRequest.ts +118 -0
- package/src/entities-v2/BlockageReportA55.ts +98 -0
- package/src/entities-v2/BundleProduct.ts +237 -0
- package/src/entities-v2/BusinessAccount.ts +96 -0
- package/src/entities-v2/Calendar.ts +43 -0
- package/src/entities-v2/Call.ts +77 -0
- package/src/entities-v2/Case.ts +157 -0
- package/src/entities-v2/CaseQueueListView.ts +43 -0
- package/src/entities-v2/ChangeReason.ts +198 -0
- package/src/entities-v2/ChurnRequest.ts +78 -0
- package/src/entities-v2/CollectionWorkOrder.ts +263 -0
- package/src/entities-v2/Commission.ts +78 -0
- package/src/entities-v2/ConsumptionRate.ts +70 -0
- package/src/entities-v2/ConsumptionSchedule.ts +71 -0
- package/src/entities-v2/Contact.ts +210 -0
- package/src/entities-v2/ContactCrmDataset.ts +74 -0
- package/src/entities-v2/ContactIdentity.ts +56 -0
- package/src/entities-v2/CreditNote.ts +82 -0
- package/src/entities-v2/CrmDataset.ts +90 -0
- package/src/entities-v2/CustomerDeviceAta.ts +52 -0
- package/src/entities-v2/CustomerDeviceOnt.ts +119 -0
- package/src/entities-v2/CustomerDeviceOntRemoval.ts +63 -0
- package/src/entities-v2/CustomerDeviceRouter.ts +101 -0
- package/src/entities-v2/CustomerPhonePorting.ts +59 -0
- package/src/entities-v2/DeactivationApproval.ts +57 -0
- package/src/entities-v2/DefaultActivityLog.ts +63 -0
- package/src/entities-v2/DefaultAddress.ts +207 -0
- package/src/entities-v2/DefaultAppointment.ts +83 -0
- package/src/entities-v2/DefaultAppointmentCalendar.ts +41 -0
- package/src/entities-v2/DefaultBillingAdjustment.ts +80 -0
- package/src/entities-v2/DefaultCalendar.ts +41 -0
- package/src/entities-v2/DefaultCall.ts +75 -0
- package/src/entities-v2/DefaultCase.ts +152 -0
- package/src/entities-v2/DefaultCaseQueueListView.ts +41 -0
- package/src/entities-v2/DefaultChurnRequest.ts +86 -0
- package/src/entities-v2/DefaultCommission.ts +76 -0
- package/src/entities-v2/DefaultConsumptionRate.ts +69 -0
- package/src/entities-v2/DefaultConsumptionSchedule.ts +70 -0
- package/src/entities-v2/DefaultContact.ts +207 -0
- package/src/entities-v2/DefaultContactIdentity.ts +55 -0
- package/src/entities-v2/DefaultCreditNote.ts +80 -0
- package/src/entities-v2/DefaultCrmDataset.ts +74 -0
- package/src/entities-v2/DefaultCustomerDeviceAta.ts +50 -0
- package/src/entities-v2/DefaultCustomerDeviceOnt.ts +115 -0
- package/src/entities-v2/DefaultCustomerDeviceOntRemoval.ts +61 -0
- package/src/entities-v2/DefaultCustomerDeviceRouter.ts +99 -0
- package/src/entities-v2/DefaultCustomerPhonePorting.ts +57 -0
- package/src/entities-v2/DefaultDeactivationApproval.ts +55 -0
- package/src/entities-v2/DefaultDiscount.ts +87 -0
- package/src/entities-v2/DefaultEngineer.ts +43 -0
- package/src/entities-v2/DefaultExchange.ts +53 -0
- package/src/entities-v2/DefaultFile.ts +160 -0
- package/src/entities-v2/DefaultFingerprint.ts +71 -0
- package/src/entities-v2/DefaultInvoice.ts +201 -0
- package/src/entities-v2/DefaultInvoiceItem.ts +113 -0
- package/src/entities-v2/DefaultLead.ts +157 -0
- package/src/entities-v2/DefaultLinearIssue.ts +41 -0
- package/src/entities-v2/DefaultMilestone.ts +73 -0
- package/src/entities-v2/DefaultNote.ts +169 -0
- package/src/entities-v2/DefaultOffer.ts +89 -0
- package/src/entities-v2/DefaultOneTouchSwitch.ts +107 -0
- package/src/entities-v2/DefaultOntReplacementApproval.ts +53 -0
- package/src/entities-v2/DefaultOrder.ts +287 -0
- package/src/entities-v2/DefaultOrderCheck.ts +71 -0
- package/src/entities-v2/DefaultOrderItem.ts +172 -0
- package/src/entities-v2/DefaultOrderRemediationTask.ts +57 -0
- package/src/entities-v2/DefaultOrganization.ts +57 -0
- package/src/entities-v2/DefaultOutage.ts +41 -0
- package/src/entities-v2/DefaultPICRequest.ts +87 -0
- package/src/entities-v2/DefaultPaymentMethod.ts +105 -0
- package/src/entities-v2/DefaultPaymentMethodRefund.ts +77 -0
- package/src/entities-v2/DefaultPermissionToFail.ts +55 -0
- package/src/entities-v2/DefaultPhoneNumber.ts +47 -0
- package/src/entities-v2/DefaultPremise.ts +63 -0
- package/src/entities-v2/DefaultPremise2.ts +41 -0
- package/src/entities-v2/DefaultPriceBook.ts +64 -0
- package/src/entities-v2/DefaultProductComponent.ts +98 -0
- package/src/entities-v2/DefaultProgram.ts +69 -0
- package/src/entities-v2/DefaultProject.ts +71 -0
- package/src/entities-v2/DefaultQueue.ts +49 -0
- package/src/entities-v2/DefaultQueueChange.ts +51 -0
- package/src/entities-v2/DefaultRegion.ts +45 -0
- package/src/entities-v2/DefaultRestriction.ts +67 -0
- package/src/entities-v2/DefaultReturnOrder.ts +47 -0
- package/src/entities-v2/DefaultSalesLeaderBoard.ts +41 -0
- package/src/entities-v2/DefaultScheduleSlot.ts +69 -0
- package/src/entities-v2/DefaultService.ts +79 -0
- package/src/entities-v2/DefaultServiceAppointment.ts +65 -0
- package/src/entities-v2/DefaultSmsMessage.ts +88 -0
- package/src/entities-v2/DefaultSplitOrder.ts +49 -0
- package/src/entities-v2/DefaultSubtask.ts +63 -0
- package/src/entities-v2/DefaultSupportTask.ts +43 -0
- package/src/entities-v2/DefaultTask.ts +71 -0
- package/src/entities-v2/DefaultTeam.ts +49 -0
- package/src/entities-v2/DefaultTelesalesDashboard.ts +41 -0
- package/src/entities-v2/DefaultTimeOff.ts +53 -0
- package/src/entities-v2/DefaultTimeSlot.ts +77 -0
- package/src/entities-v2/DefaultTransaction.ts +136 -0
- package/src/entities-v2/DefaultUser.ts +99 -0
- package/src/entities-v2/DefaultVendor.ts +53 -0
- package/src/entities-v2/DefaultVoiceConfiguration.ts +172 -0
- package/src/entities-v2/DefaultWorkOrderRemediationView.ts +41 -0
- package/src/entities-v2/Discount.ts +89 -0
- package/src/entities-v2/EmailFile.ts +160 -0
- package/src/entities-v2/Engineer.ts +45 -0
- package/src/entities-v2/EventActivity.ts +91 -0
- package/src/entities-v2/Exchange.ts +55 -0
- package/src/entities-v2/FieldSalesSalesTerritory.ts +55 -0
- package/src/entities-v2/File.ts +180 -0
- package/src/entities-v2/FinanceServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/FinanceWorkOrder.ts +257 -0
- package/src/entities-v2/Fingerprint.ts +73 -0
- package/src/entities-v2/GainingOneTouchSwitch.ts +107 -0
- package/src/entities-v2/InboundSmsMessage.ts +88 -0
- package/src/entities-v2/InspectionServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/InspectionWorkOrder.ts +278 -0
- package/src/entities-v2/InstallBusinessWorkOrder.ts +277 -0
- package/src/entities-v2/InstallServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/InstallServiceServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/InstallServiceWorkOrder.ts +241 -0
- package/src/entities-v2/InstallWorkOrder.ts +319 -0
- package/src/entities-v2/InternalInstallAudit.ts +210 -0
- package/src/entities-v2/InternetProduct.ts +237 -0
- package/src/entities-v2/Invoice.ts +203 -0
- package/src/entities-v2/InvoiceItem.ts +114 -0
- package/src/entities-v2/LaborProduct.ts +237 -0
- package/src/entities-v2/LandlineProduct.ts +237 -0
- package/src/entities-v2/Lead.ts +162 -0
- package/src/entities-v2/LeadCrmDataset.ts +81 -0
- package/src/entities-v2/LinearIssue.ts +43 -0
- package/src/entities-v2/LosingOneTouchSwitch.ts +107 -0
- package/src/entities-v2/MandateBillingRequest.ts +114 -0
- package/src/entities-v2/MeshProduct.ts +237 -0
- package/src/entities-v2/Milestone.ts +74 -0
- package/src/entities-v2/MobileProduct.ts +237 -0
- package/src/entities-v2/MultipleAccount.ts +96 -0
- package/src/entities-v2/NetomniaFtth1StageInstallAudit.ts +333 -0
- package/src/entities-v2/NetomniaFtthServiceVisitSheet.ts +163 -0
- package/src/entities-v2/NetomniaInstallVerification.ts +182 -0
- package/src/entities-v2/NetworkAdjustmentServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/NetworkAdjustmentWorkOrder.ts +257 -0
- package/src/entities-v2/NetworkDevice.ts +53 -0
- package/src/entities-v2/Noinstall3AuditOfInstallationSheet.ts +319 -0
- package/src/entities-v2/Note.ts +172 -0
- package/src/entities-v2/NotificationActivity.ts +96 -0
- package/src/entities-v2/Offer.ts +92 -0
- package/src/entities-v2/OhAuditOfInstallation.ts +351 -0
- package/src/entities-v2/OhExternalAudit.ts +93 -0
- package/src/entities-v2/OhInProgressAudit.ts +193 -0
- package/src/entities-v2/OhInstallationAudit.ts +266 -0
- package/src/entities-v2/OltNetworkDevice.ts +51 -0
- package/src/entities-v2/OneTouchSwitch.ts +113 -0
- package/src/entities-v2/OntReplacementApproval.ts +55 -0
- package/src/entities-v2/Order.ts +290 -0
- package/src/entities-v2/OrderCheck.ts +73 -0
- package/src/entities-v2/OrderItem.ts +175 -0
- package/src/entities-v2/OrderRemediationTask.ts +59 -0
- package/src/entities-v2/Organization.ts +58 -0
- package/src/entities-v2/Outage.ts +43 -0
- package/src/entities-v2/OutageCase.ts +155 -0
- package/src/entities-v2/OutboundSmsMessage.ts +88 -0
- package/src/entities-v2/OutcomeFormBlockageReportA55.ts +96 -0
- package/src/entities-v2/OutcomeFormInternalInstallAudit.ts +206 -0
- package/src/entities-v2/OutcomeFormNetomniaFtth1StageInstallAudit.ts +329 -0
- package/src/entities-v2/OutcomeFormNetomniaFtthServiceVisitSheet.ts +159 -0
- package/src/entities-v2/OutcomeFormNetomniaInstallVerification.ts +178 -0
- package/src/entities-v2/OutcomeFormNoinstall3AuditOfInstallationSheet.ts +315 -0
- package/src/entities-v2/OutcomeFormOhAuditOfInstallation.ts +347 -0
- package/src/entities-v2/OutcomeFormOhExternalAudit.ts +89 -0
- package/src/entities-v2/OutcomeFormOhInProgressAudit.ts +189 -0
- package/src/entities-v2/OutcomeFormOhInstallationAudit.ts +262 -0
- package/src/entities-v2/OutcomeFormOverlayRealA55.ts +169 -0
- package/src/entities-v2/OutcomeFormRemediationRequiredReason.ts +99 -0
- package/src/entities-v2/OutcomeFormServiceVisitAudit.ts +137 -0
- package/src/entities-v2/OutcomeFormSweeperMaintenanceAudit.ts +235 -0
- package/src/entities-v2/OutcomeFormUgAuditOfInstallation.ts +333 -0
- package/src/entities-v2/OutcomeFormUgExternalAudit.ts +91 -0
- package/src/entities-v2/OutcomeFormUgInProgressAudit.ts +183 -0
- package/src/entities-v2/OutcomeFormUgInstallationAudit.ts +254 -0
- package/src/entities-v2/OutcomeFormYfEquipmentCollection.ts +95 -0
- package/src/entities-v2/OutcomeFormYfFieldServiceVisit.ts +385 -0
- package/src/entities-v2/OutcomeFormYfToolAudit.ts +465 -0
- package/src/entities-v2/OutcomeFormYfVanAudit.ts +138 -0
- package/src/entities-v2/OverlayRealA55.ts +173 -0
- package/src/entities-v2/PICRequest.ts +79 -0
- package/src/entities-v2/PaymentBillingRequest.ts +114 -0
- package/src/entities-v2/PaymentMethod.ts +107 -0
- package/src/entities-v2/PaymentMethodRefund.ts +81 -0
- package/src/entities-v2/PermissionToFail.ts +57 -0
- package/src/entities-v2/PhoneNumber.ts +49 -0
- package/src/entities-v2/PlanningServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/PlanningWorkOrder.ts +259 -0
- package/src/entities-v2/PrePullServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/PrePullWorkOrder.ts +271 -0
- package/src/entities-v2/Premise.ts +65 -0
- package/src/entities-v2/Premise2.ts +43 -0
- package/src/entities-v2/PriceBook.ts +66 -0
- package/src/entities-v2/PrimaryAccount.ts +97 -0
- package/src/entities-v2/Product.ts +243 -0
- package/src/entities-v2/ProductComponent.ts +99 -0
- package/src/entities-v2/Program.ts +71 -0
- package/src/entities-v2/Project.ts +73 -0
- package/src/entities-v2/Queue.ts +51 -0
- package/src/entities-v2/QueueChange.ts +53 -0
- package/src/entities-v2/RecontractOffer.ts +89 -0
- package/src/entities-v2/Region.ts +47 -0
- package/src/entities-v2/RemediationRequiredReason.ts +101 -0
- package/src/entities-v2/RemediationServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/RemediationWorkOrder.ts +265 -0
- package/src/entities-v2/ResellerAccount.ts +96 -0
- package/src/entities-v2/Restriction.ts +68 -0
- package/src/entities-v2/ReturnOrder.ts +49 -0
- package/src/entities-v2/SaCancelChangeReason.ts +134 -0
- package/src/entities-v2/SaDelayChangeReason.ts +135 -0
- package/src/entities-v2/SaInformChangeReason.ts +108 -0
- package/src/entities-v2/SaRescheduleChangeReason.ts +125 -0
- package/src/entities-v2/SalesLeaderBoard.ts +43 -0
- package/src/entities-v2/SalesTerritory.ts +58 -0
- package/src/entities-v2/ScheduleSlot.ts +71 -0
- package/src/entities-v2/Service.ts +80 -0
- package/src/entities-v2/ServiceAppointment.ts +67 -0
- package/src/entities-v2/ServiceAppointmentConfig.ts +169 -0
- package/src/entities-v2/ServiceServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/ServiceVisitAudit.ts +139 -0
- package/src/entities-v2/ServiceWorkOrder.ts +351 -0
- package/src/entities-v2/SmsMessage.ts +92 -0
- package/src/entities-v2/SplitOrder.ts +50 -0
- package/src/entities-v2/StandardOffer.ts +89 -0
- package/src/entities-v2/Subtask.ts +65 -0
- package/src/entities-v2/SupportTask.ts +45 -0
- package/src/entities-v2/SweeperMaintenanceAudit.ts +237 -0
- package/src/entities-v2/Task.ts +73 -0
- package/src/entities-v2/TaskActivity.ts +91 -0
- package/src/entities-v2/Team.ts +51 -0
- package/src/entities-v2/TelesalesDashboard.ts +43 -0
- package/src/entities-v2/TelesalesSalesTerritory.ts +53 -0
- package/src/entities-v2/TimeOff.ts +55 -0
- package/src/entities-v2/TimeSlot.ts +79 -0
- package/src/entities-v2/Transaction.ts +137 -0
- package/src/entities-v2/UgAuditOfInstallation.ts +337 -0
- package/src/entities-v2/UgExternalAudit.ts +95 -0
- package/src/entities-v2/UgInProgressAudit.ts +187 -0
- package/src/entities-v2/UgInstallationAudit.ts +258 -0
- package/src/entities-v2/User.ts +101 -0
- package/src/entities-v2/Vendor.ts +55 -0
- package/src/entities-v2/VoiceConfiguration.ts +174 -0
- package/src/entities-v2/WayleaveServiceAppointmentConfig.ts +158 -0
- package/src/entities-v2/WayleaveWorkOrder.ts +259 -0
- package/src/entities-v2/WorkOrder.ts +416 -0
- package/src/entities-v2/WorkOrderRemediationView.ts +43 -0
- package/src/entities-v2/YfEquipmentCollection.ts +97 -0
- package/src/entities-v2/YfFieldServiceVisit.ts +389 -0
- package/src/entities-v2/YfToolAudit.ts +469 -0
- package/src/entities-v2/YfVanAudit.ts +142 -0
- package/src/generators/runner.ts +4 -2
- package/src/types-v1/Types.ts +23 -20
package/dist/types-v1/Types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export declare enum OdinEntities {
|
|
|
3
3
|
TIME_OFF = "IdentityModule:TimeOff",
|
|
4
4
|
ORDER_REMEDIATION_TASK = "OrderModule:OrderRemediationTask",
|
|
5
5
|
VOICE_CONFIGURATION = "ServiceModule:VoiceConfiguration",
|
|
6
|
-
|
|
6
|
+
CUSTOMER_DEVICE_ONT_REMOVAL = "ServiceModule:CustomerDeviceOntRemoval",
|
|
7
7
|
QUEUE = "SupportModule:Queue",
|
|
8
8
|
TELESALES_DASHBOARD = "CrmModule:TelesalesDashboard",
|
|
9
9
|
APPOINTMENT_CALENDAR = "CrmModule:AppointmentCalendar",
|
|
@@ -11,43 +11,46 @@ export declare enum OdinEntities {
|
|
|
11
11
|
CALL = "NotificationModule:Call",
|
|
12
12
|
TIME_SLOT = "IdentityModule:TimeSlot",
|
|
13
13
|
SUBTASK = "ProjectModule:Subtask",
|
|
14
|
-
ACCOUNT = "CrmModule:Account",
|
|
15
14
|
ORGANIZATION = "CrmModule:Organization",
|
|
16
15
|
BILLING_ADJUSTMENT = "OrderModule:BillingAdjustment",
|
|
16
|
+
ONT_REPLACEMENT_APPROVAL = "FieldServiceModule:OntReplacementApproval",
|
|
17
|
+
ACCOUNT = "CrmModule:Account",
|
|
17
18
|
CUSTOMER_DEVICE_ATA = "ServiceModule:CustomerDeviceAta",
|
|
18
19
|
REGION = "ProjectModule:Region",
|
|
19
20
|
CASE = "SupportModule:Case",
|
|
20
21
|
PREMISE = "CrmModule:Premise",
|
|
21
22
|
PROJECT = "ProjectModule:Project",
|
|
23
|
+
YF_TOOL_AUDIT = "FieldServiceModule:YfToolAudit",
|
|
24
|
+
YF_EQUIPMENT_COLLECTION = "FieldServiceModule:YfEquipmentCollection",
|
|
25
|
+
YF_VAN_AUDIT = "FieldServiceModule:YfVanAudit",
|
|
22
26
|
PHONE_NUMBER = "CrmModule:PhoneNumber",
|
|
23
27
|
TRANSACTION = "BillingModule:Transaction",
|
|
24
|
-
EXCHANGE = "ProjectModule:Exchange",
|
|
25
28
|
MILESTONE = "ProjectModule:Milestone",
|
|
29
|
+
WORK_ORDER = "FieldServiceModule:WorkOrder",
|
|
30
|
+
EXCHANGE = "ProjectModule:Exchange",
|
|
31
|
+
NOTE = "SupportModule:Note",
|
|
26
32
|
LEAD = "CrmModule:Lead",
|
|
27
|
-
ONE_TOUCH_SWITCH = "OrderModule:OneTouchSwitch",
|
|
28
33
|
TEAM = "IdentityModule:Team",
|
|
29
34
|
LINEAR_ISSUE = "SupportModule:LinearIssue",
|
|
30
35
|
NETOMNIA_INSTALL_VERIFICATION = "FieldServiceModule:NetomniaInstallVerification",
|
|
31
36
|
ENGINEER = "FieldServiceModule:Engineer",
|
|
32
|
-
|
|
33
|
-
PERMISSION_TO_FAIL = "FieldServiceModule:PermissionToFail",
|
|
37
|
+
CHANGE_REASON = "FieldServiceModule:ChangeReason",
|
|
34
38
|
OH_EXTERNAL_AUDIT = "FieldServiceModule:OhExternalAudit",
|
|
35
39
|
WORK_ORDER_REMEDIATION_VIEW = "FieldServiceModule:WorkOrderRemediationView",
|
|
36
40
|
UG_EXTERNAL_AUDIT = "FieldServiceModule:UgExternalAudit",
|
|
37
41
|
CALENDAR = "FieldServiceModule:Calendar",
|
|
38
42
|
NETOMNIA_FTTH_SERVICE_VISIT_SHEET = "FieldServiceModule:NetomniaFtthServiceVisitSheet",
|
|
39
43
|
ORDER_CHECK = "ServiceModule:OrderCheck",
|
|
40
|
-
|
|
41
|
-
CUSTOMER_DEVICE_ONT_REMOVAL = "ServiceModule:CustomerDeviceOntRemoval",
|
|
44
|
+
PERMISSION_TO_FAIL = "FieldServiceModule:PermissionToFail",
|
|
42
45
|
NETOMNIA_FTTH1_STAGE_INSTALL_AUDIT = "FieldServiceModule:NetomniaFtth1StageInstallAudit",
|
|
43
|
-
CUSTOMER_DEVICE_ROUTER = "ServiceModule:CustomerDeviceRouter",
|
|
44
46
|
CUSTOMER_DEVICE_ONT = "ServiceModule:CustomerDeviceOnt",
|
|
45
47
|
QUEUE_CHANGE = "SupportModule:QueueChange",
|
|
46
48
|
SUPPORT_TASK = "SupportModule:SupportTask",
|
|
49
|
+
CUSTOMER_DEVICE_ROUTER = "ServiceModule:CustomerDeviceRouter",
|
|
47
50
|
SERVICE = "ServiceModule:Service",
|
|
51
|
+
APPOINTMENT = "CrmModule:Appointment",
|
|
48
52
|
RETURN_ORDER = "OrderModule:ReturnOrder",
|
|
49
53
|
SWEEPER_MAINTENANCE_AUDIT = "FieldServiceModule:SweeperMaintenanceAudit",
|
|
50
|
-
SERVICE_VISIT_AUDIT = "FieldServiceModule:ServiceVisitAudit",
|
|
51
54
|
OH_INSTALLATION_AUDIT = "FieldServiceModule:OhInstallationAudit",
|
|
52
55
|
OH_AUDIT_OF_INSTALLATION = "FieldServiceModule:OhAuditOfInstallation",
|
|
53
56
|
UG_INSTALLATION_AUDIT = "FieldServiceModule:UgInstallationAudit",
|
|
@@ -55,34 +58,30 @@ export declare enum OdinEntities {
|
|
|
55
58
|
UG_AUDIT_OF_INSTALLATION = "FieldServiceModule:UgAuditOfInstallation",
|
|
56
59
|
BLOCKAGE_REPORT_A55 = "FieldServiceModule:BlockageReportA55",
|
|
57
60
|
NOINSTALL3_AUDIT_OF_INSTALLATION_SHEET = "FieldServiceModule:Noinstall3AuditOfInstallationSheet",
|
|
58
|
-
APPOINTMENT = "CrmModule:Appointment",
|
|
59
61
|
OH_IN_PROGRESS_AUDIT = "FieldServiceModule:OhInProgressAudit",
|
|
60
62
|
COMMISSION = "BillingModule:Commission",
|
|
61
63
|
CHURN_REQUEST = "OrderModule:ChurnRequest",
|
|
62
64
|
USER = "IdentityModule:User",
|
|
63
65
|
PIC_REQUEST = "OrderModule:PICRequest",
|
|
64
66
|
PREMISE2 = "CrmModule:Premise2",
|
|
65
|
-
ADDRESS = "CrmModule:Address",
|
|
66
67
|
INVOICE = "BillingModule:Invoice",
|
|
67
68
|
PAYMENT_METHOD_REFUND = "BillingModule:PaymentMethodRefund",
|
|
68
69
|
OVERLAY_REAL_A55 = "FieldServiceModule:OverlayRealA55",
|
|
69
70
|
FINGERPRINT = "CrmModule:Fingerprint",
|
|
70
|
-
CRM_DATASET = "CrmModule:CrmDataset",
|
|
71
71
|
OUTAGE = "ServiceModule:Outage",
|
|
72
72
|
SMS_MESSAGE = "NotificationModule:SmsMessage",
|
|
73
|
+
CRM_DATASET = "CrmModule:CrmDataset",
|
|
74
|
+
ADDRESS = "CrmModule:Address",
|
|
73
75
|
SALES_LEADER_BOARD = "CrmModule:SalesLeaderBoard",
|
|
74
|
-
SALES_TERRITORY = "CrmModule:SalesTerritory",
|
|
75
76
|
SERVICE_APPOINTMENT = "FieldServiceModule:ServiceAppointment",
|
|
76
|
-
|
|
77
|
+
PAYMENT_METHOD = "BillingModule:PaymentMethod",
|
|
77
78
|
CONTACT_IDENTITY = "CrmModule:ContactIdentity",
|
|
78
|
-
|
|
79
|
+
SERVICE_APPOINTMENT_CONFIG = "FieldServiceModule:ServiceAppointmentConfig",
|
|
79
80
|
RESTRICTION = "ProductModule:Restriction",
|
|
80
81
|
CONSUMPTION_SCHEDULE = "ProductModule:ConsumptionSchedule",
|
|
81
|
-
PAYMENT_METHOD = "BillingModule:PaymentMethod",
|
|
82
|
-
SERVICE_APPOINTMENT_CONFIG = "FieldServiceModule:ServiceAppointmentConfig",
|
|
83
|
-
VISIT = "CrmModule:Visit",
|
|
84
82
|
TASK = "ProjectModule:Task",
|
|
85
|
-
|
|
83
|
+
SALES_TERRITORY = "CrmModule:SalesTerritory",
|
|
84
|
+
REMEDIATION_REQUIRED_REASON = "FieldServiceModule:RemediationRequiredReason",
|
|
86
85
|
INTERNAL_INSTALL_AUDIT = "FieldServiceModule:InternalInstallAudit",
|
|
87
86
|
DISCOUNT = "ProductModule:Discount",
|
|
88
87
|
PRODUCT = "ProductModule:Product",
|
|
@@ -90,6 +89,7 @@ export declare enum OdinEntities {
|
|
|
90
89
|
INVOICE_ITEM = "BillingModule:InvoiceItem",
|
|
91
90
|
SCHEDULE_SLOT = "FieldServiceModule:ScheduleSlot",
|
|
92
91
|
UG_IN_PROGRESS_AUDIT = "FieldServiceModule:UgInProgressAudit",
|
|
92
|
+
OFFER = "ProductModule:Offer",
|
|
93
93
|
PRICE_BOOK = "ProductModule:PriceBook",
|
|
94
94
|
CONTACT = "CrmModule:Contact",
|
|
95
95
|
CUSTOMER_PHONE_PORTING = "ServiceModule:CustomerPhonePorting",
|
|
@@ -98,6 +98,9 @@ export declare enum OdinEntities {
|
|
|
98
98
|
CREDIT_NOTE = "BillingModule:CreditNote",
|
|
99
99
|
NETWORK_DEVICE = "ServiceModule:NetworkDevice",
|
|
100
100
|
ORDER_ITEM = "OrderModule:OrderItem",
|
|
101
|
+
ONE_TOUCH_SWITCH = "OrderModule:OneTouchSwitch",
|
|
102
|
+
SERVICE_VISIT_AUDIT = "FieldServiceModule:ServiceVisitAudit",
|
|
103
|
+
ACTIVITY_LOG = "AuditModule:ActivityLog",
|
|
101
104
|
CONSUMPTION_RATE = "ProductModule:ConsumptionRate",
|
|
102
105
|
PROGRAM = "ProjectModule:Program",
|
|
103
106
|
ORDER = "OrderModule:Order",
|
package/dist/types-v1/Types.js
CHANGED
|
@@ -7,7 +7,7 @@ var OdinEntities;
|
|
|
7
7
|
OdinEntities["TIME_OFF"] = "IdentityModule:TimeOff";
|
|
8
8
|
OdinEntities["ORDER_REMEDIATION_TASK"] = "OrderModule:OrderRemediationTask";
|
|
9
9
|
OdinEntities["VOICE_CONFIGURATION"] = "ServiceModule:VoiceConfiguration";
|
|
10
|
-
OdinEntities["
|
|
10
|
+
OdinEntities["CUSTOMER_DEVICE_ONT_REMOVAL"] = "ServiceModule:CustomerDeviceOntRemoval";
|
|
11
11
|
OdinEntities["QUEUE"] = "SupportModule:Queue";
|
|
12
12
|
OdinEntities["TELESALES_DASHBOARD"] = "CrmModule:TelesalesDashboard";
|
|
13
13
|
OdinEntities["APPOINTMENT_CALENDAR"] = "CrmModule:AppointmentCalendar";
|
|
@@ -15,43 +15,46 @@ var OdinEntities;
|
|
|
15
15
|
OdinEntities["CALL"] = "NotificationModule:Call";
|
|
16
16
|
OdinEntities["TIME_SLOT"] = "IdentityModule:TimeSlot";
|
|
17
17
|
OdinEntities["SUBTASK"] = "ProjectModule:Subtask";
|
|
18
|
-
OdinEntities["ACCOUNT"] = "CrmModule:Account";
|
|
19
18
|
OdinEntities["ORGANIZATION"] = "CrmModule:Organization";
|
|
20
19
|
OdinEntities["BILLING_ADJUSTMENT"] = "OrderModule:BillingAdjustment";
|
|
20
|
+
OdinEntities["ONT_REPLACEMENT_APPROVAL"] = "FieldServiceModule:OntReplacementApproval";
|
|
21
|
+
OdinEntities["ACCOUNT"] = "CrmModule:Account";
|
|
21
22
|
OdinEntities["CUSTOMER_DEVICE_ATA"] = "ServiceModule:CustomerDeviceAta";
|
|
22
23
|
OdinEntities["REGION"] = "ProjectModule:Region";
|
|
23
24
|
OdinEntities["CASE"] = "SupportModule:Case";
|
|
24
25
|
OdinEntities["PREMISE"] = "CrmModule:Premise";
|
|
25
26
|
OdinEntities["PROJECT"] = "ProjectModule:Project";
|
|
27
|
+
OdinEntities["YF_TOOL_AUDIT"] = "FieldServiceModule:YfToolAudit";
|
|
28
|
+
OdinEntities["YF_EQUIPMENT_COLLECTION"] = "FieldServiceModule:YfEquipmentCollection";
|
|
29
|
+
OdinEntities["YF_VAN_AUDIT"] = "FieldServiceModule:YfVanAudit";
|
|
26
30
|
OdinEntities["PHONE_NUMBER"] = "CrmModule:PhoneNumber";
|
|
27
31
|
OdinEntities["TRANSACTION"] = "BillingModule:Transaction";
|
|
28
|
-
OdinEntities["EXCHANGE"] = "ProjectModule:Exchange";
|
|
29
32
|
OdinEntities["MILESTONE"] = "ProjectModule:Milestone";
|
|
33
|
+
OdinEntities["WORK_ORDER"] = "FieldServiceModule:WorkOrder";
|
|
34
|
+
OdinEntities["EXCHANGE"] = "ProjectModule:Exchange";
|
|
35
|
+
OdinEntities["NOTE"] = "SupportModule:Note";
|
|
30
36
|
OdinEntities["LEAD"] = "CrmModule:Lead";
|
|
31
|
-
OdinEntities["ONE_TOUCH_SWITCH"] = "OrderModule:OneTouchSwitch";
|
|
32
37
|
OdinEntities["TEAM"] = "IdentityModule:Team";
|
|
33
38
|
OdinEntities["LINEAR_ISSUE"] = "SupportModule:LinearIssue";
|
|
34
39
|
OdinEntities["NETOMNIA_INSTALL_VERIFICATION"] = "FieldServiceModule:NetomniaInstallVerification";
|
|
35
40
|
OdinEntities["ENGINEER"] = "FieldServiceModule:Engineer";
|
|
36
|
-
OdinEntities["
|
|
37
|
-
OdinEntities["PERMISSION_TO_FAIL"] = "FieldServiceModule:PermissionToFail";
|
|
41
|
+
OdinEntities["CHANGE_REASON"] = "FieldServiceModule:ChangeReason";
|
|
38
42
|
OdinEntities["OH_EXTERNAL_AUDIT"] = "FieldServiceModule:OhExternalAudit";
|
|
39
43
|
OdinEntities["WORK_ORDER_REMEDIATION_VIEW"] = "FieldServiceModule:WorkOrderRemediationView";
|
|
40
44
|
OdinEntities["UG_EXTERNAL_AUDIT"] = "FieldServiceModule:UgExternalAudit";
|
|
41
45
|
OdinEntities["CALENDAR"] = "FieldServiceModule:Calendar";
|
|
42
46
|
OdinEntities["NETOMNIA_FTTH_SERVICE_VISIT_SHEET"] = "FieldServiceModule:NetomniaFtthServiceVisitSheet";
|
|
43
47
|
OdinEntities["ORDER_CHECK"] = "ServiceModule:OrderCheck";
|
|
44
|
-
OdinEntities["
|
|
45
|
-
OdinEntities["CUSTOMER_DEVICE_ONT_REMOVAL"] = "ServiceModule:CustomerDeviceOntRemoval";
|
|
48
|
+
OdinEntities["PERMISSION_TO_FAIL"] = "FieldServiceModule:PermissionToFail";
|
|
46
49
|
OdinEntities["NETOMNIA_FTTH1_STAGE_INSTALL_AUDIT"] = "FieldServiceModule:NetomniaFtth1StageInstallAudit";
|
|
47
|
-
OdinEntities["CUSTOMER_DEVICE_ROUTER"] = "ServiceModule:CustomerDeviceRouter";
|
|
48
50
|
OdinEntities["CUSTOMER_DEVICE_ONT"] = "ServiceModule:CustomerDeviceOnt";
|
|
49
51
|
OdinEntities["QUEUE_CHANGE"] = "SupportModule:QueueChange";
|
|
50
52
|
OdinEntities["SUPPORT_TASK"] = "SupportModule:SupportTask";
|
|
53
|
+
OdinEntities["CUSTOMER_DEVICE_ROUTER"] = "ServiceModule:CustomerDeviceRouter";
|
|
51
54
|
OdinEntities["SERVICE"] = "ServiceModule:Service";
|
|
55
|
+
OdinEntities["APPOINTMENT"] = "CrmModule:Appointment";
|
|
52
56
|
OdinEntities["RETURN_ORDER"] = "OrderModule:ReturnOrder";
|
|
53
57
|
OdinEntities["SWEEPER_MAINTENANCE_AUDIT"] = "FieldServiceModule:SweeperMaintenanceAudit";
|
|
54
|
-
OdinEntities["SERVICE_VISIT_AUDIT"] = "FieldServiceModule:ServiceVisitAudit";
|
|
55
58
|
OdinEntities["OH_INSTALLATION_AUDIT"] = "FieldServiceModule:OhInstallationAudit";
|
|
56
59
|
OdinEntities["OH_AUDIT_OF_INSTALLATION"] = "FieldServiceModule:OhAuditOfInstallation";
|
|
57
60
|
OdinEntities["UG_INSTALLATION_AUDIT"] = "FieldServiceModule:UgInstallationAudit";
|
|
@@ -59,34 +62,30 @@ var OdinEntities;
|
|
|
59
62
|
OdinEntities["UG_AUDIT_OF_INSTALLATION"] = "FieldServiceModule:UgAuditOfInstallation";
|
|
60
63
|
OdinEntities["BLOCKAGE_REPORT_A55"] = "FieldServiceModule:BlockageReportA55";
|
|
61
64
|
OdinEntities["NOINSTALL3_AUDIT_OF_INSTALLATION_SHEET"] = "FieldServiceModule:Noinstall3AuditOfInstallationSheet";
|
|
62
|
-
OdinEntities["APPOINTMENT"] = "CrmModule:Appointment";
|
|
63
65
|
OdinEntities["OH_IN_PROGRESS_AUDIT"] = "FieldServiceModule:OhInProgressAudit";
|
|
64
66
|
OdinEntities["COMMISSION"] = "BillingModule:Commission";
|
|
65
67
|
OdinEntities["CHURN_REQUEST"] = "OrderModule:ChurnRequest";
|
|
66
68
|
OdinEntities["USER"] = "IdentityModule:User";
|
|
67
69
|
OdinEntities["PIC_REQUEST"] = "OrderModule:PICRequest";
|
|
68
70
|
OdinEntities["PREMISE2"] = "CrmModule:Premise2";
|
|
69
|
-
OdinEntities["ADDRESS"] = "CrmModule:Address";
|
|
70
71
|
OdinEntities["INVOICE"] = "BillingModule:Invoice";
|
|
71
72
|
OdinEntities["PAYMENT_METHOD_REFUND"] = "BillingModule:PaymentMethodRefund";
|
|
72
73
|
OdinEntities["OVERLAY_REAL_A55"] = "FieldServiceModule:OverlayRealA55";
|
|
73
74
|
OdinEntities["FINGERPRINT"] = "CrmModule:Fingerprint";
|
|
74
|
-
OdinEntities["CRM_DATASET"] = "CrmModule:CrmDataset";
|
|
75
75
|
OdinEntities["OUTAGE"] = "ServiceModule:Outage";
|
|
76
76
|
OdinEntities["SMS_MESSAGE"] = "NotificationModule:SmsMessage";
|
|
77
|
+
OdinEntities["CRM_DATASET"] = "CrmModule:CrmDataset";
|
|
78
|
+
OdinEntities["ADDRESS"] = "CrmModule:Address";
|
|
77
79
|
OdinEntities["SALES_LEADER_BOARD"] = "CrmModule:SalesLeaderBoard";
|
|
78
|
-
OdinEntities["SALES_TERRITORY"] = "CrmModule:SalesTerritory";
|
|
79
80
|
OdinEntities["SERVICE_APPOINTMENT"] = "FieldServiceModule:ServiceAppointment";
|
|
80
|
-
OdinEntities["
|
|
81
|
+
OdinEntities["PAYMENT_METHOD"] = "BillingModule:PaymentMethod";
|
|
81
82
|
OdinEntities["CONTACT_IDENTITY"] = "CrmModule:ContactIdentity";
|
|
82
|
-
OdinEntities["
|
|
83
|
+
OdinEntities["SERVICE_APPOINTMENT_CONFIG"] = "FieldServiceModule:ServiceAppointmentConfig";
|
|
83
84
|
OdinEntities["RESTRICTION"] = "ProductModule:Restriction";
|
|
84
85
|
OdinEntities["CONSUMPTION_SCHEDULE"] = "ProductModule:ConsumptionSchedule";
|
|
85
|
-
OdinEntities["PAYMENT_METHOD"] = "BillingModule:PaymentMethod";
|
|
86
|
-
OdinEntities["SERVICE_APPOINTMENT_CONFIG"] = "FieldServiceModule:ServiceAppointmentConfig";
|
|
87
|
-
OdinEntities["VISIT"] = "CrmModule:Visit";
|
|
88
86
|
OdinEntities["TASK"] = "ProjectModule:Task";
|
|
89
|
-
OdinEntities["
|
|
87
|
+
OdinEntities["SALES_TERRITORY"] = "CrmModule:SalesTerritory";
|
|
88
|
+
OdinEntities["REMEDIATION_REQUIRED_REASON"] = "FieldServiceModule:RemediationRequiredReason";
|
|
90
89
|
OdinEntities["INTERNAL_INSTALL_AUDIT"] = "FieldServiceModule:InternalInstallAudit";
|
|
91
90
|
OdinEntities["DISCOUNT"] = "ProductModule:Discount";
|
|
92
91
|
OdinEntities["PRODUCT"] = "ProductModule:Product";
|
|
@@ -94,6 +93,7 @@ var OdinEntities;
|
|
|
94
93
|
OdinEntities["INVOICE_ITEM"] = "BillingModule:InvoiceItem";
|
|
95
94
|
OdinEntities["SCHEDULE_SLOT"] = "FieldServiceModule:ScheduleSlot";
|
|
96
95
|
OdinEntities["UG_IN_PROGRESS_AUDIT"] = "FieldServiceModule:UgInProgressAudit";
|
|
96
|
+
OdinEntities["OFFER"] = "ProductModule:Offer";
|
|
97
97
|
OdinEntities["PRICE_BOOK"] = "ProductModule:PriceBook";
|
|
98
98
|
OdinEntities["CONTACT"] = "CrmModule:Contact";
|
|
99
99
|
OdinEntities["CUSTOMER_PHONE_PORTING"] = "ServiceModule:CustomerPhonePorting";
|
|
@@ -102,6 +102,9 @@ var OdinEntities;
|
|
|
102
102
|
OdinEntities["CREDIT_NOTE"] = "BillingModule:CreditNote";
|
|
103
103
|
OdinEntities["NETWORK_DEVICE"] = "ServiceModule:NetworkDevice";
|
|
104
104
|
OdinEntities["ORDER_ITEM"] = "OrderModule:OrderItem";
|
|
105
|
+
OdinEntities["ONE_TOUCH_SWITCH"] = "OrderModule:OneTouchSwitch";
|
|
106
|
+
OdinEntities["SERVICE_VISIT_AUDIT"] = "FieldServiceModule:ServiceVisitAudit";
|
|
107
|
+
OdinEntities["ACTIVITY_LOG"] = "AuditModule:ActivityLog";
|
|
105
108
|
OdinEntities["CONSUMPTION_RATE"] = "ProductModule:ConsumptionRate";
|
|
106
109
|
OdinEntities["PROGRAM"] = "ProjectModule:Program";
|
|
107
110
|
OdinEntities["ORDER"] = "OrderModule:Order";
|
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.28",
|
|
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.67",
|
|
15
15
|
"@d19n/odin-types": "^1.0.10"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
|
|
2
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
3
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
4
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
5
|
+
import { BatchDeleteParam, BatchRestoreParam, OdinRecordCreateDto, OdinRecordUpdateDto, OdinLinkedRecordUpdateDto, RelationTypeEnum } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
6
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
7
|
+
|
|
8
|
+
export class AccountApi extends ApiProvider {
|
|
9
|
+
|
|
10
|
+
private readonly moduleName: string = 'CrmModule';
|
|
11
|
+
private readonly entityName: string = 'Account';
|
|
12
|
+
|
|
13
|
+
private sourceRecord: any;
|
|
14
|
+
|
|
15
|
+
public readonly organization: ApiRecordLinkManager;
|
|
16
|
+
public readonly contact: ApiRecordLinkManager;
|
|
17
|
+
public readonly note: ApiRecordLinkManager;
|
|
18
|
+
public readonly order: ApiRecordLinkManager;
|
|
19
|
+
public readonly workorder: ApiRecordLinkManager;
|
|
20
|
+
public readonly invoice: ApiRecordLinkManager;
|
|
21
|
+
public readonly onetouchswitch: ApiRecordLinkManager;
|
|
22
|
+
public readonly account: ApiRecordLinkManager;
|
|
23
|
+
public readonly address: ApiRecordLinkManager;
|
|
24
|
+
constructor(authParams?: OauthParams, protected readonly authToken?: string) {
|
|
25
|
+
super(authParams, authToken);
|
|
26
|
+
|
|
27
|
+
this.organization = new ApiRecordLinkManager(
|
|
28
|
+
this.sourceRecord,
|
|
29
|
+
'Organization',
|
|
30
|
+
'Account__Organization'
|
|
31
|
+
);
|
|
32
|
+
this.contact = new ApiRecordLinkManager(
|
|
33
|
+
this.sourceRecord,
|
|
34
|
+
'Contact',
|
|
35
|
+
'BillingContact'
|
|
36
|
+
);
|
|
37
|
+
this.note = new ApiRecordLinkManager(
|
|
38
|
+
this.sourceRecord,
|
|
39
|
+
'Note',
|
|
40
|
+
'Account__Note'
|
|
41
|
+
);
|
|
42
|
+
this.order = new ApiRecordLinkManager(
|
|
43
|
+
this.sourceRecord,
|
|
44
|
+
'Order',
|
|
45
|
+
'Account__Order'
|
|
46
|
+
);
|
|
47
|
+
this.workorder = new ApiRecordLinkManager(
|
|
48
|
+
this.sourceRecord,
|
|
49
|
+
'WorkOrder',
|
|
50
|
+
'Account__WorkOrder'
|
|
51
|
+
);
|
|
52
|
+
this.invoice = new ApiRecordLinkManager(
|
|
53
|
+
this.sourceRecord,
|
|
54
|
+
'Invoice',
|
|
55
|
+
'Account__Invoice'
|
|
56
|
+
);
|
|
57
|
+
this.onetouchswitch = new ApiRecordLinkManager(
|
|
58
|
+
this.sourceRecord,
|
|
59
|
+
'OneTouchSwitch',
|
|
60
|
+
'Account__OneTouchSwitch'
|
|
61
|
+
);
|
|
62
|
+
this.account = new ApiRecordLinkManager(
|
|
63
|
+
this.sourceRecord,
|
|
64
|
+
'Account',
|
|
65
|
+
'Account_Account'
|
|
66
|
+
);
|
|
67
|
+
this.address = new ApiRecordLinkManager(
|
|
68
|
+
this.sourceRecord,
|
|
69
|
+
'Address',
|
|
70
|
+
'BillingAddress'
|
|
71
|
+
);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
public setRecord(sourceRecord: any) {
|
|
76
|
+
this.sourceRecord = sourceRecord
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
public async schema() {
|
|
80
|
+
return await this.getSchema(this.moduleName, this.entityName);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
84
|
+
public async searchRecords(params: Partial<OdinSearchV2>) {
|
|
85
|
+
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Use this function to re-index records in elastic search
|
|
89
|
+
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
90
|
+
return await this._reIndexRecords(body);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// Use this function when you want paginating through the results to be handled
|
|
94
|
+
public async searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>) {
|
|
95
|
+
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Use this function when you want to return a single record
|
|
99
|
+
public async getByPrimaryKey(accountId: string) {
|
|
100
|
+
const res = await this._getByPrimaryKey(
|
|
101
|
+
this.moduleName,
|
|
102
|
+
this.entityName,
|
|
103
|
+
accountId
|
|
104
|
+
);
|
|
105
|
+
this.setRecord(res);
|
|
106
|
+
|
|
107
|
+
return res;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Use this function when you want to return the versions for a single record
|
|
111
|
+
public async getVersions() {
|
|
112
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
// Use this function when you want to return the change history for a single record
|
|
116
|
+
public async getRevisionTimeline() {
|
|
117
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Use this function when you want to return many records by primaryKeys
|
|
121
|
+
public async getManyByPrimaryKey(accountIds: string[]) {
|
|
122
|
+
return await this._getManyByPrimaryKey(
|
|
123
|
+
this.moduleName,
|
|
124
|
+
this.entityName,
|
|
125
|
+
accountIds
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Use this function when you want to upsert one or many records
|
|
130
|
+
public async upsert(upsertDtos: OdinRecordCreateDto[]) {
|
|
131
|
+
return await this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Use this function when you want to update one or many records
|
|
135
|
+
public async update(updateDtos: OdinRecordUpdateDto[]) {
|
|
136
|
+
return await this._update(this.moduleName, this.entityName, updateDtos);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Use this function when you want to delete one or many records
|
|
140
|
+
public async delete(accountIds: string[]) {
|
|
141
|
+
return await this._delete(
|
|
142
|
+
this.moduleName,
|
|
143
|
+
this.entityName,
|
|
144
|
+
accountIds
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// Use this function when you want to restore one or many records
|
|
149
|
+
public async restore(accountIds: string[]) {
|
|
150
|
+
return await this._restore(
|
|
151
|
+
this.moduleName,
|
|
152
|
+
this.entityName,
|
|
153
|
+
accountIds
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
}
|
|
159
|
+
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
|
|
2
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
3
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
4
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
5
|
+
import { BatchDeleteParam, BatchRestoreParam, OdinRecordCreateDto, OdinRecordUpdateDto, OdinLinkedRecordUpdateDto, RelationTypeEnum } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
6
|
+
import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
|
|
7
|
+
|
|
8
|
+
export class ActivityApi extends ApiProvider {
|
|
9
|
+
|
|
10
|
+
private readonly moduleName: string = 'SchemaModule';
|
|
11
|
+
private readonly entityName: string = 'Activity';
|
|
12
|
+
|
|
13
|
+
private sourceRecord: any;
|
|
14
|
+
|
|
15
|
+
public readonly contact: ApiRecordLinkManager;
|
|
16
|
+
public readonly onetouchswitch: ApiRecordLinkManager;
|
|
17
|
+
public readonly workorder: ApiRecordLinkManager;
|
|
18
|
+
public readonly order: ApiRecordLinkManager;
|
|
19
|
+
public readonly orderitem: ApiRecordLinkManager;
|
|
20
|
+
public readonly billingrequest: ApiRecordLinkManager;
|
|
21
|
+
public readonly paymentmethodrefund: ApiRecordLinkManager;
|
|
22
|
+
public readonly note: ApiRecordLinkManager;
|
|
23
|
+
public readonly file: ApiRecordLinkManager;
|
|
24
|
+
public readonly customerdeviceont: ApiRecordLinkManager;
|
|
25
|
+
constructor(authParams?: OauthParams, protected readonly authToken?: string) {
|
|
26
|
+
super(authParams, authToken);
|
|
27
|
+
|
|
28
|
+
this.contact = new ApiRecordLinkManager(
|
|
29
|
+
this.sourceRecord,
|
|
30
|
+
'Contact',
|
|
31
|
+
'Contact__Activity'
|
|
32
|
+
);
|
|
33
|
+
this.onetouchswitch = new ApiRecordLinkManager(
|
|
34
|
+
this.sourceRecord,
|
|
35
|
+
'OneTouchSwitch',
|
|
36
|
+
'OneTouchSwitch__Activity'
|
|
37
|
+
);
|
|
38
|
+
this.workorder = new ApiRecordLinkManager(
|
|
39
|
+
this.sourceRecord,
|
|
40
|
+
'WorkOrder',
|
|
41
|
+
'WorkOrder__Activity'
|
|
42
|
+
);
|
|
43
|
+
this.order = new ApiRecordLinkManager(
|
|
44
|
+
this.sourceRecord,
|
|
45
|
+
'Order',
|
|
46
|
+
'Order__Activity'
|
|
47
|
+
);
|
|
48
|
+
this.orderitem = new ApiRecordLinkManager(
|
|
49
|
+
this.sourceRecord,
|
|
50
|
+
'OrderItem',
|
|
51
|
+
'OrderItem__Activity'
|
|
52
|
+
);
|
|
53
|
+
this.billingrequest = new ApiRecordLinkManager(
|
|
54
|
+
this.sourceRecord,
|
|
55
|
+
'BillingRequest',
|
|
56
|
+
'BillingRequest__Activity'
|
|
57
|
+
);
|
|
58
|
+
this.paymentmethodrefund = new ApiRecordLinkManager(
|
|
59
|
+
this.sourceRecord,
|
|
60
|
+
'PaymentMethodRefund',
|
|
61
|
+
'PaymentMethodRefund__Activity'
|
|
62
|
+
);
|
|
63
|
+
this.note = new ApiRecordLinkManager(
|
|
64
|
+
this.sourceRecord,
|
|
65
|
+
'Note',
|
|
66
|
+
'Activity__Note'
|
|
67
|
+
);
|
|
68
|
+
this.file = new ApiRecordLinkManager(
|
|
69
|
+
this.sourceRecord,
|
|
70
|
+
'File',
|
|
71
|
+
'Activity__File'
|
|
72
|
+
);
|
|
73
|
+
this.customerdeviceont = new ApiRecordLinkManager(
|
|
74
|
+
this.sourceRecord,
|
|
75
|
+
'CustomerDeviceOnt',
|
|
76
|
+
'CustomerDeviceOnt__Activity'
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
public setRecord(sourceRecord: any) {
|
|
82
|
+
this.sourceRecord = sourceRecord
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
public async schema() {
|
|
86
|
+
return await this.getSchema(this.moduleName, this.entityName);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
90
|
+
public async searchRecords(params: Partial<OdinSearchV2>) {
|
|
91
|
+
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Use this function to re-index records in elastic search
|
|
95
|
+
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
96
|
+
return await this._reIndexRecords(body);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
// Use this function when you want paginating through the results to be handled
|
|
100
|
+
public async searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>) {
|
|
101
|
+
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Use this function when you want to return a single record
|
|
105
|
+
public async getByPrimaryKey(activityId: string) {
|
|
106
|
+
const res = await this._getByPrimaryKey(
|
|
107
|
+
this.moduleName,
|
|
108
|
+
this.entityName,
|
|
109
|
+
activityId
|
|
110
|
+
);
|
|
111
|
+
this.setRecord(res);
|
|
112
|
+
|
|
113
|
+
return res;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Use this function when you want to return the versions for a single record
|
|
117
|
+
public async getVersions() {
|
|
118
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
// Use this function when you want to return the change history for a single record
|
|
122
|
+
public async getRevisionTimeline() {
|
|
123
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
// Use this function when you want to return many records by primaryKeys
|
|
127
|
+
public async getManyByPrimaryKey(activityIds: string[]) {
|
|
128
|
+
return await this._getManyByPrimaryKey(
|
|
129
|
+
this.moduleName,
|
|
130
|
+
this.entityName,
|
|
131
|
+
activityIds
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Use this function when you want to upsert one or many records
|
|
136
|
+
public async upsert(upsertDtos: OdinRecordCreateDto[]) {
|
|
137
|
+
return await this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Use this function when you want to update one or many records
|
|
141
|
+
public async update(updateDtos: OdinRecordUpdateDto[]) {
|
|
142
|
+
return await this._update(this.moduleName, this.entityName, updateDtos);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// Use this function when you want to delete one or many records
|
|
146
|
+
public async delete(activityIds: string[]) {
|
|
147
|
+
return await this._delete(
|
|
148
|
+
this.moduleName,
|
|
149
|
+
this.entityName,
|
|
150
|
+
activityIds
|
|
151
|
+
);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// Use this function when you want to restore one or many records
|
|
155
|
+
public async restore(activityIds: string[]) {
|
|
156
|
+
return await this._restore(
|
|
157
|
+
this.moduleName,
|
|
158
|
+
this.entityName,
|
|
159
|
+
activityIds
|
|
160
|
+
);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
}
|
|
165
|
+
|