@d19n/youfibre-odin-sdk 2.0.30 → 2.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/ContactIdentityAccessor.d.ts +111 -0
- package/dist/accessors-v2/ContactIdentityAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +5 -3
- package/dist/actions-v2/BillingAdjustmentCreateDto.d.ts +8 -1
- package/dist/actions-v2/CompleteChurnRequestDto.d.ts +15 -5
- package/dist/actions-v2/CompleteChurnRequestFlowDto.d.ts +15 -5
- package/dist/actions-v2/CreateAuddisPgReportAllocationDto.d.ts +88 -0
- package/dist/actions-v2/CreateAuddisPgReportAllocationDto.js +59 -0
- package/dist/actions-v2/CreateBacsPgReportAllocationDto.d.ts +88 -0
- package/dist/actions-v2/CreateBacsPgReportAllocationDto.js +59 -0
- package/dist/actions-v2/CreateBrskMigrationErrorDto.d.ts +10 -3
- package/dist/actions-v2/CreateBrskMigrationErrorDto.js +11 -4
- package/dist/actions-v2/CreateCaseDto.d.ts +3 -4
- package/dist/actions-v2/CreateCaseFromCasesDto.d.ts +4 -6
- package/dist/actions-v2/CreateCaseFromContactDto.d.ts +3 -4
- package/dist/actions-v2/CreatePgContactDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgPaymentMethodDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgTransactionChargeDto.d.ts +9 -1
- package/dist/actions-v2/CreatePgTransactionRefundDto.d.ts +9 -1
- package/dist/actions-v2/EditCaseFormDto.d.ts +8 -1
- package/dist/actions-v2/MovePgWebhookToSentDto.d.ts +70 -0
- package/dist/actions-v2/MovePgWebhookToSentDto.js +62 -0
- package/dist/actions-v2/UpdateBngProvisionDto.d.ts +0 -14
- package/dist/actions-v2/UpdateContactIdentityDto.d.ts +79 -0
- package/dist/actions-v2/UpdateContactIdentityDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerDeviceOntDto.d.ts +22 -1
- package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.d.ts +77 -0
- package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.js +61 -0
- package/dist/actions-v2/UpdatePaymentMethodDto.d.ts +17 -14
- package/dist/actions-v2/UpdatePaymentMethodDto.js +4 -6
- package/dist/actions-v2/UpdatePgContactDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgPaymentMethodDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgTransactionChargeDto.d.ts +8 -1
- package/dist/actions-v2/UpdatePgTransactionRefundDto.d.ts +8 -1
- package/dist/api-sdk-v2/ContactApi.d.ts +2 -0
- package/dist/api-sdk-v2/ContactApi.js +6 -0
- package/dist/api-sdk-v2/PaymentMethodApi.d.ts +2 -0
- package/dist/api-sdk-v2/PaymentMethodApi.js +6 -0
- package/dist/api-sdk-v2/PaymentMethodRefundApi.d.ts +2 -0
- package/dist/api-sdk-v2/PaymentMethodRefundApi.js +6 -0
- package/dist/api-sdk-v2/PgContactApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgContactApi.js +6 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.d.ts +2 -0
- package/dist/api-sdk-v2/PgPaymentMethodApi.js +6 -0
- package/dist/api-sdk-v2/PgTransactionApi.d.ts +4 -0
- package/dist/api-sdk-v2/PgTransactionApi.js +12 -0
- package/dist/api-sdk-v2/TransactionApi.d.ts +2 -0
- package/dist/api-sdk-v2/TransactionApi.js +6 -0
- package/dist/db-accessors-v2/ContactIdentityDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/ContactIdentityDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +5 -3
- package/dist/db-sdk-v2/ContactDb.d.ts +2 -0
- package/dist/db-sdk-v2/ContactDb.js +6 -0
- package/dist/db-sdk-v2/PaymentMethodDb.d.ts +2 -0
- package/dist/db-sdk-v2/PaymentMethodDb.js +6 -0
- package/dist/db-sdk-v2/PaymentMethodRefundDb.d.ts +2 -0
- package/dist/db-sdk-v2/PaymentMethodRefundDb.js +6 -0
- package/dist/db-sdk-v2/PgContactDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgContactDb.js +6 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.d.ts +2 -0
- package/dist/db-sdk-v2/PgPaymentMethodDb.js +6 -0
- package/dist/db-sdk-v2/PgTransactionDb.d.ts +4 -0
- package/dist/db-sdk-v2/PgTransactionDb.js +12 -0
- package/dist/db-sdk-v2/TransactionDb.d.ts +2 -0
- package/dist/db-sdk-v2/TransactionDb.js +6 -0
- package/dist/entities-v2/BillingAdjustment.d.ts +77 -70
- package/dist/entities-v2/BillingAdjustment.js +35 -33
- package/dist/entities-v2/BngProvision.d.ts +0 -14
- package/dist/entities-v2/BngProvision.js +0 -4
- package/dist/entities-v2/BrskEntityMigrationError.d.ts +14 -14
- package/dist/entities-v2/BrskEntityMigrationError.js +4 -4
- package/dist/entities-v2/Case.d.ts +12 -0
- package/dist/entities-v2/Case.js +2 -0
- package/dist/entities-v2/ChurnRequest.d.ts +8 -1
- package/dist/entities-v2/ChurnRequest.js +2 -0
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +4 -4
- package/dist/entities-v2/Contact.d.ts +3 -0
- package/dist/entities-v2/Conversation.d.ts +0 -2
- package/dist/entities-v2/Conversation.js +0 -2
- package/dist/entities-v2/CustomerDeviceOnt.d.ts +8 -1
- package/dist/entities-v2/CustomerDeviceOnt.js +2 -0
- package/dist/entities-v2/Order.d.ts +21 -0
- package/dist/entities-v2/Order.js +6 -0
- package/dist/entities-v2/PaymentMethod.d.ts +6 -1
- package/dist/entities-v2/PaymentMethod.js +2 -0
- package/dist/entities-v2/PaymentMethodRefund.d.ts +3 -0
- package/dist/entities-v2/PgContact.d.ts +14 -0
- package/dist/entities-v2/PgContact.js +7 -1
- package/dist/entities-v2/PgFileAllocation.d.ts +17 -17
- package/dist/entities-v2/PgFileAllocation.js +2 -2
- package/dist/entities-v2/PgPaymentMethod.d.ts +14 -0
- package/dist/entities-v2/PgPaymentMethod.js +7 -1
- package/dist/entities-v2/PgTransaction.d.ts +48 -0
- package/dist/entities-v2/PgTransaction.js +13 -1
- package/dist/entities-v2/PgWebhook.d.ts +19 -3
- package/dist/entities-v2/PgWebhook.js +17 -1
- package/dist/entities-v2/PriceBook.d.ts +8 -8
- package/dist/entities-v2/PriceBook.js +2 -2
- package/dist/entities-v2/Referral.d.ts +1 -1
- package/dist/entities-v2/Referral.js +1 -1
- package/dist/entities-v2/Reward.d.ts +1 -1
- package/dist/entities-v2/Reward.js +1 -1
- package/dist/entities-v2/Service.d.ts +28 -20
- package/dist/entities-v2/Service.js +23 -15
- package/dist/entities-v2/Transaction.d.ts +6 -1
- package/dist/entities-v2/Transaction.js +2 -0
- package/dist/entities-v2/VoiceConfiguration.d.ts +8 -1
- package/dist/entities-v2/VoiceConfiguration.js +2 -0
- package/dist/entities-v2/WorkOrder.d.ts +3 -2
- package/dist/entities-v2/WorkOrder.js +3 -2
- package/dist/records-v2/AccountCreditRecord.d.ts +1 -82
- package/dist/records-v2/AccountCreditRecord.js +0 -124
- package/dist/records-v2/AccountRecord.d.ts +2 -306
- package/dist/records-v2/AccountRecord.js +0 -451
- package/dist/records-v2/ActivityLogRecord.d.ts +1 -122
- package/dist/records-v2/ActivityLogRecord.js +0 -190
- package/dist/records-v2/ActivityRecord.d.ts +2 -255
- package/dist/records-v2/ActivityRecord.js +0 -387
- package/dist/records-v2/AddressRecord.d.ts +0 -321
- package/dist/records-v2/AddressRecord.js +0 -532
- package/dist/records-v2/AffiliateCodeRecord.d.ts +1 -102
- package/dist/records-v2/AffiliateCodeRecord.js +0 -157
- package/dist/records-v2/AppointmentRecord.d.ts +0 -141
- package/dist/records-v2/AppointmentRecord.js +0 -235
- package/dist/records-v2/BillingAdjustmentRecord.d.ts +0 -81
- package/dist/records-v2/BillingAdjustmentRecord.js +0 -136
- package/dist/records-v2/BillingRequestRecord.d.ts +2 -178
- package/dist/records-v2/BillingRequestRecord.js +0 -271
- package/dist/records-v2/BlockageA55Record.d.ts +2 -103
- package/dist/records-v2/BlockageA55Record.js +0 -157
- package/dist/records-v2/BngProvisionRecord.d.ts +1 -42
- package/dist/records-v2/BngProvisionRecord.js +0 -58
- package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +3 -23
- package/dist/records-v2/BrskEntityMigrationErrorRecord.js +3 -24
- package/dist/records-v2/CallEventRecord.d.ts +1 -82
- package/dist/records-v2/CallEventRecord.js +0 -124
- package/dist/records-v2/CallLegRecord.d.ts +1 -82
- package/dist/records-v2/CallLegRecord.js +0 -124
- package/dist/records-v2/CallRecord.d.ts +1 -202
- package/dist/records-v2/CallRecord.js +0 -322
- package/dist/records-v2/CallTransferRecord.d.ts +1 -102
- package/dist/records-v2/CallTransferRecord.js +0 -157
- package/dist/records-v2/CampaignRecord.d.ts +2 -83
- package/dist/records-v2/CampaignRecord.js +0 -124
- package/dist/records-v2/CaseRecord.d.ts +2 -398
- package/dist/records-v2/CaseRecord.js +0 -634
- package/dist/records-v2/ChangeReasonRecord.d.ts +2 -171
- package/dist/records-v2/ChangeReasonRecord.js +0 -238
- package/dist/records-v2/ChurnRequestRecord.d.ts +1 -62
- package/dist/records-v2/ChurnRequestRecord.js +0 -91
- package/dist/records-v2/ContactIdentityRecord.d.ts +163 -0
- package/dist/records-v2/ContactIdentityRecord.js +223 -0
- package/dist/records-v2/ContactRecord.d.ts +0 -540
- package/dist/records-v2/ContactRecord.js +0 -894
- package/dist/records-v2/ContractBuyOutRecord.d.ts +1 -162
- package/dist/records-v2/ContractBuyOutRecord.js +0 -256
- package/dist/records-v2/ConversationRecord.d.ts +1 -82
- package/dist/records-v2/ConversationRecord.js +0 -124
- package/dist/records-v2/CreditNoteRecord.d.ts +0 -101
- package/dist/records-v2/CreditNoteRecord.js +0 -169
- package/dist/records-v2/CrmDatasetRecord.d.ts +2 -191
- package/dist/records-v2/CrmDatasetRecord.js +0 -271
- package/dist/records-v2/CustomerDeviceAtaRecord.d.ts +0 -21
- package/dist/records-v2/CustomerDeviceAtaRecord.js +0 -37
- package/dist/records-v2/CustomerDeviceConfigurationRecord.d.ts +1 -62
- package/dist/records-v2/CustomerDeviceConfigurationRecord.js +0 -91
- package/dist/records-v2/CustomerDeviceOntRecord.d.ts +0 -181
- package/dist/records-v2/CustomerDeviceOntRecord.js +0 -301
- package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +0 -141
- package/dist/records-v2/CustomerDeviceRouterRecord.js +0 -235
- package/dist/records-v2/CustomerPhonePortingRecord.d.ts +0 -21
- package/dist/records-v2/CustomerPhonePortingRecord.js +0 -37
- package/dist/records-v2/DiscountRecord.d.ts +0 -121
- package/dist/records-v2/DiscountRecord.js +0 -202
- package/dist/records-v2/EmailRecord.d.ts +2 -230
- package/dist/records-v2/EmailRecord.js +0 -336
- package/dist/records-v2/EmailSenderRecord.d.ts +1 -42
- package/dist/records-v2/EmailSenderRecord.js +0 -58
- package/dist/records-v2/EmailTemplateRecord.d.ts +1 -21
- package/dist/records-v2/EmailTemplateRecord.js +0 -21
- package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +2 -135
- package/dist/records-v2/FieldServiceDispatchedProductRecord.js +0 -189
- package/dist/records-v2/FieldServiceProductRecord.d.ts +2 -115
- package/dist/records-v2/FieldServiceProductRecord.js +0 -156
- package/dist/records-v2/FileRecord.d.ts +2 -1211
- package/dist/records-v2/FileRecord.js +0 -1902
- package/dist/records-v2/ImpersonationTrackerRecord.d.ts +1 -62
- package/dist/records-v2/ImpersonationTrackerRecord.js +0 -91
- package/dist/records-v2/InternalInstallAuditRecord.d.ts +2 -83
- package/dist/records-v2/InternalInstallAuditRecord.js +0 -124
- package/dist/records-v2/InvoiceItemRecord.d.ts +0 -40
- package/dist/records-v2/InvoiceItemRecord.js +0 -69
- package/dist/records-v2/InvoiceRecord.d.ts +2 -399
- package/dist/records-v2/InvoiceRecord.js +0 -635
- package/dist/records-v2/KnowledgeArticleRecord.d.ts +2 -98
- package/dist/records-v2/KnowledgeArticleRecord.js +0 -139
- package/dist/records-v2/LeadRecord.d.ts +0 -261
- package/dist/records-v2/LeadRecord.js +0 -433
- package/dist/records-v2/MessageRecord.d.ts +2 -131
- package/dist/records-v2/MessageRecord.js +0 -172
- package/dist/records-v2/NetworkDeviceRecord.d.ts +2 -43
- package/dist/records-v2/NetworkDeviceRecord.js +0 -58
- package/dist/records-v2/NoteRecord.d.ts +1 -1121
- package/dist/records-v2/NoteRecord.js +0 -1839
- package/dist/records-v2/OfferRecord.d.ts +2 -154
- package/dist/records-v2/OfferRecord.js +0 -221
- package/dist/records-v2/OhAuditOfInstallationRecord.d.ts +2 -83
- package/dist/records-v2/OhAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/OhExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhExternalAuditRecord.js +0 -124
- package/dist/records-v2/OhInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInProgressAuditRecord.js +0 -124
- package/dist/records-v2/OhInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhInstallationAuditRecord.js +0 -124
- package/dist/records-v2/OhRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/OhRetroAuditRecord.js +0 -124
- package/dist/records-v2/OneTouchSwitchRecord.d.ts +30 -255
- package/dist/records-v2/OneTouchSwitchRecord.js +37 -387
- package/dist/records-v2/OntReplacementApprovalRecord.d.ts +1 -62
- package/dist/records-v2/OntReplacementApprovalRecord.js +0 -91
- package/dist/records-v2/OrderCheckRecord.d.ts +0 -21
- package/dist/records-v2/OrderCheckRecord.js +0 -37
- package/dist/records-v2/OrderItemRecord.d.ts +0 -300
- package/dist/records-v2/OrderItemRecord.js +0 -498
- package/dist/records-v2/OrderKciRecord.d.ts +1 -42
- package/dist/records-v2/OrderKciRecord.js +0 -58
- package/dist/records-v2/OrderRecord.d.ts +0 -620
- package/dist/records-v2/OrderRecord.js +0 -1026
- package/dist/records-v2/OutageRecord.d.ts +1 -42
- package/dist/records-v2/OutageRecord.js +0 -58
- package/dist/records-v2/OverlayRealA55Record.d.ts +2 -83
- package/dist/records-v2/OverlayRealA55Record.js +0 -124
- package/dist/records-v2/PICRequestRecord.d.ts +1 -62
- package/dist/records-v2/PICRequestRecord.js +0 -91
- package/dist/records-v2/PaymentMethodRecord.d.ts +7 -127
- package/dist/records-v2/PaymentMethodRecord.js +15 -209
- package/dist/records-v2/PaymentMethodRefundRecord.d.ts +0 -181
- package/dist/records-v2/PaymentMethodRefundRecord.js +0 -301
- package/dist/records-v2/PaymentRecord.d.ts +1 -82
- package/dist/records-v2/PaymentRecord.js +0 -124
- package/dist/records-v2/PermissionToFailRecord.d.ts +0 -61
- package/dist/records-v2/PermissionToFailRecord.js +0 -103
- package/dist/records-v2/PgAccountValidationRecord.d.ts +1 -21
- package/dist/records-v2/PgAccountValidationRecord.js +0 -21
- package/dist/records-v2/PgContactRecord.d.ts +1 -62
- package/dist/records-v2/PgContactRecord.js +0 -91
- package/dist/records-v2/PgDirectDebitFileRecord.d.ts +2 -95
- package/dist/records-v2/PgDirectDebitFileRecord.js +0 -123
- package/dist/records-v2/PgDisputeRecord.d.ts +1 -62
- package/dist/records-v2/PgDisputeRecord.js +0 -91
- package/dist/records-v2/PgFileAllocationRecord.d.ts +58 -140
- package/dist/records-v2/PgFileAllocationRecord.js +72 -185
- package/dist/records-v2/PgLogRecord.d.ts +1 -21
- package/dist/records-v2/PgLogRecord.js +0 -21
- package/dist/records-v2/PgPaymentMethodRecord.d.ts +1 -102
- package/dist/records-v2/PgPaymentMethodRecord.js +0 -157
- package/dist/records-v2/PgSortCodeSubstitutionRecord.d.ts +1 -21
- package/dist/records-v2/PgSortCodeSubstitutionRecord.js +0 -21
- package/dist/records-v2/PgTransactionRecord.d.ts +2 -135
- package/dist/records-v2/PgTransactionRecord.js +0 -189
- package/dist/records-v2/PgVocalinkRecord.d.ts +1 -21
- package/dist/records-v2/PgVocalinkRecord.js +0 -21
- package/dist/records-v2/PgWebhookAttemptRecord.d.ts +1 -42
- package/dist/records-v2/PgWebhookAttemptRecord.js +0 -58
- package/dist/records-v2/PgWebhookRecord.d.ts +26 -122
- package/dist/records-v2/PgWebhookRecord.js +29 -190
- package/dist/records-v2/PhoneNumberRecord.d.ts +0 -41
- package/dist/records-v2/PhoneNumberRecord.js +0 -70
- package/dist/records-v2/PriceBookRecord.d.ts +0 -21
- package/dist/records-v2/PriceBookRecord.js +0 -37
- package/dist/records-v2/ProductRecord.d.ts +2 -258
- package/dist/records-v2/ProductRecord.js +0 -351
- package/dist/records-v2/PushNotificationRecord.d.ts +1 -162
- package/dist/records-v2/PushNotificationRecord.js +0 -256
- package/dist/records-v2/ReferralRecord.d.ts +2 -143
- package/dist/records-v2/ReferralRecord.js +0 -223
- package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/RemediationOutcomeFormRecord.js +0 -124
- package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +2 -103
- package/dist/records-v2/RemediationRequiredReasonRecord.js +0 -157
- package/dist/records-v2/ReturnsRecord.d.ts +1 -62
- package/dist/records-v2/ReturnsRecord.js +0 -91
- package/dist/records-v2/RewardRecord.d.ts +2 -123
- package/dist/records-v2/RewardRecord.js +0 -190
- package/dist/records-v2/SalesTerritoryRecord.d.ts +2 -79
- package/dist/records-v2/SalesTerritoryRecord.js +0 -107
- package/dist/records-v2/ScheduleSlotRecord.d.ts +1 -42
- package/dist/records-v2/ScheduleSlotRecord.js +0 -58
- package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +2 -287
- package/dist/records-v2/ServiceAppointmentConfigRecord.js +0 -367
- package/dist/records-v2/ServiceAppointmentRecord.d.ts +0 -81
- package/dist/records-v2/ServiceAppointmentRecord.js +0 -136
- package/dist/records-v2/ServiceRecord.d.ts +0 -40
- package/dist/records-v2/ServiceRecord.js +0 -69
- package/dist/records-v2/ServiceVisitAuditRecord.d.ts +2 -83
- package/dist/records-v2/ServiceVisitAuditRecord.js +0 -124
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +2 -83
- package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +0 -124
- package/dist/records-v2/SmsMessageRecord.d.ts +2 -175
- package/dist/records-v2/SmsMessageRecord.js +0 -255
- package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +2 -83
- package/dist/records-v2/SweeperMaintenanceAuditRecord.js +0 -124
- package/dist/records-v2/TeamRecord.d.ts +0 -101
- package/dist/records-v2/TeamRecord.js +0 -169
- package/dist/records-v2/TestEntityForVisualBuilderRecord.d.ts +2 -115
- package/dist/records-v2/TestEntityForVisualBuilderRecord.js +0 -156
- package/dist/records-v2/TimeSlotRecord.d.ts +0 -21
- package/dist/records-v2/TimeSlotRecord.js +0 -37
- package/dist/records-v2/TransactionRecord.d.ts +1 -181
- package/dist/records-v2/TransactionRecord.js +0 -288
- package/dist/records-v2/TwilioUserUpdateRecord.d.ts +1 -42
- package/dist/records-v2/TwilioUserUpdateRecord.js +0 -58
- package/dist/records-v2/UgAuditOfInstallationRecord.d.ts +2 -83
- package/dist/records-v2/UgAuditOfInstallationRecord.js +0 -124
- package/dist/records-v2/UgExternalAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgExternalAuditRecord.js +0 -124
- package/dist/records-v2/UgInProgressAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInProgressAuditRecord.js +0 -124
- package/dist/records-v2/UgInstallationAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgInstallationAuditRecord.js +0 -124
- package/dist/records-v2/UgRetroAuditRecord.d.ts +2 -83
- package/dist/records-v2/UgRetroAuditRecord.js +0 -124
- package/dist/records-v2/UserRecord.d.ts +0 -380
- package/dist/records-v2/UserRecord.js +0 -630
- package/dist/records-v2/VisitRecord.d.ts +0 -121
- package/dist/records-v2/VisitRecord.js +0 -202
- package/dist/records-v2/VoiceConfigurationRecord.d.ts +0 -21
- package/dist/records-v2/VoiceConfigurationRecord.js +0 -37
- package/dist/records-v2/WayleaveAuditRecord.d.ts +2 -83
- package/dist/records-v2/WayleaveAuditRecord.js +0 -124
- package/dist/records-v2/WorkOrderRecord.d.ts +2 -1226
- package/dist/records-v2/WorkOrderRecord.js +0 -1865
- package/dist/records-v2/WorkOrderStatusUpdateRecord.d.ts +2 -75
- package/dist/records-v2/WorkOrderStatusUpdateRecord.js +0 -90
- package/dist/records-v2/YfFieldServiceVisitRecord.d.ts +2 -83
- package/dist/records-v2/YfFieldServiceVisitRecord.js +0 -124
- package/dist/records-v2/YfStockAuditRecord.d.ts +2 -103
- package/dist/records-v2/YfStockAuditRecord.js +0 -157
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +4 -1
- package/package.json +1 -1
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.d.ts +0 -85
- package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.js +0 -61
|
@@ -13,28 +13,17 @@
|
|
|
13
13
|
* await record.createCrmDataset({ ... }).execute();
|
|
14
14
|
* ```
|
|
15
15
|
*
|
|
16
|
-
* Entity Types: ADDRESS, CONTACT, DEFAULT, LEAD
|
|
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 { CrmDatasetProperties, AddressCrmDatasetProperties, ContactCrmDatasetProperties, LeadCrmDatasetProperties } from '../entities-v2/CrmDataset';
|
|
22
|
+
import { CrmDatasetProperties } from '../entities-v2/CrmDataset';
|
|
26
23
|
import { AssignOwnerProperties } from '../actions-v2/AssignOwnerDto';
|
|
27
24
|
import { CrmDatasetCreateProperties } from '../actions-v2/CrmDatasetCreateDto';
|
|
28
25
|
import { CrmDatasetDefaultUpdateProperties } from '../actions-v2/CrmDatasetDefaultUpdateDto';
|
|
29
26
|
import { UpdateAddressDataSetProperties } from '../actions-v2/UpdateAddressDataSetDto';
|
|
30
|
-
import { UserRecord } from './UserRecord';
|
|
31
|
-
import { NoteRecord } from './NoteRecord';
|
|
32
|
-
import { LeadRecord } from './LeadRecord';
|
|
33
|
-
import { SalesTerritoryRecord } from './SalesTerritoryRecord';
|
|
34
|
-
import { TeamRecord } from './TeamRecord';
|
|
35
|
-
import { AddressRecord } from './AddressRecord';
|
|
36
|
-
/** Valid entity types for CrmDataset */
|
|
37
|
-
export declare type CrmDatasetType = 'ADDRESS' | 'CONTACT' | 'DEFAULT' | 'LEAD';
|
|
38
27
|
/**
|
|
39
28
|
* Builder for action execution with dryRun support
|
|
40
29
|
*
|
|
@@ -98,12 +87,6 @@ export declare class CrmDatasetRecord<TProps = CrmDatasetProperties> {
|
|
|
98
87
|
private _provider;
|
|
99
88
|
private _pendingLinks;
|
|
100
89
|
private _preGeneratedId;
|
|
101
|
-
private _users?;
|
|
102
|
-
private _notes?;
|
|
103
|
-
private _leads?;
|
|
104
|
-
private _salesTerritories?;
|
|
105
|
-
private _teams?;
|
|
106
|
-
private _addresses?;
|
|
107
90
|
/**
|
|
108
91
|
* Create a record wrapper.
|
|
109
92
|
* @param record - The underlying record, or null for create operations
|
|
@@ -116,7 +99,7 @@ export declare class CrmDatasetRecord<TProps = CrmDatasetProperties> {
|
|
|
116
99
|
/** Record ID - always available (pre-generated for new records) */
|
|
117
100
|
get id(): string;
|
|
118
101
|
get entity(): string;
|
|
119
|
-
get type():
|
|
102
|
+
get type(): string | undefined;
|
|
120
103
|
/** Record properties - empty object for new (unsaved) records */
|
|
121
104
|
get properties(): TProps;
|
|
122
105
|
get title(): string | undefined;
|
|
@@ -129,178 +112,6 @@ export declare class CrmDatasetRecord<TProps = CrmDatasetProperties> {
|
|
|
129
112
|
get groups(): string[];
|
|
130
113
|
/** Access the underlying OdinRecord (null for new records) */
|
|
131
114
|
get record(): OdinRecord<TProps> | null;
|
|
132
|
-
/**
|
|
133
|
-
* Type guard: check if this record is of type ADDRESS
|
|
134
|
-
*
|
|
135
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
136
|
-
* giving you access to ADDRESS-specific properties.
|
|
137
|
-
*
|
|
138
|
-
* @example
|
|
139
|
-
* ```typescript
|
|
140
|
-
* if (record.isAddress()) {
|
|
141
|
-
* // TypeScript knows record.properties is AddressCrmDatasetProperties
|
|
142
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
143
|
-
* }
|
|
144
|
-
* ```
|
|
145
|
-
* @remarks Address data sets
|
|
146
|
-
*/
|
|
147
|
-
isAddress(): this is CrmDatasetRecord<AddressCrmDatasetProperties>;
|
|
148
|
-
/**
|
|
149
|
-
* Type guard: check if this record is of type CONTACT
|
|
150
|
-
*
|
|
151
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
152
|
-
* giving you access to CONTACT-specific properties.
|
|
153
|
-
*
|
|
154
|
-
* @example
|
|
155
|
-
* ```typescript
|
|
156
|
-
* if (record.isContact()) {
|
|
157
|
-
* // TypeScript knows record.properties is ContactCrmDatasetProperties
|
|
158
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
159
|
-
* }
|
|
160
|
-
* ```
|
|
161
|
-
* @remarks Contact datasets
|
|
162
|
-
*/
|
|
163
|
-
isContact(): this is CrmDatasetRecord<ContactCrmDatasetProperties>;
|
|
164
|
-
/**
|
|
165
|
-
* Type guard: check if this record is of type DEFAULT
|
|
166
|
-
*
|
|
167
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
168
|
-
* giving you access to DEFAULT-specific properties.
|
|
169
|
-
*
|
|
170
|
-
* @example
|
|
171
|
-
* ```typescript
|
|
172
|
-
* if (record.isDefault()) {
|
|
173
|
-
* // TypeScript knows record.properties is CrmDatasetProperties
|
|
174
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
175
|
-
* }
|
|
176
|
-
* ```
|
|
177
|
-
* @remarks This is the default record type
|
|
178
|
-
*/
|
|
179
|
-
isDefault(): this is CrmDatasetRecord<CrmDatasetProperties>;
|
|
180
|
-
/**
|
|
181
|
-
* Type guard: check if this record is of type LEAD
|
|
182
|
-
*
|
|
183
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
184
|
-
* giving you access to LEAD-specific properties.
|
|
185
|
-
*
|
|
186
|
-
* @example
|
|
187
|
-
* ```typescript
|
|
188
|
-
* if (record.isLead()) {
|
|
189
|
-
* // TypeScript knows record.properties is LeadCrmDatasetProperties
|
|
190
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
191
|
-
* }
|
|
192
|
-
* ```
|
|
193
|
-
* @remarks Lead DataSets
|
|
194
|
-
*/
|
|
195
|
-
isLead(): this is CrmDatasetRecord<LeadCrmDatasetProperties>;
|
|
196
|
-
/** Valid labels for User associations */
|
|
197
|
-
static readonly usersLabels: readonly ["CrmDataset__User"];
|
|
198
|
-
/**
|
|
199
|
-
* Access linked User records
|
|
200
|
-
* @remarks Available labels: CrmDataset__User
|
|
201
|
-
* @throws Error if called on a new (unsaved) record
|
|
202
|
-
*
|
|
203
|
-
* @example
|
|
204
|
-
* ```typescript
|
|
205
|
-
* // Get all linked User records
|
|
206
|
-
* const items = await record.users.list();
|
|
207
|
-
* const first = await record.users.first();
|
|
208
|
-
*
|
|
209
|
-
* // Filter by label
|
|
210
|
-
* const specific = await record.users.first({ label: 'CrmDataset__User' });
|
|
211
|
-
* ```
|
|
212
|
-
*/
|
|
213
|
-
get users(): RecordLinkManager<UserRecord, typeof CrmDatasetRecord['usersLabels'][number]>;
|
|
214
|
-
/** Valid labels for Note associations */
|
|
215
|
-
static readonly notesLabels: readonly ["CrmDataset__Note"];
|
|
216
|
-
/**
|
|
217
|
-
* Access linked Note records
|
|
218
|
-
* @remarks Available labels: CrmDataset__Note
|
|
219
|
-
* @throws Error if called on a new (unsaved) record
|
|
220
|
-
*
|
|
221
|
-
* @example
|
|
222
|
-
* ```typescript
|
|
223
|
-
* // Get all linked Note records
|
|
224
|
-
* const items = await record.notes.list();
|
|
225
|
-
* const first = await record.notes.first();
|
|
226
|
-
*
|
|
227
|
-
* // Filter by label
|
|
228
|
-
* const specific = await record.notes.first({ label: 'CrmDataset__Note' });
|
|
229
|
-
* ```
|
|
230
|
-
*/
|
|
231
|
-
get notes(): RecordLinkManager<NoteRecord, typeof CrmDatasetRecord['notesLabels'][number]>;
|
|
232
|
-
/** Valid labels for Lead associations */
|
|
233
|
-
static readonly leadsLabels: readonly ["CrmDataset__Lead"];
|
|
234
|
-
/**
|
|
235
|
-
* Access linked Lead records
|
|
236
|
-
* @remarks Available labels: CrmDataset__Lead
|
|
237
|
-
* @throws Error if called on a new (unsaved) record
|
|
238
|
-
*
|
|
239
|
-
* @example
|
|
240
|
-
* ```typescript
|
|
241
|
-
* // Get all linked Lead records
|
|
242
|
-
* const items = await record.leads.list();
|
|
243
|
-
* const first = await record.leads.first();
|
|
244
|
-
*
|
|
245
|
-
* // Filter by label
|
|
246
|
-
* const specific = await record.leads.first({ label: 'CrmDataset__Lead' });
|
|
247
|
-
* ```
|
|
248
|
-
*/
|
|
249
|
-
get leads(): RecordLinkManager<LeadRecord, typeof CrmDatasetRecord['leadsLabels'][number]>;
|
|
250
|
-
/** Valid labels for SalesTerritory associations */
|
|
251
|
-
static readonly salesTerritoriesLabels: readonly ["CrmDataset__SalesTerritory"];
|
|
252
|
-
/**
|
|
253
|
-
* Access linked SalesTerritory records
|
|
254
|
-
* @remarks Available labels: CrmDataset__SalesTerritory
|
|
255
|
-
* @throws Error if called on a new (unsaved) record
|
|
256
|
-
*
|
|
257
|
-
* @example
|
|
258
|
-
* ```typescript
|
|
259
|
-
* // Get all linked SalesTerritory records
|
|
260
|
-
* const items = await record.salesTerritories.list();
|
|
261
|
-
* const first = await record.salesTerritories.first();
|
|
262
|
-
*
|
|
263
|
-
* // Filter by label
|
|
264
|
-
* const specific = await record.salesTerritories.first({ label: 'CrmDataset__SalesTerritory' });
|
|
265
|
-
* ```
|
|
266
|
-
*/
|
|
267
|
-
get salesTerritories(): RecordLinkManager<SalesTerritoryRecord, typeof CrmDatasetRecord['salesTerritoriesLabels'][number]>;
|
|
268
|
-
/** Valid labels for Team associations */
|
|
269
|
-
static readonly teamsLabels: readonly ["CrmDataset_Team"];
|
|
270
|
-
/**
|
|
271
|
-
* Access linked Team records
|
|
272
|
-
* @remarks Available labels: CrmDataset_Team
|
|
273
|
-
* @throws Error if called on a new (unsaved) record
|
|
274
|
-
*
|
|
275
|
-
* @example
|
|
276
|
-
* ```typescript
|
|
277
|
-
* // Get all linked Team records
|
|
278
|
-
* const items = await record.teams.list();
|
|
279
|
-
* const first = await record.teams.first();
|
|
280
|
-
*
|
|
281
|
-
* // Filter by label
|
|
282
|
-
* const specific = await record.teams.first({ label: 'CrmDataset_Team' });
|
|
283
|
-
* ```
|
|
284
|
-
*/
|
|
285
|
-
get teams(): RecordLinkManager<TeamRecord, typeof CrmDatasetRecord['teamsLabels'][number]>;
|
|
286
|
-
/** Valid labels for Address associations */
|
|
287
|
-
static readonly addressesLabels: readonly ["CrmDataset__Address"];
|
|
288
|
-
/**
|
|
289
|
-
* Access linked Address records
|
|
290
|
-
* @remarks Available labels: CrmDataset__Address
|
|
291
|
-
* @throws Error if called on a new (unsaved) record
|
|
292
|
-
*
|
|
293
|
-
* @example
|
|
294
|
-
* ```typescript
|
|
295
|
-
* // Get all linked Address records
|
|
296
|
-
* const items = await record.addresses.list();
|
|
297
|
-
* const first = await record.addresses.first();
|
|
298
|
-
*
|
|
299
|
-
* // Filter by label
|
|
300
|
-
* const specific = await record.addresses.first({ label: 'CrmDataset__Address' });
|
|
301
|
-
* ```
|
|
302
|
-
*/
|
|
303
|
-
get addresses(): RecordLinkManager<AddressRecord, typeof CrmDatasetRecord['addressesLabels'][number]>;
|
|
304
115
|
/**
|
|
305
116
|
* Queue a link to be created with the next action.
|
|
306
117
|
* Works for both create and update actions.
|
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* await record.createCrmDataset({ ... }).execute();
|
|
15
15
|
* ```
|
|
16
16
|
*
|
|
17
|
-
* Entity Types: ADDRESS, CONTACT, DEFAULT, LEAD
|
|
18
|
-
*
|
|
19
17
|
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
18
|
*/
|
|
21
19
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
@@ -31,13 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
29
|
exports.isCrmDatasetRecord = exports.CrmDatasetRecord = void 0;
|
|
32
30
|
const uuid_1 = require("uuid");
|
|
33
31
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
34
|
-
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
35
|
-
const UserRecord_1 = require("./UserRecord");
|
|
36
|
-
const NoteRecord_1 = require("./NoteRecord");
|
|
37
|
-
const LeadRecord_1 = require("./LeadRecord");
|
|
38
|
-
const SalesTerritoryRecord_1 = require("./SalesTerritoryRecord");
|
|
39
|
-
const TeamRecord_1 = require("./TeamRecord");
|
|
40
|
-
const AddressRecord_1 = require("./AddressRecord");
|
|
41
32
|
/**
|
|
42
33
|
* Builder for action execution with dryRun support
|
|
43
34
|
*
|
|
@@ -149,253 +140,6 @@ class CrmDatasetRecord {
|
|
|
149
140
|
/** Access the underlying OdinRecord (null for new records) */
|
|
150
141
|
get record() { return this._record; }
|
|
151
142
|
// ============================================
|
|
152
|
-
// TYPE GUARDS (with TypeScript type predicates)
|
|
153
|
-
// ============================================
|
|
154
|
-
/**
|
|
155
|
-
* Type guard: check if this record is of type ADDRESS
|
|
156
|
-
*
|
|
157
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
158
|
-
* giving you access to ADDRESS-specific properties.
|
|
159
|
-
*
|
|
160
|
-
* @example
|
|
161
|
-
* ```typescript
|
|
162
|
-
* if (record.isAddress()) {
|
|
163
|
-
* // TypeScript knows record.properties is AddressCrmDatasetProperties
|
|
164
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
165
|
-
* }
|
|
166
|
-
* ```
|
|
167
|
-
* @remarks Address data sets
|
|
168
|
-
*/
|
|
169
|
-
isAddress() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'ADDRESS'; }
|
|
170
|
-
/**
|
|
171
|
-
* Type guard: check if this record is of type CONTACT
|
|
172
|
-
*
|
|
173
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
174
|
-
* giving you access to CONTACT-specific properties.
|
|
175
|
-
*
|
|
176
|
-
* @example
|
|
177
|
-
* ```typescript
|
|
178
|
-
* if (record.isContact()) {
|
|
179
|
-
* // TypeScript knows record.properties is ContactCrmDatasetProperties
|
|
180
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
181
|
-
* }
|
|
182
|
-
* ```
|
|
183
|
-
* @remarks Contact datasets
|
|
184
|
-
*/
|
|
185
|
-
isContact() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'CONTACT'; }
|
|
186
|
-
/**
|
|
187
|
-
* Type guard: check if this record is of type DEFAULT
|
|
188
|
-
*
|
|
189
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
190
|
-
* giving you access to DEFAULT-specific properties.
|
|
191
|
-
*
|
|
192
|
-
* @example
|
|
193
|
-
* ```typescript
|
|
194
|
-
* if (record.isDefault()) {
|
|
195
|
-
* // TypeScript knows record.properties is CrmDatasetProperties
|
|
196
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
197
|
-
* }
|
|
198
|
-
* ```
|
|
199
|
-
* @remarks This is the default record type
|
|
200
|
-
*/
|
|
201
|
-
isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
|
|
202
|
-
/**
|
|
203
|
-
* Type guard: check if this record is of type LEAD
|
|
204
|
-
*
|
|
205
|
-
* When this returns true, TypeScript automatically narrows the type,
|
|
206
|
-
* giving you access to LEAD-specific properties.
|
|
207
|
-
*
|
|
208
|
-
* @example
|
|
209
|
-
* ```typescript
|
|
210
|
-
* if (record.isLead()) {
|
|
211
|
-
* // TypeScript knows record.properties is LeadCrmDatasetProperties
|
|
212
|
-
* console.log(record.properties.SomeTypeSpecificField);
|
|
213
|
-
* }
|
|
214
|
-
* ```
|
|
215
|
-
* @remarks Lead DataSets
|
|
216
|
-
*/
|
|
217
|
-
isLead() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'LEAD'; }
|
|
218
|
-
/**
|
|
219
|
-
* Access linked User records
|
|
220
|
-
* @remarks Available labels: CrmDataset__User
|
|
221
|
-
* @throws Error if called on a new (unsaved) record
|
|
222
|
-
*
|
|
223
|
-
* @example
|
|
224
|
-
* ```typescript
|
|
225
|
-
* // Get all linked User records
|
|
226
|
-
* const items = await record.users.list();
|
|
227
|
-
* const first = await record.users.first();
|
|
228
|
-
*
|
|
229
|
-
* // Filter by label
|
|
230
|
-
* const specific = await record.users.first({ label: 'CrmDataset__User' });
|
|
231
|
-
* ```
|
|
232
|
-
*/
|
|
233
|
-
get users() {
|
|
234
|
-
var _a;
|
|
235
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
236
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
237
|
-
if (!this._users) {
|
|
238
|
-
this._users = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
239
|
-
sourceEntity: 'CrmModule:CrmDataset',
|
|
240
|
-
targetEntity: 'IdentityModule:User',
|
|
241
|
-
targetModuleName: 'IdentityModule',
|
|
242
|
-
targetEntityName: 'User',
|
|
243
|
-
labels: ['CrmDataset__User'],
|
|
244
|
-
}, UserRecord_1.UserRecord);
|
|
245
|
-
}
|
|
246
|
-
return this._users;
|
|
247
|
-
}
|
|
248
|
-
/**
|
|
249
|
-
* Access linked Note records
|
|
250
|
-
* @remarks Available labels: CrmDataset__Note
|
|
251
|
-
* @throws Error if called on a new (unsaved) record
|
|
252
|
-
*
|
|
253
|
-
* @example
|
|
254
|
-
* ```typescript
|
|
255
|
-
* // Get all linked Note records
|
|
256
|
-
* const items = await record.notes.list();
|
|
257
|
-
* const first = await record.notes.first();
|
|
258
|
-
*
|
|
259
|
-
* // Filter by label
|
|
260
|
-
* const specific = await record.notes.first({ label: 'CrmDataset__Note' });
|
|
261
|
-
* ```
|
|
262
|
-
*/
|
|
263
|
-
get notes() {
|
|
264
|
-
var _a;
|
|
265
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
266
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
267
|
-
if (!this._notes) {
|
|
268
|
-
this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
269
|
-
sourceEntity: 'CrmModule:CrmDataset',
|
|
270
|
-
targetEntity: 'SupportModule:Note',
|
|
271
|
-
targetModuleName: 'SupportModule',
|
|
272
|
-
targetEntityName: 'Note',
|
|
273
|
-
labels: ['CrmDataset__Note'],
|
|
274
|
-
}, NoteRecord_1.NoteRecord);
|
|
275
|
-
}
|
|
276
|
-
return this._notes;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* Access linked Lead records
|
|
280
|
-
* @remarks Available labels: CrmDataset__Lead
|
|
281
|
-
* @throws Error if called on a new (unsaved) record
|
|
282
|
-
*
|
|
283
|
-
* @example
|
|
284
|
-
* ```typescript
|
|
285
|
-
* // Get all linked Lead records
|
|
286
|
-
* const items = await record.leads.list();
|
|
287
|
-
* const first = await record.leads.first();
|
|
288
|
-
*
|
|
289
|
-
* // Filter by label
|
|
290
|
-
* const specific = await record.leads.first({ label: 'CrmDataset__Lead' });
|
|
291
|
-
* ```
|
|
292
|
-
*/
|
|
293
|
-
get leads() {
|
|
294
|
-
var _a;
|
|
295
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
296
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
297
|
-
if (!this._leads) {
|
|
298
|
-
this._leads = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
299
|
-
sourceEntity: 'CrmModule:CrmDataset',
|
|
300
|
-
targetEntity: 'CrmModule:Lead',
|
|
301
|
-
targetModuleName: 'CrmModule',
|
|
302
|
-
targetEntityName: 'Lead',
|
|
303
|
-
labels: ['CrmDataset__Lead'],
|
|
304
|
-
}, LeadRecord_1.LeadRecord);
|
|
305
|
-
}
|
|
306
|
-
return this._leads;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* Access linked SalesTerritory records
|
|
310
|
-
* @remarks Available labels: CrmDataset__SalesTerritory
|
|
311
|
-
* @throws Error if called on a new (unsaved) record
|
|
312
|
-
*
|
|
313
|
-
* @example
|
|
314
|
-
* ```typescript
|
|
315
|
-
* // Get all linked SalesTerritory records
|
|
316
|
-
* const items = await record.salesTerritories.list();
|
|
317
|
-
* const first = await record.salesTerritories.first();
|
|
318
|
-
*
|
|
319
|
-
* // Filter by label
|
|
320
|
-
* const specific = await record.salesTerritories.first({ label: 'CrmDataset__SalesTerritory' });
|
|
321
|
-
* ```
|
|
322
|
-
*/
|
|
323
|
-
get salesTerritories() {
|
|
324
|
-
var _a;
|
|
325
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
326
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
327
|
-
if (!this._salesTerritories) {
|
|
328
|
-
this._salesTerritories = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
329
|
-
sourceEntity: 'CrmModule:CrmDataset',
|
|
330
|
-
targetEntity: 'CrmModule:SalesTerritory',
|
|
331
|
-
targetModuleName: 'CrmModule',
|
|
332
|
-
targetEntityName: 'SalesTerritory',
|
|
333
|
-
labels: ['CrmDataset__SalesTerritory'],
|
|
334
|
-
}, SalesTerritoryRecord_1.SalesTerritoryRecord);
|
|
335
|
-
}
|
|
336
|
-
return this._salesTerritories;
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* Access linked Team records
|
|
340
|
-
* @remarks Available labels: CrmDataset_Team
|
|
341
|
-
* @throws Error if called on a new (unsaved) record
|
|
342
|
-
*
|
|
343
|
-
* @example
|
|
344
|
-
* ```typescript
|
|
345
|
-
* // Get all linked Team records
|
|
346
|
-
* const items = await record.teams.list();
|
|
347
|
-
* const first = await record.teams.first();
|
|
348
|
-
*
|
|
349
|
-
* // Filter by label
|
|
350
|
-
* const specific = await record.teams.first({ label: 'CrmDataset_Team' });
|
|
351
|
-
* ```
|
|
352
|
-
*/
|
|
353
|
-
get teams() {
|
|
354
|
-
var _a;
|
|
355
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
356
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
357
|
-
if (!this._teams) {
|
|
358
|
-
this._teams = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
359
|
-
sourceEntity: 'CrmModule:CrmDataset',
|
|
360
|
-
targetEntity: 'IdentityModule:Team',
|
|
361
|
-
targetModuleName: 'IdentityModule',
|
|
362
|
-
targetEntityName: 'Team',
|
|
363
|
-
labels: ['CrmDataset_Team'],
|
|
364
|
-
}, TeamRecord_1.TeamRecord);
|
|
365
|
-
}
|
|
366
|
-
return this._teams;
|
|
367
|
-
}
|
|
368
|
-
/**
|
|
369
|
-
* Access linked Address records
|
|
370
|
-
* @remarks Available labels: CrmDataset__Address
|
|
371
|
-
* @throws Error if called on a new (unsaved) record
|
|
372
|
-
*
|
|
373
|
-
* @example
|
|
374
|
-
* ```typescript
|
|
375
|
-
* // Get all linked Address records
|
|
376
|
-
* const items = await record.addresses.list();
|
|
377
|
-
* const first = await record.addresses.first();
|
|
378
|
-
*
|
|
379
|
-
* // Filter by label
|
|
380
|
-
* const specific = await record.addresses.first({ label: 'CrmDataset__Address' });
|
|
381
|
-
* ```
|
|
382
|
-
*/
|
|
383
|
-
get addresses() {
|
|
384
|
-
var _a;
|
|
385
|
-
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
386
|
-
throw new Error('Cannot access links on a new (unsaved) record');
|
|
387
|
-
if (!this._addresses) {
|
|
388
|
-
this._addresses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
389
|
-
sourceEntity: 'CrmModule:CrmDataset',
|
|
390
|
-
targetEntity: 'CrmModule:Address',
|
|
391
|
-
targetModuleName: 'CrmModule',
|
|
392
|
-
targetEntityName: 'Address',
|
|
393
|
-
labels: ['CrmDataset__Address'],
|
|
394
|
-
}, AddressRecord_1.AddressRecord);
|
|
395
|
-
}
|
|
396
|
-
return this._addresses;
|
|
397
|
-
}
|
|
398
|
-
// ============================================
|
|
399
143
|
// LINK MANAGEMENT
|
|
400
144
|
// ============================================
|
|
401
145
|
/**
|
|
@@ -569,21 +313,6 @@ class CrmDatasetRecord {
|
|
|
569
313
|
}
|
|
570
314
|
}
|
|
571
315
|
exports.CrmDatasetRecord = CrmDatasetRecord;
|
|
572
|
-
// ============================================
|
|
573
|
-
// TYPED LINK ACCESSORS
|
|
574
|
-
// ============================================
|
|
575
|
-
/** Valid labels for User associations */
|
|
576
|
-
CrmDatasetRecord.usersLabels = ['CrmDataset__User'];
|
|
577
|
-
/** Valid labels for Note associations */
|
|
578
|
-
CrmDatasetRecord.notesLabels = ['CrmDataset__Note'];
|
|
579
|
-
/** Valid labels for Lead associations */
|
|
580
|
-
CrmDatasetRecord.leadsLabels = ['CrmDataset__Lead'];
|
|
581
|
-
/** Valid labels for SalesTerritory associations */
|
|
582
|
-
CrmDatasetRecord.salesTerritoriesLabels = ['CrmDataset__SalesTerritory'];
|
|
583
|
-
/** Valid labels for Team associations */
|
|
584
|
-
CrmDatasetRecord.teamsLabels = ['CrmDataset_Team'];
|
|
585
|
-
/** Valid labels for Address associations */
|
|
586
|
-
CrmDatasetRecord.addressesLabels = ['CrmDataset__Address'];
|
|
587
316
|
/** Type guard to check if an object is a CrmDatasetRecord */
|
|
588
317
|
function isCrmDatasetRecord(obj) {
|
|
589
318
|
return obj instanceof CrmDatasetRecord;
|
|
@@ -19,10 +19,8 @@ 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 { CustomerDeviceAtaProperties } from '../entities-v2/CustomerDeviceAta';
|
|
24
23
|
import { CustomerDeviceAtaUpdateProperties } from '../actions-v2/CustomerDeviceAtaUpdateDto';
|
|
25
|
-
import { OrderItemRecord } from './OrderItemRecord';
|
|
26
24
|
/**
|
|
27
25
|
* Builder for action execution with dryRun support
|
|
28
26
|
*
|
|
@@ -86,7 +84,6 @@ export declare class CustomerDeviceAtaRecord<TProps = CustomerDeviceAtaPropertie
|
|
|
86
84
|
private _provider;
|
|
87
85
|
private _pendingLinks;
|
|
88
86
|
private _preGeneratedId;
|
|
89
|
-
private _orderItems?;
|
|
90
87
|
/**
|
|
91
88
|
* Create a record wrapper.
|
|
92
89
|
* @param record - The underlying record, or null for create operations
|
|
@@ -112,24 +109,6 @@ export declare class CustomerDeviceAtaRecord<TProps = CustomerDeviceAtaPropertie
|
|
|
112
109
|
get groups(): string[];
|
|
113
110
|
/** Access the underlying OdinRecord (null for new records) */
|
|
114
111
|
get record(): OdinRecord<TProps> | null;
|
|
115
|
-
/** Valid labels for OrderItem associations */
|
|
116
|
-
static readonly orderItemsLabels: readonly ["OrderItem__CustomerDeviceAta"];
|
|
117
|
-
/**
|
|
118
|
-
* Access linked OrderItem records
|
|
119
|
-
* @remarks Available labels: OrderItem__CustomerDeviceAta
|
|
120
|
-
* @throws Error if called on a new (unsaved) record
|
|
121
|
-
*
|
|
122
|
-
* @example
|
|
123
|
-
* ```typescript
|
|
124
|
-
* // Get all linked OrderItem records
|
|
125
|
-
* const items = await record.orderItems.list();
|
|
126
|
-
* const first = await record.orderItems.first();
|
|
127
|
-
*
|
|
128
|
-
* // Filter by label
|
|
129
|
-
* const specific = await record.orderItems.first({ label: 'OrderItem__CustomerDeviceAta' });
|
|
130
|
-
* ```
|
|
131
|
-
*/
|
|
132
|
-
get orderItems(): RecordLinkManager<OrderItemRecord, typeof CustomerDeviceAtaRecord['orderItemsLabels'][number]>;
|
|
133
112
|
/**
|
|
134
113
|
* Queue a link to be created with the next action.
|
|
135
114
|
* Works for both create and update actions.
|
|
@@ -29,8 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = 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 CustomerDeviceAtaRecord {
|
|
|
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__CustomerDeviceAta
|
|
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__CustomerDeviceAta' });
|
|
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:CustomerDeviceAta',
|
|
166
|
-
targetEntity: 'OrderModule:OrderItem',
|
|
167
|
-
targetModuleName: 'OrderModule',
|
|
168
|
-
targetEntityName: 'OrderItem',
|
|
169
|
-
labels: ['OrderItem__CustomerDeviceAta'],
|
|
170
|
-
}, OrderItemRecord_1.OrderItemRecord);
|
|
171
|
-
}
|
|
172
|
-
return this._orderItems;
|
|
173
|
-
}
|
|
174
142
|
// ============================================
|
|
175
143
|
// LINK MANAGEMENT
|
|
176
144
|
// ============================================
|
|
@@ -240,11 +208,6 @@ class CustomerDeviceAtaRecord {
|
|
|
240
208
|
}
|
|
241
209
|
}
|
|
242
210
|
exports.CustomerDeviceAtaRecord = CustomerDeviceAtaRecord;
|
|
243
|
-
// ============================================
|
|
244
|
-
// TYPED LINK ACCESSORS
|
|
245
|
-
// ============================================
|
|
246
|
-
/** Valid labels for OrderItem associations */
|
|
247
|
-
CustomerDeviceAtaRecord.orderItemsLabels = ['OrderItem__CustomerDeviceAta'];
|
|
248
211
|
/** Type guard to check if an object is a CustomerDeviceAtaRecord */
|
|
249
212
|
function isCustomerDeviceAtaRecord(obj) {
|
|
250
213
|
return obj instanceof CustomerDeviceAtaRecord;
|