@d19n/youfibre-odin-sdk 2.0.30 → 2.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/ContactIdentityAccessor.d.ts +111 -0
- package/dist/accessors-v2/ContactIdentityAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +5 -3
- package/dist/actions-v2/BillingAdjustmentCreateDto.d.ts +8 -1
- package/dist/actions-v2/CompleteChurnRequestDto.d.ts +15 -5
- package/dist/actions-v2/CompleteChurnRequestFlowDto.d.ts +15 -5
- package/dist/actions-v2/CreateAuddisPgReportAllocationDto.d.ts +88 -0
- package/dist/actions-v2/CreateAuddisPgReportAllocationDto.js +59 -0
- package/dist/actions-v2/CreateBacsPgReportAllocationDto.d.ts +88 -0
- package/dist/actions-v2/CreateBacsPgReportAllocationDto.js +59 -0
- package/dist/actions-v2/CreateBrskMigrationErrorDto.d.ts +10 -3
- package/dist/actions-v2/CreateBrskMigrationErrorDto.js +11 -4
- package/dist/actions-v2/CreateCaseDto.d.ts +3 -4
- package/dist/actions-v2/CreateCaseFromCasesDto.d.ts +4 -6
- package/dist/actions-v2/CreateCaseFromContactDto.d.ts +3 -4
- package/dist/actions-v2/CreatePgContactDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgPaymentMethodDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgTransactionChargeDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgTransactionRefundDto.d.ts +9 -1
- package/dist/actions-v2/EditCaseFormDto.d.ts +8 -1
- package/dist/actions-v2/MovePgWebhookToSentDto.d.ts +70 -0
- package/dist/actions-v2/MovePgWebhookToSentDto.js +62 -0
- package/dist/actions-v2/UpdateBngProvisionDto.d.ts +0 -14
- package/dist/actions-v2/UpdateContactIdentityDto.d.ts +79 -0
- package/dist/actions-v2/UpdateContactIdentityDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerDeviceOntDto.d.ts +22 -1
- package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.d.ts +77 -0
- package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.js +61 -0
- package/dist/actions-v2/UpdatePaymentMethodDto.d.ts +17 -14
- package/dist/actions-v2/UpdatePaymentMethodDto.js +4 -6
- package/dist/actions-v2/UpdatePgContactDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgPaymentMethodDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgTransactionChargeDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgTransactionRefundDto.d.ts +8 -1
- package/dist/api-sdk-v2/ContactApi.d.ts +2 -0
- package/dist/api-sdk-v2/ContactApi.js +6 -0
- package/dist/api-sdk-v2/PaymentMethodApi.d.ts +2 -0
- package/dist/api-sdk-v2/PaymentMethodApi.js +6 -0
- package/dist/api-sdk-v2/PaymentMethodRefundApi.d.ts +2 -0
- package/dist/api-sdk-v2/PaymentMethodRefundApi.js +6 -0
- package/dist/api-sdk-v2/PgContactApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgContactApi.js +6 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.js +6 -0
- package/dist/api-sdk-v2/PgTransactionApi.d.ts +4 -0
- package/dist/api-sdk-v2/PgTransactionApi.js +12 -0
- package/dist/api-sdk-v2/TransactionApi.d.ts +2 -0
- package/dist/api-sdk-v2/TransactionApi.js +6 -0
- package/dist/db-accessors-v2/ContactIdentityDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/ContactIdentityDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +5 -3
- package/dist/db-sdk-v2/ContactDb.d.ts +2 -0
- package/dist/db-sdk-v2/ContactDb.js +6 -0
- package/dist/db-sdk-v2/PaymentMethodDb.d.ts +2 -0
- package/dist/db-sdk-v2/PaymentMethodDb.js +6 -0
- package/dist/db-sdk-v2/PaymentMethodRefundDb.d.ts +2 -0
- package/dist/db-sdk-v2/PaymentMethodRefundDb.js +6 -0
- package/dist/db-sdk-v2/PgContactDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgContactDb.js +6 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.js +6 -0
- package/dist/db-sdk-v2/PgTransactionDb.d.ts +4 -0
- package/dist/db-sdk-v2/PgTransactionDb.js +12 -0
- package/dist/db-sdk-v2/TransactionDb.d.ts +2 -0
- package/dist/db-sdk-v2/TransactionDb.js +6 -0
- package/dist/entities-v2/BillingAdjustment.d.ts +77 -70
- package/dist/entities-v2/BillingAdjustment.js +35 -33
- package/dist/entities-v2/BngProvision.d.ts +0 -14
- package/dist/entities-v2/BngProvision.js +0 -4
- package/dist/entities-v2/BrskEntityMigrationError.d.ts +14 -14
- package/dist/entities-v2/BrskEntityMigrationError.js +4 -4
- package/dist/entities-v2/Case.d.ts +12 -0
- package/dist/entities-v2/Case.js +2 -0
- package/dist/entities-v2/ChurnRequest.d.ts +8 -1
- package/dist/entities-v2/ChurnRequest.js +2 -0
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +4 -4
- package/dist/entities-v2/Contact.d.ts +3 -0
- package/dist/entities-v2/Conversation.d.ts +0 -2
- package/dist/entities-v2/Conversation.js +0 -2
- package/dist/entities-v2/CustomerDeviceOnt.d.ts +8 -1
- package/dist/entities-v2/CustomerDeviceOnt.js +2 -0
- package/dist/entities-v2/Order.d.ts +21 -0
- package/dist/entities-v2/Order.js +6 -0
- package/dist/entities-v2/PaymentMethod.d.ts +6 -1
- package/dist/entities-v2/PaymentMethod.js +2 -0
- package/dist/entities-v2/PaymentMethodRefund.d.ts +3 -0
- package/dist/entities-v2/PgContact.d.ts +14 -0
- package/dist/entities-v2/PgContact.js +7 -1
- package/dist/entities-v2/PgFileAllocation.d.ts +17 -17
- package/dist/entities-v2/PgFileAllocation.js +2 -2
- package/dist/entities-v2/PgPaymentMethod.d.ts +14 -0
- package/dist/entities-v2/PgPaymentMethod.js +7 -1
- package/dist/entities-v2/PgTransaction.d.ts +48 -0
- package/dist/entities-v2/PgTransaction.js +13 -1
- package/dist/entities-v2/PgWebhook.d.ts +19 -3
- package/dist/entities-v2/PgWebhook.js +17 -1
- package/dist/entities-v2/PriceBook.d.ts +8 -8
- package/dist/entities-v2/PriceBook.js +2 -2
- package/dist/entities-v2/Referral.d.ts +1 -1
- package/dist/entities-v2/Referral.js +1 -1
- package/dist/entities-v2/Reward.d.ts +1 -1
- package/dist/entities-v2/Reward.js +1 -1
- package/dist/entities-v2/Service.d.ts +28 -20
- package/dist/entities-v2/Service.js +23 -15
- package/dist/entities-v2/Transaction.d.ts +6 -1
- package/dist/entities-v2/Transaction.js +2 -0
- package/dist/entities-v2/VoiceConfiguration.d.ts +8 -1
- package/dist/entities-v2/VoiceConfiguration.js +2 -0
- package/dist/entities-v2/WorkOrder.d.ts +3 -2
- package/dist/entities-v2/WorkOrder.js +3 -2
- package/dist/records-v2/AccountCreditRecord.d.ts +1 -82
- package/dist/records-v2/AccountCreditRecord.js +0 -124
- package/dist/records-v2/AccountRecord.d.ts +2 -306
- package/dist/records-v2/AccountRecord.js +0 -451
- package/dist/records-v2/ActivityLogRecord.d.ts +1 -122
- package/dist/records-v2/ActivityLogRecord.js +0 -190
- package/dist/records-v2/ActivityRecord.d.ts +2 -255
- package/dist/records-v2/ActivityRecord.js +0 -387
- package/dist/records-v2/AddressRecord.d.ts +0 -321
- package/dist/records-v2/AddressRecord.js +0 -532
- package/dist/records-v2/AffiliateCodeRecord.d.ts +1 -102
- package/dist/records-v2/AffiliateCodeRecord.js +0 -157
- package/dist/records-v2/AppointmentRecord.d.ts +0 -141
- package/dist/records-v2/AppointmentRecord.js +0 -235
- package/dist/records-v2/BillingAdjustmentRecord.d.ts +0 -81
- package/dist/records-v2/BillingAdjustmentRecord.js +0 -136
- package/dist/records-v2/BillingRequestRecord.d.ts +2 -178
- package/dist/records-v2/BillingRequestRecord.js +0 -271
- package/dist/records-v2/BlockageA55Record.d.ts +2 -103
- package/dist/records-v2/BlockageA55Record.js +0 -157
- package/dist/records-v2/BngProvisionRecord.d.ts +1 -42
- package/dist/records-v2/BngProvisionRecord.js +0 -58
- package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +3 -23
- package/dist/records-v2/BrskEntityMigrationErrorRecord.js +3 -24
- package/dist/records-v2/CallEventRecord.d.ts +1 -82
- package/dist/records-v2/CallEventRecord.js +0 -124
- package/dist/records-v2/CallLegRecord.d.ts +1 -82
- package/dist/records-v2/CallLegRecord.js +0 -124
- package/dist/records-v2/CallRecord.d.ts +1 -202
- package/dist/records-v2/CallRecord.js +0 -322
- package/dist/records-v2/CallTransferRecord.d.ts +1 -102
- package/dist/records-v2/CallTransferRecord.js +0 -157
- package/dist/records-v2/CampaignRecord.d.ts +2 -83
- package/dist/records-v2/CampaignRecord.js +0 -124
- package/dist/records-v2/CaseRecord.d.ts +2 -398
- package/dist/records-v2/CaseRecord.js +0 -634
- package/dist/records-v2/ChangeReasonRecord.d.ts +2 -171
- package/dist/records-v2/ChangeReasonRecord.js +0 -238
- package/dist/records-v2/ChurnRequestRecord.d.ts +1 -62
- package/dist/records-v2/ChurnRequestRecord.js +0 -91
- package/dist/records-v2/ContactIdentityRecord.d.ts +163 -0
- package/dist/records-v2/ContactIdentityRecord.js +223 -0
- package/dist/records-v2/ContactRecord.d.ts +0 -540
- package/dist/records-v2/ContactRecord.js +0 -894
- package/dist/records-v2/ContractBuyOutRecord.d.ts +1 -162
- package/dist/records-v2/ContractBuyOutRecord.js +0 -256
- package/dist/records-v2/ConversationRecord.d.ts +1 -82
- package/dist/records-v2/ConversationRecord.js +0 -124
- package/dist/records-v2/CreditNoteRecord.d.ts +0 -101
- package/dist/records-v2/CreditNoteRecord.js +0 -169
- package/dist/records-v2/CrmDatasetRecord.d.ts +2 -191
- package/dist/records-v2/CrmDatasetRecord.js +0 -271
- package/dist/records-v2/CustomerDeviceAtaRecord.d.ts +0 -21
- package/dist/records-v2/CustomerDeviceAtaRecord.js +0 -37
- package/dist/records-v2/CustomerDeviceConfigurationRecord.d.ts +1 -62
- package/dist/records-v2/CustomerDeviceConfigurationRecord.js +0 -91
- package/dist/records-v2/CustomerDeviceOntRecord.d.ts +0 -181
- package/dist/records-v2/CustomerDeviceOntRecord.js +0 -301
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +0 -141
- package/dist/records-v2/CustomerDeviceRouterRecord.js +0 -235
- package/dist/records-v2/CustomerPhonePortingRecord.d.ts +0 -21
- package/dist/records-v2/CustomerPhonePortingRecord.js +0 -37
- package/dist/records-v2/DiscountRecord.d.ts +0 -121
- package/dist/records-v2/DiscountRecord.js +0 -202
- package/dist/records-v2/EmailRecord.d.ts +2 -230
- package/dist/records-v2/EmailRecord.js +0 -336
- package/dist/records-v2/EmailSenderRecord.d.ts +1 -42
- package/dist/records-v2/EmailSenderRecord.js +0 -58
- package/dist/records-v2/EmailTemplateRecord.d.ts +1 -21
- package/dist/records-v2/EmailTemplateRecord.js +0 -21
- package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +2 -135
- package/dist/records-v2/FieldServiceDispatchedProductRecord.js +0 -189
- package/dist/records-v2/FieldServiceProductRecord.d.ts +2 -115
- package/dist/records-v2/FieldServiceProductRecord.js +0 -156
- package/dist/records-v2/FileRecord.d.ts +2 -1211
- package/dist/records-v2/FileRecord.js +0 -1902
- package/dist/records-v2/ImpersonationTrackerRecord.d.ts +1 -62
- package/dist/records-v2/ImpersonationTrackerRecord.js +0 -91
- package/dist/records-v2/InternalInstallAuditRecord.d.ts +2 -83
- package/dist/records-v2/InternalInstallAuditRecord.js +0 -124
- package/dist/records-v2/InvoiceItemRecord.d.ts +0 -40
- package/dist/records-v2/InvoiceItemRecord.js +0 -69
- package/dist/records-v2/InvoiceRecord.d.ts +2 -399
- package/dist/records-v2/InvoiceRecord.js +0 -635
- package/dist/records-v2/KnowledgeArticleRecord.d.ts +2 -98
- package/dist/records-v2/KnowledgeArticleRecord.js +0 -139
- package/dist/records-v2/LeadRecord.d.ts +0 -261
- package/dist/records-v2/LeadRecord.js +0 -433
- package/dist/records-v2/MessageRecord.d.ts +2 -131
- package/dist/records-v2/MessageRecord.js +0 -172
- package/dist/records-v2/NetworkDeviceRecord.d.ts +2 -43
- package/dist/records-v2/NetworkDeviceRecord.js +0 -58
- package/dist/records-v2/NoteRecord.d.ts +1 -1121
- package/dist/records-v2/NoteRecord.js +0 -1839
- package/dist/records-v2/OfferRecord.d.ts +2 -154
- package/dist/records-v2/OfferRecord.js +0 -221
- package/dist/records-v2/OhAuditOfInstallationRecord.d.ts +2 -83
- package/dist/records-v2/OhAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/OhExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhExternalAuditRecord.js +0 -124
- package/dist/records-v2/OhInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInProgressAuditRecord.js +0 -124
- package/dist/records-v2/OhInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInstallationAuditRecord.js +0 -124
- package/dist/records-v2/OhRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhRetroAuditRecord.js +0 -124
- package/dist/records-v2/OneTouchSwitchRecord.d.ts +30 -255
- package/dist/records-v2/OneTouchSwitchRecord.js +37 -387
- package/dist/records-v2/OntReplacementApprovalRecord.d.ts +1 -62
- package/dist/records-v2/OntReplacementApprovalRecord.js +0 -91
- package/dist/records-v2/OrderCheckRecord.d.ts +0 -21
- package/dist/records-v2/OrderCheckRecord.js +0 -37
- package/dist/records-v2/OrderItemRecord.d.ts +0 -300
- package/dist/records-v2/OrderItemRecord.js +0 -498
- package/dist/records-v2/OrderKciRecord.d.ts +1 -42
- package/dist/records-v2/OrderKciRecord.js +0 -58
- package/dist/records-v2/OrderRecord.d.ts +0 -620
- package/dist/records-v2/OrderRecord.js +0 -1026
- package/dist/records-v2/OutageRecord.d.ts +1 -42
- package/dist/records-v2/OutageRecord.js +0 -58
- package/dist/records-v2/OverlayRealA55Record.d.ts +2 -83
- package/dist/records-v2/OverlayRealA55Record.js +0 -124
- package/dist/records-v2/PICRequestRecord.d.ts +1 -62
- package/dist/records-v2/PICRequestRecord.js +0 -91
- package/dist/records-v2/PaymentMethodRecord.d.ts +7 -127
- package/dist/records-v2/PaymentMethodRecord.js +15 -209
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +0 -181
- package/dist/records-v2/PaymentMethodRefundRecord.js +0 -301
- package/dist/records-v2/PaymentRecord.d.ts +1 -82
- package/dist/records-v2/PaymentRecord.js +0 -124
- package/dist/records-v2/PermissionToFailRecord.d.ts +0 -61
- package/dist/records-v2/PermissionToFailRecord.js +0 -103
- package/dist/records-v2/PgAccountValidationRecord.d.ts +1 -21
- package/dist/records-v2/PgAccountValidationRecord.js +0 -21
- package/dist/records-v2/PgContactRecord.d.ts +1 -62
- package/dist/records-v2/PgContactRecord.js +0 -91
- package/dist/records-v2/PgDirectDebitFileRecord.d.ts +2 -95
- package/dist/records-v2/PgDirectDebitFileRecord.js +0 -123
- package/dist/records-v2/PgDisputeRecord.d.ts +1 -62
- package/dist/records-v2/PgDisputeRecord.js +0 -91
- package/dist/records-v2/PgFileAllocationRecord.d.ts +58 -140
- package/dist/records-v2/PgFileAllocationRecord.js +72 -185
- package/dist/records-v2/PgLogRecord.d.ts +1 -21
- package/dist/records-v2/PgLogRecord.js +0 -21
- package/dist/records-v2/PgPaymentMethodRecord.d.ts +1 -102
- package/dist/records-v2/PgPaymentMethodRecord.js +0 -157
- package/dist/records-v2/PgSortCodeSubstitutionRecord.d.ts +1 -21
- package/dist/records-v2/PgSortCodeSubstitutionRecord.js +0 -21
- package/dist/records-v2/PgTransactionRecord.d.ts +2 -135
- package/dist/records-v2/PgTransactionRecord.js +0 -189
- package/dist/records-v2/PgVocalinkRecord.d.ts +1 -21
- package/dist/records-v2/PgVocalinkRecord.js +0 -21
- package/dist/records-v2/PgWebhookAttemptRecord.d.ts +1 -42
- package/dist/records-v2/PgWebhookAttemptRecord.js +0 -58
- package/dist/records-v2/PgWebhookRecord.d.ts +26 -122
- package/dist/records-v2/PgWebhookRecord.js +29 -190
- package/dist/records-v2/PhoneNumberRecord.d.ts +0 -41
- package/dist/records-v2/PhoneNumberRecord.js +0 -70
- package/dist/records-v2/PriceBookRecord.d.ts +0 -21
- package/dist/records-v2/PriceBookRecord.js +0 -37
- package/dist/records-v2/ProductRecord.d.ts +2 -258
- package/dist/records-v2/ProductRecord.js +0 -351
- package/dist/records-v2/PushNotificationRecord.d.ts +1 -162
- package/dist/records-v2/PushNotificationRecord.js +0 -256
- package/dist/records-v2/ReferralRecord.d.ts +2 -143
- package/dist/records-v2/ReferralRecord.js +0 -223
- package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/RemediationOutcomeFormRecord.js +0 -124
- package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +2 -103
- package/dist/records-v2/RemediationRequiredReasonRecord.js +0 -157
- package/dist/records-v2/ReturnsRecord.d.ts +1 -62
- package/dist/records-v2/ReturnsRecord.js +0 -91
- package/dist/records-v2/RewardRecord.d.ts +2 -123
- package/dist/records-v2/RewardRecord.js +0 -190
- package/dist/records-v2/SalesTerritoryRecord.d.ts +2 -79
- package/dist/records-v2/SalesTerritoryRecord.js +0 -107
- package/dist/records-v2/ScheduleSlotRecord.d.ts +1 -42
- package/dist/records-v2/ScheduleSlotRecord.js +0 -58
- package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +2 -287
- package/dist/records-v2/ServiceAppointmentConfigRecord.js +0 -367
- package/dist/records-v2/ServiceAppointmentRecord.d.ts +0 -81
- package/dist/records-v2/ServiceAppointmentRecord.js +0 -136
- package/dist/records-v2/ServiceRecord.d.ts +0 -40
- package/dist/records-v2/ServiceRecord.js +0 -69
- package/dist/records-v2/ServiceVisitAuditRecord.d.ts +2 -83
- package/dist/records-v2/ServiceVisitAuditRecord.js +0 -124
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +0 -124
- package/dist/records-v2/SmsMessageRecord.d.ts +2 -175
- package/dist/records-v2/SmsMessageRecord.js +0 -255
- package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +2 -83
- package/dist/records-v2/SweeperMaintenanceAuditRecord.js +0 -124
- package/dist/records-v2/TeamRecord.d.ts +0 -101
- package/dist/records-v2/TeamRecord.js +0 -169
- package/dist/records-v2/TestEntityForVisualBuilderRecord.d.ts +2 -115
- package/dist/records-v2/TestEntityForVisualBuilderRecord.js +0 -156
- package/dist/records-v2/TimeSlotRecord.d.ts +0 -21
- package/dist/records-v2/TimeSlotRecord.js +0 -37
- package/dist/records-v2/TransactionRecord.d.ts +1 -181
- package/dist/records-v2/TransactionRecord.js +0 -288
- package/dist/records-v2/TwilioUserUpdateRecord.d.ts +1 -42
- package/dist/records-v2/TwilioUserUpdateRecord.js +0 -58
- package/dist/records-v2/UgAuditOfInstallationRecord.d.ts +2 -83
- package/dist/records-v2/UgAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/UgExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgExternalAuditRecord.js +0 -124
- package/dist/records-v2/UgInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInProgressAuditRecord.js +0 -124
- package/dist/records-v2/UgInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInstallationAuditRecord.js +0 -124
- package/dist/records-v2/UgRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgRetroAuditRecord.js +0 -124
- package/dist/records-v2/UserRecord.d.ts +0 -380
- package/dist/records-v2/UserRecord.js +0 -630
- package/dist/records-v2/VisitRecord.d.ts +0 -121
- package/dist/records-v2/VisitRecord.js +0 -202
- package/dist/records-v2/VoiceConfigurationRecord.d.ts +0 -21
- package/dist/records-v2/VoiceConfigurationRecord.js +0 -37
- package/dist/records-v2/WayleaveAuditRecord.d.ts +2 -83
- package/dist/records-v2/WayleaveAuditRecord.js +0 -124
- package/dist/records-v2/WorkOrderRecord.d.ts +2 -1226
- package/dist/records-v2/WorkOrderRecord.js +0 -1865
- package/dist/records-v2/WorkOrderStatusUpdateRecord.d.ts +2 -75
- package/dist/records-v2/WorkOrderStatusUpdateRecord.js +0 -90
- package/dist/records-v2/YfFieldServiceVisitRecord.d.ts +2 -83
- package/dist/records-v2/YfFieldServiceVisitRecord.js +0 -124
- package/dist/records-v2/YfStockAuditRecord.d.ts +2 -103
- package/dist/records-v2/YfStockAuditRecord.js +0 -157
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +4 -1
- package/package.json +1 -1
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.d.ts +0 -85
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.js +0 -61
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* await record.createCase({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: DEFAULT, OUTAGE
|
|
18
|
-
*
|
|
19
17
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
18
|
*/
|
|
21
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -31,24 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
29
|
exports.isCaseRecord = exports.CaseRecord = exports.MoveDefaultCaseFromOpenToClosedFlowBuilder = exports.MoveCaseToPendingReviewTransitionFlowBuilder = exports.MoveCaseToBlockedTransitionFlowBuilder = exports.EscalateCaseTransitionFlowBuilder = exports.CasedefaultstageblockedFlowBuilder = exports.CaseDefaultStageSolvedFlowBuilder = exports.CaseDefaultStageEscalatedFlowBuilder = exports.AssignCaseWithNoteFlowFlowBuilder = 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 UserRecord_1 = require("./UserRecord");
|
|
37
|
-
const OutageRecord_1 = require("./OutageRecord");
|
|
38
|
-
const SmsMessageRecord_1 = require("./SmsMessageRecord");
|
|
39
|
-
const EmailRecord_1 = require("./EmailRecord");
|
|
40
|
-
const CallRecord_1 = require("./CallRecord");
|
|
41
|
-
const ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
|
|
42
|
-
const TeamRecord_1 = require("./TeamRecord");
|
|
43
|
-
const NoteRecord_1 = require("./NoteRecord");
|
|
44
|
-
const AccountRecord_1 = require("./AccountRecord");
|
|
45
|
-
const WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
46
|
-
const ConversationRecord_1 = require("./ConversationRecord");
|
|
47
|
-
const FileRecord_1 = require("./FileRecord");
|
|
48
|
-
const OrderRecord_1 = require("./OrderRecord");
|
|
49
|
-
const ContactRecord_1 = require("./ContactRecord");
|
|
50
|
-
const AddressRecord_1 = require("./AddressRecord");
|
|
51
|
-
const PushNotificationRecord_1 = require("./PushNotificationRecord");
|
|
52
32
|
/**
|
|
53
33
|
* Builder for action execution with dryRun support
|
|
54
34
|
*
|
|
@@ -1131,581 +1111,6 @@ class CaseRecord {
|
|
|
1131
1111
|
/** Access the underlying OdinRecord (null for new records) */
|
|
1132
1112
|
get record() { return this._record; }
|
|
1133
1113
|
// ============================================
|
|
1134
|
-
// TYPE GUARDS (with TypeScript type predicates)
|
|
1135
|
-
// ============================================
|
|
1136
|
-
/**
|
|
1137
|
-
* Type guard: check if this record is of type DEFAULT
|
|
1138
|
-
*
|
|
1139
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
1140
|
-
* giving you access to DEFAULT-specific properties.
|
|
1141
|
-
*
|
|
1142
|
-
* @example
|
|
1143
|
-
* ```typescript
|
|
1144
|
-
* if (record.isDefault()) {
|
|
1145
|
-
* // TypeScript knows record.properties is CaseProperties
|
|
1146
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
1147
|
-
* }
|
|
1148
|
-
* ```
|
|
1149
|
-
* @remarks This is the default record type
|
|
1150
|
-
*/
|
|
1151
|
-
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
1152
|
-
/**
|
|
1153
|
-
* Type guard: check if this record is of type OUTAGE
|
|
1154
|
-
*
|
|
1155
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
1156
|
-
* giving you access to OUTAGE-specific properties.
|
|
1157
|
-
*
|
|
1158
|
-
* @example
|
|
1159
|
-
* ```typescript
|
|
1160
|
-
* if (record.isOutage()) {
|
|
1161
|
-
* // TypeScript knows record.properties is OutageCaseProperties
|
|
1162
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
1163
|
-
* }
|
|
1164
|
-
* ```
|
|
1165
|
-
* @remarks Outage
|
|
1166
|
-
*/
|
|
1167
|
-
isOutage() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'OUTAGE'; }
|
|
1168
|
-
/**
|
|
1169
|
-
* Access linked ActivityLog records
|
|
1170
|
-
* @remarks Available labels: Case__ActivityLog
|
|
1171
|
-
* @throws Error if called on a new (unsaved) record
|
|
1172
|
-
*
|
|
1173
|
-
* @example
|
|
1174
|
-
* ```typescript
|
|
1175
|
-
* // Get all linked ActivityLog records
|
|
1176
|
-
* const items = await record.activityLogs.list();
|
|
1177
|
-
* const first = await record.activityLogs.first();
|
|
1178
|
-
*
|
|
1179
|
-
* // Filter by label
|
|
1180
|
-
* const specific = await record.activityLogs.first({ label: 'Case__ActivityLog' });
|
|
1181
|
-
* ```
|
|
1182
|
-
*/
|
|
1183
|
-
get activityLogs() {
|
|
1184
|
-
var _a;
|
|
1185
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1186
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1187
|
-
if (!this._activityLogs) {
|
|
1188
|
-
this._activityLogs = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1189
|
-
sourceEntity: 'SupportModule:Case',
|
|
1190
|
-
targetEntity: 'AuditModule:ActivityLog',
|
|
1191
|
-
targetModuleName: 'AuditModule',
|
|
1192
|
-
targetEntityName: 'ActivityLog',
|
|
1193
|
-
labels: ['Case__ActivityLog'],
|
|
1194
|
-
}, ActivityLogRecord_1.ActivityLogRecord);
|
|
1195
|
-
}
|
|
1196
|
-
return this._activityLogs;
|
|
1197
|
-
}
|
|
1198
|
-
/**
|
|
1199
|
-
* Access linked User records
|
|
1200
|
-
* @remarks Available labels: CaseOwner, Case__User, CaseCollaborators, favourite_cases
|
|
1201
|
-
* @throws Error if called on a new (unsaved) record
|
|
1202
|
-
*
|
|
1203
|
-
* @example
|
|
1204
|
-
* ```typescript
|
|
1205
|
-
* // Get all linked User records
|
|
1206
|
-
* const items = await record.users.list();
|
|
1207
|
-
* const first = await record.users.first();
|
|
1208
|
-
*
|
|
1209
|
-
* // Filter by label
|
|
1210
|
-
* const specific = await record.users.first({ label: 'CaseOwner' });
|
|
1211
|
-
* ```
|
|
1212
|
-
*/
|
|
1213
|
-
get users() {
|
|
1214
|
-
var _a;
|
|
1215
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1216
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1217
|
-
if (!this._users) {
|
|
1218
|
-
this._users = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1219
|
-
sourceEntity: 'SupportModule:Case',
|
|
1220
|
-
targetEntity: 'IdentityModule:User',
|
|
1221
|
-
targetModuleName: 'IdentityModule',
|
|
1222
|
-
targetEntityName: 'User',
|
|
1223
|
-
labels: ['CaseOwner', 'Case__User', 'CaseCollaborators', 'favourite_cases'],
|
|
1224
|
-
}, UserRecord_1.UserRecord);
|
|
1225
|
-
}
|
|
1226
|
-
return this._users;
|
|
1227
|
-
}
|
|
1228
|
-
/**
|
|
1229
|
-
* Access linked Outage records
|
|
1230
|
-
* @remarks Available labels: Outage__Case, Outage
|
|
1231
|
-
* @throws Error if called on a new (unsaved) record
|
|
1232
|
-
*
|
|
1233
|
-
* @example
|
|
1234
|
-
* ```typescript
|
|
1235
|
-
* // Get all linked Outage records
|
|
1236
|
-
* const items = await record.outages.list();
|
|
1237
|
-
* const first = await record.outages.first();
|
|
1238
|
-
*
|
|
1239
|
-
* // Filter by label
|
|
1240
|
-
* const specific = await record.outages.first({ label: 'Outage__Case' });
|
|
1241
|
-
* ```
|
|
1242
|
-
*/
|
|
1243
|
-
get outages() {
|
|
1244
|
-
var _a;
|
|
1245
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1246
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1247
|
-
if (!this._outages) {
|
|
1248
|
-
this._outages = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1249
|
-
sourceEntity: 'SupportModule:Case',
|
|
1250
|
-
targetEntity: 'ServiceModule:Outage',
|
|
1251
|
-
targetModuleName: 'ServiceModule',
|
|
1252
|
-
targetEntityName: 'Outage',
|
|
1253
|
-
labels: ['Outage__Case', 'Outage'],
|
|
1254
|
-
}, OutageRecord_1.OutageRecord);
|
|
1255
|
-
}
|
|
1256
|
-
return this._outages;
|
|
1257
|
-
}
|
|
1258
|
-
/**
|
|
1259
|
-
* Access linked SmsMessage records
|
|
1260
|
-
* @remarks Available labels: Case__SmsMessage
|
|
1261
|
-
* @throws Error if called on a new (unsaved) record
|
|
1262
|
-
*
|
|
1263
|
-
* @example
|
|
1264
|
-
* ```typescript
|
|
1265
|
-
* // Get all linked SmsMessage records
|
|
1266
|
-
* const items = await record.smsMessages.list();
|
|
1267
|
-
* const first = await record.smsMessages.first();
|
|
1268
|
-
*
|
|
1269
|
-
* // Filter by label
|
|
1270
|
-
* const specific = await record.smsMessages.first({ label: 'Case__SmsMessage' });
|
|
1271
|
-
* ```
|
|
1272
|
-
*/
|
|
1273
|
-
get smsMessages() {
|
|
1274
|
-
var _a;
|
|
1275
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1276
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1277
|
-
if (!this._smsMessages) {
|
|
1278
|
-
this._smsMessages = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1279
|
-
sourceEntity: 'SupportModule:Case',
|
|
1280
|
-
targetEntity: 'NotificationModule:SmsMessage',
|
|
1281
|
-
targetModuleName: 'NotificationModule',
|
|
1282
|
-
targetEntityName: 'SmsMessage',
|
|
1283
|
-
labels: ['Case__SmsMessage'],
|
|
1284
|
-
}, SmsMessageRecord_1.SmsMessageRecord);
|
|
1285
|
-
}
|
|
1286
|
-
return this._smsMessages;
|
|
1287
|
-
}
|
|
1288
|
-
/**
|
|
1289
|
-
* Access linked Email records
|
|
1290
|
-
* @remarks Available labels: Case__Email
|
|
1291
|
-
* @throws Error if called on a new (unsaved) record
|
|
1292
|
-
*
|
|
1293
|
-
* @example
|
|
1294
|
-
* ```typescript
|
|
1295
|
-
* // Get all linked Email records
|
|
1296
|
-
* const items = await record.emails.list();
|
|
1297
|
-
* const first = await record.emails.first();
|
|
1298
|
-
*
|
|
1299
|
-
* // Filter by label
|
|
1300
|
-
* const specific = await record.emails.first({ label: 'Case__Email' });
|
|
1301
|
-
* ```
|
|
1302
|
-
*/
|
|
1303
|
-
get emails() {
|
|
1304
|
-
var _a;
|
|
1305
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1306
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1307
|
-
if (!this._emails) {
|
|
1308
|
-
this._emails = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1309
|
-
sourceEntity: 'SupportModule:Case',
|
|
1310
|
-
targetEntity: 'NotificationModule:Email',
|
|
1311
|
-
targetModuleName: 'NotificationModule',
|
|
1312
|
-
targetEntityName: 'Email',
|
|
1313
|
-
labels: ['Case__Email'],
|
|
1314
|
-
}, EmailRecord_1.EmailRecord);
|
|
1315
|
-
}
|
|
1316
|
-
return this._emails;
|
|
1317
|
-
}
|
|
1318
|
-
/**
|
|
1319
|
-
* Access linked Call records
|
|
1320
|
-
* @remarks Available labels: Call__Case
|
|
1321
|
-
* @throws Error if called on a new (unsaved) record
|
|
1322
|
-
*
|
|
1323
|
-
* @example
|
|
1324
|
-
* ```typescript
|
|
1325
|
-
* // Get all linked Call records
|
|
1326
|
-
* const items = await record.calls.list();
|
|
1327
|
-
* const first = await record.calls.first();
|
|
1328
|
-
*
|
|
1329
|
-
* // Filter by label
|
|
1330
|
-
* const specific = await record.calls.first({ label: 'Call__Case' });
|
|
1331
|
-
* ```
|
|
1332
|
-
*/
|
|
1333
|
-
get calls() {
|
|
1334
|
-
var _a;
|
|
1335
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1336
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1337
|
-
if (!this._calls) {
|
|
1338
|
-
this._calls = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1339
|
-
sourceEntity: 'SupportModule:Case',
|
|
1340
|
-
targetEntity: 'NotificationModule:Call',
|
|
1341
|
-
targetModuleName: 'NotificationModule',
|
|
1342
|
-
targetEntityName: 'Call',
|
|
1343
|
-
labels: ['Call__Case'],
|
|
1344
|
-
}, CallRecord_1.CallRecord);
|
|
1345
|
-
}
|
|
1346
|
-
return this._calls;
|
|
1347
|
-
}
|
|
1348
|
-
/**
|
|
1349
|
-
* Access linked ContractBuyOut records
|
|
1350
|
-
* @remarks Available labels: Case__ContractBuyOut
|
|
1351
|
-
* @throws Error if called on a new (unsaved) record
|
|
1352
|
-
*
|
|
1353
|
-
* @example
|
|
1354
|
-
* ```typescript
|
|
1355
|
-
* // Get all linked ContractBuyOut records
|
|
1356
|
-
* const items = await record.contractBuyOuts.list();
|
|
1357
|
-
* const first = await record.contractBuyOuts.first();
|
|
1358
|
-
*
|
|
1359
|
-
* // Filter by label
|
|
1360
|
-
* const specific = await record.contractBuyOuts.first({ label: 'Case__ContractBuyOut' });
|
|
1361
|
-
* ```
|
|
1362
|
-
*/
|
|
1363
|
-
get contractBuyOuts() {
|
|
1364
|
-
var _a;
|
|
1365
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1366
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1367
|
-
if (!this._contractBuyOuts) {
|
|
1368
|
-
this._contractBuyOuts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1369
|
-
sourceEntity: 'SupportModule:Case',
|
|
1370
|
-
targetEntity: 'OrderModule:ContractBuyOut',
|
|
1371
|
-
targetModuleName: 'OrderModule',
|
|
1372
|
-
targetEntityName: 'ContractBuyOut',
|
|
1373
|
-
labels: ['Case__ContractBuyOut'],
|
|
1374
|
-
}, ContractBuyOutRecord_1.ContractBuyOutRecord);
|
|
1375
|
-
}
|
|
1376
|
-
return this._contractBuyOuts;
|
|
1377
|
-
}
|
|
1378
|
-
/**
|
|
1379
|
-
* Access linked Team records
|
|
1380
|
-
* @remarks Available labels: Case_Team
|
|
1381
|
-
* @throws Error if called on a new (unsaved) record
|
|
1382
|
-
*
|
|
1383
|
-
* @example
|
|
1384
|
-
* ```typescript
|
|
1385
|
-
* // Get all linked Team records
|
|
1386
|
-
* const items = await record.teams.list();
|
|
1387
|
-
* const first = await record.teams.first();
|
|
1388
|
-
*
|
|
1389
|
-
* // Filter by label
|
|
1390
|
-
* const specific = await record.teams.first({ label: 'Case_Team' });
|
|
1391
|
-
* ```
|
|
1392
|
-
*/
|
|
1393
|
-
get teams() {
|
|
1394
|
-
var _a;
|
|
1395
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1396
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1397
|
-
if (!this._teams) {
|
|
1398
|
-
this._teams = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1399
|
-
sourceEntity: 'SupportModule:Case',
|
|
1400
|
-
targetEntity: 'IdentityModule:Team',
|
|
1401
|
-
targetModuleName: 'IdentityModule',
|
|
1402
|
-
targetEntityName: 'Team',
|
|
1403
|
-
labels: ['Case_Team'],
|
|
1404
|
-
}, TeamRecord_1.TeamRecord);
|
|
1405
|
-
}
|
|
1406
|
-
return this._teams;
|
|
1407
|
-
}
|
|
1408
|
-
/**
|
|
1409
|
-
* Access linked Note records
|
|
1410
|
-
* @remarks Available labels: Case__Note
|
|
1411
|
-
* @throws Error if called on a new (unsaved) record
|
|
1412
|
-
*
|
|
1413
|
-
* @example
|
|
1414
|
-
* ```typescript
|
|
1415
|
-
* // Get all linked Note records
|
|
1416
|
-
* const items = await record.notes.list();
|
|
1417
|
-
* const first = await record.notes.first();
|
|
1418
|
-
*
|
|
1419
|
-
* // Filter by label
|
|
1420
|
-
* const specific = await record.notes.first({ label: 'Case__Note' });
|
|
1421
|
-
* ```
|
|
1422
|
-
*/
|
|
1423
|
-
get notes() {
|
|
1424
|
-
var _a;
|
|
1425
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1426
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1427
|
-
if (!this._notes) {
|
|
1428
|
-
this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1429
|
-
sourceEntity: 'SupportModule:Case',
|
|
1430
|
-
targetEntity: 'SupportModule:Note',
|
|
1431
|
-
targetModuleName: 'SupportModule',
|
|
1432
|
-
targetEntityName: 'Note',
|
|
1433
|
-
labels: ['Case__Note'],
|
|
1434
|
-
}, NoteRecord_1.NoteRecord);
|
|
1435
|
-
}
|
|
1436
|
-
return this._notes;
|
|
1437
|
-
}
|
|
1438
|
-
/**
|
|
1439
|
-
* Access linked Account records
|
|
1440
|
-
* @remarks Available labels: Account__Case
|
|
1441
|
-
* @throws Error if called on a new (unsaved) record
|
|
1442
|
-
*
|
|
1443
|
-
* @example
|
|
1444
|
-
* ```typescript
|
|
1445
|
-
* // Get all linked Account records
|
|
1446
|
-
* const items = await record.accounts.list();
|
|
1447
|
-
* const first = await record.accounts.first();
|
|
1448
|
-
*
|
|
1449
|
-
* // Filter by label
|
|
1450
|
-
* const specific = await record.accounts.first({ label: 'Account__Case' });
|
|
1451
|
-
* ```
|
|
1452
|
-
*/
|
|
1453
|
-
get accounts() {
|
|
1454
|
-
var _a;
|
|
1455
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1456
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1457
|
-
if (!this._accounts) {
|
|
1458
|
-
this._accounts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1459
|
-
sourceEntity: 'SupportModule:Case',
|
|
1460
|
-
targetEntity: 'CrmModule:Account',
|
|
1461
|
-
targetModuleName: 'CrmModule',
|
|
1462
|
-
targetEntityName: 'Account',
|
|
1463
|
-
labels: ['Account__Case'],
|
|
1464
|
-
}, AccountRecord_1.AccountRecord);
|
|
1465
|
-
}
|
|
1466
|
-
return this._accounts;
|
|
1467
|
-
}
|
|
1468
|
-
/**
|
|
1469
|
-
* Access linked WorkOrder records
|
|
1470
|
-
* @remarks Available labels: Case__WorkOrder
|
|
1471
|
-
* @throws Error if called on a new (unsaved) record
|
|
1472
|
-
*
|
|
1473
|
-
* @example
|
|
1474
|
-
* ```typescript
|
|
1475
|
-
* // Get all linked WorkOrder records
|
|
1476
|
-
* const items = await record.workOrders.list();
|
|
1477
|
-
* const first = await record.workOrders.first();
|
|
1478
|
-
*
|
|
1479
|
-
* // Filter by label
|
|
1480
|
-
* const specific = await record.workOrders.first({ label: 'Case__WorkOrder' });
|
|
1481
|
-
* ```
|
|
1482
|
-
*/
|
|
1483
|
-
get workOrders() {
|
|
1484
|
-
var _a;
|
|
1485
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1486
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1487
|
-
if (!this._workOrders) {
|
|
1488
|
-
this._workOrders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1489
|
-
sourceEntity: 'SupportModule:Case',
|
|
1490
|
-
targetEntity: 'FieldServiceModule:WorkOrder',
|
|
1491
|
-
targetModuleName: 'FieldServiceModule',
|
|
1492
|
-
targetEntityName: 'WorkOrder',
|
|
1493
|
-
labels: ['Case__WorkOrder'],
|
|
1494
|
-
}, WorkOrderRecord_1.WorkOrderRecord);
|
|
1495
|
-
}
|
|
1496
|
-
return this._workOrders;
|
|
1497
|
-
}
|
|
1498
|
-
/**
|
|
1499
|
-
* Access linked Conversation records
|
|
1500
|
-
* @remarks Available labels: Case_Conversation
|
|
1501
|
-
* @throws Error if called on a new (unsaved) record
|
|
1502
|
-
*
|
|
1503
|
-
* @example
|
|
1504
|
-
* ```typescript
|
|
1505
|
-
* // Get all linked Conversation records
|
|
1506
|
-
* const items = await record.conversations.list();
|
|
1507
|
-
* const first = await record.conversations.first();
|
|
1508
|
-
*
|
|
1509
|
-
* // Filter by label
|
|
1510
|
-
* const specific = await record.conversations.first({ label: 'Case_Conversation' });
|
|
1511
|
-
* ```
|
|
1512
|
-
*/
|
|
1513
|
-
get conversations() {
|
|
1514
|
-
var _a;
|
|
1515
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1516
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1517
|
-
if (!this._conversations) {
|
|
1518
|
-
this._conversations = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1519
|
-
sourceEntity: 'SupportModule:Case',
|
|
1520
|
-
targetEntity: 'NotificationModule:Conversation',
|
|
1521
|
-
targetModuleName: 'NotificationModule',
|
|
1522
|
-
targetEntityName: 'Conversation',
|
|
1523
|
-
labels: ['Case_Conversation'],
|
|
1524
|
-
}, ConversationRecord_1.ConversationRecord);
|
|
1525
|
-
}
|
|
1526
|
-
return this._conversations;
|
|
1527
|
-
}
|
|
1528
|
-
/**
|
|
1529
|
-
* Access linked Case records
|
|
1530
|
-
* @remarks Available labels: Case__Case
|
|
1531
|
-
* @throws Error if called on a new (unsaved) record
|
|
1532
|
-
*
|
|
1533
|
-
* @example
|
|
1534
|
-
* ```typescript
|
|
1535
|
-
* // Get all linked Case records
|
|
1536
|
-
* const items = await record.cases.list();
|
|
1537
|
-
* const first = await record.cases.first();
|
|
1538
|
-
*
|
|
1539
|
-
* // Filter by label
|
|
1540
|
-
* const specific = await record.cases.first({ label: 'Case__Case' });
|
|
1541
|
-
* ```
|
|
1542
|
-
*/
|
|
1543
|
-
get cases() {
|
|
1544
|
-
var _a;
|
|
1545
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1546
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1547
|
-
if (!this._cases) {
|
|
1548
|
-
this._cases = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1549
|
-
sourceEntity: 'SupportModule:Case',
|
|
1550
|
-
targetEntity: 'SupportModule:Case',
|
|
1551
|
-
targetModuleName: 'SupportModule',
|
|
1552
|
-
targetEntityName: 'Case',
|
|
1553
|
-
labels: ['Case__Case'],
|
|
1554
|
-
}, CaseRecord);
|
|
1555
|
-
}
|
|
1556
|
-
return this._cases;
|
|
1557
|
-
}
|
|
1558
|
-
/**
|
|
1559
|
-
* Access linked File records
|
|
1560
|
-
* @remarks Available labels: Case__File
|
|
1561
|
-
* @throws Error if called on a new (unsaved) record
|
|
1562
|
-
*
|
|
1563
|
-
* @example
|
|
1564
|
-
* ```typescript
|
|
1565
|
-
* // Get all linked File records
|
|
1566
|
-
* const items = await record.files.list();
|
|
1567
|
-
* const first = await record.files.first();
|
|
1568
|
-
*
|
|
1569
|
-
* // Filter by label
|
|
1570
|
-
* const specific = await record.files.first({ label: 'Case__File' });
|
|
1571
|
-
* ```
|
|
1572
|
-
*/
|
|
1573
|
-
get files() {
|
|
1574
|
-
var _a;
|
|
1575
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1576
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1577
|
-
if (!this._files) {
|
|
1578
|
-
this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1579
|
-
sourceEntity: 'SupportModule:Case',
|
|
1580
|
-
targetEntity: 'SchemaModule:File',
|
|
1581
|
-
targetModuleName: 'SchemaModule',
|
|
1582
|
-
targetEntityName: 'File',
|
|
1583
|
-
labels: ['Case__File'],
|
|
1584
|
-
}, FileRecord_1.FileRecord);
|
|
1585
|
-
}
|
|
1586
|
-
return this._files;
|
|
1587
|
-
}
|
|
1588
|
-
/**
|
|
1589
|
-
* Access linked Order records
|
|
1590
|
-
* @remarks Available labels: Case__Order
|
|
1591
|
-
* @throws Error if called on a new (unsaved) record
|
|
1592
|
-
*
|
|
1593
|
-
* @example
|
|
1594
|
-
* ```typescript
|
|
1595
|
-
* // Get all linked Order records
|
|
1596
|
-
* const items = await record.orders.list();
|
|
1597
|
-
* const first = await record.orders.first();
|
|
1598
|
-
*
|
|
1599
|
-
* // Filter by label
|
|
1600
|
-
* const specific = await record.orders.first({ label: 'Case__Order' });
|
|
1601
|
-
* ```
|
|
1602
|
-
*/
|
|
1603
|
-
get orders() {
|
|
1604
|
-
var _a;
|
|
1605
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1606
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1607
|
-
if (!this._orders) {
|
|
1608
|
-
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1609
|
-
sourceEntity: 'SupportModule:Case',
|
|
1610
|
-
targetEntity: 'OrderModule:Order',
|
|
1611
|
-
targetModuleName: 'OrderModule',
|
|
1612
|
-
targetEntityName: 'Order',
|
|
1613
|
-
labels: ['Case__Order'],
|
|
1614
|
-
}, OrderRecord_1.OrderRecord);
|
|
1615
|
-
}
|
|
1616
|
-
return this._orders;
|
|
1617
|
-
}
|
|
1618
|
-
/**
|
|
1619
|
-
* Access linked Contact records
|
|
1620
|
-
* @remarks Available labels: Case__Contact
|
|
1621
|
-
* @throws Error if called on a new (unsaved) record
|
|
1622
|
-
*
|
|
1623
|
-
* @example
|
|
1624
|
-
* ```typescript
|
|
1625
|
-
* // Get all linked Contact records
|
|
1626
|
-
* const items = await record.contacts.list();
|
|
1627
|
-
* const first = await record.contacts.first();
|
|
1628
|
-
*
|
|
1629
|
-
* // Filter by label
|
|
1630
|
-
* const specific = await record.contacts.first({ label: 'Case__Contact' });
|
|
1631
|
-
* ```
|
|
1632
|
-
*/
|
|
1633
|
-
get contacts() {
|
|
1634
|
-
var _a;
|
|
1635
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1636
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1637
|
-
if (!this._contacts) {
|
|
1638
|
-
this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1639
|
-
sourceEntity: 'SupportModule:Case',
|
|
1640
|
-
targetEntity: 'CrmModule:Contact',
|
|
1641
|
-
targetModuleName: 'CrmModule',
|
|
1642
|
-
targetEntityName: 'Contact',
|
|
1643
|
-
labels: ['Case__Contact'],
|
|
1644
|
-
}, ContactRecord_1.ContactRecord);
|
|
1645
|
-
}
|
|
1646
|
-
return this._contacts;
|
|
1647
|
-
}
|
|
1648
|
-
/**
|
|
1649
|
-
* Access linked Address records
|
|
1650
|
-
* @remarks Available labels: Case__Address
|
|
1651
|
-
* @throws Error if called on a new (unsaved) record
|
|
1652
|
-
*
|
|
1653
|
-
* @example
|
|
1654
|
-
* ```typescript
|
|
1655
|
-
* // Get all linked Address records
|
|
1656
|
-
* const items = await record.addresses.list();
|
|
1657
|
-
* const first = await record.addresses.first();
|
|
1658
|
-
*
|
|
1659
|
-
* // Filter by label
|
|
1660
|
-
* const specific = await record.addresses.first({ label: 'Case__Address' });
|
|
1661
|
-
* ```
|
|
1662
|
-
*/
|
|
1663
|
-
get addresses() {
|
|
1664
|
-
var _a;
|
|
1665
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1666
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1667
|
-
if (!this._addresses) {
|
|
1668
|
-
this._addresses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1669
|
-
sourceEntity: 'SupportModule:Case',
|
|
1670
|
-
targetEntity: 'CrmModule:Address',
|
|
1671
|
-
targetModuleName: 'CrmModule',
|
|
1672
|
-
targetEntityName: 'Address',
|
|
1673
|
-
labels: ['Case__Address'],
|
|
1674
|
-
}, AddressRecord_1.AddressRecord);
|
|
1675
|
-
}
|
|
1676
|
-
return this._addresses;
|
|
1677
|
-
}
|
|
1678
|
-
/**
|
|
1679
|
-
* Access linked PushNotification records
|
|
1680
|
-
* @remarks Available labels: Case__PushNotification
|
|
1681
|
-
* @throws Error if called on a new (unsaved) record
|
|
1682
|
-
*
|
|
1683
|
-
* @example
|
|
1684
|
-
* ```typescript
|
|
1685
|
-
* // Get all linked PushNotification records
|
|
1686
|
-
* const items = await record.pushNotifications.list();
|
|
1687
|
-
* const first = await record.pushNotifications.first();
|
|
1688
|
-
*
|
|
1689
|
-
* // Filter by label
|
|
1690
|
-
* const specific = await record.pushNotifications.first({ label: 'Case__PushNotification' });
|
|
1691
|
-
* ```
|
|
1692
|
-
*/
|
|
1693
|
-
get pushNotifications() {
|
|
1694
|
-
var _a;
|
|
1695
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
1696
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
1697
|
-
if (!this._pushNotifications) {
|
|
1698
|
-
this._pushNotifications = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
1699
|
-
sourceEntity: 'SupportModule:Case',
|
|
1700
|
-
targetEntity: 'NotificationModule:PushNotification',
|
|
1701
|
-
targetModuleName: 'NotificationModule',
|
|
1702
|
-
targetEntityName: 'PushNotification',
|
|
1703
|
-
labels: ['Case__PushNotification'],
|
|
1704
|
-
}, PushNotificationRecord_1.PushNotificationRecord);
|
|
1705
|
-
}
|
|
1706
|
-
return this._pushNotifications;
|
|
1707
|
-
}
|
|
1708
|
-
// ============================================
|
|
1709
1114
|
// LINK MANAGEMENT
|
|
1710
1115
|
// ============================================
|
|
1711
1116
|
/**
|
|
@@ -2868,45 +2273,6 @@ class CaseRecord {
|
|
|
2868
2273
|
}
|
|
2869
2274
|
}
|
|
2870
2275
|
exports.CaseRecord = CaseRecord;
|
|
2871
|
-
// ============================================
|
|
2872
|
-
// TYPED LINK ACCESSORS
|
|
2873
|
-
// ============================================
|
|
2874
|
-
/** Valid labels for ActivityLog associations */
|
|
2875
|
-
CaseRecord.activityLogsLabels = ['Case__ActivityLog'];
|
|
2876
|
-
/** Valid labels for User associations */
|
|
2877
|
-
CaseRecord.usersLabels = ['CaseOwner', 'Case__User', 'CaseCollaborators', 'favourite_cases'];
|
|
2878
|
-
/** Valid labels for Outage associations */
|
|
2879
|
-
CaseRecord.outagesLabels = ['Outage__Case', 'Outage'];
|
|
2880
|
-
/** Valid labels for SmsMessage associations */
|
|
2881
|
-
CaseRecord.smsMessagesLabels = ['Case__SmsMessage'];
|
|
2882
|
-
/** Valid labels for Email associations */
|
|
2883
|
-
CaseRecord.emailsLabels = ['Case__Email'];
|
|
2884
|
-
/** Valid labels for Call associations */
|
|
2885
|
-
CaseRecord.callsLabels = ['Call__Case'];
|
|
2886
|
-
/** Valid labels for ContractBuyOut associations */
|
|
2887
|
-
CaseRecord.contractBuyOutsLabels = ['Case__ContractBuyOut'];
|
|
2888
|
-
/** Valid labels for Team associations */
|
|
2889
|
-
CaseRecord.teamsLabels = ['Case_Team'];
|
|
2890
|
-
/** Valid labels for Note associations */
|
|
2891
|
-
CaseRecord.notesLabels = ['Case__Note'];
|
|
2892
|
-
/** Valid labels for Account associations */
|
|
2893
|
-
CaseRecord.accountsLabels = ['Account__Case'];
|
|
2894
|
-
/** Valid labels for WorkOrder associations */
|
|
2895
|
-
CaseRecord.workOrdersLabels = ['Case__WorkOrder'];
|
|
2896
|
-
/** Valid labels for Conversation associations */
|
|
2897
|
-
CaseRecord.conversationsLabels = ['Case_Conversation'];
|
|
2898
|
-
/** Valid labels for Case associations */
|
|
2899
|
-
CaseRecord.casesLabels = ['Case__Case'];
|
|
2900
|
-
/** Valid labels for File associations */
|
|
2901
|
-
CaseRecord.filesLabels = ['Case__File'];
|
|
2902
|
-
/** Valid labels for Order associations */
|
|
2903
|
-
CaseRecord.ordersLabels = ['Case__Order'];
|
|
2904
|
-
/** Valid labels for Contact associations */
|
|
2905
|
-
CaseRecord.contactsLabels = ['Case__Contact'];
|
|
2906
|
-
/** Valid labels for Address associations */
|
|
2907
|
-
CaseRecord.addressesLabels = ['Case__Address'];
|
|
2908
|
-
/** Valid labels for PushNotification associations */
|
|
2909
|
-
CaseRecord.pushNotificationsLabels = ['Case__PushNotification'];
|
|
2910
2276
|
/** Type guard to check if an object is a CaseRecord */
|
|
2911
2277
|
function isCaseRecord(obj) {
|
|
2912
2278
|
return obj instanceof CaseRecord;
|