@d19n/youfibre-odin-sdk 1.0.1
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/README.md +1 -0
- package/dist/api-sdk-v1/AccountApi.d.ts +87 -0
- package/dist/api-sdk-v1/AccountApi.js +367 -0
- package/dist/api-sdk-v1/ActivityApi.d.ts +99 -0
- package/dist/api-sdk-v1/ActivityApi.js +423 -0
- package/dist/api-sdk-v1/AddressApi.d.ts +141 -0
- package/dist/api-sdk-v1/AddressApi.js +621 -0
- package/dist/api-sdk-v1/AppointmentApi.d.ts +78 -0
- package/dist/api-sdk-v1/AppointmentApi.js +324 -0
- package/dist/api-sdk-v1/AppointmentCalendarApi.d.ts +29 -0
- package/dist/api-sdk-v1/AppointmentCalendarApi.js +93 -0
- package/dist/api-sdk-v1/BillingAdjustmentApi.d.ts +57 -0
- package/dist/api-sdk-v1/BillingAdjustmentApi.js +225 -0
- package/dist/api-sdk-v1/BillingRequestApi.d.ts +78 -0
- package/dist/api-sdk-v1/BillingRequestApi.js +324 -0
- package/dist/api-sdk-v1/BlockageReportA55Api.d.ts +50 -0
- package/dist/api-sdk-v1/BlockageReportA55Api.js +192 -0
- package/dist/api-sdk-v1/CalendarApi.d.ts +29 -0
- package/dist/api-sdk-v1/CalendarApi.js +93 -0
- package/dist/api-sdk-v1/CallApi.d.ts +57 -0
- package/dist/api-sdk-v1/CallApi.js +225 -0
- package/dist/api-sdk-v1/CaseApi.d.ts +113 -0
- package/dist/api-sdk-v1/CaseApi.js +489 -0
- package/dist/api-sdk-v1/CaseQueueListViewApi.d.ts +29 -0
- package/dist/api-sdk-v1/CaseQueueListViewApi.js +93 -0
- package/dist/api-sdk-v1/ChangeReasonApi.d.ts +64 -0
- package/dist/api-sdk-v1/ChangeReasonApi.js +258 -0
- package/dist/api-sdk-v1/ChurnRequestApi.d.ts +43 -0
- package/dist/api-sdk-v1/ChurnRequestApi.js +159 -0
- package/dist/api-sdk-v1/CommissionApi.d.ts +57 -0
- package/dist/api-sdk-v1/CommissionApi.js +225 -0
- package/dist/api-sdk-v1/ConsumptionRateApi.d.ts +43 -0
- package/dist/api-sdk-v1/ConsumptionRateApi.js +159 -0
- package/dist/api-sdk-v1/ConsumptionScheduleApi.d.ts +50 -0
- package/dist/api-sdk-v1/ConsumptionScheduleApi.js +192 -0
- package/dist/api-sdk-v1/ContactApi.d.ts +204 -0
- package/dist/api-sdk-v1/ContactApi.js +918 -0
- package/dist/api-sdk-v1/ContactIdentityApi.d.ts +57 -0
- package/dist/api-sdk-v1/ContactIdentityApi.js +225 -0
- package/dist/api-sdk-v1/CreditNoteApi.d.ts +57 -0
- package/dist/api-sdk-v1/CreditNoteApi.js +225 -0
- package/dist/api-sdk-v1/CrmDatasetApi.d.ts +73 -0
- package/dist/api-sdk-v1/CrmDatasetApi.js +301 -0
- package/dist/api-sdk-v1/CustomerDeviceAtaApi.d.ts +36 -0
- package/dist/api-sdk-v1/CustomerDeviceAtaApi.js +126 -0
- package/dist/api-sdk-v1/CustomerDeviceOntApi.d.ts +92 -0
- package/dist/api-sdk-v1/CustomerDeviceOntApi.js +390 -0
- package/dist/api-sdk-v1/CustomerDeviceOntRemovalApi.d.ts +36 -0
- package/dist/api-sdk-v1/CustomerDeviceOntRemovalApi.js +126 -0
- package/dist/api-sdk-v1/CustomerDeviceRouterApi.d.ts +71 -0
- package/dist/api-sdk-v1/CustomerDeviceRouterApi.js +291 -0
- package/dist/api-sdk-v1/CustomerPhonePortingApi.d.ts +36 -0
- package/dist/api-sdk-v1/CustomerPhonePortingApi.js +126 -0
- package/dist/api-sdk-v1/DashboardApi.d.ts +29 -0
- package/dist/api-sdk-v1/DashboardApi.js +93 -0
- package/dist/api-sdk-v1/DeactivationApprovalApi.d.ts +50 -0
- package/dist/api-sdk-v1/DeactivationApprovalApi.js +192 -0
- package/dist/api-sdk-v1/DiscountApi.d.ts +71 -0
- package/dist/api-sdk-v1/DiscountApi.js +291 -0
- package/dist/api-sdk-v1/EngineerApi.d.ts +29 -0
- package/dist/api-sdk-v1/EngineerApi.js +93 -0
- package/dist/api-sdk-v1/ExchangeApi.d.ts +50 -0
- package/dist/api-sdk-v1/ExchangeApi.js +192 -0
- package/dist/api-sdk-v1/FileApi.d.ts +323 -0
- package/dist/api-sdk-v1/FileApi.js +1479 -0
- package/dist/api-sdk-v1/FingerprintApi.d.ts +57 -0
- package/dist/api-sdk-v1/FingerprintApi.js +225 -0
- package/dist/api-sdk-v1/InternalInstallAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/InternalInstallAuditApi.js +192 -0
- package/dist/api-sdk-v1/InvoiceApi.d.ts +141 -0
- package/dist/api-sdk-v1/InvoiceApi.js +621 -0
- package/dist/api-sdk-v1/InvoiceItemApi.d.ts +43 -0
- package/dist/api-sdk-v1/InvoiceItemApi.js +159 -0
- package/dist/api-sdk-v1/LeadApi.d.ts +141 -0
- package/dist/api-sdk-v1/LeadApi.js +621 -0
- package/dist/api-sdk-v1/LinearIssueApi.d.ts +29 -0
- package/dist/api-sdk-v1/LinearIssueApi.js +93 -0
- package/dist/api-sdk-v1/MilestoneApi.d.ts +57 -0
- package/dist/api-sdk-v1/MilestoneApi.js +225 -0
- package/dist/api-sdk-v1/NetomniaFtth1StageInstallAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/NetomniaFtth1StageInstallAuditApi.js +192 -0
- package/dist/api-sdk-v1/NetomniaFtthServiceVisitSheetApi.d.ts +50 -0
- package/dist/api-sdk-v1/NetomniaFtthServiceVisitSheetApi.js +192 -0
- package/dist/api-sdk-v1/NetomniaInstallVerificationApi.d.ts +50 -0
- package/dist/api-sdk-v1/NetomniaInstallVerificationApi.js +192 -0
- package/dist/api-sdk-v1/NetworkDeviceApi.d.ts +36 -0
- package/dist/api-sdk-v1/NetworkDeviceApi.js +126 -0
- package/dist/api-sdk-v1/Noinstall3AuditOfInstallationSheetApi.d.ts +36 -0
- package/dist/api-sdk-v1/Noinstall3AuditOfInstallationSheetApi.js +126 -0
- package/dist/api-sdk-v1/NoteApi.d.ts +442 -0
- package/dist/api-sdk-v1/NoteApi.js +2040 -0
- package/dist/api-sdk-v1/OfferApi.d.ts +64 -0
- package/dist/api-sdk-v1/OfferApi.js +258 -0
- package/dist/api-sdk-v1/OhAuditOfInstallationApi.d.ts +50 -0
- package/dist/api-sdk-v1/OhAuditOfInstallationApi.js +192 -0
- package/dist/api-sdk-v1/OhExternalAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/OhExternalAuditApi.js +192 -0
- package/dist/api-sdk-v1/OhInProgressAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/OhInProgressAuditApi.js +192 -0
- package/dist/api-sdk-v1/OhInstallationAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/OhInstallationAuditApi.js +192 -0
- package/dist/api-sdk-v1/OneTouchSwitchApi.d.ts +78 -0
- package/dist/api-sdk-v1/OneTouchSwitchApi.js +324 -0
- package/dist/api-sdk-v1/OrderApi.d.ts +247 -0
- package/dist/api-sdk-v1/OrderApi.js +1121 -0
- package/dist/api-sdk-v1/OrderCheckApi.d.ts +36 -0
- package/dist/api-sdk-v1/OrderCheckApi.js +126 -0
- package/dist/api-sdk-v1/OrderItemApi.d.ts +134 -0
- package/dist/api-sdk-v1/OrderItemApi.js +588 -0
- package/dist/api-sdk-v1/OrderRemediationTaskApi.d.ts +57 -0
- package/dist/api-sdk-v1/OrderRemediationTaskApi.js +225 -0
- package/dist/api-sdk-v1/OrganizationApi.d.ts +57 -0
- package/dist/api-sdk-v1/OrganizationApi.js +225 -0
- package/dist/api-sdk-v1/OutageApi.d.ts +29 -0
- package/dist/api-sdk-v1/OutageApi.js +93 -0
- package/dist/api-sdk-v1/OverlayRealA55Api.d.ts +50 -0
- package/dist/api-sdk-v1/OverlayRealA55Api.js +192 -0
- package/dist/api-sdk-v1/PICRequestApi.d.ts +43 -0
- package/dist/api-sdk-v1/PICRequestApi.js +159 -0
- package/dist/api-sdk-v1/PaymentMethodApi.d.ts +71 -0
- package/dist/api-sdk-v1/PaymentMethodApi.js +291 -0
- package/dist/api-sdk-v1/PaymentMethodRefundApi.d.ts +85 -0
- package/dist/api-sdk-v1/PaymentMethodRefundApi.js +357 -0
- package/dist/api-sdk-v1/PermissionToFailApi.d.ts +43 -0
- package/dist/api-sdk-v1/PermissionToFailApi.js +159 -0
- package/dist/api-sdk-v1/PhoneNumberApi.d.ts +43 -0
- package/dist/api-sdk-v1/PhoneNumberApi.js +159 -0
- package/dist/api-sdk-v1/Premise2Api.d.ts +29 -0
- package/dist/api-sdk-v1/Premise2Api.js +93 -0
- package/dist/api-sdk-v1/PremiseApi.d.ts +29 -0
- package/dist/api-sdk-v1/PremiseApi.js +93 -0
- package/dist/api-sdk-v1/PriceBookApi.d.ts +44 -0
- package/dist/api-sdk-v1/PriceBookApi.js +164 -0
- package/dist/api-sdk-v1/ProductApi.d.ts +100 -0
- package/dist/api-sdk-v1/ProductApi.js +428 -0
- package/dist/api-sdk-v1/ProductComponentApi.d.ts +50 -0
- package/dist/api-sdk-v1/ProductComponentApi.js +192 -0
- package/dist/api-sdk-v1/ProgramApi.d.ts +43 -0
- package/dist/api-sdk-v1/ProgramApi.js +159 -0
- package/dist/api-sdk-v1/ProjectApi.d.ts +50 -0
- package/dist/api-sdk-v1/ProjectApi.js +192 -0
- package/dist/api-sdk-v1/QueueApi.d.ts +50 -0
- package/dist/api-sdk-v1/QueueApi.js +192 -0
- package/dist/api-sdk-v1/QueueChangeApi.d.ts +43 -0
- package/dist/api-sdk-v1/QueueChangeApi.js +159 -0
- package/dist/api-sdk-v1/RegionApi.d.ts +43 -0
- package/dist/api-sdk-v1/RegionApi.js +159 -0
- package/dist/api-sdk-v1/RemediationRequiredReasonApi.d.ts +57 -0
- package/dist/api-sdk-v1/RemediationRequiredReasonApi.js +225 -0
- package/dist/api-sdk-v1/RestrictionApi.d.ts +50 -0
- package/dist/api-sdk-v1/RestrictionApi.js +192 -0
- package/dist/api-sdk-v1/ReturnOrderApi.d.ts +43 -0
- package/dist/api-sdk-v1/ReturnOrderApi.js +159 -0
- package/dist/api-sdk-v1/SalesLeaderBoardApi.d.ts +29 -0
- package/dist/api-sdk-v1/SalesLeaderBoardApi.js +93 -0
- package/dist/api-sdk-v1/SalesTerritoryApi.d.ts +50 -0
- package/dist/api-sdk-v1/SalesTerritoryApi.js +192 -0
- package/dist/api-sdk-v1/ScheduleSlotApi.d.ts +36 -0
- package/dist/api-sdk-v1/ScheduleSlotApi.js +126 -0
- package/dist/api-sdk-v1/ServiceApi.d.ts +43 -0
- package/dist/api-sdk-v1/ServiceApi.js +159 -0
- package/dist/api-sdk-v1/ServiceAppointmentApi.d.ts +57 -0
- package/dist/api-sdk-v1/ServiceAppointmentApi.js +225 -0
- package/dist/api-sdk-v1/ServiceAppointmentConfigApi.d.ts +78 -0
- package/dist/api-sdk-v1/ServiceAppointmentConfigApi.js +324 -0
- package/dist/api-sdk-v1/ServiceVisitAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/ServiceVisitAuditApi.js +192 -0
- package/dist/api-sdk-v1/SmsMessageApi.d.ts +71 -0
- package/dist/api-sdk-v1/SmsMessageApi.js +291 -0
- package/dist/api-sdk-v1/SplitOrderApi.d.ts +50 -0
- package/dist/api-sdk-v1/SplitOrderApi.js +192 -0
- package/dist/api-sdk-v1/SubtaskApi.d.ts +43 -0
- package/dist/api-sdk-v1/SubtaskApi.js +159 -0
- package/dist/api-sdk-v1/SupportTaskApi.d.ts +36 -0
- package/dist/api-sdk-v1/SupportTaskApi.js +126 -0
- package/dist/api-sdk-v1/SweeperMaintenanceAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/SweeperMaintenanceAuditApi.js +192 -0
- package/dist/api-sdk-v1/TaskApi.d.ts +50 -0
- package/dist/api-sdk-v1/TaskApi.js +192 -0
- package/dist/api-sdk-v1/TeamApi.d.ts +43 -0
- package/dist/api-sdk-v1/TeamApi.js +159 -0
- package/dist/api-sdk-v1/TelesalesDashboardApi.d.ts +29 -0
- package/dist/api-sdk-v1/TelesalesDashboardApi.js +93 -0
- package/dist/api-sdk-v1/TimeOffApi.d.ts +36 -0
- package/dist/api-sdk-v1/TimeOffApi.js +126 -0
- package/dist/api-sdk-v1/TimeSlotApi.d.ts +36 -0
- package/dist/api-sdk-v1/TimeSlotApi.js +126 -0
- package/dist/api-sdk-v1/TransactionApi.d.ts +78 -0
- package/dist/api-sdk-v1/TransactionApi.js +324 -0
- package/dist/api-sdk-v1/UgAuditOfInstallationApi.d.ts +50 -0
- package/dist/api-sdk-v1/UgAuditOfInstallationApi.js +192 -0
- package/dist/api-sdk-v1/UgExternalAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/UgExternalAuditApi.js +192 -0
- package/dist/api-sdk-v1/UgInProgressAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/UgInProgressAuditApi.js +192 -0
- package/dist/api-sdk-v1/UgInstallationAuditApi.d.ts +50 -0
- package/dist/api-sdk-v1/UgInstallationAuditApi.js +192 -0
- package/dist/api-sdk-v1/UserApi.d.ts +106 -0
- package/dist/api-sdk-v1/UserApi.js +456 -0
- package/dist/api-sdk-v1/VendorApi.d.ts +43 -0
- package/dist/api-sdk-v1/VendorApi.js +159 -0
- package/dist/api-sdk-v1/VisitApi.d.ts +71 -0
- package/dist/api-sdk-v1/VisitApi.js +291 -0
- package/dist/api-sdk-v1/VoiceConfigurationApi.d.ts +36 -0
- package/dist/api-sdk-v1/VoiceConfigurationApi.js +126 -0
- package/dist/api-sdk-v1/WorkOrderApi.d.ts +323 -0
- package/dist/api-sdk-v1/WorkOrderApi.js +1479 -0
- package/dist/api-sdk-v1/WorkOrderRemediationViewApi.d.ts +29 -0
- package/dist/api-sdk-v1/WorkOrderRemediationViewApi.js +93 -0
- package/dist/api-sdk-v1/YfEquipmentCollectionApi.d.ts +50 -0
- package/dist/api-sdk-v1/YfEquipmentCollectionApi.js +192 -0
- package/dist/api-sdk-v1/YfFieldServiceVisitApi.d.ts +50 -0
- package/dist/api-sdk-v1/YfFieldServiceVisitApi.js +192 -0
- package/dist/db-sdk-v1/AccountDb.d.ts +78 -0
- package/dist/db-sdk-v1/AccountDb.js +357 -0
- package/dist/db-sdk-v1/ActivityDb.d.ts +90 -0
- package/dist/db-sdk-v1/ActivityDb.js +413 -0
- package/dist/db-sdk-v1/AddressDb.d.ts +132 -0
- package/dist/db-sdk-v1/AddressDb.js +611 -0
- package/dist/db-sdk-v1/AppointmentCalendarDb.d.ts +20 -0
- package/dist/db-sdk-v1/AppointmentCalendarDb.js +83 -0
- package/dist/db-sdk-v1/AppointmentDb.d.ts +69 -0
- package/dist/db-sdk-v1/AppointmentDb.js +314 -0
- package/dist/db-sdk-v1/BillingAdjustmentDb.d.ts +48 -0
- package/dist/db-sdk-v1/BillingAdjustmentDb.js +215 -0
- package/dist/db-sdk-v1/BillingRequestDb.d.ts +69 -0
- package/dist/db-sdk-v1/BillingRequestDb.js +314 -0
- package/dist/db-sdk-v1/BlockageReportA55Db.d.ts +41 -0
- package/dist/db-sdk-v1/BlockageReportA55Db.js +182 -0
- package/dist/db-sdk-v1/CalendarDb.d.ts +20 -0
- package/dist/db-sdk-v1/CalendarDb.js +83 -0
- package/dist/db-sdk-v1/CallDb.d.ts +48 -0
- package/dist/db-sdk-v1/CallDb.js +215 -0
- package/dist/db-sdk-v1/CaseDb.d.ts +104 -0
- package/dist/db-sdk-v1/CaseDb.js +479 -0
- package/dist/db-sdk-v1/CaseQueueListViewDb.d.ts +20 -0
- package/dist/db-sdk-v1/CaseQueueListViewDb.js +83 -0
- package/dist/db-sdk-v1/ChangeReasonDb.d.ts +55 -0
- package/dist/db-sdk-v1/ChangeReasonDb.js +248 -0
- package/dist/db-sdk-v1/ChurnRequestDb.d.ts +34 -0
- package/dist/db-sdk-v1/ChurnRequestDb.js +149 -0
- package/dist/db-sdk-v1/CommissionDb.d.ts +48 -0
- package/dist/db-sdk-v1/CommissionDb.js +215 -0
- package/dist/db-sdk-v1/ConsumptionRateDb.d.ts +34 -0
- package/dist/db-sdk-v1/ConsumptionRateDb.js +149 -0
- package/dist/db-sdk-v1/ConsumptionScheduleDb.d.ts +41 -0
- package/dist/db-sdk-v1/ConsumptionScheduleDb.js +182 -0
- package/dist/db-sdk-v1/ContactDb.d.ts +195 -0
- package/dist/db-sdk-v1/ContactDb.js +908 -0
- package/dist/db-sdk-v1/ContactIdentityDb.d.ts +48 -0
- package/dist/db-sdk-v1/ContactIdentityDb.js +215 -0
- package/dist/db-sdk-v1/CreditNoteDb.d.ts +48 -0
- package/dist/db-sdk-v1/CreditNoteDb.js +215 -0
- package/dist/db-sdk-v1/CrmDatasetDb.d.ts +64 -0
- package/dist/db-sdk-v1/CrmDatasetDb.js +291 -0
- package/dist/db-sdk-v1/CustomerDeviceAtaDb.d.ts +27 -0
- package/dist/db-sdk-v1/CustomerDeviceAtaDb.js +116 -0
- package/dist/db-sdk-v1/CustomerDeviceOntDb.d.ts +83 -0
- package/dist/db-sdk-v1/CustomerDeviceOntDb.js +380 -0
- package/dist/db-sdk-v1/CustomerDeviceOntRemovalDb.d.ts +27 -0
- package/dist/db-sdk-v1/CustomerDeviceOntRemovalDb.js +116 -0
- package/dist/db-sdk-v1/CustomerDeviceRouterDb.d.ts +62 -0
- package/dist/db-sdk-v1/CustomerDeviceRouterDb.js +281 -0
- package/dist/db-sdk-v1/CustomerPhonePortingDb.d.ts +27 -0
- package/dist/db-sdk-v1/CustomerPhonePortingDb.js +116 -0
- package/dist/db-sdk-v1/DashboardDb.d.ts +20 -0
- package/dist/db-sdk-v1/DashboardDb.js +83 -0
- package/dist/db-sdk-v1/DeactivationApprovalDb.d.ts +41 -0
- package/dist/db-sdk-v1/DeactivationApprovalDb.js +182 -0
- package/dist/db-sdk-v1/DiscountDb.d.ts +62 -0
- package/dist/db-sdk-v1/DiscountDb.js +281 -0
- package/dist/db-sdk-v1/EngineerDb.d.ts +20 -0
- package/dist/db-sdk-v1/EngineerDb.js +83 -0
- package/dist/db-sdk-v1/ExchangeDb.d.ts +41 -0
- package/dist/db-sdk-v1/ExchangeDb.js +182 -0
- package/dist/db-sdk-v1/FileDb.d.ts +314 -0
- package/dist/db-sdk-v1/FileDb.js +1469 -0
- package/dist/db-sdk-v1/FingerprintDb.d.ts +48 -0
- package/dist/db-sdk-v1/FingerprintDb.js +215 -0
- package/dist/db-sdk-v1/InternalInstallAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/InternalInstallAuditDb.js +182 -0
- package/dist/db-sdk-v1/InvoiceDb.d.ts +132 -0
- package/dist/db-sdk-v1/InvoiceDb.js +611 -0
- package/dist/db-sdk-v1/InvoiceItemDb.d.ts +34 -0
- package/dist/db-sdk-v1/InvoiceItemDb.js +149 -0
- package/dist/db-sdk-v1/LeadDb.d.ts +132 -0
- package/dist/db-sdk-v1/LeadDb.js +611 -0
- package/dist/db-sdk-v1/LinearIssueDb.d.ts +20 -0
- package/dist/db-sdk-v1/LinearIssueDb.js +83 -0
- package/dist/db-sdk-v1/MilestoneDb.d.ts +48 -0
- package/dist/db-sdk-v1/MilestoneDb.js +215 -0
- package/dist/db-sdk-v1/NetomniaFtth1StageInstallAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/NetomniaFtth1StageInstallAuditDb.js +182 -0
- package/dist/db-sdk-v1/NetomniaFtthServiceVisitSheetDb.d.ts +41 -0
- package/dist/db-sdk-v1/NetomniaFtthServiceVisitSheetDb.js +182 -0
- package/dist/db-sdk-v1/NetomniaInstallVerificationDb.d.ts +41 -0
- package/dist/db-sdk-v1/NetomniaInstallVerificationDb.js +182 -0
- package/dist/db-sdk-v1/NetworkDeviceDb.d.ts +27 -0
- package/dist/db-sdk-v1/NetworkDeviceDb.js +116 -0
- package/dist/db-sdk-v1/Noinstall3AuditOfInstallationSheetDb.d.ts +27 -0
- package/dist/db-sdk-v1/Noinstall3AuditOfInstallationSheetDb.js +116 -0
- package/dist/db-sdk-v1/NoteDb.d.ts +433 -0
- package/dist/db-sdk-v1/NoteDb.js +2030 -0
- package/dist/db-sdk-v1/OfferDb.d.ts +55 -0
- package/dist/db-sdk-v1/OfferDb.js +248 -0
- package/dist/db-sdk-v1/OhAuditOfInstallationDb.d.ts +41 -0
- package/dist/db-sdk-v1/OhAuditOfInstallationDb.js +182 -0
- package/dist/db-sdk-v1/OhExternalAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/OhExternalAuditDb.js +182 -0
- package/dist/db-sdk-v1/OhInProgressAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/OhInProgressAuditDb.js +182 -0
- package/dist/db-sdk-v1/OhInstallationAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/OhInstallationAuditDb.js +182 -0
- package/dist/db-sdk-v1/OneTouchSwitchDb.d.ts +69 -0
- package/dist/db-sdk-v1/OneTouchSwitchDb.js +314 -0
- package/dist/db-sdk-v1/OrderCheckDb.d.ts +27 -0
- package/dist/db-sdk-v1/OrderCheckDb.js +116 -0
- package/dist/db-sdk-v1/OrderDb.d.ts +238 -0
- package/dist/db-sdk-v1/OrderDb.js +1111 -0
- package/dist/db-sdk-v1/OrderItemDb.d.ts +125 -0
- package/dist/db-sdk-v1/OrderItemDb.js +578 -0
- package/dist/db-sdk-v1/OrderRemediationTaskDb.d.ts +48 -0
- package/dist/db-sdk-v1/OrderRemediationTaskDb.js +215 -0
- package/dist/db-sdk-v1/OrganizationDb.d.ts +48 -0
- package/dist/db-sdk-v1/OrganizationDb.js +215 -0
- package/dist/db-sdk-v1/OutageDb.d.ts +20 -0
- package/dist/db-sdk-v1/OutageDb.js +83 -0
- package/dist/db-sdk-v1/OverlayRealA55Db.d.ts +41 -0
- package/dist/db-sdk-v1/OverlayRealA55Db.js +182 -0
- package/dist/db-sdk-v1/PICRequestDb.d.ts +34 -0
- package/dist/db-sdk-v1/PICRequestDb.js +149 -0
- package/dist/db-sdk-v1/PaymentMethodDb.d.ts +62 -0
- package/dist/db-sdk-v1/PaymentMethodDb.js +281 -0
- package/dist/db-sdk-v1/PaymentMethodRefundDb.d.ts +76 -0
- package/dist/db-sdk-v1/PaymentMethodRefundDb.js +347 -0
- package/dist/db-sdk-v1/PermissionToFailDb.d.ts +34 -0
- package/dist/db-sdk-v1/PermissionToFailDb.js +149 -0
- package/dist/db-sdk-v1/PhoneNumberDb.d.ts +34 -0
- package/dist/db-sdk-v1/PhoneNumberDb.js +149 -0
- package/dist/db-sdk-v1/Premise2Db.d.ts +20 -0
- package/dist/db-sdk-v1/Premise2Db.js +83 -0
- package/dist/db-sdk-v1/PremiseDb.d.ts +20 -0
- package/dist/db-sdk-v1/PremiseDb.js +83 -0
- package/dist/db-sdk-v1/PriceBookDb.d.ts +35 -0
- package/dist/db-sdk-v1/PriceBookDb.js +154 -0
- package/dist/db-sdk-v1/ProductComponentDb.d.ts +41 -0
- package/dist/db-sdk-v1/ProductComponentDb.js +182 -0
- package/dist/db-sdk-v1/ProductDb.d.ts +91 -0
- package/dist/db-sdk-v1/ProductDb.js +418 -0
- package/dist/db-sdk-v1/ProgramDb.d.ts +34 -0
- package/dist/db-sdk-v1/ProgramDb.js +149 -0
- package/dist/db-sdk-v1/ProjectDb.d.ts +41 -0
- package/dist/db-sdk-v1/ProjectDb.js +182 -0
- package/dist/db-sdk-v1/QueueChangeDb.d.ts +34 -0
- package/dist/db-sdk-v1/QueueChangeDb.js +149 -0
- package/dist/db-sdk-v1/QueueDb.d.ts +41 -0
- package/dist/db-sdk-v1/QueueDb.js +182 -0
- package/dist/db-sdk-v1/RegionDb.d.ts +34 -0
- package/dist/db-sdk-v1/RegionDb.js +149 -0
- package/dist/db-sdk-v1/RemediationRequiredReasonDb.d.ts +48 -0
- package/dist/db-sdk-v1/RemediationRequiredReasonDb.js +215 -0
- package/dist/db-sdk-v1/RestrictionDb.d.ts +41 -0
- package/dist/db-sdk-v1/RestrictionDb.js +182 -0
- package/dist/db-sdk-v1/ReturnOrderDb.d.ts +34 -0
- package/dist/db-sdk-v1/ReturnOrderDb.js +149 -0
- package/dist/db-sdk-v1/SalesLeaderBoardDb.d.ts +20 -0
- package/dist/db-sdk-v1/SalesLeaderBoardDb.js +83 -0
- package/dist/db-sdk-v1/SalesTerritoryDb.d.ts +41 -0
- package/dist/db-sdk-v1/SalesTerritoryDb.js +182 -0
- package/dist/db-sdk-v1/ScheduleSlotDb.d.ts +27 -0
- package/dist/db-sdk-v1/ScheduleSlotDb.js +116 -0
- package/dist/db-sdk-v1/ServiceAppointmentConfigDb.d.ts +69 -0
- package/dist/db-sdk-v1/ServiceAppointmentConfigDb.js +314 -0
- package/dist/db-sdk-v1/ServiceAppointmentDb.d.ts +48 -0
- package/dist/db-sdk-v1/ServiceAppointmentDb.js +215 -0
- package/dist/db-sdk-v1/ServiceDb.d.ts +34 -0
- package/dist/db-sdk-v1/ServiceDb.js +149 -0
- package/dist/db-sdk-v1/ServiceVisitAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/ServiceVisitAuditDb.js +182 -0
- package/dist/db-sdk-v1/SmsMessageDb.d.ts +62 -0
- package/dist/db-sdk-v1/SmsMessageDb.js +281 -0
- package/dist/db-sdk-v1/SplitOrderDb.d.ts +41 -0
- package/dist/db-sdk-v1/SplitOrderDb.js +182 -0
- package/dist/db-sdk-v1/SubtaskDb.d.ts +34 -0
- package/dist/db-sdk-v1/SubtaskDb.js +149 -0
- package/dist/db-sdk-v1/SupportTaskDb.d.ts +27 -0
- package/dist/db-sdk-v1/SupportTaskDb.js +116 -0
- package/dist/db-sdk-v1/SweeperMaintenanceAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/SweeperMaintenanceAuditDb.js +182 -0
- package/dist/db-sdk-v1/TaskDb.d.ts +41 -0
- package/dist/db-sdk-v1/TaskDb.js +182 -0
- package/dist/db-sdk-v1/TeamDb.d.ts +34 -0
- package/dist/db-sdk-v1/TeamDb.js +149 -0
- package/dist/db-sdk-v1/TelesalesDashboardDb.d.ts +20 -0
- package/dist/db-sdk-v1/TelesalesDashboardDb.js +83 -0
- package/dist/db-sdk-v1/TimeOffDb.d.ts +27 -0
- package/dist/db-sdk-v1/TimeOffDb.js +116 -0
- package/dist/db-sdk-v1/TimeSlotDb.d.ts +27 -0
- package/dist/db-sdk-v1/TimeSlotDb.js +116 -0
- package/dist/db-sdk-v1/TransactionDb.d.ts +69 -0
- package/dist/db-sdk-v1/TransactionDb.js +314 -0
- package/dist/db-sdk-v1/UgAuditOfInstallationDb.d.ts +41 -0
- package/dist/db-sdk-v1/UgAuditOfInstallationDb.js +182 -0
- package/dist/db-sdk-v1/UgExternalAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/UgExternalAuditDb.js +182 -0
- package/dist/db-sdk-v1/UgInProgressAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/UgInProgressAuditDb.js +182 -0
- package/dist/db-sdk-v1/UgInstallationAuditDb.d.ts +41 -0
- package/dist/db-sdk-v1/UgInstallationAuditDb.js +182 -0
- package/dist/db-sdk-v1/UserDb.d.ts +97 -0
- package/dist/db-sdk-v1/UserDb.js +446 -0
- package/dist/db-sdk-v1/VendorDb.d.ts +34 -0
- package/dist/db-sdk-v1/VendorDb.js +149 -0
- package/dist/db-sdk-v1/VisitDb.d.ts +62 -0
- package/dist/db-sdk-v1/VisitDb.js +281 -0
- package/dist/db-sdk-v1/VoiceConfigurationDb.d.ts +27 -0
- package/dist/db-sdk-v1/VoiceConfigurationDb.js +116 -0
- package/dist/db-sdk-v1/WorkOrderDb.d.ts +314 -0
- package/dist/db-sdk-v1/WorkOrderDb.js +1469 -0
- package/dist/db-sdk-v1/WorkOrderRemediationViewDb.d.ts +20 -0
- package/dist/db-sdk-v1/WorkOrderRemediationViewDb.js +83 -0
- package/dist/db-sdk-v1/YfEquipmentCollectionDb.d.ts +41 -0
- package/dist/db-sdk-v1/YfEquipmentCollectionDb.js +182 -0
- package/dist/db-sdk-v1/YfFieldServiceVisitDb.d.ts +41 -0
- package/dist/db-sdk-v1/YfFieldServiceVisitDb.js +182 -0
- package/dist/entities-v1/Account.d.ts +96 -0
- package/dist/entities-v1/Account.js +46 -0
- package/dist/entities-v1/Activity.d.ts +94 -0
- package/dist/entities-v1/Activity.js +40 -0
- package/dist/entities-v1/Address.d.ts +207 -0
- package/dist/entities-v1/Address.js +85 -0
- package/dist/entities-v1/AddressCrmDataset.d.ts +71 -0
- package/dist/entities-v1/AddressCrmDataset.js +21 -0
- package/dist/entities-v1/Appointment.d.ts +85 -0
- package/dist/entities-v1/Appointment.js +28 -0
- package/dist/entities-v1/AppointmentCalendar.d.ts +41 -0
- package/dist/entities-v1/AppointmentCalendar.js +10 -0
- package/dist/entities-v1/BillingAdjustment.d.ts +80 -0
- package/dist/entities-v1/BillingAdjustment.js +37 -0
- package/dist/entities-v1/BillingRequest.d.ts +116 -0
- package/dist/entities-v1/BillingRequest.js +55 -0
- package/dist/entities-v1/BlockageReportA55.d.ts +96 -0
- package/dist/entities-v1/BlockageReportA55.js +50 -0
- package/dist/entities-v1/BundleProduct.d.ts +263 -0
- package/dist/entities-v1/BundleProduct.js +180 -0
- package/dist/entities-v1/BusinessAccount.d.ts +91 -0
- package/dist/entities-v1/BusinessAccount.js +41 -0
- package/dist/entities-v1/Calendar.d.ts +41 -0
- package/dist/entities-v1/Calendar.js +10 -0
- package/dist/entities-v1/Call.d.ts +75 -0
- package/dist/entities-v1/Call.js +23 -0
- package/dist/entities-v1/Case.d.ts +155 -0
- package/dist/entities-v1/Case.js +80 -0
- package/dist/entities-v1/CaseQueueListView.d.ts +41 -0
- package/dist/entities-v1/CaseQueueListView.js +10 -0
- package/dist/entities-v1/ChangeReason.d.ts +189 -0
- package/dist/entities-v1/ChangeReason.js +138 -0
- package/dist/entities-v1/ChurnRequest.d.ts +74 -0
- package/dist/entities-v1/ChurnRequest.js +36 -0
- package/dist/entities-v1/CollectionWorkOrder.d.ts +257 -0
- package/dist/entities-v1/CollectionWorkOrder.js +136 -0
- package/dist/entities-v1/Commission.d.ts +76 -0
- package/dist/entities-v1/Commission.js +32 -0
- package/dist/entities-v1/ConsumptionRate.d.ts +68 -0
- package/dist/entities-v1/ConsumptionRate.js +28 -0
- package/dist/entities-v1/ConsumptionSchedule.d.ts +69 -0
- package/dist/entities-v1/ConsumptionSchedule.js +31 -0
- package/dist/entities-v1/Contact.d.ts +204 -0
- package/dist/entities-v1/Contact.js +96 -0
- package/dist/entities-v1/ContactCrmDataset.d.ts +67 -0
- package/dist/entities-v1/ContactCrmDataset.js +21 -0
- package/dist/entities-v1/ContactIdentity.d.ts +54 -0
- package/dist/entities-v1/ContactIdentity.js +13 -0
- package/dist/entities-v1/CreditNote.d.ts +80 -0
- package/dist/entities-v1/CreditNote.js +36 -0
- package/dist/entities-v1/CrmDataset.d.ts +84 -0
- package/dist/entities-v1/CrmDataset.js +33 -0
- package/dist/entities-v1/CustomerDeviceAta.d.ts +50 -0
- package/dist/entities-v1/CustomerDeviceAta.js +16 -0
- package/dist/entities-v1/CustomerDeviceOnt.d.ts +133 -0
- package/dist/entities-v1/CustomerDeviceOnt.js +68 -0
- package/dist/entities-v1/CustomerDeviceOntRemoval.d.ts +53 -0
- package/dist/entities-v1/CustomerDeviceOntRemoval.js +20 -0
- package/dist/entities-v1/CustomerDeviceRouter.d.ts +98 -0
- package/dist/entities-v1/CustomerDeviceRouter.js +37 -0
- package/dist/entities-v1/CustomerPhonePorting.d.ts +57 -0
- package/dist/entities-v1/CustomerPhonePorting.js +17 -0
- package/dist/entities-v1/Dashboard.d.ts +41 -0
- package/dist/entities-v1/Dashboard.js +10 -0
- package/dist/entities-v1/DeactivationApproval.d.ts +55 -0
- package/dist/entities-v1/DeactivationApproval.js +14 -0
- package/dist/entities-v1/DefaultAddress.d.ts +202 -0
- package/dist/entities-v1/DefaultAddress.js +81 -0
- package/dist/entities-v1/DefaultAppointment.d.ts +82 -0
- package/dist/entities-v1/DefaultAppointment.js +24 -0
- package/dist/entities-v1/DefaultAppointmentCalendar.d.ts +38 -0
- package/dist/entities-v1/DefaultAppointmentCalendar.js +6 -0
- package/dist/entities-v1/DefaultBillingAdjustment.d.ts +77 -0
- package/dist/entities-v1/DefaultBillingAdjustment.js +33 -0
- package/dist/entities-v1/DefaultCalendar.d.ts +38 -0
- package/dist/entities-v1/DefaultCalendar.js +6 -0
- package/dist/entities-v1/DefaultCall.d.ts +72 -0
- package/dist/entities-v1/DefaultCall.js +19 -0
- package/dist/entities-v1/DefaultCase.d.ts +149 -0
- package/dist/entities-v1/DefaultCase.js +75 -0
- package/dist/entities-v1/DefaultCaseQueueListView.d.ts +38 -0
- package/dist/entities-v1/DefaultCaseQueueListView.js +6 -0
- package/dist/entities-v1/DefaultChurnRequest.d.ts +81 -0
- package/dist/entities-v1/DefaultChurnRequest.js +44 -0
- package/dist/entities-v1/DefaultCommission.d.ts +73 -0
- package/dist/entities-v1/DefaultCommission.js +28 -0
- package/dist/entities-v1/DefaultConsumptionRate.d.ts +66 -0
- package/dist/entities-v1/DefaultConsumptionRate.js +24 -0
- package/dist/entities-v1/DefaultConsumptionSchedule.d.ts +67 -0
- package/dist/entities-v1/DefaultConsumptionSchedule.js +27 -0
- package/dist/entities-v1/DefaultContact.d.ts +202 -0
- package/dist/entities-v1/DefaultContact.js +92 -0
- package/dist/entities-v1/DefaultContactIdentity.d.ts +52 -0
- package/dist/entities-v1/DefaultContactIdentity.js +9 -0
- package/dist/entities-v1/DefaultCreditNote.d.ts +77 -0
- package/dist/entities-v1/DefaultCreditNote.js +32 -0
- package/dist/entities-v1/DefaultCrmDataset.d.ts +67 -0
- package/dist/entities-v1/DefaultCrmDataset.js +21 -0
- package/dist/entities-v1/DefaultCustomerDeviceAta.d.ts +47 -0
- package/dist/entities-v1/DefaultCustomerDeviceAta.js +12 -0
- package/dist/entities-v1/DefaultCustomerDeviceOnt.d.ts +130 -0
- package/dist/entities-v1/DefaultCustomerDeviceOnt.js +64 -0
- package/dist/entities-v1/DefaultCustomerDeviceOntRemoval.d.ts +50 -0
- package/dist/entities-v1/DefaultCustomerDeviceOntRemoval.js +16 -0
- package/dist/entities-v1/DefaultCustomerDeviceRouter.d.ts +95 -0
- package/dist/entities-v1/DefaultCustomerDeviceRouter.js +33 -0
- package/dist/entities-v1/DefaultCustomerPhonePorting.d.ts +54 -0
- package/dist/entities-v1/DefaultCustomerPhonePorting.js +13 -0
- package/dist/entities-v1/DefaultDashboard.d.ts +38 -0
- package/dist/entities-v1/DefaultDashboard.js +6 -0
- package/dist/entities-v1/DefaultDeactivationApproval.d.ts +52 -0
- package/dist/entities-v1/DefaultDeactivationApproval.js +10 -0
- package/dist/entities-v1/DefaultDiscount.d.ts +84 -0
- package/dist/entities-v1/DefaultDiscount.js +32 -0
- package/dist/entities-v1/DefaultEngineer.d.ts +40 -0
- package/dist/entities-v1/DefaultEngineer.js +7 -0
- package/dist/entities-v1/DefaultExchange.d.ts +50 -0
- package/dist/entities-v1/DefaultExchange.js +9 -0
- package/dist/entities-v1/DefaultFile.d.ts +153 -0
- package/dist/entities-v1/DefaultFile.js +30 -0
- package/dist/entities-v1/DefaultFingerprint.d.ts +68 -0
- package/dist/entities-v1/DefaultFingerprint.js +17 -0
- package/dist/entities-v1/DefaultInvoice.d.ts +198 -0
- package/dist/entities-v1/DefaultInvoice.js +104 -0
- package/dist/entities-v1/DefaultInvoiceItem.d.ts +110 -0
- package/dist/entities-v1/DefaultInvoiceItem.js +56 -0
- package/dist/entities-v1/DefaultLead.d.ts +152 -0
- package/dist/entities-v1/DefaultLead.js +63 -0
- package/dist/entities-v1/DefaultLinearIssue.d.ts +38 -0
- package/dist/entities-v1/DefaultLinearIssue.js +6 -0
- package/dist/entities-v1/DefaultMilestone.d.ts +70 -0
- package/dist/entities-v1/DefaultMilestone.js +20 -0
- package/dist/entities-v1/DefaultNote.d.ts +164 -0
- package/dist/entities-v1/DefaultNote.js +10 -0
- package/dist/entities-v1/DefaultOffer.d.ts +86 -0
- package/dist/entities-v1/DefaultOffer.js +35 -0
- package/dist/entities-v1/DefaultOneTouchSwitch.d.ts +86 -0
- package/dist/entities-v1/DefaultOneTouchSwitch.js +23 -0
- package/dist/entities-v1/DefaultOrder.d.ts +314 -0
- package/dist/entities-v1/DefaultOrder.js +158 -0
- package/dist/entities-v1/DefaultOrderCheck.d.ts +68 -0
- package/dist/entities-v1/DefaultOrderCheck.js +20 -0
- package/dist/entities-v1/DefaultOrderItem.d.ts +171 -0
- package/dist/entities-v1/DefaultOrderItem.js +80 -0
- package/dist/entities-v1/DefaultOrderRemediationTask.d.ts +54 -0
- package/dist/entities-v1/DefaultOrderRemediationTask.js +10 -0
- package/dist/entities-v1/DefaultOrganization.d.ts +54 -0
- package/dist/entities-v1/DefaultOrganization.js +10 -0
- package/dist/entities-v1/DefaultOutage.d.ts +38 -0
- package/dist/entities-v1/DefaultOutage.js +6 -0
- package/dist/entities-v1/DefaultPICRequest.d.ts +82 -0
- package/dist/entities-v1/DefaultPICRequest.js +45 -0
- package/dist/entities-v1/DefaultPaymentMethod.d.ts +102 -0
- package/dist/entities-v1/DefaultPaymentMethod.js +49 -0
- package/dist/entities-v1/DefaultPaymentMethodRefund.d.ts +76 -0
- package/dist/entities-v1/DefaultPaymentMethodRefund.js +20 -0
- package/dist/entities-v1/DefaultPermissionToFail.d.ts +50 -0
- package/dist/entities-v1/DefaultPermissionToFail.js +13 -0
- package/dist/entities-v1/DefaultPhoneNumber.d.ts +44 -0
- package/dist/entities-v1/DefaultPhoneNumber.js +7 -0
- package/dist/entities-v1/DefaultPremise.d.ts +60 -0
- package/dist/entities-v1/DefaultPremise.js +17 -0
- package/dist/entities-v1/DefaultPremise2.d.ts +38 -0
- package/dist/entities-v1/DefaultPremise2.js +6 -0
- package/dist/entities-v1/DefaultPriceBook.d.ts +61 -0
- package/dist/entities-v1/DefaultPriceBook.js +22 -0
- package/dist/entities-v1/DefaultProductComponent.d.ts +95 -0
- package/dist/entities-v1/DefaultProductComponent.js +48 -0
- package/dist/entities-v1/DefaultProgram.d.ts +66 -0
- package/dist/entities-v1/DefaultProgram.js +20 -0
- package/dist/entities-v1/DefaultProject.d.ts +68 -0
- package/dist/entities-v1/DefaultProject.js +20 -0
- package/dist/entities-v1/DefaultQueue.d.ts +46 -0
- package/dist/entities-v1/DefaultQueue.js +7 -0
- package/dist/entities-v1/DefaultQueueChange.d.ts +48 -0
- package/dist/entities-v1/DefaultQueueChange.js +9 -0
- package/dist/entities-v1/DefaultRegion.d.ts +42 -0
- package/dist/entities-v1/DefaultRegion.js +6 -0
- package/dist/entities-v1/DefaultRestriction.d.ts +64 -0
- package/dist/entities-v1/DefaultRestriction.js +23 -0
- package/dist/entities-v1/DefaultReturnOrder.d.ts +44 -0
- package/dist/entities-v1/DefaultReturnOrder.js +7 -0
- package/dist/entities-v1/DefaultSalesLeaderBoard.d.ts +38 -0
- package/dist/entities-v1/DefaultSalesLeaderBoard.js +6 -0
- package/dist/entities-v1/DefaultScheduleSlot.d.ts +66 -0
- package/dist/entities-v1/DefaultScheduleSlot.js +19 -0
- package/dist/entities-v1/DefaultService.d.ts +76 -0
- package/dist/entities-v1/DefaultService.js +37 -0
- package/dist/entities-v1/DefaultServiceAppointment.d.ts +62 -0
- package/dist/entities-v1/DefaultServiceAppointment.js +17 -0
- package/dist/entities-v1/DefaultSmsMessage.d.ts +85 -0
- package/dist/entities-v1/DefaultSmsMessage.js +31 -0
- package/dist/entities-v1/DefaultSplitOrder.d.ts +46 -0
- package/dist/entities-v1/DefaultSplitOrder.js +7 -0
- package/dist/entities-v1/DefaultSubtask.d.ts +60 -0
- package/dist/entities-v1/DefaultSubtask.js +17 -0
- package/dist/entities-v1/DefaultSupportTask.d.ts +40 -0
- package/dist/entities-v1/DefaultSupportTask.js +6 -0
- package/dist/entities-v1/DefaultTask.d.ts +68 -0
- package/dist/entities-v1/DefaultTask.js +20 -0
- package/dist/entities-v1/DefaultTeam.d.ts +44 -0
- package/dist/entities-v1/DefaultTeam.js +7 -0
- package/dist/entities-v1/DefaultTelesalesDashboard.d.ts +38 -0
- package/dist/entities-v1/DefaultTelesalesDashboard.js +6 -0
- package/dist/entities-v1/DefaultTimeOff.d.ts +50 -0
- package/dist/entities-v1/DefaultTimeOff.js +14 -0
- package/dist/entities-v1/DefaultTimeSlot.d.ts +74 -0
- package/dist/entities-v1/DefaultTimeSlot.js +27 -0
- package/dist/entities-v1/DefaultTransaction.d.ts +133 -0
- package/dist/entities-v1/DefaultTransaction.js +70 -0
- package/dist/entities-v1/DefaultUser.d.ts +92 -0
- package/dist/entities-v1/DefaultUser.js +25 -0
- package/dist/entities-v1/DefaultVendor.d.ts +50 -0
- package/dist/entities-v1/DefaultVendor.js +13 -0
- package/dist/entities-v1/DefaultVisit.d.ts +149 -0
- package/dist/entities-v1/DefaultVisit.js +92 -0
- package/dist/entities-v1/DefaultVoiceConfiguration.d.ts +170 -0
- package/dist/entities-v1/DefaultVoiceConfiguration.js +114 -0
- package/dist/entities-v1/DefaultWorkOrderRemediationView.d.ts +38 -0
- package/dist/entities-v1/DefaultWorkOrderRemediationView.js +6 -0
- package/dist/entities-v1/Discount.d.ts +87 -0
- package/dist/entities-v1/Discount.js +36 -0
- package/dist/entities-v1/EmailFile.d.ts +153 -0
- package/dist/entities-v1/EmailFile.js +30 -0
- package/dist/entities-v1/Engineer.d.ts +43 -0
- package/dist/entities-v1/Engineer.js +11 -0
- package/dist/entities-v1/EventActivity.d.ts +84 -0
- package/dist/entities-v1/EventActivity.js +29 -0
- package/dist/entities-v1/Exchange.d.ts +53 -0
- package/dist/entities-v1/Exchange.js +13 -0
- package/dist/entities-v1/FieldSalesSalesTerritory.d.ts +52 -0
- package/dist/entities-v1/FieldSalesSalesTerritory.js +10 -0
- package/dist/entities-v1/File.d.ts +157 -0
- package/dist/entities-v1/File.js +35 -0
- package/dist/entities-v1/FinanceServiceAppointmentConfig.d.ts +153 -0
- package/dist/entities-v1/FinanceServiceAppointmentConfig.js +78 -0
- package/dist/entities-v1/FinanceWorkOrder.d.ts +253 -0
- package/dist/entities-v1/FinanceWorkOrder.js +134 -0
- package/dist/entities-v1/Fingerprint.d.ts +71 -0
- package/dist/entities-v1/Fingerprint.js +21 -0
- package/dist/entities-v1/GainingOneTouchSwitch.d.ts +86 -0
- package/dist/entities-v1/GainingOneTouchSwitch.js +23 -0
- package/dist/entities-v1/InboundSmsMessage.d.ts +85 -0
- package/dist/entities-v1/InboundSmsMessage.js +31 -0
- package/dist/entities-v1/InspectionWorkOrder.d.ts +271 -0
- package/dist/entities-v1/InspectionWorkOrder.js +146 -0
- package/dist/entities-v1/InstallBusinessWorkOrder.d.ts +273 -0
- package/dist/entities-v1/InstallBusinessWorkOrder.js +140 -0
- package/dist/entities-v1/InstallServiceAppointmentConfig.d.ts +153 -0
- package/dist/entities-v1/InstallServiceAppointmentConfig.js +78 -0
- package/dist/entities-v1/InstallServiceServiceAppointmentConfig.d.ts +153 -0
- package/dist/entities-v1/InstallServiceServiceAppointmentConfig.js +78 -0
- package/dist/entities-v1/InstallServiceWorkOrder.d.ts +237 -0
- package/dist/entities-v1/InstallServiceWorkOrder.js +116 -0
- package/dist/entities-v1/InstallWorkOrder.d.ts +325 -0
- package/dist/entities-v1/InstallWorkOrder.js +186 -0
- package/dist/entities-v1/InternalInstallAudit.d.ts +47 -0
- package/dist/entities-v1/InternalInstallAudit.js +10 -0
- package/dist/entities-v1/InternetProduct.d.ts +263 -0
- package/dist/entities-v1/InternetProduct.js +180 -0
- package/dist/entities-v1/Invoice.d.ts +201 -0
- package/dist/entities-v1/Invoice.js +108 -0
- package/dist/entities-v1/InvoiceItem.d.ts +112 -0
- package/dist/entities-v1/InvoiceItem.js +60 -0
- package/dist/entities-v1/LaborProduct.d.ts +263 -0
- package/dist/entities-v1/LaborProduct.js +180 -0
- package/dist/entities-v1/LandlineProduct.d.ts +263 -0
- package/dist/entities-v1/LandlineProduct.js +180 -0
- package/dist/entities-v1/Lead.d.ts +157 -0
- package/dist/entities-v1/Lead.js +67 -0
- package/dist/entities-v1/LeadCrmDataset.d.ts +74 -0
- package/dist/entities-v1/LeadCrmDataset.js +26 -0
- package/dist/entities-v1/LinearIssue.d.ts +41 -0
- package/dist/entities-v1/LinearIssue.js +10 -0
- package/dist/entities-v1/LosingOneTouchSwitch.d.ts +86 -0
- package/dist/entities-v1/LosingOneTouchSwitch.js +23 -0
- package/dist/entities-v1/MandateBillingRequest.d.ts +113 -0
- package/dist/entities-v1/MandateBillingRequest.js +50 -0
- package/dist/entities-v1/MeshProduct.d.ts +263 -0
- package/dist/entities-v1/MeshProduct.js +180 -0
- package/dist/entities-v1/Milestone.d.ts +72 -0
- package/dist/entities-v1/Milestone.js +24 -0
- package/dist/entities-v1/MobileProduct.d.ts +263 -0
- package/dist/entities-v1/MobileProduct.js +180 -0
- package/dist/entities-v1/NetomniaFtth1StageInstallAudit.d.ts +346 -0
- package/dist/entities-v1/NetomniaFtth1StageInstallAudit.js +281 -0
- package/dist/entities-v1/NetomniaFtthServiceVisitSheet.d.ts +161 -0
- package/dist/entities-v1/NetomniaFtthServiceVisitSheet.js +105 -0
- package/dist/entities-v1/NetomniaInstallVerification.d.ts +180 -0
- package/dist/entities-v1/NetomniaInstallVerification.js +120 -0
- package/dist/entities-v1/NetworkAdjustmentServiceAppointmentConfig.d.ts +153 -0
- package/dist/entities-v1/NetworkAdjustmentServiceAppointmentConfig.js +78 -0
- package/dist/entities-v1/NetworkAdjustmentWorkOrder.d.ts +253 -0
- package/dist/entities-v1/NetworkAdjustmentWorkOrder.js +132 -0
- package/dist/entities-v1/NetworkDevice.d.ts +52 -0
- package/dist/entities-v1/NetworkDevice.js +17 -0
- package/dist/entities-v1/Noinstall3AuditOfInstallationSheet.d.ts +318 -0
- package/dist/entities-v1/Noinstall3AuditOfInstallationSheet.js +275 -0
- package/dist/entities-v1/Note.d.ts +166 -0
- package/dist/entities-v1/Note.js +14 -0
- package/dist/entities-v1/NotificationActivity.d.ts +89 -0
- package/dist/entities-v1/NotificationActivity.js +34 -0
- package/dist/entities-v1/Offer.d.ts +88 -0
- package/dist/entities-v1/Offer.js +39 -0
- package/dist/entities-v1/OhAuditOfInstallation.d.ts +349 -0
- package/dist/entities-v1/OhAuditOfInstallation.js +309 -0
- package/dist/entities-v1/OhExternalAudit.d.ts +91 -0
- package/dist/entities-v1/OhExternalAudit.js +50 -0
- package/dist/entities-v1/OhInProgressAudit.d.ts +191 -0
- package/dist/entities-v1/OhInProgressAudit.js +137 -0
- package/dist/entities-v1/OhInstallationAudit.d.ts +264 -0
- package/dist/entities-v1/OhInstallationAudit.js +189 -0
- package/dist/entities-v1/OltNetworkDevice.d.ts +49 -0
- package/dist/entities-v1/OltNetworkDevice.js +13 -0
- package/dist/entities-v1/OneTouchSwitch.d.ts +91 -0
- package/dist/entities-v1/OneTouchSwitch.js +29 -0
- package/dist/entities-v1/Order.d.ts +316 -0
- package/dist/entities-v1/Order.js +162 -0
- package/dist/entities-v1/OrderCheck.d.ts +71 -0
- package/dist/entities-v1/OrderCheck.js +24 -0
- package/dist/entities-v1/OrderItem.d.ts +173 -0
- package/dist/entities-v1/OrderItem.js +84 -0
- package/dist/entities-v1/OrderRemediationTask.d.ts +57 -0
- package/dist/entities-v1/OrderRemediationTask.js +14 -0
- package/dist/entities-v1/Organization.d.ts +56 -0
- package/dist/entities-v1/Organization.js +14 -0
- package/dist/entities-v1/Outage.d.ts +41 -0
- package/dist/entities-v1/Outage.js +10 -0
- package/dist/entities-v1/OutageCase.d.ts +152 -0
- package/dist/entities-v1/OutageCase.js +75 -0
- package/dist/entities-v1/OutboundSmsMessage.d.ts +85 -0
- package/dist/entities-v1/OutboundSmsMessage.js +31 -0
- package/dist/entities-v1/OutcomeFormBlockageReportA55.d.ts +93 -0
- package/dist/entities-v1/OutcomeFormBlockageReportA55.js +46 -0
- package/dist/entities-v1/OutcomeFormInternalInstallAudit.d.ts +42 -0
- package/dist/entities-v1/OutcomeFormInternalInstallAudit.js +6 -0
- package/dist/entities-v1/OutcomeFormNetomniaFtth1StageInstallAudit.d.ts +341 -0
- package/dist/entities-v1/OutcomeFormNetomniaFtth1StageInstallAudit.js +277 -0
- package/dist/entities-v1/OutcomeFormNetomniaFtthServiceVisitSheet.d.ts +156 -0
- package/dist/entities-v1/OutcomeFormNetomniaFtthServiceVisitSheet.js +101 -0
- package/dist/entities-v1/OutcomeFormNetomniaInstallVerification.d.ts +175 -0
- package/dist/entities-v1/OutcomeFormNetomniaInstallVerification.js +116 -0
- package/dist/entities-v1/OutcomeFormNoinstall3AuditOfInstallationSheet.d.ts +313 -0
- package/dist/entities-v1/OutcomeFormNoinstall3AuditOfInstallationSheet.js +271 -0
- package/dist/entities-v1/OutcomeFormOhAuditOfInstallation.d.ts +344 -0
- package/dist/entities-v1/OutcomeFormOhAuditOfInstallation.js +304 -0
- package/dist/entities-v1/OutcomeFormOhExternalAudit.d.ts +86 -0
- package/dist/entities-v1/OutcomeFormOhExternalAudit.js +46 -0
- package/dist/entities-v1/OutcomeFormOhInProgressAudit.d.ts +186 -0
- package/dist/entities-v1/OutcomeFormOhInProgressAudit.js +133 -0
- package/dist/entities-v1/OutcomeFormOhInstallationAudit.d.ts +259 -0
- package/dist/entities-v1/OutcomeFormOhInstallationAudit.js +185 -0
- package/dist/entities-v1/OutcomeFormOverlayRealA55.d.ts +166 -0
- package/dist/entities-v1/OutcomeFormOverlayRealA55.js +108 -0
- package/dist/entities-v1/OutcomeFormRemediationRequiredReason.d.ts +79 -0
- package/dist/entities-v1/OutcomeFormRemediationRequiredReason.js +37 -0
- package/dist/entities-v1/OutcomeFormServiceVisitAudit.d.ts +130 -0
- package/dist/entities-v1/OutcomeFormServiceVisitAudit.js +71 -0
- package/dist/entities-v1/OutcomeFormSweeperMaintenanceAudit.d.ts +232 -0
- package/dist/entities-v1/OutcomeFormSweeperMaintenanceAudit.js +168 -0
- package/dist/entities-v1/OutcomeFormUgAuditOfInstallation.d.ts +330 -0
- package/dist/entities-v1/OutcomeFormUgAuditOfInstallation.js +291 -0
- package/dist/entities-v1/OutcomeFormUgExternalAudit.d.ts +88 -0
- package/dist/entities-v1/OutcomeFormUgExternalAudit.js +47 -0
- package/dist/entities-v1/OutcomeFormUgInProgressAudit.d.ts +180 -0
- package/dist/entities-v1/OutcomeFormUgInProgressAudit.js +127 -0
- package/dist/entities-v1/OutcomeFormUgInstallationAudit.d.ts +251 -0
- package/dist/entities-v1/OutcomeFormUgInstallationAudit.js +178 -0
- package/dist/entities-v1/OutcomeFormYfEquipmentCollection.d.ts +116 -0
- package/dist/entities-v1/OutcomeFormYfEquipmentCollection.js +62 -0
- package/dist/entities-v1/OutcomeFormYfFieldServiceVisit.d.ts +386 -0
- package/dist/entities-v1/OutcomeFormYfFieldServiceVisit.js +286 -0
- package/dist/entities-v1/OverlayRealA55.d.ts +171 -0
- package/dist/entities-v1/OverlayRealA55.js +112 -0
- package/dist/entities-v1/PICRequest.d.ts +75 -0
- package/dist/entities-v1/PICRequest.js +37 -0
- package/dist/entities-v1/PaymentBillingRequest.d.ts +113 -0
- package/dist/entities-v1/PaymentBillingRequest.js +50 -0
- package/dist/entities-v1/PaymentMethod.d.ts +105 -0
- package/dist/entities-v1/PaymentMethod.js +53 -0
- package/dist/entities-v1/PaymentMethodRefund.d.ts +79 -0
- package/dist/entities-v1/PaymentMethodRefund.js +24 -0
- package/dist/entities-v1/PermissionToFail.d.ts +53 -0
- package/dist/entities-v1/PermissionToFail.js +17 -0
- package/dist/entities-v1/PhoneNumber.d.ts +47 -0
- package/dist/entities-v1/PhoneNumber.js +11 -0
- package/dist/entities-v1/PlanningServiceAppointmentConfig.d.ts +153 -0
- package/dist/entities-v1/PlanningServiceAppointmentConfig.js +78 -0
- package/dist/entities-v1/PlanningWorkOrder.d.ts +255 -0
- package/dist/entities-v1/PlanningWorkOrder.js +136 -0
- package/dist/entities-v1/PrePullServiceAppointmentConfig.d.ts +153 -0
- package/dist/entities-v1/PrePullServiceAppointmentConfig.js +78 -0
- package/dist/entities-v1/PrePullWorkOrder.d.ts +261 -0
- package/dist/entities-v1/PrePullWorkOrder.js +136 -0
- package/dist/entities-v1/Premise.d.ts +63 -0
- package/dist/entities-v1/Premise.js +21 -0
- package/dist/entities-v1/Premise2.d.ts +41 -0
- package/dist/entities-v1/Premise2.js +10 -0
- package/dist/entities-v1/PriceBook.d.ts +64 -0
- package/dist/entities-v1/PriceBook.js +26 -0
- package/dist/entities-v1/PrimaryAccount.d.ts +92 -0
- package/dist/entities-v1/PrimaryAccount.js +41 -0
- package/dist/entities-v1/Product.d.ts +270 -0
- package/dist/entities-v1/Product.js +189 -0
- package/dist/entities-v1/ProductComponent.d.ts +97 -0
- package/dist/entities-v1/ProductComponent.js +52 -0
- package/dist/entities-v1/Program.d.ts +69 -0
- package/dist/entities-v1/Program.js +24 -0
- package/dist/entities-v1/Project.d.ts +71 -0
- package/dist/entities-v1/Project.js +24 -0
- package/dist/entities-v1/Queue.d.ts +49 -0
- package/dist/entities-v1/Queue.js +11 -0
- package/dist/entities-v1/QueueChange.d.ts +51 -0
- package/dist/entities-v1/QueueChange.js +13 -0
- package/dist/entities-v1/Region.d.ts +45 -0
- package/dist/entities-v1/Region.js +10 -0
- package/dist/entities-v1/RemediationRequiredReason.d.ts +82 -0
- package/dist/entities-v1/RemediationRequiredReason.js +41 -0
- package/dist/entities-v1/RemediationServiceAppointmentConfig.d.ts +153 -0
- package/dist/entities-v1/RemediationServiceAppointmentConfig.js +78 -0
- package/dist/entities-v1/RemediationWorkOrder.d.ts +260 -0
- package/dist/entities-v1/RemediationWorkOrder.js +136 -0
- package/dist/entities-v1/Restriction.d.ts +66 -0
- package/dist/entities-v1/Restriction.js +27 -0
- package/dist/entities-v1/ReturnOrder.d.ts +47 -0
- package/dist/entities-v1/ReturnOrder.js +11 -0
- package/dist/entities-v1/SaCancelChangeReason.d.ts +132 -0
- package/dist/entities-v1/SaCancelChangeReason.js +83 -0
- package/dist/entities-v1/SaRescheduleChangeReason.d.ts +134 -0
- package/dist/entities-v1/SaRescheduleChangeReason.js +82 -0
- package/dist/entities-v1/SalesLeaderBoard.d.ts +41 -0
- package/dist/entities-v1/SalesLeaderBoard.js +10 -0
- package/dist/entities-v1/SalesTerritory.d.ts +56 -0
- package/dist/entities-v1/SalesTerritory.js +15 -0
- package/dist/entities-v1/ScheduleSlot.d.ts +69 -0
- package/dist/entities-v1/ScheduleSlot.js +23 -0
- package/dist/entities-v1/Service.d.ts +78 -0
- package/dist/entities-v1/Service.js +41 -0
- package/dist/entities-v1/ServiceAppointment.d.ts +65 -0
- package/dist/entities-v1/ServiceAppointment.js +21 -0
- package/dist/entities-v1/ServiceAppointmentConfig.d.ts +164 -0
- package/dist/entities-v1/ServiceAppointmentConfig.js +90 -0
- package/dist/entities-v1/ServiceServiceAppointmentConfig.d.ts +153 -0
- package/dist/entities-v1/ServiceServiceAppointmentConfig.js +78 -0
- package/dist/entities-v1/ServiceVisitAudit.d.ts +135 -0
- package/dist/entities-v1/ServiceVisitAudit.js +75 -0
- package/dist/entities-v1/ServiceWorkOrder.d.ts +341 -0
- package/dist/entities-v1/ServiceWorkOrder.js +212 -0
- package/dist/entities-v1/SmsMessage.d.ts +90 -0
- package/dist/entities-v1/SmsMessage.js +37 -0
- package/dist/entities-v1/SplitOrder.d.ts +48 -0
- package/dist/entities-v1/SplitOrder.js +11 -0
- package/dist/entities-v1/Subtask.d.ts +63 -0
- package/dist/entities-v1/Subtask.js +21 -0
- package/dist/entities-v1/SupportTask.d.ts +43 -0
- package/dist/entities-v1/SupportTask.js +10 -0
- package/dist/entities-v1/SweeperMaintenanceAudit.d.ts +235 -0
- package/dist/entities-v1/SweeperMaintenanceAudit.js +172 -0
- package/dist/entities-v1/Task.d.ts +71 -0
- package/dist/entities-v1/Task.js +24 -0
- package/dist/entities-v1/TaskActivity.d.ts +84 -0
- package/dist/entities-v1/TaskActivity.js +29 -0
- package/dist/entities-v1/Team.d.ts +47 -0
- package/dist/entities-v1/Team.js +11 -0
- package/dist/entities-v1/TelesalesDashboard.d.ts +41 -0
- package/dist/entities-v1/TelesalesDashboard.js +10 -0
- package/dist/entities-v1/TelesalesSalesTerritory.d.ts +50 -0
- package/dist/entities-v1/TelesalesSalesTerritory.js +10 -0
- package/dist/entities-v1/TimeOff.d.ts +53 -0
- package/dist/entities-v1/TimeOff.js +18 -0
- package/dist/entities-v1/TimeSlot.d.ts +77 -0
- package/dist/entities-v1/TimeSlot.js +31 -0
- package/dist/entities-v1/Transaction.d.ts +135 -0
- package/dist/entities-v1/Transaction.js +74 -0
- package/dist/entities-v1/UgAuditOfInstallation.d.ts +335 -0
- package/dist/entities-v1/UgAuditOfInstallation.js +295 -0
- package/dist/entities-v1/UgExternalAudit.d.ts +93 -0
- package/dist/entities-v1/UgExternalAudit.js +51 -0
- package/dist/entities-v1/UgInProgressAudit.d.ts +185 -0
- package/dist/entities-v1/UgInProgressAudit.js +131 -0
- package/dist/entities-v1/UgInstallationAudit.d.ts +256 -0
- package/dist/entities-v1/UgInstallationAudit.js +182 -0
- package/dist/entities-v1/User.d.ts +95 -0
- package/dist/entities-v1/User.js +29 -0
- package/dist/entities-v1/Vendor.d.ts +53 -0
- package/dist/entities-v1/Vendor.js +17 -0
- package/dist/entities-v1/Visit.d.ts +152 -0
- package/dist/entities-v1/Visit.js +96 -0
- package/dist/entities-v1/VoiceConfiguration.d.ts +173 -0
- package/dist/entities-v1/VoiceConfiguration.js +118 -0
- package/dist/entities-v1/WayleaveServiceAppointmentConfig.d.ts +153 -0
- package/dist/entities-v1/WayleaveServiceAppointmentConfig.js +78 -0
- package/dist/entities-v1/WayleaveWorkOrder.d.ts +255 -0
- package/dist/entities-v1/WayleaveWorkOrder.js +136 -0
- package/dist/entities-v1/WorkOrder.d.ts +414 -0
- package/dist/entities-v1/WorkOrder.js +254 -0
- package/dist/entities-v1/WorkOrderRemediationView.d.ts +41 -0
- package/dist/entities-v1/WorkOrderRemediationView.js +10 -0
- package/dist/entities-v1/YfEquipmentCollection.d.ts +121 -0
- package/dist/entities-v1/YfEquipmentCollection.js +66 -0
- package/dist/entities-v1/YfFieldServiceVisit.d.ts +391 -0
- package/dist/entities-v1/YfFieldServiceVisit.js +290 -0
- package/dist/generators/runner.d.ts +1 -0
- package/dist/generators/runner.js +41 -0
- package/dist/types-v1/Types.d.ts +108 -0
- package/dist/types-v1/Types.js +112 -0
- package/package.json +20 -0
- package/src/api-sdk-v1/AccountApi.ts +365 -0
- package/src/api-sdk-v1/ActivityApi.ts +427 -0
- package/src/api-sdk-v1/AddressApi.ts +637 -0
- package/src/api-sdk-v1/AppointmentApi.ts +322 -0
- package/src/api-sdk-v1/AppointmentCalendarApi.ts +77 -0
- package/src/api-sdk-v1/BillingAdjustmentApi.ts +217 -0
- package/src/api-sdk-v1/BillingRequestApi.ts +322 -0
- package/src/api-sdk-v1/BlockageReportA55Api.ts +182 -0
- package/src/api-sdk-v1/CalendarApi.ts +77 -0
- package/src/api-sdk-v1/CallApi.ts +217 -0
- package/src/api-sdk-v1/CaseApi.ts +497 -0
- package/src/api-sdk-v1/CaseQueueListViewApi.ts +77 -0
- package/src/api-sdk-v1/ChangeReasonApi.ts +252 -0
- package/src/api-sdk-v1/ChurnRequestApi.ts +147 -0
- package/src/api-sdk-v1/CommissionApi.ts +217 -0
- package/src/api-sdk-v1/ConsumptionRateApi.ts +147 -0
- package/src/api-sdk-v1/ConsumptionScheduleApi.ts +182 -0
- package/src/api-sdk-v1/ContactApi.ts +952 -0
- package/src/api-sdk-v1/ContactIdentityApi.ts +217 -0
- package/src/api-sdk-v1/CreditNoteApi.ts +217 -0
- package/src/api-sdk-v1/CrmDatasetApi.ts +295 -0
- package/src/api-sdk-v1/CustomerDeviceAtaApi.ts +112 -0
- package/src/api-sdk-v1/CustomerDeviceOntApi.ts +392 -0
- package/src/api-sdk-v1/CustomerDeviceOntRemovalApi.ts +112 -0
- package/src/api-sdk-v1/CustomerDeviceRouterApi.ts +287 -0
- package/src/api-sdk-v1/CustomerPhonePortingApi.ts +112 -0
- package/src/api-sdk-v1/DashboardApi.ts +77 -0
- package/src/api-sdk-v1/DeactivationApprovalApi.ts +182 -0
- package/src/api-sdk-v1/DiscountApi.ts +287 -0
- package/src/api-sdk-v1/EngineerApi.ts +77 -0
- package/src/api-sdk-v1/ExchangeApi.ts +182 -0
- package/src/api-sdk-v1/FileApi.ts +1547 -0
- package/src/api-sdk-v1/FingerprintApi.ts +217 -0
- package/src/api-sdk-v1/InternalInstallAuditApi.ts +182 -0
- package/src/api-sdk-v1/InvoiceApi.ts +637 -0
- package/src/api-sdk-v1/InvoiceItemApi.ts +147 -0
- package/src/api-sdk-v1/LeadApi.ts +637 -0
- package/src/api-sdk-v1/LinearIssueApi.ts +77 -0
- package/src/api-sdk-v1/MilestoneApi.ts +217 -0
- package/src/api-sdk-v1/NetomniaFtth1StageInstallAuditApi.ts +182 -0
- package/src/api-sdk-v1/NetomniaFtthServiceVisitSheetApi.ts +182 -0
- package/src/api-sdk-v1/NetomniaInstallVerificationApi.ts +182 -0
- package/src/api-sdk-v1/NetworkDeviceApi.ts +112 -0
- package/src/api-sdk-v1/Noinstall3AuditOfInstallationSheetApi.ts +112 -0
- package/src/api-sdk-v1/NoteApi.ts +2142 -0
- package/src/api-sdk-v1/OfferApi.ts +252 -0
- package/src/api-sdk-v1/OhAuditOfInstallationApi.ts +182 -0
- package/src/api-sdk-v1/OhExternalAuditApi.ts +182 -0
- package/src/api-sdk-v1/OhInProgressAuditApi.ts +182 -0
- package/src/api-sdk-v1/OhInstallationAuditApi.ts +182 -0
- package/src/api-sdk-v1/OneTouchSwitchApi.ts +322 -0
- package/src/api-sdk-v1/OrderApi.ts +1166 -0
- package/src/api-sdk-v1/OrderCheckApi.ts +112 -0
- package/src/api-sdk-v1/OrderItemApi.ts +602 -0
- package/src/api-sdk-v1/OrderRemediationTaskApi.ts +217 -0
- package/src/api-sdk-v1/OrganizationApi.ts +217 -0
- package/src/api-sdk-v1/OutageApi.ts +77 -0
- package/src/api-sdk-v1/OverlayRealA55Api.ts +182 -0
- package/src/api-sdk-v1/PICRequestApi.ts +147 -0
- package/src/api-sdk-v1/PaymentMethodApi.ts +287 -0
- package/src/api-sdk-v1/PaymentMethodRefundApi.ts +357 -0
- package/src/api-sdk-v1/PermissionToFailApi.ts +147 -0
- package/src/api-sdk-v1/PhoneNumberApi.ts +147 -0
- package/src/api-sdk-v1/Premise2Api.ts +77 -0
- package/src/api-sdk-v1/PremiseApi.ts +77 -0
- package/src/api-sdk-v1/PriceBookApi.ts +151 -0
- package/src/api-sdk-v1/ProductApi.ts +431 -0
- package/src/api-sdk-v1/ProductComponentApi.ts +182 -0
- package/src/api-sdk-v1/ProgramApi.ts +147 -0
- package/src/api-sdk-v1/ProjectApi.ts +182 -0
- package/src/api-sdk-v1/QueueApi.ts +182 -0
- package/src/api-sdk-v1/QueueChangeApi.ts +147 -0
- package/src/api-sdk-v1/RegionApi.ts +147 -0
- package/src/api-sdk-v1/RemediationRequiredReasonApi.ts +217 -0
- package/src/api-sdk-v1/RestrictionApi.ts +182 -0
- package/src/api-sdk-v1/ReturnOrderApi.ts +147 -0
- package/src/api-sdk-v1/SalesLeaderBoardApi.ts +77 -0
- package/src/api-sdk-v1/SalesTerritoryApi.ts +182 -0
- package/src/api-sdk-v1/ScheduleSlotApi.ts +112 -0
- package/src/api-sdk-v1/ServiceApi.ts +147 -0
- package/src/api-sdk-v1/ServiceAppointmentApi.ts +217 -0
- package/src/api-sdk-v1/ServiceAppointmentConfigApi.ts +322 -0
- package/src/api-sdk-v1/ServiceVisitAuditApi.ts +182 -0
- package/src/api-sdk-v1/SmsMessageApi.ts +287 -0
- package/src/api-sdk-v1/SplitOrderApi.ts +182 -0
- package/src/api-sdk-v1/SubtaskApi.ts +147 -0
- package/src/api-sdk-v1/SupportTaskApi.ts +112 -0
- package/src/api-sdk-v1/SweeperMaintenanceAuditApi.ts +182 -0
- package/src/api-sdk-v1/TaskApi.ts +182 -0
- package/src/api-sdk-v1/TeamApi.ts +147 -0
- package/src/api-sdk-v1/TelesalesDashboardApi.ts +77 -0
- package/src/api-sdk-v1/TimeOffApi.ts +112 -0
- package/src/api-sdk-v1/TimeSlotApi.ts +112 -0
- package/src/api-sdk-v1/TransactionApi.ts +322 -0
- package/src/api-sdk-v1/UgAuditOfInstallationApi.ts +182 -0
- package/src/api-sdk-v1/UgExternalAuditApi.ts +182 -0
- package/src/api-sdk-v1/UgInProgressAuditApi.ts +182 -0
- package/src/api-sdk-v1/UgInstallationAuditApi.ts +182 -0
- package/src/api-sdk-v1/UserApi.ts +462 -0
- package/src/api-sdk-v1/VendorApi.ts +147 -0
- package/src/api-sdk-v1/VisitApi.ts +287 -0
- package/src/api-sdk-v1/VoiceConfigurationApi.ts +112 -0
- package/src/api-sdk-v1/WorkOrderApi.ts +1547 -0
- package/src/api-sdk-v1/WorkOrderRemediationViewApi.ts +77 -0
- package/src/api-sdk-v1/YfEquipmentCollectionApi.ts +182 -0
- package/src/api-sdk-v1/YfFieldServiceVisitApi.ts +182 -0
- package/src/db-sdk-v1/AccountDb.ts +355 -0
- package/src/db-sdk-v1/ActivityDb.ts +417 -0
- package/src/db-sdk-v1/AddressDb.ts +627 -0
- package/src/db-sdk-v1/AppointmentCalendarDb.ts +67 -0
- package/src/db-sdk-v1/AppointmentDb.ts +312 -0
- package/src/db-sdk-v1/BillingAdjustmentDb.ts +207 -0
- package/src/db-sdk-v1/BillingRequestDb.ts +312 -0
- package/src/db-sdk-v1/BlockageReportA55Db.ts +172 -0
- package/src/db-sdk-v1/CalendarDb.ts +67 -0
- package/src/db-sdk-v1/CallDb.ts +207 -0
- package/src/db-sdk-v1/CaseDb.ts +487 -0
- package/src/db-sdk-v1/CaseQueueListViewDb.ts +67 -0
- package/src/db-sdk-v1/ChangeReasonDb.ts +242 -0
- package/src/db-sdk-v1/ChurnRequestDb.ts +137 -0
- package/src/db-sdk-v1/CommissionDb.ts +207 -0
- package/src/db-sdk-v1/ConsumptionRateDb.ts +137 -0
- package/src/db-sdk-v1/ConsumptionScheduleDb.ts +172 -0
- package/src/db-sdk-v1/ContactDb.ts +942 -0
- package/src/db-sdk-v1/ContactIdentityDb.ts +207 -0
- package/src/db-sdk-v1/CreditNoteDb.ts +207 -0
- package/src/db-sdk-v1/CrmDatasetDb.ts +285 -0
- package/src/db-sdk-v1/CustomerDeviceAtaDb.ts +102 -0
- package/src/db-sdk-v1/CustomerDeviceOntDb.ts +382 -0
- package/src/db-sdk-v1/CustomerDeviceOntRemovalDb.ts +102 -0
- package/src/db-sdk-v1/CustomerDeviceRouterDb.ts +277 -0
- package/src/db-sdk-v1/CustomerPhonePortingDb.ts +102 -0
- package/src/db-sdk-v1/DashboardDb.ts +67 -0
- package/src/db-sdk-v1/DeactivationApprovalDb.ts +172 -0
- package/src/db-sdk-v1/DiscountDb.ts +277 -0
- package/src/db-sdk-v1/EngineerDb.ts +67 -0
- package/src/db-sdk-v1/ExchangeDb.ts +172 -0
- package/src/db-sdk-v1/FileDb.ts +1537 -0
- package/src/db-sdk-v1/FingerprintDb.ts +207 -0
- package/src/db-sdk-v1/InternalInstallAuditDb.ts +172 -0
- package/src/db-sdk-v1/InvoiceDb.ts +627 -0
- package/src/db-sdk-v1/InvoiceItemDb.ts +137 -0
- package/src/db-sdk-v1/LeadDb.ts +627 -0
- package/src/db-sdk-v1/LinearIssueDb.ts +67 -0
- package/src/db-sdk-v1/MilestoneDb.ts +207 -0
- package/src/db-sdk-v1/NetomniaFtth1StageInstallAuditDb.ts +172 -0
- package/src/db-sdk-v1/NetomniaFtthServiceVisitSheetDb.ts +172 -0
- package/src/db-sdk-v1/NetomniaInstallVerificationDb.ts +172 -0
- package/src/db-sdk-v1/NetworkDeviceDb.ts +102 -0
- package/src/db-sdk-v1/Noinstall3AuditOfInstallationSheetDb.ts +102 -0
- package/src/db-sdk-v1/NoteDb.ts +2132 -0
- package/src/db-sdk-v1/OfferDb.ts +242 -0
- package/src/db-sdk-v1/OhAuditOfInstallationDb.ts +172 -0
- package/src/db-sdk-v1/OhExternalAuditDb.ts +172 -0
- package/src/db-sdk-v1/OhInProgressAuditDb.ts +172 -0
- package/src/db-sdk-v1/OhInstallationAuditDb.ts +172 -0
- package/src/db-sdk-v1/OneTouchSwitchDb.ts +312 -0
- package/src/db-sdk-v1/OrderCheckDb.ts +102 -0
- package/src/db-sdk-v1/OrderDb.ts +1156 -0
- package/src/db-sdk-v1/OrderItemDb.ts +592 -0
- package/src/db-sdk-v1/OrderRemediationTaskDb.ts +207 -0
- package/src/db-sdk-v1/OrganizationDb.ts +207 -0
- package/src/db-sdk-v1/OutageDb.ts +67 -0
- package/src/db-sdk-v1/OverlayRealA55Db.ts +172 -0
- package/src/db-sdk-v1/PICRequestDb.ts +137 -0
- package/src/db-sdk-v1/PaymentMethodDb.ts +277 -0
- package/src/db-sdk-v1/PaymentMethodRefundDb.ts +347 -0
- package/src/db-sdk-v1/PermissionToFailDb.ts +137 -0
- package/src/db-sdk-v1/PhoneNumberDb.ts +137 -0
- package/src/db-sdk-v1/Premise2Db.ts +67 -0
- package/src/db-sdk-v1/PremiseDb.ts +67 -0
- package/src/db-sdk-v1/PriceBookDb.ts +141 -0
- package/src/db-sdk-v1/ProductComponentDb.ts +172 -0
- package/src/db-sdk-v1/ProductDb.ts +421 -0
- package/src/db-sdk-v1/ProgramDb.ts +137 -0
- package/src/db-sdk-v1/ProjectDb.ts +172 -0
- package/src/db-sdk-v1/QueueChangeDb.ts +137 -0
- package/src/db-sdk-v1/QueueDb.ts +172 -0
- package/src/db-sdk-v1/RegionDb.ts +137 -0
- package/src/db-sdk-v1/RemediationRequiredReasonDb.ts +207 -0
- package/src/db-sdk-v1/RestrictionDb.ts +172 -0
- package/src/db-sdk-v1/ReturnOrderDb.ts +137 -0
- package/src/db-sdk-v1/SalesLeaderBoardDb.ts +67 -0
- package/src/db-sdk-v1/SalesTerritoryDb.ts +172 -0
- package/src/db-sdk-v1/ScheduleSlotDb.ts +102 -0
- package/src/db-sdk-v1/ServiceAppointmentConfigDb.ts +312 -0
- package/src/db-sdk-v1/ServiceAppointmentDb.ts +207 -0
- package/src/db-sdk-v1/ServiceDb.ts +137 -0
- package/src/db-sdk-v1/ServiceVisitAuditDb.ts +172 -0
- package/src/db-sdk-v1/SmsMessageDb.ts +277 -0
- package/src/db-sdk-v1/SplitOrderDb.ts +172 -0
- package/src/db-sdk-v1/SubtaskDb.ts +137 -0
- package/src/db-sdk-v1/SupportTaskDb.ts +102 -0
- package/src/db-sdk-v1/SweeperMaintenanceAuditDb.ts +172 -0
- package/src/db-sdk-v1/TaskDb.ts +172 -0
- package/src/db-sdk-v1/TeamDb.ts +137 -0
- package/src/db-sdk-v1/TelesalesDashboardDb.ts +67 -0
- package/src/db-sdk-v1/TimeOffDb.ts +102 -0
- package/src/db-sdk-v1/TimeSlotDb.ts +102 -0
- package/src/db-sdk-v1/TransactionDb.ts +312 -0
- package/src/db-sdk-v1/UgAuditOfInstallationDb.ts +172 -0
- package/src/db-sdk-v1/UgExternalAuditDb.ts +172 -0
- package/src/db-sdk-v1/UgInProgressAuditDb.ts +172 -0
- package/src/db-sdk-v1/UgInstallationAuditDb.ts +172 -0
- package/src/db-sdk-v1/UserDb.ts +452 -0
- package/src/db-sdk-v1/VendorDb.ts +137 -0
- package/src/db-sdk-v1/VisitDb.ts +277 -0
- package/src/db-sdk-v1/VoiceConfigurationDb.ts +102 -0
- package/src/db-sdk-v1/WorkOrderDb.ts +1537 -0
- package/src/db-sdk-v1/WorkOrderRemediationViewDb.ts +67 -0
- package/src/db-sdk-v1/YfEquipmentCollectionDb.ts +172 -0
- package/src/db-sdk-v1/YfFieldServiceVisitDb.ts +172 -0
- package/src/entities-v1/Account.ts +98 -0
- package/src/entities-v1/Activity.ts +96 -0
- package/src/entities-v1/Address.ts +209 -0
- package/src/entities-v1/AddressCrmDataset.ts +74 -0
- package/src/entities-v1/Appointment.ts +87 -0
- package/src/entities-v1/AppointmentCalendar.ts +43 -0
- package/src/entities-v1/BillingAdjustment.ts +82 -0
- package/src/entities-v1/BillingRequest.ts +118 -0
- package/src/entities-v1/BlockageReportA55.ts +98 -0
- package/src/entities-v1/BundleProduct.ts +266 -0
- package/src/entities-v1/BusinessAccount.ts +94 -0
- package/src/entities-v1/Calendar.ts +43 -0
- package/src/entities-v1/Call.ts +77 -0
- package/src/entities-v1/Case.ts +157 -0
- package/src/entities-v1/CaseQueueListView.ts +43 -0
- package/src/entities-v1/ChangeReason.ts +191 -0
- package/src/entities-v1/ChurnRequest.ts +76 -0
- package/src/entities-v1/CollectionWorkOrder.ts +260 -0
- package/src/entities-v1/Commission.ts +78 -0
- package/src/entities-v1/ConsumptionRate.ts +70 -0
- package/src/entities-v1/ConsumptionSchedule.ts +71 -0
- package/src/entities-v1/Contact.ts +206 -0
- package/src/entities-v1/ContactCrmDataset.ts +70 -0
- package/src/entities-v1/ContactIdentity.ts +56 -0
- package/src/entities-v1/CreditNote.ts +82 -0
- package/src/entities-v1/CrmDataset.ts +86 -0
- package/src/entities-v1/CustomerDeviceAta.ts +52 -0
- package/src/entities-v1/CustomerDeviceOnt.ts +135 -0
- package/src/entities-v1/CustomerDeviceOntRemoval.ts +55 -0
- package/src/entities-v1/CustomerDeviceRouter.ts +100 -0
- package/src/entities-v1/CustomerPhonePorting.ts +59 -0
- package/src/entities-v1/Dashboard.ts +43 -0
- package/src/entities-v1/DeactivationApproval.ts +57 -0
- package/src/entities-v1/DefaultAddress.ts +205 -0
- package/src/entities-v1/DefaultAppointment.ts +85 -0
- package/src/entities-v1/DefaultAppointmentCalendar.ts +41 -0
- package/src/entities-v1/DefaultBillingAdjustment.ts +80 -0
- package/src/entities-v1/DefaultCalendar.ts +41 -0
- package/src/entities-v1/DefaultCall.ts +75 -0
- package/src/entities-v1/DefaultCase.ts +152 -0
- package/src/entities-v1/DefaultCaseQueueListView.ts +41 -0
- package/src/entities-v1/DefaultChurnRequest.ts +84 -0
- package/src/entities-v1/DefaultCommission.ts +76 -0
- package/src/entities-v1/DefaultConsumptionRate.ts +69 -0
- package/src/entities-v1/DefaultConsumptionSchedule.ts +70 -0
- package/src/entities-v1/DefaultContact.ts +205 -0
- package/src/entities-v1/DefaultContactIdentity.ts +55 -0
- package/src/entities-v1/DefaultCreditNote.ts +80 -0
- package/src/entities-v1/DefaultCrmDataset.ts +70 -0
- package/src/entities-v1/DefaultCustomerDeviceAta.ts +50 -0
- package/src/entities-v1/DefaultCustomerDeviceOnt.ts +133 -0
- package/src/entities-v1/DefaultCustomerDeviceOntRemoval.ts +53 -0
- package/src/entities-v1/DefaultCustomerDeviceRouter.ts +98 -0
- package/src/entities-v1/DefaultCustomerPhonePorting.ts +57 -0
- package/src/entities-v1/DefaultDashboard.ts +41 -0
- package/src/entities-v1/DefaultDeactivationApproval.ts +55 -0
- package/src/entities-v1/DefaultDiscount.ts +87 -0
- package/src/entities-v1/DefaultEngineer.ts +43 -0
- package/src/entities-v1/DefaultExchange.ts +53 -0
- package/src/entities-v1/DefaultFile.ts +156 -0
- package/src/entities-v1/DefaultFingerprint.ts +71 -0
- package/src/entities-v1/DefaultInvoice.ts +201 -0
- package/src/entities-v1/DefaultInvoiceItem.ts +113 -0
- package/src/entities-v1/DefaultLead.ts +155 -0
- package/src/entities-v1/DefaultLinearIssue.ts +41 -0
- package/src/entities-v1/DefaultMilestone.ts +73 -0
- package/src/entities-v1/DefaultNote.ts +167 -0
- package/src/entities-v1/DefaultOffer.ts +89 -0
- package/src/entities-v1/DefaultOneTouchSwitch.ts +89 -0
- package/src/entities-v1/DefaultOrder.ts +317 -0
- package/src/entities-v1/DefaultOrderCheck.ts +71 -0
- package/src/entities-v1/DefaultOrderItem.ts +174 -0
- package/src/entities-v1/DefaultOrderRemediationTask.ts +57 -0
- package/src/entities-v1/DefaultOrganization.ts +57 -0
- package/src/entities-v1/DefaultOutage.ts +41 -0
- package/src/entities-v1/DefaultPICRequest.ts +85 -0
- package/src/entities-v1/DefaultPaymentMethod.ts +105 -0
- package/src/entities-v1/DefaultPaymentMethodRefund.ts +79 -0
- package/src/entities-v1/DefaultPermissionToFail.ts +53 -0
- package/src/entities-v1/DefaultPhoneNumber.ts +47 -0
- package/src/entities-v1/DefaultPremise.ts +63 -0
- package/src/entities-v1/DefaultPremise2.ts +41 -0
- package/src/entities-v1/DefaultPriceBook.ts +64 -0
- package/src/entities-v1/DefaultProductComponent.ts +98 -0
- package/src/entities-v1/DefaultProgram.ts +69 -0
- package/src/entities-v1/DefaultProject.ts +71 -0
- package/src/entities-v1/DefaultQueue.ts +49 -0
- package/src/entities-v1/DefaultQueueChange.ts +51 -0
- package/src/entities-v1/DefaultRegion.ts +45 -0
- package/src/entities-v1/DefaultRestriction.ts +67 -0
- package/src/entities-v1/DefaultReturnOrder.ts +47 -0
- package/src/entities-v1/DefaultSalesLeaderBoard.ts +41 -0
- package/src/entities-v1/DefaultScheduleSlot.ts +69 -0
- package/src/entities-v1/DefaultService.ts +79 -0
- package/src/entities-v1/DefaultServiceAppointment.ts +65 -0
- package/src/entities-v1/DefaultSmsMessage.ts +88 -0
- package/src/entities-v1/DefaultSplitOrder.ts +49 -0
- package/src/entities-v1/DefaultSubtask.ts +63 -0
- package/src/entities-v1/DefaultSupportTask.ts +43 -0
- package/src/entities-v1/DefaultTask.ts +71 -0
- package/src/entities-v1/DefaultTeam.ts +47 -0
- package/src/entities-v1/DefaultTelesalesDashboard.ts +41 -0
- package/src/entities-v1/DefaultTimeOff.ts +53 -0
- package/src/entities-v1/DefaultTimeSlot.ts +77 -0
- package/src/entities-v1/DefaultTransaction.ts +136 -0
- package/src/entities-v1/DefaultUser.ts +95 -0
- package/src/entities-v1/DefaultVendor.ts +53 -0
- package/src/entities-v1/DefaultVisit.ts +151 -0
- package/src/entities-v1/DefaultVoiceConfiguration.ts +173 -0
- package/src/entities-v1/DefaultWorkOrderRemediationView.ts +41 -0
- package/src/entities-v1/Discount.ts +89 -0
- package/src/entities-v1/EmailFile.ts +156 -0
- package/src/entities-v1/Engineer.ts +45 -0
- package/src/entities-v1/EventActivity.ts +87 -0
- package/src/entities-v1/Exchange.ts +55 -0
- package/src/entities-v1/FieldSalesSalesTerritory.ts +55 -0
- package/src/entities-v1/File.ts +159 -0
- package/src/entities-v1/FinanceServiceAppointmentConfig.ts +156 -0
- package/src/entities-v1/FinanceWorkOrder.ts +256 -0
- package/src/entities-v1/Fingerprint.ts +73 -0
- package/src/entities-v1/GainingOneTouchSwitch.ts +89 -0
- package/src/entities-v1/InboundSmsMessage.ts +88 -0
- package/src/entities-v1/InspectionWorkOrder.ts +274 -0
- package/src/entities-v1/InstallBusinessWorkOrder.ts +276 -0
- package/src/entities-v1/InstallServiceAppointmentConfig.ts +156 -0
- package/src/entities-v1/InstallServiceServiceAppointmentConfig.ts +156 -0
- package/src/entities-v1/InstallServiceWorkOrder.ts +240 -0
- package/src/entities-v1/InstallWorkOrder.ts +328 -0
- package/src/entities-v1/InternalInstallAudit.ts +49 -0
- package/src/entities-v1/InternetProduct.ts +266 -0
- package/src/entities-v1/Invoice.ts +203 -0
- package/src/entities-v1/InvoiceItem.ts +114 -0
- package/src/entities-v1/LaborProduct.ts +266 -0
- package/src/entities-v1/LandlineProduct.ts +266 -0
- package/src/entities-v1/Lead.ts +159 -0
- package/src/entities-v1/LeadCrmDataset.ts +77 -0
- package/src/entities-v1/LinearIssue.ts +43 -0
- package/src/entities-v1/LosingOneTouchSwitch.ts +89 -0
- package/src/entities-v1/MandateBillingRequest.ts +116 -0
- package/src/entities-v1/MeshProduct.ts +266 -0
- package/src/entities-v1/Milestone.ts +74 -0
- package/src/entities-v1/MobileProduct.ts +266 -0
- package/src/entities-v1/NetomniaFtth1StageInstallAudit.ts +348 -0
- package/src/entities-v1/NetomniaFtthServiceVisitSheet.ts +163 -0
- package/src/entities-v1/NetomniaInstallVerification.ts +182 -0
- package/src/entities-v1/NetworkAdjustmentServiceAppointmentConfig.ts +156 -0
- package/src/entities-v1/NetworkAdjustmentWorkOrder.ts +256 -0
- package/src/entities-v1/NetworkDevice.ts +54 -0
- package/src/entities-v1/Noinstall3AuditOfInstallationSheet.ts +320 -0
- package/src/entities-v1/Note.ts +168 -0
- package/src/entities-v1/NotificationActivity.ts +92 -0
- package/src/entities-v1/Offer.ts +90 -0
- package/src/entities-v1/OhAuditOfInstallation.ts +351 -0
- package/src/entities-v1/OhExternalAudit.ts +93 -0
- package/src/entities-v1/OhInProgressAudit.ts +193 -0
- package/src/entities-v1/OhInstallationAudit.ts +266 -0
- package/src/entities-v1/OltNetworkDevice.ts +52 -0
- package/src/entities-v1/OneTouchSwitch.ts +93 -0
- package/src/entities-v1/Order.ts +318 -0
- package/src/entities-v1/OrderCheck.ts +73 -0
- package/src/entities-v1/OrderItem.ts +175 -0
- package/src/entities-v1/OrderRemediationTask.ts +59 -0
- package/src/entities-v1/Organization.ts +58 -0
- package/src/entities-v1/Outage.ts +43 -0
- package/src/entities-v1/OutageCase.ts +155 -0
- package/src/entities-v1/OutboundSmsMessage.ts +88 -0
- package/src/entities-v1/OutcomeFormBlockageReportA55.ts +96 -0
- package/src/entities-v1/OutcomeFormInternalInstallAudit.ts +45 -0
- package/src/entities-v1/OutcomeFormNetomniaFtth1StageInstallAudit.ts +344 -0
- package/src/entities-v1/OutcomeFormNetomniaFtthServiceVisitSheet.ts +159 -0
- package/src/entities-v1/OutcomeFormNetomniaInstallVerification.ts +178 -0
- package/src/entities-v1/OutcomeFormNoinstall3AuditOfInstallationSheet.ts +316 -0
- package/src/entities-v1/OutcomeFormOhAuditOfInstallation.ts +347 -0
- package/src/entities-v1/OutcomeFormOhExternalAudit.ts +89 -0
- package/src/entities-v1/OutcomeFormOhInProgressAudit.ts +189 -0
- package/src/entities-v1/OutcomeFormOhInstallationAudit.ts +262 -0
- package/src/entities-v1/OutcomeFormOverlayRealA55.ts +169 -0
- package/src/entities-v1/OutcomeFormRemediationRequiredReason.ts +82 -0
- package/src/entities-v1/OutcomeFormServiceVisitAudit.ts +133 -0
- package/src/entities-v1/OutcomeFormSweeperMaintenanceAudit.ts +235 -0
- package/src/entities-v1/OutcomeFormUgAuditOfInstallation.ts +333 -0
- package/src/entities-v1/OutcomeFormUgExternalAudit.ts +91 -0
- package/src/entities-v1/OutcomeFormUgInProgressAudit.ts +183 -0
- package/src/entities-v1/OutcomeFormUgInstallationAudit.ts +254 -0
- package/src/entities-v1/OutcomeFormYfEquipmentCollection.ts +119 -0
- package/src/entities-v1/OutcomeFormYfFieldServiceVisit.ts +389 -0
- package/src/entities-v1/OverlayRealA55.ts +173 -0
- package/src/entities-v1/PICRequest.ts +77 -0
- package/src/entities-v1/PaymentBillingRequest.ts +116 -0
- package/src/entities-v1/PaymentMethod.ts +107 -0
- package/src/entities-v1/PaymentMethodRefund.ts +81 -0
- package/src/entities-v1/PermissionToFail.ts +55 -0
- package/src/entities-v1/PhoneNumber.ts +49 -0
- package/src/entities-v1/PlanningServiceAppointmentConfig.ts +156 -0
- package/src/entities-v1/PlanningWorkOrder.ts +258 -0
- package/src/entities-v1/PrePullServiceAppointmentConfig.ts +156 -0
- package/src/entities-v1/PrePullWorkOrder.ts +264 -0
- package/src/entities-v1/Premise.ts +65 -0
- package/src/entities-v1/Premise2.ts +43 -0
- package/src/entities-v1/PriceBook.ts +66 -0
- package/src/entities-v1/PrimaryAccount.ts +95 -0
- package/src/entities-v1/Product.ts +272 -0
- package/src/entities-v1/ProductComponent.ts +99 -0
- package/src/entities-v1/Program.ts +71 -0
- package/src/entities-v1/Project.ts +73 -0
- package/src/entities-v1/Queue.ts +51 -0
- package/src/entities-v1/QueueChange.ts +53 -0
- package/src/entities-v1/Region.ts +47 -0
- package/src/entities-v1/RemediationRequiredReason.ts +84 -0
- package/src/entities-v1/RemediationServiceAppointmentConfig.ts +156 -0
- package/src/entities-v1/RemediationWorkOrder.ts +263 -0
- package/src/entities-v1/Restriction.ts +68 -0
- package/src/entities-v1/ReturnOrder.ts +49 -0
- package/src/entities-v1/SaCancelChangeReason.ts +135 -0
- package/src/entities-v1/SaRescheduleChangeReason.ts +137 -0
- package/src/entities-v1/SalesLeaderBoard.ts +43 -0
- package/src/entities-v1/SalesTerritory.ts +58 -0
- package/src/entities-v1/ScheduleSlot.ts +71 -0
- package/src/entities-v1/Service.ts +80 -0
- package/src/entities-v1/ServiceAppointment.ts +67 -0
- package/src/entities-v1/ServiceAppointmentConfig.ts +166 -0
- package/src/entities-v1/ServiceServiceAppointmentConfig.ts +156 -0
- package/src/entities-v1/ServiceVisitAudit.ts +137 -0
- package/src/entities-v1/ServiceWorkOrder.ts +344 -0
- package/src/entities-v1/SmsMessage.ts +92 -0
- package/src/entities-v1/SplitOrder.ts +50 -0
- package/src/entities-v1/Subtask.ts +65 -0
- package/src/entities-v1/SupportTask.ts +45 -0
- package/src/entities-v1/SweeperMaintenanceAudit.ts +237 -0
- package/src/entities-v1/Task.ts +73 -0
- package/src/entities-v1/TaskActivity.ts +87 -0
- package/src/entities-v1/Team.ts +49 -0
- package/src/entities-v1/TelesalesDashboard.ts +43 -0
- package/src/entities-v1/TelesalesSalesTerritory.ts +53 -0
- package/src/entities-v1/TimeOff.ts +55 -0
- package/src/entities-v1/TimeSlot.ts +79 -0
- package/src/entities-v1/Transaction.ts +137 -0
- package/src/entities-v1/UgAuditOfInstallation.ts +337 -0
- package/src/entities-v1/UgExternalAudit.ts +95 -0
- package/src/entities-v1/UgInProgressAudit.ts +187 -0
- package/src/entities-v1/UgInstallationAudit.ts +258 -0
- package/src/entities-v1/User.ts +97 -0
- package/src/entities-v1/Vendor.ts +55 -0
- package/src/entities-v1/Visit.ts +153 -0
- package/src/entities-v1/VoiceConfiguration.ts +175 -0
- package/src/entities-v1/WayleaveServiceAppointmentConfig.ts +156 -0
- package/src/entities-v1/WayleaveWorkOrder.ts +258 -0
- package/src/entities-v1/WorkOrder.ts +416 -0
- package/src/entities-v1/WorkOrderRemediationView.ts +43 -0
- package/src/entities-v1/YfEquipmentCollection.ts +123 -0
- package/src/entities-v1/YfFieldServiceVisit.ts +393 -0
- package/src/generators/runner.ts +34 -0
- package/src/types-v1/Types.ts +111 -0
- package/tsconfig.json +109 -0
|
@@ -0,0 +1,2132 @@
|
|
|
1
|
+
|
|
2
|
+
import { DbProvider } from '@d19n/odin-sdk-generator/dist/db.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { BatchDeleteParam, BatchRestoreParam, OdinRecordCreateDto, OdinRecordUpdateDto, OdinLinkedRecordUpdateDto, RelationTypeEnum } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
|
|
6
|
+
export class NoteDb extends DbProvider {
|
|
7
|
+
|
|
8
|
+
private readonly moduleName: string = 'SupportModule';
|
|
9
|
+
private readonly entityName: string = 'Note';
|
|
10
|
+
|
|
11
|
+
constructor(protected readonly principal: any, protected readonly dbService: any) {
|
|
12
|
+
super(principal, dbService);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
// Use this function when you want to search and handle all pagination on your own
|
|
17
|
+
public async searchRecords(params: Partial<OdinSearchV2>) {
|
|
18
|
+
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Use this function when you want paginating through the results to be handled
|
|
22
|
+
public async searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>) {
|
|
23
|
+
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
// Use this function when you want to return a single record
|
|
27
|
+
public async getByPrimaryKey(noteId: string) {
|
|
28
|
+
return await this._getByPrimaryKey(this.moduleName, this.entityName, noteId);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// Use this function when you want to return the versions for a single record
|
|
32
|
+
public async getVersions(noteId: string) {
|
|
33
|
+
return await this._getVersions(this.moduleName, this.entityName, noteId);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Use this function when you want to return the change history for a single record
|
|
37
|
+
public async getRevisionTimeline(noteId: string) {
|
|
38
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, noteId);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Use this function when you want to return many records by primaryKeys
|
|
42
|
+
public async getManyByPrimaryKey(noteIds: string[]) {
|
|
43
|
+
return await this._getManyByPrimaryKey(this.moduleName, this.entityName, noteIds);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Use this function when you want to upsert one or many records
|
|
47
|
+
public async upsert(upsertDtos: OdinRecordCreateDto[]) {
|
|
48
|
+
return await this._upsert(this.moduleName, this.entityName, upsertDtos);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Use this function when you want to update one or many records
|
|
52
|
+
public async update(updateDtos: OdinRecordUpdateDto[]) {
|
|
53
|
+
return await this._update(this.moduleName, this.entityName, updateDtos);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Use this function when you want to delete one or many records
|
|
57
|
+
public async delete(noteIds: string[]) {
|
|
58
|
+
return await this._delete(this.moduleName, this.entityName, noteIds);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Use this function when you want to restore one or many records
|
|
62
|
+
public async restore(noteIds: string[]) {
|
|
63
|
+
return await this._restore(this.moduleName, this.entityName, noteIds);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
// Use this function when you want to return a single record
|
|
68
|
+
public async getUgExternalAudits(noteId: string) {
|
|
69
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'UgExternalAudit');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
public async addUgExternalAuditNotes(noteId: string, ugExternalAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
73
|
+
|
|
74
|
+
const associationDtos = [];
|
|
75
|
+
for(const param of ugExternalAuditIds){
|
|
76
|
+
associationDtos.push({
|
|
77
|
+
entity: 'FieldServiceModule:UgExternalAudit',
|
|
78
|
+
recordId: param.id,
|
|
79
|
+
linkType: 'UgExternalAudit_Note',
|
|
80
|
+
relationType: param?.relationType,
|
|
81
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
public async removeUgExternalAuditNotes(noteId: string, ugExternalAuditIds: string[]) {
|
|
89
|
+
|
|
90
|
+
const associationDtos = [];
|
|
91
|
+
for(const pk of ugExternalAuditIds){
|
|
92
|
+
associationDtos.push({
|
|
93
|
+
entity: 'FieldServiceModule:UgExternalAudit',
|
|
94
|
+
recordId: pk,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
// Use this function when you want to return a single record
|
|
103
|
+
public async getWorkOrders(noteId: string) {
|
|
104
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'WorkOrder');
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
public async addWorkOrderNotes(noteId: string, workOrderIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
108
|
+
|
|
109
|
+
const associationDtos = [];
|
|
110
|
+
for(const param of workOrderIds){
|
|
111
|
+
associationDtos.push({
|
|
112
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
113
|
+
recordId: param.id,
|
|
114
|
+
linkType: 'WorkOrder__Note',
|
|
115
|
+
relationType: param?.relationType,
|
|
116
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
public async removeWorkOrderNotes(noteId: string, workOrderIds: string[]) {
|
|
124
|
+
|
|
125
|
+
const associationDtos = [];
|
|
126
|
+
for(const pk of workOrderIds){
|
|
127
|
+
associationDtos.push({
|
|
128
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
129
|
+
recordId: pk,
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
// Use this function when you want to return a single record
|
|
138
|
+
public async getAppointments(noteId: string) {
|
|
139
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Appointment');
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
public async addAppointmentNotes(noteId: string, appointmentIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
143
|
+
|
|
144
|
+
const associationDtos = [];
|
|
145
|
+
for(const param of appointmentIds){
|
|
146
|
+
associationDtos.push({
|
|
147
|
+
entity: 'CrmModule:Appointment',
|
|
148
|
+
recordId: param.id,
|
|
149
|
+
linkType: 'Appointment__Note',
|
|
150
|
+
relationType: param?.relationType,
|
|
151
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
public async removeAppointmentNotes(noteId: string, appointmentIds: string[]) {
|
|
159
|
+
|
|
160
|
+
const associationDtos = [];
|
|
161
|
+
for(const pk of appointmentIds){
|
|
162
|
+
associationDtos.push({
|
|
163
|
+
entity: 'CrmModule:Appointment',
|
|
164
|
+
recordId: pk,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
// Use this function when you want to return a single record
|
|
173
|
+
public async getContacts(noteId: string) {
|
|
174
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Contact');
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
public async addContactNotes(noteId: string, contactIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
178
|
+
|
|
179
|
+
const associationDtos = [];
|
|
180
|
+
for(const param of contactIds){
|
|
181
|
+
associationDtos.push({
|
|
182
|
+
entity: 'CrmModule:Contact',
|
|
183
|
+
recordId: param.id,
|
|
184
|
+
linkType: 'Contact__Note',
|
|
185
|
+
relationType: param?.relationType,
|
|
186
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
public async removeContactNotes(noteId: string, contactIds: string[]) {
|
|
194
|
+
|
|
195
|
+
const associationDtos = [];
|
|
196
|
+
for(const pk of contactIds){
|
|
197
|
+
associationDtos.push({
|
|
198
|
+
entity: 'CrmModule:Contact',
|
|
199
|
+
recordId: pk,
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
// Use this function when you want to return a single record
|
|
208
|
+
public async getLeads(noteId: string) {
|
|
209
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Lead');
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
public async addLeadNotes(noteId: string, leadIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
213
|
+
|
|
214
|
+
const associationDtos = [];
|
|
215
|
+
for(const param of leadIds){
|
|
216
|
+
associationDtos.push({
|
|
217
|
+
entity: 'CrmModule:Lead',
|
|
218
|
+
recordId: param.id,
|
|
219
|
+
linkType: 'Lead__Note',
|
|
220
|
+
relationType: param?.relationType,
|
|
221
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
222
|
+
});
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
public async removeLeadNotes(noteId: string, leadIds: string[]) {
|
|
229
|
+
|
|
230
|
+
const associationDtos = [];
|
|
231
|
+
for(const pk of leadIds){
|
|
232
|
+
associationDtos.push({
|
|
233
|
+
entity: 'CrmModule:Lead',
|
|
234
|
+
recordId: pk,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
// Use this function when you want to return a single record
|
|
243
|
+
public async getOrders(noteId: string) {
|
|
244
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Order');
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
public async addOrderNotes(noteId: string, orderIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
248
|
+
|
|
249
|
+
const associationDtos = [];
|
|
250
|
+
for(const param of orderIds){
|
|
251
|
+
associationDtos.push({
|
|
252
|
+
entity: 'OrderModule:Order',
|
|
253
|
+
recordId: param.id,
|
|
254
|
+
linkType: 'Order__Note',
|
|
255
|
+
relationType: param?.relationType,
|
|
256
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
public async removeOrderNotes(noteId: string, orderIds: string[]) {
|
|
264
|
+
|
|
265
|
+
const associationDtos = [];
|
|
266
|
+
for(const pk of orderIds){
|
|
267
|
+
associationDtos.push({
|
|
268
|
+
entity: 'OrderModule:Order',
|
|
269
|
+
recordId: pk,
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
// Use this function when you want to return a single record
|
|
278
|
+
public async getAccounts(noteId: string) {
|
|
279
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Account');
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
public async addAccountNotes(noteId: string, accountIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
283
|
+
|
|
284
|
+
const associationDtos = [];
|
|
285
|
+
for(const param of accountIds){
|
|
286
|
+
associationDtos.push({
|
|
287
|
+
entity: 'CrmModule:Account',
|
|
288
|
+
recordId: param.id,
|
|
289
|
+
linkType: 'Account__Note',
|
|
290
|
+
relationType: param?.relationType,
|
|
291
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
public async removeAccountNotes(noteId: string, accountIds: string[]) {
|
|
299
|
+
|
|
300
|
+
const associationDtos = [];
|
|
301
|
+
for(const pk of accountIds){
|
|
302
|
+
associationDtos.push({
|
|
303
|
+
entity: 'CrmModule:Account',
|
|
304
|
+
recordId: pk,
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
// Use this function when you want to return a single record
|
|
313
|
+
public async getPrograms(noteId: string) {
|
|
314
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Program');
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
public async addProgramNotes(noteId: string, programIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
318
|
+
|
|
319
|
+
const associationDtos = [];
|
|
320
|
+
for(const param of programIds){
|
|
321
|
+
associationDtos.push({
|
|
322
|
+
entity: 'ProjectModule:Program',
|
|
323
|
+
recordId: param.id,
|
|
324
|
+
linkType: 'Program__Note',
|
|
325
|
+
relationType: param?.relationType,
|
|
326
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
public async removeProgramNotes(noteId: string, programIds: string[]) {
|
|
334
|
+
|
|
335
|
+
const associationDtos = [];
|
|
336
|
+
for(const pk of programIds){
|
|
337
|
+
associationDtos.push({
|
|
338
|
+
entity: 'ProjectModule:Program',
|
|
339
|
+
recordId: pk,
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
// Use this function when you want to return a single record
|
|
348
|
+
public async getProjects(noteId: string) {
|
|
349
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Project');
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
public async addProjectNotes(noteId: string, projectIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
353
|
+
|
|
354
|
+
const associationDtos = [];
|
|
355
|
+
for(const param of projectIds){
|
|
356
|
+
associationDtos.push({
|
|
357
|
+
entity: 'ProjectModule:Project',
|
|
358
|
+
recordId: param.id,
|
|
359
|
+
linkType: 'Project__Note',
|
|
360
|
+
relationType: param?.relationType,
|
|
361
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
public async removeProjectNotes(noteId: string, projectIds: string[]) {
|
|
369
|
+
|
|
370
|
+
const associationDtos = [];
|
|
371
|
+
for(const pk of projectIds){
|
|
372
|
+
associationDtos.push({
|
|
373
|
+
entity: 'ProjectModule:Project',
|
|
374
|
+
recordId: pk,
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
// Use this function when you want to return a single record
|
|
383
|
+
public async getInvoices(noteId: string) {
|
|
384
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Invoice');
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
public async addInvoiceNotes(noteId: string, invoiceIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
388
|
+
|
|
389
|
+
const associationDtos = [];
|
|
390
|
+
for(const param of invoiceIds){
|
|
391
|
+
associationDtos.push({
|
|
392
|
+
entity: 'BillingModule:Invoice',
|
|
393
|
+
recordId: param.id,
|
|
394
|
+
linkType: 'Invoice__Note',
|
|
395
|
+
relationType: param?.relationType,
|
|
396
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
public async removeInvoiceNotes(noteId: string, invoiceIds: string[]) {
|
|
404
|
+
|
|
405
|
+
const associationDtos = [];
|
|
406
|
+
for(const pk of invoiceIds){
|
|
407
|
+
associationDtos.push({
|
|
408
|
+
entity: 'BillingModule:Invoice',
|
|
409
|
+
recordId: pk,
|
|
410
|
+
});
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
// Use this function when you want to return a single record
|
|
418
|
+
public async getMilestones(noteId: string) {
|
|
419
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Milestone');
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
public async addMilestoneNotes(noteId: string, milestoneIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
423
|
+
|
|
424
|
+
const associationDtos = [];
|
|
425
|
+
for(const param of milestoneIds){
|
|
426
|
+
associationDtos.push({
|
|
427
|
+
entity: 'ProjectModule:Milestone',
|
|
428
|
+
recordId: param.id,
|
|
429
|
+
linkType: 'Milestone__Note',
|
|
430
|
+
relationType: param?.relationType,
|
|
431
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
public async removeMilestoneNotes(noteId: string, milestoneIds: string[]) {
|
|
439
|
+
|
|
440
|
+
const associationDtos = [];
|
|
441
|
+
for(const pk of milestoneIds){
|
|
442
|
+
associationDtos.push({
|
|
443
|
+
entity: 'ProjectModule:Milestone',
|
|
444
|
+
recordId: pk,
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
// Use this function when you want to return a single record
|
|
453
|
+
public async getTasks(noteId: string) {
|
|
454
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Task');
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
public async addTaskNotes(noteId: string, taskIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
458
|
+
|
|
459
|
+
const associationDtos = [];
|
|
460
|
+
for(const param of taskIds){
|
|
461
|
+
associationDtos.push({
|
|
462
|
+
entity: 'ProjectModule:Task',
|
|
463
|
+
recordId: param.id,
|
|
464
|
+
linkType: 'Task__Note',
|
|
465
|
+
relationType: param?.relationType,
|
|
466
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
467
|
+
});
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
public async removeTaskNotes(noteId: string, taskIds: string[]) {
|
|
474
|
+
|
|
475
|
+
const associationDtos = [];
|
|
476
|
+
for(const pk of taskIds){
|
|
477
|
+
associationDtos.push({
|
|
478
|
+
entity: 'ProjectModule:Task',
|
|
479
|
+
recordId: pk,
|
|
480
|
+
});
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
// Use this function when you want to return a single record
|
|
488
|
+
public async getSubtasks(noteId: string) {
|
|
489
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Subtask');
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
public async addSubtaskNotes(noteId: string, subtaskIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
493
|
+
|
|
494
|
+
const associationDtos = [];
|
|
495
|
+
for(const param of subtaskIds){
|
|
496
|
+
associationDtos.push({
|
|
497
|
+
entity: 'ProjectModule:Subtask',
|
|
498
|
+
recordId: param.id,
|
|
499
|
+
linkType: 'Subtask__Note',
|
|
500
|
+
relationType: param?.relationType,
|
|
501
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
public async removeSubtaskNotes(noteId: string, subtaskIds: string[]) {
|
|
509
|
+
|
|
510
|
+
const associationDtos = [];
|
|
511
|
+
for(const pk of subtaskIds){
|
|
512
|
+
associationDtos.push({
|
|
513
|
+
entity: 'ProjectModule:Subtask',
|
|
514
|
+
recordId: pk,
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
// Use this function when you want to return a single record
|
|
523
|
+
public async getFiles(noteId: string) {
|
|
524
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'File');
|
|
525
|
+
}
|
|
526
|
+
|
|
527
|
+
public async addFileNotes(noteId: string, fileIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
528
|
+
|
|
529
|
+
const associationDtos = [];
|
|
530
|
+
for(const param of fileIds){
|
|
531
|
+
associationDtos.push({
|
|
532
|
+
entity: 'SchemaModule:File',
|
|
533
|
+
recordId: param.id,
|
|
534
|
+
linkType: 'File__Note',
|
|
535
|
+
relationType: param?.relationType,
|
|
536
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
537
|
+
});
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
public async removeFileNotes(noteId: string, fileIds: string[]) {
|
|
544
|
+
|
|
545
|
+
const associationDtos = [];
|
|
546
|
+
for(const pk of fileIds){
|
|
547
|
+
associationDtos.push({
|
|
548
|
+
entity: 'SchemaModule:File',
|
|
549
|
+
recordId: pk,
|
|
550
|
+
});
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
|
|
557
|
+
// Use this function when you want to return a single record
|
|
558
|
+
public async getDiscounts(noteId: string) {
|
|
559
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Discount');
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
public async addDiscountNotes(noteId: string, discountIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
563
|
+
|
|
564
|
+
const associationDtos = [];
|
|
565
|
+
for(const param of discountIds){
|
|
566
|
+
associationDtos.push({
|
|
567
|
+
entity: 'ProductModule:Discount',
|
|
568
|
+
recordId: param.id,
|
|
569
|
+
linkType: 'Discount__Note',
|
|
570
|
+
relationType: param?.relationType,
|
|
571
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
572
|
+
});
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
public async removeDiscountNotes(noteId: string, discountIds: string[]) {
|
|
579
|
+
|
|
580
|
+
const associationDtos = [];
|
|
581
|
+
for(const pk of discountIds){
|
|
582
|
+
associationDtos.push({
|
|
583
|
+
entity: 'ProductModule:Discount',
|
|
584
|
+
recordId: pk,
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
// Use this function when you want to return a single record
|
|
593
|
+
public async getBillingAdjustments(noteId: string) {
|
|
594
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'BillingAdjustment');
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
public async addBillingAdjustmentNotes(noteId: string, billingAdjustmentIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
598
|
+
|
|
599
|
+
const associationDtos = [];
|
|
600
|
+
for(const param of billingAdjustmentIds){
|
|
601
|
+
associationDtos.push({
|
|
602
|
+
entity: 'OrderModule:BillingAdjustment',
|
|
603
|
+
recordId: param.id,
|
|
604
|
+
linkType: 'BillingAdjustment__Note',
|
|
605
|
+
relationType: param?.relationType,
|
|
606
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
607
|
+
});
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
public async removeBillingAdjustmentNotes(noteId: string, billingAdjustmentIds: string[]) {
|
|
614
|
+
|
|
615
|
+
const associationDtos = [];
|
|
616
|
+
for(const pk of billingAdjustmentIds){
|
|
617
|
+
associationDtos.push({
|
|
618
|
+
entity: 'OrderModule:BillingAdjustment',
|
|
619
|
+
recordId: pk,
|
|
620
|
+
});
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
|
|
627
|
+
// Use this function when you want to return a single record
|
|
628
|
+
public async getOrderItems(noteId: string) {
|
|
629
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'OrderItem');
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
public async addOrderItemNotes(noteId: string, orderItemIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
633
|
+
|
|
634
|
+
const associationDtos = [];
|
|
635
|
+
for(const param of orderItemIds){
|
|
636
|
+
associationDtos.push({
|
|
637
|
+
entity: 'OrderModule:OrderItem',
|
|
638
|
+
recordId: param.id,
|
|
639
|
+
linkType: 'OrderItem__Note',
|
|
640
|
+
relationType: param?.relationType,
|
|
641
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
public async removeOrderItemNotes(noteId: string, orderItemIds: string[]) {
|
|
649
|
+
|
|
650
|
+
const associationDtos = [];
|
|
651
|
+
for(const pk of orderItemIds){
|
|
652
|
+
associationDtos.push({
|
|
653
|
+
entity: 'OrderModule:OrderItem',
|
|
654
|
+
recordId: pk,
|
|
655
|
+
});
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
// Use this function when you want to return a single record
|
|
663
|
+
public async getTransactions(noteId: string) {
|
|
664
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Transaction');
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
public async addTransactionNotes(noteId: string, transactionIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
668
|
+
|
|
669
|
+
const associationDtos = [];
|
|
670
|
+
for(const param of transactionIds){
|
|
671
|
+
associationDtos.push({
|
|
672
|
+
entity: 'BillingModule:Transaction',
|
|
673
|
+
recordId: param.id,
|
|
674
|
+
linkType: 'Transaction__Note',
|
|
675
|
+
relationType: param?.relationType,
|
|
676
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
public async removeTransactionNotes(noteId: string, transactionIds: string[]) {
|
|
684
|
+
|
|
685
|
+
const associationDtos = [];
|
|
686
|
+
for(const pk of transactionIds){
|
|
687
|
+
associationDtos.push({
|
|
688
|
+
entity: 'BillingModule:Transaction',
|
|
689
|
+
recordId: pk,
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
|
|
693
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
// Use this function when you want to return a single record
|
|
698
|
+
public async getServiceAppointmentConfigs(noteId: string) {
|
|
699
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'ServiceAppointmentConfig');
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
public async addServiceAppointmentConfigNotes(noteId: string, serviceAppointmentConfigIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
703
|
+
|
|
704
|
+
const associationDtos = [];
|
|
705
|
+
for(const param of serviceAppointmentConfigIds){
|
|
706
|
+
associationDtos.push({
|
|
707
|
+
entity: 'FieldServiceModule:ServiceAppointmentConfig',
|
|
708
|
+
recordId: param.id,
|
|
709
|
+
linkType: 'ServiceAppointmentConfig__Note',
|
|
710
|
+
relationType: param?.relationType,
|
|
711
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
public async removeServiceAppointmentConfigNotes(noteId: string, serviceAppointmentConfigIds: string[]) {
|
|
719
|
+
|
|
720
|
+
const associationDtos = [];
|
|
721
|
+
for(const pk of serviceAppointmentConfigIds){
|
|
722
|
+
associationDtos.push({
|
|
723
|
+
entity: 'FieldServiceModule:ServiceAppointmentConfig',
|
|
724
|
+
recordId: pk,
|
|
725
|
+
});
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
|
|
732
|
+
// Use this function when you want to return a single record
|
|
733
|
+
public async getCommissions(noteId: string) {
|
|
734
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Commission');
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
public async addCommissionNotes(noteId: string, commissionIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
738
|
+
|
|
739
|
+
const associationDtos = [];
|
|
740
|
+
for(const param of commissionIds){
|
|
741
|
+
associationDtos.push({
|
|
742
|
+
entity: 'BillingModule:Commission',
|
|
743
|
+
recordId: param.id,
|
|
744
|
+
linkType: 'Commission__Note',
|
|
745
|
+
relationType: param?.relationType,
|
|
746
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
public async removeCommissionNotes(noteId: string, commissionIds: string[]) {
|
|
754
|
+
|
|
755
|
+
const associationDtos = [];
|
|
756
|
+
for(const pk of commissionIds){
|
|
757
|
+
associationDtos.push({
|
|
758
|
+
entity: 'BillingModule:Commission',
|
|
759
|
+
recordId: pk,
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
// Use this function when you want to return a single record
|
|
768
|
+
public async getInternalInstallAudits(noteId: string) {
|
|
769
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'InternalInstallAudit');
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
public async addInternalInstallAuditNotes(noteId: string, internalInstallAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
773
|
+
|
|
774
|
+
const associationDtos = [];
|
|
775
|
+
for(const param of internalInstallAuditIds){
|
|
776
|
+
associationDtos.push({
|
|
777
|
+
entity: 'FieldServiceModule:InternalInstallAudit',
|
|
778
|
+
recordId: param.id,
|
|
779
|
+
linkType: 'InternalInstallAudit_Note',
|
|
780
|
+
relationType: param?.relationType,
|
|
781
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
public async removeInternalInstallAuditNotes(noteId: string, internalInstallAuditIds: string[]) {
|
|
789
|
+
|
|
790
|
+
const associationDtos = [];
|
|
791
|
+
for(const pk of internalInstallAuditIds){
|
|
792
|
+
associationDtos.push({
|
|
793
|
+
entity: 'FieldServiceModule:InternalInstallAudit',
|
|
794
|
+
recordId: pk,
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
// Use this function when you want to return a single record
|
|
803
|
+
public async getChurnRequests(noteId: string) {
|
|
804
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'ChurnRequest');
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
public async addChurnRequestNotes(noteId: string, churnRequestIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
808
|
+
|
|
809
|
+
const associationDtos = [];
|
|
810
|
+
for(const param of churnRequestIds){
|
|
811
|
+
associationDtos.push({
|
|
812
|
+
entity: 'OrderModule:ChurnRequest',
|
|
813
|
+
recordId: param.id,
|
|
814
|
+
linkType: 'ChurnRequest__Note',
|
|
815
|
+
relationType: param?.relationType,
|
|
816
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
public async removeChurnRequestNotes(noteId: string, churnRequestIds: string[]) {
|
|
824
|
+
|
|
825
|
+
const associationDtos = [];
|
|
826
|
+
for(const pk of churnRequestIds){
|
|
827
|
+
associationDtos.push({
|
|
828
|
+
entity: 'OrderModule:ChurnRequest',
|
|
829
|
+
recordId: pk,
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
834
|
+
}
|
|
835
|
+
|
|
836
|
+
|
|
837
|
+
// Use this function when you want to return a single record
|
|
838
|
+
public async getPICRequests(noteId: string) {
|
|
839
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'PICRequest');
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
public async addPicRequestNotes(noteId: string, picRequestIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
843
|
+
|
|
844
|
+
const associationDtos = [];
|
|
845
|
+
for(const param of picRequestIds){
|
|
846
|
+
associationDtos.push({
|
|
847
|
+
entity: 'OrderModule:PICRequest',
|
|
848
|
+
recordId: param.id,
|
|
849
|
+
linkType: 'PICRequest__Note',
|
|
850
|
+
relationType: param?.relationType,
|
|
851
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
852
|
+
});
|
|
853
|
+
}
|
|
854
|
+
|
|
855
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
public async removePicRequestNotes(noteId: string, picRequestIds: string[]) {
|
|
859
|
+
|
|
860
|
+
const associationDtos = [];
|
|
861
|
+
for(const pk of picRequestIds){
|
|
862
|
+
associationDtos.push({
|
|
863
|
+
entity: 'OrderModule:PICRequest',
|
|
864
|
+
recordId: pk,
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
// Use this function when you want to return a single record
|
|
873
|
+
public async getAddresss(noteId: string) {
|
|
874
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Address');
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
public async addAddressNotes(noteId: string, addressIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
878
|
+
|
|
879
|
+
const associationDtos = [];
|
|
880
|
+
for(const param of addressIds){
|
|
881
|
+
associationDtos.push({
|
|
882
|
+
entity: 'CrmModule:Address',
|
|
883
|
+
recordId: param.id,
|
|
884
|
+
linkType: 'Address__Note',
|
|
885
|
+
relationType: param?.relationType,
|
|
886
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
887
|
+
});
|
|
888
|
+
}
|
|
889
|
+
|
|
890
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
public async removeAddressNotes(noteId: string, addressIds: string[]) {
|
|
894
|
+
|
|
895
|
+
const associationDtos = [];
|
|
896
|
+
for(const pk of addressIds){
|
|
897
|
+
associationDtos.push({
|
|
898
|
+
entity: 'CrmModule:Address',
|
|
899
|
+
recordId: pk,
|
|
900
|
+
});
|
|
901
|
+
}
|
|
902
|
+
|
|
903
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
|
|
907
|
+
// Use this function when you want to return a single record
|
|
908
|
+
public async getCreditNotes(noteId: string) {
|
|
909
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'CreditNote');
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
public async addCreditNoteNotes(noteId: string, creditNoteIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
913
|
+
|
|
914
|
+
const associationDtos = [];
|
|
915
|
+
for(const param of creditNoteIds){
|
|
916
|
+
associationDtos.push({
|
|
917
|
+
entity: 'BillingModule:CreditNote',
|
|
918
|
+
recordId: param.id,
|
|
919
|
+
linkType: 'CreditNote__Note',
|
|
920
|
+
relationType: param?.relationType,
|
|
921
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
926
|
+
}
|
|
927
|
+
|
|
928
|
+
public async removeCreditNoteNotes(noteId: string, creditNoteIds: string[]) {
|
|
929
|
+
|
|
930
|
+
const associationDtos = [];
|
|
931
|
+
for(const pk of creditNoteIds){
|
|
932
|
+
associationDtos.push({
|
|
933
|
+
entity: 'BillingModule:CreditNote',
|
|
934
|
+
recordId: pk,
|
|
935
|
+
});
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
// Use this function when you want to return a single record
|
|
943
|
+
public async getPaymentMethods(noteId: string) {
|
|
944
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'PaymentMethod');
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
public async addPaymentMethodNotes(noteId: string, paymentMethodIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
948
|
+
|
|
949
|
+
const associationDtos = [];
|
|
950
|
+
for(const param of paymentMethodIds){
|
|
951
|
+
associationDtos.push({
|
|
952
|
+
entity: 'BillingModule:PaymentMethod',
|
|
953
|
+
recordId: param.id,
|
|
954
|
+
linkType: 'PaymentMethod__Note',
|
|
955
|
+
relationType: param?.relationType,
|
|
956
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
957
|
+
});
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
public async removePaymentMethodNotes(noteId: string, paymentMethodIds: string[]) {
|
|
964
|
+
|
|
965
|
+
const associationDtos = [];
|
|
966
|
+
for(const pk of paymentMethodIds){
|
|
967
|
+
associationDtos.push({
|
|
968
|
+
entity: 'BillingModule:PaymentMethod',
|
|
969
|
+
recordId: pk,
|
|
970
|
+
});
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
|
|
977
|
+
// Use this function when you want to return a single record
|
|
978
|
+
public async getCustomerDeviceOnts(noteId: string) {
|
|
979
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'CustomerDeviceOnt');
|
|
980
|
+
}
|
|
981
|
+
|
|
982
|
+
public async addCustomerDeviceOntNotes(noteId: string, customerDeviceOntIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
983
|
+
|
|
984
|
+
const associationDtos = [];
|
|
985
|
+
for(const param of customerDeviceOntIds){
|
|
986
|
+
associationDtos.push({
|
|
987
|
+
entity: 'ServiceModule:CustomerDeviceOnt',
|
|
988
|
+
recordId: param.id,
|
|
989
|
+
linkType: 'CustomerDeviceOnt__Note',
|
|
990
|
+
relationType: param?.relationType,
|
|
991
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
public async removeCustomerDeviceOntNotes(noteId: string, customerDeviceOntIds: string[]) {
|
|
999
|
+
|
|
1000
|
+
const associationDtos = [];
|
|
1001
|
+
for(const pk of customerDeviceOntIds){
|
|
1002
|
+
associationDtos.push({
|
|
1003
|
+
entity: 'ServiceModule:CustomerDeviceOnt',
|
|
1004
|
+
recordId: pk,
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
// Use this function when you want to return a single record
|
|
1013
|
+
public async getChangeReasons(noteId: string) {
|
|
1014
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'ChangeReason');
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
public async addChangeReasonNotes(noteId: string, changeReasonIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1018
|
+
|
|
1019
|
+
const associationDtos = [];
|
|
1020
|
+
for(const param of changeReasonIds){
|
|
1021
|
+
associationDtos.push({
|
|
1022
|
+
entity: 'FieldServiceModule:ChangeReason',
|
|
1023
|
+
recordId: param.id,
|
|
1024
|
+
linkType: 'ChangeReason__Note',
|
|
1025
|
+
relationType: param?.relationType,
|
|
1026
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1031
|
+
}
|
|
1032
|
+
|
|
1033
|
+
public async removeChangeReasonNotes(noteId: string, changeReasonIds: string[]) {
|
|
1034
|
+
|
|
1035
|
+
const associationDtos = [];
|
|
1036
|
+
for(const pk of changeReasonIds){
|
|
1037
|
+
associationDtos.push({
|
|
1038
|
+
entity: 'FieldServiceModule:ChangeReason',
|
|
1039
|
+
recordId: pk,
|
|
1040
|
+
});
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
|
|
1047
|
+
// Use this function when you want to return a single record
|
|
1048
|
+
public async getPaymentMethodRefunds(noteId: string) {
|
|
1049
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'PaymentMethodRefund');
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
public async addPaymentMethodRefundNotes(noteId: string, paymentMethodRefundIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1053
|
+
|
|
1054
|
+
const associationDtos = [];
|
|
1055
|
+
for(const param of paymentMethodRefundIds){
|
|
1056
|
+
associationDtos.push({
|
|
1057
|
+
entity: 'BillingModule:PaymentMethodRefund',
|
|
1058
|
+
recordId: param.id,
|
|
1059
|
+
linkType: 'PaymentMethodRefund__Note',
|
|
1060
|
+
relationType: param?.relationType,
|
|
1061
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
public async removePaymentMethodRefundNotes(noteId: string, paymentMethodRefundIds: string[]) {
|
|
1069
|
+
|
|
1070
|
+
const associationDtos = [];
|
|
1071
|
+
for(const pk of paymentMethodRefundIds){
|
|
1072
|
+
associationDtos.push({
|
|
1073
|
+
entity: 'BillingModule:PaymentMethodRefund',
|
|
1074
|
+
recordId: pk,
|
|
1075
|
+
});
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
// Use this function when you want to return a single record
|
|
1083
|
+
public async getServiceAppointments(noteId: string) {
|
|
1084
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'ServiceAppointment');
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
public async addServiceAppointmentNotes(noteId: string, serviceAppointmentIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1088
|
+
|
|
1089
|
+
const associationDtos = [];
|
|
1090
|
+
for(const param of serviceAppointmentIds){
|
|
1091
|
+
associationDtos.push({
|
|
1092
|
+
entity: 'FieldServiceModule:ServiceAppointment',
|
|
1093
|
+
recordId: param.id,
|
|
1094
|
+
linkType: 'ServiceAppointment__Note',
|
|
1095
|
+
relationType: param?.relationType,
|
|
1096
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
public async removeServiceAppointmentNotes(noteId: string, serviceAppointmentIds: string[]) {
|
|
1104
|
+
|
|
1105
|
+
const associationDtos = [];
|
|
1106
|
+
for(const pk of serviceAppointmentIds){
|
|
1107
|
+
associationDtos.push({
|
|
1108
|
+
entity: 'FieldServiceModule:ServiceAppointment',
|
|
1109
|
+
recordId: pk,
|
|
1110
|
+
});
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
// Use this function when you want to return a single record
|
|
1118
|
+
public async getActivitys(noteId: string) {
|
|
1119
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Activity');
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
public async addActivityNotes(noteId: string, activityIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1123
|
+
|
|
1124
|
+
const associationDtos = [];
|
|
1125
|
+
for(const param of activityIds){
|
|
1126
|
+
associationDtos.push({
|
|
1127
|
+
entity: 'SchemaModule:Activity',
|
|
1128
|
+
recordId: param.id,
|
|
1129
|
+
linkType: 'Activity__Note',
|
|
1130
|
+
relationType: param?.relationType,
|
|
1131
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1132
|
+
});
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
public async removeActivityNotes(noteId: string, activityIds: string[]) {
|
|
1139
|
+
|
|
1140
|
+
const associationDtos = [];
|
|
1141
|
+
for(const pk of activityIds){
|
|
1142
|
+
associationDtos.push({
|
|
1143
|
+
entity: 'SchemaModule:Activity',
|
|
1144
|
+
recordId: pk,
|
|
1145
|
+
});
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
// Use this function when you want to return a single record
|
|
1153
|
+
public async getBillingRequests(noteId: string) {
|
|
1154
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'BillingRequest');
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
public async addBillingRequestNotes(noteId: string, billingRequestIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1158
|
+
|
|
1159
|
+
const associationDtos = [];
|
|
1160
|
+
for(const param of billingRequestIds){
|
|
1161
|
+
associationDtos.push({
|
|
1162
|
+
entity: 'BillingModule:BillingRequest',
|
|
1163
|
+
recordId: param.id,
|
|
1164
|
+
linkType: 'BillingRequest__Note',
|
|
1165
|
+
relationType: param?.relationType,
|
|
1166
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1167
|
+
});
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1171
|
+
}
|
|
1172
|
+
|
|
1173
|
+
public async removeBillingRequestNotes(noteId: string, billingRequestIds: string[]) {
|
|
1174
|
+
|
|
1175
|
+
const associationDtos = [];
|
|
1176
|
+
for(const pk of billingRequestIds){
|
|
1177
|
+
associationDtos.push({
|
|
1178
|
+
entity: 'BillingModule:BillingRequest',
|
|
1179
|
+
recordId: pk,
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
// Use this function when you want to return a single record
|
|
1188
|
+
public async getSupportTasks(noteId: string) {
|
|
1189
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'SupportTask');
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
public async addNoteSupportTasks(noteId: string, supportTaskIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1193
|
+
|
|
1194
|
+
const associationDtos = [];
|
|
1195
|
+
for(const param of supportTaskIds){
|
|
1196
|
+
associationDtos.push({
|
|
1197
|
+
entity: 'SupportModule:SupportTask',
|
|
1198
|
+
recordId: param.id,
|
|
1199
|
+
linkType: 'Note_SupportTask',
|
|
1200
|
+
relationType: param?.relationType,
|
|
1201
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1202
|
+
});
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
public async removeNoteSupportTasks(noteId: string, supportTaskIds: string[]) {
|
|
1209
|
+
|
|
1210
|
+
const associationDtos = [];
|
|
1211
|
+
for(const pk of supportTaskIds){
|
|
1212
|
+
associationDtos.push({
|
|
1213
|
+
entity: 'SupportModule:SupportTask',
|
|
1214
|
+
recordId: pk,
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
|
|
1222
|
+
// Use this function when you want to return a single record
|
|
1223
|
+
public async getNetomniaInstallVerifications(noteId: string) {
|
|
1224
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'NetomniaInstallVerification');
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
public async addNetomniaInstallVerificationNotes(noteId: string, netomniaInstallVerificationIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1228
|
+
|
|
1229
|
+
const associationDtos = [];
|
|
1230
|
+
for(const param of netomniaInstallVerificationIds){
|
|
1231
|
+
associationDtos.push({
|
|
1232
|
+
entity: 'FieldServiceModule:NetomniaInstallVerification',
|
|
1233
|
+
recordId: param.id,
|
|
1234
|
+
linkType: 'NetomniaInstallVerification__Note',
|
|
1235
|
+
relationType: param?.relationType,
|
|
1236
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
|
|
1240
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
public async removeNetomniaInstallVerificationNotes(noteId: string, netomniaInstallVerificationIds: string[]) {
|
|
1244
|
+
|
|
1245
|
+
const associationDtos = [];
|
|
1246
|
+
for(const pk of netomniaInstallVerificationIds){
|
|
1247
|
+
associationDtos.push({
|
|
1248
|
+
entity: 'FieldServiceModule:NetomniaInstallVerification',
|
|
1249
|
+
recordId: pk,
|
|
1250
|
+
});
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
|
|
1257
|
+
// Use this function when you want to return a single record
|
|
1258
|
+
public async getNetomniaFtthServiceVisitSheets(noteId: string) {
|
|
1259
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'NetomniaFtthServiceVisitSheet');
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
public async addNetomniaFtthServiceVisitSheetNotes(noteId: string, netomniaFtthServiceVisitSheetIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1263
|
+
|
|
1264
|
+
const associationDtos = [];
|
|
1265
|
+
for(const param of netomniaFtthServiceVisitSheetIds){
|
|
1266
|
+
associationDtos.push({
|
|
1267
|
+
entity: 'FieldServiceModule:NetomniaFtthServiceVisitSheet',
|
|
1268
|
+
recordId: param.id,
|
|
1269
|
+
linkType: 'NetomniaFtthServiceVisitSheet__Note',
|
|
1270
|
+
relationType: param?.relationType,
|
|
1271
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
|
|
1275
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
public async removeNetomniaFtthServiceVisitSheetNotes(noteId: string, netomniaFtthServiceVisitSheetIds: string[]) {
|
|
1279
|
+
|
|
1280
|
+
const associationDtos = [];
|
|
1281
|
+
for(const pk of netomniaFtthServiceVisitSheetIds){
|
|
1282
|
+
associationDtos.push({
|
|
1283
|
+
entity: 'FieldServiceModule:NetomniaFtthServiceVisitSheet',
|
|
1284
|
+
recordId: pk,
|
|
1285
|
+
});
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
|
|
1292
|
+
// Use this function when you want to return a single record
|
|
1293
|
+
public async getNetomniaFtth1StageInstallAudits(noteId: string) {
|
|
1294
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'NetomniaFtth1StageInstallAudit');
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
public async addNetomniaFtth1StageInstallAuditNotes(noteId: string, netomniaFtth1StageInstallAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1298
|
+
|
|
1299
|
+
const associationDtos = [];
|
|
1300
|
+
for(const param of netomniaFtth1StageInstallAuditIds){
|
|
1301
|
+
associationDtos.push({
|
|
1302
|
+
entity: 'FieldServiceModule:NetomniaFtth1StageInstallAudit',
|
|
1303
|
+
recordId: param.id,
|
|
1304
|
+
linkType: 'NetomniaFtth1StageInstallAudit__Note',
|
|
1305
|
+
relationType: param?.relationType,
|
|
1306
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
public async removeNetomniaFtth1StageInstallAuditNotes(noteId: string, netomniaFtth1StageInstallAuditIds: string[]) {
|
|
1314
|
+
|
|
1315
|
+
const associationDtos = [];
|
|
1316
|
+
for(const pk of netomniaFtth1StageInstallAuditIds){
|
|
1317
|
+
associationDtos.push({
|
|
1318
|
+
entity: 'FieldServiceModule:NetomniaFtth1StageInstallAudit',
|
|
1319
|
+
recordId: pk,
|
|
1320
|
+
});
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1324
|
+
}
|
|
1325
|
+
|
|
1326
|
+
|
|
1327
|
+
// Use this function when you want to return a single record
|
|
1328
|
+
public async getCustomerDeviceRouters(noteId: string) {
|
|
1329
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'CustomerDeviceRouter');
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
public async addCustomerDeviceRouterNotes(noteId: string, customerDeviceRouterIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1333
|
+
|
|
1334
|
+
const associationDtos = [];
|
|
1335
|
+
for(const param of customerDeviceRouterIds){
|
|
1336
|
+
associationDtos.push({
|
|
1337
|
+
entity: 'ServiceModule:CustomerDeviceRouter',
|
|
1338
|
+
recordId: param.id,
|
|
1339
|
+
linkType: 'CustomerDeviceRouter__Note',
|
|
1340
|
+
relationType: param?.relationType,
|
|
1341
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1342
|
+
});
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1345
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
public async removeCustomerDeviceRouterNotes(noteId: string, customerDeviceRouterIds: string[]) {
|
|
1349
|
+
|
|
1350
|
+
const associationDtos = [];
|
|
1351
|
+
for(const pk of customerDeviceRouterIds){
|
|
1352
|
+
associationDtos.push({
|
|
1353
|
+
entity: 'ServiceModule:CustomerDeviceRouter',
|
|
1354
|
+
recordId: pk,
|
|
1355
|
+
});
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
|
|
1362
|
+
// Use this function when you want to return a single record
|
|
1363
|
+
public async getVisits(noteId: string) {
|
|
1364
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Visit');
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
public async addVisitNotes(noteId: string, visitIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1368
|
+
|
|
1369
|
+
const associationDtos = [];
|
|
1370
|
+
for(const param of visitIds){
|
|
1371
|
+
associationDtos.push({
|
|
1372
|
+
entity: 'CrmModule:Visit',
|
|
1373
|
+
recordId: param.id,
|
|
1374
|
+
linkType: 'Visit__Note',
|
|
1375
|
+
relationType: param?.relationType,
|
|
1376
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1377
|
+
});
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
public async removeVisitNotes(noteId: string, visitIds: string[]) {
|
|
1384
|
+
|
|
1385
|
+
const associationDtos = [];
|
|
1386
|
+
for(const pk of visitIds){
|
|
1387
|
+
associationDtos.push({
|
|
1388
|
+
entity: 'CrmModule:Visit',
|
|
1389
|
+
recordId: pk,
|
|
1390
|
+
});
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
|
|
1397
|
+
// Use this function when you want to return a single record
|
|
1398
|
+
public async getCrmDatasets(noteId: string) {
|
|
1399
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'CrmDataset');
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
public async addCrmDatasetNotes(noteId: string, crmDatasetIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1403
|
+
|
|
1404
|
+
const associationDtos = [];
|
|
1405
|
+
for(const param of crmDatasetIds){
|
|
1406
|
+
associationDtos.push({
|
|
1407
|
+
entity: 'CrmModule:CrmDataset',
|
|
1408
|
+
recordId: param.id,
|
|
1409
|
+
linkType: 'CrmDataset__Note',
|
|
1410
|
+
relationType: param?.relationType,
|
|
1411
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1412
|
+
});
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
public async removeCrmDatasetNotes(noteId: string, crmDatasetIds: string[]) {
|
|
1419
|
+
|
|
1420
|
+
const associationDtos = [];
|
|
1421
|
+
for(const pk of crmDatasetIds){
|
|
1422
|
+
associationDtos.push({
|
|
1423
|
+
entity: 'CrmModule:CrmDataset',
|
|
1424
|
+
recordId: pk,
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
|
|
1428
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
|
|
1432
|
+
// Use this function when you want to return a single record
|
|
1433
|
+
public async getYfEquipmentCollections(noteId: string) {
|
|
1434
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'YfEquipmentCollection');
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
public async addYfEquipmentCollectionNotes(noteId: string, yfEquipmentCollectionIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1438
|
+
|
|
1439
|
+
const associationDtos = [];
|
|
1440
|
+
for(const param of yfEquipmentCollectionIds){
|
|
1441
|
+
associationDtos.push({
|
|
1442
|
+
entity: 'FieldServiceModule:YfEquipmentCollection',
|
|
1443
|
+
recordId: param.id,
|
|
1444
|
+
linkType: 'YfEquipmentCollection__Note',
|
|
1445
|
+
relationType: param?.relationType,
|
|
1446
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
public async removeYfEquipmentCollectionNotes(noteId: string, yfEquipmentCollectionIds: string[]) {
|
|
1454
|
+
|
|
1455
|
+
const associationDtos = [];
|
|
1456
|
+
for(const pk of yfEquipmentCollectionIds){
|
|
1457
|
+
associationDtos.push({
|
|
1458
|
+
entity: 'FieldServiceModule:YfEquipmentCollection',
|
|
1459
|
+
recordId: pk,
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
// Use this function when you want to return a single record
|
|
1468
|
+
public async getFingerprints(noteId: string) {
|
|
1469
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Fingerprint');
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
public async addFingerprintNotes(noteId: string, fingerprintIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1473
|
+
|
|
1474
|
+
const associationDtos = [];
|
|
1475
|
+
for(const param of fingerprintIds){
|
|
1476
|
+
associationDtos.push({
|
|
1477
|
+
entity: 'CrmModule:Fingerprint',
|
|
1478
|
+
recordId: param.id,
|
|
1479
|
+
linkType: 'Fingerprint__Note',
|
|
1480
|
+
relationType: param?.relationType,
|
|
1481
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1482
|
+
});
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
public async removeFingerprintNotes(noteId: string, fingerprintIds: string[]) {
|
|
1489
|
+
|
|
1490
|
+
const associationDtos = [];
|
|
1491
|
+
for(const pk of fingerprintIds){
|
|
1492
|
+
associationDtos.push({
|
|
1493
|
+
entity: 'CrmModule:Fingerprint',
|
|
1494
|
+
recordId: pk,
|
|
1495
|
+
});
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
|
|
1502
|
+
// Use this function when you want to return a single record
|
|
1503
|
+
public async getYfFieldServiceVisits(noteId: string) {
|
|
1504
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'YfFieldServiceVisit');
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
public async addYfFieldServiceVisitNotes(noteId: string, yfFieldServiceVisitIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1508
|
+
|
|
1509
|
+
const associationDtos = [];
|
|
1510
|
+
for(const param of yfFieldServiceVisitIds){
|
|
1511
|
+
associationDtos.push({
|
|
1512
|
+
entity: 'FieldServiceModule:YfFieldServiceVisit',
|
|
1513
|
+
recordId: param.id,
|
|
1514
|
+
linkType: 'YfFieldServiceVisit__Note',
|
|
1515
|
+
relationType: param?.relationType,
|
|
1516
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1517
|
+
});
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
public async removeYfFieldServiceVisitNotes(noteId: string, yfFieldServiceVisitIds: string[]) {
|
|
1524
|
+
|
|
1525
|
+
const associationDtos = [];
|
|
1526
|
+
for(const pk of yfFieldServiceVisitIds){
|
|
1527
|
+
associationDtos.push({
|
|
1528
|
+
entity: 'FieldServiceModule:YfFieldServiceVisit',
|
|
1529
|
+
recordId: pk,
|
|
1530
|
+
});
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1534
|
+
}
|
|
1535
|
+
|
|
1536
|
+
|
|
1537
|
+
// Use this function when you want to return a single record
|
|
1538
|
+
public async getRemediationRequiredReasons(noteId: string) {
|
|
1539
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'RemediationRequiredReason');
|
|
1540
|
+
}
|
|
1541
|
+
|
|
1542
|
+
public async addRemediationRequiredReasonNotes(noteId: string, remediationRequiredReasonIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1543
|
+
|
|
1544
|
+
const associationDtos = [];
|
|
1545
|
+
for(const param of remediationRequiredReasonIds){
|
|
1546
|
+
associationDtos.push({
|
|
1547
|
+
entity: 'FieldServiceModule:RemediationRequiredReason',
|
|
1548
|
+
recordId: param.id,
|
|
1549
|
+
linkType: 'RemediationRequiredReason__Note',
|
|
1550
|
+
relationType: param?.relationType,
|
|
1551
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1552
|
+
});
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
public async removeRemediationRequiredReasonNotes(noteId: string, remediationRequiredReasonIds: string[]) {
|
|
1559
|
+
|
|
1560
|
+
const associationDtos = [];
|
|
1561
|
+
for(const pk of remediationRequiredReasonIds){
|
|
1562
|
+
associationDtos.push({
|
|
1563
|
+
entity: 'FieldServiceModule:RemediationRequiredReason',
|
|
1564
|
+
recordId: pk,
|
|
1565
|
+
});
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1569
|
+
}
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
// Use this function when you want to return a single record
|
|
1573
|
+
public async getDeactivationApprovals(noteId: string) {
|
|
1574
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'DeactivationApproval');
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1577
|
+
public async addDeactivationApprovalNotes(noteId: string, deactivationApprovalIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1578
|
+
|
|
1579
|
+
const associationDtos = [];
|
|
1580
|
+
for(const param of deactivationApprovalIds){
|
|
1581
|
+
associationDtos.push({
|
|
1582
|
+
entity: 'OrderModule:DeactivationApproval',
|
|
1583
|
+
recordId: param.id,
|
|
1584
|
+
linkType: 'DeactivationApproval__Note',
|
|
1585
|
+
relationType: param?.relationType,
|
|
1586
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1587
|
+
});
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
public async removeDeactivationApprovalNotes(noteId: string, deactivationApprovalIds: string[]) {
|
|
1594
|
+
|
|
1595
|
+
const associationDtos = [];
|
|
1596
|
+
for(const pk of deactivationApprovalIds){
|
|
1597
|
+
associationDtos.push({
|
|
1598
|
+
entity: 'OrderModule:DeactivationApproval',
|
|
1599
|
+
recordId: pk,
|
|
1600
|
+
});
|
|
1601
|
+
}
|
|
1602
|
+
|
|
1603
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
// Use this function when you want to return a single record
|
|
1608
|
+
public async getOrderRemediationTasks(noteId: string) {
|
|
1609
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'OrderRemediationTask');
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
public async addOrderRemediationTaskNotes(noteId: string, orderRemediationTaskIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1613
|
+
|
|
1614
|
+
const associationDtos = [];
|
|
1615
|
+
for(const param of orderRemediationTaskIds){
|
|
1616
|
+
associationDtos.push({
|
|
1617
|
+
entity: 'OrderModule:OrderRemediationTask',
|
|
1618
|
+
recordId: param.id,
|
|
1619
|
+
linkType: 'OrderRemediationTask__Note',
|
|
1620
|
+
relationType: param?.relationType,
|
|
1621
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1622
|
+
});
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1626
|
+
}
|
|
1627
|
+
|
|
1628
|
+
public async removeOrderRemediationTaskNotes(noteId: string, orderRemediationTaskIds: string[]) {
|
|
1629
|
+
|
|
1630
|
+
const associationDtos = [];
|
|
1631
|
+
for(const pk of orderRemediationTaskIds){
|
|
1632
|
+
associationDtos.push({
|
|
1633
|
+
entity: 'OrderModule:OrderRemediationTask',
|
|
1634
|
+
recordId: pk,
|
|
1635
|
+
});
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
|
|
1642
|
+
// Use this function when you want to return a single record
|
|
1643
|
+
public async getCases(noteId: string) {
|
|
1644
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Case');
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
public async addCaseNotes(noteId: string, caseIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1648
|
+
|
|
1649
|
+
const associationDtos = [];
|
|
1650
|
+
for(const param of caseIds){
|
|
1651
|
+
associationDtos.push({
|
|
1652
|
+
entity: 'SupportModule:Case',
|
|
1653
|
+
recordId: param.id,
|
|
1654
|
+
linkType: 'Case__Note',
|
|
1655
|
+
relationType: param?.relationType,
|
|
1656
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1657
|
+
});
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1660
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
public async removeCaseNotes(noteId: string, caseIds: string[]) {
|
|
1664
|
+
|
|
1665
|
+
const associationDtos = [];
|
|
1666
|
+
for(const pk of caseIds){
|
|
1667
|
+
associationDtos.push({
|
|
1668
|
+
entity: 'SupportModule:Case',
|
|
1669
|
+
recordId: pk,
|
|
1670
|
+
});
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
// Use this function when you want to return a single record
|
|
1678
|
+
public async getSmsMessages(noteId: string) {
|
|
1679
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'SmsMessage');
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
public async addSmsMessageNotes(noteId: string, smsMessageIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1683
|
+
|
|
1684
|
+
const associationDtos = [];
|
|
1685
|
+
for(const param of smsMessageIds){
|
|
1686
|
+
associationDtos.push({
|
|
1687
|
+
entity: 'NotificationModule:SmsMessage',
|
|
1688
|
+
recordId: param.id,
|
|
1689
|
+
linkType: 'SmsMessage__Note',
|
|
1690
|
+
relationType: param?.relationType,
|
|
1691
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1692
|
+
});
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
public async removeSmsMessageNotes(noteId: string, smsMessageIds: string[]) {
|
|
1699
|
+
|
|
1700
|
+
const associationDtos = [];
|
|
1701
|
+
for(const pk of smsMessageIds){
|
|
1702
|
+
associationDtos.push({
|
|
1703
|
+
entity: 'NotificationModule:SmsMessage',
|
|
1704
|
+
recordId: pk,
|
|
1705
|
+
});
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1709
|
+
}
|
|
1710
|
+
|
|
1711
|
+
|
|
1712
|
+
// Use this function when you want to return a single record
|
|
1713
|
+
public async getNotes(noteId: string) {
|
|
1714
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'Note');
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
public async addNoteNotes(noteId: string, noteIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1718
|
+
|
|
1719
|
+
const associationDtos = [];
|
|
1720
|
+
for(const param of noteIds){
|
|
1721
|
+
associationDtos.push({
|
|
1722
|
+
entity: 'SupportModule:Note',
|
|
1723
|
+
recordId: param.id,
|
|
1724
|
+
linkType: 'Note__Note',
|
|
1725
|
+
relationType: param?.relationType,
|
|
1726
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1729
|
+
|
|
1730
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
public async removeNoteNotes(noteId: string, noteIds: string[]) {
|
|
1734
|
+
|
|
1735
|
+
const associationDtos = [];
|
|
1736
|
+
for(const pk of noteIds){
|
|
1737
|
+
associationDtos.push({
|
|
1738
|
+
entity: 'SupportModule:Note',
|
|
1739
|
+
recordId: pk,
|
|
1740
|
+
});
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
// Use this function when you want to return a single record
|
|
1748
|
+
public async getSweeperMaintenanceAudits(noteId: string) {
|
|
1749
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'SweeperMaintenanceAudit');
|
|
1750
|
+
}
|
|
1751
|
+
|
|
1752
|
+
public async addSweeperMaintenanceAuditNotes(noteId: string, sweeperMaintenanceAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1753
|
+
|
|
1754
|
+
const associationDtos = [];
|
|
1755
|
+
for(const param of sweeperMaintenanceAuditIds){
|
|
1756
|
+
associationDtos.push({
|
|
1757
|
+
entity: 'FieldServiceModule:SweeperMaintenanceAudit',
|
|
1758
|
+
recordId: param.id,
|
|
1759
|
+
linkType: 'SweeperMaintenanceAudit__Note',
|
|
1760
|
+
relationType: param?.relationType,
|
|
1761
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1762
|
+
});
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
public async removeSweeperMaintenanceAuditNotes(noteId: string, sweeperMaintenanceAuditIds: string[]) {
|
|
1769
|
+
|
|
1770
|
+
const associationDtos = [];
|
|
1771
|
+
for(const pk of sweeperMaintenanceAuditIds){
|
|
1772
|
+
associationDtos.push({
|
|
1773
|
+
entity: 'FieldServiceModule:SweeperMaintenanceAudit',
|
|
1774
|
+
recordId: pk,
|
|
1775
|
+
});
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
|
|
1782
|
+
// Use this function when you want to return a single record
|
|
1783
|
+
public async getBlockageReportA55s(noteId: string) {
|
|
1784
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'BlockageReportA55');
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
public async addBlockageReportA55Notes(noteId: string, blockageReportA55Ids: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1788
|
+
|
|
1789
|
+
const associationDtos = [];
|
|
1790
|
+
for(const param of blockageReportA55Ids){
|
|
1791
|
+
associationDtos.push({
|
|
1792
|
+
entity: 'FieldServiceModule:BlockageReportA55',
|
|
1793
|
+
recordId: param.id,
|
|
1794
|
+
linkType: 'BlockageReportA55__Note',
|
|
1795
|
+
relationType: param?.relationType,
|
|
1796
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1797
|
+
});
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
public async removeBlockageReportA55Notes(noteId: string, blockageReportA55Ids: string[]) {
|
|
1804
|
+
|
|
1805
|
+
const associationDtos = [];
|
|
1806
|
+
for(const pk of blockageReportA55Ids){
|
|
1807
|
+
associationDtos.push({
|
|
1808
|
+
entity: 'FieldServiceModule:BlockageReportA55',
|
|
1809
|
+
recordId: pk,
|
|
1810
|
+
});
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
|
|
1817
|
+
// Use this function when you want to return a single record
|
|
1818
|
+
public async getUgInstallationAudits(noteId: string) {
|
|
1819
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'UgInstallationAudit');
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
public async addUgInstallationAuditNotes(noteId: string, ugInstallationAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1823
|
+
|
|
1824
|
+
const associationDtos = [];
|
|
1825
|
+
for(const param of ugInstallationAuditIds){
|
|
1826
|
+
associationDtos.push({
|
|
1827
|
+
entity: 'FieldServiceModule:UgInstallationAudit',
|
|
1828
|
+
recordId: param.id,
|
|
1829
|
+
linkType: 'UgInstallationAudit__Note',
|
|
1830
|
+
relationType: param?.relationType,
|
|
1831
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
public async removeUgInstallationAuditNotes(noteId: string, ugInstallationAuditIds: string[]) {
|
|
1839
|
+
|
|
1840
|
+
const associationDtos = [];
|
|
1841
|
+
for(const pk of ugInstallationAuditIds){
|
|
1842
|
+
associationDtos.push({
|
|
1843
|
+
entity: 'FieldServiceModule:UgInstallationAudit',
|
|
1844
|
+
recordId: pk,
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
|
|
1848
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
// Use this function when you want to return a single record
|
|
1853
|
+
public async getOhInstallationAudits(noteId: string) {
|
|
1854
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'OhInstallationAudit');
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1857
|
+
public async addOhInstallationAuditNotes(noteId: string, ohInstallationAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1858
|
+
|
|
1859
|
+
const associationDtos = [];
|
|
1860
|
+
for(const param of ohInstallationAuditIds){
|
|
1861
|
+
associationDtos.push({
|
|
1862
|
+
entity: 'FieldServiceModule:OhInstallationAudit',
|
|
1863
|
+
recordId: param.id,
|
|
1864
|
+
linkType: 'OhInstallationAudit__Note',
|
|
1865
|
+
relationType: param?.relationType,
|
|
1866
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1867
|
+
});
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
public async removeOhInstallationAuditNotes(noteId: string, ohInstallationAuditIds: string[]) {
|
|
1874
|
+
|
|
1875
|
+
const associationDtos = [];
|
|
1876
|
+
for(const pk of ohInstallationAuditIds){
|
|
1877
|
+
associationDtos.push({
|
|
1878
|
+
entity: 'FieldServiceModule:OhInstallationAudit',
|
|
1879
|
+
recordId: pk,
|
|
1880
|
+
});
|
|
1881
|
+
}
|
|
1882
|
+
|
|
1883
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
|
|
1887
|
+
// Use this function when you want to return a single record
|
|
1888
|
+
public async getServiceVisitAudits(noteId: string) {
|
|
1889
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'ServiceVisitAudit');
|
|
1890
|
+
}
|
|
1891
|
+
|
|
1892
|
+
public async addServiceVisitAuditNotes(noteId: string, serviceVisitAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1893
|
+
|
|
1894
|
+
const associationDtos = [];
|
|
1895
|
+
for(const param of serviceVisitAuditIds){
|
|
1896
|
+
associationDtos.push({
|
|
1897
|
+
entity: 'FieldServiceModule:ServiceVisitAudit',
|
|
1898
|
+
recordId: param.id,
|
|
1899
|
+
linkType: 'ServiceVisitAudit__Note',
|
|
1900
|
+
relationType: param?.relationType,
|
|
1901
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
|
|
1905
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1906
|
+
}
|
|
1907
|
+
|
|
1908
|
+
public async removeServiceVisitAuditNotes(noteId: string, serviceVisitAuditIds: string[]) {
|
|
1909
|
+
|
|
1910
|
+
const associationDtos = [];
|
|
1911
|
+
for(const pk of serviceVisitAuditIds){
|
|
1912
|
+
associationDtos.push({
|
|
1913
|
+
entity: 'FieldServiceModule:ServiceVisitAudit',
|
|
1914
|
+
recordId: pk,
|
|
1915
|
+
});
|
|
1916
|
+
}
|
|
1917
|
+
|
|
1918
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
|
|
1922
|
+
// Use this function when you want to return a single record
|
|
1923
|
+
public async getOhAuditOfInstallations(noteId: string) {
|
|
1924
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'OhAuditOfInstallation');
|
|
1925
|
+
}
|
|
1926
|
+
|
|
1927
|
+
public async addOhAuditOfInstallationNotes(noteId: string, ohAuditOfInstallationIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1928
|
+
|
|
1929
|
+
const associationDtos = [];
|
|
1930
|
+
for(const param of ohAuditOfInstallationIds){
|
|
1931
|
+
associationDtos.push({
|
|
1932
|
+
entity: 'FieldServiceModule:OhAuditOfInstallation',
|
|
1933
|
+
recordId: param.id,
|
|
1934
|
+
linkType: 'OhAuditOfInstallation__Note',
|
|
1935
|
+
relationType: param?.relationType,
|
|
1936
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
|
|
1940
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
public async removeOhAuditOfInstallationNotes(noteId: string, ohAuditOfInstallationIds: string[]) {
|
|
1944
|
+
|
|
1945
|
+
const associationDtos = [];
|
|
1946
|
+
for(const pk of ohAuditOfInstallationIds){
|
|
1947
|
+
associationDtos.push({
|
|
1948
|
+
entity: 'FieldServiceModule:OhAuditOfInstallation',
|
|
1949
|
+
recordId: pk,
|
|
1950
|
+
});
|
|
1951
|
+
}
|
|
1952
|
+
|
|
1953
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
|
|
1957
|
+
// Use this function when you want to return a single record
|
|
1958
|
+
public async getUgAuditOfInstallations(noteId: string) {
|
|
1959
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'UgAuditOfInstallation');
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
public async addUgAuditOfInstallationNotes(noteId: string, ugAuditOfInstallationIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1963
|
+
|
|
1964
|
+
const associationDtos = [];
|
|
1965
|
+
for(const param of ugAuditOfInstallationIds){
|
|
1966
|
+
associationDtos.push({
|
|
1967
|
+
entity: 'FieldServiceModule:UgAuditOfInstallation',
|
|
1968
|
+
recordId: param.id,
|
|
1969
|
+
linkType: 'UgAuditOfInstallation__Note',
|
|
1970
|
+
relationType: param?.relationType,
|
|
1971
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
|
|
1975
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
public async removeUgAuditOfInstallationNotes(noteId: string, ugAuditOfInstallationIds: string[]) {
|
|
1979
|
+
|
|
1980
|
+
const associationDtos = [];
|
|
1981
|
+
for(const pk of ugAuditOfInstallationIds){
|
|
1982
|
+
associationDtos.push({
|
|
1983
|
+
entity: 'FieldServiceModule:UgAuditOfInstallation',
|
|
1984
|
+
recordId: pk,
|
|
1985
|
+
});
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
1989
|
+
}
|
|
1990
|
+
|
|
1991
|
+
|
|
1992
|
+
// Use this function when you want to return a single record
|
|
1993
|
+
public async getUgInProgressAudits(noteId: string) {
|
|
1994
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'UgInProgressAudit');
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
public async addUgInProgressAuditNotes(noteId: string, ugInProgressAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
1998
|
+
|
|
1999
|
+
const associationDtos = [];
|
|
2000
|
+
for(const param of ugInProgressAuditIds){
|
|
2001
|
+
associationDtos.push({
|
|
2002
|
+
entity: 'FieldServiceModule:UgInProgressAudit',
|
|
2003
|
+
recordId: param.id,
|
|
2004
|
+
linkType: 'UgInProgressAudit_Note',
|
|
2005
|
+
relationType: param?.relationType,
|
|
2006
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
2007
|
+
});
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
2011
|
+
}
|
|
2012
|
+
|
|
2013
|
+
public async removeUgInProgressAuditNotes(noteId: string, ugInProgressAuditIds: string[]) {
|
|
2014
|
+
|
|
2015
|
+
const associationDtos = [];
|
|
2016
|
+
for(const pk of ugInProgressAuditIds){
|
|
2017
|
+
associationDtos.push({
|
|
2018
|
+
entity: 'FieldServiceModule:UgInProgressAudit',
|
|
2019
|
+
recordId: pk,
|
|
2020
|
+
});
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
2024
|
+
}
|
|
2025
|
+
|
|
2026
|
+
|
|
2027
|
+
// Use this function when you want to return a single record
|
|
2028
|
+
public async getOhInProgressAudits(noteId: string) {
|
|
2029
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'OhInProgressAudit');
|
|
2030
|
+
}
|
|
2031
|
+
|
|
2032
|
+
public async addOhInProgressAuditNotes(noteId: string, ohInProgressAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
2033
|
+
|
|
2034
|
+
const associationDtos = [];
|
|
2035
|
+
for(const param of ohInProgressAuditIds){
|
|
2036
|
+
associationDtos.push({
|
|
2037
|
+
entity: 'FieldServiceModule:OhInProgressAudit',
|
|
2038
|
+
recordId: param.id,
|
|
2039
|
+
linkType: 'OhInProgressAudit_Note',
|
|
2040
|
+
relationType: param?.relationType,
|
|
2041
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
2042
|
+
});
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
2046
|
+
}
|
|
2047
|
+
|
|
2048
|
+
public async removeOhInProgressAuditNotes(noteId: string, ohInProgressAuditIds: string[]) {
|
|
2049
|
+
|
|
2050
|
+
const associationDtos = [];
|
|
2051
|
+
for(const pk of ohInProgressAuditIds){
|
|
2052
|
+
associationDtos.push({
|
|
2053
|
+
entity: 'FieldServiceModule:OhInProgressAudit',
|
|
2054
|
+
recordId: pk,
|
|
2055
|
+
});
|
|
2056
|
+
}
|
|
2057
|
+
|
|
2058
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
2059
|
+
}
|
|
2060
|
+
|
|
2061
|
+
|
|
2062
|
+
// Use this function when you want to return a single record
|
|
2063
|
+
public async getOverlayRealA55s(noteId: string) {
|
|
2064
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'OverlayRealA55');
|
|
2065
|
+
}
|
|
2066
|
+
|
|
2067
|
+
public async addOverlayRealA55Notes(noteId: string, overlayRealA55Ids: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
2068
|
+
|
|
2069
|
+
const associationDtos = [];
|
|
2070
|
+
for(const param of overlayRealA55Ids){
|
|
2071
|
+
associationDtos.push({
|
|
2072
|
+
entity: 'FieldServiceModule:OverlayRealA55',
|
|
2073
|
+
recordId: param.id,
|
|
2074
|
+
linkType: 'OverlayRealA55_Note',
|
|
2075
|
+
relationType: param?.relationType,
|
|
2076
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
2077
|
+
});
|
|
2078
|
+
}
|
|
2079
|
+
|
|
2080
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
public async removeOverlayRealA55Notes(noteId: string, overlayRealA55Ids: string[]) {
|
|
2084
|
+
|
|
2085
|
+
const associationDtos = [];
|
|
2086
|
+
for(const pk of overlayRealA55Ids){
|
|
2087
|
+
associationDtos.push({
|
|
2088
|
+
entity: 'FieldServiceModule:OverlayRealA55',
|
|
2089
|
+
recordId: pk,
|
|
2090
|
+
});
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
2094
|
+
}
|
|
2095
|
+
|
|
2096
|
+
|
|
2097
|
+
// Use this function when you want to return a single record
|
|
2098
|
+
public async getOhExternalAudits(noteId: string) {
|
|
2099
|
+
return await this._getLinks(this.moduleName, this.entityName, noteId, 'OhExternalAudit');
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
public async addOhExternalAuditNotes(noteId: string, ohExternalAuditIds: {id: string, relationType?: RelationTypeEnum, relatedAssociationId?: string}[]) {
|
|
2103
|
+
|
|
2104
|
+
const associationDtos = [];
|
|
2105
|
+
for(const param of ohExternalAuditIds){
|
|
2106
|
+
associationDtos.push({
|
|
2107
|
+
entity: 'FieldServiceModule:OhExternalAudit',
|
|
2108
|
+
recordId: param.id,
|
|
2109
|
+
linkType: 'OhExternalAudit_Note',
|
|
2110
|
+
relationType: param?.relationType,
|
|
2111
|
+
relatedAssociationId: param?.relatedAssociationId
|
|
2112
|
+
});
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
return await this._createLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
2116
|
+
}
|
|
2117
|
+
|
|
2118
|
+
public async removeOhExternalAuditNotes(noteId: string, ohExternalAuditIds: string[]) {
|
|
2119
|
+
|
|
2120
|
+
const associationDtos = [];
|
|
2121
|
+
for(const pk of ohExternalAuditIds){
|
|
2122
|
+
associationDtos.push({
|
|
2123
|
+
entity: 'FieldServiceModule:OhExternalAudit',
|
|
2124
|
+
recordId: pk,
|
|
2125
|
+
});
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
return await this._deleteLinks(this.moduleName, this.entityName, noteId, associationDtos);
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
|
|
2132
|
+
}
|