@d19n/youfibre-odin-sdk 2.0.30 → 2.0.31

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