@d19n/youfibre-odin-sdk 2.0.28 → 2.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/README.md +13 -3
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/ContactIdentityAccessor.d.ts +111 -0
  9. package/dist/accessors-v2/ContactIdentityAccessor.js +190 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +5 -3
  12. package/dist/actions-v2/BillingAdjustmentCreateDto.d.ts +8 -1
  13. package/dist/actions-v2/CompleteChurnRequestDto.d.ts +15 -5
  14. package/dist/actions-v2/CompleteChurnRequestFlowDto.d.ts +15 -5
  15. package/dist/actions-v2/CreateAuddisPgReportAllocationDto.d.ts +88 -0
  16. package/dist/actions-v2/CreateAuddisPgReportAllocationDto.js +59 -0
  17. package/dist/actions-v2/CreateBacsPgReportAllocationDto.d.ts +88 -0
  18. package/dist/actions-v2/CreateBacsPgReportAllocationDto.js +59 -0
  19. package/dist/actions-v2/CreateBrskMigrationErrorDto.d.ts +10 -3
  20. package/dist/actions-v2/CreateBrskMigrationErrorDto.js +11 -4
  21. package/dist/actions-v2/CreateCaseDto.d.ts +3 -4
  22. package/dist/actions-v2/CreateCaseFromCasesDto.d.ts +4 -6
  23. package/dist/actions-v2/CreateCaseFromContactDto.d.ts +3 -4
  24. package/dist/actions-v2/CreatePgContactDto.d.ts +9 -1
  25. package/dist/actions-v2/CreatePgPaymentMethodDto.d.ts +9 -1
  26. package/dist/actions-v2/CreatePgTransactionChargeDto.d.ts +9 -1
  27. package/dist/actions-v2/CreatePgTransactionRefundDto.d.ts +9 -1
  28. package/dist/actions-v2/EditCaseFormDto.d.ts +8 -1
  29. package/dist/actions-v2/MovePgWebhookToSentDto.d.ts +70 -0
  30. package/dist/actions-v2/MovePgWebhookToSentDto.js +62 -0
  31. package/dist/actions-v2/UpdateBngProvisionDto.d.ts +16 -23
  32. package/dist/actions-v2/UpdateBngProvisionDto.js +4 -4
  33. package/dist/actions-v2/UpdateContactIdentityDto.d.ts +79 -0
  34. package/dist/actions-v2/UpdateContactIdentityDto.js +56 -0
  35. package/dist/actions-v2/UpdateCustomerDeviceOntDto.d.ts +22 -1
  36. package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.d.ts +77 -0
  37. package/dist/actions-v2/UpdateOneTouchSwitchOrderForActivationDto.js +61 -0
  38. package/dist/actions-v2/UpdatePaymentMethodDto.d.ts +17 -14
  39. package/dist/actions-v2/UpdatePaymentMethodDto.js +4 -6
  40. package/dist/actions-v2/UpdatePgContactDto.d.ts +8 -1
  41. package/dist/actions-v2/UpdatePgPaymentMethodDto.d.ts +8 -1
  42. package/dist/actions-v2/UpdatePgTransactionChargeDto.d.ts +8 -1
  43. package/dist/actions-v2/UpdatePgTransactionRefundDto.d.ts +8 -1
  44. package/dist/api-sdk-v2/ContactApi.d.ts +2 -0
  45. package/dist/api-sdk-v2/ContactApi.js +6 -0
  46. package/dist/api-sdk-v2/PaymentMethodApi.d.ts +2 -0
  47. package/dist/api-sdk-v2/PaymentMethodApi.js +6 -0
  48. package/dist/api-sdk-v2/PaymentMethodRefundApi.d.ts +2 -0
  49. package/dist/api-sdk-v2/PaymentMethodRefundApi.js +6 -0
  50. package/dist/api-sdk-v2/PgContactApi.d.ts +2 -0
  51. package/dist/api-sdk-v2/PgContactApi.js +6 -0
  52. package/dist/api-sdk-v2/PgPaymentMethodApi.d.ts +2 -0
  53. package/dist/api-sdk-v2/PgPaymentMethodApi.js +6 -0
  54. package/dist/api-sdk-v2/PgTransactionApi.d.ts +4 -0
  55. package/dist/api-sdk-v2/PgTransactionApi.js +12 -0
  56. package/dist/api-sdk-v2/TransactionApi.d.ts +2 -0
  57. package/dist/api-sdk-v2/TransactionApi.js +6 -0
  58. package/dist/db-accessors-v2/ContactIdentityDbAccessor.d.ts +149 -0
  59. package/dist/db-accessors-v2/ContactIdentityDbAccessor.js +227 -0
  60. package/dist/db-accessors-v2/index.d.ts +1 -0
  61. package/dist/db-accessors-v2/index.js +5 -3
  62. package/dist/db-sdk-v2/ContactDb.d.ts +2 -0
  63. package/dist/db-sdk-v2/ContactDb.js +6 -0
  64. package/dist/db-sdk-v2/PaymentMethodDb.d.ts +2 -0
  65. package/dist/db-sdk-v2/PaymentMethodDb.js +6 -0
  66. package/dist/db-sdk-v2/PaymentMethodRefundDb.d.ts +2 -0
  67. package/dist/db-sdk-v2/PaymentMethodRefundDb.js +6 -0
  68. package/dist/db-sdk-v2/PgContactDb.d.ts +2 -0
  69. package/dist/db-sdk-v2/PgContactDb.js +6 -0
  70. package/dist/db-sdk-v2/PgPaymentMethodDb.d.ts +2 -0
  71. package/dist/db-sdk-v2/PgPaymentMethodDb.js +6 -0
  72. package/dist/db-sdk-v2/PgTransactionDb.d.ts +4 -0
  73. package/dist/db-sdk-v2/PgTransactionDb.js +12 -0
  74. package/dist/db-sdk-v2/TransactionDb.d.ts +2 -0
  75. package/dist/db-sdk-v2/TransactionDb.js +6 -0
  76. package/dist/entities-v2/Account.d.ts +33 -33
  77. package/dist/entities-v2/Account.js +2 -2
  78. package/dist/entities-v2/BillingAdjustment.d.ts +79 -70
  79. package/dist/entities-v2/BillingAdjustment.js +37 -33
  80. package/dist/entities-v2/BngProvision.d.ts +0 -14
  81. package/dist/entities-v2/BngProvision.js +0 -4
  82. package/dist/entities-v2/BrskEntityMigrationError.d.ts +14 -14
  83. package/dist/entities-v2/BrskEntityMigrationError.js +4 -4
  84. package/dist/entities-v2/Case.d.ts +12 -0
  85. package/dist/entities-v2/Case.js +2 -0
  86. package/dist/entities-v2/ChurnRequest.d.ts +8 -1
  87. package/dist/entities-v2/ChurnRequest.js +2 -0
  88. package/dist/entities-v2/Contact.d.ts +3 -0
  89. package/dist/entities-v2/Conversation.d.ts +0 -2
  90. package/dist/entities-v2/Conversation.js +0 -2
  91. package/dist/entities-v2/CustomerDeviceOnt.d.ts +8 -1
  92. package/dist/entities-v2/CustomerDeviceOnt.js +2 -0
  93. package/dist/entities-v2/Order.d.ts +28 -7
  94. package/dist/entities-v2/Order.js +8 -2
  95. package/dist/entities-v2/PaymentMethod.d.ts +6 -1
  96. package/dist/entities-v2/PaymentMethod.js +2 -0
  97. package/dist/entities-v2/PaymentMethodRefund.d.ts +3 -0
  98. package/dist/entities-v2/PgContact.d.ts +14 -0
  99. package/dist/entities-v2/PgContact.js +7 -1
  100. package/dist/entities-v2/PgFileAllocation.d.ts +17 -17
  101. package/dist/entities-v2/PgFileAllocation.js +2 -2
  102. package/dist/entities-v2/PgPaymentMethod.d.ts +14 -0
  103. package/dist/entities-v2/PgPaymentMethod.js +7 -1
  104. package/dist/entities-v2/PgTransaction.d.ts +48 -0
  105. package/dist/entities-v2/PgTransaction.js +13 -1
  106. package/dist/entities-v2/PgWebhook.d.ts +19 -3
  107. package/dist/entities-v2/PgWebhook.js +17 -1
  108. package/dist/entities-v2/PriceBook.d.ts +8 -8
  109. package/dist/entities-v2/PriceBook.js +2 -2
  110. package/dist/entities-v2/Referral.d.ts +1 -1
  111. package/dist/entities-v2/Referral.js +1 -1
  112. package/dist/entities-v2/Reward.d.ts +1 -1
  113. package/dist/entities-v2/Reward.js +1 -1
  114. package/dist/entities-v2/Service.d.ts +28 -20
  115. package/dist/entities-v2/Service.js +23 -15
  116. package/dist/entities-v2/Transaction.d.ts +6 -1
  117. package/dist/entities-v2/Transaction.js +2 -0
  118. package/dist/entities-v2/VoiceConfiguration.d.ts +8 -1
  119. package/dist/entities-v2/VoiceConfiguration.js +2 -0
  120. package/dist/entities-v2/WorkOrder.d.ts +85 -84
  121. package/dist/entities-v2/WorkOrder.js +5 -4
  122. package/dist/records-v2/AccountCreditRecord.d.ts +1 -82
  123. package/dist/records-v2/AccountCreditRecord.js +0 -124
  124. package/dist/records-v2/AccountRecord.d.ts +2 -306
  125. package/dist/records-v2/AccountRecord.js +0 -451
  126. package/dist/records-v2/ActivityLogRecord.d.ts +1 -122
  127. package/dist/records-v2/ActivityLogRecord.js +0 -190
  128. package/dist/records-v2/ActivityRecord.d.ts +2 -255
  129. package/dist/records-v2/ActivityRecord.js +0 -387
  130. package/dist/records-v2/AddressRecord.d.ts +0 -321
  131. package/dist/records-v2/AddressRecord.js +0 -532
  132. package/dist/records-v2/AffiliateCodeRecord.d.ts +1 -102
  133. package/dist/records-v2/AffiliateCodeRecord.js +0 -157
  134. package/dist/records-v2/AppointmentRecord.d.ts +0 -141
  135. package/dist/records-v2/AppointmentRecord.js +0 -235
  136. package/dist/records-v2/BillingAdjustmentRecord.d.ts +0 -81
  137. package/dist/records-v2/BillingAdjustmentRecord.js +0 -136
  138. package/dist/records-v2/BillingRequestRecord.d.ts +2 -178
  139. package/dist/records-v2/BillingRequestRecord.js +0 -271
  140. package/dist/records-v2/BlockageA55Record.d.ts +2 -103
  141. package/dist/records-v2/BlockageA55Record.js +0 -157
  142. package/dist/records-v2/BngProvisionRecord.d.ts +1 -42
  143. package/dist/records-v2/BngProvisionRecord.js +0 -58
  144. package/dist/records-v2/BrskEntityMigrationErrorRecord.d.ts +3 -23
  145. package/dist/records-v2/BrskEntityMigrationErrorRecord.js +3 -24
  146. package/dist/records-v2/CallEventRecord.d.ts +1 -82
  147. package/dist/records-v2/CallEventRecord.js +0 -124
  148. package/dist/records-v2/CallLegRecord.d.ts +1 -82
  149. package/dist/records-v2/CallLegRecord.js +0 -124
  150. package/dist/records-v2/CallRecord.d.ts +1 -202
  151. package/dist/records-v2/CallRecord.js +0 -322
  152. package/dist/records-v2/CallTransferRecord.d.ts +1 -102
  153. package/dist/records-v2/CallTransferRecord.js +0 -157
  154. package/dist/records-v2/CampaignRecord.d.ts +2 -83
  155. package/dist/records-v2/CampaignRecord.js +0 -124
  156. package/dist/records-v2/CaseRecord.d.ts +2 -398
  157. package/dist/records-v2/CaseRecord.js +0 -634
  158. package/dist/records-v2/ChangeReasonRecord.d.ts +2 -171
  159. package/dist/records-v2/ChangeReasonRecord.js +0 -238
  160. package/dist/records-v2/ChurnRequestRecord.d.ts +1 -62
  161. package/dist/records-v2/ChurnRequestRecord.js +0 -91
  162. package/dist/records-v2/ContactIdentityRecord.d.ts +163 -0
  163. package/dist/records-v2/ContactIdentityRecord.js +223 -0
  164. package/dist/records-v2/ContactRecord.d.ts +0 -540
  165. package/dist/records-v2/ContactRecord.js +0 -894
  166. package/dist/records-v2/ContractBuyOutRecord.d.ts +1 -162
  167. package/dist/records-v2/ContractBuyOutRecord.js +0 -256
  168. package/dist/records-v2/ConversationRecord.d.ts +1 -109
  169. package/dist/records-v2/ConversationRecord.js +0 -153
  170. package/dist/records-v2/CreditNoteRecord.d.ts +0 -101
  171. package/dist/records-v2/CreditNoteRecord.js +0 -169
  172. package/dist/records-v2/CrmDatasetRecord.d.ts +2 -191
  173. package/dist/records-v2/CrmDatasetRecord.js +0 -271
  174. package/dist/records-v2/CustomerDeviceAtaRecord.d.ts +0 -21
  175. package/dist/records-v2/CustomerDeviceAtaRecord.js +0 -37
  176. package/dist/records-v2/CustomerDeviceConfigurationRecord.d.ts +1 -62
  177. package/dist/records-v2/CustomerDeviceConfigurationRecord.js +0 -91
  178. package/dist/records-v2/CustomerDeviceOntRecord.d.ts +0 -181
  179. package/dist/records-v2/CustomerDeviceOntRecord.js +0 -301
  180. package/dist/records-v2/CustomerDeviceRouterRecord.d.ts +0 -141
  181. package/dist/records-v2/CustomerDeviceRouterRecord.js +0 -235
  182. package/dist/records-v2/CustomerPhonePortingRecord.d.ts +0 -21
  183. package/dist/records-v2/CustomerPhonePortingRecord.js +0 -37
  184. package/dist/records-v2/DiscountRecord.d.ts +0 -121
  185. package/dist/records-v2/DiscountRecord.js +0 -202
  186. package/dist/records-v2/EmailRecord.d.ts +2 -230
  187. package/dist/records-v2/EmailRecord.js +0 -336
  188. package/dist/records-v2/EmailSenderRecord.d.ts +1 -42
  189. package/dist/records-v2/EmailSenderRecord.js +0 -58
  190. package/dist/records-v2/EmailTemplateRecord.d.ts +1 -21
  191. package/dist/records-v2/EmailTemplateRecord.js +0 -21
  192. package/dist/records-v2/FieldServiceDispatchedProductRecord.d.ts +2 -135
  193. package/dist/records-v2/FieldServiceDispatchedProductRecord.js +0 -189
  194. package/dist/records-v2/FieldServiceProductRecord.d.ts +2 -115
  195. package/dist/records-v2/FieldServiceProductRecord.js +0 -156
  196. package/dist/records-v2/FileRecord.d.ts +2 -1211
  197. package/dist/records-v2/FileRecord.js +0 -1902
  198. package/dist/records-v2/ImpersonationTrackerRecord.d.ts +1 -62
  199. package/dist/records-v2/ImpersonationTrackerRecord.js +0 -91
  200. package/dist/records-v2/InternalInstallAuditRecord.d.ts +2 -83
  201. package/dist/records-v2/InternalInstallAuditRecord.js +0 -124
  202. package/dist/records-v2/InvoiceItemRecord.d.ts +0 -40
  203. package/dist/records-v2/InvoiceItemRecord.js +0 -69
  204. package/dist/records-v2/InvoiceRecord.d.ts +2 -399
  205. package/dist/records-v2/InvoiceRecord.js +0 -635
  206. package/dist/records-v2/KnowledgeArticleRecord.d.ts +2 -98
  207. package/dist/records-v2/KnowledgeArticleRecord.js +0 -139
  208. package/dist/records-v2/LeadRecord.d.ts +0 -261
  209. package/dist/records-v2/LeadRecord.js +0 -433
  210. package/dist/records-v2/MessageRecord.d.ts +2 -131
  211. package/dist/records-v2/MessageRecord.js +0 -172
  212. package/dist/records-v2/NetworkDeviceRecord.d.ts +2 -43
  213. package/dist/records-v2/NetworkDeviceRecord.js +0 -58
  214. package/dist/records-v2/NoteRecord.d.ts +1 -1121
  215. package/dist/records-v2/NoteRecord.js +0 -1839
  216. package/dist/records-v2/OfferRecord.d.ts +2 -154
  217. package/dist/records-v2/OfferRecord.js +0 -221
  218. package/dist/records-v2/OhAuditOfInstallationRecord.d.ts +2 -83
  219. package/dist/records-v2/OhAuditOfInstallationRecord.js +0 -124
  220. package/dist/records-v2/OhExternalAuditRecord.d.ts +2 -83
  221. package/dist/records-v2/OhExternalAuditRecord.js +0 -124
  222. package/dist/records-v2/OhInProgressAuditRecord.d.ts +2 -83
  223. package/dist/records-v2/OhInProgressAuditRecord.js +0 -124
  224. package/dist/records-v2/OhInstallationAuditRecord.d.ts +2 -83
  225. package/dist/records-v2/OhInstallationAuditRecord.js +0 -124
  226. package/dist/records-v2/OhRetroAuditRecord.d.ts +2 -83
  227. package/dist/records-v2/OhRetroAuditRecord.js +0 -124
  228. package/dist/records-v2/OneTouchSwitchRecord.d.ts +30 -255
  229. package/dist/records-v2/OneTouchSwitchRecord.js +37 -387
  230. package/dist/records-v2/OntReplacementApprovalRecord.d.ts +1 -62
  231. package/dist/records-v2/OntReplacementApprovalRecord.js +0 -91
  232. package/dist/records-v2/OrderCheckRecord.d.ts +0 -21
  233. package/dist/records-v2/OrderCheckRecord.js +0 -37
  234. package/dist/records-v2/OrderItemRecord.d.ts +0 -300
  235. package/dist/records-v2/OrderItemRecord.js +0 -498
  236. package/dist/records-v2/OrderKciRecord.d.ts +1 -42
  237. package/dist/records-v2/OrderKciRecord.js +0 -58
  238. package/dist/records-v2/OrderRecord.d.ts +0 -620
  239. package/dist/records-v2/OrderRecord.js +0 -1026
  240. package/dist/records-v2/OutageRecord.d.ts +1 -42
  241. package/dist/records-v2/OutageRecord.js +0 -58
  242. package/dist/records-v2/OverlayRealA55Record.d.ts +2 -83
  243. package/dist/records-v2/OverlayRealA55Record.js +0 -124
  244. package/dist/records-v2/PICRequestRecord.d.ts +1 -62
  245. package/dist/records-v2/PICRequestRecord.js +0 -91
  246. package/dist/records-v2/PaymentMethodRecord.d.ts +7 -127
  247. package/dist/records-v2/PaymentMethodRecord.js +15 -209
  248. package/dist/records-v2/PaymentMethodRefundRecord.d.ts +0 -181
  249. package/dist/records-v2/PaymentMethodRefundRecord.js +0 -301
  250. package/dist/records-v2/PaymentRecord.d.ts +1 -82
  251. package/dist/records-v2/PaymentRecord.js +0 -124
  252. package/dist/records-v2/PermissionToFailRecord.d.ts +0 -61
  253. package/dist/records-v2/PermissionToFailRecord.js +0 -103
  254. package/dist/records-v2/PgAccountValidationRecord.d.ts +1 -21
  255. package/dist/records-v2/PgAccountValidationRecord.js +0 -21
  256. package/dist/records-v2/PgContactRecord.d.ts +1 -62
  257. package/dist/records-v2/PgContactRecord.js +0 -91
  258. package/dist/records-v2/PgDirectDebitFileRecord.d.ts +2 -95
  259. package/dist/records-v2/PgDirectDebitFileRecord.js +0 -123
  260. package/dist/records-v2/PgDisputeRecord.d.ts +1 -62
  261. package/dist/records-v2/PgDisputeRecord.js +0 -91
  262. package/dist/records-v2/PgFileAllocationRecord.d.ts +58 -140
  263. package/dist/records-v2/PgFileAllocationRecord.js +72 -185
  264. package/dist/records-v2/PgLogRecord.d.ts +1 -21
  265. package/dist/records-v2/PgLogRecord.js +0 -21
  266. package/dist/records-v2/PgPaymentMethodRecord.d.ts +1 -102
  267. package/dist/records-v2/PgPaymentMethodRecord.js +0 -157
  268. package/dist/records-v2/PgSortCodeSubstitutionRecord.d.ts +1 -21
  269. package/dist/records-v2/PgSortCodeSubstitutionRecord.js +0 -21
  270. package/dist/records-v2/PgTransactionRecord.d.ts +2 -135
  271. package/dist/records-v2/PgTransactionRecord.js +0 -189
  272. package/dist/records-v2/PgVocalinkRecord.d.ts +1 -21
  273. package/dist/records-v2/PgVocalinkRecord.js +0 -21
  274. package/dist/records-v2/PgWebhookAttemptRecord.d.ts +1 -42
  275. package/dist/records-v2/PgWebhookAttemptRecord.js +0 -58
  276. package/dist/records-v2/PgWebhookRecord.d.ts +26 -122
  277. package/dist/records-v2/PgWebhookRecord.js +29 -190
  278. package/dist/records-v2/PhoneNumberRecord.d.ts +0 -41
  279. package/dist/records-v2/PhoneNumberRecord.js +0 -70
  280. package/dist/records-v2/PriceBookRecord.d.ts +0 -21
  281. package/dist/records-v2/PriceBookRecord.js +0 -37
  282. package/dist/records-v2/ProductRecord.d.ts +2 -258
  283. package/dist/records-v2/ProductRecord.js +0 -351
  284. package/dist/records-v2/PushNotificationRecord.d.ts +1 -162
  285. package/dist/records-v2/PushNotificationRecord.js +0 -256
  286. package/dist/records-v2/ReferralRecord.d.ts +2 -143
  287. package/dist/records-v2/ReferralRecord.js +0 -223
  288. package/dist/records-v2/RemediationOutcomeFormRecord.d.ts +2 -83
  289. package/dist/records-v2/RemediationOutcomeFormRecord.js +0 -124
  290. package/dist/records-v2/RemediationRequiredReasonRecord.d.ts +2 -103
  291. package/dist/records-v2/RemediationRequiredReasonRecord.js +0 -157
  292. package/dist/records-v2/ReturnsRecord.d.ts +1 -62
  293. package/dist/records-v2/ReturnsRecord.js +0 -91
  294. package/dist/records-v2/RewardRecord.d.ts +2 -123
  295. package/dist/records-v2/RewardRecord.js +0 -190
  296. package/dist/records-v2/SalesTerritoryRecord.d.ts +2 -79
  297. package/dist/records-v2/SalesTerritoryRecord.js +0 -107
  298. package/dist/records-v2/ScheduleSlotRecord.d.ts +1 -42
  299. package/dist/records-v2/ScheduleSlotRecord.js +0 -58
  300. package/dist/records-v2/ServiceAppointmentConfigRecord.d.ts +2 -287
  301. package/dist/records-v2/ServiceAppointmentConfigRecord.js +0 -367
  302. package/dist/records-v2/ServiceAppointmentRecord.d.ts +0 -81
  303. package/dist/records-v2/ServiceAppointmentRecord.js +0 -136
  304. package/dist/records-v2/ServiceRecord.d.ts +0 -40
  305. package/dist/records-v2/ServiceRecord.js +0 -69
  306. package/dist/records-v2/ServiceVisitAuditRecord.d.ts +2 -83
  307. package/dist/records-v2/ServiceVisitAuditRecord.js +0 -124
  308. package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.d.ts +2 -83
  309. package/dist/records-v2/SiteSpecificRiskAssessmentOutcomeFormRecord.js +0 -124
  310. package/dist/records-v2/SmsMessageRecord.d.ts +2 -175
  311. package/dist/records-v2/SmsMessageRecord.js +0 -255
  312. package/dist/records-v2/SweeperMaintenanceAuditRecord.d.ts +2 -83
  313. package/dist/records-v2/SweeperMaintenanceAuditRecord.js +0 -124
  314. package/dist/records-v2/TeamRecord.d.ts +0 -101
  315. package/dist/records-v2/TeamRecord.js +0 -169
  316. package/dist/records-v2/TestEntityForVisualBuilderRecord.d.ts +2 -115
  317. package/dist/records-v2/TestEntityForVisualBuilderRecord.js +0 -156
  318. package/dist/records-v2/TimeSlotRecord.d.ts +0 -21
  319. package/dist/records-v2/TimeSlotRecord.js +0 -37
  320. package/dist/records-v2/TransactionRecord.d.ts +1 -181
  321. package/dist/records-v2/TransactionRecord.js +0 -288
  322. package/dist/records-v2/TwilioUserUpdateRecord.d.ts +1 -42
  323. package/dist/records-v2/TwilioUserUpdateRecord.js +0 -58
  324. package/dist/records-v2/UgAuditOfInstallationRecord.d.ts +2 -83
  325. package/dist/records-v2/UgAuditOfInstallationRecord.js +0 -124
  326. package/dist/records-v2/UgExternalAuditRecord.d.ts +2 -83
  327. package/dist/records-v2/UgExternalAuditRecord.js +0 -124
  328. package/dist/records-v2/UgInProgressAuditRecord.d.ts +2 -83
  329. package/dist/records-v2/UgInProgressAuditRecord.js +0 -124
  330. package/dist/records-v2/UgInstallationAuditRecord.d.ts +2 -83
  331. package/dist/records-v2/UgInstallationAuditRecord.js +0 -124
  332. package/dist/records-v2/UgRetroAuditRecord.d.ts +2 -83
  333. package/dist/records-v2/UgRetroAuditRecord.js +0 -124
  334. package/dist/records-v2/UserRecord.d.ts +0 -380
  335. package/dist/records-v2/UserRecord.js +0 -630
  336. package/dist/records-v2/VisitRecord.d.ts +0 -121
  337. package/dist/records-v2/VisitRecord.js +0 -202
  338. package/dist/records-v2/VoiceConfigurationRecord.d.ts +0 -21
  339. package/dist/records-v2/VoiceConfigurationRecord.js +0 -37
  340. package/dist/records-v2/WayleaveAuditRecord.d.ts +2 -83
  341. package/dist/records-v2/WayleaveAuditRecord.js +0 -124
  342. package/dist/records-v2/WorkOrderRecord.d.ts +2 -1226
  343. package/dist/records-v2/WorkOrderRecord.js +0 -1865
  344. package/dist/records-v2/WorkOrderStatusUpdateRecord.d.ts +2 -75
  345. package/dist/records-v2/WorkOrderStatusUpdateRecord.js +0 -90
  346. package/dist/records-v2/YfFieldServiceVisitRecord.d.ts +2 -83
  347. package/dist/records-v2/YfFieldServiceVisitRecord.js +0 -124
  348. package/dist/records-v2/YfStockAuditRecord.d.ts +2 -103
  349. package/dist/records-v2/YfStockAuditRecord.js +0 -157
  350. package/dist/records-v2/index.d.ts +1 -0
  351. package/dist/records-v2/index.js +4 -1
  352. package/package.json +1 -1
  353. package/dist/actions-v2/ReopenConversationDto.d.ts +0 -94
  354. package/dist/actions-v2/ReopenConversationDto.js +0 -61
  355. package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.d.ts +0 -85
  356. package/dist/actions-v2/UpdatePgAllocationWithBacsReportDto.js +0 -61
