@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
@@ -29,33 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.isContactRecord = exports.ContactRecord = exports.CreateCaseFromContactFlowBuilder = void 0;
30
30
  const uuid_1 = require("uuid");
31
31
  const core_1 = require("@d19n/odin-types/dist/core");
32
- const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
33
- const PaymentMethodRefundRecord_1 = require("./PaymentMethodRefundRecord");
34
- const AddressRecord_1 = require("./AddressRecord");
35
- const InvoiceRecord_1 = require("./InvoiceRecord");
36
- const PhoneNumberRecord_1 = require("./PhoneNumberRecord");
37
- const NoteRecord_1 = require("./NoteRecord");
38
- const ActivityRecord_1 = require("./ActivityRecord");
39
- const SmsMessageRecord_1 = require("./SmsMessageRecord");
40
- const ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
41
- const CallRecord_1 = require("./CallRecord");
42
- const LeadRecord_1 = require("./LeadRecord");
43
- const WorkOrderRecord_1 = require("./WorkOrderRecord");
44
- const OrderRecord_1 = require("./OrderRecord");
45
- const FileRecord_1 = require("./FileRecord");
46
- const OneTouchSwitchRecord_1 = require("./OneTouchSwitchRecord");
47
- const CaseRecord_1 = require("./CaseRecord");
48
- const BillingRequestRecord_1 = require("./BillingRequestRecord");
49
- const EmailRecord_1 = require("./EmailRecord");
50
- const AppointmentRecord_1 = require("./AppointmentRecord");
51
- const AccountRecord_1 = require("./AccountRecord");
52
- const ImpersonationTrackerRecord_1 = require("./ImpersonationTrackerRecord");
53
- const PaymentMethodRecord_1 = require("./PaymentMethodRecord");
54
- const AffiliateCodeRecord_1 = require("./AffiliateCodeRecord");
55
- const ReferralRecord_1 = require("./ReferralRecord");
56
- const RewardRecord_1 = require("./RewardRecord");
57
- const AccountCreditRecord_1 = require("./AccountCreditRecord");
58
- const PushNotificationRecord_1 = require("./PushNotificationRecord");
59
32
  /**
60
33
  * Builder for action execution with dryRun support
61
34
  *
@@ -300,816 +273,6 @@ class ContactRecord {
300
273
  get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
301
274
  /** Access the underlying OdinRecord (null for new records) */
302
275
  get record() { return this._record; }
