@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.createAccount({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: BUSINESS, MULTIPLE, PRIMARY, RESELLER, SERVICE
|
|
18
|
-
*
|
|
19
17
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
18
|
*/
|
|
21
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -31,17 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
29
|
exports.isAccountRecord = exports.AccountRecord = 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 WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
36
|
-
const NoteRecord_1 = require("./NoteRecord");
|
|
37
|
-
const OneTouchSwitchRecord_1 = require("./OneTouchSwitchRecord");
|
|
38
|
-
const OrderRecord_1 = require("./OrderRecord");
|
|
39
|
-
const InvoiceRecord_1 = require("./InvoiceRecord");
|
|
40
|
-
const AddressRecord_1 = require("./AddressRecord");
|
|
41
|
-
const CaseRecord_1 = require("./CaseRecord");
|
|
42
|
-
const PaymentRecord_1 = require("./PaymentRecord");
|
|
43
|
-
const ContactRecord_1 = require("./ContactRecord");
|
|
44
|
-
const FileRecord_1 = require("./FileRecord");
|
|
45
32
|
/**
|
|
46
33
|
* Builder for action execution with dryRun support
|
|
47
34
|
*
|
|
@@ -153,419 +140,6 @@ class AccountRecord {
|
|
|
153
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
154
141
|
get record() { return this._record; }
|
|
155
142
|
// ============================================
|
|
156
|
-
// TYPE GUARDS (with TypeScript type predicates)
|
|
157
|
-
// ============================================
|
|
158
|
-
/**
|
|
159
|
-
* Type guard: check if this record is of type BUSINESS
|
|
160
|
-
*
|
|
161
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
162
|
-
* giving you access to BUSINESS-specific properties.
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```typescript
|
|
166
|
-
* if (record.isBusiness()) {
|
|
167
|
-
* // TypeScript knows record.properties is BusinessAccountProperties
|
|
168
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
169
|
-
* }
|
|
170
|
-
* ```
|
|
171
|
-
* @remarks Business accounts
|
|
172
|
-
*/
|
|
173
|
-
isBusiness() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'BUSINESS'; }
|
|
174
|
-
/**
|
|
175
|
-
* Type guard: check if this record is of type MULTIPLE
|
|
176
|
-
*
|
|
177
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
178
|
-
* giving you access to MULTIPLE-specific properties.
|
|
179
|
-
*
|
|
180
|
-
* @example
|
|
181
|
-
* ```typescript
|
|
182
|
-
* if (record.isMultiple()) {
|
|
183
|
-
* // TypeScript knows record.properties is MultipleAccountProperties
|
|
184
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
185
|
-
* }
|
|
186
|
-
* ```
|
|
187
|
-
* @remarks Multiple accounts are for customers who want to purchase multiple services at many addresses
|
|
188
|
-
*/
|
|
189
|
-
isMultiple() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'MULTIPLE'; }
|
|
190
|
-
/**
|
|
191
|
-
* Type guard: check if this record is of type PRIMARY
|
|
192
|
-
*
|
|
193
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
194
|
-
* giving you access to PRIMARY-specific properties.
|
|
195
|
-
*
|
|
196
|
-
* @example
|
|
197
|
-
* ```typescript
|
|
198
|
-
* if (record.isPrimary()) {
|
|
199
|
-
* // TypeScript knows record.properties is PrimaryAccountProperties
|
|
200
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
201
|
-
* }
|
|
202
|
-
* ```
|
|
203
|
-
* @remarks Primary account
|
|
204
|
-
*/
|
|
205
|
-
isPrimary() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'PRIMARY'; }
|
|
206
|
-
/**
|
|
207
|
-
* Type guard: check if this record is of type RESELLER
|
|
208
|
-
*
|
|
209
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
210
|
-
* giving you access to RESELLER-specific properties.
|
|
211
|
-
*
|
|
212
|
-
* @example
|
|
213
|
-
* ```typescript
|
|
214
|
-
* if (record.isReseller()) {
|
|
215
|
-
* // TypeScript knows record.properties is ResellerAccountProperties
|
|
216
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
217
|
-
* }
|
|
218
|
-
* ```
|
|
219
|
-
* @remarks Reseller
|
|
220
|
-
*/
|
|
221
|
-
isReseller() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'RESELLER'; }
|
|
222
|
-
/**
|
|
223
|
-
* Type guard: check if this record is of type SERVICE
|
|
224
|
-
*
|
|
225
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
226
|
-
* giving you access to SERVICE-specific properties.
|
|
227
|
-
*
|
|
228
|
-
* @example
|
|
229
|
-
* ```typescript
|
|
230
|
-
* if (record.isService()) {
|
|
231
|
-
* // TypeScript knows record.properties is ServiceAccountProperties
|
|
232
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
233
|
-
* }
|
|
234
|
-
* ```
|
|
235
|
-
* @remarks This is the account where service is being delivered
|
|
236
|
-
*/
|
|
237
|
-
isService() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'SERVICE'; }
|
|
238
|
-
/**
|
|
239
|
-
* Access linked WorkOrder records
|
|
240
|
-
* @remarks Available labels: Account__WorkOrder
|
|
241
|
-
* @throws Error if called on a new (unsaved) record
|
|
242
|
-
*
|
|
243
|
-
* @example
|
|
244
|
-
* ```typescript
|
|
245
|
-
* // Get all linked WorkOrder records
|
|
246
|
-
* const items = await record.workOrders.list();
|
|
247
|
-
* const first = await record.workOrders.first();
|
|
248
|
-
*
|
|
249
|
-
* // Filter by label
|
|
250
|
-
* const specific = await record.workOrders.first({ label: 'Account__WorkOrder' });
|
|
251
|
-
* ```
|
|
252
|
-
*/
|
|
253
|
-
get workOrders() {
|
|
254
|
-
var _a;
|
|
255
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
256
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
257
|
-
if (!this._workOrders) {
|
|
258
|
-
this._workOrders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
259
|
-
sourceEntity: 'CrmModule:Account',
|
|
260
|
-
targetEntity: 'FieldServiceModule:WorkOrder',
|
|
261
|
-
targetModuleName: 'FieldServiceModule',
|
|
262
|
-
targetEntityName: 'WorkOrder',
|
|
263
|
-
labels: ['Account__WorkOrder'],
|
|
264
|
-
}, WorkOrderRecord_1.WorkOrderRecord);
|
|
265
|
-
}
|
|
266
|
-
return this._workOrders;
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* Access linked Note records
|
|
270
|
-
* @remarks Available labels: Account__Note
|
|
271
|
-
* @throws Error if called on a new (unsaved) record
|
|
272
|
-
*
|
|
273
|
-
* @example
|
|
274
|
-
* ```typescript
|
|
275
|
-
* // Get all linked Note records
|
|
276
|
-
* const items = await record.notes.list();
|
|
277
|
-
* const first = await record.notes.first();
|
|
278
|
-
*
|
|
279
|
-
* // Filter by label
|
|
280
|
-
* const specific = await record.notes.first({ label: 'Account__Note' });
|
|
281
|
-
* ```
|
|
282
|
-
*/
|
|
283
|
-
get notes() {
|
|
284
|
-
var _a;
|
|
285
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
286
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
287
|
-
if (!this._notes) {
|
|
288
|
-
this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
289
|
-
sourceEntity: 'CrmModule:Account',
|
|
290
|
-
targetEntity: 'SupportModule:Note',
|
|
291
|
-
targetModuleName: 'SupportModule',
|
|
292
|
-
targetEntityName: 'Note',
|
|
293
|
-
labels: ['Account__Note'],
|
|
294
|
-
}, NoteRecord_1.NoteRecord);
|
|
295
|
-
}
|
|
296
|
-
return this._notes;
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* Access linked OneTouchSwitch records
|
|
300
|
-
* @remarks Available labels: Account__OneTouchSwitch
|
|
301
|
-
* @throws Error if called on a new (unsaved) record
|
|
302
|
-
*
|
|
303
|
-
* @example
|
|
304
|
-
* ```typescript
|
|
305
|
-
* // Get all linked OneTouchSwitch records
|
|
306
|
-
* const items = await record.oneTouchSwitches.list();
|
|
307
|
-
* const first = await record.oneTouchSwitches.first();
|
|
308
|
-
*
|
|
309
|
-
* // Filter by label
|
|
310
|
-
* const specific = await record.oneTouchSwitches.first({ label: 'Account__OneTouchSwitch' });
|
|
311
|
-
* ```
|
|
312
|
-
*/
|
|
313
|
-
get oneTouchSwitches() {
|
|
314
|
-
var _a;
|
|
315
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
316
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
317
|
-
if (!this._oneTouchSwitches) {
|
|
318
|
-
this._oneTouchSwitches = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
319
|
-
sourceEntity: 'CrmModule:Account',
|
|
320
|
-
targetEntity: 'OrderModule:OneTouchSwitch',
|
|
321
|
-
targetModuleName: 'OrderModule',
|
|
322
|
-
targetEntityName: 'OneTouchSwitch',
|
|
323
|
-
labels: ['Account__OneTouchSwitch'],
|
|
324
|
-
}, OneTouchSwitchRecord_1.OneTouchSwitchRecord);
|
|
325
|
-
}
|
|
326
|
-
return this._oneTouchSwitches;
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* Access linked Order records
|
|
330
|
-
* @remarks Available labels: Account__Order
|
|
331
|
-
* @throws Error if called on a new (unsaved) record
|
|
332
|
-
*
|
|
333
|
-
* @example
|
|
334
|
-
* ```typescript
|
|
335
|
-
* // Get all linked Order records
|
|
336
|
-
* const items = await record.orders.list();
|
|
337
|
-
* const first = await record.orders.first();
|
|
338
|
-
*
|
|
339
|
-
* // Filter by label
|
|
340
|
-
* const specific = await record.orders.first({ label: 'Account__Order' });
|
|
341
|
-
* ```
|
|
342
|
-
*/
|
|
343
|
-
get orders() {
|
|
344
|
-
var _a;
|
|
345
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
346
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
347
|
-
if (!this._orders) {
|
|
348
|
-
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
349
|
-
sourceEntity: 'CrmModule:Account',
|
|
350
|
-
targetEntity: 'OrderModule:Order',
|
|
351
|
-
targetModuleName: 'OrderModule',
|
|
352
|
-
targetEntityName: 'Order',
|
|
353
|
-
labels: ['Account__Order'],
|
|
354
|
-
}, OrderRecord_1.OrderRecord);
|
|
355
|
-
}
|
|
356
|
-
return this._orders;
|
|
357
|
-
}
|
|
358
|
-
/**
|
|
359
|
-
* Access linked Invoice records
|
|
360
|
-
* @remarks Available labels: Account__Invoice
|
|
361
|
-
* @throws Error if called on a new (unsaved) record
|
|
362
|
-
*
|
|
363
|
-
* @example
|
|
364
|
-
* ```typescript
|
|
365
|
-
* // Get all linked Invoice records
|
|
366
|
-
* const items = await record.invoices.list();
|
|
367
|
-
* const first = await record.invoices.first();
|
|
368
|
-
*
|
|
369
|
-
* // Filter by label
|
|
370
|
-
* const specific = await record.invoices.first({ label: 'Account__Invoice' });
|
|
371
|
-
* ```
|
|
372
|
-
*/
|
|
373
|
-
get invoices() {
|
|
374
|
-
var _a;
|
|
375
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
376
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
377
|
-
if (!this._invoices) {
|
|
378
|
-
this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
379
|
-
sourceEntity: 'CrmModule:Account',
|
|
380
|
-
targetEntity: 'BillingModule:Invoice',
|
|
381
|
-
targetModuleName: 'BillingModule',
|
|
382
|
-
targetEntityName: 'Invoice',
|
|
383
|
-
labels: ['Account__Invoice'],
|
|
384
|
-
}, InvoiceRecord_1.InvoiceRecord);
|
|
385
|
-
}
|
|
386
|
-
return this._invoices;
|
|
387
|
-
}
|
|
388
|
-
/**
|
|
389
|
-
* Access linked Account records
|
|
390
|
-
* @remarks Available labels: Account_Account
|
|
391
|
-
* @throws Error if called on a new (unsaved) record
|
|
392
|
-
*
|
|
393
|
-
* @example
|
|
394
|
-
* ```typescript
|
|
395
|
-
* // Get all linked Account records
|
|
396
|
-
* const items = await record.accounts.list();
|
|
397
|
-
* const first = await record.accounts.first();
|
|
398
|
-
*
|
|
399
|
-
* // Filter by label
|
|
400
|
-
* const specific = await record.accounts.first({ label: 'Account_Account' });
|
|
401
|
-
* ```
|
|
402
|
-
*/
|
|
403
|
-
get accounts() {
|
|
404
|
-
var _a;
|
|
405
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
406
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
407
|
-
if (!this._accounts) {
|
|
408
|
-
this._accounts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
409
|
-
sourceEntity: 'CrmModule:Account',
|
|
410
|
-
targetEntity: 'CrmModule:Account',
|
|
411
|
-
targetModuleName: 'CrmModule',
|
|
412
|
-
targetEntityName: 'Account',
|
|
413
|
-
labels: ['Account_Account'],
|
|
414
|
-
}, AccountRecord);
|
|
415
|
-
}
|
|
416
|
-
return this._accounts;
|
|
417
|
-
}
|
|
418
|
-
/**
|
|
419
|
-
* Access linked Address records
|
|
420
|
-
* @remarks Available labels: BillingAddress
|
|
421
|
-
* @throws Error if called on a new (unsaved) record
|
|
422
|
-
*
|
|
423
|
-
* @example
|
|
424
|
-
* ```typescript
|
|
425
|
-
* // Get all linked Address records
|
|
426
|
-
* const items = await record.addresses.list();
|
|
427
|
-
* const first = await record.addresses.first();
|
|
428
|
-
*
|
|
429
|
-
* // Filter by label
|
|
430
|
-
* const specific = await record.addresses.first({ label: 'BillingAddress' });
|
|
431
|
-
* ```
|
|
432
|
-
*/
|
|
433
|
-
get addresses() {
|
|
434
|
-
var _a;
|
|
435
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
436
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
437
|
-
if (!this._addresses) {
|
|
438
|
-
this._addresses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
439
|
-
sourceEntity: 'CrmModule:Account',
|
|
440
|
-
targetEntity: 'CrmModule:Address',
|
|
441
|
-
targetModuleName: 'CrmModule',
|
|
442
|
-
targetEntityName: 'Address',
|
|
443
|
-
labels: ['BillingAddress'],
|
|
444
|
-
}, AddressRecord_1.AddressRecord);
|
|
445
|
-
}
|
|
446
|
-
return this._addresses;
|
|
447
|
-
}
|
|
448
|
-
/**
|
|
449
|
-
* Access linked Case records
|
|
450
|
-
* @remarks Available labels: Account__Case
|
|
451
|
-
* @throws Error if called on a new (unsaved) record
|
|
452
|
-
*
|
|
453
|
-
* @example
|
|
454
|
-
* ```typescript
|
|
455
|
-
* // Get all linked Case records
|
|
456
|
-
* const items = await record.cases.list();
|
|
457
|
-
* const first = await record.cases.first();
|
|
458
|
-
*
|
|
459
|
-
* // Filter by label
|
|
460
|
-
* const specific = await record.cases.first({ label: 'Account__Case' });
|
|
461
|
-
* ```
|
|
462
|
-
*/
|
|
463
|
-
get cases() {
|
|
464
|
-
var _a;
|
|
465
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
466
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
467
|
-
if (!this._cases) {
|
|
468
|
-
this._cases = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
469
|
-
sourceEntity: 'CrmModule:Account',
|
|
470
|
-
targetEntity: 'SupportModule:Case',
|
|
471
|
-
targetModuleName: 'SupportModule',
|
|
472
|
-
targetEntityName: 'Case',
|
|
473
|
-
labels: ['Account__Case'],
|
|
474
|
-
}, CaseRecord_1.CaseRecord);
|
|
475
|
-
}
|
|
476
|
-
return this._cases;
|
|
477
|
-
}
|
|
478
|
-
/**
|
|
479
|
-
* Access linked Payment records
|
|
480
|
-
* @remarks Available labels: Account_Payment
|
|
481
|
-
* @throws Error if called on a new (unsaved) record
|
|
482
|
-
*
|
|
483
|
-
* @example
|
|
484
|
-
* ```typescript
|
|
485
|
-
* // Get all linked Payment records
|
|
486
|
-
* const items = await record.payments.list();
|
|
487
|
-
* const first = await record.payments.first();
|
|
488
|
-
*
|
|
489
|
-
* // Filter by label
|
|
490
|
-
* const specific = await record.payments.first({ label: 'Account_Payment' });
|
|
491
|
-
* ```
|
|
492
|
-
*/
|
|
493
|
-
get payments() {
|
|
494
|
-
var _a;
|
|
495
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
496
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
497
|
-
if (!this._payments) {
|
|
498
|
-
this._payments = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
499
|
-
sourceEntity: 'CrmModule:Account',
|
|
500
|
-
targetEntity: 'BillingModule:Payment',
|
|
501
|
-
targetModuleName: 'BillingModule',
|
|
502
|
-
targetEntityName: 'Payment',
|
|
503
|
-
labels: ['Account_Payment'],
|
|
504
|
-
}, PaymentRecord_1.PaymentRecord);
|
|
505
|
-
}
|
|
506
|
-
return this._payments;
|
|
507
|
-
}
|
|
508
|
-
/**
|
|
509
|
-
* Access linked Contact records
|
|
510
|
-
* @remarks Available labels: BillingContact
|
|
511
|
-
* @throws Error if called on a new (unsaved) record
|
|
512
|
-
*
|
|
513
|
-
* @example
|
|
514
|
-
* ```typescript
|
|
515
|
-
* // Get all linked Contact records
|
|
516
|
-
* const items = await record.contacts.list();
|
|
517
|
-
* const first = await record.contacts.first();
|
|
518
|
-
*
|
|
519
|
-
* // Filter by label
|
|
520
|
-
* const specific = await record.contacts.first({ label: 'BillingContact' });
|
|
521
|
-
* ```
|
|
522
|
-
*/
|
|
523
|
-
get contacts() {
|
|
524
|
-
var _a;
|
|
525
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
526
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
527
|
-
if (!this._contacts) {
|
|
528
|
-
this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
529
|
-
sourceEntity: 'CrmModule:Account',
|
|
530
|
-
targetEntity: 'CrmModule:Contact',
|
|
531
|
-
targetModuleName: 'CrmModule',
|
|
532
|
-
targetEntityName: 'Contact',
|
|
533
|
-
labels: ['BillingContact'],
|
|
534
|
-
}, ContactRecord_1.ContactRecord);
|
|
535
|
-
}
|
|
536
|
-
return this._contacts;
|
|
537
|
-
}
|
|
538
|
-
/**
|
|
539
|
-
* Access linked File records
|
|
540
|
-
* @remarks Available labels: Account__File
|
|
541
|
-
* @throws Error if called on a new (unsaved) record
|
|
542
|
-
*
|
|
543
|
-
* @example
|
|
544
|
-
* ```typescript
|
|
545
|
-
* // Get all linked File records
|
|
546
|
-
* const items = await record.files.list();
|
|
547
|
-
* const first = await record.files.first();
|
|
548
|
-
*
|
|
549
|
-
* // Filter by label
|
|
550
|
-
* const specific = await record.files.first({ label: 'Account__File' });
|
|
551
|
-
* ```
|
|
552
|
-
*/
|
|
553
|
-
get files() {
|
|
554
|
-
var _a;
|
|
555
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
556
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
557
|
-
if (!this._files) {
|
|
558
|
-
this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
559
|
-
sourceEntity: 'CrmModule:Account',
|
|
560
|
-
targetEntity: 'SchemaModule:File',
|
|
561
|
-
targetModuleName: 'SchemaModule',
|
|
562
|
-
targetEntityName: 'File',
|
|
563
|
-
labels: ['Account__File'],
|
|
564
|
-
}, FileRecord_1.FileRecord);
|
|
565
|
-
}
|
|
566
|
-
return this._files;
|
|
567
|
-
}
|
|
568
|
-
// ============================================
|
|
569
143
|
// LINK MANAGEMENT
|
|
570
144
|
// ============================================
|
|
571
145
|
/**
|
|
@@ -892,31 +466,6 @@ class AccountRecord {
|
|
|
892
466
|
}
|
|
893
467
|
}
|
|
894
468
|
exports.AccountRecord = AccountRecord;
|
|
895
|
-
// ============================================
|
|
896
|
-
// TYPED LINK ACCESSORS
|
|
897
|
-
// ============================================
|
|
898
|
-
/** Valid labels for WorkOrder associations */
|
|
899
|
-
AccountRecord.workOrdersLabels = ['Account__WorkOrder'];
|
|
900
|
-
/** Valid labels for Note associations */
|
|
901
|
-
AccountRecord.notesLabels = ['Account__Note'];
|
|
902
|
-
/** Valid labels for OneTouchSwitch associations */
|
|
903
|
-
AccountRecord.oneTouchSwitchesLabels = ['Account__OneTouchSwitch'];
|
|
904
|
-
/** Valid labels for Order associations */
|
|
905
|
-
AccountRecord.ordersLabels = ['Account__Order'];
|
|
906
|
-
/** Valid labels for Invoice associations */
|
|
907
|
-
AccountRecord.invoicesLabels = ['Account__Invoice'];
|
|
908
|
-
/** Valid labels for Account associations */
|
|
909
|
-
AccountRecord.accountsLabels = ['Account_Account'];
|
|
910
|
-
/** Valid labels for Address associations */
|
|
911
|
-
AccountRecord.addressesLabels = ['BillingAddress'];
|
|
912
|
-
/** Valid labels for Case associations */
|
|
913
|
-
AccountRecord.casesLabels = ['Account__Case'];
|
|
914
|
-
/** Valid labels for Payment associations */
|
|
915
|
-
AccountRecord.paymentsLabels = ['Account_Payment'];
|
|
916
|
-
/** Valid labels for Contact associations */
|
|
917
|
-
AccountRecord.contactsLabels = ['BillingContact'];
|
|
918
|
-
/** Valid labels for File associations */
|
|
919
|
-
AccountRecord.filesLabels = ['Account__File'];
|
|
920
469
|
/** Type guard to check if an object is a AccountRecord */
|
|
921
470
|
function isAccountRecord(obj) {
|
|
922
471
|
return obj instanceof AccountRecord;
|
|
@@ -13,24 +13,14 @@
|
|
|
13
13
|
* await record.createActivityLog({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: DEFAULT
|
|
17
|
-
*
|
|
18
16
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
17
|
*/
|
|
20
18
|
import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
21
19
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
22
20
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
21
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
|
-
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
22
|
import { ActivityLogProperties } from '../entities-v2/ActivityLog';
|
|
26
23
|
import { CreateActivityLogEntryProperties } from '../actions-v2/CreateActivityLogEntryDto';
|
|
27
|
-
import { OrderRecord } from './OrderRecord';
|
|
28
|
-
import { CaseRecord } from './CaseRecord';
|
|
29
|
-
import { OneTouchSwitchRecord } from './OneTouchSwitchRecord';
|
|
30
|
-
import { CallRecord } from './CallRecord';
|
|
31
|
-
import { WorkOrderRecord } from './WorkOrderRecord';
|
|
32
|
-
/** Valid entity types for ActivityLog */
|
|
33
|
-
export declare type ActivityLogType = 'DEFAULT';
|
|
34
24
|
/**
|
|
35
25
|
* Builder for action execution with dryRun support
|
|
36
26
|
*
|
|
@@ -94,11 +84,6 @@ export declare class ActivityLogRecord<TProps = ActivityLogProperties> {
|
|
|
94
84
|
private _provider;
|
|
95
85
|
private _pendingLinks;
|
|
96
86
|
private _preGeneratedId;
|
|
97
|
-
private _orders?;
|
|
98
|
-
private _cases?;
|
|
99
|
-
private _oneTouchSwitches?;
|
|
100
|
-
private _calls?;
|
|
101
|
-
private _workOrders?;
|
|
102
87
|
/**
|
|
103
88
|
* Create a record wrapper.
|
|
104
89
|
* @param record - The underlying record, or null for create operations
|
|
@@ -111,7 +96,7 @@ export declare class ActivityLogRecord<TProps = ActivityLogProperties> {
|
|
|
111
96
|
/** Record ID - always available (pre-generated for new records) */
|
|
112
97
|
get id(): string;
|
|
113
98
|
get entity(): string;
|
|
114
|
-
get type():
|
|
99
|
+
get type(): string | undefined;
|
|
115
100
|
/** Record properties - empty object for new (unsaved) records */
|
|
116
101
|
get properties(): TProps;
|
|
117
102
|
get title(): string | undefined;
|
|
@@ -124,112 +109,6 @@ export declare class ActivityLogRecord<TProps = ActivityLogProperties> {
|
|
|
124
109
|
get groups(): string[];
|
|
125
110
|
/** Access the underlying OdinRecord (null for new records) */
|
|
126
111
|
get record(): OdinRecord<TProps> | null;
|
|
127
|
-
/**
|
|
128
|
-
* Type guard: check if this record is of type DEFAULT
|
|
129
|
-
*
|
|
130
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
131
|
-
* giving you access to DEFAULT-specific properties.
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```typescript
|
|
135
|
-
* if (record.isDefault()) {
|
|
136
|
-
* // TypeScript knows record.properties is ActivityLogProperties
|
|
137
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
138
|
-
* }
|
|
139
|
-
* ```
|
|
140
|
-
* @remarks This is the default record type
|
|
141
|
-
*/
|
|
142
|
-
isDefault(): this is ActivityLogRecord<ActivityLogProperties>;
|
|
143
|
-
/** Valid labels for Order associations */
|
|
144
|
-
static readonly ordersLabels: readonly ["Order__ActivityLog"];
|
|
145
|
-
/**
|
|
146
|
-
* Access linked Order records
|
|
147
|
-
* @remarks Available labels: Order__ActivityLog
|
|
148
|
-
* @throws Error if called on a new (unsaved) record
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* ```typescript
|
|
152
|
-
* // Get all linked Order records
|
|
153
|
-
* const items = await record.orders.list();
|
|
154
|
-
* const first = await record.orders.first();
|
|
155
|
-
*
|
|
156
|
-
* // Filter by label
|
|
157
|
-
* const specific = await record.orders.first({ label: 'Order__ActivityLog' });
|
|
158
|
-
* ```
|
|
159
|
-
*/
|
|
160
|
-
get orders(): RecordLinkManager<OrderRecord, typeof ActivityLogRecord['ordersLabels'][number]>;
|
|
161
|
-
/** Valid labels for Case associations */
|
|
162
|
-
static readonly casesLabels: readonly ["Case__ActivityLog"];
|
|
163
|
-
/**
|
|
164
|
-
* Access linked Case records
|
|
165
|
-
* @remarks Available labels: Case__ActivityLog
|
|
166
|
-
* @throws Error if called on a new (unsaved) record
|
|
167
|
-
*
|
|
168
|
-
* @example
|
|
169
|
-
* ```typescript
|
|
170
|
-
* // Get all linked Case records
|
|
171
|
-
* const items = await record.cases.list();
|
|
172
|
-
* const first = await record.cases.first();
|
|
173
|
-
*
|
|
174
|
-
* // Filter by label
|
|
175
|
-
* const specific = await record.cases.first({ label: 'Case__ActivityLog' });
|
|
176
|
-
* ```
|
|
177
|
-
*/
|
|
178
|
-
get cases(): RecordLinkManager<CaseRecord, typeof ActivityLogRecord['casesLabels'][number]>;
|
|
179
|
-
/** Valid labels for OneTouchSwitch associations */
|
|
180
|
-
static readonly oneTouchSwitchesLabels: readonly ["OneTouchSwitch_ActivityLog"];
|
|
181
|
-
/**
|
|
182
|
-
* Access linked OneTouchSwitch records
|
|
183
|
-
* @remarks Available labels: OneTouchSwitch_ActivityLog
|
|
184
|
-
* @throws Error if called on a new (unsaved) record
|
|
185
|
-
*
|
|
186
|
-
* @example
|
|
187
|
-
* ```typescript
|
|
188
|
-
* // Get all linked OneTouchSwitch records
|
|
189
|
-
* const items = await record.oneTouchSwitches.list();
|
|
190
|
-
* const first = await record.oneTouchSwitches.first();
|
|
191
|
-
*
|
|
192
|
-
* // Filter by label
|
|
193
|
-
* const specific = await record.oneTouchSwitches.first({ label: 'OneTouchSwitch_ActivityLog' });
|
|
194
|
-
* ```
|
|
195
|
-
*/
|
|
196
|
-
get oneTouchSwitches(): RecordLinkManager<OneTouchSwitchRecord, typeof ActivityLogRecord['oneTouchSwitchesLabels'][number]>;
|
|
197
|
-
/** Valid labels for Call associations */
|
|
198
|
-
static readonly callsLabels: readonly ["CallActivity"];
|
|
199
|
-
/**
|
|
200
|
-
* Access linked Call records
|
|
201
|
-
* @remarks Available labels: CallActivity
|
|
202
|
-
* @throws Error if called on a new (unsaved) record
|
|
203
|
-
*
|
|
204
|
-
* @example
|
|
205
|
-
* ```typescript
|
|
206
|
-
* // Get all linked Call records
|
|
207
|
-
* const items = await record.calls.list();
|
|
208
|
-
* const first = await record.calls.first();
|
|
209
|
-
*
|
|
210
|
-
* // Filter by label
|
|
211
|
-
* const specific = await record.calls.first({ label: 'CallActivity' });
|
|
212
|
-
* ```
|
|
213
|
-
*/
|
|
214
|
-
get calls(): RecordLinkManager<CallRecord, typeof ActivityLogRecord['callsLabels'][number]>;
|
|
215
|
-
/** Valid labels for WorkOrder associations */
|
|
216
|
-
static readonly workOrdersLabels: readonly ["WorkOrder_ActivityLog"];
|
|
217
|
-
/**
|
|
218
|
-
* Access linked WorkOrder records
|
|
219
|
-
* @remarks Available labels: WorkOrder_ActivityLog
|
|
220
|
-
* @throws Error if called on a new (unsaved) record
|
|
221
|
-
*
|
|
222
|
-
* @example
|
|
223
|
-
* ```typescript
|
|
224
|
-
* // Get all linked WorkOrder records
|
|
225
|
-
* const items = await record.workOrders.list();
|
|
226
|
-
* const first = await record.workOrders.first();
|
|
227
|
-
*
|
|
228
|
-
* // Filter by label
|
|
229
|
-
* const specific = await record.workOrders.first({ label: 'WorkOrder_ActivityLog' });
|
|
230
|
-
* ```
|
|
231
|
-
*/
|
|
232
|
-
get workOrders(): RecordLinkManager<WorkOrderRecord, typeof ActivityLogRecord['workOrdersLabels'][number]>;
|
|
233
112
|
/**
|
|
234
113
|
* Queue a link to be created with the next action.
|
|
235
114
|
* Works for both create and update actions.
|