@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
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* await record.createCall({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: DEFAULT
|
|
18
|
-
*
|
|
19
17
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
18
|
*/
|
|
21
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -31,16 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
29
|
exports.isCallRecord = exports.CallRecord = 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
|
-
const ActivityLogRecord_1 = require("./ActivityLogRecord");
|
|
36
|
-
const LeadRecord_1 = require("./LeadRecord");
|
|
37
|
-
const ContactRecord_1 = require("./ContactRecord");
|
|
38
|
-
const CaseRecord_1 = require("./CaseRecord");
|
|
39
|
-
const WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
40
|
-
const FileRecord_1 = require("./FileRecord");
|
|
41
|
-
const CallLegRecord_1 = require("./CallLegRecord");
|
|
42
|
-
const CallTransferRecord_1 = require("./CallTransferRecord");
|
|
43
|
-
const CallEventRecord_1 = require("./CallEventRecord");
|
|
44
32
|
/**
|
|
45
33
|
* Builder for action execution with dryRun support
|
|
46
34
|
*
|
|
@@ -152,295 +140,6 @@ class CallRecord {
|
|
|
152
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
153
141
|
get record() { return this._record; }
|
|
154
142
|
// ============================================
|
|
155
|
-
// TYPE GUARDS (with TypeScript type predicates)
|
|
156
|
-
// ============================================
|
|
157
|
-
/**
|
|
158
|
-
* Type guard: check if this record is of type DEFAULT
|
|
159
|
-
*
|
|
160
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
161
|
-
* giving you access to DEFAULT-specific properties.
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* ```typescript
|
|
165
|
-
* if (record.isDefault()) {
|
|
166
|
-
* // TypeScript knows record.properties is CallProperties
|
|
167
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
168
|
-
* }
|
|
169
|
-
* ```
|
|
170
|
-
* @remarks This is the default record type
|
|
171
|
-
*/
|
|
172
|
-
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
173
|
-
/**
|
|
174
|
-
* Access linked ActivityLog records
|
|
175
|
-
* @remarks Available labels: CallActivity
|
|
176
|
-
* @throws Error if called on a new (unsaved) record
|
|
177
|
-
*
|
|
178
|
-
* @example
|
|
179
|
-
* ```typescript
|
|
180
|
-
* // Get all linked ActivityLog records
|
|
181
|
-
* const items = await record.activityLogs.list();
|
|
182
|
-
* const first = await record.activityLogs.first();
|
|
183
|
-
*
|
|
184
|
-
* // Filter by label
|
|
185
|
-
* const specific = await record.activityLogs.first({ label: 'CallActivity' });
|
|
186
|
-
* ```
|
|
187
|
-
*/
|
|
188
|
-
get activityLogs() {
|
|
189
|
-
var _a;
|
|
190
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
191
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
192
|
-
if (!this._activityLogs) {
|
|
193
|
-
this._activityLogs = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
194
|
-
sourceEntity: 'NotificationModule:Call',
|
|
195
|
-
targetEntity: 'AuditModule:ActivityLog',
|
|
196
|
-
targetModuleName: 'AuditModule',
|
|
197
|
-
targetEntityName: 'ActivityLog',
|
|
198
|
-
labels: ['CallActivity'],
|
|
199
|
-
}, ActivityLogRecord_1.ActivityLogRecord);
|
|
200
|
-
}
|
|
201
|
-
return this._activityLogs;
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Access linked Lead records
|
|
205
|
-
* @remarks Available labels: Call__Lead
|
|
206
|
-
* @throws Error if called on a new (unsaved) record
|
|
207
|
-
*
|
|
208
|
-
* @example
|
|
209
|
-
* ```typescript
|
|
210
|
-
* // Get all linked Lead records
|
|
211
|
-
* const items = await record.leads.list();
|
|
212
|
-
* const first = await record.leads.first();
|
|
213
|
-
*
|
|
214
|
-
* // Filter by label
|
|
215
|
-
* const specific = await record.leads.first({ label: 'Call__Lead' });
|
|
216
|
-
* ```
|
|
217
|
-
*/
|
|
218
|
-
get leads() {
|
|
219
|
-
var _a;
|
|
220
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
221
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
222
|
-
if (!this._leads) {
|
|
223
|
-
this._leads = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
224
|
-
sourceEntity: 'NotificationModule:Call',
|
|
225
|
-
targetEntity: 'CrmModule:Lead',
|
|
226
|
-
targetModuleName: 'CrmModule',
|
|
227
|
-
targetEntityName: 'Lead',
|
|
228
|
-
labels: ['Call__Lead'],
|
|
229
|
-
}, LeadRecord_1.LeadRecord);
|
|
230
|
-
}
|
|
231
|
-
return this._leads;
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Access linked Contact records
|
|
235
|
-
* @remarks Available labels: Call__Contact
|
|
236
|
-
* @throws Error if called on a new (unsaved) record
|
|
237
|
-
*
|
|
238
|
-
* @example
|
|
239
|
-
* ```typescript
|
|
240
|
-
* // Get all linked Contact records
|
|
241
|
-
* const items = await record.contacts.list();
|
|
242
|
-
* const first = await record.contacts.first();
|
|
243
|
-
*
|
|
244
|
-
* // Filter by label
|
|
245
|
-
* const specific = await record.contacts.first({ label: 'Call__Contact' });
|
|
246
|
-
* ```
|
|
247
|
-
*/
|
|
248
|
-
get contacts() {
|
|
249
|
-
var _a;
|
|
250
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
251
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
252
|
-
if (!this._contacts) {
|
|
253
|
-
this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
254
|
-
sourceEntity: 'NotificationModule:Call',
|
|
255
|
-
targetEntity: 'CrmModule:Contact',
|
|
256
|
-
targetModuleName: 'CrmModule',
|
|
257
|
-
targetEntityName: 'Contact',
|
|
258
|
-
labels: ['Call__Contact'],
|
|
259
|
-
}, ContactRecord_1.ContactRecord);
|
|
260
|
-
}
|
|
261
|
-
return this._contacts;
|
|
262
|
-
}
|
|
263
|
-
/**
|
|
264
|
-
* Access linked Case records
|
|
265
|
-
* @remarks Available labels: Call__Case
|
|
266
|
-
* @throws Error if called on a new (unsaved) record
|
|
267
|
-
*
|
|
268
|
-
* @example
|
|
269
|
-
* ```typescript
|
|
270
|
-
* // Get all linked Case records
|
|
271
|
-
* const items = await record.cases.list();
|
|
272
|
-
* const first = await record.cases.first();
|
|
273
|
-
*
|
|
274
|
-
* // Filter by label
|
|
275
|
-
* const specific = await record.cases.first({ label: 'Call__Case' });
|
|
276
|
-
* ```
|
|
277
|
-
*/
|
|
278
|
-
get cases() {
|
|
279
|
-
var _a;
|
|
280
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
281
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
282
|
-
if (!this._cases) {
|
|
283
|
-
this._cases = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
284
|
-
sourceEntity: 'NotificationModule:Call',
|
|
285
|
-
targetEntity: 'SupportModule:Case',
|
|
286
|
-
targetModuleName: 'SupportModule',
|
|
287
|
-
targetEntityName: 'Case',
|
|
288
|
-
labels: ['Call__Case'],
|
|
289
|
-
}, CaseRecord_1.CaseRecord);
|
|
290
|
-
}
|
|
291
|
-
return this._cases;
|
|
292
|
-
}
|
|
293
|
-
/**
|
|
294
|
-
* Access linked WorkOrder records
|
|
295
|
-
* @remarks Available labels: Call__WorkOrder
|
|
296
|
-
* @throws Error if called on a new (unsaved) record
|
|
297
|
-
*
|
|
298
|
-
* @example
|
|
299
|
-
* ```typescript
|
|
300
|
-
* // Get all linked WorkOrder records
|
|
301
|
-
* const items = await record.workOrders.list();
|
|
302
|
-
* const first = await record.workOrders.first();
|
|
303
|
-
*
|
|
304
|
-
* // Filter by label
|
|
305
|
-
* const specific = await record.workOrders.first({ label: 'Call__WorkOrder' });
|
|
306
|
-
* ```
|
|
307
|
-
*/
|
|
308
|
-
get workOrders() {
|
|
309
|
-
var _a;
|
|
310
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
311
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
312
|
-
if (!this._workOrders) {
|
|
313
|
-
this._workOrders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
314
|
-
sourceEntity: 'NotificationModule:Call',
|
|
315
|
-
targetEntity: 'FieldServiceModule:WorkOrder',
|
|
316
|
-
targetModuleName: 'FieldServiceModule',
|
|
317
|
-
targetEntityName: 'WorkOrder',
|
|
318
|
-
labels: ['Call__WorkOrder'],
|
|
319
|
-
}, WorkOrderRecord_1.WorkOrderRecord);
|
|
320
|
-
}
|
|
321
|
-
return this._workOrders;
|
|
322
|
-
}
|
|
323
|
-
/**
|
|
324
|
-
* Access linked File records
|
|
325
|
-
* @remarks Available labels: Call__File
|
|
326
|
-
* @throws Error if called on a new (unsaved) record
|
|
327
|
-
*
|
|
328
|
-
* @example
|
|
329
|
-
* ```typescript
|
|
330
|
-
* // Get all linked File records
|
|
331
|
-
* const items = await record.files.list();
|
|
332
|
-
* const first = await record.files.first();
|
|
333
|
-
*
|
|
334
|
-
* // Filter by label
|
|
335
|
-
* const specific = await record.files.first({ label: 'Call__File' });
|
|
336
|
-
* ```
|
|
337
|
-
*/
|
|
338
|
-
get files() {
|
|
339
|
-
var _a;
|
|
340
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
341
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
342
|
-
if (!this._files) {
|
|
343
|
-
this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
344
|
-
sourceEntity: 'NotificationModule:Call',
|
|
345
|
-
targetEntity: 'SchemaModule:File',
|
|
346
|
-
targetModuleName: 'SchemaModule',
|
|
347
|
-
targetEntityName: 'File',
|
|
348
|
-
labels: ['Call__File'],
|
|
349
|
-
}, FileRecord_1.FileRecord);
|
|
350
|
-
}
|
|
351
|
-
return this._files;
|
|
352
|
-
}
|
|
353
|
-
/**
|
|
354
|
-
* Access linked CallLeg records
|
|
355
|
-
* @remarks Available labels: Call__CallLeg, CallLeg_Call
|
|
356
|
-
* @throws Error if called on a new (unsaved) record
|
|
357
|
-
*
|
|
358
|
-
* @example
|
|
359
|
-
* ```typescript
|
|
360
|
-
* // Get all linked CallLeg records
|
|
361
|
-
* const items = await record.callLegs.list();
|
|
362
|
-
* const first = await record.callLegs.first();
|
|
363
|
-
*
|
|
364
|
-
* // Filter by label
|
|
365
|
-
* const specific = await record.callLegs.first({ label: 'Call__CallLeg' });
|
|
366
|
-
* ```
|
|
367
|
-
*/
|
|
368
|
-
get callLegs() {
|
|
369
|
-
var _a;
|
|
370
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
371
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
372
|
-
if (!this._callLegs) {
|
|
373
|
-
this._callLegs = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
374
|
-
sourceEntity: 'NotificationModule:Call',
|
|
375
|
-
targetEntity: 'NotificationModule:CallLeg',
|
|
376
|
-
targetModuleName: 'NotificationModule',
|
|
377
|
-
targetEntityName: 'CallLeg',
|
|
378
|
-
labels: ['Call__CallLeg', 'CallLeg_Call'],
|
|
379
|
-
}, CallLegRecord_1.CallLegRecord);
|
|
380
|
-
}
|
|
381
|
-
return this._callLegs;
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Access linked CallTransfer records
|
|
385
|
-
* @remarks Available labels: Call_CallTransfer
|
|
386
|
-
* @throws Error if called on a new (unsaved) record
|
|
387
|
-
*
|
|
388
|
-
* @example
|
|
389
|
-
* ```typescript
|
|
390
|
-
* // Get all linked CallTransfer records
|
|
391
|
-
* const items = await record.callTransfers.list();
|
|
392
|
-
* const first = await record.callTransfers.first();
|
|
393
|
-
*
|
|
394
|
-
* // Filter by label
|
|
395
|
-
* const specific = await record.callTransfers.first({ label: 'Call_CallTransfer' });
|
|
396
|
-
* ```
|
|
397
|
-
*/
|
|
398
|
-
get callTransfers() {
|
|
399
|
-
var _a;
|
|
400
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
401
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
402
|
-
if (!this._callTransfers) {
|
|
403
|
-
this._callTransfers = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
404
|
-
sourceEntity: 'NotificationModule:Call',
|
|
405
|
-
targetEntity: 'NotificationModule:CallTransfer',
|
|
406
|
-
targetModuleName: 'NotificationModule',
|
|
407
|
-
targetEntityName: 'CallTransfer',
|
|
408
|
-
labels: ['Call_CallTransfer'],
|
|
409
|
-
}, CallTransferRecord_1.CallTransferRecord);
|
|
410
|
-
}
|
|
411
|
-
return this._callTransfers;
|
|
412
|
-
}
|
|
413
|
-
/**
|
|
414
|
-
* Access linked CallEvent records
|
|
415
|
-
* @remarks Available labels: Call_CallEvent
|
|
416
|
-
* @throws Error if called on a new (unsaved) record
|
|
417
|
-
*
|
|
418
|
-
* @example
|
|
419
|
-
* ```typescript
|
|
420
|
-
* // Get all linked CallEvent records
|
|
421
|
-
* const items = await record.callEvents.list();
|
|
422
|
-
* const first = await record.callEvents.first();
|
|
423
|
-
*
|
|
424
|
-
* // Filter by label
|
|
425
|
-
* const specific = await record.callEvents.first({ label: 'Call_CallEvent' });
|
|
426
|
-
* ```
|
|
427
|
-
*/
|
|
428
|
-
get callEvents() {
|
|
429
|
-
var _a;
|
|
430
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
431
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
432
|
-
if (!this._callEvents) {
|
|
433
|
-
this._callEvents = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
434
|
-
sourceEntity: 'NotificationModule:Call',
|
|
435
|
-
targetEntity: 'NotificationModule:CallEvent',
|
|
436
|
-
targetModuleName: 'NotificationModule',
|
|
437
|
-
targetEntityName: 'CallEvent',
|
|
438
|
-
labels: ['Call_CallEvent'],
|
|
439
|
-
}, CallEventRecord_1.CallEventRecord);
|
|
440
|
-
}
|
|
441
|
-
return this._callEvents;
|
|
442
|
-
}
|
|
443
|
-
// ============================================
|
|
444
143
|
// LINK MANAGEMENT
|
|
445
144
|
// ============================================
|
|
446
145
|
/**
|
|
@@ -509,27 +208,6 @@ class CallRecord {
|
|
|
509
208
|
}
|
|
510
209
|
}
|
|
511
210
|
exports.CallRecord = CallRecord;
|
|
512
|
-
// ============================================
|
|
513
|
-
// TYPED LINK ACCESSORS
|
|
514
|
-
// ============================================
|
|
515
|
-
/** Valid labels for ActivityLog associations */
|
|
516
|
-
CallRecord.activityLogsLabels = ['CallActivity'];
|
|
517
|
-
/** Valid labels for Lead associations */
|
|
518
|
-
CallRecord.leadsLabels = ['Call__Lead'];
|
|
519
|
-
/** Valid labels for Contact associations */
|
|
520
|
-
CallRecord.contactsLabels = ['Call__Contact'];
|
|
521
|
-
/** Valid labels for Case associations */
|
|
522
|
-
CallRecord.casesLabels = ['Call__Case'];
|
|
523
|
-
/** Valid labels for WorkOrder associations */
|
|
524
|
-
CallRecord.workOrdersLabels = ['Call__WorkOrder'];
|
|
525
|
-
/** Valid labels for File associations */
|
|
526
|
-
CallRecord.filesLabels = ['Call__File'];
|
|
527
|
-
/** Valid labels for CallLeg associations */
|
|
528
|
-
CallRecord.callLegsLabels = ['Call__CallLeg', 'CallLeg_Call'];
|
|
529
|
-
/** Valid labels for CallTransfer associations */
|
|
530
|
-
CallRecord.callTransfersLabels = ['Call_CallTransfer'];
|
|
531
|
-
/** Valid labels for CallEvent associations */
|
|
532
|
-
CallRecord.callEventsLabels = ['Call_CallEvent'];
|
|
533
211
|
/** Type guard to check if an object is a CallRecord */
|
|
534
212
|
function isCallRecord(obj) {
|
|
535
213
|
return obj instanceof CallRecord;
|
|
@@ -13,23 +13,14 @@
|
|
|
13
13
|
* await record.createCallTransfer({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: DEFAULT
|
|
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 { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
22
|
import { CallTransferProperties } from '../entities-v2/CallTransfer';
|
|
26
23
|
import { CreateCallTransferProperties } from '../actions-v2/CreateCallTransferDto';
|
|
27
|
-
import { CallRecord } from './CallRecord';
|
|
28
|
-
import { CallLegRecord } from './CallLegRecord';
|
|
29
|
-
import { CallEventRecord } from './CallEventRecord';
|
|
30
|
-
import { UserRecord } from './UserRecord';
|
|
31
|
-
/** Valid entity types for CallTransfer */
|
|
32
|
-
export declare type CallTransferType = 'DEFAULT';
|
|
33
24
|
/**
|
|
34
25
|
* Builder for action execution with dryRun support
|
|
35
26
|
*
|
|
@@ -93,10 +84,6 @@ export declare class CallTransferRecord<TProps = CallTransferProperties> {
|
|
|
93
84
|
private _provider;
|
|
94
85
|
private _pendingLinks;
|
|
95
86
|
private _preGeneratedId;
|
|
96
|
-
private _calls?;
|
|
97
|
-
private _callLegs?;
|
|
98
|
-
private _callEvents?;
|
|
99
|
-
private _users?;
|
|
100
87
|
/**
|
|
101
88
|
* Create a record wrapper.
|
|
102
89
|
* @param record - The underlying record, or null for create operations
|
|
@@ -109,7 +96,7 @@ export declare class CallTransferRecord<TProps = CallTransferProperties> {
|
|
|
109
96
|
/** Record ID - always available (pre-generated for new records) */
|
|
110
97
|
get id(): string;
|
|
111
98
|
get entity(): string;
|
|
112
|
-
get type():
|
|
99
|
+
get type(): string | undefined;
|
|
113
100
|
/** Record properties - empty object for new (unsaved) records */
|
|
114
101
|
get properties(): TProps;
|
|
115
102
|
get title(): string | undefined;
|
|
@@ -122,94 +109,6 @@ export declare class CallTransferRecord<TProps = CallTransferProperties> {
|
|
|
122
109
|
get groups(): string[];
|
|
123
110
|
/** Access the underlying OdinRecord (null for new records) */
|
|
124
111
|
get record(): OdinRecord<TProps> | null;
|
|
125
|
-
/**
|
|
126
|
-
* Type guard: check if this record is of type DEFAULT
|
|
127
|
-
*
|
|
128
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
129
|
-
* giving you access to DEFAULT-specific properties.
|
|
130
|
-
*
|
|
131
|
-
* @example
|
|
132
|
-
* ```typescript
|
|
133
|
-
* if (record.isDefault()) {
|
|
134
|
-
* // TypeScript knows record.properties is CallTransferProperties
|
|
135
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
136
|
-
* }
|
|
137
|
-
* ```
|
|
138
|
-
* @remarks This is the default record type
|
|
139
|
-
*/
|
|
140
|
-
isDefault(): this is CallTransferRecord<CallTransferProperties>;
|
|
141
|
-
/** Valid labels for Call associations */
|
|
142
|
-
static readonly callsLabels: readonly ["Call_CallTransfer"];
|
|
143
|
-
/**
|
|
144
|
-
* Access linked Call records
|
|
145
|
-
* @remarks Available labels: Call_CallTransfer
|
|
146
|
-
* @throws Error if called on a new (unsaved) record
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
* ```typescript
|
|
150
|
-
* // Get all linked Call records
|
|
151
|
-
* const items = await record.calls.list();
|
|
152
|
-
* const first = await record.calls.first();
|
|
153
|
-
*
|
|
154
|
-
* // Filter by label
|
|
155
|
-
* const specific = await record.calls.first({ label: 'Call_CallTransfer' });
|
|
156
|
-
* ```
|
|
157
|
-
*/
|
|
158
|
-
get calls(): RecordLinkManager<CallRecord, typeof CallTransferRecord['callsLabels'][number]>;
|
|
159
|
-
/** Valid labels for CallLeg associations */
|
|
160
|
-
static readonly callLegsLabels: readonly ["CallTransfer_TargetLeg", "CallTransfer_SourceLeg", "CallLeg_CallTransfer"];
|
|
161
|
-
/**
|
|
162
|
-
* Access linked CallLeg records
|
|
163
|
-
* @remarks Available labels: CallTransfer_TargetLeg, CallTransfer_SourceLeg, CallLeg_CallTransfer
|
|
164
|
-
* @throws Error if called on a new (unsaved) record
|
|
165
|
-
*
|
|
166
|
-
* @example
|
|
167
|
-
* ```typescript
|
|
168
|
-
* // Get all linked CallLeg records
|
|
169
|
-
* const items = await record.callLegs.list();
|
|
170
|
-
* const first = await record.callLegs.first();
|
|
171
|
-
*
|
|
172
|
-
* // Filter by label
|
|
173
|
-
* const specific = await record.callLegs.first({ label: 'CallTransfer_TargetLeg' });
|
|
174
|
-
* ```
|
|
175
|
-
*/
|
|
176
|
-
get callLegs(): RecordLinkManager<CallLegRecord, typeof CallTransferRecord['callLegsLabels'][number]>;
|
|
177
|
-
/** Valid labels for CallEvent associations */
|
|
178
|
-
static readonly callEventsLabels: readonly ["CallEvent_CallTrasnfer"];
|
|
179
|
-
/**
|
|
180
|
-
* Access linked CallEvent records
|
|
181
|
-
* @remarks Available labels: CallEvent_CallTrasnfer
|
|
182
|
-
* @throws Error if called on a new (unsaved) record
|
|
183
|
-
*
|
|
184
|
-
* @example
|
|
185
|
-
* ```typescript
|
|
186
|
-
* // Get all linked CallEvent records
|
|
187
|
-
* const items = await record.callEvents.list();
|
|
188
|
-
* const first = await record.callEvents.first();
|
|
189
|
-
*
|
|
190
|
-
* // Filter by label
|
|
191
|
-
* const specific = await record.callEvents.first({ label: 'CallEvent_CallTrasnfer' });
|
|
192
|
-
* ```
|
|
193
|
-
*/
|
|
194
|
-
get callEvents(): RecordLinkManager<CallEventRecord, typeof CallTransferRecord['callEventsLabels'][number]>;
|
|
195
|
-
/** Valid labels for User associations */
|
|
196
|
-
static readonly usersLabels: readonly ["CallTransfer_ToAgent", "CallTransfer_FromAgent"];
|
|
197
|
-
/**
|
|
198
|
-
* Access linked User records
|
|
199
|
-
* @remarks Available labels: CallTransfer_ToAgent, CallTransfer_FromAgent
|
|
200
|
-
* @throws Error if called on a new (unsaved) record
|
|
201
|
-
*
|
|
202
|
-
* @example
|
|
203
|
-
* ```typescript
|
|
204
|
-
* // Get all linked User records
|
|
205
|
-
* const items = await record.users.list();
|
|
206
|
-
* const first = await record.users.first();
|
|
207
|
-
*
|
|
208
|
-
* // Filter by label
|
|
209
|
-
* const specific = await record.users.first({ label: 'CallTransfer_ToAgent' });
|
|
210
|
-
* ```
|
|
211
|
-
*/
|
|
212
|
-
get users(): RecordLinkManager<UserRecord, typeof CallTransferRecord['usersLabels'][number]>;
|
|
213
112
|
/**
|
|
214
113
|
* Queue a link to be created with the next action.
|
|
215
114
|
* Works for both create and update actions.
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* await record.createCallTransfer({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: DEFAULT
|
|
18
|
-
*
|
|
19
17
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
18
|
*/
|
|
21
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -31,11 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
29
|
exports.isCallTransferRecord = exports.CallTransferRecord = 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
|
-
const CallRecord_1 = require("./CallRecord");
|
|
36
|
-
const CallLegRecord_1 = require("./CallLegRecord");
|
|
37
|
-
const CallEventRecord_1 = require("./CallEventRecord");
|
|
38
|
-
const UserRecord_1 = require("./UserRecord");
|
|
39
32
|
/**
|
|
40
33
|
* Builder for action execution with dryRun support
|
|
41
34
|
*
|
|
@@ -147,145 +140,6 @@ class CallTransferRecord {
|
|
|
147
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
148
141
|
get record() { return this._record; }
|
|
149
142
|
// ============================================
|
|
150
|
-
// TYPE GUARDS (with TypeScript type predicates)
|
|
151
|
-
// ============================================
|
|
152
|
-
/**
|
|
153
|
-
* Type guard: check if this record is of type DEFAULT
|
|
154
|
-
*
|
|
155
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
156
|
-
* giving you access to DEFAULT-specific properties.
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```typescript
|
|
160
|
-
* if (record.isDefault()) {
|
|
161
|
-
* // TypeScript knows record.properties is CallTransferProperties
|
|
162
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
|
-
* @remarks This is the default record type
|
|
166
|
-
*/
|
|
167
|
-
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
168
|
-
/**
|
|
169
|
-
* Access linked Call records
|
|
170
|
-
* @remarks Available labels: Call_CallTransfer
|
|
171
|
-
* @throws Error if called on a new (unsaved) record
|
|
172
|
-
*
|
|
173
|
-
* @example
|
|
174
|
-
* ```typescript
|
|
175
|
-
* // Get all linked Call records
|
|
176
|
-
* const items = await record.calls.list();
|
|
177
|
-
* const first = await record.calls.first();
|
|
178
|
-
*
|
|
179
|
-
* // Filter by label
|
|
180
|
-
* const specific = await record.calls.first({ label: 'Call_CallTransfer' });
|
|
181
|
-
* ```
|
|
182
|
-
*/
|
|
183
|
-
get calls() {
|
|
184
|
-
var _a;
|
|
185
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
186
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
187
|
-
if (!this._calls) {
|
|
188
|
-
this._calls = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
189
|
-
sourceEntity: 'NotificationModule:CallTransfer',
|
|
190
|
-
targetEntity: 'NotificationModule:Call',
|
|
191
|
-
targetModuleName: 'NotificationModule',
|
|
192
|
-
targetEntityName: 'Call',
|
|
193
|
-
labels: ['Call_CallTransfer'],
|
|
194
|
-
}, CallRecord_1.CallRecord);
|
|
195
|
-
}
|
|
196
|
-
return this._calls;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Access linked CallLeg records
|
|
200
|
-
* @remarks Available labels: CallTransfer_TargetLeg, CallTransfer_SourceLeg, CallLeg_CallTransfer
|
|
201
|
-
* @throws Error if called on a new (unsaved) record
|
|
202
|
-
*
|
|
203
|
-
* @example
|
|
204
|
-
* ```typescript
|
|
205
|
-
* // Get all linked CallLeg records
|
|
206
|
-
* const items = await record.callLegs.list();
|
|
207
|
-
* const first = await record.callLegs.first();
|
|
208
|
-
*
|
|
209
|
-
* // Filter by label
|
|
210
|
-
* const specific = await record.callLegs.first({ label: 'CallTransfer_TargetLeg' });
|
|
211
|
-
* ```
|
|
212
|
-
*/
|
|
213
|
-
get callLegs() {
|
|
214
|
-
var _a;
|
|
215
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
216
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
217
|
-
if (!this._callLegs) {
|
|
218
|
-
this._callLegs = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
219
|
-
sourceEntity: 'NotificationModule:CallTransfer',
|
|
220
|
-
targetEntity: 'NotificationModule:CallLeg',
|
|
221
|
-
targetModuleName: 'NotificationModule',
|
|
222
|
-
targetEntityName: 'CallLeg',
|
|
223
|
-
labels: ['CallTransfer_TargetLeg', 'CallTransfer_SourceLeg', 'CallLeg_CallTransfer'],
|
|
224
|
-
}, CallLegRecord_1.CallLegRecord);
|
|
225
|
-
}
|
|
226
|
-
return this._callLegs;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Access linked CallEvent records
|
|
230
|
-
* @remarks Available labels: CallEvent_CallTrasnfer
|
|
231
|
-
* @throws Error if called on a new (unsaved) record
|
|
232
|
-
*
|
|
233
|
-
* @example
|
|
234
|
-
* ```typescript
|
|
235
|
-
* // Get all linked CallEvent records
|
|
236
|
-
* const items = await record.callEvents.list();
|
|
237
|
-
* const first = await record.callEvents.first();
|
|
238
|
-
*
|
|
239
|
-
* // Filter by label
|
|
240
|
-
* const specific = await record.callEvents.first({ label: 'CallEvent_CallTrasnfer' });
|
|
241
|
-
* ```
|
|
242
|
-
*/
|
|
243
|
-
get callEvents() {
|
|
244
|
-
var _a;
|
|
245
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
246
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
247
|
-
if (!this._callEvents) {
|
|
248
|
-
this._callEvents = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
249
|
-
sourceEntity: 'NotificationModule:CallTransfer',
|
|
250
|
-
targetEntity: 'NotificationModule:CallEvent',
|
|
251
|
-
targetModuleName: 'NotificationModule',
|
|
252
|
-
targetEntityName: 'CallEvent',
|
|
253
|
-
labels: ['CallEvent_CallTrasnfer'],
|
|
254
|
-
}, CallEventRecord_1.CallEventRecord);
|
|
255
|
-
}
|
|
256
|
-
return this._callEvents;
|
|
257
|
-
}
|
|
258
|
-
/**
|
|
259
|
-
* Access linked User records
|
|
260
|
-
* @remarks Available labels: CallTransfer_ToAgent, CallTransfer_FromAgent
|
|
261
|
-
* @throws Error if called on a new (unsaved) record
|
|
262
|
-
*
|
|
263
|
-
* @example
|
|
264
|
-
* ```typescript
|
|
265
|
-
* // Get all linked User records
|
|
266
|
-
* const items = await record.users.list();
|
|
267
|
-
* const first = await record.users.first();
|
|
268
|
-
*
|
|
269
|
-
* // Filter by label
|
|
270
|
-
* const specific = await record.users.first({ label: 'CallTransfer_ToAgent' });
|
|
271
|
-
* ```
|
|
272
|
-
*/
|
|
273
|
-
get users() {
|
|
274
|
-
var _a;
|
|
275
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
276
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
277
|
-
if (!this._users) {
|
|
278
|
-
this._users = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
279
|
-
sourceEntity: 'NotificationModule:CallTransfer',
|
|
280
|
-
targetEntity: 'IdentityModule:User',
|
|
281
|
-
targetModuleName: 'IdentityModule',
|
|
282
|
-
targetEntityName: 'User',
|
|
283
|
-
labels: ['CallTransfer_ToAgent', 'CallTransfer_FromAgent'],
|
|
284
|
-
}, UserRecord_1.UserRecord);
|
|
285
|
-
}
|
|
286
|
-
return this._users;
|
|
287
|
-
}
|
|
288
|
-
// ============================================
|
|
289
143
|
// LINK MANAGEMENT
|
|
290
144
|
// ============================================
|
|
291
145
|
/**
|
|
@@ -361,17 +215,6 @@ class CallTransferRecord {
|
|
|
361
215
|
}
|
|
362
216
|
}
|
|
363
217
|
exports.CallTransferRecord = CallTransferRecord;
|
|
364
|
-
// ============================================
|
|
365
|
-
// TYPED LINK ACCESSORS
|
|
366
|
-
// ============================================
|
|
367
|
-
/** Valid labels for Call associations */
|
|
368
|
-
CallTransferRecord.callsLabels = ['Call_CallTransfer'];
|
|
369
|
-
/** Valid labels for CallLeg associations */
|
|
370
|
-
CallTransferRecord.callLegsLabels = ['CallTransfer_TargetLeg', 'CallTransfer_SourceLeg', 'CallLeg_CallTransfer'];
|
|
371
|
-
/** Valid labels for CallEvent associations */
|
|
372
|
-
CallTransferRecord.callEventsLabels = ['CallEvent_CallTrasnfer'];
|
|
373
|
-
/** Valid labels for User associations */
|
|
374
|
-
CallTransferRecord.usersLabels = ['CallTransfer_ToAgent', 'CallTransfer_FromAgent'];
|
|
375
218
|
/** Type guard to check if an object is a CallTransferRecord */
|
|
376
219
|
function isCallTransferRecord(obj) {
|
|
377
220
|
return obj instanceof CallTransferRecord;
|