303
- /**
304
- * Access linked PaymentMethodRefund records
305
- * @remarks Available labels: Contact__PaymentMethodRefund
306
- * @throws Error if called on a new (unsaved) record
307
- *
308
- * @example
309
- * ```typescript
310
- * // Get all linked PaymentMethodRefund records
311
- * const items = await record.paymentMethodRefunds.list();
312
- * const first = await record.paymentMethodRefunds.first();
313
- *
314
- * // Filter by label
315
- * const specific = await record.paymentMethodRefunds.first({ label: 'Contact__PaymentMethodRefund' });
316
- * ```
317
- */
318
- get paymentMethodRefunds() {
319
- var _a;
320
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
321
- throw new Error('Cannot access links on a new (unsaved) record');
322
- if (!this._paymentMethodRefunds) {
323
- this._paymentMethodRefunds = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
324
- sourceEntity: 'CrmModule:Contact',
325
- targetEntity: 'BillingModule:PaymentMethodRefund',
326
- targetModuleName: 'BillingModule',
327
- targetEntityName: 'PaymentMethodRefund',
328
- labels: ['Contact__PaymentMethodRefund'],
329
- }, PaymentMethodRefundRecord_1.PaymentMethodRefundRecord);
330
- }
331
- return this._paymentMethodRefunds;
332
- }
333
- /**
334
- * Access linked Address records
335
- * @remarks Available labels: Contact__Address
336
- * @throws Error if called on a new (unsaved) record
337
- *
338
- * @example
339
- * ```typescript
340
- * // Get all linked Address records
341
- * const items = await record.addresses.list();
342
- * const first = await record.addresses.first();
343
- *
344
- * // Filter by label
345
- * const specific = await record.addresses.first({ label: 'Contact__Address' });
346
- * ```
347
- */
348
- get addresses() {
349
- var _a;
350
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
351
- throw new Error('Cannot access links on a new (unsaved) record');
352
- if (!this._addresses) {
353
- this._addresses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
354
- sourceEntity: 'CrmModule:Contact',
355
- targetEntity: 'CrmModule:Address',
356
- targetModuleName: 'CrmModule',
357
- targetEntityName: 'Address',
358
- labels: ['Contact__Address'],
359
- }, AddressRecord_1.AddressRecord);
360
- }
361
- return this._addresses;
362
- }
363
- /**
364
- * Access linked Invoice records
365
- * @remarks Available labels: Invoice__Contact
366
- * @throws Error if called on a new (unsaved) record
367
- *
368
- * @example
369
- * ```typescript
370
- * // Get all linked Invoice records
371
- * const items = await record.invoices.list();
372
- * const first = await record.invoices.first();
373
- *
374
- * // Filter by label
375
- * const specific = await record.invoices.first({ label: 'Invoice__Contact' });
376
- * ```
377
- */
378
- get invoices() {
379
- var _a;
380
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
381
- throw new Error('Cannot access links on a new (unsaved) record');
382
- if (!this._invoices) {
383
- this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
384
- sourceEntity: 'CrmModule:Contact',
385
- targetEntity: 'BillingModule:Invoice',
386
- targetModuleName: 'BillingModule',
387
- targetEntityName: 'Invoice',
388
- labels: ['Invoice__Contact'],
389
- }, InvoiceRecord_1.InvoiceRecord);
390
- }
391
- return this._invoices;
392
- }
393
- /**
394
- * Access linked PhoneNumber records
395
- * @remarks Available labels: Contact__PhoneNumber
396
- * @throws Error if called on a new (unsaved) record
397
- *
398
- * @example
399
- * ```typescript
400
- * // Get all linked PhoneNumber records
401
- * const items = await record.phoneNumbers.list();
402
- * const first = await record.phoneNumbers.first();
403
- *
404
- * // Filter by label
405
- * const specific = await record.phoneNumbers.first({ label: 'Contact__PhoneNumber' });
406
- * ```
407
- */
408
- get phoneNumbers() {
409
- var _a;
410
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
411
- throw new Error('Cannot access links on a new (unsaved) record');
412
- if (!this._phoneNumbers) {
413
- this._phoneNumbers = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
414
- sourceEntity: 'CrmModule:Contact',
415
- targetEntity: 'CrmModule:PhoneNumber',
416
- targetModuleName: 'CrmModule',
417
- targetEntityName: 'PhoneNumber',
418
- labels: ['Contact__PhoneNumber'],
419
- }, PhoneNumberRecord_1.PhoneNumberRecord);
420
- }
421
- return this._phoneNumbers;
422
- }
423
- /**
424
- * Access linked Note records
425
- * @remarks Available labels: Contact__Note
426
- * @throws Error if called on a new (unsaved) record
427
- *
428
- * @example
429
- * ```typescript
430
- * // Get all linked Note records
431
- * const items = await record.notes.list();
432
- * const first = await record.notes.first();
433
- *
434
- * // Filter by label
435
- * const specific = await record.notes.first({ label: 'Contact__Note' });
436
- * ```
437
- */
438
- get notes() {
439
- var _a;
440
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
441
- throw new Error('Cannot access links on a new (unsaved) record');
442
- if (!this._notes) {
443
- this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
444
- sourceEntity: 'CrmModule:Contact',
445
- targetEntity: 'SupportModule:Note',
446
- targetModuleName: 'SupportModule',
447
- targetEntityName: 'Note',
448
- labels: ['Contact__Note'],
449
- }, NoteRecord_1.NoteRecord);
450
- }
451
- return this._notes;
452
- }
453
- /**
454
- * Access linked Activity records
455
- * @remarks Available labels: Contact__Activity
456
- * @throws Error if called on a new (unsaved) record
457
- *
458
- * @example
459
- * ```typescript
460
- * // Get all linked Activity records
461
- * const items = await record.activities.list();
462
- * const first = await record.activities.first();
463
- *
464
- * // Filter by label
465
- * const specific = await record.activities.first({ label: 'Contact__Activity' });
466
- * ```
467
- */
468
- get activities() {
469
- var _a;
470
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
471
- throw new Error('Cannot access links on a new (unsaved) record');
472
- if (!this._activities) {
473
- this._activities = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
474
- sourceEntity: 'CrmModule:Contact',
475
- targetEntity: 'SchemaModule:Activity',
476
- targetModuleName: 'SchemaModule',
477
- targetEntityName: 'Activity',
478
- labels: ['Contact__Activity'],
479
- }, ActivityRecord_1.ActivityRecord);
480
- }
481
- return this._activities;
482
- }
483
- /**
484
- * Access linked SmsMessage records
485
- * @remarks Available labels: Contact__SmsMessage
486
- * @throws Error if called on a new (unsaved) record
487
- *
488
- * @example
489
- * ```typescript
490
- * // Get all linked SmsMessage records
491
- * const items = await record.smsMessages.list();
492
- * const first = await record.smsMessages.first();
493
- *
494
- * // Filter by label
495
- * const specific = await record.smsMessages.first({ label: 'Contact__SmsMessage' });
496
- * ```
497
- */
498
- get smsMessages() {
499
- var _a;
500
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
501
- throw new Error('Cannot access links on a new (unsaved) record');
502
- if (!this._smsMessages) {
503
- this._smsMessages = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
504
- sourceEntity: 'CrmModule:Contact',
505
- targetEntity: 'NotificationModule:SmsMessage',
506
- targetModuleName: 'NotificationModule',
507
- targetEntityName: 'SmsMessage',
508
- labels: ['Contact__SmsMessage'],
509
- }, SmsMessageRecord_1.SmsMessageRecord);
510
- }
511
- return this._smsMessages;
512
- }
513
- /**
514
- * Access linked ContractBuyOut records
515
- * @remarks Available labels: Contact__ContractBuyOut
516
- * @throws Error if called on a new (unsaved) record
517
- *
518
- * @example
519
- * ```typescript
520
- * // Get all linked ContractBuyOut records
521
- * const items = await record.contractBuyOuts.list();
522
- * const first = await record.contractBuyOuts.first();
523
- *
524
- * // Filter by label
525
- * const specific = await record.contractBuyOuts.first({ label: 'Contact__ContractBuyOut' });
526
- * ```
527
- */
528
- get contractBuyOuts() {
529
- var _a;
530
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
531
- throw new Error('Cannot access links on a new (unsaved) record');
532
- if (!this._contractBuyOuts) {
533
- this._contractBuyOuts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
534
- sourceEntity: 'CrmModule:Contact',
535
- targetEntity: 'OrderModule:ContractBuyOut',
536
- targetModuleName: 'OrderModule',
537
- targetEntityName: 'ContractBuyOut',
538
- labels: ['Contact__ContractBuyOut'],
539
- }, ContractBuyOutRecord_1.ContractBuyOutRecord);
540
- }
541
- return this._contractBuyOuts;
542
- }
543
- /**
544
- * Access linked Call records
545
- * @remarks Available labels: Call__Contact
546
- * @throws Error if called on a new (unsaved) record
547
- *
548
- * @example
549
- * ```typescript
550
- * // Get all linked Call records
551
- * const items = await record.calls.list();
552
- * const first = await record.calls.first();
553
- *
554
- * // Filter by label
555
- * const specific = await record.calls.first({ label: 'Call__Contact' });
556
- * ```
557
- */
558
- get calls() {
559
- var _a;
560
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
561
- throw new Error('Cannot access links on a new (unsaved) record');
562
- if (!this._calls) {
563
- this._calls = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
564
- sourceEntity: 'CrmModule:Contact',
565
- targetEntity: 'NotificationModule:Call',
566
- targetModuleName: 'NotificationModule',
567
- targetEntityName: 'Call',
568
- labels: ['Call__Contact'],
569
- }, CallRecord_1.CallRecord);
570
- }
571
- return this._calls;
572
- }
573
- /**
574
- * Access linked Lead records
575
- * @remarks Available labels: Lead__Contact
576
- * @throws Error if called on a new (unsaved) record
577
- *
578
- * @example
579
- * ```typescript
580
- * // Get all linked Lead records
581
- * const items = await record.leads.list();
582
- * const first = await record.leads.first();
583
- *
584
- * // Filter by label
585
- * const specific = await record.leads.first({ label: 'Lead__Contact' });
586
- * ```
587
- */
588
- get leads() {
589
- var _a;
590
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
591
- throw new Error('Cannot access links on a new (unsaved) record');
592
- if (!this._leads) {
593
- this._leads = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
594
- sourceEntity: 'CrmModule:Contact',
595
- targetEntity: 'CrmModule:Lead',
596
- targetModuleName: 'CrmModule',
597
- targetEntityName: 'Lead',
598
- labels: ['Lead__Contact'],
599
- }, LeadRecord_1.LeadRecord);
600
- }
601
- return this._leads;
602
- }
603
- /**
604
- * Access linked WorkOrder records
605
- * @remarks Available labels: WorkOrder__Contact, WorkOrder__Alternative_Contact
606
- * @throws Error if called on a new (unsaved) record
607
- *
608
- * @example
609
- * ```typescript
610
- * // Get all linked WorkOrder records
611
- * const items = await record.workOrders.list();
612
- * const first = await record.workOrders.first();
613
- *
614
- * // Filter by label
615
- * const specific = await record.workOrders.first({ label: 'WorkOrder__Contact' });
616
- * ```
617
- */
618
- get workOrders() {
619
- var _a;
620
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
621
- throw new Error('Cannot access links on a new (unsaved) record');
622
- if (!this._workOrders) {
623
- this._workOrders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
624
- sourceEntity: 'CrmModule:Contact',
625
- targetEntity: 'FieldServiceModule:WorkOrder',
626
- targetModuleName: 'FieldServiceModule',
627
- targetEntityName: 'WorkOrder',
628
- labels: ['WorkOrder__Contact', 'WorkOrder__Alternative_Contact'],
629
- }, WorkOrderRecord_1.WorkOrderRecord);
630
- }
631
- return this._workOrders;
632
- }
633
- /**
634
- * Access linked Order records
635
- * @remarks Available labels: Order__Contact
636
- * @throws Error if called on a new (unsaved) record
637
- *
638
- * @example
639
- * ```typescript
640
- * // Get all linked Order records
641
- * const items = await record.orders.list();
642
- * const first = await record.orders.first();
643
- *
644
- * // Filter by label
645
- * const specific = await record.orders.first({ label: 'Order__Contact' });
646
- * ```
647
- */
648
- get orders() {
649
- var _a;
650
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
651
- throw new Error('Cannot access links on a new (unsaved) record');
652
- if (!this._orders) {
653
- this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
654
- sourceEntity: 'CrmModule:Contact',
655
- targetEntity: 'OrderModule:Order',
656
- targetModuleName: 'OrderModule',
657
- targetEntityName: 'Order',
658
- labels: ['Order__Contact'],
659
- }, OrderRecord_1.OrderRecord);
660
- }
661
- return this._orders;
662
- }
663
- /**
664
- * Access linked File records
665
- * @remarks Available labels: Contact__File
666
- * @throws Error if called on a new (unsaved) record
667
- *
668
- * @example
669
- * ```typescript
670
- * // Get all linked File records
671
- * const items = await record.files.list();
672
- * const first = await record.files.first();
673
- *
674
- * // Filter by label
675
- * const specific = await record.files.first({ label: 'Contact__File' });
676
- * ```
677
- */
678
- get files() {
679
- var _a;
680
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
681
- throw new Error('Cannot access links on a new (unsaved) record');
682
- if (!this._files) {
683
- this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
684
- sourceEntity: 'CrmModule:Contact',
685
- targetEntity: 'SchemaModule:File',
686
- targetModuleName: 'SchemaModule',
687
- targetEntityName: 'File',
688
- labels: ['Contact__File'],
689
- }, FileRecord_1.FileRecord);
690
- }
691
- return this._files;
692
- }
693
- /**
694
- * Access linked Contact records
695
- * @remarks Available labels: Contact__Contact
696
- * @throws Error if called on a new (unsaved) record
697
- *
698
- * @example
699
- * ```typescript
700
- * // Get all linked Contact records
701
- * const items = await record.contacts.list();
702
- * const first = await record.contacts.first();
703
- *
704
- * // Filter by label
705
- * const specific = await record.contacts.first({ label: 'Contact__Contact' });
706
- * ```
707
- */
708
- get contacts() {
709
- var _a;
710
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
711
- throw new Error('Cannot access links on a new (unsaved) record');
712
- if (!this._contacts) {
713
- this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
714
- sourceEntity: 'CrmModule:Contact',
715
- targetEntity: 'CrmModule:Contact',
716
- targetModuleName: 'CrmModule',
717
- targetEntityName: 'Contact',
718
- labels: ['Contact__Contact'],
719
- }, ContactRecord);
720
- }
721
- return this._contacts;
722
- }
723
- /**
724
- * Access linked OneTouchSwitch records
725
- * @remarks Available labels: OneTouchSwitch__Contact
726
- * @throws Error if called on a new (unsaved) record
727
- *
728
- * @example
729
- * ```typescript
730
- * // Get all linked OneTouchSwitch records
731
- * const items = await record.oneTouchSwitches.list();
732
- * const first = await record.oneTouchSwitches.first();
733
- *
734
- * // Filter by label
735
- * const specific = await record.oneTouchSwitches.first({ label: 'OneTouchSwitch__Contact' });
736
- * ```
737
- */
738
- get oneTouchSwitches() {
739
- var _a;
740
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
741
- throw new Error('Cannot access links on a new (unsaved) record');
742
- if (!this._oneTouchSwitches) {
743
- this._oneTouchSwitches = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
744
- sourceEntity: 'CrmModule:Contact',
745
- targetEntity: 'OrderModule:OneTouchSwitch',
746
- targetModuleName: 'OrderModule',
747
- targetEntityName: 'OneTouchSwitch',
748
- labels: ['OneTouchSwitch__Contact'],
749
- }, OneTouchSwitchRecord_1.OneTouchSwitchRecord);
750
- }
751
- return this._oneTouchSwitches;
752
- }
753
- /**
754
- * Access linked Case records
755
- * @remarks Available labels: Case__Contact
756
- * @throws Error if called on a new (unsaved) record
757
- *
758
- * @example
759
- * ```typescript
760
- * // Get all linked Case records
761
- * const items = await record.cases.list();
762
- * const first = await record.cases.first();
763
- *
764
- * // Filter by label
765
- * const specific = await record.cases.first({ label: 'Case__Contact' });
766
- * ```
767
- */
768
- get cases() {
769
- var _a;
770
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
771
- throw new Error('Cannot access links on a new (unsaved) record');
772
- if (!this._cases) {
773
- this._cases = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
774
- sourceEntity: 'CrmModule:Contact',
775
- targetEntity: 'SupportModule:Case',
776
- targetModuleName: 'SupportModule',
777
- targetEntityName: 'Case',
778
- labels: ['Case__Contact'],
779
- }, CaseRecord_1.CaseRecord);
780
- }
781
- return this._cases;
782
- }
783
- /**
784
- * Access linked BillingRequest records
785
- * @remarks Available labels: Contact__BillingRequest
786
- * @throws Error if called on a new (unsaved) record
787
- *
788
- * @example
789
- * ```typescript
790
- * // Get all linked BillingRequest records
791
- * const items = await record.billingRequests.list();
792
- * const first = await record.billingRequests.first();
793
- *
794
- * // Filter by label
795
- * const specific = await record.billingRequests.first({ label: 'Contact__BillingRequest' });
796
- * ```
797
- */
798
- get billingRequests() {
799
- var _a;
800
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
801
- throw new Error('Cannot access links on a new (unsaved) record');
802
- if (!this._billingRequests) {
803
- this._billingRequests = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
804
- sourceEntity: 'CrmModule:Contact',
805
- targetEntity: 'BillingModule:BillingRequest',
806
- targetModuleName: 'BillingModule',
807
- targetEntityName: 'BillingRequest',
808
- labels: ['Contact__BillingRequest'],
809
- }, BillingRequestRecord_1.BillingRequestRecord);
810
- }
811
- return this._billingRequests;
812
- }
813
- /**
814
- * Access linked Email records
815
- * @remarks Available labels: Email_Contact
816
- * @throws Error if called on a new (unsaved) record
817
- *
818
- * @example
819
- * ```typescript
820
- * // Get all linked Email records
821
- * const items = await record.emails.list();
822
- * const first = await record.emails.first();
823
- *
824
- * // Filter by label
825
- * const specific = await record.emails.first({ label: 'Email_Contact' });
826
- * ```
827
- */
828
- get emails() {
829
- var _a;
830
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
831
- throw new Error('Cannot access links on a new (unsaved) record');
832
- if (!this._emails) {
833
- this._emails = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
834
- sourceEntity: 'CrmModule:Contact',
835
- targetEntity: 'NotificationModule:Email',
836
- targetModuleName: 'NotificationModule',
837
- targetEntityName: 'Email',
838
- labels: ['Email_Contact'],
839
- }, EmailRecord_1.EmailRecord);
840
- }
841
- return this._emails;
842
- }
843
- /**
844
- * Access linked Appointment records
845
- * @remarks Available labels: Contact__Appointment
846
- * @throws Error if called on a new (unsaved) record
847
- *
848
- * @example
849
- * ```typescript
850
- * // Get all linked Appointment records
851
- * const items = await record.appointments.list();
852
- * const first = await record.appointments.first();
853
- *
854
- * // Filter by label
855
- * const specific = await record.appointments.first({ label: 'Contact__Appointment' });
856
- * ```
857
- */
858
- get appointments() {
859
- var _a;
860
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
861
- throw new Error('Cannot access links on a new (unsaved) record');
862
- if (!this._appointments) {
863
- this._appointments = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
864
- sourceEntity: 'CrmModule:Contact',
865
- targetEntity: 'CrmModule:Appointment',
866
- targetModuleName: 'CrmModule',
867
- targetEntityName: 'Appointment',
868
- labels: ['Contact__Appointment'],
869
- }, AppointmentRecord_1.AppointmentRecord);
870
- }
871
- return this._appointments;
872
- }
873
- /**
874
- * Access linked Account records
875
- * @remarks Available labels: BillingContact
876
- * @throws Error if called on a new (unsaved) record
877
- *
878
- * @example
879
- * ```typescript
880
- * // Get all linked Account records
881
- * const items = await record.accounts.list();
882
- * const first = await record.accounts.first();
883
- *
884
- * // Filter by label
885
- * const specific = await record.accounts.first({ label: 'BillingContact' });
886
- * ```
887
- */
888
- get accounts() {
889
- var _a;
890
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
891
- throw new Error('Cannot access links on a new (unsaved) record');
892
- if (!this._accounts) {
893
- this._accounts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
894
- sourceEntity: 'CrmModule:Contact',
895
- targetEntity: 'CrmModule:Account',
896
- targetModuleName: 'CrmModule',
897
- targetEntityName: 'Account',
898
- labels: ['BillingContact'],
899
- }, AccountRecord_1.AccountRecord);
900
- }
901
- return this._accounts;
902
- }
903
- /**
904
- * Access linked ImpersonationTracker records
905
- * @remarks Available labels: ImpersonationTracker__Contact
906
- * @throws Error if called on a new (unsaved) record
907
- *
908
- * @example
909
- * ```typescript
910
- * // Get all linked ImpersonationTracker records
911
- * const items = await record.impersonationTrackers.list();
912
- * const first = await record.impersonationTrackers.first();
913
- *
914
- * // Filter by label
915
- * const specific = await record.impersonationTrackers.first({ label: 'ImpersonationTracker__Contact' });
916
- * ```
917
- */
918
- get impersonationTrackers() {
919
- var _a;
920
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
921
- throw new Error('Cannot access links on a new (unsaved) record');
922
- if (!this._impersonationTrackers) {
923
- this._impersonationTrackers = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
924
- sourceEntity: 'CrmModule:Contact',
925
- targetEntity: 'IdentityModule:ImpersonationTracker',
926
- targetModuleName: 'IdentityModule',
927
- targetEntityName: 'ImpersonationTracker',
928
- labels: ['ImpersonationTracker__Contact'],
929
- }, ImpersonationTrackerRecord_1.ImpersonationTrackerRecord);
930
- }
931
- return this._impersonationTrackers;
932
- }
933
- /**
934
- * Access linked PaymentMethod records
935
- * @remarks Available labels: Contact__PaymentMethod
936
- * @throws Error if called on a new (unsaved) record
937
- *
938
- * @example
939
- * ```typescript
940
- * // Get all linked PaymentMethod records
941
- * const items = await record.paymentMethods.list();
942
- * const first = await record.paymentMethods.first();
943
- *
944
- * // Filter by label
945
- * const specific = await record.paymentMethods.first({ label: 'Contact__PaymentMethod' });
946
- * ```
947
- */
948
- get paymentMethods() {
949
- var _a;
950
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
951
- throw new Error('Cannot access links on a new (unsaved) record');
952
- if (!this._paymentMethods) {
953
- this._paymentMethods = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
954
- sourceEntity: 'CrmModule:Contact',
955
- targetEntity: 'BillingModule:PaymentMethod',
956
- targetModuleName: 'BillingModule',
957
- targetEntityName: 'PaymentMethod',
958
- labels: ['Contact__PaymentMethod'],
959
- }, PaymentMethodRecord_1.PaymentMethodRecord);
960
- }
961
- return this._paymentMethods;
962
- }
963
- /**
964
- * Access linked AffiliateCode records
965
- * @remarks Available labels: ContactAffiliateCodes
966
- * @throws Error if called on a new (unsaved) record
967
- *
968
- * @example
969
- * ```typescript
970
- * // Get all linked AffiliateCode records
971
- * const items = await record.affiliateCodes.list();
972
- * const first = await record.affiliateCodes.first();
973
- *
974
- * // Filter by label
975
- * const specific = await record.affiliateCodes.first({ label: 'ContactAffiliateCodes' });
976
- * ```
977
- */
978
- get affiliateCodes() {
979
- var _a;
980
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
981
- throw new Error('Cannot access links on a new (unsaved) record');
982
- if (!this._affiliateCodes) {
983
- this._affiliateCodes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
984
- sourceEntity: 'CrmModule:Contact',
985
- targetEntity: 'CrmModule:AffiliateCode',
986
- targetModuleName: 'CrmModule',
987
- targetEntityName: 'AffiliateCode',
988
- labels: ['ContactAffiliateCodes'],
989
- }, AffiliateCodeRecord_1.AffiliateCodeRecord);
990
- }
991
- return this._affiliateCodes;
992
- }
993
- /**
994
- * Access linked Referral records
995
- * @remarks Available labels: ReferrerReferrals, RefereeReferrals
996
- * @throws Error if called on a new (unsaved) record
997
- *
998
- * @example
999
- * ```typescript
1000
- * // Get all linked Referral records
1001
- * const items = await record.referrals.list();
1002
- * const first = await record.referrals.first();
1003
- *
1004
- * // Filter by label
1005
- * const specific = await record.referrals.first({ label: 'ReferrerReferrals' });
1006
- * ```
1007
- */
1008
- get referrals() {
1009
- var _a;
1010
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1011
- throw new Error('Cannot access links on a new (unsaved) record');
1012
- if (!this._referrals) {
1013
- this._referrals = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1014
- sourceEntity: 'CrmModule:Contact',
1015
- targetEntity: 'CrmModule:Referral',
1016
- targetModuleName: 'CrmModule',
1017
- targetEntityName: 'Referral',
1018
- labels: ['ReferrerReferrals', 'RefereeReferrals'],
1019
- }, ReferralRecord_1.ReferralRecord);
1020
- }
1021
- return this._referrals;
1022
- }
1023
- /**
1024
- * Access linked Reward records
1025
- * @remarks Available labels: ContactReward
1026
- * @throws Error if called on a new (unsaved) record
1027
- *
1028
- * @example
1029
- * ```typescript
1030
- * // Get all linked Reward records
1031
- * const items = await record.rewards.list();
1032
- * const first = await record.rewards.first();
1033
- *
1034
- * // Filter by label
1035
- * const specific = await record.rewards.first({ label: 'ContactReward' });
1036
- * ```
1037
- */
1038
- get rewards() {
1039
- var _a;
1040
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1041
- throw new Error('Cannot access links on a new (unsaved) record');
1042
- if (!this._rewards) {
1043
- this._rewards = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1044
- sourceEntity: 'CrmModule:Contact',
1045
- targetEntity: 'CrmModule:Reward',
1046
- targetModuleName: 'CrmModule',
1047
- targetEntityName: 'Reward',
1048
- labels: ['ContactReward'],
1049
- }, RewardRecord_1.RewardRecord);
1050
- }
1051
- return this._rewards;
1052
- }
1053
- /**
1054
- * Access linked AccountCredit records
1055
- * @remarks Available labels: Contact__AccountCredit
1056
- * @throws Error if called on a new (unsaved) record
1057
- *
1058
- * @example
1059
- * ```typescript
1060
- * // Get all linked AccountCredit records
1061
- * const items = await record.accountCredits.list();
1062
- * const first = await record.accountCredits.first();
1063
- *
1064
- * // Filter by label
1065
- * const specific = await record.accountCredits.first({ label: 'Contact__AccountCredit' });
1066
- * ```
1067
- */
1068
- get accountCredits() {
1069
- var _a;
1070
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1071
- throw new Error('Cannot access links on a new (unsaved) record');
1072
- if (!this._accountCredits) {
1073
- this._accountCredits = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1074
- sourceEntity: 'CrmModule:Contact',
1075
- targetEntity: 'BillingModule:AccountCredit',
1076
- targetModuleName: 'BillingModule',
1077
- targetEntityName: 'AccountCredit',
1078
- labels: ['Contact__AccountCredit'],
1079
- }, AccountCreditRecord_1.AccountCreditRecord);
1080
- }
1081
- return this._accountCredits;
1082
- }
1083
- /**
1084
- * Access linked PushNotification records
1085
- * @remarks Available labels: Contact__PushNotification
1086
- * @throws Error if called on a new (unsaved) record
1087
- *
1088
- * @example
1089
- * ```typescript
1090
- * // Get all linked PushNotification records
1091
- * const items = await record.pushNotifications.list();
1092
- * const first = await record.pushNotifications.first();
1093
- *
1094
- * // Filter by label
1095
- * const specific = await record.pushNotifications.first({ label: 'Contact__PushNotification' });
1096
- * ```
1097
- */
1098
- get pushNotifications() {
1099
- var _a;
1100
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1101
- throw new Error('Cannot access links on a new (unsaved) record');
1102
- if (!this._pushNotifications) {
1103
- this._pushNotifications = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1104
- sourceEntity: 'CrmModule:Contact',
1105
- targetEntity: 'NotificationModule:PushNotification',
1106
- targetModuleName: 'NotificationModule',
1107
- targetEntityName: 'PushNotification',
1108
- labels: ['Contact__PushNotification'],
1109
- }, PushNotificationRecord_1.PushNotificationRecord);
1110
- }
1111
- return this._pushNotifications;
1112
- }
1113
276
  // ============================================
