@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
|
@@ -29,17 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.isPaymentMethodRefundRecord = exports.PaymentMethodRefundRecord = exports.CompletePaymentMethodRefundFlowFlowBuilder = void 0;
|
|
30
30
|
const uuid_1 = require("uuid");
|
|
31
31
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
32
|
-
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
33
32
|
const CreatePaymentMethodRefundForContactDto_1 = require("../actions-v2/CreatePaymentMethodRefundForContactDto");
|
|
34
|
-
const ContactRecord_1 = require("./ContactRecord");
|
|
35
|
-
const FileRecord_1 = require("./FileRecord");
|
|
36
|
-
const NoteRecord_1 = require("./NoteRecord");
|
|
37
|
-
const WorkOrderRecord_1 = require("./WorkOrderRecord");
|
|
38
|
-
const OrderRecord_1 = require("./OrderRecord");
|
|
39
|
-
const InvoiceRecord_1 = require("./InvoiceRecord");
|
|
40
|
-
const ActivityRecord_1 = require("./ActivityRecord");
|
|
41
|
-
const PaymentMethodRecord_1 = require("./PaymentMethodRecord");
|
|
42
|
-
const RewardRecord_1 = require("./RewardRecord");
|
|
43
33
|
/**
|
|
44
34
|
* Builder for action execution with dryRun support
|
|
45
35
|
*
|
|
@@ -262,276 +252,6 @@ class PaymentMethodRefundRecord {
|
|
|
262
252
|
get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
|
|
263
253
|
/** Access the underlying OdinRecord (null for new records) */
|
|
264
254
|
get record() { return this._record; }
|
|
265
|
-
/**
|
|
266
|
-
* Access linked Contact records
|
|
267
|
-
* @remarks Available labels: Contact__PaymentMethodRefund
|
|
268
|
-
* @throws Error if called on a new (unsaved) record
|
|
269
|
-
*
|
|
270
|
-
* @example
|
|
271
|
-
* ```typescript
|
|
272
|
-
* // Get all linked Contact records
|
|
273
|
-
* const items = await record.contacts.list();
|
|
274
|
-
* const first = await record.contacts.first();
|
|
275
|
-
*
|
|
276
|
-
* // Filter by label
|
|
277
|
-
* const specific = await record.contacts.first({ label: 'Contact__PaymentMethodRefund' });
|
|
278
|
-
* ```
|
|
279
|
-
*/
|
|
280
|
-
get contacts() {
|
|
281
|
-
var _a;
|
|
282
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
283
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
284
|
-
if (!this._contacts) {
|
|
285
|
-
this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
286
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
287
|
-
targetEntity: 'CrmModule:Contact',
|
|
288
|
-
targetModuleName: 'CrmModule',
|
|
289
|
-
targetEntityName: 'Contact',
|
|
290
|
-
labels: ['Contact__PaymentMethodRefund'],
|
|
291
|
-
}, ContactRecord_1.ContactRecord);
|
|
292
|
-
}
|
|
293
|
-
return this._contacts;
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Access linked File records
|
|
297
|
-
* @remarks Available labels: PaymentMethodRefund__File
|
|
298
|
-
* @throws Error if called on a new (unsaved) record
|
|
299
|
-
*
|
|
300
|
-
* @example
|
|
301
|
-
* ```typescript
|
|
302
|
-
* // Get all linked File records
|
|
303
|
-
* const items = await record.files.list();
|
|
304
|
-
* const first = await record.files.first();
|
|
305
|
-
*
|
|
306
|
-
* // Filter by label
|
|
307
|
-
* const specific = await record.files.first({ label: 'PaymentMethodRefund__File' });
|
|
308
|
-
* ```
|
|
309
|
-
*/
|
|
310
|
-
get files() {
|
|
311
|
-
var _a;
|
|
312
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
313
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
314
|
-
if (!this._files) {
|
|
315
|
-
this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
316
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
317
|
-
targetEntity: 'SchemaModule:File',
|
|
318
|
-
targetModuleName: 'SchemaModule',
|
|
319
|
-
targetEntityName: 'File',
|
|
320
|
-
labels: ['PaymentMethodRefund__File'],
|
|
321
|
-
}, FileRecord_1.FileRecord);
|
|
322
|
-
}
|
|
323
|
-
return this._files;
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Access linked Note records
|
|
327
|
-
* @remarks Available labels: PaymentMethodRefund__Note
|
|
328
|
-
* @throws Error if called on a new (unsaved) record
|
|
329
|
-
*
|
|
330
|
-
* @example
|
|
331
|
-
* ```typescript
|
|
332
|
-
* // Get all linked Note records
|
|
333
|
-
* const items = await record.notes.list();
|
|
334
|
-
* const first = await record.notes.first();
|
|
335
|
-
*
|
|
336
|
-
* // Filter by label
|
|
337
|
-
* const specific = await record.notes.first({ label: 'PaymentMethodRefund__Note' });
|
|
338
|
-
* ```
|
|
339
|
-
*/
|
|
340
|
-
get notes() {
|
|
341
|
-
var _a;
|
|
342
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
343
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
344
|
-
if (!this._notes) {
|
|
345
|
-
this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
346
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
347
|
-
targetEntity: 'SupportModule:Note',
|
|
348
|
-
targetModuleName: 'SupportModule',
|
|
349
|
-
targetEntityName: 'Note',
|
|
350
|
-
labels: ['PaymentMethodRefund__Note'],
|
|
351
|
-
}, NoteRecord_1.NoteRecord);
|
|
352
|
-
}
|
|
353
|
-
return this._notes;
|
|
354
|
-
}
|
|
355
|
-
/**
|
|
356
|
-
* Access linked WorkOrder records
|
|
357
|
-
* @remarks Available labels: PaymentMethodRefund__WorkOrder
|
|
358
|
-
* @throws Error if called on a new (unsaved) record
|
|
359
|
-
*
|
|
360
|
-
* @example
|
|
361
|
-
* ```typescript
|
|
362
|
-
* // Get all linked WorkOrder records
|
|
363
|
-
* const items = await record.workOrders.list();
|
|
364
|
-
* const first = await record.workOrders.first();
|
|
365
|
-
*
|
|
366
|
-
* // Filter by label
|
|
367
|
-
* const specific = await record.workOrders.first({ label: 'PaymentMethodRefund__WorkOrder' });
|
|
368
|
-
* ```
|
|
369
|
-
*/
|
|
370
|
-
get workOrders() {
|
|
371
|
-
var _a;
|
|
372
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
373
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
374
|
-
if (!this._workOrders) {
|
|
375
|
-
this._workOrders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
376
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
377
|
-
targetEntity: 'FieldServiceModule:WorkOrder',
|
|
378
|
-
targetModuleName: 'FieldServiceModule',
|
|
379
|
-
targetEntityName: 'WorkOrder',
|
|
380
|
-
labels: ['PaymentMethodRefund__WorkOrder'],
|
|
381
|
-
}, WorkOrderRecord_1.WorkOrderRecord);
|
|
382
|
-
}
|
|
383
|
-
return this._workOrders;
|
|
384
|
-
}
|
|
385
|
-
/**
|
|
386
|
-
* Access linked Order records
|
|
387
|
-
* @remarks Available labels: PaymentMethodRefund__Order
|
|
388
|
-
* @throws Error if called on a new (unsaved) record
|
|
389
|
-
*
|
|
390
|
-
* @example
|
|
391
|
-
* ```typescript
|
|
392
|
-
* // Get all linked Order records
|
|
393
|
-
* const items = await record.orders.list();
|
|
394
|
-
* const first = await record.orders.first();
|
|
395
|
-
*
|
|
396
|
-
* // Filter by label
|
|
397
|
-
* const specific = await record.orders.first({ label: 'PaymentMethodRefund__Order' });
|
|
398
|
-
* ```
|
|
399
|
-
*/
|
|
400
|
-
get orders() {
|
|
401
|
-
var _a;
|
|
402
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
403
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
404
|
-
if (!this._orders) {
|
|
405
|
-
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
406
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
407
|
-
targetEntity: 'OrderModule:Order',
|
|
408
|
-
targetModuleName: 'OrderModule',
|
|
409
|
-
targetEntityName: 'Order',
|
|
410
|
-
labels: ['PaymentMethodRefund__Order'],
|
|
411
|
-
}, OrderRecord_1.OrderRecord);
|
|
412
|
-
}
|
|
413
|
-
return this._orders;
|
|
414
|
-
}
|
|
415
|
-
/**
|
|
416
|
-
* Access linked Invoice records
|
|
417
|
-
* @remarks Available labels: PaymentMethodRefund__Invoice
|
|
418
|
-
* @throws Error if called on a new (unsaved) record
|
|
419
|
-
*
|
|
420
|
-
* @example
|
|
421
|
-
* ```typescript
|
|
422
|
-
* // Get all linked Invoice records
|
|
423
|
-
* const items = await record.invoices.list();
|
|
424
|
-
* const first = await record.invoices.first();
|
|
425
|
-
*
|
|
426
|
-
* // Filter by label
|
|
427
|
-
* const specific = await record.invoices.first({ label: 'PaymentMethodRefund__Invoice' });
|
|
428
|
-
* ```
|
|
429
|
-
*/
|
|
430
|
-
get invoices() {
|
|
431
|
-
var _a;
|
|
432
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
433
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
434
|
-
if (!this._invoices) {
|
|
435
|
-
this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
436
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
437
|
-
targetEntity: 'BillingModule:Invoice',
|
|
438
|
-
targetModuleName: 'BillingModule',
|
|
439
|
-
targetEntityName: 'Invoice',
|
|
440
|
-
labels: ['PaymentMethodRefund__Invoice'],
|
|
441
|
-
}, InvoiceRecord_1.InvoiceRecord);
|
|
442
|
-
}
|
|
443
|
-
return this._invoices;
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* Access linked Activity records
|
|
447
|
-
* @remarks Available labels: PaymentMethodRefund__Activity
|
|
448
|
-
* @throws Error if called on a new (unsaved) record
|
|
449
|
-
*
|
|
450
|
-
* @example
|
|
451
|
-
* ```typescript
|
|
452
|
-
* // Get all linked Activity records
|
|
453
|
-
* const items = await record.activities.list();
|
|
454
|
-
* const first = await record.activities.first();
|
|
455
|
-
*
|
|
456
|
-
* // Filter by label
|
|
457
|
-
* const specific = await record.activities.first({ label: 'PaymentMethodRefund__Activity' });
|
|
458
|
-
* ```
|
|
459
|
-
*/
|
|
460
|
-
get activities() {
|
|
461
|
-
var _a;
|
|
462
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
463
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
464
|
-
if (!this._activities) {
|
|
465
|
-
this._activities = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
466
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
467
|
-
targetEntity: 'SchemaModule:Activity',
|
|
468
|
-
targetModuleName: 'SchemaModule',
|
|
469
|
-
targetEntityName: 'Activity',
|
|
470
|
-
labels: ['PaymentMethodRefund__Activity'],
|
|
471
|
-
}, ActivityRecord_1.ActivityRecord);
|
|
472
|
-
}
|
|
473
|
-
return this._activities;
|
|
474
|
-
}
|
|
475
|
-
/**
|
|
476
|
-
* Access linked PaymentMethod records
|
|
477
|
-
* @remarks Available labels: PaymentMethod__PaymentMethodRefund
|
|
478
|
-
* @throws Error if called on a new (unsaved) record
|
|
479
|
-
*
|
|
480
|
-
* @example
|
|
481
|
-
* ```typescript
|
|
482
|
-
* // Get all linked PaymentMethod records
|
|
483
|
-
* const items = await record.paymentMethods.list();
|
|
484
|
-
* const first = await record.paymentMethods.first();
|
|
485
|
-
*
|
|
486
|
-
* // Filter by label
|
|
487
|
-
* const specific = await record.paymentMethods.first({ label: 'PaymentMethod__PaymentMethodRefund' });
|
|
488
|
-
* ```
|
|
489
|
-
*/
|
|
490
|
-
get paymentMethods() {
|
|
491
|
-
var _a;
|
|
492
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
493
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
494
|
-
if (!this._paymentMethods) {
|
|
495
|
-
this._paymentMethods = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
496
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
497
|
-
targetEntity: 'BillingModule:PaymentMethod',
|
|
498
|
-
targetModuleName: 'BillingModule',
|
|
499
|
-
targetEntityName: 'PaymentMethod',
|
|
500
|
-
labels: ['PaymentMethod__PaymentMethodRefund'],
|
|
501
|
-
}, PaymentMethodRecord_1.PaymentMethodRecord);
|
|
502
|
-
}
|
|
503
|
-
return this._paymentMethods;
|
|
504
|
-
}
|
|
505
|
-
/**
|
|
506
|
-
* Access linked Reward records
|
|
507
|
-
* @remarks Available labels: RewardPaymentMethodRefund
|
|
508
|
-
* @throws Error if called on a new (unsaved) record
|
|
509
|
-
*
|
|
510
|
-
* @example
|
|
511
|
-
* ```typescript
|
|
512
|
-
* // Get all linked Reward records
|
|
513
|
-
* const items = await record.rewards.list();
|
|
514
|
-
* const first = await record.rewards.first();
|
|
515
|
-
*
|
|
516
|
-
* // Filter by label
|
|
517
|
-
* const specific = await record.rewards.first({ label: 'RewardPaymentMethodRefund' });
|
|
518
|
-
* ```
|
|
519
|
-
*/
|
|
520
|
-
get rewards() {
|
|
521
|
-
var _a;
|
|
522
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
523
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
524
|
-
if (!this._rewards) {
|
|
525
|
-
this._rewards = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
526
|
-
sourceEntity: 'BillingModule:PaymentMethodRefund',
|
|
527
|
-
targetEntity: 'CrmModule:Reward',
|
|
528
|
-
targetModuleName: 'CrmModule',
|
|
529
|
-
targetEntityName: 'Reward',
|
|
530
|
-
labels: ['RewardPaymentMethodRefund'],
|
|
531
|
-
}, RewardRecord_1.RewardRecord);
|
|
532
|
-
}
|
|
533
|
-
return this._rewards;
|
|
534
|
-
}
|
|
535
255
|
// ============================================
|
|
536
256
|
// LINK MANAGEMENT
|
|
537
257
|
// ============================================
|
|
@@ -691,27 +411,6 @@ class PaymentMethodRefundRecord {
|
|
|
691
411
|
}
|
|
692
412
|
}
|
|
693
413
|
exports.PaymentMethodRefundRecord = PaymentMethodRefundRecord;
|
|
694
|
-
// ============================================
|
|
695
|
-
// TYPED LINK ACCESSORS
|
|
696
|
-
// ============================================
|
|
697
|
-
/** Valid labels for Contact associations */
|
|
698
|
-
PaymentMethodRefundRecord.contactsLabels = ['Contact__PaymentMethodRefund'];
|
|
699
|
-
/** Valid labels for File associations */
|
|
700
|
-
PaymentMethodRefundRecord.filesLabels = ['PaymentMethodRefund__File'];
|
|
701
|
-
/** Valid labels for Note associations */
|
|
702
|
-
PaymentMethodRefundRecord.notesLabels = ['PaymentMethodRefund__Note'];
|
|
703
|
-
/** Valid labels for WorkOrder associations */
|
|
704
|
-
PaymentMethodRefundRecord.workOrdersLabels = ['PaymentMethodRefund__WorkOrder'];
|
|
705
|
-
/** Valid labels for Order associations */
|
|
706
|
-
PaymentMethodRefundRecord.ordersLabels = ['PaymentMethodRefund__Order'];
|
|
707
|
-
/** Valid labels for Invoice associations */
|
|
708
|
-
PaymentMethodRefundRecord.invoicesLabels = ['PaymentMethodRefund__Invoice'];
|
|
709
|
-
/** Valid labels for Activity associations */
|
|
710
|
-
PaymentMethodRefundRecord.activitiesLabels = ['PaymentMethodRefund__Activity'];
|
|
711
|
-
/** Valid labels for PaymentMethod associations */
|
|
712
|
-
PaymentMethodRefundRecord.paymentMethodsLabels = ['PaymentMethod__PaymentMethodRefund'];
|
|
713
|
-
/** Valid labels for Reward associations */
|
|
714
|
-
PaymentMethodRefundRecord.rewardsLabels = ['RewardPaymentMethodRefund'];
|
|
715
414
|
/** Type guard to check if an object is a PaymentMethodRefundRecord */
|
|
716
415
|
function isPaymentMethodRefundRecord(obj) {
|
|
717
416
|
return obj instanceof PaymentMethodRefundRecord;
|
|
@@ -13,25 +13,17 @@
|
|
|
13
13
|
* await record.createPayment({ ... }).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 { PaymentProperties } from '../entities-v2/Payment';
|
|
26
23
|
import { CreatePaymentProperties } from '../actions-v2/CreatePaymentDto';
|
|
27
24
|
import { CreatePaymentBuilder } from '../actions-v2/CreatePaymentDto';
|
|
28
25
|
import { CreatePaymentForInvoicesProperties } from '../actions-v2/CreatePaymentForInvoicesDto';
|
|
29
26
|
import { SetPaymentLinkProperties } from '../actions-v2/SetPaymentLinkDto';
|
|
30
|
-
import { InvoiceRecord } from './InvoiceRecord';
|
|
31
|
-
import { AccountRecord } from './AccountRecord';
|
|
32
|
-
import { TransactionRecord } from './TransactionRecord';
|
|
33
|
-
/** Valid entity types for Payment */
|
|
34
|
-
export declare type PaymentType = 'DEFAULT';
|
|
35
27
|
/**
|
|
36
28
|
* Builder for action execution with dryRun support
|
|
37
29
|
*
|
|
@@ -95,9 +87,6 @@ export declare class PaymentRecord<TProps = PaymentProperties> {
|
|
|
95
87
|
private _provider;
|
|
96
88
|
private _pendingLinks;
|
|
97
89
|
private _preGeneratedId;
|
|
98
|
-
private _invoices?;
|
|
99
|
-
private _accounts?;
|
|
100
|
-
private _transactions?;
|
|
101
90
|
/**
|
|
102
91
|
* Create a record wrapper.
|
|
103
92
|
* @param record - The underlying record, or null for create operations
|
|
@@ -110,7 +99,7 @@ export declare class PaymentRecord<TProps = PaymentProperties> {
|
|
|
110
99
|
/** Record ID - always available (pre-generated for new records) */
|
|
111
100
|
get id(): string;
|
|
112
101
|
get entity(): string;
|
|
113
|
-
get type():
|
|
102
|
+
get type(): string | undefined;
|
|
114
103
|
/** Record properties - empty object for new (unsaved) records */
|
|
115
104
|
get properties(): TProps;
|
|
116
105
|
get title(): string | undefined;
|
|
@@ -123,76 +112,6 @@ export declare class PaymentRecord<TProps = PaymentProperties> {
|
|
|
123
112
|
get groups(): string[];
|
|
124
113
|
/** Access the underlying OdinRecord (null for new records) */
|
|
125
114
|
get record(): OdinRecord<TProps> | null;
|
|
126
|
-
/**
|
|
127
|
-
* Type guard: check if this record is of type DEFAULT
|
|
128
|
-
*
|
|
129
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
130
|
-
* giving you access to DEFAULT-specific properties.
|
|
131
|
-
*
|
|
132
|
-
* @example
|
|
133
|
-
* ```typescript
|
|
134
|
-
* if (record.isDefault()) {
|
|
135
|
-
* // TypeScript knows record.properties is PaymentProperties
|
|
136
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
137
|
-
* }
|
|
138
|
-
* ```
|
|
139
|
-
* @remarks This is the default record type
|
|
140
|
-
*/
|
|
141
|
-
isDefault(): this is PaymentRecord<PaymentProperties>;
|
|
142
|
-
/** Valid labels for Invoice associations */
|
|
143
|
-
static readonly invoicesLabels: readonly ["Payment_Invoice"];
|
|
144
|
-
/**
|
|
145
|
-
* Access linked Invoice records
|
|
146
|
-
* @remarks Available labels: Payment_Invoice
|
|
147
|
-
* @throws Error if called on a new (unsaved) record
|
|
148
|
-
*
|
|
149
|
-
* @example
|
|
150
|
-
* ```typescript
|
|
151
|
-
* // Get all linked Invoice records
|
|
152
|
-
* const items = await record.invoices.list();
|
|
153
|
-
* const first = await record.invoices.first();
|
|
154
|
-
*
|
|
155
|
-
* // Filter by label
|
|
156
|
-
* const specific = await record.invoices.first({ label: 'Payment_Invoice' });
|
|
157
|
-
* ```
|
|
158
|
-
*/
|
|
159
|
-
get invoices(): RecordLinkManager<InvoiceRecord, typeof PaymentRecord['invoicesLabels'][number]>;
|
|
160
|
-
/** Valid labels for Account associations */
|
|
161
|
-
static readonly accountsLabels: readonly ["Account_Payment"];
|
|
162
|
-
/**
|
|
163
|
-
* Access linked Account records
|
|
164
|
-
* @remarks Available labels: Account_Payment
|
|
165
|
-
* @throws Error if called on a new (unsaved) record
|
|
166
|
-
*
|
|
167
|
-
* @example
|
|
168
|
-
* ```typescript
|
|
169
|
-
* // Get all linked Account records
|
|
170
|
-
* const items = await record.accounts.list();
|
|
171
|
-
* const first = await record.accounts.first();
|
|
172
|
-
*
|
|
173
|
-
* // Filter by label
|
|
174
|
-
* const specific = await record.accounts.first({ label: 'Account_Payment' });
|
|
175
|
-
* ```
|
|
176
|
-
*/
|
|
177
|
-
get accounts(): RecordLinkManager<AccountRecord, typeof PaymentRecord['accountsLabels'][number]>;
|
|
178
|
-
/** Valid labels for Transaction associations */
|
|
179
|
-
static readonly transactionsLabels: readonly ["Payment_Transaction"];
|
|
180
|
-
/**
|
|
181
|
-
* Access linked Transaction records
|
|
182
|
-
* @remarks Available labels: Payment_Transaction
|
|
183
|
-
* @throws Error if called on a new (unsaved) record
|
|
184
|
-
*
|
|
185
|
-
* @example
|
|
186
|
-
* ```typescript
|
|
187
|
-
* // Get all linked Transaction records
|
|
188
|
-
* const items = await record.transactions.list();
|
|
189
|
-
* const first = await record.transactions.first();
|
|
190
|
-
*
|
|
191
|
-
* // Filter by label
|
|
192
|
-
* const specific = await record.transactions.first({ label: 'Payment_Transaction' });
|
|
193
|
-
* ```
|
|
194
|
-
*/
|
|
195
|
-
get transactions(): RecordLinkManager<TransactionRecord, typeof PaymentRecord['transactionsLabels'][number]>;
|
|
196
115
|
/**
|
|
197
116
|
* Queue a link to be created with the next action.
|
|
198
117
|
* Works for both create and update actions.
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* await record.createPayment({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: DEFAULT
|
|
18
|
-
*
|
|
19
17
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
18
|
*/
|
|
21
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -31,11 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
29
|
exports.isPaymentRecord = exports.PaymentRecord = 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
32
|
const CreatePaymentDto_1 = require("../actions-v2/CreatePaymentDto");
|
|
36
|
-
const InvoiceRecord_1 = require("./InvoiceRecord");
|
|
37
|
-
const AccountRecord_1 = require("./AccountRecord");
|
|
38
|
-
const TransactionRecord_1 = require("./TransactionRecord");
|
|
39
33
|
/**
|
|
40
34
|
* Builder for action execution with dryRun support
|
|
41
35
|
*
|
|
@@ -147,115 +141,6 @@ class PaymentRecord {
|
|
|
147
141
|
/** Access the underlying OdinRecord (null for new records) */
|
|
148
142
|
get record() { return this._record; }
|
|
149
143
|
// ============================================
|
|
150
|
-
// TYPE GUARDS (with TypeScript type predicates)
|
|
151
|
-
// ============================================
|
|
152
|
-
/**
|
|
153
|
-
* Type guard: check if this record is of type DEFAULT
|
|
154
|
-
*
|
|
155
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
156
|
-
* giving you access to DEFAULT-specific properties.
|
|
157
|
-
*
|
|
158
|
-
* @example
|
|
159
|
-
* ```typescript
|
|
160
|
-
* if (record.isDefault()) {
|
|
161
|
-
* // TypeScript knows record.properties is PaymentProperties
|
|
162
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
163
|
-
* }
|
|
164
|
-
* ```
|
|
165
|
-
* @remarks This is the default record type
|
|
166
|
-
*/
|
|
167
|
-
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
168
|
-
/**
|
|
169
|
-
* Access linked Invoice records
|
|
170
|
-
* @remarks Available labels: Payment_Invoice
|
|
171
|
-
* @throws Error if called on a new (unsaved) record
|
|
172
|
-
*
|
|
173
|
-
* @example
|
|
174
|
-
* ```typescript
|
|
175
|
-
* // Get all linked Invoice records
|
|
176
|
-
* const items = await record.invoices.list();
|
|
177
|
-
* const first = await record.invoices.first();
|
|
178
|
-
*
|
|
179
|
-
* // Filter by label
|
|
180
|
-
* const specific = await record.invoices.first({ label: 'Payment_Invoice' });
|
|
181
|
-
* ```
|
|
182
|
-
*/
|
|
183
|
-
get invoices() {
|
|
184
|
-
var _a;
|
|
185
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
186
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
187
|
-
if (!this._invoices) {
|
|
188
|
-
this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
189
|
-
sourceEntity: 'BillingModule:Payment',
|
|
190
|
-
targetEntity: 'BillingModule:Invoice',
|
|
191
|
-
targetModuleName: 'BillingModule',
|
|
192
|
-
targetEntityName: 'Invoice',
|
|
193
|
-
labels: ['Payment_Invoice'],
|
|
194
|
-
}, InvoiceRecord_1.InvoiceRecord);
|
|
195
|
-
}
|
|
196
|
-
return this._invoices;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Access linked Account records
|
|
200
|
-
* @remarks Available labels: Account_Payment
|
|
201
|
-
* @throws Error if called on a new (unsaved) record
|
|
202
|
-
*
|
|
203
|
-
* @example
|
|
204
|
-
* ```typescript
|
|
205
|
-
* // Get all linked Account records
|
|
206
|
-
* const items = await record.accounts.list();
|
|
207
|
-
* const first = await record.accounts.first();
|
|
208
|
-
*
|
|
209
|
-
* // Filter by label
|
|
210
|
-
* const specific = await record.accounts.first({ label: 'Account_Payment' });
|
|
211
|
-
* ```
|
|
212
|
-
*/
|
|
213
|
-
get accounts() {
|
|
214
|
-
var _a;
|
|
215
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
216
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
217
|
-
if (!this._accounts) {
|
|
218
|
-
this._accounts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
219
|
-
sourceEntity: 'BillingModule:Payment',
|
|
220
|
-
targetEntity: 'CrmModule:Account',
|
|
221
|
-
targetModuleName: 'CrmModule',
|
|
222
|
-
targetEntityName: 'Account',
|
|
223
|
-
labels: ['Account_Payment'],
|
|
224
|
-
}, AccountRecord_1.AccountRecord);
|
|
225
|
-
}
|
|
226
|
-
return this._accounts;
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Access linked Transaction records
|
|
230
|
-
* @remarks Available labels: Payment_Transaction
|
|
231
|
-
* @throws Error if called on a new (unsaved) record
|
|
232
|
-
*
|
|
233
|
-
* @example
|
|
234
|
-
* ```typescript
|
|
235
|
-
* // Get all linked Transaction records
|
|
236
|
-
* const items = await record.transactions.list();
|
|
237
|
-
* const first = await record.transactions.first();
|
|
238
|
-
*
|
|
239
|
-
* // Filter by label
|
|
240
|
-
* const specific = await record.transactions.first({ label: 'Payment_Transaction' });
|
|
241
|
-
* ```
|
|
242
|
-
*/
|
|
243
|
-
get transactions() {
|
|
244
|
-
var _a;
|
|
245
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
246
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
247
|
-
if (!this._transactions) {
|
|
248
|
-
this._transactions = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
249
|
-
sourceEntity: 'BillingModule:Payment',
|
|
250
|
-
targetEntity: 'BillingModule:Transaction',
|
|
251
|
-
targetModuleName: 'BillingModule',
|
|
252
|
-
targetEntityName: 'Transaction',
|
|
253
|
-
labels: ['Payment_Transaction'],
|
|
254
|
-
}, TransactionRecord_1.TransactionRecord);
|
|
255
|
-
}
|
|
256
|
-
return this._transactions;
|
|
257
|
-
}
|
|
258
|
-
// ============================================
|
|
259
144
|
// LINK MANAGEMENT
|
|
260
145
|
// ============================================
|
|
261
146
|
/**
|
|
@@ -561,15 +446,6 @@ class PaymentRecord {
|
|
|
561
446
|
}
|
|
562
447
|
}
|
|
563
448
|
exports.PaymentRecord = PaymentRecord;
|
|
564
|
-
// ============================================
|
|
565
|
-
// TYPED LINK ACCESSORS
|
|
566
|
-
// ============================================
|
|
567
|
-
/** Valid labels for Invoice associations */
|
|
568
|
-
PaymentRecord.invoicesLabels = ['Payment_Invoice'];
|
|
569
|
-
/** Valid labels for Account associations */
|
|
570
|
-
PaymentRecord.accountsLabels = ['Account_Payment'];
|
|
571
|
-
/** Valid labels for Transaction associations */
|
|
572
|
-
PaymentRecord.transactionsLabels = ['Payment_Transaction'];
|
|
573
449
|
/** Type guard to check if an object is a PaymentRecord */
|
|
574
450
|
function isPaymentRecord(obj) {
|
|
575
451
|
return obj instanceof PaymentRecord;
|
|
@@ -19,13 +19,9 @@ import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
|
19
19
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
20
20
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
21
21
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
22
|
-
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
23
22
|
import { PermissionToFailProperties } from '../entities-v2/PermissionToFail';
|
|
24
23
|
import { ChangeApprovalStatusProperties } from '../actions-v2/ChangeApprovalStatusDto';
|
|
25
24
|
import { CreatePermissionToFailProperties } from '../actions-v2/CreatePermissionToFailDto';
|
|
26
|
-
import { NoteRecord } from './NoteRecord';
|
|
27
|
-
import { WorkOrderRecord } from './WorkOrderRecord';
|
|
28
|
-
import { RemediationRequiredReasonRecord } from './RemediationRequiredReasonRecord';
|
|
29
25
|
/**
|
|
30
26
|
* Builder for action execution with dryRun support
|
|
31
27
|
*
|
|
@@ -89,9 +85,6 @@ export declare class PermissionToFailRecord<TProps = PermissionToFailProperties>
|
|
|
89
85
|
private _provider;
|
|
90
86
|
private _pendingLinks;
|
|
91
87
|
private _preGeneratedId;
|
|
92
|
-
private _notes?;
|
|
93
|
-
private _workOrders?;
|
|
94
|
-
private _remediationRequiredReasons?;
|
|
95
88
|
/**
|
|
96
89
|
* Create a record wrapper.
|
|
97
90
|
* @param record - The underlying record, or null for create operations
|
|
@@ -117,60 +110,6 @@ export declare class PermissionToFailRecord<TProps = PermissionToFailProperties>
|
|
|
117
110
|
get groups(): string[];
|
|
118
111
|
/** Access the underlying OdinRecord (null for new records) */
|
|
119
112
|
get record(): OdinRecord<TProps> | null;
|
|
120
|
-
/** Valid labels for Note associations */
|
|
121
|
-
static readonly notesLabels: readonly ["PermissionToFail_Note"];
|
|
122
|
-
/**
|
|
123
|
-
* Access linked Note records
|
|
124
|
-
* @remarks Available labels: PermissionToFail_Note
|
|
125
|
-
* @throws Error if called on a new (unsaved) record
|
|
126
|
-
*
|
|
127
|
-
* @example
|
|
128
|
-
* ```typescript
|
|
129
|
-
* // Get all linked Note records
|
|
130
|
-
* const items = await record.notes.list();
|
|
131
|
-
* const first = await record.notes.first();
|
|
132
|
-
*
|
|
133
|
-
* // Filter by label
|
|
134
|
-
* const specific = await record.notes.first({ label: 'PermissionToFail_Note' });
|
|
135
|
-
* ```
|
|
136
|
-
*/
|
|
137
|
-
get notes(): RecordLinkManager<NoteRecord, typeof PermissionToFailRecord['notesLabels'][number]>;
|
|
138
|
-
/** Valid labels for WorkOrder associations */
|
|
139
|
-
static readonly workOrdersLabels: readonly ["WorkOrder__PermissionToFail"];
|
|
140
|
-
/**
|
|
141
|
-
* Access linked WorkOrder records
|
|
142
|
-
* @remarks Available labels: WorkOrder__PermissionToFail
|
|
143
|
-
* @throws Error if called on a new (unsaved) record
|
|
144
|
-
*
|
|
145
|
-
* @example
|
|
146
|
-
* ```typescript
|
|
147
|
-
* // Get all linked WorkOrder records
|
|
148
|
-
* const items = await record.workOrders.list();
|
|
149
|
-
* const first = await record.workOrders.first();
|
|
150
|
-
*
|
|
151
|
-
* // Filter by label
|
|
152
|
-
* const specific = await record.workOrders.first({ label: 'WorkOrder__PermissionToFail' });
|
|
153
|
-
* ```
|
|
154
|
-
*/
|
|
155
|
-
get workOrders(): RecordLinkManager<WorkOrderRecord, typeof PermissionToFailRecord['workOrdersLabels'][number]>;
|
|
156
|
-
/** Valid labels for RemediationRequiredReason associations */
|
|
157
|
-
static readonly remediationRequiredReasonsLabels: readonly ["PermissionToFail__RemediationRequiredReason"];
|
|
158
|
-
/**
|
|
159
|
-
* Access linked RemediationRequiredReason records
|
|
160
|
-
* @remarks Available labels: PermissionToFail__RemediationRequiredReason
|
|
161
|
-
* @throws Error if called on a new (unsaved) record
|
|
162
|
-
*
|
|
163
|
-
* @example
|
|
164
|
-
* ```typescript
|
|
165
|
-
* // Get all linked RemediationRequiredReason records
|
|
166
|
-
* const items = await record.remediationRequiredReasons.list();
|
|
167
|
-
* const first = await record.remediationRequiredReasons.first();
|
|
168
|
-
*
|
|
169
|
-
* // Filter by label
|
|
170
|
-
* const specific = await record.remediationRequiredReasons.first({ label: 'PermissionToFail__RemediationRequiredReason' });
|
|
171
|
-
* ```
|
|
172
|
-
*/
|
|
173
|
-
get remediationRequiredReasons(): RecordLinkManager<RemediationRequiredReasonRecord, typeof PermissionToFailRecord['remediationRequiredReasonsLabels'][number]>;
|
|
174
113
|
/**
|
|
175
114
|
* Queue a link to be created with the next action.
|
|
176
115
|
* Works for both create and update actions.
|