@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
|
@@ -19,16 +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 { VisitProperties } from '../entities-v2/Visit';
|
|
24
23
|
import { VisitCreateProperties } from '../actions-v2/VisitCreateDto';
|
|
25
24
|
import { VisitUpdateProperties } from '../actions-v2/VisitUpdateDto';
|
|
26
|
-
import { AddressRecord } from './AddressRecord';
|
|
27
|
-
import { NoteRecord } from './NoteRecord';
|
|
28
|
-
import { LeadRecord } from './LeadRecord';
|
|
29
|
-
import { FileRecord } from './FileRecord';
|
|
30
|
-
import { OrderRecord } from './OrderRecord';
|
|
31
|
-
import { AppointmentRecord } from './AppointmentRecord';
|
|
32
25
|
/**
|
|
33
26
|
* Builder for action execution with dryRun support
|
|
34
27
|
*
|
|
@@ -92,12 +85,6 @@ export declare class VisitRecord<TProps = VisitProperties> {
|
|
|
92
85
|
private _provider;
|
|
93
86
|
private _pendingLinks;
|
|
94
87
|
private _preGeneratedId;
|
|
95
|
-
private _addresses?;
|
|
96
|
-
private _notes?;
|
|
97
|
-
private _leads?;
|
|
98
|
-
private _files?;
|
|
99
|
-
private _orders?;
|
|
100
|
-
private _appointments?;
|
|
101
88
|
/**
|
|
102
89
|
* Create a record wrapper.
|
|
103
90
|
* @param record - The underlying record, or null for create operations
|
|
@@ -123,114 +110,6 @@ export declare class VisitRecord<TProps = VisitProperties> {
|
|
|
123
110
|
get groups(): string[];
|
|
124
111
|
/** Access the underlying OdinRecord (null for new records) */
|
|
125
112
|
get record(): OdinRecord<TProps> | null;
|
|
126
|
-
/** Valid labels for Address associations */
|
|
127
|
-
static readonly addressesLabels: readonly ["Address__Visit"];
|
|
128
|
-
/**
|
|
129
|
-
* Access linked Address records
|
|
130
|
-
* @remarks Available labels: Address__Visit
|
|
131
|
-
* @throws Error if called on a new (unsaved) record
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```typescript
|
|
135
|
-
* // Get all linked Address records
|
|
136
|
-
* const items = await record.addresses.list();
|
|
137
|
-
* const first = await record.addresses.first();
|
|
138
|
-
*
|
|
139
|
-
* // Filter by label
|
|
140
|
-
* const specific = await record.addresses.first({ label: 'Address__Visit' });
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
get addresses(): RecordLinkManager<AddressRecord, typeof VisitRecord['addressesLabels'][number]>;
|
|
144
|
-
/** Valid labels for Note associations */
|
|
145
|
-
static readonly notesLabels: readonly ["Visit__Note"];
|
|
146
|
-
/**
|
|
147
|
-
* Access linked Note records
|
|
148
|
-
* @remarks Available labels: Visit__Note
|
|
149
|
-
* @throws Error if called on a new (unsaved) record
|
|
150
|
-
*
|
|
151
|
-
* @example
|
|
152
|
-
* ```typescript
|
|
153
|
-
* // Get all linked Note records
|
|
154
|
-
* const items = await record.notes.list();
|
|
155
|
-
* const first = await record.notes.first();
|
|
156
|
-
*
|
|
157
|
-
* // Filter by label
|
|
158
|
-
* const specific = await record.notes.first({ label: 'Visit__Note' });
|
|
159
|
-
* ```
|
|
160
|
-
*/
|
|
161
|
-
get notes(): RecordLinkManager<NoteRecord, typeof VisitRecord['notesLabels'][number]>;
|
|
162
|
-
/** Valid labels for Lead associations */
|
|
163
|
-
static readonly leadsLabels: readonly ["Lead__Visit"];
|
|
164
|
-
/**
|
|
165
|
-
* Access linked Lead records
|
|
166
|
-
* @remarks Available labels: Lead__Visit
|
|
167
|
-
* @throws Error if called on a new (unsaved) record
|
|
168
|
-
*
|
|
169
|
-
* @example
|
|
170
|
-
* ```typescript
|
|
171
|
-
* // Get all linked Lead records
|
|
172
|
-
* const items = await record.leads.list();
|
|
173
|
-
* const first = await record.leads.first();
|
|
174
|
-
*
|
|
175
|
-
* // Filter by label
|
|
176
|
-
* const specific = await record.leads.first({ label: 'Lead__Visit' });
|
|
177
|
-
* ```
|
|
178
|
-
*/
|
|
179
|
-
get leads(): RecordLinkManager<LeadRecord, typeof VisitRecord['leadsLabels'][number]>;
|
|
180
|
-
/** Valid labels for File associations */
|
|
181
|
-
static readonly filesLabels: readonly ["Visit__File"];
|
|
182
|
-
/**
|
|
183
|
-
* Access linked File records
|
|
184
|
-
* @remarks Available labels: Visit__File
|
|
185
|
-
* @throws Error if called on a new (unsaved) record
|
|
186
|
-
*
|
|
187
|
-
* @example
|
|
188
|
-
* ```typescript
|
|
189
|
-
* // Get all linked File records
|
|
190
|
-
* const items = await record.files.list();
|
|
191
|
-
* const first = await record.files.first();
|
|
192
|
-
*
|
|
193
|
-
* // Filter by label
|
|
194
|
-
* const specific = await record.files.first({ label: 'Visit__File' });
|
|
195
|
-
* ```
|
|
196
|
-
*/
|
|
197
|
-
get files(): RecordLinkManager<FileRecord, typeof VisitRecord['filesLabels'][number]>;
|
|
198
|
-
/** Valid labels for Order associations */
|
|
199
|
-
static readonly ordersLabels: readonly ["Order__Visit"];
|
|
200
|
-
/**
|
|
201
|
-
* Access linked Order records
|
|
202
|
-
* @remarks Available labels: Order__Visit
|
|
203
|
-
* @throws Error if called on a new (unsaved) record
|
|
204
|
-
*
|
|
205
|
-
* @example
|
|
206
|
-
* ```typescript
|
|
207
|
-
* // Get all linked Order records
|
|
208
|
-
* const items = await record.orders.list();
|
|
209
|
-
* const first = await record.orders.first();
|
|
210
|
-
*
|
|
211
|
-
* // Filter by label
|
|
212
|
-
* const specific = await record.orders.first({ label: 'Order__Visit' });
|
|
213
|
-
* ```
|
|
214
|
-
*/
|
|
215
|
-
get orders(): RecordLinkManager<OrderRecord, typeof VisitRecord['ordersLabels'][number]>;
|
|
216
|
-
/** Valid labels for Appointment associations */
|
|
217
|
-
static readonly appointmentsLabels: readonly ["Visit__Appointment"];
|
|
218
|
-
/**
|
|
219
|
-
* Access linked Appointment records
|
|
220
|
-
* @remarks Available labels: Visit__Appointment
|
|
221
|
-
* @throws Error if called on a new (unsaved) record
|
|
222
|
-
*
|
|
223
|
-
* @example
|
|
224
|
-
* ```typescript
|
|
225
|
-
* // Get all linked Appointment records
|
|
226
|
-
* const items = await record.appointments.list();
|
|
227
|
-
* const first = await record.appointments.first();
|
|
228
|
-
*
|
|
229
|
-
* // Filter by label
|
|
230
|
-
* const specific = await record.appointments.first({ label: 'Visit__Appointment' });
|
|
231
|
-
* ```
|
|
232
|
-
*/
|
|
233
|
-
get appointments(): RecordLinkManager<AppointmentRecord, typeof VisitRecord['appointmentsLabels'][number]>;
|
|
234
113
|
/**
|
|
235
114
|
* Queue a link to be created with the next action.
|
|
236
115
|
* Works for both create and update actions.
|
|
@@ -29,13 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.isVisitRecord = exports.VisitRecord = void 0;
|
|
30
30
|
const uuid_1 = require("uuid");
|
|
31
31
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
32
|
-
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
33
|
-
const AddressRecord_1 = require("./AddressRecord");
|
|
34
|
-
const NoteRecord_1 = require("./NoteRecord");
|
|
35
|
-
const LeadRecord_1 = require("./LeadRecord");
|
|
36
|
-
const FileRecord_1 = require("./FileRecord");
|
|
37
|
-
const OrderRecord_1 = require("./OrderRecord");
|
|
38
|
-
const AppointmentRecord_1 = require("./AppointmentRecord");
|
|
39
32
|
/**
|
|
40
33
|
* Builder for action execution with dryRun support
|
|
41
34
|
*
|
|
@@ -146,186 +139,6 @@ class VisitRecord {
|
|
|
146
139
|
get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
|
|
147
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
148
141
|
get record() { return this._record; }
|
|
149
|
-
/**
|
|
150
|
-
* Access linked Address records
|
|
151
|
-
* @remarks Available labels: Address__Visit
|
|
152
|
-
* @throws Error if called on a new (unsaved) record
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* ```typescript
|
|
156
|
-
* // Get all linked Address records
|
|
157
|
-
* const items = await record.addresses.list();
|
|
158
|
-
* const first = await record.addresses.first();
|
|
159
|
-
*
|
|
160
|
-
* // Filter by label
|
|
161
|
-
* const specific = await record.addresses.first({ label: 'Address__Visit' });
|
|
162
|
-
* ```
|
|
163
|
-
*/
|
|
164
|
-
get addresses() {
|
|
165
|
-
var _a;
|
|
166
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
167
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
168
|
-
if (!this._addresses) {
|
|
169
|
-
this._addresses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
170
|
-
sourceEntity: 'CrmModule:Visit',
|
|
171
|
-
targetEntity: 'CrmModule:Address',
|
|
172
|
-
targetModuleName: 'CrmModule',
|
|
173
|
-
targetEntityName: 'Address',
|
|
174
|
-
labels: ['Address__Visit'],
|
|
175
|
-
}, AddressRecord_1.AddressRecord);
|
|
176
|
-
}
|
|
177
|
-
return this._addresses;
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* Access linked Note records
|
|
181
|
-
* @remarks Available labels: Visit__Note
|
|
182
|
-
* @throws Error if called on a new (unsaved) record
|
|
183
|
-
*
|
|
184
|
-
* @example
|
|
185
|
-
* ```typescript
|
|
186
|
-
* // Get all linked Note records
|
|
187
|
-
* const items = await record.notes.list();
|
|
188
|
-
* const first = await record.notes.first();
|
|
189
|
-
*
|
|
190
|
-
* // Filter by label
|
|
191
|
-
* const specific = await record.notes.first({ label: 'Visit__Note' });
|
|
192
|
-
* ```
|
|
193
|
-
*/
|
|
194
|
-
get notes() {
|
|
195
|
-
var _a;
|
|
196
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
197
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
198
|
-
if (!this._notes) {
|
|
199
|
-
this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
200
|
-
sourceEntity: 'CrmModule:Visit',
|
|
201
|
-
targetEntity: 'SupportModule:Note',
|
|
202
|
-
targetModuleName: 'SupportModule',
|
|
203
|
-
targetEntityName: 'Note',
|
|
204
|
-
labels: ['Visit__Note'],
|
|
205
|
-
}, NoteRecord_1.NoteRecord);
|
|
206
|
-
}
|
|
207
|
-
return this._notes;
|
|
208
|
-
}
|
|
209
|
-
/**
|
|
210
|
-
* Access linked Lead records
|
|
211
|
-
* @remarks Available labels: Lead__Visit
|
|
212
|
-
* @throws Error if called on a new (unsaved) record
|
|
213
|
-
*
|
|
214
|
-
* @example
|
|
215
|
-
* ```typescript
|
|
216
|
-
* // Get all linked Lead records
|
|
217
|
-
* const items = await record.leads.list();
|
|
218
|
-
* const first = await record.leads.first();
|
|
219
|
-
*
|
|
220
|
-
* // Filter by label
|
|
221
|
-
* const specific = await record.leads.first({ label: 'Lead__Visit' });
|
|
222
|
-
* ```
|
|
223
|
-
*/
|
|
224
|
-
get leads() {
|
|
225
|
-
var _a;
|
|
226
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
227
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
228
|
-
if (!this._leads) {
|
|
229
|
-
this._leads = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
230
|
-
sourceEntity: 'CrmModule:Visit',
|
|
231
|
-
targetEntity: 'CrmModule:Lead',
|
|
232
|
-
targetModuleName: 'CrmModule',
|
|
233
|
-
targetEntityName: 'Lead',
|
|
234
|
-
labels: ['Lead__Visit'],
|
|
235
|
-
}, LeadRecord_1.LeadRecord);
|
|
236
|
-
}
|
|
237
|
-
return this._leads;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Access linked File records
|
|
241
|
-
* @remarks Available labels: Visit__File
|
|
242
|
-
* @throws Error if called on a new (unsaved) record
|
|
243
|
-
*
|
|
244
|
-
* @example
|
|
245
|
-
* ```typescript
|
|
246
|
-
* // Get all linked File records
|
|
247
|
-
* const items = await record.files.list();
|
|
248
|
-
* const first = await record.files.first();
|
|
249
|
-
*
|
|
250
|
-
* // Filter by label
|
|
251
|
-
* const specific = await record.files.first({ label: 'Visit__File' });
|
|
252
|
-
* ```
|
|
253
|
-
*/
|
|
254
|
-
get files() {
|
|
255
|
-
var _a;
|
|
256
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
257
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
258
|
-
if (!this._files) {
|
|
259
|
-
this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
260
|
-
sourceEntity: 'CrmModule:Visit',
|
|
261
|
-
targetEntity: 'SchemaModule:File',
|
|
262
|
-
targetModuleName: 'SchemaModule',
|
|
263
|
-
targetEntityName: 'File',
|
|
264
|
-
labels: ['Visit__File'],
|
|
265
|
-
}, FileRecord_1.FileRecord);
|
|
266
|
-
}
|
|
267
|
-
return this._files;
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Access linked Order records
|
|
271
|
-
* @remarks Available labels: Order__Visit
|
|
272
|
-
* @throws Error if called on a new (unsaved) record
|
|
273
|
-
*
|
|
274
|
-
* @example
|
|
275
|
-
* ```typescript
|
|
276
|
-
* // Get all linked Order records
|
|
277
|
-
* const items = await record.orders.list();
|
|
278
|
-
* const first = await record.orders.first();
|
|
279
|
-
*
|
|
280
|
-
* // Filter by label
|
|
281
|
-
* const specific = await record.orders.first({ label: 'Order__Visit' });
|
|
282
|
-
* ```
|
|
283
|
-
*/
|
|
284
|
-
get orders() {
|
|
285
|
-
var _a;
|
|
286
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
287
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
288
|
-
if (!this._orders) {
|
|
289
|
-
this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
290
|
-
sourceEntity: 'CrmModule:Visit',
|
|
291
|
-
targetEntity: 'OrderModule:Order',
|
|
292
|
-
targetModuleName: 'OrderModule',
|
|
293
|
-
targetEntityName: 'Order',
|
|
294
|
-
labels: ['Order__Visit'],
|
|
295
|
-
}, OrderRecord_1.OrderRecord);
|
|
296
|
-
}
|
|
297
|
-
return this._orders;
|
|
298
|
-
}
|
|
299
|
-
/**
|
|
300
|
-
* Access linked Appointment records
|
|
301
|
-
* @remarks Available labels: Visit__Appointment
|
|
302
|
-
* @throws Error if called on a new (unsaved) record
|
|
303
|
-
*
|
|
304
|
-
* @example
|
|
305
|
-
* ```typescript
|
|
306
|
-
* // Get all linked Appointment records
|
|
307
|
-
* const items = await record.appointments.list();
|
|
308
|
-
* const first = await record.appointments.first();
|
|
309
|
-
*
|
|
310
|
-
* // Filter by label
|
|
311
|
-
* const specific = await record.appointments.first({ label: 'Visit__Appointment' });
|
|
312
|
-
* ```
|
|
313
|
-
*/
|
|
314
|
-
get appointments() {
|
|
315
|
-
var _a;
|
|
316
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
317
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
318
|
-
if (!this._appointments) {
|
|
319
|
-
this._appointments = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
320
|
-
sourceEntity: 'CrmModule:Visit',
|
|
321
|
-
targetEntity: 'CrmModule:Appointment',
|
|
322
|
-
targetModuleName: 'CrmModule',
|
|
323
|
-
targetEntityName: 'Appointment',
|
|
324
|
-
labels: ['Visit__Appointment'],
|
|
325
|
-
}, AppointmentRecord_1.AppointmentRecord);
|
|
326
|
-
}
|
|
327
|
-
return this._appointments;
|
|
328
|
-
}
|
|
329
142
|
// ============================================
|
|
330
143
|
// LINK MANAGEMENT
|
|
331
144
|
// ============================================
|
|
@@ -434,21 +247,6 @@ class VisitRecord {
|
|
|
434
247
|
}
|
|
435
248
|
}
|
|
436
249
|
exports.VisitRecord = VisitRecord;
|
|
437
|
-
// ============================================
|
|
438
|
-
// TYPED LINK ACCESSORS
|
|
439
|
-
// ============================================
|
|
440
|
-
/** Valid labels for Address associations */
|
|
441
|
-
VisitRecord.addressesLabels = ['Address__Visit'];
|
|
442
|
-
/** Valid labels for Note associations */
|
|
443
|
-
VisitRecord.notesLabels = ['Visit__Note'];
|
|
444
|
-
/** Valid labels for Lead associations */
|
|
445
|
-
VisitRecord.leadsLabels = ['Lead__Visit'];
|
|
446
|
-
/** Valid labels for File associations */
|
|
447
|
-
VisitRecord.filesLabels = ['Visit__File'];
|
|
448
|
-
/** Valid labels for Order associations */
|
|
449
|
-
VisitRecord.ordersLabels = ['Order__Visit'];
|
|
450
|
-
/** Valid labels for Appointment associations */
|
|
451
|
-
VisitRecord.appointmentsLabels = ['Visit__Appointment'];
|
|
452
250
|
/** Type guard to check if an object is a VisitRecord */
|
|
453
251
|
function isVisitRecord(obj) {
|
|
454
252
|
return obj instanceof VisitRecord;
|
|
@@ -19,12 +19,10 @@ 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 { VoiceConfigurationProperties } from '../entities-v2/VoiceConfiguration';
|
|
24
23
|
import { CreateRecontractVoiceConfigurationProperties } from '../actions-v2/CreateRecontractVoiceConfigurationDto';
|
|
25
24
|
import { CreateVoiceConfigurationProperties } from '../actions-v2/CreateVoiceConfigurationDto';
|
|
26
25
|
import { UpdateVoiceConfigurationProperties } from '../actions-v2/UpdateVoiceConfigurationDto';
|
|
27
|
-
import { OrderItemRecord } from './OrderItemRecord';
|
|
28
26
|
/**
|
|
29
27
|
* Builder for action execution with dryRun support
|
|
30
28
|
*
|
|
@@ -88,7 +86,6 @@ export declare class VoiceConfigurationRecord<TProps = VoiceConfigurationPropert
|
|
|
88
86
|
private _provider;
|
|
89
87
|
private _pendingLinks;
|
|
90
88
|
private _preGeneratedId;
|
|
91
|
-
private _orderItems?;
|
|
92
89
|
/**
|
|
93
90
|
* Create a record wrapper.
|
|
94
91
|
* @param record - The underlying record, or null for create operations
|
|
@@ -114,24 +111,6 @@ export declare class VoiceConfigurationRecord<TProps = VoiceConfigurationPropert
|
|
|
114
111
|
get groups(): string[];
|
|
115
112
|
/** Access the underlying OdinRecord (null for new records) */
|
|
116
113
|
get record(): OdinRecord<TProps> | null;
|
|
117
|
-
/** Valid labels for OrderItem associations */
|
|
118
|
-
static readonly orderItemsLabels: readonly ["OrderItem__VoiceConfiguration"];
|
|
119
|
-
/**
|
|
120
|
-
* Access linked OrderItem records
|
|
121
|
-
* @remarks Available labels: OrderItem__VoiceConfiguration
|
|
122
|
-
* @throws Error if called on a new (unsaved) record
|
|
123
|
-
*
|
|
124
|
-
* @example
|
|
125
|
-
* ```typescript
|
|
126
|
-
* // Get all linked OrderItem records
|
|
127
|
-
* const items = await record.orderItems.list();
|
|
128
|
-
* const first = await record.orderItems.first();
|
|
129
|
-
*
|
|
130
|
-
* // Filter by label
|
|
131
|
-
* const specific = await record.orderItems.first({ label: 'OrderItem__VoiceConfiguration' });
|
|
132
|
-
* ```
|
|
133
|
-
*/
|
|
134
|
-
get orderItems(): RecordLinkManager<OrderItemRecord, typeof VoiceConfigurationRecord['orderItemsLabels'][number]>;
|
|
135
114
|
/**
|
|
136
115
|
* Queue a link to be created with the next action.
|
|
137
116
|
* Works for both create and update actions.
|
|
@@ -29,8 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = void 0;
|
|
30
30
|
const uuid_1 = require("uuid");
|
|
31
31
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
32
|
-
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
33
|
-
const OrderItemRecord_1 = require("./OrderItemRecord");
|
|
34
32
|
/**
|
|
35
33
|
* Builder for action execution with dryRun support
|
|
36
34
|
*
|
|
@@ -141,36 +139,6 @@ class VoiceConfigurationRecord {
|
|
|
141
139
|
get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
|
|
142
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
143
141
|
get record() { return this._record; }
|
|
144
|
-
/**
|
|
145
|
-
* Access linked OrderItem records
|
|
146
|
-
* @remarks Available labels: OrderItem__VoiceConfiguration
|
|
147
|
-
* @throws Error if called on a new (unsaved) record
|
|
148
|
-
*
|
|
149
|
-
* @example
|
|
150
|
-
* ```typescript
|
|
151
|
-
* // Get all linked OrderItem records
|
|
152
|
-
* const items = await record.orderItems.list();
|
|
153
|
-
* const first = await record.orderItems.first();
|
|
154
|
-
*
|
|
155
|
-
* // Filter by label
|
|
156
|
-
* const specific = await record.orderItems.first({ label: 'OrderItem__VoiceConfiguration' });
|
|
157
|
-
* ```
|
|
158
|
-
*/
|
|
159
|
-
get orderItems() {
|
|
160
|
-
var _a;
|
|
161
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
162
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
163
|
-
if (!this._orderItems) {
|
|
164
|
-
this._orderItems = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
165
|
-
sourceEntity: 'ServiceModule:VoiceConfiguration',
|
|
166
|
-
targetEntity: 'OrderModule:OrderItem',
|
|
167
|
-
targetModuleName: 'OrderModule',
|
|
168
|
-
targetEntityName: 'OrderItem',
|
|
169
|
-
labels: ['OrderItem__VoiceConfiguration'],
|
|
170
|
-
}, OrderItemRecord_1.OrderItemRecord);
|
|
171
|
-
}
|
|
172
|
-
return this._orderItems;
|
|
173
|
-
}
|
|
174
142
|
// ============================================
|
|
175
143
|
// LINK MANAGEMENT
|
|
176
144
|
// ============================================
|
|
@@ -323,11 +291,6 @@ class VoiceConfigurationRecord {
|
|
|
323
291
|
}
|
|
324
292
|
}
|
|
325
293
|
exports.VoiceConfigurationRecord = VoiceConfigurationRecord;
|
|
326
|
-
// ============================================
|
|
327
|
-
// TYPED LINK ACCESSORS
|
|
328
|
-
// ============================================
|
|
329
|
-
/** Valid labels for OrderItem associations */
|
|
330
|
-
VoiceConfigurationRecord.orderItemsLabels = ['OrderItem__VoiceConfiguration'];
|
|
331
294
|
/** Type guard to check if an object is a VoiceConfigurationRecord */
|
|
332
295
|
function isVoiceConfigurationRecord(obj) {
|
|
333
296
|
return obj instanceof VoiceConfigurationRecord;
|
|
@@ -13,22 +13,14 @@
|
|
|
13
13
|
* await record.createWayleaveAudit({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: OUTCOME_FORM
|
|
17
|
-
*
|
|
18
16
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
17
|
*/
|
|
20
18
|
import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
|
|
21
19
|
import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
|
|
22
20
|
import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
|
|
23
21
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
|
-
import {
|
|
25
|
-
import { WayleaveAuditProperties, OutcomeFormWayleaveAuditProperties } from '../entities-v2/WayleaveAudit';
|
|
22
|
+
import { WayleaveAuditProperties } from '../entities-v2/WayleaveAudit';
|
|
26
23
|
import { WayleaveAuditCreateProperties } from '../actions-v2/CreateWayleaveWorkOrderFlowDto';
|
|
27
|
-
import { NoteRecord } from './NoteRecord';
|
|
28
|
-
import { FileRecord } from './FileRecord';
|
|
29
|
-
import { WorkOrderRecord } from './WorkOrderRecord';
|
|
30
|
-
/** Valid entity types for WayleaveAudit */
|
|
31
|
-
export declare type WayleaveAuditType = 'OUTCOME_FORM';
|
|
32
24
|
/**
|
|
33
25
|
* Builder for action execution with dryRun support
|
|
34
26
|
*
|
|
@@ -92,9 +84,6 @@ export declare class WayleaveAuditRecord<TProps = WayleaveAuditProperties> {
|
|
|
92
84
|
private _provider;
|
|
93
85
|
private _pendingLinks;
|
|
94
86
|
private _preGeneratedId;
|
|
95
|
-
private _notes?;
|
|
96
|
-
private _files?;
|
|
97
|
-
private _workOrders?;
|
|
98
87
|
/**
|
|
99
88
|
* Create a record wrapper.
|
|
100
89
|
* @param record - The underlying record, or null for create operations
|
|
@@ -107,7 +96,7 @@ export declare class WayleaveAuditRecord<TProps = WayleaveAuditProperties> {
|
|
|
107
96
|
/** Record ID - always available (pre-generated for new records) */
|
|
108
97
|
get id(): string;
|
|
109
98
|
get entity(): string;
|
|
110
|
-
get type():
|
|
99
|
+
get type(): string | undefined;
|
|
111
100
|
/** Record properties - empty object for new (unsaved) records */
|
|
112
101
|
get properties(): TProps;
|
|
113
102
|
get title(): string | undefined;
|
|
@@ -120,76 +109,6 @@ export declare class WayleaveAuditRecord<TProps = WayleaveAuditProperties> {
|
|
|
120
109
|
get groups(): string[];
|
|
121
110
|
/** Access the underlying OdinRecord (null for new records) */
|
|
122
111
|
get record(): OdinRecord<TProps> | null;
|
|
123
|
-
/**
|
|
124
|
-
* Type guard: check if this record is of type OUTCOME_FORM
|
|
125
|
-
*
|
|
126
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
127
|
-
* giving you access to OUTCOME_FORM-specific properties.
|
|
128
|
-
*
|
|
129
|
-
* @example
|
|
130
|
-
* ```typescript
|
|
131
|
-
* if (record.isOutcomeForm()) {
|
|
132
|
-
* // TypeScript knows record.properties is OutcomeFormWayleaveAuditProperties
|
|
133
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
134
|
-
* }
|
|
135
|
-
* ```
|
|
136
|
-
* @remarks outcome form
|
|
137
|
-
*/
|
|
138
|
-
isOutcomeForm(): this is WayleaveAuditRecord<OutcomeFormWayleaveAuditProperties>;
|
|
139
|
-
/** Valid labels for Note associations */
|
|
140
|
-
static readonly notesLabels: readonly ["WayleaveAudit_Note"];
|
|
141
|
-
/**
|
|
142
|
-
* Access linked Note records
|
|
143
|
-
* @remarks Available labels: WayleaveAudit_Note
|
|
144
|
-
* @throws Error if called on a new (unsaved) record
|
|
145
|
-
*
|
|
146
|
-
* @example
|
|
147
|
-
* ```typescript
|
|
148
|
-
* // Get all linked Note records
|
|
149
|
-
* const items = await record.notes.list();
|
|
150
|
-
* const first = await record.notes.first();
|
|
151
|
-
*
|
|
152
|
-
* // Filter by label
|
|
153
|
-
* const specific = await record.notes.first({ label: 'WayleaveAudit_Note' });
|
|
154
|
-
* ```
|
|
155
|
-
*/
|
|
156
|
-
get notes(): RecordLinkManager<NoteRecord, typeof WayleaveAuditRecord['notesLabels'][number]>;
|
|
157
|
-
/** Valid labels for File associations */
|
|
158
|
-
static readonly filesLabels: readonly ["WayleaveAudit_File"];
|
|
159
|
-
/**
|
|
160
|
-
* Access linked File records
|
|
161
|
-
* @remarks Available labels: WayleaveAudit_File
|
|
162
|
-
* @throws Error if called on a new (unsaved) record
|
|
163
|
-
*
|
|
164
|
-
* @example
|
|
165
|
-
* ```typescript
|
|
166
|
-
* // Get all linked File records
|
|
167
|
-
* const items = await record.files.list();
|
|
168
|
-
* const first = await record.files.first();
|
|
169
|
-
*
|
|
170
|
-
* // Filter by label
|
|
171
|
-
* const specific = await record.files.first({ label: 'WayleaveAudit_File' });
|
|
172
|
-
* ```
|
|
173
|
-
*/
|
|
174
|
-
get files(): RecordLinkManager<FileRecord, typeof WayleaveAuditRecord['filesLabels'][number]>;
|
|
175
|
-
/** Valid labels for WorkOrder associations */
|
|
176
|
-
static readonly workOrdersLabels: readonly ["WorkOrder_WayleaveAudit"];
|
|
177
|
-
/**
|
|
178
|
-
* Access linked WorkOrder records
|
|
179
|
-
* @remarks Available labels: WorkOrder_WayleaveAudit
|
|
180
|
-
* @throws Error if called on a new (unsaved) record
|
|
181
|
-
*
|
|
182
|
-
* @example
|
|
183
|
-
* ```typescript
|
|
184
|
-
* // Get all linked WorkOrder records
|
|
185
|
-
* const items = await record.workOrders.list();
|
|
186
|
-
* const first = await record.workOrders.first();
|
|
187
|
-
*
|
|
188
|
-
* // Filter by label
|
|
189
|
-
* const specific = await record.workOrders.first({ label: 'WorkOrder_WayleaveAudit' });
|
|
190
|
-
* ```
|
|
191
|
-
*/
|
|
192
|
-
get workOrders(): RecordLinkManager<WorkOrderRecord, typeof WayleaveAuditRecord['workOrdersLabels'][number]>;
|
|
193
112
|
/**
|
|
194
113
|
* Queue a link to be created with the next action.
|
|
195
114
|
* Works for both create and update actions.
|