@d19n/youfibre-odin-sdk 2.0.30 → 2.0.31
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 +13 -2
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/ContactIdentityAccessor.d.ts +111 -0
- package/dist/accessors-v2/ContactIdentityAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +5 -3
- package/dist/actions-v2/BillingAdjustmentCreateDto.d.ts +8 -1
- package/dist/actions-v2/CompleteChurnRequestDto.d.ts +15 -5
- package/dist/actions-v2/CompleteChurnRequestFlowDto.d.ts +15 -5
- package/dist/actions-v2/CreateAuddisPgReportAllocationDto.d.ts +88 -0
- package/dist/actions-v2/CreateAuddisPgReportAllocationDto.js +59 -0
- package/dist/actions-v2/CreateBacsPgReportAllocationDto.d.ts +88 -0
- package/dist/actions-v2/CreateBacsPgReportAllocationDto.js +59 -0
- package/dist/actions-v2/CreateBrskMigrationErrorDto.d.ts +10 -3
- package/dist/actions-v2/CreateBrskMigrationErrorDto.js +11 -4
- package/dist/actions-v2/CreateCaseDto.d.ts +3 -4
- package/dist/actions-v2/CreateCaseFromCasesDto.d.ts +4 -6
- package/dist/actions-v2/CreateCaseFromContactDto.d.ts +3 -4
- package/dist/actions-v2/CreatePgContactDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgPaymentMethodDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgTransactionChargeDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgTransactionRefundDto.d.ts +9 -1
- package/dist/actions-v2/EditCaseFormDto.d.ts +8 -1
- package/dist/actions-v2/MovePgWebhookToSentDto.d.ts +70 -0
- package/dist/actions-v2/MovePgWebhookToSentDto.js +62 -0
- package/dist/actions-v2/UpdateBngProvisionDto.d.ts +0 -14
- package/dist/actions-v2/UpdateContactIdentityDto.d.ts +79 -0
- package/dist/actions-v2/UpdateContactIdentityDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerDeviceOntDto.d.ts +22 -1
- package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.d.ts +77 -0
- package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.js +61 -0
- package/dist/actions-v2/UpdatePaymentMethodDto.d.ts +17 -14
- package/dist/actions-v2/UpdatePaymentMethodDto.js +4 -6
- package/dist/actions-v2/UpdatePgContactDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgPaymentMethodDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgTransactionChargeDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgTransactionRefundDto.d.ts +8 -1
- package/dist/api-sdk-v2/ContactApi.d.ts +2 -0
- package/dist/api-sdk-v2/ContactApi.js +6 -0
- package/dist/api-sdk-v2/PaymentMethodApi.d.ts +2 -0
- package/dist/api-sdk-v2/PaymentMethodApi.js +6 -0
- package/dist/api-sdk-v2/PaymentMethodRefundApi.d.ts +2 -0
- package/dist/api-sdk-v2/PaymentMethodRefundApi.js +6 -0
- package/dist/api-sdk-v2/PgContactApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgContactApi.js +6 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.js +6 -0
- package/dist/api-sdk-v2/PgTransactionApi.d.ts +4 -0
- package/dist/api-sdk-v2/PgTransactionApi.js +12 -0
- package/dist/api-sdk-v2/TransactionApi.d.ts +2 -0
- package/dist/api-sdk-v2/TransactionApi.js +6 -0
- package/dist/db-accessors-v2/ContactIdentityDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/ContactIdentityDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +5 -3
- package/dist/db-sdk-v2/ContactDb.d.ts +2 -0
- package/dist/db-sdk-v2/ContactDb.js +6 -0
- package/dist/db-sdk-v2/PaymentMethodDb.d.ts +2 -0
- package/dist/db-sdk-v2/PaymentMethodDb.js +6 -0
- package/dist/db-sdk-v2/PaymentMethodRefundDb.d.ts +2 -0
- package/dist/db-sdk-v2/PaymentMethodRefundDb.js +6 -0
- package/dist/db-sdk-v2/PgContactDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgContactDb.js +6 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.js +6 -0
- package/dist/db-sdk-v2/PgTransactionDb.d.ts +4 -0
- package/dist/db-sdk-v2/PgTransactionDb.js +12 -0
- package/dist/db-sdk-v2/TransactionDb.d.ts +2 -0
- package/dist/db-sdk-v2/TransactionDb.js +6 -0
- package/dist/entities-v2/BillingAdjustment.d.ts +77 -70
- package/dist/entities-v2/BillingAdjustment.js +35 -33
- package/dist/entities-v2/BngProvision.d.ts +0 -14
- package/dist/entities-v2/BngProvision.js +0 -4
- package/dist/entities-v2/BrskEntityMigrationError.d.ts +14 -14
- package/dist/entities-v2/BrskEntityMigrationError.js +4 -4
- package/dist/entities-v2/Case.d.ts +12 -0
- package/dist/entities-v2/Case.js +2 -0
- package/dist/entities-v2/ChurnRequest.d.ts +8 -1
- package/dist/entities-v2/ChurnRequest.js +2 -0
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +4 -4
- package/dist/entities-v2/Contact.d.ts +3 -0
- package/dist/entities-v2/Conversation.d.ts +0 -2
- package/dist/entities-v2/Conversation.js +0 -2
- package/dist/entities-v2/CustomerDeviceOnt.d.ts +8 -1
- package/dist/entities-v2/CustomerDeviceOnt.js +2 -0
- package/dist/entities-v2/Order.d.ts +21 -0
- package/dist/entities-v2/Order.js +6 -0
- package/dist/entities-v2/PaymentMethod.d.ts +6 -1
- package/dist/entities-v2/PaymentMethod.js +2 -0
- package/dist/entities-v2/PaymentMethodRefund.d.ts +3 -0
- package/dist/entities-v2/PgContact.d.ts +14 -0
- package/dist/entities-v2/PgContact.js +7 -1
- package/dist/entities-v2/PgFileAllocation.d.ts +17 -17
- package/dist/entities-v2/PgFileAllocation.js +2 -2
- package/dist/entities-v2/PgPaymentMethod.d.ts +14 -0
- package/dist/entities-v2/PgPaymentMethod.js +7 -1
- package/dist/entities-v2/PgTransaction.d.ts +48 -0
- package/dist/entities-v2/PgTransaction.js +13 -1
- package/dist/entities-v2/PgWebhook.d.ts +19 -3
- package/dist/entities-v2/PgWebhook.js +17 -1
- package/dist/entities-v2/PriceBook.d.ts +8 -8
- package/dist/entities-v2/PriceBook.js +2 -2
- package/dist/entities-v2/Referral.d.ts +1 -1
- package/dist/entities-v2/Referral.js +1 -1
- package/dist/entities-v2/Reward.d.ts +1 -1
- package/dist/entities-v2/Reward.js +1 -1
- package/dist/entities-v2/Service.d.ts +28 -20
- package/dist/entities-v2/Service.js +23 -15
- package/dist/entities-v2/Transaction.d.ts +6 -1
- package/dist/entities-v2/Transaction.js +2 -0
- package/dist/entities-v2/VoiceConfiguration.d.ts +8 -1
- package/dist/entities-v2/VoiceConfiguration.js +2 -0
- package/dist/entities-v2/WorkOrder.d.ts +3 -2
- package/dist/entities-v2/WorkOrder.js +3 -2
- package/dist/records-v2/AccountCreditRecord.d.ts +1 -82
- package/dist/records-v2/AccountCreditRecord.js +0 -124
- package/dist/records-v2/AccountRecord.d.ts +2 -306
- package/dist/records-v2/AccountRecord.js +0 -451
- package/dist/records-v2/ActivityLogRecord.d.ts +1 -122
- package/dist/records-v2/ActivityLogRecord.js +0 -190
- package/dist/records-v2/ActivityRecord.d.ts +2 -255
- package/dist/records-v2/ActivityRecord.js +0 -387
- package/dist/records-v2/AddressRecord.d.ts +0 -321
- package/dist/records-v2/AddressRecord.js +0 -532
- package/dist/records-v2/AffiliateCodeRecord.d.ts +1 -102
- package/dist/records-v2/AffiliateCodeRecord.js +0 -157
- package/dist/records-v2/AppointmentRecord.d.ts +0 -141
- package/dist/records-v2/AppointmentRecord.js +0 -235
- package/dist/records-v2/BillingAdjustmentRecord.d.ts +0 -81
- package/dist/records-v2/BillingAdjustmentRecord.js +0 -136
- package/dist/records-v2/BillingRequestRecord.d.ts +2 -178
- package/dist/records-v2/BillingRequestRecord.js +0 -271
- package/dist/records-v2/BlockageA55Record.d.ts +2 -103
- package/dist/records-v2/BlockageA55Record.js +0 -157
- package/dist/records-v2/BngProvisionRecord.d.ts +1 -42
- package/dist/records-v2/BngProvisionRecord.js +0 -58
- package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +3 -23
- package/dist/records-v2/BrskEntityMigrationErrorRecord.js +3 -24
- package/dist/records-v2/CallEventRecord.d.ts +1 -82
- package/dist/records-v2/CallEventRecord.js +0 -124
- package/dist/records-v2/CallLegRecord.d.ts +1 -82
- package/dist/records-v2/CallLegRecord.js +0 -124
- package/dist/records-v2/CallRecord.d.ts +1 -202
- package/dist/records-v2/CallRecord.js +0 -322
- package/dist/records-v2/CallTransferRecord.d.ts +1 -102
- package/dist/records-v2/CallTransferRecord.js +0 -157
- package/dist/records-v2/CampaignRecord.d.ts +2 -83
- package/dist/records-v2/CampaignRecord.js +0 -124
- package/dist/records-v2/CaseRecord.d.ts +2 -398
- package/dist/records-v2/CaseRecord.js +0 -634
- package/dist/records-v2/ChangeReasonRecord.d.ts +2 -171
- package/dist/records-v2/ChangeReasonRecord.js +0 -238
- package/dist/records-v2/ChurnRequestRecord.d.ts +1 -62
- package/dist/records-v2/ChurnRequestRecord.js +0 -91
- package/dist/records-v2/ContactIdentityRecord.d.ts +163 -0
- package/dist/records-v2/ContactIdentityRecord.js +223 -0
- package/dist/records-v2/ContactRecord.d.ts +0 -540
- package/dist/records-v2/ContactRecord.js +0 -894
- package/dist/records-v2/ContractBuyOutRecord.d.ts +1 -162
- package/dist/records-v2/ContractBuyOutRecord.js +0 -256
- package/dist/records-v2/ConversationRecord.d.ts +1 -82
- package/dist/records-v2/ConversationRecord.js +0 -124
- package/dist/records-v2/CreditNoteRecord.d.ts +0 -101
- package/dist/records-v2/CreditNoteRecord.js +0 -169
- package/dist/records-v2/CrmDatasetRecord.d.ts +2 -191
- package/dist/records-v2/CrmDatasetRecord.js +0 -271
- package/dist/records-v2/CustomerDeviceAtaRecord.d.ts +0 -21
- package/dist/records-v2/CustomerDeviceAtaRecord.js +0 -37
- package/dist/records-v2/CustomerDeviceConfigurationRecord.d.ts +1 -62
- package/dist/records-v2/CustomerDeviceConfigurationRecord.js +0 -91
- package/dist/records-v2/CustomerDeviceOntRecord.d.ts +0 -181
- package/dist/records-v2/CustomerDeviceOntRecord.js +0 -301
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +0 -141
- package/dist/records-v2/CustomerDeviceRouterRecord.js +0 -235
- package/dist/records-v2/CustomerPhonePortingRecord.d.ts +0 -21
- package/dist/records-v2/CustomerPhonePortingRecord.js +0 -37
- package/dist/records-v2/DiscountRecord.d.ts +0 -121
- package/dist/records-v2/DiscountRecord.js +0 -202
- package/dist/records-v2/EmailRecord.d.ts +2 -230
- package/dist/records-v2/EmailRecord.js +0 -336
- package/dist/records-v2/EmailSenderRecord.d.ts +1 -42
- package/dist/records-v2/EmailSenderRecord.js +0 -58
- package/dist/records-v2/EmailTemplateRecord.d.ts +1 -21
- package/dist/records-v2/EmailTemplateRecord.js +0 -21
- package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +2 -135
- package/dist/records-v2/FieldServiceDispatchedProductRecord.js +0 -189
- package/dist/records-v2/FieldServiceProductRecord.d.ts +2 -115
- package/dist/records-v2/FieldServiceProductRecord.js +0 -156
- package/dist/records-v2/FileRecord.d.ts +2 -1211
- package/dist/records-v2/FileRecord.js +0 -1902
- package/dist/records-v2/ImpersonationTrackerRecord.d.ts +1 -62
- package/dist/records-v2/ImpersonationTrackerRecord.js +0 -91
- package/dist/records-v2/InternalInstallAuditRecord.d.ts +2 -83
- package/dist/records-v2/InternalInstallAuditRecord.js +0 -124
- package/dist/records-v2/InvoiceItemRecord.d.ts +0 -40
- package/dist/records-v2/InvoiceItemRecord.js +0 -69
- package/dist/records-v2/InvoiceRecord.d.ts +2 -399
- package/dist/records-v2/InvoiceRecord.js +0 -635
- package/dist/records-v2/KnowledgeArticleRecord.d.ts +2 -98
- package/dist/records-v2/KnowledgeArticleRecord.js +0 -139
- package/dist/records-v2/LeadRecord.d.ts +0 -261
- package/dist/records-v2/LeadRecord.js +0 -433
- package/dist/records-v2/MessageRecord.d.ts +2 -131
- package/dist/records-v2/MessageRecord.js +0 -172
- package/dist/records-v2/NetworkDeviceRecord.d.ts +2 -43
- package/dist/records-v2/NetworkDeviceRecord.js +0 -58
- package/dist/records-v2/NoteRecord.d.ts +1 -1121
- package/dist/records-v2/NoteRecord.js +0 -1839
- package/dist/records-v2/OfferRecord.d.ts +2 -154
- package/dist/records-v2/OfferRecord.js +0 -221
- package/dist/records-v2/OhAuditOfInstallationRecord.d.ts +2 -83
- package/dist/records-v2/OhAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/OhExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhExternalAuditRecord.js +0 -124
- package/dist/records-v2/OhInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInProgressAuditRecord.js +0 -124
- package/dist/records-v2/OhInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInstallationAuditRecord.js +0 -124
- package/dist/records-v2/OhRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhRetroAuditRecord.js +0 -124
- package/dist/records-v2/OneTouchSwitchRecord.d.ts +30 -255
- package/dist/records-v2/OneTouchSwitchRecord.js +37 -387
- package/dist/records-v2/OntReplacementApprovalRecord.d.ts +1 -62
- package/dist/records-v2/OntReplacementApprovalRecord.js +0 -91
- package/dist/records-v2/OrderCheckRecord.d.ts +0 -21
- package/dist/records-v2/OrderCheckRecord.js +0 -37
- package/dist/records-v2/OrderItemRecord.d.ts +0 -300
- package/dist/records-v2/OrderItemRecord.js +0 -498
- package/dist/records-v2/OrderKciRecord.d.ts +1 -42
- package/dist/records-v2/OrderKciRecord.js +0 -58
- package/dist/records-v2/OrderRecord.d.ts +0 -620
- package/dist/records-v2/OrderRecord.js +0 -1026
- package/dist/records-v2/OutageRecord.d.ts +1 -42
- package/dist/records-v2/OutageRecord.js +0 -58
- package/dist/records-v2/OverlayRealA55Record.d.ts +2 -83
- package/dist/records-v2/OverlayRealA55Record.js +0 -124
- package/dist/records-v2/PICRequestRecord.d.ts +1 -62
- package/dist/records-v2/PICRequestRecord.js +0 -91
- package/dist/records-v2/PaymentMethodRecord.d.ts +7 -127
- package/dist/records-v2/PaymentMethodRecord.js +15 -209
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +0 -181
- package/dist/records-v2/PaymentMethodRefundRecord.js +0 -301
- package/dist/records-v2/PaymentRecord.d.ts +1 -82
- package/dist/records-v2/PaymentRecord.js +0 -124
- package/dist/records-v2/PermissionToFailRecord.d.ts +0 -61
- package/dist/records-v2/PermissionToFailRecord.js +0 -103
- package/dist/records-v2/PgAccountValidationRecord.d.ts +1 -21
- package/dist/records-v2/PgAccountValidationRecord.js +0 -21
- package/dist/records-v2/PgContactRecord.d.ts +1 -62
- package/dist/records-v2/PgContactRecord.js +0 -91
- package/dist/records-v2/PgDirectDebitFileRecord.d.ts +2 -95
- package/dist/records-v2/PgDirectDebitFileRecord.js +0 -123
- package/dist/records-v2/PgDisputeRecord.d.ts +1 -62
- package/dist/records-v2/PgDisputeRecord.js +0 -91
- package/dist/records-v2/PgFileAllocationRecord.d.ts +58 -140
- package/dist/records-v2/PgFileAllocationRecord.js +72 -185
- package/dist/records-v2/PgLogRecord.d.ts +1 -21
- package/dist/records-v2/PgLogRecord.js +0 -21
- package/dist/records-v2/PgPaymentMethodRecord.d.ts +1 -102
- package/dist/records-v2/PgPaymentMethodRecord.js +0 -157
- package/dist/records-v2/PgSortCodeSubstitutionRecord.d.ts +1 -21
- package/dist/records-v2/PgSortCodeSubstitutionRecord.js +0 -21
- package/dist/records-v2/PgTransactionRecord.d.ts +2 -135
- package/dist/records-v2/PgTransactionRecord.js +0 -189
- package/dist/records-v2/PgVocalinkRecord.d.ts +1 -21
- package/dist/records-v2/PgVocalinkRecord.js +0 -21
- package/dist/records-v2/PgWebhookAttemptRecord.d.ts +1 -42
- package/dist/records-v2/PgWebhookAttemptRecord.js +0 -58
- package/dist/records-v2/PgWebhookRecord.d.ts +26 -122
- package/dist/records-v2/PgWebhookRecord.js +29 -190
- package/dist/records-v2/PhoneNumberRecord.d.ts +0 -41
- package/dist/records-v2/PhoneNumberRecord.js +0 -70
- package/dist/records-v2/PriceBookRecord.d.ts +0 -21
- package/dist/records-v2/PriceBookRecord.js +0 -37
- package/dist/records-v2/ProductRecord.d.ts +2 -258
- package/dist/records-v2/ProductRecord.js +0 -351
- package/dist/records-v2/PushNotificationRecord.d.ts +1 -162
- package/dist/records-v2/PushNotificationRecord.js +0 -256
- package/dist/records-v2/ReferralRecord.d.ts +2 -143
- package/dist/records-v2/ReferralRecord.js +0 -223
- package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/RemediationOutcomeFormRecord.js +0 -124
- package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +2 -103
- package/dist/records-v2/RemediationRequiredReasonRecord.js +0 -157
- package/dist/records-v2/ReturnsRecord.d.ts +1 -62
- package/dist/records-v2/ReturnsRecord.js +0 -91
- package/dist/records-v2/RewardRecord.d.ts +2 -123
- package/dist/records-v2/RewardRecord.js +0 -190
- package/dist/records-v2/SalesTerritoryRecord.d.ts +2 -79
- package/dist/records-v2/SalesTerritoryRecord.js +0 -107
- package/dist/records-v2/ScheduleSlotRecord.d.ts +1 -42
- package/dist/records-v2/ScheduleSlotRecord.js +0 -58
- package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +2 -287
- package/dist/records-v2/ServiceAppointmentConfigRecord.js +0 -367
- package/dist/records-v2/ServiceAppointmentRecord.d.ts +0 -81
- package/dist/records-v2/ServiceAppointmentRecord.js +0 -136
- package/dist/records-v2/ServiceRecord.d.ts +0 -40
- package/dist/records-v2/ServiceRecord.js +0 -69
- package/dist/records-v2/ServiceVisitAuditRecord.d.ts +2 -83
- package/dist/records-v2/ServiceVisitAuditRecord.js +0 -124
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +0 -124
- package/dist/records-v2/SmsMessageRecord.d.ts +2 -175
- package/dist/records-v2/SmsMessageRecord.js +0 -255
- package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +2 -83
- package/dist/records-v2/SweeperMaintenanceAuditRecord.js +0 -124
- package/dist/records-v2/TeamRecord.d.ts +0 -101
- package/dist/records-v2/TeamRecord.js +0 -169
- package/dist/records-v2/TestEntityForVisualBuilderRecord.d.ts +2 -115
- package/dist/records-v2/TestEntityForVisualBuilderRecord.js +0 -156
- package/dist/records-v2/TimeSlotRecord.d.ts +0 -21
- package/dist/records-v2/TimeSlotRecord.js +0 -37
- package/dist/records-v2/TransactionRecord.d.ts +1 -181
- package/dist/records-v2/TransactionRecord.js +0 -288
- package/dist/records-v2/TwilioUserUpdateRecord.d.ts +1 -42
- package/dist/records-v2/TwilioUserUpdateRecord.js +0 -58
- package/dist/records-v2/UgAuditOfInstallationRecord.d.ts +2 -83
- package/dist/records-v2/UgAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/UgExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgExternalAuditRecord.js +0 -124
- package/dist/records-v2/UgInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInProgressAuditRecord.js +0 -124
- package/dist/records-v2/UgInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInstallationAuditRecord.js +0 -124
- package/dist/records-v2/UgRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgRetroAuditRecord.js +0 -124
- package/dist/records-v2/UserRecord.d.ts +0 -380
- package/dist/records-v2/UserRecord.js +0 -630
- package/dist/records-v2/VisitRecord.d.ts +0 -121
- package/dist/records-v2/VisitRecord.js +0 -202
- package/dist/records-v2/VoiceConfigurationRecord.d.ts +0 -21
- package/dist/records-v2/VoiceConfigurationRecord.js +0 -37
- package/dist/records-v2/WayleaveAuditRecord.d.ts +2 -83
- package/dist/records-v2/WayleaveAuditRecord.js +0 -124
- package/dist/records-v2/WorkOrderRecord.d.ts +2 -1226
- package/dist/records-v2/WorkOrderRecord.js +0 -1865
- package/dist/records-v2/WorkOrderStatusUpdateRecord.d.ts +2 -75
- package/dist/records-v2/WorkOrderStatusUpdateRecord.js +0 -90
- package/dist/records-v2/YfFieldServiceVisitRecord.d.ts +2 -83
- package/dist/records-v2/YfFieldServiceVisitRecord.js +0 -124
- package/dist/records-v2/YfStockAuditRecord.d.ts +2 -103
- package/dist/records-v2/YfStockAuditRecord.js +0 -157
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +4 -1
- package/package.json +1 -1
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.d.ts +0 -85
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.js +0 -61
|
@@ -13,32 +13,19 @@
|
|
|
13
13
|
* await record.createFieldServiceDispatchedProduct({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: CPE_ROUTER, DEFAULT, MESH
|
|
17
|
-
*
|
|
18
16
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
17
|
*/
|
|
20
18
|
import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
21
19
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
22
20
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
23
|
-
import {
|
|
24
|
-
import { FieldServiceDispatchedProductProperties, CpeRouterFieldServiceDispatchedProductProperties, MeshFieldServiceDispatchedProductProperties } from '../entities-v2/FieldServiceDispatchedProduct';
|
|
21
|
+
import { FieldServiceDispatchedProductProperties } from '../entities-v2/FieldServiceDispatchedProduct';
|
|
25
22
|
import { CreateFieldServiceDispatchedProductProperties } from '../actions-v2/CreateFieldServiceDispatchedProductDto';
|
|
26
23
|
import { CreateFieldServiceDispatchedProductBuilder } from '../actions-v2/CreateFieldServiceDispatchedProductDto';
|
|
27
|
-
import { WorkOrderRecord } from './WorkOrderRecord';
|
|
28
|
-
import { CustomerDeviceRouterRecord } from './CustomerDeviceRouterRecord';
|
|
29
|
-
import { OrderRecord } from './OrderRecord';
|
|
30
|
-
import { FieldServiceProductRecord } from './FieldServiceProductRecord';
|
|
31
|
-
/** Valid entity types for FieldServiceDispatchedProduct */
|
|
32
|
-
export declare type FieldServiceDispatchedProductType = 'CPE_ROUTER' | 'DEFAULT' | 'MESH';
|
|
33
24
|
export declare class FieldServiceDispatchedProductRecord<TProps = FieldServiceDispatchedProductProperties> {
|
|
34
25
|
private _record;
|
|
35
26
|
private _provider;
|
|
36
27
|
private _pendingLinks;
|
|
37
28
|
private _preGeneratedId;
|
|
38
|
-
private _workOrders?;
|
|
39
|
-
private _customerDeviceRouters?;
|
|
40
|
-
private _orders?;
|
|
41
|
-
private _fieldServiceProducts?;
|
|
42
29
|
/**
|
|
43
30
|
* Create a record wrapper.
|
|
44
31
|
* @param record - The underlying record, or null for create operations
|
|
@@ -51,7 +38,7 @@ export declare class FieldServiceDispatchedProductRecord<TProps = FieldServiceDi
|
|
|
51
38
|
/** Record ID - always available (pre-generated for new records) */
|
|
52
39
|
get id(): string;
|
|
53
40
|
get entity(): string;
|
|
54
|
-
get type():
|
|
41
|
+
get type(): string | undefined;
|
|
55
42
|
/** Record properties - empty object for new (unsaved) records */
|
|
56
43
|
get properties(): TProps;
|
|
57
44
|
get title(): string | undefined;
|
|
@@ -64,126 +51,6 @@ export declare class FieldServiceDispatchedProductRecord<TProps = FieldServiceDi
|
|
|
64
51
|
get groups(): string[];
|
|
65
52
|
/** Access the underlying OdinRecord (null for new records) */
|
|
66
53
|
get record(): OdinRecord<TProps> | null;
|
|
67
|
-
/**
|
|
68
|
-
* Type guard: check if this record is of type CPE_ROUTER
|
|
69
|
-
*
|
|
70
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
71
|
-
* giving you access to CPE_ROUTER-specific properties.
|
|
72
|
-
*
|
|
73
|
-
* @example
|
|
74
|
-
* ```typescript
|
|
75
|
-
* if (record.isCpeRouter()) {
|
|
76
|
-
* // TypeScript knows record.properties is CpeRouterFieldServiceDispatchedProductProperties
|
|
77
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
78
|
-
* }
|
|
79
|
-
* ```
|
|
80
|
-
* @remarks CPE Router
|
|
81
|
-
*/
|
|
82
|
-
isCpeRouter(): this is FieldServiceDispatchedProductRecord<CpeRouterFieldServiceDispatchedProductProperties>;
|
|
83
|
-
/**
|
|
84
|
-
* Type guard: check if this record is of type DEFAULT
|
|
85
|
-
*
|
|
86
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
87
|
-
* giving you access to DEFAULT-specific properties.
|
|
88
|
-
*
|
|
89
|
-
* @example
|
|
90
|
-
* ```typescript
|
|
91
|
-
* if (record.isDefault()) {
|
|
92
|
-
* // TypeScript knows record.properties is FieldServiceDispatchedProductProperties
|
|
93
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
94
|
-
* }
|
|
95
|
-
* ```
|
|
96
|
-
* @remarks This is the default record type
|
|
97
|
-
*/
|
|
98
|
-
isDefault(): this is FieldServiceDispatchedProductRecord<FieldServiceDispatchedProductProperties>;
|
|
99
|
-
/**
|
|
100
|
-
* Type guard: check if this record is of type MESH
|
|
101
|
-
*
|
|
102
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
103
|
-
* giving you access to MESH-specific properties.
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* ```typescript
|
|
107
|
-
* if (record.isMesh()) {
|
|
108
|
-
* // TypeScript knows record.properties is MeshFieldServiceDispatchedProductProperties
|
|
109
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
110
|
-
* }
|
|
111
|
-
* ```
|
|
112
|
-
* @remarks Mesh Device
|
|
113
|
-
*/
|
|
114
|
-
isMesh(): this is FieldServiceDispatchedProductRecord<MeshFieldServiceDispatchedProductProperties>;
|
|
115
|
-
/** Valid labels for WorkOrder associations */
|
|
116
|
-
static readonly workOrdersLabels: readonly ["WorkOrder__FieldServiceDispatchedProduct"];
|
|
117
|
-
/**
|
|
118
|
-
* Access linked WorkOrder records
|
|
119
|
-
* @remarks Available labels: WorkOrder__FieldServiceDispatchedProduct
|
|
120
|
-
* @throws Error if called on a new (unsaved) record
|
|
121
|
-
*
|
|
122
|
-
* @example
|
|
123
|
-
* ```typescript
|
|
124
|
-
* // Get all linked WorkOrder records
|
|
125
|
-
* const items = await record.workOrders.list();
|
|
126
|
-
* const first = await record.workOrders.first();
|
|
127
|
-
*
|
|
128
|
-
* // Filter by label
|
|
129
|
-
* const specific = await record.workOrders.first({ label: 'WorkOrder__FieldServiceDispatchedProduct' });
|
|
130
|
-
* ```
|
|
131
|
-
*/
|
|
132
|
-
get workOrders(): RecordLinkManager<WorkOrderRecord, typeof FieldServiceDispatchedProductRecord['workOrdersLabels'][number]>;
|
|
133
|
-
/** Valid labels for CustomerDeviceRouter associations */
|
|
134
|
-
static readonly customerDeviceRoutersLabels: readonly ["CustomerDeviceRouter__FieldServiceDispatchedProduct"];
|
|
135
|
-
/**
|
|
136
|
-
* Access linked CustomerDeviceRouter records
|
|
137
|
-
* @remarks Available labels: CustomerDeviceRouter__FieldServiceDispatchedProduct
|
|
138
|
-
* @throws Error if called on a new (unsaved) record
|
|
139
|
-
*
|
|
140
|
-
* @example
|
|
141
|
-
* ```typescript
|
|
142
|
-
* // Get all linked CustomerDeviceRouter records
|
|
143
|
-
* const items = await record.customerDeviceRouters.list();
|
|
144
|
-
* const first = await record.customerDeviceRouters.first();
|
|
145
|
-
*
|
|
146
|
-
* // Filter by label
|
|
147
|
-
* const specific = await record.customerDeviceRouters.first({ label: 'CustomerDeviceRouter__FieldServiceDispatchedProduct' });
|
|
148
|
-
* ```
|
|
149
|
-
*/
|
|
150
|
-
get customerDeviceRouters(): RecordLinkManager<CustomerDeviceRouterRecord, typeof FieldServiceDispatchedProductRecord['customerDeviceRoutersLabels'][number]>;
|
|
151
|
-
/** Valid labels for Order associations */
|
|
152
|
-
static readonly ordersLabels: readonly ["FieldServiceDispatchedProduct__Order"];
|
|
153
|
-
/**
|
|
154
|
-
* Access linked Order records
|
|
155
|
-
* @remarks Available labels: FieldServiceDispatchedProduct__Order
|
|
156
|
-
* @throws Error if called on a new (unsaved) record
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```typescript
|
|
160
|
-
* // Get all linked Order records
|
|
161
|
-
* const items = await record.orders.list();
|
|
162
|
-
* const first = await record.orders.first();
|
|
163
|
-
*
|
|
164
|
-
* // Filter by label
|
|
165
|
-
* const specific = await record.orders.first({ label: 'FieldServiceDispatchedProduct__Order' });
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
|
-
get orders(): RecordLinkManager<OrderRecord, typeof FieldServiceDispatchedProductRecord['ordersLabels'][number]>;
|
|
169
|
-
/** Valid labels for FieldServiceProduct associations */
|
|
170
|
-
static readonly fieldServiceProductsLabels: readonly ["FieldServiceDispatchedProduct__FieldServiceProduct"];
|
|
171
|
-
/**
|
|
172
|
-
* Access linked FieldServiceProduct records
|
|
173
|
-
* @remarks Available labels: FieldServiceDispatchedProduct__FieldServiceProduct
|
|
174
|
-
* @throws Error if called on a new (unsaved) record
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* ```typescript
|
|
178
|
-
* // Get all linked FieldServiceProduct records
|
|
179
|
-
* const items = await record.fieldServiceProducts.list();
|
|
180
|
-
* const first = await record.fieldServiceProducts.first();
|
|
181
|
-
*
|
|
182
|
-
* // Filter by label
|
|
183
|
-
* const specific = await record.fieldServiceProducts.first({ label: 'FieldServiceDispatchedProduct__FieldServiceProduct' });
|
|
184
|
-
* ```
|
|
185
|
-
*/
|
|
186
|
-
get fieldServiceProducts(): RecordLinkManager<FieldServiceProductRecord, typeof FieldServiceDispatchedProductRecord['fieldServiceProductsLabels'][number]>;
|
|
187
54
|
/**
|
|
188
55
|
* Queue a link to be created with the next action.
|
|
189
56
|
* Works for both create and update actions.
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* await record.createFieldServiceDispatchedProduct({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: CPE_ROUTER, DEFAULT, MESH
|
|
18
|
-
*
|
|
19
17
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
18
|
*/
|
|
21
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -31,12 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
29
|
exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = void 0;
|
|
32
30
|
const uuid_1 = require("uuid");
|
|
33
31
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
34
|
-
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
35
32
|
const CreateFieldServiceDispatchedProductDto_1 = require("../actions-v2/CreateFieldServiceDispatchedProductDto");
|
|
36
|
-
const WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
37
|
-
const CustomerDeviceRouterRecord_1 = require("./CustomerDeviceRouterRecord");
|
|
38
|
-
const OrderRecord_1 = require("./OrderRecord");
|
|
39
|
-
const FieldServiceProductRecord_1 = require("./FieldServiceProductRecord");
|
|
40
33
|
/**
|
|
41
34
|
* Builder for action execution with dryRun support
|
|
42
35
|
*
|
|
@@ -148,177 +141,6 @@ class FieldServiceDispatchedProductRecord {
|
|
|
148
141
|
/** Access the underlying OdinRecord (null for new records) */
|
|
149
142
|
get record() { return this._record; }
|
|
150
143
|
// ============================================
|
|
151
|
-
// TYPE GUARDS (with TypeScript type predicates)
|
|
152
|
-
// ============================================
|
|
153
|
-
/**
|
|
154
|
-
* Type guard: check if this record is of type CPE_ROUTER
|
|
155
|
-
*
|
|
156
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
157
|
-
* giving you access to CPE_ROUTER-specific properties.
|
|
158
|
-
*
|
|
159
|
-
* @example
|
|
160
|
-
* ```typescript
|
|
161
|
-
* if (record.isCpeRouter()) {
|
|
162
|
-
* // TypeScript knows record.properties is CpeRouterFieldServiceDispatchedProductProperties
|
|
163
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
164
|
-
* }
|
|
165
|
-
* ```
|
|
166
|
-
* @remarks CPE Router
|
|
167
|
-
*/
|
|
168
|
-
isCpeRouter() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'CPE_ROUTER'; }
|
|
169
|
-
/**
|
|
170
|
-
* Type guard: check if this record is of type DEFAULT
|
|
171
|
-
*
|
|
172
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
173
|
-
* giving you access to DEFAULT-specific properties.
|
|
174
|
-
*
|
|
175
|
-
* @example
|
|
176
|
-
* ```typescript
|
|
177
|
-
* if (record.isDefault()) {
|
|
178
|
-
* // TypeScript knows record.properties is FieldServiceDispatchedProductProperties
|
|
179
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
180
|
-
* }
|
|
181
|
-
* ```
|
|
182
|
-
* @remarks This is the default record type
|
|
183
|
-
*/
|
|
184
|
-
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
185
|
-
/**
|
|
186
|
-
* Type guard: check if this record is of type MESH
|
|
187
|
-
*
|
|
188
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
189
|
-
* giving you access to MESH-specific properties.
|
|
190
|
-
*
|
|
191
|
-
* @example
|
|
192
|
-
* ```typescript
|
|
193
|
-
* if (record.isMesh()) {
|
|
194
|
-
* // TypeScript knows record.properties is MeshFieldServiceDispatchedProductProperties
|
|
195
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
196
|
-
* }
|
|
197
|
-
* ```
|
|
198
|
-
* @remarks Mesh Device
|
|
199
|
-
*/
|
|
200
|
-
isMesh() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'MESH'; }
|
|
201
|
-
/**
|
|
202
|
-
* Access linked WorkOrder records
|
|
203
|
-
* @remarks Available labels: WorkOrder__FieldServiceDispatchedProduct
|
|
204
|
-
* @throws Error if called on a new (unsaved) record
|
|
205
|
-
*
|
|
206
|
-
* @example
|
|
207
|
-
* ```typescript
|
|
208
|
-
* // Get all linked WorkOrder records
|
|
209
|
-
* const items = await record.workOrders.list();
|
|
210
|
-
* const first = await record.workOrders.first();
|
|
211
|
-
*
|
|
212
|
-
* // Filter by label
|
|
213
|
-
* const specific = await record.workOrders.first({ label: 'WorkOrder__FieldServiceDispatchedProduct' });
|
|
214
|
-
* ```
|
|
215
|
-
*/
|
|
216
|
-
get workOrders() {
|
|
217
|
-
var _a;
|
|
218
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
219
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
220
|
-
if (!this._workOrders) {
|
|
221
|
-
this._workOrders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
222
|
-
sourceEntity: 'FieldServiceModule:FieldServiceDispatchedProduct',
|
|
223
|
-
targetEntity: 'FieldServiceModule:WorkOrder',
|
|
224
|
-
targetModuleName: 'FieldServiceModule',
|
|
225
|
-
targetEntityName: 'WorkOrder',
|
|
226
|
-
labels: ['WorkOrder__FieldServiceDispatchedProduct'],
|
|
227
|
-
}, WorkOrderRecord_1.WorkOrderRecord);
|
|
228
|
-
}
|
|
229
|
-
return this._workOrders;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* Access linked CustomerDeviceRouter records
|
|
233
|
-
* @remarks Available labels: CustomerDeviceRouter__FieldServiceDispatchedProduct
|
|
234
|
-
* @throws Error if called on a new (unsaved) record
|
|
235
|
-
*
|
|
236
|
-
* @example
|
|
237
|
-
* ```typescript
|
|
238
|
-
* // Get all linked CustomerDeviceRouter records
|
|
239
|
-
* const items = await record.customerDeviceRouters.list();
|
|
240
|
-
* const first = await record.customerDeviceRouters.first();
|
|
241
|
-
*
|
|
242
|
-
* // Filter by label
|
|
243
|
-
* const specific = await record.customerDeviceRouters.first({ label: 'CustomerDeviceRouter__FieldServiceDispatchedProduct' });
|
|
244
|
-
* ```
|
|
245
|
-
*/
|
|
246
|
-
get customerDeviceRouters() {
|
|
247
|
-
var _a;
|
|
248
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
249
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
250
|
-
if (!this._customerDeviceRouters) {
|
|
251
|
-
this._customerDeviceRouters = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
252
|
-
sourceEntity: 'FieldServiceModule:FieldServiceDispatchedProduct',
|
|
253
|
-
targetEntity: 'ServiceModule:CustomerDeviceRouter',
|
|
254
|
-
targetModuleName: 'ServiceModule',
|
|
255
|
-
targetEntityName: 'CustomerDeviceRouter',
|
|
256
|
-
labels: ['CustomerDeviceRouter__FieldServiceDispatchedProduct'],
|
|
257
|
-
}, CustomerDeviceRouterRecord_1.CustomerDeviceRouterRecord);
|
|
258
|
-
}
|
|
259
|
-
return this._customerDeviceRouters;
|
|
260
|
-
}
|
|
261
|
-
/**
|
|
262
|
-
* Access linked Order records
|
|
263
|
-
* @remarks Available labels: FieldServiceDispatchedProduct__Order
|
|
264
|
-
* @throws Error if called on a new (unsaved) record
|
|
265
|
-
*
|
|
266
|
-
* @example
|
|
267
|
-
* ```typescript
|
|
268
|
-
* // Get all linked Order records
|
|
269
|
-
* const items = await record.orders.list();
|
|
270
|
-
* const first = await record.orders.first();
|
|
271
|
-
*
|
|
272
|
-
* // Filter by label
|
|
273
|
-
* const specific = await record.orders.first({ label: 'FieldServiceDispatchedProduct__Order' });
|
|
274
|
-
* ```
|
|
275
|
-
*/
|
|
276
|
-
get orders() {
|
|
277
|
-
var _a;
|
|
278
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
279
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
280
|
-
if (!this._orders) {
|
|
281
|
-
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
282
|
-
sourceEntity: 'FieldServiceModule:FieldServiceDispatchedProduct',
|
|
283
|
-
targetEntity: 'OrderModule:Order',
|
|
284
|
-
targetModuleName: 'OrderModule',
|
|
285
|
-
targetEntityName: 'Order',
|
|
286
|
-
labels: ['FieldServiceDispatchedProduct__Order'],
|
|
287
|
-
}, OrderRecord_1.OrderRecord);
|
|
288
|
-
}
|
|
289
|
-
return this._orders;
|
|
290
|
-
}
|
|
291
|
-
/**
|
|
292
|
-
* Access linked FieldServiceProduct records
|
|
293
|
-
* @remarks Available labels: FieldServiceDispatchedProduct__FieldServiceProduct
|
|
294
|
-
* @throws Error if called on a new (unsaved) record
|
|
295
|
-
*
|
|
296
|
-
* @example
|
|
297
|
-
* ```typescript
|
|
298
|
-
* // Get all linked FieldServiceProduct records
|
|
299
|
-
* const items = await record.fieldServiceProducts.list();
|
|
300
|
-
* const first = await record.fieldServiceProducts.first();
|
|
301
|
-
*
|
|
302
|
-
* // Filter by label
|
|
303
|
-
* const specific = await record.fieldServiceProducts.first({ label: 'FieldServiceDispatchedProduct__FieldServiceProduct' });
|
|
304
|
-
* ```
|
|
305
|
-
*/
|
|
306
|
-
get fieldServiceProducts() {
|
|
307
|
-
var _a;
|
|
308
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
309
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
310
|
-
if (!this._fieldServiceProducts) {
|
|
311
|
-
this._fieldServiceProducts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
312
|
-
sourceEntity: 'FieldServiceModule:FieldServiceDispatchedProduct',
|
|
313
|
-
targetEntity: 'FieldServiceModule:FieldServiceProduct',
|
|
314
|
-
targetModuleName: 'FieldServiceModule',
|
|
315
|
-
targetEntityName: 'FieldServiceProduct',
|
|
316
|
-
labels: ['FieldServiceDispatchedProduct__FieldServiceProduct'],
|
|
317
|
-
}, FieldServiceProductRecord_1.FieldServiceProductRecord);
|
|
318
|
-
}
|
|
319
|
-
return this._fieldServiceProducts;
|
|
320
|
-
}
|
|
321
|
-
// ============================================
|
|
322
144
|
// LINK MANAGEMENT
|
|
323
145
|
// ============================================
|
|
324
146
|
/**
|
|
@@ -384,17 +206,6 @@ class FieldServiceDispatchedProductRecord {
|
|
|
384
206
|
}
|
|
385
207
|
}
|
|
386
208
|
exports.FieldServiceDispatchedProductRecord = FieldServiceDispatchedProductRecord;
|
|
387
|
-
// ============================================
|
|
388
|
-
// TYPED LINK ACCESSORS
|
|
389
|
-
// ============================================
|
|
390
|
-
/** Valid labels for WorkOrder associations */
|
|
391
|
-
FieldServiceDispatchedProductRecord.workOrdersLabels = ['WorkOrder__FieldServiceDispatchedProduct'];
|
|
392
|
-
/** Valid labels for CustomerDeviceRouter associations */
|
|
393
|
-
FieldServiceDispatchedProductRecord.customerDeviceRoutersLabels = ['CustomerDeviceRouter__FieldServiceDispatchedProduct'];
|
|
394
|
-
/** Valid labels for Order associations */
|
|
395
|
-
FieldServiceDispatchedProductRecord.ordersLabels = ['FieldServiceDispatchedProduct__Order'];
|
|
396
|
-
/** Valid labels for FieldServiceProduct associations */
|
|
397
|
-
FieldServiceDispatchedProductRecord.fieldServiceProductsLabels = ['FieldServiceDispatchedProduct__FieldServiceProduct'];
|
|
398
209
|
/** Type guard to check if an object is a FieldServiceDispatchedProductRecord */
|
|
399
210
|
function isFieldServiceDispatchedProductRecord(obj) {
|
|
400
211
|
return obj instanceof FieldServiceDispatchedProductRecord;
|
|
@@ -13,25 +13,17 @@
|
|
|
13
13
|
* await record.createFieldServiceProduct({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: CPE_ROUTER, MESH, MISC
|
|
17
|
-
*
|
|
18
16
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
17
|
*/
|
|
20
18
|
import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
21
19
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
22
20
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
21
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
|
-
import {
|
|
25
|
-
import { FieldServiceProductProperties, CpeRouterFieldServiceProductProperties, MeshFieldServiceProductProperties, MiscFieldServiceProductProperties } from '../entities-v2/FieldServiceProduct';
|
|
22
|
+
import { FieldServiceProductProperties } from '../entities-v2/FieldServiceProduct';
|
|
26
23
|
import { CreateFieldServiceMeshProductProperties } from '../actions-v2/CreateFieldServiceMeshProductDto';
|
|
27
24
|
import { CreateFieldServiceProductProperties } from '../actions-v2/CreateFieldServiceProductDto';
|
|
28
25
|
import { CreateFieldServiceRouterProductProperties } from '../actions-v2/CreateFieldServiceRouterProductDto';
|
|
29
26
|
import { EditFieldServiceProductProperties } from '../actions-v2/EditFieldServiceProductDto';
|
|
30
|
-
import { WorkOrderRecord } from './WorkOrderRecord';
|
|
31
|
-
import { FieldServiceDispatchedProductRecord } from './FieldServiceDispatchedProductRecord';
|
|
32
|
-
import { ProductRecord } from './ProductRecord';
|
|
33
|
-
/** Valid entity types for FieldServiceProduct */
|
|
34
|
-
export declare type FieldServiceProductType = 'CPE_ROUTER' | 'MESH' | 'MISC';
|
|
35
27
|
/**
|
|
36
28
|
* Builder for action execution with dryRun support
|
|
37
29
|
*
|
|
@@ -95,9 +87,6 @@ export declare class FieldServiceProductRecord<TProps = FieldServiceProductPrope
|
|
|
95
87
|
private _provider;
|
|
96
88
|
private _pendingLinks;
|
|
97
89
|
private _preGeneratedId;
|
|
98
|
-
private _workOrders?;
|
|
99
|
-
private _fieldServiceDispatchedProducts?;
|
|
100
|
-
private _products?;
|
|
101
90
|
/**
|
|
102
91
|
* Create a record wrapper.
|
|
103
92
|
* @param record - The underlying record, or null for create operations
|
|
@@ -110,7 +99,7 @@ export declare class FieldServiceProductRecord<TProps = FieldServiceProductPrope
|
|
|
110
99
|
/** Record ID - always available (pre-generated for new records) */
|
|
111
100
|
get id(): string;
|
|
112
101
|
get entity(): string;
|
|
113
|
-
get type():
|
|
102
|
+
get type(): string | undefined;
|
|
114
103
|
/** Record properties - empty object for new (unsaved) records */
|
|
115
104
|
get properties(): TProps;
|
|
116
105
|
get title(): string | undefined;
|
|
@@ -123,108 +112,6 @@ export declare class FieldServiceProductRecord<TProps = FieldServiceProductPrope
|
|
|
123
112
|
get groups(): string[];
|
|
124
113
|
/** Access the underlying OdinRecord (null for new records) */
|
|
125
114
|
get record(): OdinRecord<TProps> | null;
|
|
126
|
-
/**
|
|
127
|
-
* Type guard: check if this record is of type CPE_ROUTER
|
|
128
|
-
*
|
|
129
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
130
|
-
* giving you access to CPE_ROUTER-specific properties.
|
|
131
|
-
*
|
|
132
|
-
* @example
|
|
133
|
-
* ```typescript
|
|
134
|
-
* if (record.isCpeRouter()) {
|
|
135
|
-
* // TypeScript knows record.properties is CpeRouterFieldServiceProductProperties
|
|
136
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
137
|
-
* }
|
|
138
|
-
* ```
|
|
139
|
-
* @remarks CPE Router
|
|
140
|
-
*/
|
|
141
|
-
isCpeRouter(): this is FieldServiceProductRecord<CpeRouterFieldServiceProductProperties>;
|
|
142
|
-
/**
|
|
143
|
-
* Type guard: check if this record is of type MESH
|
|
144
|
-
*
|
|
145
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
146
|
-
* giving you access to MESH-specific properties.
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
* ```typescript
|
|
150
|
-
* if (record.isMesh()) {
|
|
151
|
-
* // TypeScript knows record.properties is MeshFieldServiceProductProperties
|
|
152
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
153
|
-
* }
|
|
154
|
-
* ```
|
|
155
|
-
* @remarks Mesh
|
|
156
|
-
*/
|
|
157
|
-
isMesh(): this is FieldServiceProductRecord<MeshFieldServiceProductProperties>;
|
|
158
|
-
/**
|
|
159
|
-
* Type guard: check if this record is of type MISC
|
|
160
|
-
*
|
|
161
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
162
|
-
* giving you access to MISC-specific properties.
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```typescript
|
|
166
|
-
* if (record.isMisc()) {
|
|
167
|
-
* // TypeScript knows record.properties is MiscFieldServiceProductProperties
|
|
168
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
169
|
-
* }
|
|
170
|
-
* ```
|
|
171
|
-
* @remarks MISC
|
|
172
|
-
*/
|
|
173
|
-
isMisc(): this is FieldServiceProductRecord<MiscFieldServiceProductProperties>;
|
|
174
|
-
/** Valid labels for WorkOrder associations */
|
|
175
|
-
static readonly workOrdersLabels: readonly ["WorkOrder__FieldServiceProduct_Router", "WorkOrder_FieldServiceProduct_Misc_Item_2", "WorkOrder_FieldServiceProduct_Misc_Item_1", "WorkOrder__FieldServiceProduct_Mesh"];
|
|
176
|
-
/**
|
|
177
|
-
* Access linked WorkOrder records
|
|
178
|
-
* @remarks Available labels: WorkOrder__FieldServiceProduct_Router, WorkOrder_FieldServiceProduct_Misc_Item_2, WorkOrder_FieldServiceProduct_Misc_Item_1, WorkOrder__FieldServiceProduct_Mesh
|
|
179
|
-
* @throws Error if called on a new (unsaved) record
|
|
180
|
-
*
|
|
181
|
-
* @example
|
|
182
|
-
* ```typescript
|
|
183
|
-
* // Get all linked WorkOrder records
|
|
184
|
-
* const items = await record.workOrders.list();
|
|
185
|
-
* const first = await record.workOrders.first();
|
|
186
|
-
*
|
|
187
|
-
* // Filter by label
|
|
188
|
-
* const specific = await record.workOrders.first({ label: 'WorkOrder__FieldServiceProduct_Router' });
|
|
189
|
-
* ```
|
|
190
|
-
*/
|
|
191
|
-
get workOrders(): RecordLinkManager<WorkOrderRecord, typeof FieldServiceProductRecord['workOrdersLabels'][number]>;
|
|
192
|
-
/** Valid labels for FieldServiceDispatchedProduct associations */
|
|
193
|
-
static readonly fieldServiceDispatchedProductsLabels: readonly ["FieldServiceDispatchedProduct__FieldServiceProduct"];
|
|
194
|
-
/**
|
|
195
|
-
* Access linked FieldServiceDispatchedProduct records
|
|
196
|
-
* @remarks Available labels: FieldServiceDispatchedProduct__FieldServiceProduct
|
|
197
|
-
* @throws Error if called on a new (unsaved) record
|
|
198
|
-
*
|
|
199
|
-
* @example
|
|
200
|
-
* ```typescript
|
|
201
|
-
* // Get all linked FieldServiceDispatchedProduct records
|
|
202
|
-
* const items = await record.fieldServiceDispatchedProducts.list();
|
|
203
|
-
* const first = await record.fieldServiceDispatchedProducts.first();
|
|
204
|
-
*
|
|
205
|
-
* // Filter by label
|
|
206
|
-
* const specific = await record.fieldServiceDispatchedProducts.first({ label: 'FieldServiceDispatchedProduct__FieldServiceProduct' });
|
|
207
|
-
* ```
|
|
208
|
-
*/
|
|
209
|
-
get fieldServiceDispatchedProducts(): RecordLinkManager<FieldServiceDispatchedProductRecord, typeof FieldServiceProductRecord['fieldServiceDispatchedProductsLabels'][number]>;
|
|
210
|
-
/** Valid labels for Product associations */
|
|
211
|
-
static readonly productsLabels: readonly ["FieldServiceProduct__CompatibleProducts"];
|
|
212
|
-
/**
|
|
213
|
-
* Access linked Product records
|
|
214
|
-
* @remarks Available labels: FieldServiceProduct__CompatibleProducts
|
|
215
|
-
* @throws Error if called on a new (unsaved) record
|
|
216
|
-
*
|
|
217
|
-
* @example
|
|
218
|
-
* ```typescript
|
|
219
|
-
* // Get all linked Product records
|
|
220
|
-
* const items = await record.products.list();
|
|
221
|
-
* const first = await record.products.first();
|
|
222
|
-
*
|
|
223
|
-
* // Filter by label
|
|
224
|
-
* const specific = await record.products.first({ label: 'FieldServiceProduct__CompatibleProducts' });
|
|
225
|
-
* ```
|
|
226
|
-
*/
|
|
227
|
-
get products(): RecordLinkManager<ProductRecord, typeof FieldServiceProductRecord['productsLabels'][number]>;
|
|
228
115
|
/**
|
|
229
116
|
* Queue a link to be created with the next action.
|
|
230
117
|
* Works for both create and update actions.
|