@d19n/youfibre-odin-sdk 2.0.28 → 2.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/ContactIdentityAccessor.d.ts +111 -0
- package/dist/accessors-v2/ContactIdentityAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +5 -3
- package/dist/actions-v2/BillingAdjustmentCreateDto.d.ts +8 -1
- package/dist/actions-v2/CompleteChurnRequestDto.d.ts +15 -5
- package/dist/actions-v2/CompleteChurnRequestFlowDto.d.ts +15 -5
- package/dist/actions-v2/CreateAuddisPgReportAllocationDto.d.ts +88 -0
- package/dist/actions-v2/CreateAuddisPgReportAllocationDto.js +59 -0
- package/dist/actions-v2/CreateBacsPgReportAllocationDto.d.ts +88 -0
- package/dist/actions-v2/CreateBacsPgReportAllocationDto.js +59 -0
- package/dist/actions-v2/CreateBrskMigrationErrorDto.d.ts +10 -3
- package/dist/actions-v2/CreateBrskMigrationErrorDto.js +11 -4
- package/dist/actions-v2/CreateCaseDto.d.ts +3 -4
- package/dist/actions-v2/CreateCaseFromCasesDto.d.ts +4 -6
- package/dist/actions-v2/CreateCaseFromContactDto.d.ts +3 -4
- package/dist/actions-v2/CreatePgContactDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgPaymentMethodDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgTransactionChargeDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgTransactionRefundDto.d.ts +9 -1
- package/dist/actions-v2/EditCaseFormDto.d.ts +8 -1
- package/dist/actions-v2/MovePgWebhookToSentDto.d.ts +70 -0
- package/dist/actions-v2/MovePgWebhookToSentDto.js +62 -0
- package/dist/actions-v2/UpdateBngProvisionDto.d.ts +16 -23
- package/dist/actions-v2/UpdateBngProvisionDto.js +4 -4
- package/dist/actions-v2/UpdateContactIdentityDto.d.ts +79 -0
- package/dist/actions-v2/UpdateContactIdentityDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerDeviceOntDto.d.ts +22 -1
- package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.d.ts +77 -0
- package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.js +61 -0
- package/dist/actions-v2/UpdatePaymentMethodDto.d.ts +17 -14
- package/dist/actions-v2/UpdatePaymentMethodDto.js +4 -6
- package/dist/actions-v2/UpdatePgContactDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgPaymentMethodDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgTransactionChargeDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgTransactionRefundDto.d.ts +8 -1
- package/dist/api-sdk-v2/ContactApi.d.ts +2 -0
- package/dist/api-sdk-v2/ContactApi.js +6 -0
- package/dist/api-sdk-v2/PaymentMethodApi.d.ts +2 -0
- package/dist/api-sdk-v2/PaymentMethodApi.js +6 -0
- package/dist/api-sdk-v2/PaymentMethodRefundApi.d.ts +2 -0
- package/dist/api-sdk-v2/PaymentMethodRefundApi.js +6 -0
- package/dist/api-sdk-v2/PgContactApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgContactApi.js +6 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.js +6 -0
- package/dist/api-sdk-v2/PgTransactionApi.d.ts +4 -0
- package/dist/api-sdk-v2/PgTransactionApi.js +12 -0
- package/dist/api-sdk-v2/TransactionApi.d.ts +2 -0
- package/dist/api-sdk-v2/TransactionApi.js +6 -0
- package/dist/db-accessors-v2/ContactIdentityDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/ContactIdentityDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +5 -3
- package/dist/db-sdk-v2/ContactDb.d.ts +2 -0
- package/dist/db-sdk-v2/ContactDb.js +6 -0
- package/dist/db-sdk-v2/PaymentMethodDb.d.ts +2 -0
- package/dist/db-sdk-v2/PaymentMethodDb.js +6 -0
- package/dist/db-sdk-v2/PaymentMethodRefundDb.d.ts +2 -0
- package/dist/db-sdk-v2/PaymentMethodRefundDb.js +6 -0
- package/dist/db-sdk-v2/PgContactDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgContactDb.js +6 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.js +6 -0
- package/dist/db-sdk-v2/PgTransactionDb.d.ts +4 -0
- package/dist/db-sdk-v2/PgTransactionDb.js +12 -0
- package/dist/db-sdk-v2/TransactionDb.d.ts +2 -0
- package/dist/db-sdk-v2/TransactionDb.js +6 -0
- package/dist/entities-v2/Account.d.ts +33 -33
- package/dist/entities-v2/Account.js +2 -2
- package/dist/entities-v2/BillingAdjustment.d.ts +79 -70
- package/dist/entities-v2/BillingAdjustment.js +37 -33
- package/dist/entities-v2/BngProvision.d.ts +0 -14
- package/dist/entities-v2/BngProvision.js +0 -4
- package/dist/entities-v2/BrskEntityMigrationError.d.ts +14 -14
- package/dist/entities-v2/BrskEntityMigrationError.js +4 -4
- package/dist/entities-v2/Case.d.ts +12 -0
- package/dist/entities-v2/Case.js +2 -0
- package/dist/entities-v2/ChurnRequest.d.ts +8 -1
- package/dist/entities-v2/ChurnRequest.js +2 -0
- package/dist/entities-v2/Contact.d.ts +3 -0
- package/dist/entities-v2/Conversation.d.ts +0 -2
- package/dist/entities-v2/Conversation.js +0 -2
- package/dist/entities-v2/CustomerDeviceOnt.d.ts +8 -1
- package/dist/entities-v2/CustomerDeviceOnt.js +2 -0
- package/dist/entities-v2/Order.d.ts +28 -7
- package/dist/entities-v2/Order.js +8 -2
- package/dist/entities-v2/PaymentMethod.d.ts +6 -1
- package/dist/entities-v2/PaymentMethod.js +2 -0
- package/dist/entities-v2/PaymentMethodRefund.d.ts +3 -0
- package/dist/entities-v2/PgContact.d.ts +14 -0
- package/dist/entities-v2/PgContact.js +7 -1
- package/dist/entities-v2/PgFileAllocation.d.ts +17 -17
- package/dist/entities-v2/PgFileAllocation.js +2 -2
- package/dist/entities-v2/PgPaymentMethod.d.ts +14 -0
- package/dist/entities-v2/PgPaymentMethod.js +7 -1
- package/dist/entities-v2/PgTransaction.d.ts +48 -0
- package/dist/entities-v2/PgTransaction.js +13 -1
- package/dist/entities-v2/PgWebhook.d.ts +19 -3
- package/dist/entities-v2/PgWebhook.js +17 -1
- package/dist/entities-v2/PriceBook.d.ts +8 -8
- package/dist/entities-v2/PriceBook.js +2 -2
- package/dist/entities-v2/Referral.d.ts +1 -1
- package/dist/entities-v2/Referral.js +1 -1
- package/dist/entities-v2/Reward.d.ts +1 -1
- package/dist/entities-v2/Reward.js +1 -1
- package/dist/entities-v2/Service.d.ts +28 -20
- package/dist/entities-v2/Service.js +23 -15
- package/dist/entities-v2/Transaction.d.ts +6 -1
- package/dist/entities-v2/Transaction.js +2 -0
- package/dist/entities-v2/VoiceConfiguration.d.ts +8 -1
- package/dist/entities-v2/VoiceConfiguration.js +2 -0
- package/dist/entities-v2/WorkOrder.d.ts +85 -84
- package/dist/entities-v2/WorkOrder.js +5 -4
- package/dist/records-v2/AccountCreditRecord.d.ts +1 -82
- package/dist/records-v2/AccountCreditRecord.js +0 -124
- package/dist/records-v2/AccountRecord.d.ts +2 -306
- package/dist/records-v2/AccountRecord.js +0 -451
- package/dist/records-v2/ActivityLogRecord.d.ts +1 -122
- package/dist/records-v2/ActivityLogRecord.js +0 -190
- package/dist/records-v2/ActivityRecord.d.ts +2 -255
- package/dist/records-v2/ActivityRecord.js +0 -387
- package/dist/records-v2/AddressRecord.d.ts +0 -321
- package/dist/records-v2/AddressRecord.js +0 -532
- package/dist/records-v2/AffiliateCodeRecord.d.ts +1 -102
- package/dist/records-v2/AffiliateCodeRecord.js +0 -157
- package/dist/records-v2/AppointmentRecord.d.ts +0 -141
- package/dist/records-v2/AppointmentRecord.js +0 -235
- package/dist/records-v2/BillingAdjustmentRecord.d.ts +0 -81
- package/dist/records-v2/BillingAdjustmentRecord.js +0 -136
- package/dist/records-v2/BillingRequestRecord.d.ts +2 -178
- package/dist/records-v2/BillingRequestRecord.js +0 -271
- package/dist/records-v2/BlockageA55Record.d.ts +2 -103
- package/dist/records-v2/BlockageA55Record.js +0 -157
- package/dist/records-v2/BngProvisionRecord.d.ts +1 -42
- package/dist/records-v2/BngProvisionRecord.js +0 -58
- package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +3 -23
- package/dist/records-v2/BrskEntityMigrationErrorRecord.js +3 -24
- package/dist/records-v2/CallEventRecord.d.ts +1 -82
- package/dist/records-v2/CallEventRecord.js +0 -124
- package/dist/records-v2/CallLegRecord.d.ts +1 -82
- package/dist/records-v2/CallLegRecord.js +0 -124
- package/dist/records-v2/CallRecord.d.ts +1 -202
- package/dist/records-v2/CallRecord.js +0 -322
- package/dist/records-v2/CallTransferRecord.d.ts +1 -102
- package/dist/records-v2/CallTransferRecord.js +0 -157
- package/dist/records-v2/CampaignRecord.d.ts +2 -83
- package/dist/records-v2/CampaignRecord.js +0 -124
- package/dist/records-v2/CaseRecord.d.ts +2 -398
- package/dist/records-v2/CaseRecord.js +0 -634
- package/dist/records-v2/ChangeReasonRecord.d.ts +2 -171
- package/dist/records-v2/ChangeReasonRecord.js +0 -238
- package/dist/records-v2/ChurnRequestRecord.d.ts +1 -62
- package/dist/records-v2/ChurnRequestRecord.js +0 -91
- package/dist/records-v2/ContactIdentityRecord.d.ts +163 -0
- package/dist/records-v2/ContactIdentityRecord.js +223 -0
- package/dist/records-v2/ContactRecord.d.ts +0 -540
- package/dist/records-v2/ContactRecord.js +0 -894
- package/dist/records-v2/ContractBuyOutRecord.d.ts +1 -162
- package/dist/records-v2/ContractBuyOutRecord.js +0 -256
- package/dist/records-v2/ConversationRecord.d.ts +1 -109
- package/dist/records-v2/ConversationRecord.js +0 -153
- package/dist/records-v2/CreditNoteRecord.d.ts +0 -101
- package/dist/records-v2/CreditNoteRecord.js +0 -169
- package/dist/records-v2/CrmDatasetRecord.d.ts +2 -191
- package/dist/records-v2/CrmDatasetRecord.js +0 -271
- package/dist/records-v2/CustomerDeviceAtaRecord.d.ts +0 -21
- package/dist/records-v2/CustomerDeviceAtaRecord.js +0 -37
- package/dist/records-v2/CustomerDeviceConfigurationRecord.d.ts +1 -62
- package/dist/records-v2/CustomerDeviceConfigurationRecord.js +0 -91
- package/dist/records-v2/CustomerDeviceOntRecord.d.ts +0 -181
- package/dist/records-v2/CustomerDeviceOntRecord.js +0 -301
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +0 -141
- package/dist/records-v2/CustomerDeviceRouterRecord.js +0 -235
- package/dist/records-v2/CustomerPhonePortingRecord.d.ts +0 -21
- package/dist/records-v2/CustomerPhonePortingRecord.js +0 -37
- package/dist/records-v2/DiscountRecord.d.ts +0 -121
- package/dist/records-v2/DiscountRecord.js +0 -202
- package/dist/records-v2/EmailRecord.d.ts +2 -230
- package/dist/records-v2/EmailRecord.js +0 -336
- package/dist/records-v2/EmailSenderRecord.d.ts +1 -42
- package/dist/records-v2/EmailSenderRecord.js +0 -58
- package/dist/records-v2/EmailTemplateRecord.d.ts +1 -21
- package/dist/records-v2/EmailTemplateRecord.js +0 -21
- package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +2 -135
- package/dist/records-v2/FieldServiceDispatchedProductRecord.js +0 -189
- package/dist/records-v2/FieldServiceProductRecord.d.ts +2 -115
- package/dist/records-v2/FieldServiceProductRecord.js +0 -156
- package/dist/records-v2/FileRecord.d.ts +2 -1211
- package/dist/records-v2/FileRecord.js +0 -1902
- package/dist/records-v2/ImpersonationTrackerRecord.d.ts +1 -62
- package/dist/records-v2/ImpersonationTrackerRecord.js +0 -91
- package/dist/records-v2/InternalInstallAuditRecord.d.ts +2 -83
- package/dist/records-v2/InternalInstallAuditRecord.js +0 -124
- package/dist/records-v2/InvoiceItemRecord.d.ts +0 -40
- package/dist/records-v2/InvoiceItemRecord.js +0 -69
- package/dist/records-v2/InvoiceRecord.d.ts +2 -399
- package/dist/records-v2/InvoiceRecord.js +0 -635
- package/dist/records-v2/KnowledgeArticleRecord.d.ts +2 -98
- package/dist/records-v2/KnowledgeArticleRecord.js +0 -139
- package/dist/records-v2/LeadRecord.d.ts +0 -261
- package/dist/records-v2/LeadRecord.js +0 -433
- package/dist/records-v2/MessageRecord.d.ts +2 -131
- package/dist/records-v2/MessageRecord.js +0 -172
- package/dist/records-v2/NetworkDeviceRecord.d.ts +2 -43
- package/dist/records-v2/NetworkDeviceRecord.js +0 -58
- package/dist/records-v2/NoteRecord.d.ts +1 -1121
- package/dist/records-v2/NoteRecord.js +0 -1839
- package/dist/records-v2/OfferRecord.d.ts +2 -154
- package/dist/records-v2/OfferRecord.js +0 -221
- package/dist/records-v2/OhAuditOfInstallationRecord.d.ts +2 -83
- package/dist/records-v2/OhAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/OhExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhExternalAuditRecord.js +0 -124
- package/dist/records-v2/OhInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInProgressAuditRecord.js +0 -124
- package/dist/records-v2/OhInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInstallationAuditRecord.js +0 -124
- package/dist/records-v2/OhRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhRetroAuditRecord.js +0 -124
- package/dist/records-v2/OneTouchSwitchRecord.d.ts +30 -255
- package/dist/records-v2/OneTouchSwitchRecord.js +37 -387
- package/dist/records-v2/OntReplacementApprovalRecord.d.ts +1 -62
- package/dist/records-v2/OntReplacementApprovalRecord.js +0 -91
- package/dist/records-v2/OrderCheckRecord.d.ts +0 -21
- package/dist/records-v2/OrderCheckRecord.js +0 -37
- package/dist/records-v2/OrderItemRecord.d.ts +0 -300
- package/dist/records-v2/OrderItemRecord.js +0 -498
- package/dist/records-v2/OrderKciRecord.d.ts +1 -42
- package/dist/records-v2/OrderKciRecord.js +0 -58
- package/dist/records-v2/OrderRecord.d.ts +0 -620
- package/dist/records-v2/OrderRecord.js +0 -1026
- package/dist/records-v2/OutageRecord.d.ts +1 -42
- package/dist/records-v2/OutageRecord.js +0 -58
- package/dist/records-v2/OverlayRealA55Record.d.ts +2 -83
- package/dist/records-v2/OverlayRealA55Record.js +0 -124
- package/dist/records-v2/PICRequestRecord.d.ts +1 -62
- package/dist/records-v2/PICRequestRecord.js +0 -91
- package/dist/records-v2/PaymentMethodRecord.d.ts +7 -127
- package/dist/records-v2/PaymentMethodRecord.js +15 -209
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +0 -181
- package/dist/records-v2/PaymentMethodRefundRecord.js +0 -301
- package/dist/records-v2/PaymentRecord.d.ts +1 -82
- package/dist/records-v2/PaymentRecord.js +0 -124
- package/dist/records-v2/PermissionToFailRecord.d.ts +0 -61
- package/dist/records-v2/PermissionToFailRecord.js +0 -103
- package/dist/records-v2/PgAccountValidationRecord.d.ts +1 -21
- package/dist/records-v2/PgAccountValidationRecord.js +0 -21
- package/dist/records-v2/PgContactRecord.d.ts +1 -62
- package/dist/records-v2/PgContactRecord.js +0 -91
- package/dist/records-v2/PgDirectDebitFileRecord.d.ts +2 -95
- package/dist/records-v2/PgDirectDebitFileRecord.js +0 -123
- package/dist/records-v2/PgDisputeRecord.d.ts +1 -62
- package/dist/records-v2/PgDisputeRecord.js +0 -91
- package/dist/records-v2/PgFileAllocationRecord.d.ts +58 -140
- package/dist/records-v2/PgFileAllocationRecord.js +72 -185
- package/dist/records-v2/PgLogRecord.d.ts +1 -21
- package/dist/records-v2/PgLogRecord.js +0 -21
- package/dist/records-v2/PgPaymentMethodRecord.d.ts +1 -102
- package/dist/records-v2/PgPaymentMethodRecord.js +0 -157
- package/dist/records-v2/PgSortCodeSubstitutionRecord.d.ts +1 -21
- package/dist/records-v2/PgSortCodeSubstitutionRecord.js +0 -21
- package/dist/records-v2/PgTransactionRecord.d.ts +2 -135
- package/dist/records-v2/PgTransactionRecord.js +0 -189
- package/dist/records-v2/PgVocalinkRecord.d.ts +1 -21
- package/dist/records-v2/PgVocalinkRecord.js +0 -21
- package/dist/records-v2/PgWebhookAttemptRecord.d.ts +1 -42
- package/dist/records-v2/PgWebhookAttemptRecord.js +0 -58
- package/dist/records-v2/PgWebhookRecord.d.ts +26 -122
- package/dist/records-v2/PgWebhookRecord.js +29 -190
- package/dist/records-v2/PhoneNumberRecord.d.ts +0 -41
- package/dist/records-v2/PhoneNumberRecord.js +0 -70
- package/dist/records-v2/PriceBookRecord.d.ts +0 -21
- package/dist/records-v2/PriceBookRecord.js +0 -37
- package/dist/records-v2/ProductRecord.d.ts +2 -258
- package/dist/records-v2/ProductRecord.js +0 -351
- package/dist/records-v2/PushNotificationRecord.d.ts +1 -162
- package/dist/records-v2/PushNotificationRecord.js +0 -256
- package/dist/records-v2/ReferralRecord.d.ts +2 -143
- package/dist/records-v2/ReferralRecord.js +0 -223
- package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/RemediationOutcomeFormRecord.js +0 -124
- package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +2 -103
- package/dist/records-v2/RemediationRequiredReasonRecord.js +0 -157
- package/dist/records-v2/ReturnsRecord.d.ts +1 -62
- package/dist/records-v2/ReturnsRecord.js +0 -91
- package/dist/records-v2/RewardRecord.d.ts +2 -123
- package/dist/records-v2/RewardRecord.js +0 -190
- package/dist/records-v2/SalesTerritoryRecord.d.ts +2 -79
- package/dist/records-v2/SalesTerritoryRecord.js +0 -107
- package/dist/records-v2/ScheduleSlotRecord.d.ts +1 -42
- package/dist/records-v2/ScheduleSlotRecord.js +0 -58
- package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +2 -287
- package/dist/records-v2/ServiceAppointmentConfigRecord.js +0 -367
- package/dist/records-v2/ServiceAppointmentRecord.d.ts +0 -81
- package/dist/records-v2/ServiceAppointmentRecord.js +0 -136
- package/dist/records-v2/ServiceRecord.d.ts +0 -40
- package/dist/records-v2/ServiceRecord.js +0 -69
- package/dist/records-v2/ServiceVisitAuditRecord.d.ts +2 -83
- package/dist/records-v2/ServiceVisitAuditRecord.js +0 -124
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +0 -124
- package/dist/records-v2/SmsMessageRecord.d.ts +2 -175
- package/dist/records-v2/SmsMessageRecord.js +0 -255
- package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +2 -83
- package/dist/records-v2/SweeperMaintenanceAuditRecord.js +0 -124
- package/dist/records-v2/TeamRecord.d.ts +0 -101
- package/dist/records-v2/TeamRecord.js +0 -169
- package/dist/records-v2/TestEntityForVisualBuilderRecord.d.ts +2 -115
- package/dist/records-v2/TestEntityForVisualBuilderRecord.js +0 -156
- package/dist/records-v2/TimeSlotRecord.d.ts +0 -21
- package/dist/records-v2/TimeSlotRecord.js +0 -37
- package/dist/records-v2/TransactionRecord.d.ts +1 -181
- package/dist/records-v2/TransactionRecord.js +0 -288
- package/dist/records-v2/TwilioUserUpdateRecord.d.ts +1 -42
- package/dist/records-v2/TwilioUserUpdateRecord.js +0 -58
- package/dist/records-v2/UgAuditOfInstallationRecord.d.ts +2 -83
- package/dist/records-v2/UgAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/UgExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgExternalAuditRecord.js +0 -124
- package/dist/records-v2/UgInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInProgressAuditRecord.js +0 -124
- package/dist/records-v2/UgInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInstallationAuditRecord.js +0 -124
- package/dist/records-v2/UgRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgRetroAuditRecord.js +0 -124
- package/dist/records-v2/UserRecord.d.ts +0 -380
- package/dist/records-v2/UserRecord.js +0 -630
- package/dist/records-v2/VisitRecord.d.ts +0 -121
- package/dist/records-v2/VisitRecord.js +0 -202
- package/dist/records-v2/VoiceConfigurationRecord.d.ts +0 -21
- package/dist/records-v2/VoiceConfigurationRecord.js +0 -37
- package/dist/records-v2/WayleaveAuditRecord.d.ts +2 -83
- package/dist/records-v2/WayleaveAuditRecord.js +0 -124
- package/dist/records-v2/WorkOrderRecord.d.ts +2 -1226
- package/dist/records-v2/WorkOrderRecord.js +0 -1865
- package/dist/records-v2/WorkOrderStatusUpdateRecord.d.ts +2 -75
- package/dist/records-v2/WorkOrderStatusUpdateRecord.js +0 -90
- package/dist/records-v2/YfFieldServiceVisitRecord.d.ts +2 -83
- package/dist/records-v2/YfFieldServiceVisitRecord.js +0 -124
- package/dist/records-v2/YfStockAuditRecord.d.ts +2 -103
- package/dist/records-v2/YfStockAuditRecord.js +0 -157
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +4 -1
- package/package.json +1 -1
- package/dist/actions-v2/ReopenConversationDto.d.ts +0 -94
- package/dist/actions-v2/ReopenConversationDto.js +0 -61
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.d.ts +0 -85
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.js +0 -61
|
@@ -13,15 +13,12 @@
|
|
|
13
13
|
* await record.createContractBuyOut({ ... }).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 { ContractBuyOutProperties } from '../entities-v2/ContractBuyOut';
|
|
26
23
|
import { ApproveCboProperties } from '../actions-v2/ApproveCboDto';
|
|
27
24
|
import { CboCreateProperties } from '../actions-v2/CboCreateDto';
|
|
@@ -33,15 +30,6 @@ import { FlowStepUpdateToAdditionalApprovalRequiredProperties } from '../actions
|
|
|
33
30
|
import { FlowStepVerifiedToApprovedProperties } from '../actions-v2/FlowStepVerifiedToApprovedDto';
|
|
34
31
|
import { SelectRelatedPaymentmethodProperties } from '../actions-v2/SelectRelatedPaymentmethodDto';
|
|
35
32
|
import { SentToVoyagerProperties } from '../actions-v2/SentToVoyagerDto';
|
|
36
|
-
import { PaymentMethodRecord } from './PaymentMethodRecord';
|
|
37
|
-
import { ContactRecord } from './ContactRecord';
|
|
38
|
-
import { CaseRecord } from './CaseRecord';
|
|
39
|
-
import { NoteRecord } from './NoteRecord';
|
|
40
|
-
import { UserRecord } from './UserRecord';
|
|
41
|
-
import { OrderRecord } from './OrderRecord';
|
|
42
|
-
import { FileRecord } from './FileRecord';
|
|
43
|
-
/** Valid entity types for ContractBuyOut */
|
|
44
|
-
export declare type ContractBuyOutType = 'DEFAULT';
|
|
45
33
|
/**
|
|
46
34
|
* Builder for action execution with dryRun support
|
|
47
35
|
*
|
|
@@ -229,13 +217,6 @@ export declare class ContractBuyOutRecord<TProps = ContractBuyOutProperties> {
|
|
|
229
217
|
private _provider;
|
|
230
218
|
private _pendingLinks;
|
|
231
219
|
private _preGeneratedId;
|
|
232
|
-
private _paymentMethods?;
|
|
233
|
-
private _contacts?;
|
|
234
|
-
private _cases?;
|
|
235
|
-
private _notes?;
|
|
236
|
-
private _users?;
|
|
237
|
-
private _orders?;
|
|
238
|
-
private _files?;
|
|
239
220
|
/**
|
|
240
221
|
* Create a record wrapper.
|
|
241
222
|
* @param record - The underlying record, or null for create operations
|
|
@@ -248,7 +229,7 @@ export declare class ContractBuyOutRecord<TProps = ContractBuyOutProperties> {
|
|
|
248
229
|
/** Record ID - always available (pre-generated for new records) */
|
|
249
230
|
get id(): string;
|
|
250
231
|
get entity(): string;
|
|
251
|
-
get type():
|
|
232
|
+
get type(): string | undefined;
|
|
252
233
|
/** Record properties - empty object for new (unsaved) records */
|
|
253
234
|
get properties(): TProps;
|
|
254
235
|
get title(): string | undefined;
|
|
@@ -261,148 +242,6 @@ export declare class ContractBuyOutRecord<TProps = ContractBuyOutProperties> {
|
|
|
261
242
|
get groups(): string[];
|
|
262
243
|
/** Access the underlying OdinRecord (null for new records) */
|
|
263
244
|
get record(): OdinRecord<TProps> | null;
|
|
264
|
-
/**
|
|
265
|
-
* Type guard: check if this record is of type DEFAULT
|
|
266
|
-
*
|
|
267
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
268
|
-
* giving you access to DEFAULT-specific properties.
|
|
269
|
-
*
|
|
270
|
-
* @example
|
|
271
|
-
* ```typescript
|
|
272
|
-
* if (record.isDefault()) {
|
|
273
|
-
* // TypeScript knows record.properties is ContractBuyOutProperties
|
|
274
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
275
|
-
* }
|
|
276
|
-
* ```
|
|
277
|
-
* @remarks This is the default record type
|
|
278
|
-
*/
|
|
279
|
-
isDefault(): this is ContractBuyOutRecord<ContractBuyOutProperties>;
|
|
280
|
-
/** Valid labels for PaymentMethod associations */
|
|
281
|
-
static readonly paymentMethodsLabels: readonly ["ContractBuyOut__PaymentMethod"];
|
|
282
|
-
/**
|
|
283
|
-
* Access linked PaymentMethod records
|
|
284
|
-
* @remarks Available labels: ContractBuyOut__PaymentMethod
|
|
285
|
-
* @throws Error if called on a new (unsaved) record
|
|
286
|
-
*
|
|
287
|
-
* @example
|
|
288
|
-
* ```typescript
|
|
289
|
-
* // Get all linked PaymentMethod records
|
|
290
|
-
* const items = await record.paymentMethods.list();
|
|
291
|
-
* const first = await record.paymentMethods.first();
|
|
292
|
-
*
|
|
293
|
-
* // Filter by label
|
|
294
|
-
* const specific = await record.paymentMethods.first({ label: 'ContractBuyOut__PaymentMethod' });
|
|
295
|
-
* ```
|
|
296
|
-
*/
|
|
297
|
-
get paymentMethods(): RecordLinkManager<PaymentMethodRecord, typeof ContractBuyOutRecord['paymentMethodsLabels'][number]>;
|
|
298
|
-
/** Valid labels for Contact associations */
|
|
299
|
-
static readonly contactsLabels: readonly ["Contact__ContractBuyOut"];
|
|
300
|
-
/**
|
|
301
|
-
* Access linked Contact records
|
|
302
|
-
* @remarks Available labels: Contact__ContractBuyOut
|
|
303
|
-
* @throws Error if called on a new (unsaved) record
|
|
304
|
-
*
|
|
305
|
-
* @example
|
|
306
|
-
* ```typescript
|
|
307
|
-
* // Get all linked Contact records
|
|
308
|
-
* const items = await record.contacts.list();
|
|
309
|
-
* const first = await record.contacts.first();
|
|
310
|
-
*
|
|
311
|
-
* // Filter by label
|
|
312
|
-
* const specific = await record.contacts.first({ label: 'Contact__ContractBuyOut' });
|
|
313
|
-
* ```
|
|
314
|
-
*/
|
|
315
|
-
get contacts(): RecordLinkManager<ContactRecord, typeof ContractBuyOutRecord['contactsLabels'][number]>;
|
|
316
|
-
/** Valid labels for Case associations */
|
|
317
|
-
static readonly casesLabels: readonly ["Case__ContractBuyOut"];
|
|
318
|
-
/**
|
|
319
|
-
* Access linked Case records
|
|
320
|
-
* @remarks Available labels: Case__ContractBuyOut
|
|
321
|
-
* @throws Error if called on a new (unsaved) record
|
|
322
|
-
*
|
|
323
|
-
* @example
|
|
324
|
-
* ```typescript
|
|
325
|
-
* // Get all linked Case records
|
|
326
|
-
* const items = await record.cases.list();
|
|
327
|
-
* const first = await record.cases.first();
|
|
328
|
-
*
|
|
329
|
-
* // Filter by label
|
|
330
|
-
* const specific = await record.cases.first({ label: 'Case__ContractBuyOut' });
|
|
331
|
-
* ```
|
|
332
|
-
*/
|
|
333
|
-
get cases(): RecordLinkManager<CaseRecord, typeof ContractBuyOutRecord['casesLabels'][number]>;
|
|
334
|
-
/** Valid labels for Note associations */
|
|
335
|
-
static readonly notesLabels: readonly ["ContractBuyOut__Note"];
|
|
336
|
-
/**
|
|
337
|
-
* Access linked Note records
|
|
338
|
-
* @remarks Available labels: ContractBuyOut__Note
|
|
339
|
-
* @throws Error if called on a new (unsaved) record
|
|
340
|
-
*
|
|
341
|
-
* @example
|
|
342
|
-
* ```typescript
|
|
343
|
-
* // Get all linked Note records
|
|
344
|
-
* const items = await record.notes.list();
|
|
345
|
-
* const first = await record.notes.first();
|
|
346
|
-
*
|
|
347
|
-
* // Filter by label
|
|
348
|
-
* const specific = await record.notes.first({ label: 'ContractBuyOut__Note' });
|
|
349
|
-
* ```
|
|
350
|
-
*/
|
|
351
|
-
get notes(): RecordLinkManager<NoteRecord, typeof ContractBuyOutRecord['notesLabels'][number]>;
|
|
352
|
-
/** Valid labels for User associations */
|
|
353
|
-
static readonly usersLabels: readonly ["ContractBuyOut__User"];
|
|
354
|
-
/**
|
|
355
|
-
* Access linked User records
|
|
356
|
-
* @remarks Available labels: ContractBuyOut__User
|
|
357
|
-
* @throws Error if called on a new (unsaved) record
|
|
358
|
-
*
|
|
359
|
-
* @example
|
|
360
|
-
* ```typescript
|
|
361
|
-
* // Get all linked User records
|
|
362
|
-
* const items = await record.users.list();
|
|
363
|
-
* const first = await record.users.first();
|
|
364
|
-
*
|
|
365
|
-
* // Filter by label
|
|
366
|
-
* const specific = await record.users.first({ label: 'ContractBuyOut__User' });
|
|
367
|
-
* ```
|
|
368
|
-
*/
|
|
369
|
-
get users(): RecordLinkManager<UserRecord, typeof ContractBuyOutRecord['usersLabels'][number]>;
|
|
370
|
-
/** Valid labels for Order associations */
|
|
371
|
-
static readonly ordersLabels: readonly ["Order__ContractBuyOut"];
|
|
372
|
-
/**
|
|
373
|
-
* Access linked Order records
|
|
374
|
-
* @remarks Available labels: Order__ContractBuyOut
|
|
375
|
-
* @throws Error if called on a new (unsaved) record
|
|
376
|
-
*
|
|
377
|
-
* @example
|
|
378
|
-
* ```typescript
|
|
379
|
-
* // Get all linked Order records
|
|
380
|
-
* const items = await record.orders.list();
|
|
381
|
-
* const first = await record.orders.first();
|
|
382
|
-
*
|
|
383
|
-
* // Filter by label
|
|
384
|
-
* const specific = await record.orders.first({ label: 'Order__ContractBuyOut' });
|
|
385
|
-
* ```
|
|
386
|
-
*/
|
|
387
|
-
get orders(): RecordLinkManager<OrderRecord, typeof ContractBuyOutRecord['ordersLabels'][number]>;
|
|
388
|
-
/** Valid labels for File associations */
|
|
389
|
-
static readonly filesLabels: readonly ["ContractBuyOut__File"];
|
|
390
|
-
/**
|
|
391
|
-
* Access linked File records
|
|
392
|
-
* @remarks Available labels: ContractBuyOut__File
|
|
393
|
-
* @throws Error if called on a new (unsaved) record
|
|
394
|
-
*
|
|
395
|
-
* @example
|
|
396
|
-
* ```typescript
|
|
397
|
-
* // Get all linked File records
|
|
398
|
-
* const items = await record.files.list();
|
|
399
|
-
* const first = await record.files.first();
|
|
400
|
-
*
|
|
401
|
-
* // Filter by label
|
|
402
|
-
* const specific = await record.files.first({ label: 'ContractBuyOut__File' });
|
|
403
|
-
* ```
|
|
404
|
-
*/
|
|
405
|
-
get files(): RecordLinkManager<FileRecord, typeof ContractBuyOutRecord['filesLabels'][number]>;
|
|
406
245
|
/**
|
|
407
246
|
* Queue a link to be created with the next action.
|
|
408
247
|
* Works for both create and update actions.
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* await record.createContractBuyOut({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: DEFAULT
|
|
18
|
-
*
|
|
19
17
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
18
|
*/
|
|
21
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -31,14 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
29
|
exports.isContractBuyOutRecord = exports.ContractBuyOutRecord = exports.MoveCboToReceivedFlowBuilder = exports.MoveCboToApprovedFlowBuilder = 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 PaymentMethodRecord_1 = require("./PaymentMethodRecord");
|
|
36
|
-
const ContactRecord_1 = require("./ContactRecord");
|
|
37
|
-
const CaseRecord_1 = require("./CaseRecord");
|
|
38
|
-
const NoteRecord_1 = require("./NoteRecord");
|
|
39
|
-
const UserRecord_1 = require("./UserRecord");
|
|
40
|
-
const OrderRecord_1 = require("./OrderRecord");
|
|
41
|
-
const FileRecord_1 = require("./FileRecord");
|
|
42
32
|
/**
|
|
43
33
|
* Builder for action execution with dryRun support
|
|
44
34
|
*
|
|
@@ -378,235 +368,6 @@ class ContractBuyOutRecord {
|
|
|
378
368
|
/** Access the underlying OdinRecord (null for new records) */
|
|
379
369
|
get record() { return this._record; }
|
|
380
370
|
// ============================================
|
|
381
|
-
// TYPE GUARDS (with TypeScript type predicates)
|
|
382
|
-
// ============================================
|
|
383
|
-
/**
|
|
384
|
-
* Type guard: check if this record is of type DEFAULT
|
|
385
|
-
*
|
|
386
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
387
|
-
* giving you access to DEFAULT-specific properties.
|
|
388
|
-
*
|
|
389
|
-
* @example
|
|
390
|
-
* ```typescript
|
|
391
|
-
* if (record.isDefault()) {
|
|
392
|
-
* // TypeScript knows record.properties is ContractBuyOutProperties
|
|
393
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
394
|
-
* }
|
|
395
|
-
* ```
|
|
396
|
-
* @remarks This is the default record type
|
|
397
|
-
*/
|
|
398
|
-
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
399
|
-
/**
|
|
400
|
-
* Access linked PaymentMethod records
|
|
401
|
-
* @remarks Available labels: ContractBuyOut__PaymentMethod
|
|
402
|
-
* @throws Error if called on a new (unsaved) record
|
|
403
|
-
*
|
|
404
|
-
* @example
|
|
405
|
-
* ```typescript
|
|
406
|
-
* // Get all linked PaymentMethod records
|
|
407
|
-
* const items = await record.paymentMethods.list();
|
|
408
|
-
* const first = await record.paymentMethods.first();
|
|
409
|
-
*
|
|
410
|
-
* // Filter by label
|
|
411
|
-
* const specific = await record.paymentMethods.first({ label: 'ContractBuyOut__PaymentMethod' });
|
|
412
|
-
* ```
|
|
413
|
-
*/
|
|
414
|
-
get paymentMethods() {
|
|
415
|
-
var _a;
|
|
416
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
417
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
418
|
-
if (!this._paymentMethods) {
|
|
419
|
-
this._paymentMethods = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
420
|
-
sourceEntity: 'OrderModule:ContractBuyOut',
|
|
421
|
-
targetEntity: 'BillingModule:PaymentMethod',
|
|
422
|
-
targetModuleName: 'BillingModule',
|
|
423
|
-
targetEntityName: 'PaymentMethod',
|
|
424
|
-
labels: ['ContractBuyOut__PaymentMethod'],
|
|
425
|
-
}, PaymentMethodRecord_1.PaymentMethodRecord);
|
|
426
|
-
}
|
|
427
|
-
return this._paymentMethods;
|
|
428
|
-
}
|
|
429
|
-
/**
|
|
430
|
-
* Access linked Contact records
|
|
431
|
-
* @remarks Available labels: Contact__ContractBuyOut
|
|
432
|
-
* @throws Error if called on a new (unsaved) record
|
|
433
|
-
*
|
|
434
|
-
* @example
|
|
435
|
-
* ```typescript
|
|
436
|
-
* // Get all linked Contact records
|
|
437
|
-
* const items = await record.contacts.list();
|
|
438
|
-
* const first = await record.contacts.first();
|
|
439
|
-
*
|
|
440
|
-
* // Filter by label
|
|
441
|
-
* const specific = await record.contacts.first({ label: 'Contact__ContractBuyOut' });
|
|
442
|
-
* ```
|
|
443
|
-
*/
|
|
444
|
-
get contacts() {
|
|
445
|
-
var _a;
|
|
446
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
447
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
448
|
-
if (!this._contacts) {
|
|
449
|
-
this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
450
|
-
sourceEntity: 'OrderModule:ContractBuyOut',
|
|
451
|
-
targetEntity: 'CrmModule:Contact',
|
|
452
|
-
targetModuleName: 'CrmModule',
|
|
453
|
-
targetEntityName: 'Contact',
|
|
454
|
-
labels: ['Contact__ContractBuyOut'],
|
|
455
|
-
}, ContactRecord_1.ContactRecord);
|
|
456
|
-
}
|
|
457
|
-
return this._contacts;
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* Access linked Case records
|
|
461
|
-
* @remarks Available labels: Case__ContractBuyOut
|
|
462
|
-
* @throws Error if called on a new (unsaved) record
|
|
463
|
-
*
|
|
464
|
-
* @example
|
|
465
|
-
* ```typescript
|
|
466
|
-
* // Get all linked Case records
|
|
467
|
-
* const items = await record.cases.list();
|
|
468
|
-
* const first = await record.cases.first();
|
|
469
|
-
*
|
|
470
|
-
* // Filter by label
|
|
471
|
-
* const specific = await record.cases.first({ label: 'Case__ContractBuyOut' });
|
|
472
|
-
* ```
|
|
473
|
-
*/
|
|
474
|
-
get cases() {
|
|
475
|
-
var _a;
|
|
476
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
477
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
478
|
-
if (!this._cases) {
|
|
479
|
-
this._cases = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
480
|
-
sourceEntity: 'OrderModule:ContractBuyOut',
|
|
481
|
-
targetEntity: 'SupportModule:Case',
|
|
482
|
-
targetModuleName: 'SupportModule',
|
|
483
|
-
targetEntityName: 'Case',
|
|
484
|
-
labels: ['Case__ContractBuyOut'],
|
|
485
|
-
}, CaseRecord_1.CaseRecord);
|
|
486
|
-
}
|
|
487
|
-
return this._cases;
|
|
488
|
-
}
|
|
489
|
-
/**
|
|
490
|
-
* Access linked Note records
|
|
491
|
-
* @remarks Available labels: ContractBuyOut__Note
|
|
492
|
-
* @throws Error if called on a new (unsaved) record
|
|
493
|
-
*
|
|
494
|
-
* @example
|
|
495
|
-
* ```typescript
|
|
496
|
-
* // Get all linked Note records
|
|
497
|
-
* const items = await record.notes.list();
|
|
498
|
-
* const first = await record.notes.first();
|
|
499
|
-
*
|
|
500
|
-
* // Filter by label
|
|
501
|
-
* const specific = await record.notes.first({ label: 'ContractBuyOut__Note' });
|
|
502
|
-
* ```
|
|
503
|
-
*/
|
|
504
|
-
get notes() {
|
|
505
|
-
var _a;
|
|
506
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
507
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
508
|
-
if (!this._notes) {
|
|
509
|
-
this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
510
|
-
sourceEntity: 'OrderModule:ContractBuyOut',
|
|
511
|
-
targetEntity: 'SupportModule:Note',
|
|
512
|
-
targetModuleName: 'SupportModule',
|
|
513
|
-
targetEntityName: 'Note',
|
|
514
|
-
labels: ['ContractBuyOut__Note'],
|
|
515
|
-
}, NoteRecord_1.NoteRecord);
|
|
516
|
-
}
|
|
517
|
-
return this._notes;
|
|
518
|
-
}
|
|
519
|
-
/**
|
|
520
|
-
* Access linked User records
|
|
521
|
-
* @remarks Available labels: ContractBuyOut__User
|
|
522
|
-
* @throws Error if called on a new (unsaved) record
|
|
523
|
-
*
|
|
524
|
-
* @example
|
|
525
|
-
* ```typescript
|
|
526
|
-
* // Get all linked User records
|
|
527
|
-
* const items = await record.users.list();
|
|
528
|
-
* const first = await record.users.first();
|
|
529
|
-
*
|
|
530
|
-
* // Filter by label
|
|
531
|
-
* const specific = await record.users.first({ label: 'ContractBuyOut__User' });
|
|
532
|
-
* ```
|
|
533
|
-
*/
|
|
534
|
-
get users() {
|
|
535
|
-
var _a;
|
|
536
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
537
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
538
|
-
if (!this._users) {
|
|
539
|
-
this._users = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
540
|
-
sourceEntity: 'OrderModule:ContractBuyOut',
|
|
541
|
-
targetEntity: 'IdentityModule:User',
|
|
542
|
-
targetModuleName: 'IdentityModule',
|
|
543
|
-
targetEntityName: 'User',
|
|
544
|
-
labels: ['ContractBuyOut__User'],
|
|
545
|
-
}, UserRecord_1.UserRecord);
|
|
546
|
-
}
|
|
547
|
-
return this._users;
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* Access linked Order records
|
|
551
|
-
* @remarks Available labels: Order__ContractBuyOut
|
|
552
|
-
* @throws Error if called on a new (unsaved) record
|
|
553
|
-
*
|
|
554
|
-
* @example
|
|
555
|
-
* ```typescript
|
|
556
|
-
* // Get all linked Order records
|
|
557
|
-
* const items = await record.orders.list();
|
|
558
|
-
* const first = await record.orders.first();
|
|
559
|
-
*
|
|
560
|
-
* // Filter by label
|
|
561
|
-
* const specific = await record.orders.first({ label: 'Order__ContractBuyOut' });
|
|
562
|
-
* ```
|
|
563
|
-
*/
|
|
564
|
-
get orders() {
|
|
565
|
-
var _a;
|
|
566
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
567
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
568
|
-
if (!this._orders) {
|
|
569
|
-
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
570
|
-
sourceEntity: 'OrderModule:ContractBuyOut',
|
|
571
|
-
targetEntity: 'OrderModule:Order',
|
|
572
|
-
targetModuleName: 'OrderModule',
|
|
573
|
-
targetEntityName: 'Order',
|
|
574
|
-
labels: ['Order__ContractBuyOut'],
|
|
575
|
-
}, OrderRecord_1.OrderRecord);
|
|
576
|
-
}
|
|
577
|
-
return this._orders;
|
|
578
|
-
}
|
|
579
|
-
/**
|
|
580
|
-
* Access linked File records
|
|
581
|
-
* @remarks Available labels: ContractBuyOut__File
|
|
582
|
-
* @throws Error if called on a new (unsaved) record
|
|
583
|
-
*
|
|
584
|
-
* @example
|
|
585
|
-
* ```typescript
|
|
586
|
-
* // Get all linked File records
|
|
587
|
-
* const items = await record.files.list();
|
|
588
|
-
* const first = await record.files.first();
|
|
589
|
-
*
|
|
590
|
-
* // Filter by label
|
|
591
|
-
* const specific = await record.files.first({ label: 'ContractBuyOut__File' });
|
|
592
|
-
* ```
|
|
593
|
-
*/
|
|
594
|
-
get files() {
|
|
595
|
-
var _a;
|
|
596
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
597
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
598
|
-
if (!this._files) {
|
|
599
|
-
this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
600
|
-
sourceEntity: 'OrderModule:ContractBuyOut',
|
|
601
|
-
targetEntity: 'SchemaModule:File',
|
|
602
|
-
targetModuleName: 'SchemaModule',
|
|
603
|
-
targetEntityName: 'File',
|
|
604
|
-
labels: ['ContractBuyOut__File'],
|
|
605
|
-
}, FileRecord_1.FileRecord);
|
|
606
|
-
}
|
|
607
|
-
return this._files;
|
|
608
|
-
}
|
|
609
|
-
// ============================================
|
|
610
371
|
// LINK MANAGEMENT
|
|
611
372
|
// ============================================
|
|
612
373
|
/**
|
|
@@ -1184,23 +945,6 @@ class ContractBuyOutRecord {
|
|
|
1184
945
|
}
|
|
1185
946
|
}
|
|
1186
947
|
exports.ContractBuyOutRecord = ContractBuyOutRecord;
|
|
1187
|
-
// ============================================
|
|
1188
|
-
// TYPED LINK ACCESSORS
|
|
1189
|
-
// ============================================
|
|
1190
|
-
/** Valid labels for PaymentMethod associations */
|
|
1191
|
-
ContractBuyOutRecord.paymentMethodsLabels = ['ContractBuyOut__PaymentMethod'];
|
|
1192
|
-
/** Valid labels for Contact associations */
|
|
1193
|
-
ContractBuyOutRecord.contactsLabels = ['Contact__ContractBuyOut'];
|
|
1194
|
-
/** Valid labels for Case associations */
|
|
1195
|
-
ContractBuyOutRecord.casesLabels = ['Case__ContractBuyOut'];
|
|
1196
|
-
/** Valid labels for Note associations */
|
|
1197
|
-
ContractBuyOutRecord.notesLabels = ['ContractBuyOut__Note'];
|
|
1198
|
-
/** Valid labels for User associations */
|
|
1199
|
-
ContractBuyOutRecord.usersLabels = ['ContractBuyOut__User'];
|
|
1200
|
-
/** Valid labels for Order associations */
|
|
1201
|
-
ContractBuyOutRecord.ordersLabels = ['Order__ContractBuyOut'];
|
|
1202
|
-
/** Valid labels for File associations */
|
|
1203
|
-
ContractBuyOutRecord.filesLabels = ['ContractBuyOut__File'];
|
|
1204
948
|
/** Type guard to check if an object is a ContractBuyOutRecord */
|
|
1205
949
|
function isContractBuyOutRecord(obj) {
|
|
1206
950
|
return obj instanceof ContractBuyOutRecord;
|
|
@@ -13,26 +13,17 @@
|
|
|
13
13
|
* await record.createConversation({ ... }).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 { ConversationProperties } from '../entities-v2/Conversation';
|
|
26
23
|
import { CloseConversationProperties } from '../actions-v2/CloseConversationDto';
|
|
27
24
|
import { CreateConversationProperties } from '../actions-v2/CreateConversationDto';
|
|
28
|
-
import { ReopenConversationProperties } from '../actions-v2/ReopenConversationDto';
|
|
29
25
|
import { UpdateConversationProperties } from '../actions-v2/UpdateConversationDto';
|
|
30
26
|
import { UpdateConversationSummaryProperties } from '../actions-v2/UpdateConversationSummaryDto';
|
|
31
|
-
import { MessageRecord } from './MessageRecord';
|
|
32
|
-
import { CaseRecord } from './CaseRecord';
|
|
33
|
-
import { PushNotificationRecord } from './PushNotificationRecord';
|
|
34
|
-
/** Valid entity types for Conversation */
|
|
35
|
-
export declare type ConversationType = 'DEFAULT';
|
|
36
27
|
/**
|
|
37
28
|
* Builder for action execution with dryRun support
|
|
38
29
|
*
|
|
@@ -96,9 +87,6 @@ export declare class ConversationRecord<TProps = ConversationProperties> {
|
|
|
96
87
|
private _provider;
|
|
97
88
|
private _pendingLinks;
|
|
98
89
|
private _preGeneratedId;
|
|
99
|
-
private _messages?;
|
|
100
|
-
private _cases?;
|
|
101
|
-
private _pushNotifications?;
|
|
102
90
|
/**
|
|
103
91
|
* Create a record wrapper.
|
|
104
92
|
* @param record - The underlying record, or null for create operations
|
|
@@ -111,7 +99,7 @@ export declare class ConversationRecord<TProps = ConversationProperties> {
|
|
|
111
99
|
/** Record ID - always available (pre-generated for new records) */
|
|
112
100
|
get id(): string;
|
|
113
101
|
get entity(): string;
|
|
114
|
-
get type():
|
|
102
|
+
get type(): string | undefined;
|
|
115
103
|
/** Record properties - empty object for new (unsaved) records */
|
|
116
104
|
get properties(): TProps;
|
|
117
105
|
get title(): string | undefined;
|
|
@@ -124,76 +112,6 @@ export declare class ConversationRecord<TProps = ConversationProperties> {
|
|
|
124
112
|
get groups(): string[];
|
|
125
113
|
/** Access the underlying OdinRecord (null for new records) */
|
|
126
114
|
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 ConversationProperties
|
|
137
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
138
|
-
* }
|
|
139
|
-
* ```
|
|
140
|
-
* @remarks This is the default record type
|
|
141
|
-
*/
|
|
142
|
-
isDefault(): this is ConversationRecord<ConversationProperties>;
|
|
143
|
-
/** Valid labels for Message associations */
|
|
144
|
-
static readonly messagesLabels: readonly ["Conversation_Message"];
|
|
145
|
-
/**
|
|
146
|
-
* Access linked Message records
|
|
147
|
-
* @remarks Available labels: Conversation_Message
|
|
148
|
-
* @throws Error if called on a new (unsaved) record
|
|
149
|
-
*
|
|
150
|
-
* @example
|
|
151
|
-
* ```typescript
|
|
152
|
-
* // Get all linked Message records
|
|
153
|
-
* const items = await record.messages.list();
|
|
154
|
-
* const first = await record.messages.first();
|
|
155
|
-
*
|
|
156
|
-
* // Filter by label
|
|
157
|
-
* const specific = await record.messages.first({ label: 'Conversation_Message' });
|
|
158
|
-
* ```
|
|
159
|
-
*/
|
|
160
|
-
get messages(): RecordLinkManager<MessageRecord, typeof ConversationRecord['messagesLabels'][number]>;
|
|
161
|
-
/** Valid labels for Case associations */
|
|
162
|
-
static readonly casesLabels: readonly ["Case_Conversation"];
|
|
163
|
-
/**
|
|
164
|
-
* Access linked Case records
|
|
165
|
-
* @remarks Available labels: Case_Conversation
|
|
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_Conversation' });
|
|
176
|
-
* ```
|
|
177
|
-
*/
|
|
178
|
-
get cases(): RecordLinkManager<CaseRecord, typeof ConversationRecord['casesLabels'][number]>;
|
|
179
|
-
/** Valid labels for PushNotification associations */
|
|
180
|
-
static readonly pushNotificationsLabels: readonly ["Conversation__PushNotification"];
|
|
181
|
-
/**
|
|
182
|
-
* Access linked PushNotification records
|
|
183
|
-
* @remarks Available labels: Conversation__PushNotification
|
|
184
|
-
* @throws Error if called on a new (unsaved) record
|
|
185
|
-
*
|
|
186
|
-
* @example
|
|
187
|
-
* ```typescript
|
|
188
|
-
* // Get all linked PushNotification records
|
|
189
|
-
* const items = await record.pushNotifications.list();
|
|
190
|
-
* const first = await record.pushNotifications.first();
|
|
191
|
-
*
|
|
192
|
-
* // Filter by label
|
|
193
|
-
* const specific = await record.pushNotifications.first({ label: 'Conversation__PushNotification' });
|
|
194
|
-
* ```
|
|
195
|
-
*/
|
|
196
|
-
get pushNotifications(): RecordLinkManager<PushNotificationRecord, typeof ConversationRecord['pushNotificationsLabels'][number]>;
|
|
197
115
|
/**
|
|
198
116
|
* Queue a link to be created with the next action.
|
|
199
117
|
* Works for both create and update actions.
|
|
@@ -269,32 +187,6 @@ export declare class ConversationRecord<TProps = ConversationProperties> {
|
|
|
269
187
|
journeyId?: string;
|
|
270
188
|
stageKey?: string;
|
|
271
189
|
}): ActionBuilder;
|
|
272
|
-
/**
|
|
273
|
-
* ReopenConversation
|
|
274
|
-
*
|
|
275
|
-
* Updates this Conversation record with the specified properties.
|
|
276
|
-
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
277
|
-
*
|
|
278
|
-
* @param properties - Required properties for this action
|
|
279
|
-
* @param options - Optional settings
|
|
280
|
-
* @param options.journeyId - Associate with a journey
|
|
281
|
-
* @param options.stageKey - Transition to pipeline stage
|
|
282
|
-
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
283
|
-
* @throws Error if called on a new (unsaved) record
|
|
284
|
-
*
|
|
285
|
-
* @example
|
|
286
|
-
* ```typescript
|
|
287
|
-
* const record = await odinClient.conversations.get(id);
|
|
288
|
-
* await record.reopenConversation({ ... }).execute();
|
|
289
|
-
*
|
|
290
|
-
* // Dry run (for debugging)
|
|
291
|
-
* const payload = record.reopenConversation({ ... }).dryRun();
|
|
292
|
-
* ```
|
|
293
|
-
*/
|
|
294
|
-
reopenConversation(properties: ReopenConversationProperties, options?: {
|
|
295
|
-
journeyId?: string;
|
|
296
|
-
stageKey?: string;
|
|
297
|
-
}): ActionBuilder;
|
|
298
190
|
/**
|
|
299
191
|
* UpdateConversation
|
|
300
192
|
*
|