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