@@ -14,8 +14,6 @@
14
14
  * await record.createFile({ ... }).execute();
15
15
  * ```
16
16
  *
17
- * Entity Types: AFP_INVOICE, CSV, DEFAULT, EMAIL, INVOICE, NA_PROBLEM_EVIDENCE, NA_SOLUTION_EVIDENCE, OPENREACH_A55, OTDR
18
- *
19
17
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
20
18
  */
21
19
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
@@ -31,60 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
31
29
  exports.isFileRecord = exports.FileRecord = 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 SiteSpecificRiskAssessmentOutcomeFormRecord_1 = require("./SiteSpecificRiskAssessmentOutcomeFormRecord");
36
- const AppointmentRecord_1 = require("./AppointmentRecord");
37
- const OhInProgressAuditRecord_1 = require("./OhInProgressAuditRecord");
38
- const AddressRecord_1 = require("./AddressRecord");
39
- const PaymentMethodRefundRecord_1 = require("./PaymentMethodRefundRecord");
40
- const MessageRecord_1 = require("./MessageRecord");
41
- const BlockageA55Record_1 = require("./BlockageA55Record");
42
- const TransactionRecord_1 = require("./TransactionRecord");
43
- const NoteRecord_1 = require("./NoteRecord");
44
- const EmailRecord_1 = require("./EmailRecord");
45
- const OneTouchSwitchRecord_1 = require("./OneTouchSwitchRecord");
46
- const ActivityRecord_1 = require("./ActivityRecord");
47
- const RemediationRequiredReasonRecord_1 = require("./RemediationRequiredReasonRecord");
48
- const KnowledgeArticleRecord_1 = require("./KnowledgeArticleRecord");
49
- const LeadRecord_1 = require("./LeadRecord");
50
- const VisitRecord_1 = require("./VisitRecord");
51
- const CustomerDeviceRouterRecord_1 = require("./CustomerDeviceRouterRecord");
52
- const ServiceVisitAuditRecord_1 = require("./ServiceVisitAuditRecord");
53
- const ChangeReasonRecord_1 = require("./ChangeReasonRecord");
54
- const UgRetroAuditRecord_1 = require("./UgRetroAuditRecord");
55
- const PaymentMethodRecord_1 = require("./PaymentMethodRecord");
56
- const WorkOrderRecord_1 = require("./WorkOrderRecord");
57
- const CustomerDeviceOntRecord_1 = require("./CustomerDeviceOntRecord");
58
- const InternalInstallAuditRecord_1 = require("./InternalInstallAuditRecord");
59
- const ServiceAppointmentRecord_1 = require("./ServiceAppointmentRecord");
60
- const WayleaveAuditRecord_1 = require("./WayleaveAuditRecord");
61
- const DiscountRecord_1 = require("./DiscountRecord");
62
- const OrderRecord_1 = require("./OrderRecord");
63
- const CallRecord_1 = require("./CallRecord");
64
- const OhExternalAuditRecord_1 = require("./OhExternalAuditRecord");
65
- const CaseRecord_1 = require("./CaseRecord");
66
- const UgExternalAuditRecord_1 = require("./UgExternalAuditRecord");
67
- const OhRetroAuditRecord_1 = require("./OhRetroAuditRecord");
68
- const UgInProgressAuditRecord_1 = require("./UgInProgressAuditRecord");
69
- const BillingAdjustmentRecord_1 = require("./BillingAdjustmentRecord");
70
- const RemediationOutcomeFormRecord_1 = require("./RemediationOutcomeFormRecord");
71
- const ContactRecord_1 = require("./ContactRecord");
72
- const SweeperMaintenanceAuditRecord_1 = require("./SweeperMaintenanceAuditRecord");
73
- const OhInstallationAuditRecord_1 = require("./OhInstallationAuditRecord");
74
- const YfFieldServiceVisitRecord_1 = require("./YfFieldServiceVisitRecord");
75
- const BillingRequestRecord_1 = require("./BillingRequestRecord");
76
- const OhAuditOfInstallationRecord_1 = require("./OhAuditOfInstallationRecord");
77
- const UgInstallationAuditRecord_1 = require("./UgInstallationAuditRecord");
78
- const OverlayRealA55Record_1 = require("./OverlayRealA55Record");
79
- const UgAuditOfInstallationRecord_1 = require("./UgAuditOfInstallationRecord");
80
- const CreditNoteRecord_1 = require("./CreditNoteRecord");
81
- const InvoiceRecord_1 = require("./InvoiceRecord");
82
- const ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
83
- const AccountRecord_1 = require("./AccountRecord");
84
- const OrderItemRecord_1 = require("./OrderItemRecord");
85
- const PgDirectDebitFileRecord_1 = require("./PgDirectDebitFileRecord");
86
- const YfStockAuditRecord_1 = require("./YfStockAuditRecord");
87
- const TestEntityForVisualBuilderRecord_1 = require("./TestEntityForVisualBuilderRecord");
88
32
  /**
89
33
  * Builder for action execution with dryRun support
90
34
  *
@@ -196,1743 +140,6 @@ class FileRecord {
196
140
  /** Access the underlying OdinRecord (null for new records) */
197
141
  get record() { return this._record; }
198
142
  // ============================================
199
- // TYPE GUARDS (with TypeScript type predicates)
200
- // ============================================
201
- /**
202
- * Type guard: check if this record is of type AFP_INVOICE
203
- *
204
- * When this returns true, TypeScript automatically narrows the type,
205
- * giving you access to AFP_INVOICE-specific properties.
206
- *
207
- * @example
208
- * ```typescript
209
- * if (record.isAfpInvoice()) {
210
- * // TypeScript knows record.properties is AfpInvoiceFileProperties
211
- * console.log(record.properties.SomeTypeSpecificField);
212
- * }
213
- * ```
214
- * @remarks application for payment invoice
215
- */
216
- isAfpInvoice() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'AFP_INVOICE'; }
217
- /**
218
- * Type guard: check if this record is of type CSV
219
- *
220
- * When this returns true, TypeScript automatically narrows the type,
221
- * giving you access to CSV-specific properties.
222
- *
223
- * @example
224
- * ```typescript
225
- * if (record.isCsv()) {
226
- * // TypeScript knows record.properties is CsvFileProperties
227
- * console.log(record.properties.SomeTypeSpecificField);
228
- * }
229
- * ```
230
- * @remarks CSV
231
- */
232
- isCsv() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'CSV'; }
233
- /**
234
- * Type guard: check if this record is of type DEFAULT
235
- *
236
- * When this returns true, TypeScript automatically narrows the type,
237
- * giving you access to DEFAULT-specific properties.
238
- *
239
- * @example
240
- * ```typescript
241
- * if (record.isDefault()) {
242
- * // TypeScript knows record.properties is FileProperties
243
- * console.log(record.properties.SomeTypeSpecificField);
244
- * }
245
- * ```
246
- * @remarks This is the default record type
247
- */
248
- isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
249
- /**
250
- * Type guard: check if this record is of type EMAIL
251
- *
252
- * When this returns true, TypeScript automatically narrows the type,
253
- * giving you access to EMAIL-specific properties.
254
- *
255
- * @example
256
- * ```typescript
257
- * if (record.isEmail()) {
258
- * // TypeScript knows record.properties is EmailFileProperties
259
- * console.log(record.properties.SomeTypeSpecificField);
260
- * }
261
- * ```
262
- * @remarks Email
263
- */
264
- isEmail() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'EMAIL'; }
265
- /**
266
- * Type guard: check if this record is of type INVOICE
267
- *
268
- * When this returns true, TypeScript automatically narrows the type,
269
- * giving you access to INVOICE-specific properties.
270
- *
271
- * @example
272
- * ```typescript
273
- * if (record.isInvoice()) {
274
- * // TypeScript knows record.properties is InvoiceFileProperties
275
- * console.log(record.properties.SomeTypeSpecificField);
276
- * }
277
- * ```
278
- * @remarks invoice
279
- */
280
- isInvoice() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'INVOICE'; }
281
- /**
282
- * Type guard: check if this record is of type NA_PROBLEM_EVIDENCE
283
- *
284
- * When this returns true, TypeScript automatically narrows the type,
285
- * giving you access to NA_PROBLEM_EVIDENCE-specific properties.
286
- *
287
- * @example
288
- * ```typescript
289
- * if (record.isNaProblemEvidence()) {
290
- * // TypeScript knows record.properties is NaProblemEvidenceFileProperties
291
- * console.log(record.properties.SomeTypeSpecificField);
292
- * }
293
- * ```
294
- * @remarks Openreach Network Adjustment Problem Evidence
295
- */
296
- isNaProblemEvidence() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'NA_PROBLEM_EVIDENCE'; }
297
- /**
298
- * Type guard: check if this record is of type NA_SOLUTION_EVIDENCE
299
- *
300
- * When this returns true, TypeScript automatically narrows the type,
301
- * giving you access to NA_SOLUTION_EVIDENCE-specific properties.
302
- *
303
- * @example
304
- * ```typescript
305
- * if (record.isNaSolutionEvidence()) {
306
- * // TypeScript knows record.properties is NaSolutionEvidenceFileProperties
307
- * console.log(record.properties.SomeTypeSpecificField);
308
- * }
309
- * ```
310
- * @remarks Openreach Network Adjustment Problem Evidence
311
- */
312
- isNaSolutionEvidence() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'NA_SOLUTION_EVIDENCE'; }
313
- /**
314
- * Type guard: check if this record is of type OPENREACH_A55
315
- *
316
- * When this returns true, TypeScript automatically narrows the type,
317
- * giving you access to OPENREACH_A55-specific properties.
318
- *
319
- * @example
320
- * ```typescript
321
- * if (record.isOpenreachA55()) {
322
- * // TypeScript knows record.properties is OpenreachA55FileProperties
323
- * console.log(record.properties.SomeTypeSpecificField);
324
- * }
325
- * ```
326
- * @remarks Openreach A55
327
- */
328
- isOpenreachA55() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'OPENREACH_A55'; }
329
- /**
330
- * Type guard: check if this record is of type OTDR
331
- *
332
- * When this returns true, TypeScript automatically narrows the type,
333
- * giving you access to OTDR-specific properties.
334
- *
335
- * @example
336
- * ```typescript
337
- * if (record.isOtdr()) {
338
- * // TypeScript knows record.properties is OtdrFileProperties
339
- * console.log(record.properties.SomeTypeSpecificField);
340
- * }
341
- * ```
342
- * @remarks OTDR evidence for L1 and L2 closures
343
- */
344
- isOtdr() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'OTDR'; }
345
- /**
346
- * Access linked SiteSpecificRiskAssessmentOutcomeForm records
347
- * @remarks Available labels: SiteSpecificRiskAssessmentOutcomeForm__File
348
- * @throws Error if called on a new (unsaved) record
349
- *
350
- * @example
351
- * ```typescript
352
- * // Get all linked SiteSpecificRiskAssessmentOutcomeForm records
353
- * const items = await record.siteSpecificRiskAssessmentOutcomeForms.list();
354
- * const first = await record.siteSpecificRiskAssessmentOutcomeForms.first();
355
- *
356
- * // Filter by label
357
- * const specific = await record.siteSpecificRiskAssessmentOutcomeForms.first({ label: 'SiteSpecificRiskAssessmentOutcomeForm__File' });
358
- * ```
359
- */
360
- get siteSpecificRiskAssessmentOutcomeForms() {
361
- var _a;
362
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
363
- throw new Error('Cannot access links on a new (unsaved) record');
364
- if (!this._siteSpecificRiskAssessmentOutcomeForms) {
365
- this._siteSpecificRiskAssessmentOutcomeForms = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
366
- sourceEntity: 'SchemaModule:File',
367
- targetEntity: 'FieldServiceModule:SiteSpecificRiskAssessmentOutcomeForm',
368
- targetModuleName: 'FieldServiceModule',
369
- targetEntityName: 'SiteSpecificRiskAssessmentOutcomeForm',
370
- labels: ['SiteSpecificRiskAssessmentOutcomeForm__File'],
371
- }, SiteSpecificRiskAssessmentOutcomeFormRecord_1.SiteSpecificRiskAssessmentOutcomeFormRecord);
372
- }
373
- return this._siteSpecificRiskAssessmentOutcomeForms;
374
- }
375
- /**
376
- * Access linked Appointment records
377
- * @remarks Available labels: Appointment__File
378
- * @throws Error if called on a new (unsaved) record
379
- *
380
- * @example
381
- * ```typescript
382
- * // Get all linked Appointment records
383
- * const items = await record.appointments.list();
384
- * const first = await record.appointments.first();
385
- *
386
- * // Filter by label
387
- * const specific = await record.appointments.first({ label: 'Appointment__File' });
388
- * ```
389
- */
390
- get appointments() {
391
- var _a;
392
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
393
- throw new Error('Cannot access links on a new (unsaved) record');
394
- if (!this._appointments) {
395
- this._appointments = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
396
- sourceEntity: 'SchemaModule:File',
397
- targetEntity: 'CrmModule:Appointment',
398
- targetModuleName: 'CrmModule',
399
- targetEntityName: 'Appointment',
400
- labels: ['Appointment__File'],
401
- }, AppointmentRecord_1.AppointmentRecord);
402
- }
403
- return this._appointments;
404
- }
405
- /**
406
- * Access linked OhInProgressAudit records
407
- * @remarks Available labels: OhInProgressAudit_File
408
- * @throws Error if called on a new (unsaved) record
409
- *
410
- * @example
411
- * ```typescript
412
- * // Get all linked OhInProgressAudit records
413
- * const items = await record.ohInProgressAudits.list();
414
- * const first = await record.ohInProgressAudits.first();
415
- *
416
- * // Filter by label
417
- * const specific = await record.ohInProgressAudits.first({ label: 'OhInProgressAudit_File' });
418
- * ```
419
- */
420
- get ohInProgressAudits() {
421
- var _a;
422
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
423
- throw new Error('Cannot access links on a new (unsaved) record');
424
- if (!this._ohInProgressAudits) {
425
- this._ohInProgressAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
426
- sourceEntity: 'SchemaModule:File',
427
- targetEntity: 'FieldServiceModule:OhInProgressAudit',
428
- targetModuleName: 'FieldServiceModule',
429
- targetEntityName: 'OhInProgressAudit',
430
- labels: ['OhInProgressAudit_File'],
431
- }, OhInProgressAuditRecord_1.OhInProgressAuditRecord);
432
- }
433
- return this._ohInProgressAudits;
434
- }
435
- /**
436
- * Access linked Address records
437
- * @remarks Available labels: Address__File
438
- * @throws Error if called on a new (unsaved) record
439
- *
440
- * @example
441
- * ```typescript
442
- * // Get all linked Address records
443
- * const items = await record.addresses.list();
444
- * const first = await record.addresses.first();
445
- *
446
- * // Filter by label
447
- * const specific = await record.addresses.first({ label: 'Address__File' });
448
- * ```
449
- */
450
- get addresses() {
451
- var _a;
452
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
453
- throw new Error('Cannot access links on a new (unsaved) record');
454
- if (!this._addresses) {
455
- this._addresses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
456
- sourceEntity: 'SchemaModule:File',
457
- targetEntity: 'CrmModule:Address',
458
- targetModuleName: 'CrmModule',
459
- targetEntityName: 'Address',
460
- labels: ['Address__File'],
461
- }, AddressRecord_1.AddressRecord);
462
- }
463
- return this._addresses;
464
- }
465
- /**
466
- * Access linked PaymentMethodRefund records
467
- * @remarks Available labels: PaymentMethodRefund__File
468
- * @throws Error if called on a new (unsaved) record
469
- *
470
- * @example
471
- * ```typescript
472
- * // Get all linked PaymentMethodRefund records
473
- * const items = await record.paymentMethodRefunds.list();
474
- * const first = await record.paymentMethodRefunds.first();
475
- *
476
- * // Filter by label
477
- * const specific = await record.paymentMethodRefunds.first({ label: 'PaymentMethodRefund__File' });
478
- * ```
479
- */
480
- get paymentMethodRefunds() {
481
- var _a;
482
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
483
- throw new Error('Cannot access links on a new (unsaved) record');
484
- if (!this._paymentMethodRefunds) {
485
- this._paymentMethodRefunds = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
486
- sourceEntity: 'SchemaModule:File',
487
- targetEntity: 'BillingModule:PaymentMethodRefund',
488
- targetModuleName: 'BillingModule',
489
- targetEntityName: 'PaymentMethodRefund',
490
- labels: ['PaymentMethodRefund__File'],
491
- }, PaymentMethodRefundRecord_1.PaymentMethodRefundRecord);
492
- }
493
- return this._paymentMethodRefunds;
494
- }
495
- /**
496
- * Access linked Message records
497
- * @remarks Available labels: Message_File
498
- * @throws Error if called on a new (unsaved) record
499
- *
500
- * @example
501
- * ```typescript
502
- * // Get all linked Message records
503
- * const items = await record.messages.list();
504
- * const first = await record.messages.first();
505
- *
506
- * // Filter by label
507
- * const specific = await record.messages.first({ label: 'Message_File' });
508
- * ```
509
- */
510
- get messages() {
511
- var _a;
512
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
513
- throw new Error('Cannot access links on a new (unsaved) record');
514
- if (!this._messages) {
515
- this._messages = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
516
- sourceEntity: 'SchemaModule:File',
517
- targetEntity: 'NotificationModule:Message',
518
- targetModuleName: 'NotificationModule',
519
- targetEntityName: 'Message',
520
- labels: ['Message_File'],
521
- }, MessageRecord_1.MessageRecord);
522
- }
523
- return this._messages;
524
- }
525
- /**
526
- * Access linked BlockageA55 records
527
- * @remarks Available labels: BlockageA55_File
528
- * @throws Error if called on a new (unsaved) record
529
- *
530
- * @example
531
- * ```typescript
532
- * // Get all linked BlockageA55 records
533
- * const items = await record.blockageA55s.list();
534
- * const first = await record.blockageA55s.first();
535
- *
536
- * // Filter by label
537
- * const specific = await record.blockageA55s.first({ label: 'BlockageA55_File' });
538
- * ```
539
- */
540
- get blockageA55s() {
541
- var _a;
542
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
543
- throw new Error('Cannot access links on a new (unsaved) record');
544
- if (!this._blockageA55s) {
545
- this._blockageA55s = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
546
- sourceEntity: 'SchemaModule:File',
547
- targetEntity: 'FieldServiceModule:BlockageA55',
548
- targetModuleName: 'FieldServiceModule',
549
- targetEntityName: 'BlockageA55',
550
- labels: ['BlockageA55_File'],
551
- }, BlockageA55Record_1.BlockageA55Record);
552
- }
553
- return this._blockageA55s;
554
- }
555
- /**
556
- * Access linked Transaction records
557
- * @remarks Available labels: Transaction__File
558
- * @throws Error if called on a new (unsaved) record
559
- *
560
- * @example
561
- * ```typescript
562
- * // Get all linked Transaction records
563
- * const items = await record.transactions.list();
564
- * const first = await record.transactions.first();
565
- *
566
- * // Filter by label
567
- * const specific = await record.transactions.first({ label: 'Transaction__File' });
568
- * ```
569
- */
570
- get transactions() {
571
- var _a;
572
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
573
- throw new Error('Cannot access links on a new (unsaved) record');
574
- if (!this._transactions) {
575
- this._transactions = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
576
- sourceEntity: 'SchemaModule:File',
577
- targetEntity: 'BillingModule:Transaction',
578
- targetModuleName: 'BillingModule',
579
- targetEntityName: 'Transaction',
580
- labels: ['Transaction__File'],
581
- }, TransactionRecord_1.TransactionRecord);
582
- }
583
- return this._transactions;
584
- }
585
- /**
586
- * Access linked Note records
587
- * @remarks Available labels: File__Note, Note__File
588
- * @throws Error if called on a new (unsaved) record
589
- *
590
- * @example
591
- * ```typescript
592
- * // Get all linked Note records
593
- * const items = await record.notes.list();
594
- * const first = await record.notes.first();
595
- *
596
- * // Filter by label
597
- * const specific = await record.notes.first({ label: 'File__Note' });
598
- * ```
599
- */
600
- get notes() {
601
- var _a;
602
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
603
- throw new Error('Cannot access links on a new (unsaved) record');
604
- if (!this._notes) {
605
- this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
606
- sourceEntity: 'SchemaModule:File',
607
- targetEntity: 'SupportModule:Note',
608
- targetModuleName: 'SupportModule',
609
- targetEntityName: 'Note',
610
- labels: ['File__Note', 'Note__File'],
611
- }, NoteRecord_1.NoteRecord);
612
- }
613
- return this._notes;
614
- }
615
- /**
616
- * Access linked Email records
617
- * @remarks Available labels: Attachments
618
- * @throws Error if called on a new (unsaved) record
619
- *
620
- * @example
621
- * ```typescript
622
- * // Get all linked Email records
623
- * const items = await record.emails.list();
624
- * const first = await record.emails.first();
625
- *
626
- * // Filter by label
627
- * const specific = await record.emails.first({ label: 'Attachments' });
628
- * ```
629
- */
630
- get emails() {
631
- var _a;
632
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
633
- throw new Error('Cannot access links on a new (unsaved) record');
634
- if (!this._emails) {
635
- this._emails = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
636
- sourceEntity: 'SchemaModule:File',
637
- targetEntity: 'NotificationModule:Email',
638
- targetModuleName: 'NotificationModule',
639
- targetEntityName: 'Email',
640
- labels: ['Attachments'],
641
- }, EmailRecord_1.EmailRecord);
642
- }
643
- return this._emails;
644
- }
645
- /**
646
- * Access linked OneTouchSwitch records
647
- * @remarks Available labels: OneTouchSwitch_File
648
- * @throws Error if called on a new (unsaved) record
649
- *
650
- * @example
651
- * ```typescript
652
- * // Get all linked OneTouchSwitch records
653
- * const items = await record.oneTouchSwitches.list();
654
- * const first = await record.oneTouchSwitches.first();
655
- *
656
- * // Filter by label
657
- * const specific = await record.oneTouchSwitches.first({ label: 'OneTouchSwitch_File' });
658
- * ```
659
- */
660
- get oneTouchSwitches() {
661
- var _a;
662
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
663
- throw new Error('Cannot access links on a new (unsaved) record');
664
- if (!this._oneTouchSwitches) {
665
- this._oneTouchSwitches = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
666
- sourceEntity: 'SchemaModule:File',
667
- targetEntity: 'OrderModule:OneTouchSwitch',
668
- targetModuleName: 'OrderModule',
669
- targetEntityName: 'OneTouchSwitch',
670
- labels: ['OneTouchSwitch_File'],
671
- }, OneTouchSwitchRecord_1.OneTouchSwitchRecord);
672
- }
673
- return this._oneTouchSwitches;
674
- }
675
- /**
676
- * Access linked Activity records
677
- * @remarks Available labels: Activity__File
678
- * @throws Error if called on a new (unsaved) record
679
- *
680
- * @example
681
- * ```typescript
682
- * // Get all linked Activity records
683
- * const items = await record.activities.list();
684
- * const first = await record.activities.first();
685
- *
686
- * // Filter by label
687
- * const specific = await record.activities.first({ label: 'Activity__File' });
688
- * ```
689
- */
690
- get activities() {
691
- var _a;
692
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
693
- throw new Error('Cannot access links on a new (unsaved) record');
694
- if (!this._activities) {
695
- this._activities = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
696
- sourceEntity: 'SchemaModule:File',
697
- targetEntity: 'SchemaModule:Activity',
698
- targetModuleName: 'SchemaModule',
699
- targetEntityName: 'Activity',
700
- labels: ['Activity__File'],
701
- }, ActivityRecord_1.ActivityRecord);
702
- }
703
- return this._activities;
704
- }
705
- /**
706
- * Access linked RemediationRequiredReason records
707
- * @remarks Available labels: RemediationRequiredReason__File
708
- * @throws Error if called on a new (unsaved) record
709
- *
710
- * @example
711
- * ```typescript
712
- * // Get all linked RemediationRequiredReason records
713
- * const items = await record.remediationRequiredReasons.list();
714
- * const first = await record.remediationRequiredReasons.first();
715
- *
716
- * // Filter by label
717
- * const specific = await record.remediationRequiredReasons.first({ label: 'RemediationRequiredReason__File' });
718
- * ```
719
- */
720
- get remediationRequiredReasons() {
721
- var _a;
722
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
723
- throw new Error('Cannot access links on a new (unsaved) record');
724
- if (!this._remediationRequiredReasons) {
725
- this._remediationRequiredReasons = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
726
- sourceEntity: 'SchemaModule:File',
727
- targetEntity: 'FieldServiceModule:RemediationRequiredReason',
728
- targetModuleName: 'FieldServiceModule',
729
- targetEntityName: 'RemediationRequiredReason',
730
- labels: ['RemediationRequiredReason__File'],
731
- }, RemediationRequiredReasonRecord_1.RemediationRequiredReasonRecord);
732
- }
733
- return this._remediationRequiredReasons;
734
- }
735
- /**
736
- * Access linked KnowledgeArticle records
737
- * @remarks Available labels: KnowledgeArticle__File
738
- * @throws Error if called on a new (unsaved) record
739
- *
740
- * @example
741
- * ```typescript
742
- * // Get all linked KnowledgeArticle records
743
- * const items = await record.knowledgeArticles.list();
744
- * const first = await record.knowledgeArticles.first();
745
- *
746
- * // Filter by label
747
- * const specific = await record.knowledgeArticles.first({ label: 'KnowledgeArticle__File' });
748
- * ```
749
- */
750
- get knowledgeArticles() {
751
- var _a;
752
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
753
- throw new Error('Cannot access links on a new (unsaved) record');
754
- if (!this._knowledgeArticles) {
755
- this._knowledgeArticles = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
756
- sourceEntity: 'SchemaModule:File',
757
- targetEntity: 'SupportModule:KnowledgeArticle',
758
- targetModuleName: 'SupportModule',
759
- targetEntityName: 'KnowledgeArticle',
760
- labels: ['KnowledgeArticle__File'],
761
- }, KnowledgeArticleRecord_1.KnowledgeArticleRecord);
762
- }
763
- return this._knowledgeArticles;
764
- }
765
- /**
766
- * Access linked Lead records
767
- * @remarks Available labels: Lead__File
768
- * @throws Error if called on a new (unsaved) record
769
- *
770
- * @example
771
- * ```typescript
772
- * // Get all linked Lead records
773
- * const items = await record.leads.list();
774
- * const first = await record.leads.first();
775
- *
776
- * // Filter by label
777
- * const specific = await record.leads.first({ label: 'Lead__File' });
778
- * ```
779
- */
780
- get leads() {
781
- var _a;
782
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
783
- throw new Error('Cannot access links on a new (unsaved) record');
784
- if (!this._leads) {
785
- this._leads = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
786
- sourceEntity: 'SchemaModule:File',
787
- targetEntity: 'CrmModule:Lead',
788
- targetModuleName: 'CrmModule',
789
- targetEntityName: 'Lead',
790
- labels: ['Lead__File'],
791
- }, LeadRecord_1.LeadRecord);
792
- }
793
- return this._leads;
794
- }
795
- /**
796
- * Access linked Visit records
797
- * @remarks Available labels: Visit__File
798
- * @throws Error if called on a new (unsaved) record
799
- *
800
- * @example
801
- * ```typescript
802
- * // Get all linked Visit records
803
- * const items = await record.visits.list();
804
- * const first = await record.visits.first();
805
- *
806
- * // Filter by label
807
- * const specific = await record.visits.first({ label: 'Visit__File' });
808
- * ```
809
- */
810
- get visits() {
811
- var _a;
812
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
813
- throw new Error('Cannot access links on a new (unsaved) record');
814
- if (!this._visits) {
815
- this._visits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
816
- sourceEntity: 'SchemaModule:File',
817
- targetEntity: 'CrmModule:Visit',
818
- targetModuleName: 'CrmModule',
819
- targetEntityName: 'Visit',
820
- labels: ['Visit__File'],
821
- }, VisitRecord_1.VisitRecord);
822
- }
823
- return this._visits;
824
- }
825
- /**
826
- * Access linked CustomerDeviceRouter records
827
- * @remarks Available labels: CustomerDeviceRouter__File
828
- * @throws Error if called on a new (unsaved) record
829
- *
830
- * @example
831
- * ```typescript
832
- * // Get all linked CustomerDeviceRouter records
833
- * const items = await record.customerDeviceRouters.list();
834
- * const first = await record.customerDeviceRouters.first();
835
- *
836
- * // Filter by label
837
- * const specific = await record.customerDeviceRouters.first({ label: 'CustomerDeviceRouter__File' });
838
- * ```
839
- */
840
- get customerDeviceRouters() {
841
- var _a;
842
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
843
- throw new Error('Cannot access links on a new (unsaved) record');
844
- if (!this._customerDeviceRouters) {
845
- this._customerDeviceRouters = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
846
- sourceEntity: 'SchemaModule:File',
847
- targetEntity: 'ServiceModule:CustomerDeviceRouter',
848
- targetModuleName: 'ServiceModule',
849
- targetEntityName: 'CustomerDeviceRouter',
850
- labels: ['CustomerDeviceRouter__File'],
851
- }, CustomerDeviceRouterRecord_1.CustomerDeviceRouterRecord);
852
- }
853
- return this._customerDeviceRouters;
854
- }
855
- /**
856
- * Access linked ServiceVisitAudit records
857
- * @remarks Available labels: ServiceVisitAudit__File
858
- * @throws Error if called on a new (unsaved) record
859
- *
860
- * @example
861
- * ```typescript
862
- * // Get all linked ServiceVisitAudit records
863
- * const items = await record.serviceVisitAudits.list();
864
- * const first = await record.serviceVisitAudits.first();
865
- *
866
- * // Filter by label
867
- * const specific = await record.serviceVisitAudits.first({ label: 'ServiceVisitAudit__File' });
868
- * ```
869
- */
870
- get serviceVisitAudits() {
871
- var _a;
872
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
873
- throw new Error('Cannot access links on a new (unsaved) record');
874
- if (!this._serviceVisitAudits) {
875
- this._serviceVisitAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
876
- sourceEntity: 'SchemaModule:File',
877
- targetEntity: 'FieldServiceModule:ServiceVisitAudit',
878
- targetModuleName: 'FieldServiceModule',
879
- targetEntityName: 'ServiceVisitAudit',
880
- labels: ['ServiceVisitAudit__File'],
881
- }, ServiceVisitAuditRecord_1.ServiceVisitAuditRecord);
882
- }
883
- return this._serviceVisitAudits;
884
- }
885
- /**
886
- * Access linked ChangeReason records
887
- * @remarks Available labels: ChangeReason__File
888
- * @throws Error if called on a new (unsaved) record
889
- *
890
- * @example
891
- * ```typescript
892
- * // Get all linked ChangeReason records
893
- * const items = await record.changeReasons.list();
894
- * const first = await record.changeReasons.first();
895
- *
896
- * // Filter by label
897
- * const specific = await record.changeReasons.first({ label: 'ChangeReason__File' });
898
- * ```
899
- */
900
- get changeReasons() {
901
- var _a;
902
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
903
- throw new Error('Cannot access links on a new (unsaved) record');
904
- if (!this._changeReasons) {
905
- this._changeReasons = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
906
- sourceEntity: 'SchemaModule:File',
907
- targetEntity: 'FieldServiceModule:ChangeReason',
908
- targetModuleName: 'FieldServiceModule',
909
- targetEntityName: 'ChangeReason',
910
- labels: ['ChangeReason__File'],
911
- }, ChangeReasonRecord_1.ChangeReasonRecord);
912
- }
913
- return this._changeReasons;
914
- }
915
- /**
916
- * Access linked UgRetroAudit records
917
- * @remarks Available labels: UgRetroAudit__File
918
- * @throws Error if called on a new (unsaved) record
919
- *
920
- * @example
921
- * ```typescript
922
- * // Get all linked UgRetroAudit records
923
- * const items = await record.ugRetroAudits.list();
924
- * const first = await record.ugRetroAudits.first();
925
- *
926
- * // Filter by label
927
- * const specific = await record.ugRetroAudits.first({ label: 'UgRetroAudit__File' });
928
- * ```
929
- */
930
- get ugRetroAudits() {
931
- var _a;
932
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
933
- throw new Error('Cannot access links on a new (unsaved) record');
934
- if (!this._ugRetroAudits) {
935
- this._ugRetroAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
936
- sourceEntity: 'SchemaModule:File',
937
- targetEntity: 'FieldServiceModule:UgRetroAudit',
938
- targetModuleName: 'FieldServiceModule',
939
- targetEntityName: 'UgRetroAudit',
940
- labels: ['UgRetroAudit__File'],
941
- }, UgRetroAuditRecord_1.UgRetroAuditRecord);
942
- }
943
- return this._ugRetroAudits;
944
- }
945
- /**
946
- * Access linked PaymentMethod records
947
- * @remarks Available labels: PaymentMethod__File
948
- * @throws Error if called on a new (unsaved) record
949
- *
950
- * @example
951
- * ```typescript
952
- * // Get all linked PaymentMethod records
953
- * const items = await record.paymentMethods.list();
954
- * const first = await record.paymentMethods.first();
955
- *
956
- * // Filter by label
957
- * const specific = await record.paymentMethods.first({ label: 'PaymentMethod__File' });
958
- * ```
959
- */
960
- get paymentMethods() {
961
- var _a;
962
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
963
- throw new Error('Cannot access links on a new (unsaved) record');
964
- if (!this._paymentMethods) {
965
- this._paymentMethods = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
966
- sourceEntity: 'SchemaModule:File',
967
- targetEntity: 'BillingModule:PaymentMethod',
968
- targetModuleName: 'BillingModule',
969
- targetEntityName: 'PaymentMethod',
970
- labels: ['PaymentMethod__File'],
971
- }, PaymentMethodRecord_1.PaymentMethodRecord);
972
- }
973
- return this._paymentMethods;
974
- }
975
- /**
976
- * Access linked WorkOrder records
977
- * @remarks Available labels: WorkOrder__File
978
- * @throws Error if called on a new (unsaved) record
979
- *
980
- * @example
981
- * ```typescript
982
- * // Get all linked WorkOrder records
983
- * const items = await record.workOrders.list();
984
- * const first = await record.workOrders.first();
985
- *
986
- * // Filter by label
987
- * const specific = await record.workOrders.first({ label: 'WorkOrder__File' });
988
- * ```
989
- */
990
- get workOrders() {
991
- var _a;
992
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
993
- throw new Error('Cannot access links on a new (unsaved) record');
994
- if (!this._workOrders) {
995
- this._workOrders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
996
- sourceEntity: 'SchemaModule:File',
997
- targetEntity: 'FieldServiceModule:WorkOrder',
998
- targetModuleName: 'FieldServiceModule',
999
- targetEntityName: 'WorkOrder',
1000
- labels: ['WorkOrder__File'],
1001
- }, WorkOrderRecord_1.WorkOrderRecord);
1002
- }
1003
- return this._workOrders;
1004
- }
1005
- /**
1006
- * Access linked CustomerDeviceOnt records
1007
- * @remarks Available labels: CustomerDeviceOnt__File
1008
- * @throws Error if called on a new (unsaved) record
1009
- *
1010
- * @example
1011
- * ```typescript
1012
- * // Get all linked CustomerDeviceOnt records
1013
- * const items = await record.customerDeviceOnts.list();
1014
- * const first = await record.customerDeviceOnts.first();
1015
- *
1016
- * // Filter by label
1017
- * const specific = await record.customerDeviceOnts.first({ label: 'CustomerDeviceOnt__File' });
1018
- * ```
1019
- */
1020
- get customerDeviceOnts() {
1021
- var _a;
1022
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1023
- throw new Error('Cannot access links on a new (unsaved) record');
1024
- if (!this._customerDeviceOnts) {
1025
- this._customerDeviceOnts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1026
- sourceEntity: 'SchemaModule:File',
1027
- targetEntity: 'ServiceModule:CustomerDeviceOnt',
1028
- targetModuleName: 'ServiceModule',
1029
- targetEntityName: 'CustomerDeviceOnt',
1030
- labels: ['CustomerDeviceOnt__File'],
1031
- }, CustomerDeviceOntRecord_1.CustomerDeviceOntRecord);
1032
- }
1033
- return this._customerDeviceOnts;
1034
- }
1035
- /**
1036
- * Access linked InternalInstallAudit records
1037
- * @remarks Available labels: InternalInstallAudit_File
1038
- * @throws Error if called on a new (unsaved) record
1039
- *
1040
- * @example
1041
- * ```typescript
1042
- * // Get all linked InternalInstallAudit records
1043
- * const items = await record.internalInstallAudits.list();
1044
- * const first = await record.internalInstallAudits.first();
1045
- *
1046
- * // Filter by label
1047
- * const specific = await record.internalInstallAudits.first({ label: 'InternalInstallAudit_File' });
1048
- * ```
1049
- */
1050
- get internalInstallAudits() {
1051
- var _a;
1052
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1053
- throw new Error('Cannot access links on a new (unsaved) record');
1054
- if (!this._internalInstallAudits) {
1055
- this._internalInstallAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1056
- sourceEntity: 'SchemaModule:File',
1057
- targetEntity: 'FieldServiceModule:InternalInstallAudit',
1058
- targetModuleName: 'FieldServiceModule',
1059
- targetEntityName: 'InternalInstallAudit',
1060
- labels: ['InternalInstallAudit_File'],
1061
- }, InternalInstallAuditRecord_1.InternalInstallAuditRecord);
1062
- }
1063
- return this._internalInstallAudits;
1064
- }
1065
- /**
1066
- * Access linked ServiceAppointment records
1067
- * @remarks Available labels: ServiceAppointment__File
1068
- * @throws Error if called on a new (unsaved) record
1069
- *
1070
- * @example
1071
- * ```typescript
1072
- * // Get all linked ServiceAppointment records
1073
- * const items = await record.serviceAppointments.list();
1074
- * const first = await record.serviceAppointments.first();
1075
- *
1076
- * // Filter by label
1077
- * const specific = await record.serviceAppointments.first({ label: 'ServiceAppointment__File' });
1078
- * ```
1079
- */
1080
- get serviceAppointments() {
1081
- var _a;
1082
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1083
- throw new Error('Cannot access links on a new (unsaved) record');
1084
- if (!this._serviceAppointments) {
1085
- this._serviceAppointments = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1086
- sourceEntity: 'SchemaModule:File',
1087
- targetEntity: 'FieldServiceModule:ServiceAppointment',
1088
- targetModuleName: 'FieldServiceModule',
1089
- targetEntityName: 'ServiceAppointment',
1090
- labels: ['ServiceAppointment__File'],
1091
- }, ServiceAppointmentRecord_1.ServiceAppointmentRecord);
1092
- }
1093
- return this._serviceAppointments;
1094
- }
1095
- /**
1096
- * Access linked WayleaveAudit records
1097
- * @remarks Available labels: WayleaveAudit_File
1098
- * @throws Error if called on a new (unsaved) record
1099
- *
1100
- * @example
1101
- * ```typescript
1102
- * // Get all linked WayleaveAudit records
1103
- * const items = await record.wayleaveAudits.list();
1104
- * const first = await record.wayleaveAudits.first();
1105
- *
1106
- * // Filter by label
1107
- * const specific = await record.wayleaveAudits.first({ label: 'WayleaveAudit_File' });
1108
- * ```
1109
- */
1110
- get wayleaveAudits() {
1111
- var _a;
1112
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1113
- throw new Error('Cannot access links on a new (unsaved) record');
1114
- if (!this._wayleaveAudits) {
1115
- this._wayleaveAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1116
- sourceEntity: 'SchemaModule:File',
1117
- targetEntity: 'FieldServiceModule:WayleaveAudit',
1118
- targetModuleName: 'FieldServiceModule',
1119
- targetEntityName: 'WayleaveAudit',
1120
- labels: ['WayleaveAudit_File'],
1121
- }, WayleaveAuditRecord_1.WayleaveAuditRecord);
1122
- }
1123
- return this._wayleaveAudits;
1124
- }
1125
- /**
1126
- * Access linked Discount records
1127
- * @remarks Available labels: Discount__File
1128
- * @throws Error if called on a new (unsaved) record
1129
- *
1130
- * @example
1131
- * ```typescript
1132
- * // Get all linked Discount records
1133
- * const items = await record.discounts.list();
1134
- * const first = await record.discounts.first();
1135
- *
1136
- * // Filter by label
1137
- * const specific = await record.discounts.first({ label: 'Discount__File' });
1138
- * ```
1139
- */
1140
- get discounts() {
1141
- var _a;
1142
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1143
- throw new Error('Cannot access links on a new (unsaved) record');
1144
- if (!this._discounts) {
1145
- this._discounts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1146
- sourceEntity: 'SchemaModule:File',
1147
- targetEntity: 'ProductModule:Discount',
1148
- targetModuleName: 'ProductModule',
1149
- targetEntityName: 'Discount',
1150
- labels: ['Discount__File'],
1151
- }, DiscountRecord_1.DiscountRecord);
1152
- }
1153
- return this._discounts;
1154
- }
1155
- /**
1156
- * Access linked Order records
1157
- * @remarks Available labels: Order__File
1158
- * @throws Error if called on a new (unsaved) record
1159
- *
1160
- * @example
1161
- * ```typescript
1162
- * // Get all linked Order records
1163
- * const items = await record.orders.list();
1164
- * const first = await record.orders.first();
1165
- *
1166
- * // Filter by label
1167
- * const specific = await record.orders.first({ label: 'Order__File' });
1168
- * ```
1169
- */
1170
- get orders() {
1171
- var _a;
1172
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1173
- throw new Error('Cannot access links on a new (unsaved) record');
1174
- if (!this._orders) {
1175
- this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1176
- sourceEntity: 'SchemaModule:File',
1177
- targetEntity: 'OrderModule:Order',
1178
- targetModuleName: 'OrderModule',
1179
- targetEntityName: 'Order',
1180
- labels: ['Order__File'],
1181
- }, OrderRecord_1.OrderRecord);
1182
- }
1183
- return this._orders;
1184
- }
1185
- /**
1186
- * Access linked Call records
1187
- * @remarks Available labels: Call__File
1188
- * @throws Error if called on a new (unsaved) record
1189
- *
1190
- * @example
1191
- * ```typescript
1192
- * // Get all linked Call records
1193
- * const items = await record.calls.list();
1194
- * const first = await record.calls.first();
1195
- *
1196
- * // Filter by label
1197
- * const specific = await record.calls.first({ label: 'Call__File' });
1198
- * ```
1199
- */
1200
- get calls() {
1201
- var _a;
1202
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1203
- throw new Error('Cannot access links on a new (unsaved) record');
1204
- if (!this._calls) {
1205
- this._calls = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1206
- sourceEntity: 'SchemaModule:File',
1207
- targetEntity: 'NotificationModule:Call',
1208
- targetModuleName: 'NotificationModule',
1209
- targetEntityName: 'Call',
1210
- labels: ['Call__File'],
1211
- }, CallRecord_1.CallRecord);
1212
- }
1213
- return this._calls;
1214
- }
1215
- /**
1216
- * Access linked OhExternalAudit records
1217
- * @remarks Available labels: OhExternalAudit_File
1218
- * @throws Error if called on a new (unsaved) record
1219
- *
1220
- * @example
1221
- * ```typescript
1222
- * // Get all linked OhExternalAudit records
1223
- * const items = await record.ohExternalAudits.list();
1224
- * const first = await record.ohExternalAudits.first();
1225
- *
1226
- * // Filter by label
1227
- * const specific = await record.ohExternalAudits.first({ label: 'OhExternalAudit_File' });
1228
- * ```
1229
- */
1230
- get ohExternalAudits() {
1231
- var _a;
1232
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1233
- throw new Error('Cannot access links on a new (unsaved) record');
1234
- if (!this._ohExternalAudits) {
1235
- this._ohExternalAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1236
- sourceEntity: 'SchemaModule:File',
1237
- targetEntity: 'FieldServiceModule:OhExternalAudit',
1238
- targetModuleName: 'FieldServiceModule',
1239
- targetEntityName: 'OhExternalAudit',
1240
- labels: ['OhExternalAudit_File'],
1241
- }, OhExternalAuditRecord_1.OhExternalAuditRecord);
1242
- }
1243
- return this._ohExternalAudits;
1244
- }
1245
- /**
1246
- * Access linked Case records
1247
- * @remarks Available labels: Case__File
1248
- * @throws Error if called on a new (unsaved) record
1249
- *
1250
- * @example
1251
- * ```typescript
1252
- * // Get all linked Case records
1253
- * const items = await record.cases.list();
1254
- * const first = await record.cases.first();
1255
- *
1256
- * // Filter by label
1257
- * const specific = await record.cases.first({ label: 'Case__File' });
1258
- * ```
1259
- */
1260
- get cases() {
1261
- var _a;
1262
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1263
- throw new Error('Cannot access links on a new (unsaved) record');
1264
- if (!this._cases) {
1265
- this._cases = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1266
- sourceEntity: 'SchemaModule:File',
1267
- targetEntity: 'SupportModule:Case',
1268
- targetModuleName: 'SupportModule',
1269
- targetEntityName: 'Case',
1270
- labels: ['Case__File'],
1271
- }, CaseRecord_1.CaseRecord);
1272
- }
1273
- return this._cases;
1274
- }
1275
- /**
1276
- * Access linked UgExternalAudit records
1277
- * @remarks Available labels: UgExternalAudit_File
1278
- * @throws Error if called on a new (unsaved) record
1279
- *
1280
- * @example
1281
- * ```typescript
1282
- * // Get all linked UgExternalAudit records
1283
- * const items = await record.ugExternalAudits.list();
1284
- * const first = await record.ugExternalAudits.first();
1285
- *
1286
- * // Filter by label
1287
- * const specific = await record.ugExternalAudits.first({ label: 'UgExternalAudit_File' });
1288
- * ```
1289
- */
1290
- get ugExternalAudits() {
1291
- var _a;
1292
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1293
- throw new Error('Cannot access links on a new (unsaved) record');
1294
- if (!this._ugExternalAudits) {
1295
- this._ugExternalAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1296
- sourceEntity: 'SchemaModule:File',
1297
- targetEntity: 'FieldServiceModule:UgExternalAudit',
1298
- targetModuleName: 'FieldServiceModule',
1299
- targetEntityName: 'UgExternalAudit',
1300
- labels: ['UgExternalAudit_File'],
1301
- }, UgExternalAuditRecord_1.UgExternalAuditRecord);
1302
- }
1303
- return this._ugExternalAudits;
1304
- }
1305
- /**
1306
- * Access linked OhRetroAudit records
1307
- * @remarks Available labels: OhRetroAudit__File
1308
- * @throws Error if called on a new (unsaved) record
1309
- *
1310
- * @example
1311
- * ```typescript
1312
- * // Get all linked OhRetroAudit records
1313
- * const items = await record.ohRetroAudits.list();
1314
- * const first = await record.ohRetroAudits.first();
1315
- *
1316
- * // Filter by label
1317
- * const specific = await record.ohRetroAudits.first({ label: 'OhRetroAudit__File' });
1318
- * ```
1319
- */
1320
- get ohRetroAudits() {
1321
- var _a;
1322
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1323
- throw new Error('Cannot access links on a new (unsaved) record');
1324
- if (!this._ohRetroAudits) {
1325
- this._ohRetroAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1326
- sourceEntity: 'SchemaModule:File',
1327
- targetEntity: 'FieldServiceModule:OhRetroAudit',
1328
- targetModuleName: 'FieldServiceModule',
1329
- targetEntityName: 'OhRetroAudit',
1330
- labels: ['OhRetroAudit__File'],
1331
- }, OhRetroAuditRecord_1.OhRetroAuditRecord);
1332
- }
1333
- return this._ohRetroAudits;
1334
- }
1335
- /**
1336
- * Access linked UgInProgressAudit records
1337
- * @remarks Available labels: UgInProgressAudit_File
1338
- * @throws Error if called on a new (unsaved) record
1339
- *
1340
- * @example
1341
- * ```typescript
1342
- * // Get all linked UgInProgressAudit records
1343
- * const items = await record.ugInProgressAudits.list();
1344
- * const first = await record.ugInProgressAudits.first();
1345
- *
1346
- * // Filter by label
1347
- * const specific = await record.ugInProgressAudits.first({ label: 'UgInProgressAudit_File' });
1348
- * ```
1349
- */
1350
- get ugInProgressAudits() {
1351
- var _a;
1352
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1353
- throw new Error('Cannot access links on a new (unsaved) record');
1354
- if (!this._ugInProgressAudits) {
1355
- this._ugInProgressAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1356
- sourceEntity: 'SchemaModule:File',
1357
- targetEntity: 'FieldServiceModule:UgInProgressAudit',
1358
- targetModuleName: 'FieldServiceModule',
1359
- targetEntityName: 'UgInProgressAudit',
1360
- labels: ['UgInProgressAudit_File'],
1361
- }, UgInProgressAuditRecord_1.UgInProgressAuditRecord);
1362
- }
1363
- return this._ugInProgressAudits;
1364
- }
1365
- /**
1366
- * Access linked BillingAdjustment records
1367
- * @remarks Available labels: BillingAdjustment__File
1368
- * @throws Error if called on a new (unsaved) record
1369
- *
1370
- * @example
1371
- * ```typescript
1372
- * // Get all linked BillingAdjustment records
1373
- * const items = await record.billingAdjustments.list();
1374
- * const first = await record.billingAdjustments.first();
1375
- *
1376
- * // Filter by label
1377
- * const specific = await record.billingAdjustments.first({ label: 'BillingAdjustment__File' });
1378
- * ```
1379
- */
1380
- get billingAdjustments() {
1381
- var _a;
1382
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1383
- throw new Error('Cannot access links on a new (unsaved) record');
1384
- if (!this._billingAdjustments) {
1385
- this._billingAdjustments = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1386
- sourceEntity: 'SchemaModule:File',
1387
- targetEntity: 'OrderModule:BillingAdjustment',
1388
- targetModuleName: 'OrderModule',
1389
- targetEntityName: 'BillingAdjustment',
1390
- labels: ['BillingAdjustment__File'],
1391
- }, BillingAdjustmentRecord_1.BillingAdjustmentRecord);
1392
- }
1393
- return this._billingAdjustments;
1394
- }
1395
- /**
1396
- * Access linked RemediationOutcomeForm records
1397
- * @remarks Available labels: RemediationOutcomeForm_File
1398
- * @throws Error if called on a new (unsaved) record
1399
- *
1400
- * @example
1401
- * ```typescript
1402
- * // Get all linked RemediationOutcomeForm records
1403
- * const items = await record.remediationOutcomeForms.list();
1404
- * const first = await record.remediationOutcomeForms.first();
1405
- *
1406
- * // Filter by label
1407
- * const specific = await record.remediationOutcomeForms.first({ label: 'RemediationOutcomeForm_File' });
1408
- * ```
1409
- */
1410
- get remediationOutcomeForms() {
1411
- var _a;
1412
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1413
- throw new Error('Cannot access links on a new (unsaved) record');
1414
- if (!this._remediationOutcomeForms) {
1415
- this._remediationOutcomeForms = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1416
- sourceEntity: 'SchemaModule:File',
1417
- targetEntity: 'FieldServiceModule:RemediationOutcomeForm',
1418
- targetModuleName: 'FieldServiceModule',
1419
- targetEntityName: 'RemediationOutcomeForm',
1420
- labels: ['RemediationOutcomeForm_File'],
1421
- }, RemediationOutcomeFormRecord_1.RemediationOutcomeFormRecord);
1422
- }
1423
- return this._remediationOutcomeForms;
1424
- }
1425
- /**
1426
- * Access linked Contact records
1427
- * @remarks Available labels: Contact__File
1428
- * @throws Error if called on a new (unsaved) record
1429
- *
1430
- * @example
1431
- * ```typescript
1432
- * // Get all linked Contact records
1433
- * const items = await record.contacts.list();
1434
- * const first = await record.contacts.first();
1435
- *
1436
- * // Filter by label
1437
- * const specific = await record.contacts.first({ label: 'Contact__File' });
1438
- * ```
1439
- */
1440
- get contacts() {
1441
- var _a;
1442
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1443
- throw new Error('Cannot access links on a new (unsaved) record');
1444
- if (!this._contacts) {
1445
- this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1446
- sourceEntity: 'SchemaModule:File',
1447
- targetEntity: 'CrmModule:Contact',
1448
- targetModuleName: 'CrmModule',
1449
- targetEntityName: 'Contact',
1450
- labels: ['Contact__File'],
1451
- }, ContactRecord_1.ContactRecord);
1452
- }
1453
- return this._contacts;
1454
- }
1455
- /**
1456
- * Access linked SweeperMaintenanceAudit records
1457
- * @remarks Available labels: SweeperMaintenanceAudit__File
1458
- * @throws Error if called on a new (unsaved) record
1459
- *
1460
- * @example
1461
- * ```typescript
1462
- * // Get all linked SweeperMaintenanceAudit records
1463
- * const items = await record.sweeperMaintenanceAudits.list();
1464
- * const first = await record.sweeperMaintenanceAudits.first();
1465
- *
1466
- * // Filter by label
1467
- * const specific = await record.sweeperMaintenanceAudits.first({ label: 'SweeperMaintenanceAudit__File' });
1468
- * ```
1469
- */
1470
- get sweeperMaintenanceAudits() {
1471
- var _a;
1472
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1473
- throw new Error('Cannot access links on a new (unsaved) record');
1474
- if (!this._sweeperMaintenanceAudits) {
1475
- this._sweeperMaintenanceAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1476
- sourceEntity: 'SchemaModule:File',
1477
- targetEntity: 'FieldServiceModule:SweeperMaintenanceAudit',
1478
- targetModuleName: 'FieldServiceModule',
1479
- targetEntityName: 'SweeperMaintenanceAudit',
1480
- labels: ['SweeperMaintenanceAudit__File'],
1481
- }, SweeperMaintenanceAuditRecord_1.SweeperMaintenanceAuditRecord);
1482
- }
1483
- return this._sweeperMaintenanceAudits;
1484
- }
1485
- /**
1486
- * Access linked OhInstallationAudit records
1487
- * @remarks Available labels: OhInstallationAudit__File
1488
- * @throws Error if called on a new (unsaved) record
1489
- *
1490
- * @example
1491
- * ```typescript
1492
- * // Get all linked OhInstallationAudit records
1493
- * const items = await record.ohInstallationAudits.list();
1494
- * const first = await record.ohInstallationAudits.first();
1495
- *
1496
- * // Filter by label
1497
- * const specific = await record.ohInstallationAudits.first({ label: 'OhInstallationAudit__File' });
1498
- * ```
1499
- */
1500
- get ohInstallationAudits() {
1501
- var _a;
1502
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1503
- throw new Error('Cannot access links on a new (unsaved) record');
1504
- if (!this._ohInstallationAudits) {
1505
- this._ohInstallationAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1506
- sourceEntity: 'SchemaModule:File',
1507
- targetEntity: 'FieldServiceModule:OhInstallationAudit',
1508
- targetModuleName: 'FieldServiceModule',
1509
- targetEntityName: 'OhInstallationAudit',
1510
- labels: ['OhInstallationAudit__File'],
1511
- }, OhInstallationAuditRecord_1.OhInstallationAuditRecord);
1512
- }
1513
- return this._ohInstallationAudits;
1514
- }
1515
- /**
1516
- * Access linked YfFieldServiceVisit records
1517
- * @remarks Available labels: YfFieldServiceVisit__File
1518
- * @throws Error if called on a new (unsaved) record
1519
- *
1520
- * @example
1521
- * ```typescript
1522
- * // Get all linked YfFieldServiceVisit records
1523
- * const items = await record.yfFieldServiceVisits.list();
1524
- * const first = await record.yfFieldServiceVisits.first();
1525
- *
1526
- * // Filter by label
1527
- * const specific = await record.yfFieldServiceVisits.first({ label: 'YfFieldServiceVisit__File' });
1528
- * ```
1529
- */
1530
- get yfFieldServiceVisits() {
1531
- var _a;
1532
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1533
- throw new Error('Cannot access links on a new (unsaved) record');
1534
- if (!this._yfFieldServiceVisits) {
1535
- this._yfFieldServiceVisits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1536
- sourceEntity: 'SchemaModule:File',
1537
- targetEntity: 'FieldServiceModule:YfFieldServiceVisit',
1538
- targetModuleName: 'FieldServiceModule',
1539
- targetEntityName: 'YfFieldServiceVisit',
1540
- labels: ['YfFieldServiceVisit__File'],
1541
- }, YfFieldServiceVisitRecord_1.YfFieldServiceVisitRecord);
1542
- }
1543
- return this._yfFieldServiceVisits;
1544
- }
1545
- /**
1546
- * Access linked BillingRequest records
1547
- * @remarks Available labels: BillingRequest__File
1548
- * @throws Error if called on a new (unsaved) record
1549
- *
1550
- * @example
1551
- * ```typescript
1552
- * // Get all linked BillingRequest records
1553
- * const items = await record.billingRequests.list();
1554
- * const first = await record.billingRequests.first();
1555
- *
1556
- * // Filter by label
1557
- * const specific = await record.billingRequests.first({ label: 'BillingRequest__File' });
1558
- * ```
1559
- */
1560
- get billingRequests() {
1561
- var _a;
1562
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1563
- throw new Error('Cannot access links on a new (unsaved) record');
1564
- if (!this._billingRequests) {
1565
- this._billingRequests = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1566
- sourceEntity: 'SchemaModule:File',
1567
- targetEntity: 'BillingModule:BillingRequest',
1568
- targetModuleName: 'BillingModule',
1569
- targetEntityName: 'BillingRequest',
1570
- labels: ['BillingRequest__File'],
1571
- }, BillingRequestRecord_1.BillingRequestRecord);
1572
- }
1573
- return this._billingRequests;
1574
- }
1575
- /**
1576
- * Access linked OhAuditOfInstallation records
1577
- * @remarks Available labels: OhAuditOfInstallation__File
1578
- * @throws Error if called on a new (unsaved) record
1579
- *
1580
- * @example
1581
- * ```typescript
1582
- * // Get all linked OhAuditOfInstallation records
1583
- * const items = await record.ohAuditOfInstallations.list();
1584
- * const first = await record.ohAuditOfInstallations.first();
1585
- *
1586
- * // Filter by label
1587
- * const specific = await record.ohAuditOfInstallations.first({ label: 'OhAuditOfInstallation__File' });
1588
- * ```
1589
- */
1590
- get ohAuditOfInstallations() {
1591
- var _a;
1592
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1593
- throw new Error('Cannot access links on a new (unsaved) record');
1594
- if (!this._ohAuditOfInstallations) {
1595
- this._ohAuditOfInstallations = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1596
- sourceEntity: 'SchemaModule:File',
1597
- targetEntity: 'FieldServiceModule:OhAuditOfInstallation',
1598
- targetModuleName: 'FieldServiceModule',
1599
- targetEntityName: 'OhAuditOfInstallation',
1600
- labels: ['OhAuditOfInstallation__File'],
1601
- }, OhAuditOfInstallationRecord_1.OhAuditOfInstallationRecord);
1602
- }
1603
- return this._ohAuditOfInstallations;
1604
- }
1605
- /**
1606
- * Access linked UgInstallationAudit records
1607
- * @remarks Available labels: UgInstallationAudit__File
1608
- * @throws Error if called on a new (unsaved) record
1609
- *
1610
- * @example
1611
- * ```typescript
1612
- * // Get all linked UgInstallationAudit records
1613
- * const items = await record.ugInstallationAudits.list();
1614
- * const first = await record.ugInstallationAudits.first();
1615
- *
1616
- * // Filter by label
1617
- * const specific = await record.ugInstallationAudits.first({ label: 'UgInstallationAudit__File' });
1618
- * ```
1619
- */
1620
- get ugInstallationAudits() {
1621
- var _a;
1622
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1623
- throw new Error('Cannot access links on a new (unsaved) record');
1624
- if (!this._ugInstallationAudits) {
1625
- this._ugInstallationAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1626
- sourceEntity: 'SchemaModule:File',
1627
- targetEntity: 'FieldServiceModule:UgInstallationAudit',
1628
- targetModuleName: 'FieldServiceModule',
1629
- targetEntityName: 'UgInstallationAudit',
1630
- labels: ['UgInstallationAudit__File'],
1631
- }, UgInstallationAuditRecord_1.UgInstallationAuditRecord);
1632
- }
1633
- return this._ugInstallationAudits;
1634
- }
1635
- /**
1636
- * Access linked OverlayRealA55 records
1637
- * @remarks Available labels: OverlayRealA55_File
1638
- * @throws Error if called on a new (unsaved) record
1639
- *
1640
- * @example
1641
- * ```typescript
1642
- * // Get all linked OverlayRealA55 records
1643
- * const items = await record.overlayRealA55s.list();
1644
- * const first = await record.overlayRealA55s.first();
1645
- *
1646
- * // Filter by label
1647
- * const specific = await record.overlayRealA55s.first({ label: 'OverlayRealA55_File' });
1648
- * ```
1649
- */
1650
- get overlayRealA55s() {
1651
- var _a;
1652
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1653
- throw new Error('Cannot access links on a new (unsaved) record');
1654
- if (!this._overlayRealA55s) {
1655
- this._overlayRealA55s = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1656
- sourceEntity: 'SchemaModule:File',
1657
- targetEntity: 'FieldServiceModule:OverlayRealA55',
1658
- targetModuleName: 'FieldServiceModule',
1659
- targetEntityName: 'OverlayRealA55',
1660
- labels: ['OverlayRealA55_File'],
1661
- }, OverlayRealA55Record_1.OverlayRealA55Record);
1662
- }
1663
- return this._overlayRealA55s;
1664
- }
1665
- /**
1666
- * Access linked UgAuditOfInstallation records
1667
- * @remarks Available labels: UgAuditOfInstallation__File
1668
- * @throws Error if called on a new (unsaved) record
1669
- *
1670
- * @example
1671
- * ```typescript
1672
- * // Get all linked UgAuditOfInstallation records
1673
- * const items = await record.ugAuditOfInstallations.list();
1674
- * const first = await record.ugAuditOfInstallations.first();
1675
- *
1676
- * // Filter by label
1677
- * const specific = await record.ugAuditOfInstallations.first({ label: 'UgAuditOfInstallation__File' });
1678
- * ```
1679
- */
1680
- get ugAuditOfInstallations() {
1681
- var _a;
1682
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1683
- throw new Error('Cannot access links on a new (unsaved) record');
1684
- if (!this._ugAuditOfInstallations) {
1685
- this._ugAuditOfInstallations = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1686
- sourceEntity: 'SchemaModule:File',
1687
- targetEntity: 'FieldServiceModule:UgAuditOfInstallation',
1688
- targetModuleName: 'FieldServiceModule',
1689
- targetEntityName: 'UgAuditOfInstallation',
1690
- labels: ['UgAuditOfInstallation__File'],
1691
- }, UgAuditOfInstallationRecord_1.UgAuditOfInstallationRecord);
1692
- }
1693
- return this._ugAuditOfInstallations;
1694
- }
1695
- /**
1696
- * Access linked CreditNote records
1697
- * @remarks Available labels: CreditNote__File
1698
- * @throws Error if called on a new (unsaved) record
1699
- *
1700
- * @example
1701
- * ```typescript
1702
- * // Get all linked CreditNote records
1703
- * const items = await record.creditNotes.list();
1704
- * const first = await record.creditNotes.first();
1705
- *
1706
- * // Filter by label
1707
- * const specific = await record.creditNotes.first({ label: 'CreditNote__File' });
1708
- * ```
1709
- */
1710
- get creditNotes() {
1711
- var _a;
1712
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1713
- throw new Error('Cannot access links on a new (unsaved) record');
1714
- if (!this._creditNotes) {
1715
- this._creditNotes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1716
- sourceEntity: 'SchemaModule:File',
1717
- targetEntity: 'BillingModule:CreditNote',
1718
- targetModuleName: 'BillingModule',
1719
- targetEntityName: 'CreditNote',
1720
- labels: ['CreditNote__File'],
1721
- }, CreditNoteRecord_1.CreditNoteRecord);
1722
- }
1723
- return this._creditNotes;
1724
- }
1725
- /**
1726
- * Access linked Invoice records
1727
- * @remarks Available labels: Invoice__File
1728
- * @throws Error if called on a new (unsaved) record
1729
- *
1730
- * @example
1731
- * ```typescript
1732
- * // Get all linked Invoice records
1733
- * const items = await record.invoices.list();
1734
- * const first = await record.invoices.first();
1735
- *
1736
- * // Filter by label
1737
- * const specific = await record.invoices.first({ label: 'Invoice__File' });
1738
- * ```
1739
- */
1740
- get invoices() {
1741
- var _a;
1742
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1743
- throw new Error('Cannot access links on a new (unsaved) record');
1744
- if (!this._invoices) {
1745
- this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1746
- sourceEntity: 'SchemaModule:File',
1747
- targetEntity: 'BillingModule:Invoice',
1748
- targetModuleName: 'BillingModule',
1749
- targetEntityName: 'Invoice',
1750
- labels: ['Invoice__File'],
1751
- }, InvoiceRecord_1.InvoiceRecord);
1752
- }
1753
- return this._invoices;
1754
- }
1755
- /**
1756
- * Access linked ContractBuyOut records
1757
- * @remarks Available labels: ContractBuyOut__File
1758
- * @throws Error if called on a new (unsaved) record
1759
- *
1760
- * @example
1761
- * ```typescript
1762
- * // Get all linked ContractBuyOut records
1763
- * const items = await record.contractBuyOuts.list();
1764
- * const first = await record.contractBuyOuts.first();
1765
- *
1766
- * // Filter by label
1767
- * const specific = await record.contractBuyOuts.first({ label: 'ContractBuyOut__File' });
1768
- * ```
1769
- */
1770
- get contractBuyOuts() {
1771
- var _a;
1772
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1773
- throw new Error('Cannot access links on a new (unsaved) record');
1774
- if (!this._contractBuyOuts) {
1775
- this._contractBuyOuts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1776
- sourceEntity: 'SchemaModule:File',
1777
- targetEntity: 'OrderModule:ContractBuyOut',
1778
- targetModuleName: 'OrderModule',
1779
- targetEntityName: 'ContractBuyOut',
1780
- labels: ['ContractBuyOut__File'],
1781
- }, ContractBuyOutRecord_1.ContractBuyOutRecord);
1782
- }
1783
- return this._contractBuyOuts;
1784
- }
1785
- /**
1786
- * Access linked Account records
1787
- * @remarks Available labels: Account__File
1788
- * @throws Error if called on a new (unsaved) record
1789
- *
1790
- * @example
1791
- * ```typescript
1792
- * // Get all linked Account records
1793
- * const items = await record.accounts.list();
1794
- * const first = await record.accounts.first();
1795
- *
1796
- * // Filter by label
1797
- * const specific = await record.accounts.first({ label: 'Account__File' });
1798
- * ```
1799
- */
1800
- get accounts() {
1801
- var _a;
1802
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1803
- throw new Error('Cannot access links on a new (unsaved) record');
1804
- if (!this._accounts) {
1805
- this._accounts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1806
- sourceEntity: 'SchemaModule:File',
1807
- targetEntity: 'CrmModule:Account',
1808
- targetModuleName: 'CrmModule',
1809
- targetEntityName: 'Account',
1810
- labels: ['Account__File'],
1811
- }, AccountRecord_1.AccountRecord);
1812
- }
1813
- return this._accounts;
1814
- }
1815
- /**
1816
- * Access linked OrderItem records
1817
- * @remarks Available labels: OrderItem__File
1818
- * @throws Error if called on a new (unsaved) record
1819
- *
1820
- * @example
1821
- * ```typescript
1822
- * // Get all linked OrderItem records
1823
- * const items = await record.orderItems.list();
1824
- * const first = await record.orderItems.first();
1825
- *
1826
- * // Filter by label
1827
- * const specific = await record.orderItems.first({ label: 'OrderItem__File' });
1828
- * ```
1829
- */
1830
- get orderItems() {
1831
- var _a;
1832
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1833
- throw new Error('Cannot access links on a new (unsaved) record');
1834
- if (!this._orderItems) {
1835
- this._orderItems = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1836
- sourceEntity: 'SchemaModule:File',
1837
- targetEntity: 'OrderModule:OrderItem',
1838
- targetModuleName: 'OrderModule',
1839
- targetEntityName: 'OrderItem',
1840
- labels: ['OrderItem__File'],
1841
- }, OrderItemRecord_1.OrderItemRecord);
1842
- }
1843
- return this._orderItems;
1844
- }
1845
- /**
1846
- * Access linked PgDirectDebitFile records
1847
- * @remarks Available labels: PgDirectDebitFile__File
1848
- * @throws Error if called on a new (unsaved) record
1849
- *
1850
- * @example
1851
- * ```typescript
1852
- * // Get all linked PgDirectDebitFile records
1853
- * const items = await record.pgDirectDebitFiles.list();
1854
- * const first = await record.pgDirectDebitFiles.first();
1855
- *
1856
- * // Filter by label
1857
- * const specific = await record.pgDirectDebitFiles.first({ label: 'PgDirectDebitFile__File' });
1858
- * ```
1859
- */
1860
- get pgDirectDebitFiles() {
1861
- var _a;
1862
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1863
- throw new Error('Cannot access links on a new (unsaved) record');
1864
- if (!this._pgDirectDebitFiles) {
1865
- this._pgDirectDebitFiles = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1866
- sourceEntity: 'SchemaModule:File',
1867
- targetEntity: 'BillingModule:PgDirectDebitFile',
1868
- targetModuleName: 'BillingModule',
1869
- targetEntityName: 'PgDirectDebitFile',
1870
- labels: ['PgDirectDebitFile__File'],
1871
- }, PgDirectDebitFileRecord_1.PgDirectDebitFileRecord);
1872
- }
1873
- return this._pgDirectDebitFiles;
1874
- }
1875
- /**
1876
- * Access linked YfStockAudit records
1877
- * @remarks Available labels: YfStockAudit__File
1878
- * @throws Error if called on a new (unsaved) record
1879
- *
1880
- * @example
1881
- * ```typescript
1882
- * // Get all linked YfStockAudit records
1883
- * const items = await record.yfStockAudits.list();
1884
- * const first = await record.yfStockAudits.first();
1885
- *
1886
- * // Filter by label
1887
- * const specific = await record.yfStockAudits.first({ label: 'YfStockAudit__File' });
1888
- * ```
1889
- */
1890
- get yfStockAudits() {
1891
- var _a;
1892
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1893
- throw new Error('Cannot access links on a new (unsaved) record');
1894
- if (!this._yfStockAudits) {
1895
- this._yfStockAudits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1896
- sourceEntity: 'SchemaModule:File',
1897
- targetEntity: 'FieldServiceModule:YfStockAudit',
1898
- targetModuleName: 'FieldServiceModule',
1899
- targetEntityName: 'YfStockAudit',
1900
- labels: ['YfStockAudit__File'],
1901
- }, YfStockAuditRecord_1.YfStockAuditRecord);
1902
- }
1903
- return this._yfStockAudits;
1904
- }
1905
- /**
1906
- * Access linked TestEntityForVisualBuilder records
1907
- * @remarks Available labels: TestEntityForVisualBuilder__File
1908
- * @throws Error if called on a new (unsaved) record
1909
- *
1910
- * @example
1911
- * ```typescript
1912
- * // Get all linked TestEntityForVisualBuilder records
1913
- * const items = await record.testEntityForVisualBuilders.list();
1914
- * const first = await record.testEntityForVisualBuilders.first();
1915
- *
1916
- * // Filter by label
1917
- * const specific = await record.testEntityForVisualBuilders.first({ label: 'TestEntityForVisualBuilder__File' });
1918
- * ```
1919
- */
1920
- get testEntityForVisualBuilders() {
1921
- var _a;
1922
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1923
- throw new Error('Cannot access links on a new (unsaved) record');
1924
- if (!this._testEntityForVisualBuilders) {
1925
- this._testEntityForVisualBuilders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1926
- sourceEntity: 'SchemaModule:File',
1927
- targetEntity: 'FieldServiceModule:TestEntityForVisualBuilder',
1928
- targetModuleName: 'FieldServiceModule',
1929
- targetEntityName: 'TestEntityForVisualBuilder',
1930
- labels: ['TestEntityForVisualBuilder__File'],
1931
- }, TestEntityForVisualBuilderRecord_1.TestEntityForVisualBuilderRecord);
1932
- }
1933
- return this._testEntityForVisualBuilders;
1934
- }
1935
- // ============================================
1936
143
  // LINK MANAGEMENT
1937
144
  // ============================================
1938
145
  /**
@@ -2008,115 +215,6 @@ class FileRecord {
2008
215
  }
2009
216
  }
2010
217
  exports.FileRecord = FileRecord;
2011
- // ============================================
2012
- // TYPED LINK ACCESSORS
2013
- // ============================================
2014
- /** Valid labels for SiteSpecificRiskAssessmentOutcomeForm associations */
2015
- FileRecord.siteSpecificRiskAssessmentOutcomeFormsLabels = ['SiteSpecificRiskAssessmentOutcomeForm__File'];
2016
- /** Valid labels for Appointment associations */
2017
- FileRecord.appointmentsLabels = ['Appointment__File'];
2018
- /** Valid labels for OhInProgressAudit associations */
2019
- FileRecord.ohInProgressAuditsLabels = ['OhInProgressAudit_File'];
2020
- /** Valid labels for Address associations */
2021
- FileRecord.addressesLabels = ['Address__File'];
2022
- /** Valid labels for PaymentMethodRefund associations */
2023
- FileRecord.paymentMethodRefundsLabels = ['PaymentMethodRefund__File'];
2024
- /** Valid labels for Message associations */
2025
- FileRecord.messagesLabels = ['Message_File'];
2026
- /** Valid labels for BlockageA55 associations */
2027
- FileRecord.blockageA55sLabels = ['BlockageA55_File'];
2028
- /** Valid labels for Transaction associations */
2029
- FileRecord.transactionsLabels = ['Transaction__File'];
2030
- /** Valid labels for Note associations */
2031
- FileRecord.notesLabels = ['File__Note', 'Note__File'];
2032
- /** Valid labels for Email associations */
2033
- FileRecord.emailsLabels = ['Attachments'];
2034
- /** Valid labels for OneTouchSwitch associations */
2035
- FileRecord.oneTouchSwitchesLabels = ['OneTouchSwitch_File'];
2036
- /** Valid labels for Activity associations */
2037
- FileRecord.activitiesLabels = ['Activity__File'];
2038
- /** Valid labels for RemediationRequiredReason associations */
2039
- FileRecord.remediationRequiredReasonsLabels = ['RemediationRequiredReason__File'];
2040
- /** Valid labels for KnowledgeArticle associations */
2041
- FileRecord.knowledgeArticlesLabels = ['KnowledgeArticle__File'];
2042
- /** Valid labels for Lead associations */
2043
- FileRecord.leadsLabels = ['Lead__File'];
2044
- /** Valid labels for Visit associations */
2045
- FileRecord.visitsLabels = ['Visit__File'];
2046
- /** Valid labels for CustomerDeviceRouter associations */
2047
- FileRecord.customerDeviceRoutersLabels = ['CustomerDeviceRouter__File'];
2048
- /** Valid labels for ServiceVisitAudit associations */
2049
- FileRecord.serviceVisitAuditsLabels = ['ServiceVisitAudit__File'];
2050
- /** Valid labels for ChangeReason associations */
2051
- FileRecord.changeReasonsLabels = ['ChangeReason__File'];
2052
- /** Valid labels for UgRetroAudit associations */
2053
- FileRecord.ugRetroAuditsLabels = ['UgRetroAudit__File'];
2054
- /** Valid labels for PaymentMethod associations */
2055
- FileRecord.paymentMethodsLabels = ['PaymentMethod__File'];
2056
- /** Valid labels for WorkOrder associations */
2057
- FileRecord.workOrdersLabels = ['WorkOrder__File'];
2058
- /** Valid labels for CustomerDeviceOnt associations */
2059
- FileRecord.customerDeviceOntsLabels = ['CustomerDeviceOnt__File'];
2060
- /** Valid labels for InternalInstallAudit associations */
2061
- FileRecord.internalInstallAuditsLabels = ['InternalInstallAudit_File'];
2062
- /** Valid labels for ServiceAppointment associations */
2063
- FileRecord.serviceAppointmentsLabels = ['ServiceAppointment__File'];
2064
- /** Valid labels for WayleaveAudit associations */
2065
- FileRecord.wayleaveAuditsLabels = ['WayleaveAudit_File'];
2066
- /** Valid labels for Discount associations */
2067
- FileRecord.discountsLabels = ['Discount__File'];
2068
- /** Valid labels for Order associations */
2069
- FileRecord.ordersLabels = ['Order__File'];
2070
- /** Valid labels for Call associations */
2071
- FileRecord.callsLabels = ['Call__File'];
2072
- /** Valid labels for OhExternalAudit associations */
2073
- FileRecord.ohExternalAuditsLabels = ['OhExternalAudit_File'];
2074
- /** Valid labels for Case associations */
2075
- FileRecord.casesLabels = ['Case__File'];
2076
- /** Valid labels for UgExternalAudit associations */
2077
- FileRecord.ugExternalAuditsLabels = ['UgExternalAudit_File'];
2078
- /** Valid labels for OhRetroAudit associations */
2079
- FileRecord.ohRetroAuditsLabels = ['OhRetroAudit__File'];
2080
- /** Valid labels for UgInProgressAudit associations */
2081
- FileRecord.ugInProgressAuditsLabels = ['UgInProgressAudit_File'];
2082
- /** Valid labels for BillingAdjustment associations */
2083
- FileRecord.billingAdjustmentsLabels = ['BillingAdjustment__File'];
2084
- /** Valid labels for RemediationOutcomeForm associations */
2085
- FileRecord.remediationOutcomeFormsLabels = ['RemediationOutcomeForm_File'];
2086
- /** Valid labels for Contact associations */
2087
- FileRecord.contactsLabels = ['Contact__File'];
2088
- /** Valid labels for SweeperMaintenanceAudit associations */
2089
- FileRecord.sweeperMaintenanceAuditsLabels = ['SweeperMaintenanceAudit__File'];
2090
- /** Valid labels for OhInstallationAudit associations */
2091
- FileRecord.ohInstallationAuditsLabels = ['OhInstallationAudit__File'];
2092
- /** Valid labels for YfFieldServiceVisit associations */
2093
- FileRecord.yfFieldServiceVisitsLabels = ['YfFieldServiceVisit__File'];
2094
- /** Valid labels for BillingRequest associations */
2095
- FileRecord.billingRequestsLabels = ['BillingRequest__File'];
2096
- /** Valid labels for OhAuditOfInstallation associations */
2097
- FileRecord.ohAuditOfInstallationsLabels = ['OhAuditOfInstallation__File'];
2098
- /** Valid labels for UgInstallationAudit associations */
2099
- FileRecord.ugInstallationAuditsLabels = ['UgInstallationAudit__File'];
2100
- /** Valid labels for OverlayRealA55 associations */
2101
- FileRecord.overlayRealA55sLabels = ['OverlayRealA55_File'];
2102
- /** Valid labels for UgAuditOfInstallation associations */
2103
- FileRecord.ugAuditOfInstallationsLabels = ['UgAuditOfInstallation__File'];
2104
- /** Valid labels for CreditNote associations */
2105
- FileRecord.creditNotesLabels = ['CreditNote__File'];
2106
- /** Valid labels for Invoice associations */
2107
- FileRecord.invoicesLabels = ['Invoice__File'];
2108
- /** Valid labels for ContractBuyOut associations */
2109
- FileRecord.contractBuyOutsLabels = ['ContractBuyOut__File'];
2110
- /** Valid labels for Account associations */
2111
- FileRecord.accountsLabels = ['Account__File'];
2112
- /** Valid labels for OrderItem associations */
2113
- FileRecord.orderItemsLabels = ['OrderItem__File'];
2114
- /** Valid labels for PgDirectDebitFile associations */
2115
- FileRecord.pgDirectDebitFilesLabels = ['PgDirectDebitFile__File'];
2116
- /** Valid labels for YfStockAudit associations */
2117
- FileRecord.yfStockAuditsLabels = ['YfStockAudit__File'];
2118
- /** Valid labels for TestEntityForVisualBuilder associations */
2119
- FileRecord.testEntityForVisualBuildersLabels = ['TestEntityForVisualBuilder__File'];
2120
218
  /** Type guard to check if an object is a FileRecord */
2121
219
  function isFileRecord(obj) {
2122
220
  return obj instanceof FileRecord;