@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
|
@@ -29,13 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.isDiscountRecord = exports.DiscountRecord = void 0;
|
|
30
30
|
const uuid_1 = require("uuid");
|
|
31
31
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
32
|
-
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
33
|
-
const NoteRecord_1 = require("./NoteRecord");
|
|
34
|
-
const LeadRecord_1 = require("./LeadRecord");
|
|
35
|
-
const OrderRecord_1 = require("./OrderRecord");
|
|
36
|
-
const OfferRecord_1 = require("./OfferRecord");
|
|
37
|
-
const FileRecord_1 = require("./FileRecord");
|
|
38
|
-
const InvoiceRecord_1 = require("./InvoiceRecord");
|
|
39
32
|
/**
|
|
40
33
|
* Builder for action execution with dryRun support
|
|
41
34
|
*
|
|
@@ -146,186 +139,6 @@ class DiscountRecord {
|
|
|
146
139
|
get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
|
|
147
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
148
141
|
get record() { return this._record; }
|
|
149
|
-
/**
|
|
150
|
-
* Access linked Note records
|
|
151
|
-
* @remarks Available labels: Discount__Note
|
|
152
|
-
* @throws Error if called on a new (unsaved) record
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* ```typescript
|
|
156
|
-
* // Get all linked Note records
|
|
157
|
-
* const items = await record.notes.list();
|
|
158
|
-
* const first = await record.notes.first();
|
|
159
|
-
*
|
|
160
|
-
* // Filter by label
|
|
161
|
-
* const specific = await record.notes.first({ label: 'Discount__Note' });
|
|
162
|
-
* ```
|
|
163
|
-
*/
|
|
164
|
-
get notes() {
|
|
165
|
-
var _a;
|
|
166
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
167
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
168
|
-
if (!this._notes) {
|
|
169
|
-
this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
170
|
-
sourceEntity: 'ProductModule:Discount',
|
|
171
|
-
targetEntity: 'SupportModule:Note',
|
|
172
|
-
targetModuleName: 'SupportModule',
|
|
173
|
-
targetEntityName: 'Note',
|
|
174
|
-
labels: ['Discount__Note'],
|
|
175
|
-
}, NoteRecord_1.NoteRecord);
|
|
176
|
-
}
|
|
177
|
-
return this._notes;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Access linked Lead records
|
|
181
|
-
* @remarks Available labels: Lead__Discount
|
|
182
|
-
* @throws Error if called on a new (unsaved) record
|
|
183
|
-
*
|
|
184
|
-
* @example
|
|
185
|
-
* ```typescript
|
|
186
|
-
* // Get all linked Lead records
|
|
187
|
-
* const items = await record.leads.list();
|
|
188
|
-
* const first = await record.leads.first();
|
|
189
|
-
*
|
|
190
|
-
* // Filter by label
|
|
191
|
-
* const specific = await record.leads.first({ label: 'Lead__Discount' });
|
|
192
|
-
* ```
|
|
193
|
-
*/
|
|
194
|
-
get leads() {
|
|
195
|
-
var _a;
|
|
196
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
197
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
198
|
-
if (!this._leads) {
|
|
199
|
-
this._leads = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
200
|
-
sourceEntity: 'ProductModule:Discount',
|
|
201
|
-
targetEntity: 'CrmModule:Lead',
|
|
202
|
-
targetModuleName: 'CrmModule',
|
|
203
|
-
targetEntityName: 'Lead',
|
|
204
|
-
labels: ['Lead__Discount'],
|
|
205
|
-
}, LeadRecord_1.LeadRecord);
|
|
206
|
-
}
|
|
207
|
-
return this._leads;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Access linked Order records
|
|
211
|
-
* @remarks Available labels: Order__Discount
|
|
212
|
-
* @throws Error if called on a new (unsaved) record
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* ```typescript
|
|
216
|
-
* // Get all linked Order records
|
|
217
|
-
* const items = await record.orders.list();
|
|
218
|
-
* const first = await record.orders.first();
|
|
219
|
-
*
|
|
220
|
-
* // Filter by label
|
|
221
|
-
* const specific = await record.orders.first({ label: 'Order__Discount' });
|
|
222
|
-
* ```
|
|
223
|
-
*/
|
|
224
|
-
get orders() {
|
|
225
|
-
var _a;
|
|
226
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
227
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
228
|
-
if (!this._orders) {
|
|
229
|
-
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
230
|
-
sourceEntity: 'ProductModule:Discount',
|
|
231
|
-
targetEntity: 'OrderModule:Order',
|
|
232
|
-
targetModuleName: 'OrderModule',
|
|
233
|
-
targetEntityName: 'Order',
|
|
234
|
-
labels: ['Order__Discount'],
|
|
235
|
-
}, OrderRecord_1.OrderRecord);
|
|
236
|
-
}
|
|
237
|
-
return this._orders;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Access linked Offer records
|
|
241
|
-
* @remarks Available labels: Offer__Discount
|
|
242
|
-
* @throws Error if called on a new (unsaved) record
|
|
243
|
-
*
|
|
244
|
-
* @example
|
|
245
|
-
* ```typescript
|
|
246
|
-
* // Get all linked Offer records
|
|
247
|
-
* const items = await record.offers.list();
|
|
248
|
-
* const first = await record.offers.first();
|
|
249
|
-
*
|
|
250
|
-
* // Filter by label
|
|
251
|
-
* const specific = await record.offers.first({ label: 'Offer__Discount' });
|
|
252
|
-
* ```
|
|
253
|
-
*/
|
|
254
|
-
get offers() {
|
|
255
|
-
var _a;
|
|
256
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
257
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
258
|
-
if (!this._offers) {
|
|
259
|
-
this._offers = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
260
|
-
sourceEntity: 'ProductModule:Discount',
|
|
261
|
-
targetEntity: 'ProductModule:Offer',
|
|
262
|
-
targetModuleName: 'ProductModule',
|
|
263
|
-
targetEntityName: 'Offer',
|
|
264
|
-
labels: ['Offer__Discount'],
|
|
265
|
-
}, OfferRecord_1.OfferRecord);
|
|
266
|
-
}
|
|
267
|
-
return this._offers;
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Access linked File records
|
|
271
|
-
* @remarks Available labels: Discount__File
|
|
272
|
-
* @throws Error if called on a new (unsaved) record
|
|
273
|
-
*
|
|
274
|
-
* @example
|
|
275
|
-
* ```typescript
|
|
276
|
-
* // Get all linked File records
|
|
277
|
-
* const items = await record.files.list();
|
|
278
|
-
* const first = await record.files.first();
|
|
279
|
-
*
|
|
280
|
-
* // Filter by label
|
|
281
|
-
* const specific = await record.files.first({ label: 'Discount__File' });
|
|
282
|
-
* ```
|
|
283
|
-
*/
|
|
284
|
-
get files() {
|
|
285
|
-
var _a;
|
|
286
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
287
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
288
|
-
if (!this._files) {
|
|
289
|
-
this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
290
|
-
sourceEntity: 'ProductModule:Discount',
|
|
291
|
-
targetEntity: 'SchemaModule:File',
|
|
292
|
-
targetModuleName: 'SchemaModule',
|
|
293
|
-
targetEntityName: 'File',
|
|
294
|
-
labels: ['Discount__File'],
|
|
295
|
-
}, FileRecord_1.FileRecord);
|
|
296
|
-
}
|
|
297
|
-
return this._files;
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* Access linked Invoice records
|
|
301
|
-
* @remarks Available labels: Invoice__Discount
|
|
302
|
-
* @throws Error if called on a new (unsaved) record
|
|
303
|
-
*
|
|
304
|
-
* @example
|
|
305
|
-
* ```typescript
|
|
306
|
-
* // Get all linked Invoice records
|
|
307
|
-
* const items = await record.invoices.list();
|
|
308
|
-
* const first = await record.invoices.first();
|
|
309
|
-
*
|
|
310
|
-
* // Filter by label
|
|
311
|
-
* const specific = await record.invoices.first({ label: 'Invoice__Discount' });
|
|
312
|
-
* ```
|
|
313
|
-
*/
|
|
314
|
-
get invoices() {
|
|
315
|
-
var _a;
|
|
316
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
317
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
318
|
-
if (!this._invoices) {
|
|
319
|
-
this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
320
|
-
sourceEntity: 'ProductModule:Discount',
|
|
321
|
-
targetEntity: 'BillingModule:Invoice',
|
|
322
|
-
targetModuleName: 'BillingModule',
|
|
323
|
-
targetEntityName: 'Invoice',
|
|
324
|
-
labels: ['Invoice__Discount'],
|
|
325
|
-
}, InvoiceRecord_1.InvoiceRecord);
|
|
326
|
-
}
|
|
327
|
-
return this._invoices;
|
|
328
|
-
}
|
|
329
142
|
// ============================================
|
|
330
143
|
// LINK MANAGEMENT
|
|
331
144
|
// ============================================
|
|
@@ -434,21 +247,6 @@ class DiscountRecord {
|
|
|
434
247
|
}
|
|
435
248
|
}
|
|
436
249
|
exports.DiscountRecord = DiscountRecord;
|
|
437
|
-
// ============================================
|
|
438
|
-
// TYPED LINK ACCESSORS
|
|
439
|
-
// ============================================
|
|
440
|
-
/** Valid labels for Note associations */
|
|
441
|
-
DiscountRecord.notesLabels = ['Discount__Note'];
|
|
442
|
-
/** Valid labels for Lead associations */
|
|
443
|
-
DiscountRecord.leadsLabels = ['Lead__Discount'];
|
|
444
|
-
/** Valid labels for Order associations */
|
|
445
|
-
DiscountRecord.ordersLabels = ['Order__Discount'];
|
|
446
|
-
/** Valid labels for Offer associations */
|
|
447
|
-
DiscountRecord.offersLabels = ['Offer__Discount'];
|
|
448
|
-
/** Valid labels for File associations */
|
|
449
|
-
DiscountRecord.filesLabels = ['Discount__File'];
|
|
450
|
-
/** Valid labels for Invoice associations */
|
|
451
|
-
DiscountRecord.invoicesLabels = ['Invoice__Discount'];
|
|
452
250
|
/** Type guard to check if an object is a DiscountRecord */
|
|
453
251
|
function isDiscountRecord(obj) {
|
|
454
252
|
return obj instanceof DiscountRecord;
|
|
@@ -13,16 +13,13 @@
|
|
|
13
13
|
* await record.createEmail({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: DEFAULT, REFERRAL, SUPPORT, TRANSACTIONAL
|
|
17
|
-
*
|
|
18
16
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
17
|
*/
|
|
20
18
|
import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
21
19
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
22
20
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
21
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
|
-
import {
|
|
25
|
-
import { EmailProperties, ReferralEmailProperties, SupportEmailProperties, TransactionalEmailProperties } from '../entities-v2/Email';
|
|
22
|
+
import { EmailProperties } from '../entities-v2/Email';
|
|
26
23
|
import { CreateCashbackRewardRefereeFailedEmailProperties } from '../actions-v2/CreateCashbackRewardRefereeFailedEmailDto';
|
|
27
24
|
import { CreateCashbackRewardRefereePendingEmailProperties } from '../actions-v2/CreateCashbackRewardRefereePendingEmailDto';
|
|
28
25
|
import { CreateCashbackRewardRefereeSuccessEmailProperties } from '../actions-v2/CreateCashbackRewardRefereeSuccessEmailDto';
|
|
@@ -41,15 +38,6 @@ import { CreateTransactionalEmailProperties } from '../actions-v2/CreateTransact
|
|
|
41
38
|
import { SendTlosNinjaCaseEmailProperties } from '../actions-v2/SendTlosNinjaCaseEmailDto';
|
|
42
39
|
import { UpdateEmailProperties } from '../actions-v2/UpdateEmailDto';
|
|
43
40
|
import { UpdateSupportEmailProperties } from '../actions-v2/UpdateSupportEmailDto';
|
|
44
|
-
import { UserRecord } from './UserRecord';
|
|
45
|
-
import { FileRecord } from './FileRecord';
|
|
46
|
-
import { CaseRecord } from './CaseRecord';
|
|
47
|
-
import { ContactRecord } from './ContactRecord';
|
|
48
|
-
import { EmailSenderRecord } from './EmailSenderRecord';
|
|
49
|
-
import { WorkOrderRecord } from './WorkOrderRecord';
|
|
50
|
-
import { ReferralRecord } from './ReferralRecord';
|
|
51
|
-
/** Valid entity types for Email */
|
|
52
|
-
export declare type EmailType = 'DEFAULT' | 'REFERRAL' | 'SUPPORT' | 'TRANSACTIONAL';
|
|
53
41
|
/**
|
|
54
42
|
* Builder for action execution with dryRun support
|
|
55
43
|
*
|
|
@@ -113,14 +101,6 @@ export declare class EmailRecord<TProps = EmailProperties> {
|
|
|
113
101
|
private _provider;
|
|
114
102
|
private _pendingLinks;
|
|
115
103
|
private _preGeneratedId;
|
|
116
|
-
private _users?;
|
|
117
|
-
private _emails?;
|
|
118
|
-
private _files?;
|
|
119
|
-
private _cases?;
|
|
120
|
-
private _contacts?;
|
|
121
|
-
private _emailSenders?;
|
|
122
|
-
private _workOrders?;
|
|
123
|
-
private _referrals?;
|
|
124
104
|
/**
|
|
125
105
|
* Create a record wrapper.
|
|
126
106
|
* @param record - The underlying record, or null for create operations
|
|
@@ -133,7 +113,7 @@ export declare class EmailRecord<TProps = EmailProperties> {
|
|
|
133
113
|
/** Record ID - always available (pre-generated for new records) */
|
|
134
114
|
get id(): string;
|
|
135
115
|
get entity(): string;
|
|
136
|
-
get type():
|
|
116
|
+
get type(): string | undefined;
|
|
137
117
|
/** Record properties - empty object for new (unsaved) records */
|
|
138
118
|
get properties(): TProps;
|
|
139
119
|
get title(): string | undefined;
|
|
@@ -146,214 +126,6 @@ export declare class EmailRecord<TProps = EmailProperties> {
|
|
|
146
126
|
get groups(): string[];
|
|
147
127
|
/** Access the underlying OdinRecord (null for new records) */
|
|
148
128
|
get record(): OdinRecord<TProps> | null;
|
|
149
|
-
/**
|
|
150
|
-
* Type guard: check if this record is of type DEFAULT
|
|
151
|
-
*
|
|
152
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
153
|
-
* giving you access to DEFAULT-specific properties.
|
|
154
|
-
*
|
|
155
|
-
* @example
|
|
156
|
-
* ```typescript
|
|
157
|
-
* if (record.isDefault()) {
|
|
158
|
-
* // TypeScript knows record.properties is EmailProperties
|
|
159
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
160
|
-
* }
|
|
161
|
-
* ```
|
|
162
|
-
* @remarks This is the default record type
|
|
163
|
-
*/
|
|
164
|
-
isDefault(): this is EmailRecord<EmailProperties>;
|
|
165
|
-
/**
|
|
166
|
-
* Type guard: check if this record is of type REFERRAL
|
|
167
|
-
*
|
|
168
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
169
|
-
* giving you access to REFERRAL-specific properties.
|
|
170
|
-
*
|
|
171
|
-
* @example
|
|
172
|
-
* ```typescript
|
|
173
|
-
* if (record.isReferral()) {
|
|
174
|
-
* // TypeScript knows record.properties is ReferralEmailProperties
|
|
175
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
176
|
-
* }
|
|
177
|
-
* ```
|
|
178
|
-
* @remarks Sending emails in the referral system
|
|
179
|
-
*/
|
|
180
|
-
isReferral(): this is EmailRecord<ReferralEmailProperties>;
|
|
181
|
-
/**
|
|
182
|
-
* Type guard: check if this record is of type SUPPORT
|
|
183
|
-
*
|
|
184
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
185
|
-
* giving you access to SUPPORT-specific properties.
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* ```typescript
|
|
189
|
-
* if (record.isSupport()) {
|
|
190
|
-
* // TypeScript knows record.properties is SupportEmailProperties
|
|
191
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
192
|
-
* }
|
|
193
|
-
* ```
|
|
194
|
-
* @remarks Support
|
|
195
|
-
*/
|
|
196
|
-
isSupport(): this is EmailRecord<SupportEmailProperties>;
|
|
197
|
-
/**
|
|
198
|
-
* Type guard: check if this record is of type TRANSACTIONAL
|
|
199
|
-
*
|
|
200
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
201
|
-
* giving you access to TRANSACTIONAL-specific properties.
|
|
202
|
-
*
|
|
203
|
-
* @example
|
|
204
|
-
* ```typescript
|
|
205
|
-
* if (record.isTransactional()) {
|
|
206
|
-
* // TypeScript knows record.properties is TransactionalEmailProperties
|
|
207
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
208
|
-
* }
|
|
209
|
-
* ```
|
|
210
|
-
* @remarks This type is used to create entities for transactional emails
|
|
211
|
-
*/
|
|
212
|
-
isTransactional(): this is EmailRecord<TransactionalEmailProperties>;
|
|
213
|
-
/** Valid labels for User associations */
|
|
214
|
-
static readonly usersLabels: readonly ["Email_User"];
|
|
215
|
-
/**
|
|
216
|
-
* Access linked User records
|
|
217
|
-
* @remarks Available labels: Email_User
|
|
218
|
-
* @throws Error if called on a new (unsaved) record
|
|
219
|
-
*
|
|
220
|
-
* @example
|
|
221
|
-
* ```typescript
|
|
222
|
-
* // Get all linked User records
|
|
223
|
-
* const items = await record.users.list();
|
|
224
|
-
* const first = await record.users.first();
|
|
225
|
-
*
|
|
226
|
-
* // Filter by label
|
|
227
|
-
* const specific = await record.users.first({ label: 'Email_User' });
|
|
228
|
-
* ```
|
|
229
|
-
*/
|
|
230
|
-
get users(): RecordLinkManager<UserRecord, typeof EmailRecord['usersLabels'][number]>;
|
|
231
|
-
/** Valid labels for Email associations */
|
|
232
|
-
static readonly emailsLabels: readonly ["Email_Email"];
|
|
233
|
-
/**
|
|
234
|
-
* Access linked Email records
|
|
235
|
-
* @remarks Available labels: Email_Email
|
|
236
|
-
* @throws Error if called on a new (unsaved) record
|
|
237
|
-
*
|
|
238
|
-
* @example
|
|
239
|
-
* ```typescript
|
|
240
|
-
* // Get all linked Email records
|
|
241
|
-
* const items = await record.emails.list();
|
|
242
|
-
* const first = await record.emails.first();
|
|
243
|
-
*
|
|
244
|
-
* // Filter by label
|
|
245
|
-
* const specific = await record.emails.first({ label: 'Email_Email' });
|
|
246
|
-
* ```
|
|
247
|
-
*/
|
|
248
|
-
get emails(): RecordLinkManager<EmailRecord, typeof EmailRecord['emailsLabels'][number]>;
|
|
249
|
-
/** Valid labels for File associations */
|
|
250
|
-
static readonly filesLabels: readonly ["Attachments"];
|
|
251
|
-
/**
|
|
252
|
-
* Access linked File records
|
|
253
|
-
* @remarks Available labels: Attachments
|
|
254
|
-
* @throws Error if called on a new (unsaved) record
|
|
255
|
-
*
|
|
256
|
-
* @example
|
|
257
|
-
* ```typescript
|
|
258
|
-
* // Get all linked File records
|
|
259
|
-
* const items = await record.files.list();
|
|
260
|
-
* const first = await record.files.first();
|
|
261
|
-
*
|
|
262
|
-
* // Filter by label
|
|
263
|
-
* const specific = await record.files.first({ label: 'Attachments' });
|
|
264
|
-
* ```
|
|
265
|
-
*/
|
|
266
|
-
get files(): RecordLinkManager<FileRecord, typeof EmailRecord['filesLabels'][number]>;
|
|
267
|
-
/** Valid labels for Case associations */
|
|
268
|
-
static readonly casesLabels: readonly ["Case__Email"];
|
|
269
|
-
/**
|
|
270
|
-
* Access linked Case records
|
|
271
|
-
* @remarks Available labels: Case__Email
|
|
272
|
-
* @throws Error if called on a new (unsaved) record
|
|
273
|
-
*
|
|
274
|
-
* @example
|
|
275
|
-
* ```typescript
|
|
276
|
-
* // Get all linked Case records
|
|
277
|
-
* const items = await record.cases.list();
|
|
278
|
-
* const first = await record.cases.first();
|
|
279
|
-
*
|
|
280
|
-
* // Filter by label
|
|
281
|
-
* const specific = await record.cases.first({ label: 'Case__Email' });
|
|
282
|
-
* ```
|
|
283
|
-
*/
|
|
284
|
-
get cases(): RecordLinkManager<CaseRecord, typeof EmailRecord['casesLabels'][number]>;
|
|
285
|
-
/** Valid labels for Contact associations */
|
|
286
|
-
static readonly contactsLabels: readonly ["Email_Contact"];
|
|
287
|
-
/**
|
|
288
|
-
* Access linked Contact records
|
|
289
|
-
* @remarks Available labels: Email_Contact
|
|
290
|
-
* @throws Error if called on a new (unsaved) record
|
|
291
|
-
*
|
|
292
|
-
* @example
|
|
293
|
-
* ```typescript
|
|
294
|
-
* // Get all linked Contact records
|
|
295
|
-
* const items = await record.contacts.list();
|
|
296
|
-
* const first = await record.contacts.first();
|
|
297
|
-
*
|
|
298
|
-
* // Filter by label
|
|
299
|
-
* const specific = await record.contacts.first({ label: 'Email_Contact' });
|
|
300
|
-
* ```
|
|
301
|
-
*/
|
|
302
|
-
get contacts(): RecordLinkManager<ContactRecord, typeof EmailRecord['contactsLabels'][number]>;
|
|
303
|
-
/** Valid labels for EmailSender associations */
|
|
304
|
-
static readonly emailSendersLabels: readonly ["Emai__EmailSender"];
|
|
305
|
-
/**
|
|
306
|
-
* Access linked EmailSender records
|
|
307
|
-
* @remarks Available labels: Emai__EmailSender
|
|
308
|
-
* @throws Error if called on a new (unsaved) record
|
|
309
|
-
*
|
|
310
|
-
* @example
|
|
311
|
-
* ```typescript
|
|
312
|
-
* // Get all linked EmailSender records
|
|
313
|
-
* const items = await record.emailSenders.list();
|
|
314
|
-
* const first = await record.emailSenders.first();
|
|
315
|
-
*
|
|
316
|
-
* // Filter by label
|
|
317
|
-
* const specific = await record.emailSenders.first({ label: 'Emai__EmailSender' });
|
|
318
|
-
* ```
|
|
319
|
-
*/
|
|
320
|
-
get emailSenders(): RecordLinkManager<EmailSenderRecord, typeof EmailRecord['emailSendersLabels'][number]>;
|
|
321
|
-
/** Valid labels for WorkOrder associations */
|
|
322
|
-
static readonly workOrdersLabels: readonly ["WorkOrder__Email"];
|
|
323
|
-
/**
|
|
324
|
-
* Access linked WorkOrder records
|
|
325
|
-
* @remarks Available labels: WorkOrder__Email
|
|
326
|
-
* @throws Error if called on a new (unsaved) record
|
|
327
|
-
*
|
|
328
|
-
* @example
|
|
329
|
-
* ```typescript
|
|
330
|
-
* // Get all linked WorkOrder records
|
|
331
|
-
* const items = await record.workOrders.list();
|
|
332
|
-
* const first = await record.workOrders.first();
|
|
333
|
-
*
|
|
334
|
-
* // Filter by label
|
|
335
|
-
* const specific = await record.workOrders.first({ label: 'WorkOrder__Email' });
|
|
336
|
-
* ```
|
|
337
|
-
*/
|
|
338
|
-
get workOrders(): RecordLinkManager<WorkOrderRecord, typeof EmailRecord['workOrdersLabels'][number]>;
|
|
339
|
-
/** Valid labels for Referral associations */
|
|
340
|
-
static readonly referralsLabels: readonly ["Referral__Email"];
|
|
341
|
-
/**
|
|
342
|
-
* Access linked Referral records
|
|
343
|
-
* @remarks Available labels: Referral__Email
|
|
344
|
-
* @throws Error if called on a new (unsaved) record
|
|
345
|
-
*
|
|
346
|
-
* @example
|
|
347
|
-
* ```typescript
|
|
348
|
-
* // Get all linked Referral records
|
|
349
|
-
* const items = await record.referrals.list();
|
|
350
|
-
* const first = await record.referrals.first();
|
|
351
|
-
*
|
|
352
|
-
* // Filter by label
|
|
353
|
-
* const specific = await record.referrals.first({ label: 'Referral__Email' });
|
|
354
|
-
* ```
|
|
355
|
-
*/
|
|
356
|
-
get referrals(): RecordLinkManager<ReferralRecord, typeof EmailRecord['referralsLabels'][number]>;
|
|
357
129
|
/**
|
|
358
130
|
* Queue a link to be created with the next action.
|
|
359
131
|
* Works for both create and update actions.
|