@d19n/youfibre-odin-sdk 2.0.28 → 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 -3
- 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 +16 -23
- package/dist/actions-v2/UpdateBngProvisionDto.js +4 -4
- 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/Account.d.ts +33 -33
- package/dist/entities-v2/Account.js +2 -2
- package/dist/entities-v2/BillingAdjustment.d.ts +79 -70
- package/dist/entities-v2/BillingAdjustment.js +37 -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/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 +28 -7
- package/dist/entities-v2/Order.js +8 -2
- 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 +85 -84
- package/dist/entities-v2/WorkOrder.js +5 -4
- 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 -109
- package/dist/records-v2/ConversationRecord.js +0 -153
- 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/ReopenConversationDto.d.ts +0 -94
- package/dist/actions-v2/ReopenConversationDto.js +0 -61
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.d.ts +0 -85
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.js +0 -61
|
@@ -29,14 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.isCustomerDeviceRouterRecord = exports.CustomerDeviceRouterRecord = void 0;
|
|
30
30
|
const uuid_1 = require("uuid");
|
|
31
31
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
32
|
-
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
33
|
-
const FieldServiceDispatchedProductRecord_1 = require("./FieldServiceDispatchedProductRecord");
|
|
34
|
-
const OrderItemRecord_1 = require("./OrderItemRecord");
|
|
35
|
-
const NoteRecord_1 = require("./NoteRecord");
|
|
36
|
-
const CustomerDeviceOntRecord_1 = require("./CustomerDeviceOntRecord");
|
|
37
|
-
const FileRecord_1 = require("./FileRecord");
|
|
38
|
-
const OrderRecord_1 = require("./OrderRecord");
|
|
39
|
-
const AddressRecord_1 = require("./AddressRecord");
|
|
40
32
|
/**
|
|
41
33
|
* Builder for action execution with dryRun support
|
|
42
34
|
*
|
|
@@ -147,216 +139,6 @@ class CustomerDeviceRouterRecord {
|
|
|
147
139
|
get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
|
|
148
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
149
141
|
get record() { return this._record; }
|
|
150
|
-
/**
|
|
151
|
-
* Access linked FieldServiceDispatchedProduct records
|
|
152
|
-
* @remarks Available labels: CustomerDeviceRouter__FieldServiceDispatchedProduct
|
|
153
|
-
* @throws Error if called on a new (unsaved) record
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* ```typescript
|
|
157
|
-
* // Get all linked FieldServiceDispatchedProduct records
|
|
158
|
-
* const items = await record.fieldServiceDispatchedProducts.list();
|
|
159
|
-
* const first = await record.fieldServiceDispatchedProducts.first();
|
|
160
|
-
*
|
|
161
|
-
* // Filter by label
|
|
162
|
-
* const specific = await record.fieldServiceDispatchedProducts.first({ label: 'CustomerDeviceRouter__FieldServiceDispatchedProduct' });
|
|
163
|
-
* ```
|
|
164
|
-
*/
|
|
165
|
-
get fieldServiceDispatchedProducts() {
|
|
166
|
-
var _a;
|
|
167
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
168
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
169
|
-
if (!this._fieldServiceDispatchedProducts) {
|
|
170
|
-
this._fieldServiceDispatchedProducts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
171
|
-
sourceEntity: 'ServiceModule:CustomerDeviceRouter',
|
|
172
|
-
targetEntity: 'FieldServiceModule:FieldServiceDispatchedProduct',
|
|
173
|
-
targetModuleName: 'FieldServiceModule',
|
|
174
|
-
targetEntityName: 'FieldServiceDispatchedProduct',
|
|
175
|
-
labels: ['CustomerDeviceRouter__FieldServiceDispatchedProduct'],
|
|
176
|
-
}, FieldServiceDispatchedProductRecord_1.FieldServiceDispatchedProductRecord);
|
|
177
|
-
}
|
|
178
|
-
return this._fieldServiceDispatchedProducts;
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Access linked OrderItem records
|
|
182
|
-
* @remarks Available labels: OrderItem__CustomerDeviceRouter
|
|
183
|
-
* @throws Error if called on a new (unsaved) record
|
|
184
|
-
*
|
|
185
|
-
* @example
|
|
186
|
-
* ```typescript
|
|
187
|
-
* // Get all linked OrderItem records
|
|
188
|
-
* const items = await record.orderItems.list();
|
|
189
|
-
* const first = await record.orderItems.first();
|
|
190
|
-
*
|
|
191
|
-
* // Filter by label
|
|
192
|
-
* const specific = await record.orderItems.first({ label: 'OrderItem__CustomerDeviceRouter' });
|
|
193
|
-
* ```
|
|
194
|
-
*/
|
|
195
|
-
get orderItems() {
|
|
196
|
-
var _a;
|
|
197
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
198
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
199
|
-
if (!this._orderItems) {
|
|
200
|
-
this._orderItems = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
201
|
-
sourceEntity: 'ServiceModule:CustomerDeviceRouter',
|
|
202
|
-
targetEntity: 'OrderModule:OrderItem',
|
|
203
|
-
targetModuleName: 'OrderModule',
|
|
204
|
-
targetEntityName: 'OrderItem',
|
|
205
|
-
labels: ['OrderItem__CustomerDeviceRouter'],
|
|
206
|
-
}, OrderItemRecord_1.OrderItemRecord);
|
|
207
|
-
}
|
|
208
|
-
return this._orderItems;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Access linked Note records
|
|
212
|
-
* @remarks Available labels: CustomerDeviceRouter__Note
|
|
213
|
-
* @throws Error if called on a new (unsaved) record
|
|
214
|
-
*
|
|
215
|
-
* @example
|
|
216
|
-
* ```typescript
|
|
217
|
-
* // Get all linked Note records
|
|
218
|
-
* const items = await record.notes.list();
|
|
219
|
-
* const first = await record.notes.first();
|
|
220
|
-
*
|
|
221
|
-
* // Filter by label
|
|
222
|
-
* const specific = await record.notes.first({ label: 'CustomerDeviceRouter__Note' });
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
get notes() {
|
|
226
|
-
var _a;
|
|
227
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
228
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
229
|
-
if (!this._notes) {
|
|
230
|
-
this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
231
|
-
sourceEntity: 'ServiceModule:CustomerDeviceRouter',
|
|
232
|
-
targetEntity: 'SupportModule:Note',
|
|
233
|
-
targetModuleName: 'SupportModule',
|
|
234
|
-
targetEntityName: 'Note',
|
|
235
|
-
labels: ['CustomerDeviceRouter__Note'],
|
|
236
|
-
}, NoteRecord_1.NoteRecord);
|
|
237
|
-
}
|
|
238
|
-
return this._notes;
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Access linked CustomerDeviceOnt records
|
|
242
|
-
* @remarks Available labels: CustomerDeviceOnt__CustomerDeviceRouter
|
|
243
|
-
* @throws Error if called on a new (unsaved) record
|
|
244
|
-
*
|
|
245
|
-
* @example
|
|
246
|
-
* ```typescript
|
|
247
|
-
* // Get all linked CustomerDeviceOnt records
|
|
248
|
-
* const items = await record.customerDeviceOnts.list();
|
|
249
|
-
* const first = await record.customerDeviceOnts.first();
|
|
250
|
-
*
|
|
251
|
-
* // Filter by label
|
|
252
|
-
* const specific = await record.customerDeviceOnts.first({ label: 'CustomerDeviceOnt__CustomerDeviceRouter' });
|
|
253
|
-
* ```
|
|
254
|
-
*/
|
|
255
|
-
get customerDeviceOnts() {
|
|
256
|
-
var _a;
|
|
257
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
258
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
259
|
-
if (!this._customerDeviceOnts) {
|
|
260
|
-
this._customerDeviceOnts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
261
|
-
sourceEntity: 'ServiceModule:CustomerDeviceRouter',
|
|
262
|
-
targetEntity: 'ServiceModule:CustomerDeviceOnt',
|
|
263
|
-
targetModuleName: 'ServiceModule',
|
|
264
|
-
targetEntityName: 'CustomerDeviceOnt',
|
|
265
|
-
labels: ['CustomerDeviceOnt__CustomerDeviceRouter'],
|
|
266
|
-
}, CustomerDeviceOntRecord_1.CustomerDeviceOntRecord);
|
|
267
|
-
}
|
|
268
|
-
return this._customerDeviceOnts;
|
|
269
|
-
}
|
|
270
|
-
/**
|
|
271
|
-
* Access linked File records
|
|
272
|
-
* @remarks Available labels: CustomerDeviceRouter__File
|
|
273
|
-
* @throws Error if called on a new (unsaved) record
|
|
274
|
-
*
|
|
275
|
-
* @example
|
|
276
|
-
* ```typescript
|
|
277
|
-
* // Get all linked File records
|
|
278
|
-
* const items = await record.files.list();
|
|
279
|
-
* const first = await record.files.first();
|
|
280
|
-
*
|
|
281
|
-
* // Filter by label
|
|
282
|
-
* const specific = await record.files.first({ label: 'CustomerDeviceRouter__File' });
|
|
283
|
-
* ```
|
|
284
|
-
*/
|
|
285
|
-
get files() {
|
|
286
|
-
var _a;
|
|
287
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
288
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
289
|
-
if (!this._files) {
|
|
290
|
-
this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
291
|
-
sourceEntity: 'ServiceModule:CustomerDeviceRouter',
|
|
292
|
-
targetEntity: 'SchemaModule:File',
|
|
293
|
-
targetModuleName: 'SchemaModule',
|
|
294
|
-
targetEntityName: 'File',
|
|
295
|
-
labels: ['CustomerDeviceRouter__File'],
|
|
296
|
-
}, FileRecord_1.FileRecord);
|
|
297
|
-
}
|
|
298
|
-
return this._files;
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* Access linked Order records
|
|
302
|
-
* @remarks Available labels: Order__CustomerDeviceRouter
|
|
303
|
-
* @throws Error if called on a new (unsaved) record
|
|
304
|
-
*
|
|
305
|
-
* @example
|
|
306
|
-
* ```typescript
|
|
307
|
-
* // Get all linked Order records
|
|
308
|
-
* const items = await record.orders.list();
|
|
309
|
-
* const first = await record.orders.first();
|
|
310
|
-
*
|
|
311
|
-
* // Filter by label
|
|
312
|
-
* const specific = await record.orders.first({ label: 'Order__CustomerDeviceRouter' });
|
|
313
|
-
* ```
|
|
314
|
-
*/
|
|
315
|
-
get orders() {
|
|
316
|
-
var _a;
|
|
317
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
318
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
319
|
-
if (!this._orders) {
|
|
320
|
-
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
321
|
-
sourceEntity: 'ServiceModule:CustomerDeviceRouter',
|
|
322
|
-
targetEntity: 'OrderModule:Order',
|
|
323
|
-
targetModuleName: 'OrderModule',
|
|
324
|
-
targetEntityName: 'Order',
|
|
325
|
-
labels: ['Order__CustomerDeviceRouter'],
|
|
326
|
-
}, OrderRecord_1.OrderRecord);
|
|
327
|
-
}
|
|
328
|
-
return this._orders;
|
|
329
|
-
}
|
|
330
|
-
/**
|
|
331
|
-
* Access linked Address records
|
|
332
|
-
* @remarks Available labels: Address__CustomerDeviceRouter
|
|
333
|
-
* @throws Error if called on a new (unsaved) record
|
|
334
|
-
*
|
|
335
|
-
* @example
|
|
336
|
-
* ```typescript
|
|
337
|
-
* // Get all linked Address records
|
|
338
|
-
* const items = await record.addresses.list();
|
|
339
|
-
* const first = await record.addresses.first();
|
|
340
|
-
*
|
|
341
|
-
* // Filter by label
|
|
342
|
-
* const specific = await record.addresses.first({ label: 'Address__CustomerDeviceRouter' });
|
|
343
|
-
* ```
|
|
344
|
-
*/
|
|
345
|
-
get addresses() {
|
|
346
|
-
var _a;
|
|
347
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
348
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
349
|
-
if (!this._addresses) {
|
|
350
|
-
this._addresses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
351
|
-
sourceEntity: 'ServiceModule:CustomerDeviceRouter',
|
|
352
|
-
targetEntity: 'CrmModule:Address',
|
|
353
|
-
targetModuleName: 'CrmModule',
|
|
354
|
-
targetEntityName: 'Address',
|
|
355
|
-
labels: ['Address__CustomerDeviceRouter'],
|
|
356
|
-
}, AddressRecord_1.AddressRecord);
|
|
357
|
-
}
|
|
358
|
-
return this._addresses;
|
|
359
|
-
}
|
|
360
142
|
// ============================================
|
|
361
143
|
// LINK MANAGEMENT
|
|
362
144
|
// ============================================
|
|
@@ -501,23 +283,6 @@ class CustomerDeviceRouterRecord {
|
|
|
501
283
|
}
|
|
502
284
|
}
|
|
503
285
|
exports.CustomerDeviceRouterRecord = CustomerDeviceRouterRecord;
|
|
504
|
-
// ============================================
|
|
505
|
-
// TYPED LINK ACCESSORS
|
|
506
|
-
// ============================================
|
|
507
|
-
/** Valid labels for FieldServiceDispatchedProduct associations */
|
|
508
|
-
CustomerDeviceRouterRecord.fieldServiceDispatchedProductsLabels = ['CustomerDeviceRouter__FieldServiceDispatchedProduct'];
|
|
509
|
-
/** Valid labels for OrderItem associations */
|
|
510
|
-
CustomerDeviceRouterRecord.orderItemsLabels = ['OrderItem__CustomerDeviceRouter'];
|
|
511
|
-
/** Valid labels for Note associations */
|
|
512
|
-
CustomerDeviceRouterRecord.notesLabels = ['CustomerDeviceRouter__Note'];
|
|
513
|
-
/** Valid labels for CustomerDeviceOnt associations */
|
|
514
|
-
CustomerDeviceRouterRecord.customerDeviceOntsLabels = ['CustomerDeviceOnt__CustomerDeviceRouter'];
|
|
515
|
-
/** Valid labels for File associations */
|
|
516
|
-
CustomerDeviceRouterRecord.filesLabels = ['CustomerDeviceRouter__File'];
|
|
517
|
-
/** Valid labels for Order associations */
|
|
518
|
-
CustomerDeviceRouterRecord.ordersLabels = ['Order__CustomerDeviceRouter'];
|
|
519
|
-
/** Valid labels for Address associations */
|
|
520
|
-
CustomerDeviceRouterRecord.addressesLabels = ['Address__CustomerDeviceRouter'];
|
|
521
286
|
/** Type guard to check if an object is a CustomerDeviceRouterRecord */
|
|
522
287
|
function isCustomerDeviceRouterRecord(obj) {
|
|
523
288
|
return obj instanceof CustomerDeviceRouterRecord;
|
|
@@ -19,10 +19,8 @@ import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
|
19
19
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
20
20
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
21
21
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
22
|
-
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
23
22
|
import { CustomerPhonePortingProperties } from '../entities-v2/CustomerPhonePorting';
|
|
24
23
|
import { VoiceConfigUpdateProperties } from '../actions-v2/VoiceConfigUpdateDto';
|
|
25
|
-
import { OrderItemRecord } from './OrderItemRecord';
|
|
26
24
|
/**
|
|
27
25
|
* Builder for action execution with dryRun support
|
|
28
26
|
*
|
|
@@ -86,7 +84,6 @@ export declare class CustomerPhonePortingRecord<TProps = CustomerPhonePortingPro
|
|
|
86
84
|
private _provider;
|
|
87
85
|
private _pendingLinks;
|
|
88
86
|
private _preGeneratedId;
|
|
89
|
-
private _orderItems?;
|
|
90
87
|
/**
|
|
91
88
|
* Create a record wrapper.
|
|
92
89
|
* @param record - The underlying record, or null for create operations
|
|
@@ -112,24 +109,6 @@ export declare class CustomerPhonePortingRecord<TProps = CustomerPhonePortingPro
|
|
|
112
109
|
get groups(): string[];
|
|
113
110
|
/** Access the underlying OdinRecord (null for new records) */
|
|
114
111
|
get record(): OdinRecord<TProps> | null;
|
|
115
|
-
/** Valid labels for OrderItem associations */
|
|
116
|
-
static readonly orderItemsLabels: readonly ["OrderItem__CustomerPhonePorting"];
|
|
117
|
-
/**
|
|
118
|
-
* Access linked OrderItem records
|
|
119
|
-
* @remarks Available labels: OrderItem__CustomerPhonePorting
|
|
120
|
-
* @throws Error if called on a new (unsaved) record
|
|
121
|
-
*
|
|
122
|
-
* @example
|
|
123
|
-
* ```typescript
|
|
124
|
-
* // Get all linked OrderItem records
|
|
125
|
-
* const items = await record.orderItems.list();
|
|
126
|
-
* const first = await record.orderItems.first();
|
|
127
|
-
*
|
|
128
|
-
* // Filter by label
|
|
129
|
-
* const specific = await record.orderItems.first({ label: 'OrderItem__CustomerPhonePorting' });
|
|
130
|
-
* ```
|
|
131
|
-
*/
|
|
132
|
-
get orderItems(): RecordLinkManager<OrderItemRecord, typeof CustomerPhonePortingRecord['orderItemsLabels'][number]>;
|
|
133
112
|
/**
|
|
134
113
|
* Queue a link to be created with the next action.
|
|
135
114
|
* Works for both create and update actions.
|
|
@@ -29,8 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = void 0;
|
|
30
30
|
const uuid_1 = require("uuid");
|
|
31
31
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
32
|
-
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
33
|
-
const OrderItemRecord_1 = require("./OrderItemRecord");
|
|
34
32
|
/**
|
|
35
33
|
* Builder for action execution with dryRun support
|
|
36
34
|
*
|
|
@@ -141,36 +139,6 @@ class CustomerPhonePortingRecord {
|
|
|
141
139
|
get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
|
|
142
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
143
141
|
get record() { return this._record; }
|
|
144
|
-
/**
|
|
145
|
-
* Access linked OrderItem records
|
|
146
|
-
* @remarks Available labels: OrderItem__CustomerPhonePorting
|
|
147
|
-
* @throws Error if called on a new (unsaved) record
|
|
148
|
-
*
|
|
149
|
-
* @example
|
|
150
|
-
* ```typescript
|
|
151
|
-
* // Get all linked OrderItem records
|
|
152
|
-
* const items = await record.orderItems.list();
|
|
153
|
-
* const first = await record.orderItems.first();
|
|
154
|
-
*
|
|
155
|
-
* // Filter by label
|
|
156
|
-
* const specific = await record.orderItems.first({ label: 'OrderItem__CustomerPhonePorting' });
|
|
157
|
-
* ```
|
|
158
|
-
*/
|
|
159
|
-
get orderItems() {
|
|
160
|
-
var _a;
|
|
161
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
162
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
163
|
-
if (!this._orderItems) {
|
|
164
|
-
this._orderItems = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
165
|
-
sourceEntity: 'ServiceModule:CustomerPhonePorting',
|
|
166
|
-
targetEntity: 'OrderModule:OrderItem',
|
|
167
|
-
targetModuleName: 'OrderModule',
|
|
168
|
-
targetEntityName: 'OrderItem',
|
|
169
|
-
labels: ['OrderItem__CustomerPhonePorting'],
|
|
170
|
-
}, OrderItemRecord_1.OrderItemRecord);
|
|
171
|
-
}
|
|
172
|
-
return this._orderItems;
|
|
173
|
-
}
|
|
174
142
|
// ============================================
|
|
175
143
|
// LINK MANAGEMENT
|
|
176
144
|
// ============================================
|
|
@@ -240,11 +208,6 @@ class CustomerPhonePortingRecord {
|
|
|
240
208
|
}
|
|
241
209
|
}
|
|
242
210
|
exports.CustomerPhonePortingRecord = CustomerPhonePortingRecord;
|
|
243
|
-
// ============================================
|
|
244
|
-
// TYPED LINK ACCESSORS
|
|
245
|
-
// ============================================
|
|
246
|
-
/** Valid labels for OrderItem associations */
|
|
247
|
-
CustomerPhonePortingRecord.orderItemsLabels = ['OrderItem__CustomerPhonePorting'];
|
|
248
211
|
/** Type guard to check if an object is a CustomerPhonePortingRecord */
|
|
249
212
|
function isCustomerPhonePortingRecord(obj) {
|
|
250
213
|
return obj instanceof CustomerPhonePortingRecord;
|
|
@@ -19,16 +19,9 @@ import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
|
19
19
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
20
20
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
21
21
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
22
|
-
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
23
22
|
import { DiscountProperties } from '../entities-v2/Discount';
|
|
24
23
|
import { DiscountCreateProperties } from '../actions-v2/DiscountCreateDto';
|
|
25
24
|
import { DiscountUpdateProperties } from '../actions-v2/DiscountUpdateDto';
|
|
26
|
-
import { NoteRecord } from './NoteRecord';
|
|
27
|
-
import { LeadRecord } from './LeadRecord';
|
|
28
|
-
import { OrderRecord } from './OrderRecord';
|
|
29
|
-
import { OfferRecord } from './OfferRecord';
|
|
30
|
-
import { FileRecord } from './FileRecord';
|
|
31
|
-
import { InvoiceRecord } from './InvoiceRecord';
|
|
32
25
|
/**
|
|
33
26
|
* Builder for action execution with dryRun support
|
|
34
27
|
*
|
|
@@ -92,12 +85,6 @@ export declare class DiscountRecord<TProps = DiscountProperties> {
|
|
|
92
85
|
private _provider;
|
|
93
86
|
private _pendingLinks;
|
|
94
87
|
private _preGeneratedId;
|
|
95
|
-
private _notes?;
|
|
96
|
-
private _leads?;
|
|
97
|
-
private _orders?;
|
|
98
|
-
private _offers?;
|
|
99
|
-
private _files?;
|
|
100
|
-
private _invoices?;
|
|
101
88
|
/**
|
|
102
89
|
* Create a record wrapper.
|
|
103
90
|
* @param record - The underlying record, or null for create operations
|
|
@@ -123,114 +110,6 @@ export declare class DiscountRecord<TProps = DiscountProperties> {
|
|
|
123
110
|
get groups(): string[];
|
|
124
111
|
/** Access the underlying OdinRecord (null for new records) */
|
|
125
112
|
get record(): OdinRecord<TProps> | null;
|
|
126
|
-
/** Valid labels for Note associations */
|
|
127
|
-
static readonly notesLabels: readonly ["Discount__Note"];
|
|
128
|
-
/**
|
|
129
|
-
* Access linked Note records
|
|
130
|
-
* @remarks Available labels: Discount__Note
|
|
131
|
-
* @throws Error if called on a new (unsaved) record
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```typescript
|
|
135
|
-
* // Get all linked Note records
|
|
136
|
-
* const items = await record.notes.list();
|
|
137
|
-
* const first = await record.notes.first();
|
|
138
|
-
*
|
|
139
|
-
* // Filter by label
|
|
140
|
-
* const specific = await record.notes.first({ label: 'Discount__Note' });
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
get notes(): RecordLinkManager<NoteRecord, typeof DiscountRecord['notesLabels'][number]>;
|
|
144
|
-
/** Valid labels for Lead associations */
|
|
145
|
-
static readonly leadsLabels: readonly ["Lead__Discount"];
|
|
146
|
-
/**
|
|
147
|
-
* Access linked Lead records
|
|
148
|
-
* @remarks Available labels: Lead__Discount
|
|
149
|
-
* @throws Error if called on a new (unsaved) record
|
|
150
|
-
*
|
|
151
|
-
* @example
|
|
152
|
-
* ```typescript
|
|
153
|
-
* // Get all linked Lead records
|
|
154
|
-
* const items = await record.leads.list();
|
|
155
|
-
* const first = await record.leads.first();
|
|
156
|
-
*
|
|
157
|
-
* // Filter by label
|
|
158
|
-
* const specific = await record.leads.first({ label: 'Lead__Discount' });
|
|
159
|
-
* ```
|
|
160
|
-
*/
|
|
161
|
-
get leads(): RecordLinkManager<LeadRecord, typeof DiscountRecord['leadsLabels'][number]>;
|
|
162
|
-
/** Valid labels for Order associations */
|
|
163
|
-
static readonly ordersLabels: readonly ["Order__Discount"];
|
|
164
|
-
/**
|
|
165
|
-
* Access linked Order records
|
|
166
|
-
* @remarks Available labels: Order__Discount
|
|
167
|
-
* @throws Error if called on a new (unsaved) record
|
|
168
|
-
*
|
|
169
|
-
* @example
|
|
170
|
-
* ```typescript
|
|
171
|
-
* // Get all linked Order records
|
|
172
|
-
* const items = await record.orders.list();
|
|
173
|
-
* const first = await record.orders.first();
|
|
174
|
-
*
|
|
175
|
-
* // Filter by label
|
|
176
|
-
* const specific = await record.orders.first({ label: 'Order__Discount' });
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
179
|
-
get orders(): RecordLinkManager<OrderRecord, typeof DiscountRecord['ordersLabels'][number]>;
|
|
180
|
-
/** Valid labels for Offer associations */
|
|
181
|
-
static readonly offersLabels: readonly ["Offer__Discount"];
|
|
182
|
-
/**
|
|
183
|
-
* Access linked Offer records
|
|
184
|
-
* @remarks Available labels: Offer__Discount
|
|
185
|
-
* @throws Error if called on a new (unsaved) record
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* ```typescript
|
|
189
|
-
* // Get all linked Offer records
|
|
190
|
-
* const items = await record.offers.list();
|
|
191
|
-
* const first = await record.offers.first();
|
|
192
|
-
*
|
|
193
|
-
* // Filter by label
|
|
194
|
-
* const specific = await record.offers.first({ label: 'Offer__Discount' });
|
|
195
|
-
* ```
|
|
196
|
-
*/
|
|
197
|
-
get offers(): RecordLinkManager<OfferRecord, typeof DiscountRecord['offersLabels'][number]>;
|
|
198
|
-
/** Valid labels for File associations */
|
|
199
|
-
static readonly filesLabels: readonly ["Discount__File"];
|
|
200
|
-
/**
|
|
201
|
-
* Access linked File records
|
|
202
|
-
* @remarks Available labels: Discount__File
|
|
203
|
-
* @throws Error if called on a new (unsaved) record
|
|
204
|
-
*
|
|
205
|
-
* @example
|
|
206
|
-
* ```typescript
|
|
207
|
-
* // Get all linked File records
|
|
208
|
-
* const items = await record.files.list();
|
|
209
|
-
* const first = await record.files.first();
|
|
210
|
-
*
|
|
211
|
-
* // Filter by label
|
|
212
|
-
* const specific = await record.files.first({ label: 'Discount__File' });
|
|
213
|
-
* ```
|
|
214
|
-
*/
|
|
215
|
-
get files(): RecordLinkManager<FileRecord, typeof DiscountRecord['filesLabels'][number]>;
|
|
216
|
-
/** Valid labels for Invoice associations */
|
|
217
|
-
static readonly invoicesLabels: readonly ["Invoice__Discount"];
|
|
218
|
-
/**
|
|
219
|
-
* Access linked Invoice records
|
|
220
|
-
* @remarks Available labels: Invoice__Discount
|
|
221
|
-
* @throws Error if called on a new (unsaved) record
|
|
222
|
-
*
|
|
223
|
-
* @example
|
|
224
|
-
* ```typescript
|
|
225
|
-
* // Get all linked Invoice records
|
|
226
|
-
* const items = await record.invoices.list();
|
|
227
|
-
* const first = await record.invoices.first();
|
|
228
|
-
*
|
|
229
|
-
* // Filter by label
|
|
230
|
-
* const specific = await record.invoices.first({ label: 'Invoice__Discount' });
|
|
231
|
-
* ```
|
|
232
|
-
*/
|
|
233
|
-
get invoices(): RecordLinkManager<InvoiceRecord, typeof DiscountRecord['invoicesLabels'][number]>;
|
|
234
113
|
/**
|
|
235
114
|
* Queue a link to be created with the next action.
|
|
236
115
|
* Works for both create and update actions.
|