1114
277
  // LINK MANAGEMENT
1115
278
  // ============================================
@@ -1344,63 +507,6 @@ class ContactRecord {
1344
507
  }
1345
508
  }
1346
509
  exports.ContactRecord = ContactRecord;
1347
- // ============================================
1348
- // TYPED LINK ACCESSORS
1349
- // ============================================
1350
- /** Valid labels for PaymentMethodRefund associations */
1351
- ContactRecord.paymentMethodRefundsLabels = ['Contact__PaymentMethodRefund'];
1352
- /** Valid labels for Address associations */
1353
- ContactRecord.addressesLabels = ['Contact__Address'];
1354
- /** Valid labels for Invoice associations */
1355
- ContactRecord.invoicesLabels = ['Invoice__Contact'];
1356
- /** Valid labels for PhoneNumber associations */
1357
- ContactRecord.phoneNumbersLabels = ['Contact__PhoneNumber'];
1358
- /** Valid labels for Note associations */
1359
- ContactRecord.notesLabels = ['Contact__Note'];
1360
- /** Valid labels for Activity associations */
1361
- ContactRecord.activitiesLabels = ['Contact__Activity'];
1362
- /** Valid labels for SmsMessage associations */
1363
- ContactRecord.smsMessagesLabels = ['Contact__SmsMessage'];
1364
- /** Valid labels for ContractBuyOut associations */
1365
- ContactRecord.contractBuyOutsLabels = ['Contact__ContractBuyOut'];
1366
- /** Valid labels for Call associations */
1367
- ContactRecord.callsLabels = ['Call__Contact'];
1368
- /** Valid labels for Lead associations */
1369
- ContactRecord.leadsLabels = ['Lead__Contact'];
1370
- /** Valid labels for WorkOrder associations */
1371
- ContactRecord.workOrdersLabels = ['WorkOrder__Contact', 'WorkOrder__Alternative_Contact'];
1372
- /** Valid labels for Order associations */
1373
- ContactRecord.ordersLabels = ['Order__Contact'];
1374
- /** Valid labels for File associations */
1375
- ContactRecord.filesLabels = ['Contact__File'];
1376
- /** Valid labels for Contact associations */
1377
- ContactRecord.contactsLabels = ['Contact__Contact'];
1378
- /** Valid labels for OneTouchSwitch associations */
1379
- ContactRecord.oneTouchSwitchesLabels = ['OneTouchSwitch__Contact'];
1380
- /** Valid labels for Case associations */
1381
- ContactRecord.casesLabels = ['Case__Contact'];
1382
- /** Valid labels for BillingRequest associations */
1383
- ContactRecord.billingRequestsLabels = ['Contact__BillingRequest'];
1384
- /** Valid labels for Email associations */
1385
- ContactRecord.emailsLabels = ['Email_Contact'];
1386
- /** Valid labels for Appointment associations */
1387
- ContactRecord.appointmentsLabels = ['Contact__Appointment'];
1388
- /** Valid labels for Account associations */
1389
- ContactRecord.accountsLabels = ['BillingContact'];
1390
- /** Valid labels for ImpersonationTracker associations */
1391
- ContactRecord.impersonationTrackersLabels = ['ImpersonationTracker__Contact'];
1392
- /** Valid labels for PaymentMethod associations */
1393
- ContactRecord.paymentMethodsLabels = ['Contact__PaymentMethod'];
1394
- /** Valid labels for AffiliateCode associations */
1395
- ContactRecord.affiliateCodesLabels = ['ContactAffiliateCodes'];
1396
- /** Valid labels for Referral associations */
1397
- ContactRecord.referralsLabels = ['ReferrerReferrals', 'RefereeReferrals'];
1398
- /** Valid labels for Reward associations */
1399
- ContactRecord.rewardsLabels = ['ContactReward'];
1400
- /** Valid labels for AccountCredit associations */
1401
- ContactRecord.accountCreditsLabels = ['Contact__AccountCredit'];
1402
- /** Valid labels for PushNotification associations */
1403
- ContactRecord.pushNotificationsLabels = ['Contact__PushNotification'];
1404
510
  /** Type guard to check if an object is a ContactRecord */
1405
511
  function isContactRecord(obj) {
1406
512
  return obj instanceof ContactRecord;