@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.createOneTouchSwitch({ ... }).execute();
15
15
  * ```
16
16
  *
17
- * Entity Types: DEFAULT, GAINING, LOSING
18
- *
19
17
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
20
18
  */
21
19
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
@@ -31,17 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
31
29
  exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = 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 AccountRecord_1 = require("./AccountRecord");
36
- const AddressRecord_1 = require("./AddressRecord");
37
- const InvoiceRecord_1 = require("./InvoiceRecord");
38
- const NoteRecord_1 = require("./NoteRecord");
39
- const ActivityRecord_1 = require("./ActivityRecord");
40
- const OrderItemRecord_1 = require("./OrderItemRecord");
41
- const ActivityLogRecord_1 = require("./ActivityLogRecord");
42
- const FileRecord_1 = require("./FileRecord");
43
- const OrderRecord_1 = require("./OrderRecord");
44
- const ContactRecord_1 = require("./ContactRecord");
45
32
  /**
46
33
  * Builder for action execution with dryRun support
47
34
  *
@@ -153,357 +140,6 @@ class OneTouchSwitchRecord {
153
140
  /** Access the underlying OdinRecord (null for new records) */
154
141
  get record() { return this._record; }
155
142
  // ============================================
156
- // TYPE GUARDS (with TypeScript type predicates)
157
- // ============================================
158
- /**
159
- * Type guard: check if this record is of type DEFAULT
160
- *
161
- * When this returns true, TypeScript automatically narrows the type,
162
- * giving you access to DEFAULT-specific properties.
163
- *
164
- * @example
165
- * ```typescript
166
- * if (record.isDefault()) {
167
- * // TypeScript knows record.properties is OneTouchSwitchProperties
168
- * console.log(record.properties.SomeTypeSpecificField);
169
- * }
170
- * ```
171
- * @remarks This is the default record type
172
- */
173
- isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
174
- /**
175
- * Type guard: check if this record is of type GAINING
176
- *
177
- * When this returns true, TypeScript automatically narrows the type,
178
- * giving you access to GAINING-specific properties.
179
- *
180
- * @example
181
- * ```typescript
182
- * if (record.isGaining()) {
183
- * // TypeScript knows record.properties is GainingOneTouchSwitchProperties
184
- * console.log(record.properties.SomeTypeSpecificField);
185
- * }
186
- * ```
187
- * @remarks gaining
188
- */
189
- isGaining() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'GAINING'; }
190
- /**
191
- * Type guard: check if this record is of type LOSING
192
- *
193
- * When this returns true, TypeScript automatically narrows the type,
194
- * giving you access to LOSING-specific properties.
195
- *
196
- * @example
197
- * ```typescript
198
- * if (record.isLosing()) {
199
- * // TypeScript knows record.properties is LosingOneTouchSwitchProperties
200
- * console.log(record.properties.SomeTypeSpecificField);
201
- * }
202
- * ```
203
- * @remarks losing
204
- */
205
- isLosing() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'LOSING'; }
206
- /**
207
- * Access linked Account records
208
- * @remarks Available labels: Account__OneTouchSwitch
209
- * @throws Error if called on a new (unsaved) record
210
- *
211
- * @example
212
- * ```typescript
213
- * // Get all linked Account records
214
- * const items = await record.accounts.list();
215
- * const first = await record.accounts.first();
216
- *
217
- * // Filter by label
218
- * const specific = await record.accounts.first({ label: 'Account__OneTouchSwitch' });
219
- * ```
220
- */
221
- get accounts() {
222
- var _a;
223
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
224
- throw new Error('Cannot access links on a new (unsaved) record');
225
- if (!this._accounts) {
226
- this._accounts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
227
- sourceEntity: 'OrderModule:OneTouchSwitch',
228
- targetEntity: 'CrmModule:Account',
229
- targetModuleName: 'CrmModule',
230
- targetEntityName: 'Account',
231
- labels: ['Account__OneTouchSwitch'],
232
- }, AccountRecord_1.AccountRecord);
233
- }
234
- return this._accounts;
235
- }
236
- /**
237
- * Access linked Address records
238
- * @remarks Available labels: OneTouchSwitch__Address
239
- * @throws Error if called on a new (unsaved) record
240
- *
241
- * @example
242
- * ```typescript
243
- * // Get all linked Address records
244
- * const items = await record.addresses.list();
245
- * const first = await record.addresses.first();
246
- *
247
- * // Filter by label
248
- * const specific = await record.addresses.first({ label: 'OneTouchSwitch__Address' });
249
- * ```
250
- */
251
- get addresses() {
252
- var _a;
253
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
254
- throw new Error('Cannot access links on a new (unsaved) record');
255
- if (!this._addresses) {
256
- this._addresses = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
257
- sourceEntity: 'OrderModule:OneTouchSwitch',
258
- targetEntity: 'CrmModule:Address',
259
- targetModuleName: 'CrmModule',
260
- targetEntityName: 'Address',
261
- labels: ['OneTouchSwitch__Address'],
262
- }, AddressRecord_1.AddressRecord);
263
- }
264
- return this._addresses;
265
- }
266
- /**
267
- * Access linked Invoice records
268
- * @remarks Available labels: OneTouchSwitch__Invoice
269
- * @throws Error if called on a new (unsaved) record
270
- *
271
- * @example
272
- * ```typescript
273
- * // Get all linked Invoice records
274
- * const items = await record.invoices.list();
275
- * const first = await record.invoices.first();
276
- *
277
- * // Filter by label
278
- * const specific = await record.invoices.first({ label: 'OneTouchSwitch__Invoice' });
279
- * ```
280
- */
281
- get invoices() {
282
- var _a;
283
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
284
- throw new Error('Cannot access links on a new (unsaved) record');
285
- if (!this._invoices) {
286
- this._invoices = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
287
- sourceEntity: 'OrderModule:OneTouchSwitch',
288
- targetEntity: 'BillingModule:Invoice',
289
- targetModuleName: 'BillingModule',
290
- targetEntityName: 'Invoice',
291
- labels: ['OneTouchSwitch__Invoice'],
292
- }, InvoiceRecord_1.InvoiceRecord);
293
- }
294
- return this._invoices;
295
- }
296
- /**
297
- * Access linked Note records
298
- * @remarks Available labels: OneTouchSwitch_Note
299
- * @throws Error if called on a new (unsaved) record
300
- *
301
- * @example
302
- * ```typescript
303
- * // Get all linked Note records
304
- * const items = await record.notes.list();
305
- * const first = await record.notes.first();
306
- *
307
- * // Filter by label
308
- * const specific = await record.notes.first({ label: 'OneTouchSwitch_Note' });
309
- * ```
310
- */
311
- get notes() {
312
- var _a;
313
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
314
- throw new Error('Cannot access links on a new (unsaved) record');
315
- if (!this._notes) {
316
- this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
317
- sourceEntity: 'OrderModule:OneTouchSwitch',
318
- targetEntity: 'SupportModule:Note',
319
- targetModuleName: 'SupportModule',
320
- targetEntityName: 'Note',
321
- labels: ['OneTouchSwitch_Note'],
322
- }, NoteRecord_1.NoteRecord);
323
- }
324
- return this._notes;
325
- }
326
- /**
327
- * Access linked Activity records
328
- * @remarks Available labels: OneTouchSwitch__Activity
329
- * @throws Error if called on a new (unsaved) record
330
- *
331
- * @example
332
- * ```typescript
333
- * // Get all linked Activity records
334
- * const items = await record.activities.list();
335
- * const first = await record.activities.first();
336
- *
337
- * // Filter by label
338
- * const specific = await record.activities.first({ label: 'OneTouchSwitch__Activity' });
339
- * ```
340
- */
341
- get activities() {
342
- var _a;
343
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
344
- throw new Error('Cannot access links on a new (unsaved) record');
345
- if (!this._activities) {
346
- this._activities = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
347
- sourceEntity: 'OrderModule:OneTouchSwitch',
348
- targetEntity: 'SchemaModule:Activity',
349
- targetModuleName: 'SchemaModule',
350
- targetEntityName: 'Activity',
351
- labels: ['OneTouchSwitch__Activity'],
352
- }, ActivityRecord_1.ActivityRecord);
353
- }
354
- return this._activities;
355
- }
356
- /**
357
- * Access linked OrderItem records
358
- * @remarks Available labels: OneTouchSwitch__OrderItem
359
- * @throws Error if called on a new (unsaved) record
360
- *
361
- * @example
362
- * ```typescript
363
- * // Get all linked OrderItem records
364
- * const items = await record.orderItems.list();
365
- * const first = await record.orderItems.first();
366
- *
367
- * // Filter by label
368
- * const specific = await record.orderItems.first({ label: 'OneTouchSwitch__OrderItem' });
369
- * ```
370
- */
371
- get orderItems() {
372
- var _a;
373
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
374
- throw new Error('Cannot access links on a new (unsaved) record');
375
- if (!this._orderItems) {
376
- this._orderItems = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
377
- sourceEntity: 'OrderModule:OneTouchSwitch',
378
- targetEntity: 'OrderModule:OrderItem',
379
- targetModuleName: 'OrderModule',
380
- targetEntityName: 'OrderItem',
381
- labels: ['OneTouchSwitch__OrderItem'],
382
- }, OrderItemRecord_1.OrderItemRecord);
383
- }
384
- return this._orderItems;
385
- }
386
- /**
387
- * Access linked ActivityLog records
388
- * @remarks Available labels: OneTouchSwitch_ActivityLog
389
- * @throws Error if called on a new (unsaved) record
390
- *
391
- * @example
392
- * ```typescript
393
- * // Get all linked ActivityLog records
394
- * const items = await record.activityLogs.list();
395
- * const first = await record.activityLogs.first();
396
- *
397
- * // Filter by label
398
- * const specific = await record.activityLogs.first({ label: 'OneTouchSwitch_ActivityLog' });
399
- * ```
400
- */
401
- get activityLogs() {
402
- var _a;
403
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
404
- throw new Error('Cannot access links on a new (unsaved) record');
405
- if (!this._activityLogs) {
406
- this._activityLogs = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
407
- sourceEntity: 'OrderModule:OneTouchSwitch',
408
- targetEntity: 'AuditModule:ActivityLog',
409
- targetModuleName: 'AuditModule',
410
- targetEntityName: 'ActivityLog',
411
- labels: ['OneTouchSwitch_ActivityLog'],
412
- }, ActivityLogRecord_1.ActivityLogRecord);
413
- }
414
- return this._activityLogs;
415
- }
416
- /**
417
- * Access linked File records
418
- * @remarks Available labels: OneTouchSwitch_File
419
- * @throws Error if called on a new (unsaved) record
420
- *
421
- * @example
422
- * ```typescript
423
- * // Get all linked File records
424
- * const items = await record.files.list();
425
- * const first = await record.files.first();
426
- *
427
- * // Filter by label
428
- * const specific = await record.files.first({ label: 'OneTouchSwitch_File' });
429
- * ```
430
- */
431
- get files() {
432
- var _a;
433
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
434
- throw new Error('Cannot access links on a new (unsaved) record');
435
- if (!this._files) {
436
- this._files = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
437
- sourceEntity: 'OrderModule:OneTouchSwitch',
438
- targetEntity: 'SchemaModule:File',
439
- targetModuleName: 'SchemaModule',
440
- targetEntityName: 'File',
441
- labels: ['OneTouchSwitch_File'],
442
- }, FileRecord_1.FileRecord);
443
- }
444
- return this._files;
445
- }
446
- /**
447
- * Access linked Order records
448
- * @remarks Available labels: OneTouchSwitch__Order
449
- * @throws Error if called on a new (unsaved) record
450
- *
451
- * @example
452
- * ```typescript
453
- * // Get all linked Order records
454
- * const items = await record.orders.list();
455
- * const first = await record.orders.first();
456
- *
457
- * // Filter by label
458
- * const specific = await record.orders.first({ label: 'OneTouchSwitch__Order' });
459
- * ```
460
- */
461
- get orders() {
462
- var _a;
463
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
464
- throw new Error('Cannot access links on a new (unsaved) record');
465
- if (!this._orders) {
466
- this._orders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
467
- sourceEntity: 'OrderModule:OneTouchSwitch',
468
- targetEntity: 'OrderModule:Order',
469
- targetModuleName: 'OrderModule',
470
- targetEntityName: 'Order',
471
- labels: ['OneTouchSwitch__Order'],
472
- }, OrderRecord_1.OrderRecord);
473
- }
474
- return this._orders;
475
- }
476
- /**
477
- * Access linked Contact records
478
- * @remarks Available labels: OneTouchSwitch__Contact
479
- * @throws Error if called on a new (unsaved) record
480
- *
481
- * @example
482
- * ```typescript
483
- * // Get all linked Contact records
484
- * const items = await record.contacts.list();
485
- * const first = await record.contacts.first();
486
- *
487
- * // Filter by label
488
- * const specific = await record.contacts.first({ label: 'OneTouchSwitch__Contact' });
489
- * ```
490
- */
491
- get contacts() {
492
- var _a;
493
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
494
- throw new Error('Cannot access links on a new (unsaved) record');
495
- if (!this._contacts) {
496
- this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
497
- sourceEntity: 'OrderModule:OneTouchSwitch',
498
- targetEntity: 'CrmModule:Contact',
499
- targetModuleName: 'CrmModule',
500
- targetEntityName: 'Contact',
501
- labels: ['OneTouchSwitch__Contact'],
502
- }, ContactRecord_1.ContactRecord);
503
- }
504
- return this._contacts;
505
- }
506
- // ============================================
507
143
  // LINK MANAGEMENT
508
144
  // ============================================
509
145
  /**
@@ -654,31 +290,45 @@ class OneTouchSwitchRecord {
654
290
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateOneTouchSwitchOrder', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
655
291
  return new ActionBuilder(this._provider, 'OrderModule', 'OneTouchSwitch', payload, () => { this._pendingLinks = []; });
656
292
  }
293
+ /**
294
+ * UpdateOneTouchSwitchOrderForActivation
295
+ *
296
+ * Updates this OneTouchSwitch record.
297
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
298
+ *
299
+ * @param propertiesOrOptions - Properties to update, or options object
300
+ * @param options - Optional settings (journeyId, stageKey)
301
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
302
+ * @throws Error if called on a new (unsaved) record
303
+ *
304
+ * @example
305
+ * ```typescript
306
+ * const record = await odinClient.oneTouchSwitchs.get(id);
307
+ * await record.updateOneTouchSwitchOrderForActivation({ ... }).execute();
308
+ *
309
+ * // Dry run (for debugging)
310
+ * const payload = record.updateOneTouchSwitchOrderForActivation({ ... }).dryRun();
311
+ * ```
312
+ */
313
+ updateOneTouchSwitchOrderForActivation(propertiesOrOptions, options) {
314
+ var _a;
315
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
316
+ throw new Error('updateOneTouchSwitchOrderForActivation requires an existing record. Use accessor.get() first.');
317
+ let properties = {};
318
+ let opts = options;
319
+ if (propertiesOrOptions) {
320
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
321
+ opts = propertiesOrOptions;
322
+ }
323
+ else {
324
+ properties = propertiesOrOptions;
325
+ }
326
+ }
327
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateOneTouchSwitchOrderForActivation', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
328
+ return new ActionBuilder(this._provider, 'OrderModule', 'OneTouchSwitch', payload, () => { this._pendingLinks = []; });
329
+ }
657
330
  }
658
331
  exports.OneTouchSwitchRecord = OneTouchSwitchRecord;
659
- // ============================================
660
- // TYPED LINK ACCESSORS
661
- // ============================================
662
- /** Valid labels for Account associations */
663
- OneTouchSwitchRecord.accountsLabels = ['Account__OneTouchSwitch'];
664
- /** Valid labels for Address associations */
665
- OneTouchSwitchRecord.addressesLabels = ['OneTouchSwitch__Address'];
666
- /** Valid labels for Invoice associations */
667
- OneTouchSwitchRecord.invoicesLabels = ['OneTouchSwitch__Invoice'];
668
- /** Valid labels for Note associations */
669
- OneTouchSwitchRecord.notesLabels = ['OneTouchSwitch_Note'];
670
- /** Valid labels for Activity associations */
671
- OneTouchSwitchRecord.activitiesLabels = ['OneTouchSwitch__Activity'];
672
- /** Valid labels for OrderItem associations */
673
- OneTouchSwitchRecord.orderItemsLabels = ['OneTouchSwitch__OrderItem'];
674
- /** Valid labels for ActivityLog associations */
675
- OneTouchSwitchRecord.activityLogsLabels = ['OneTouchSwitch_ActivityLog'];
676
- /** Valid labels for File associations */
677
- OneTouchSwitchRecord.filesLabels = ['OneTouchSwitch_File'];
678
- /** Valid labels for Order associations */
679
- OneTouchSwitchRecord.ordersLabels = ['OneTouchSwitch__Order'];
680
- /** Valid labels for Contact associations */
681
- OneTouchSwitchRecord.contactsLabels = ['OneTouchSwitch__Contact'];
682
332
  /** Type guard to check if an object is a OneTouchSwitchRecord */
683
333
  function isOneTouchSwitchRecord(obj) {
684
334
  return obj instanceof OneTouchSwitchRecord;
@@ -13,22 +13,15 @@
13
13
  * await record.createOntReplacementApproval({ ... }).execute();
14
14
  * ```
15
15
  *
16
- * Entity Types: DEFAULT
17
- *
18
16
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
19
17
  */
20
18
  import { OdinRecord, OdinRecordLinkDto } from '@d19n/odin-types/dist/core';
21
19
  import { PipelineStageEntity } from '@d19n/odin-types/dist/core';
22
20
  import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/v1.db.interfaces';
23
21
  import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
24
- import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
25
22
  import { OntReplacementApprovalProperties } from '../entities-v2/OntReplacementApproval';
26
23
  import { ChangeOntReplacementRequestApprovalStatusProperties } from '../actions-v2/ChangeOntReplacementRequestApprovalStatusDto';
27
24
  import { CreateOntReplacementApprovalProperties } from '../actions-v2/CreateOntReplacementApprovalDto';
28
- import { WorkOrderRecord } from './WorkOrderRecord';
29
- import { CustomerDeviceOntRecord } from './CustomerDeviceOntRecord';
30
- /** Valid entity types for OntReplacementApproval */
31
- export declare type OntReplacementApprovalType = 'DEFAULT';
32
25
  /**
33
26
  * Builder for action execution with dryRun support
34
27
  *
@@ -92,8 +85,6 @@ export declare class OntReplacementApprovalRecord<TProps = OntReplacementApprova
92
85
  private _provider;
93
86
  private _pendingLinks;
94
87
  private _preGeneratedId;
95
- private _workOrders?;
96
- private _customerDeviceOnts?;
97
88
  /**
98
89
  * Create a record wrapper.
99
90
  * @param record - The underlying record, or null for create operations
@@ -106,7 +97,7 @@ export declare class OntReplacementApprovalRecord<TProps = OntReplacementApprova
106
97
  /** Record ID - always available (pre-generated for new records) */
107
98
  get id(): string;
108
99
  get entity(): string;
109
- get type(): OntReplacementApprovalType | undefined;
100
+ get type(): string | undefined;
110
101
  /** Record properties - empty object for new (unsaved) records */
111
102
  get properties(): TProps;
112
103
  get title(): string | undefined;
@@ -119,58 +110,6 @@ export declare class OntReplacementApprovalRecord<TProps = OntReplacementApprova
119
110
  get groups(): string[];
120
111
  /** Access the underlying OdinRecord (null for new records) */
121
112
  get record(): OdinRecord<TProps> | null;
122
- /**
123
- * Type guard: check if this record is of type DEFAULT
124
- *
125
- * When this returns true, TypeScript automatically narrows the type,
126
- * giving you access to DEFAULT-specific properties.
127
- *
128
- * @example
129
- * ```typescript
130
- * if (record.isDefault()) {
131
- * // TypeScript knows record.properties is OntReplacementApprovalProperties
132
- * console.log(record.properties.SomeTypeSpecificField);
133
- * }
134
- * ```
135
- * @remarks This is the default record type
136
- */
137
- isDefault(): this is OntReplacementApprovalRecord<OntReplacementApprovalProperties>;
138
- /** Valid labels for WorkOrder associations */
139
- static readonly workOrdersLabels: readonly ["OntReplacementApproval_WorkOrder"];
140
- /**
141
- * Access linked WorkOrder records
142
- * @remarks Available labels: OntReplacementApproval_WorkOrder
143
- * @throws Error if called on a new (unsaved) record
144
- *
145
- * @example
146
- * ```typescript
147
- * // Get all linked WorkOrder records
148
- * const items = await record.workOrders.list();
149
- * const first = await record.workOrders.first();
150
- *
151
- * // Filter by label
152
- * const specific = await record.workOrders.first({ label: 'OntReplacementApproval_WorkOrder' });
153
- * ```
154
- */
155
- get workOrders(): RecordLinkManager<WorkOrderRecord, typeof OntReplacementApprovalRecord['workOrdersLabels'][number]>;
156
- /** Valid labels for CustomerDeviceOnt associations */
157
- static readonly customerDeviceOntsLabels: readonly ["OntReplacementApproval_CustomerDeviceOnt"];
158
- /**
159
- * Access linked CustomerDeviceOnt records
160
- * @remarks Available labels: OntReplacementApproval_CustomerDeviceOnt
161
- * @throws Error if called on a new (unsaved) record
162
- *
163
- * @example
164
- * ```typescript
165
- * // Get all linked CustomerDeviceOnt records
166
- * const items = await record.customerDeviceOnts.list();
167
- * const first = await record.customerDeviceOnts.first();
168
- *
169
- * // Filter by label
170
- * const specific = await record.customerDeviceOnts.first({ label: 'OntReplacementApproval_CustomerDeviceOnt' });
171
- * ```
172
- */
173
- get customerDeviceOnts(): RecordLinkManager<CustomerDeviceOntRecord, typeof OntReplacementApprovalRecord['customerDeviceOntsLabels'][number]>;
174
113
  /**
175
114
  * Queue a link to be created with the next action.
176
115
  * Works for both create and update actions.
@@ -14,8 +14,6 @@
14
14
  * await record.createOntReplacementApproval({ ... }).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,9 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
31
29
  exports.isOntReplacementApprovalRecord = exports.OntReplacementApprovalRecord = 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 WorkOrderRecord_1 = require("./WorkOrderRecord");
36
- const CustomerDeviceOntRecord_1 = require("./CustomerDeviceOntRecord");
37
32
  /**
38
33
  * Builder for action execution with dryRun support
39
34
  *
@@ -145,85 +140,6 @@ class OntReplacementApprovalRecord {
145
140
  /** Access the underlying OdinRecord (null for new records) */
146
141
  get record() { return this._record; }
147
142
  // ============================================
148
- // TYPE GUARDS (with TypeScript type predicates)
149
- // ============================================
150
- /**
151
- * Type guard: check if this record is of type DEFAULT
152
- *
153
- * When this returns true, TypeScript automatically narrows the type,
154
- * giving you access to DEFAULT-specific properties.
155
- *
156
- * @example
157
- * ```typescript
158
- * if (record.isDefault()) {
159
- * // TypeScript knows record.properties is OntReplacementApprovalProperties
160
- * console.log(record.properties.SomeTypeSpecificField);
161
- * }
162
- * ```
163
- * @remarks This is the default record type
164
- */
165
- isDefault() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'DEFAULT'; }
166
- /**
167
- * Access linked WorkOrder records
168
- * @remarks Available labels: OntReplacementApproval_WorkOrder
169
- * @throws Error if called on a new (unsaved) record
170
- *
171
- * @example
172
- * ```typescript
173
- * // Get all linked WorkOrder records
174
- * const items = await record.workOrders.list();
175
- * const first = await record.workOrders.first();
176
- *
177
- * // Filter by label
178
- * const specific = await record.workOrders.first({ label: 'OntReplacementApproval_WorkOrder' });
179
- * ```
180
- */
181
- get workOrders() {
182
- var _a;
183
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
184
- throw new Error('Cannot access links on a new (unsaved) record');
185
- if (!this._workOrders) {
186
- this._workOrders = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
187
- sourceEntity: 'FieldServiceModule:OntReplacementApproval',
188
- targetEntity: 'FieldServiceModule:WorkOrder',
189
- targetModuleName: 'FieldServiceModule',
190
- targetEntityName: 'WorkOrder',
191
- labels: ['OntReplacementApproval_WorkOrder'],
192
- }, WorkOrderRecord_1.WorkOrderRecord);
193
- }
194
- return this._workOrders;
195
- }
196
- /**
197
- * Access linked CustomerDeviceOnt records
198
- * @remarks Available labels: OntReplacementApproval_CustomerDeviceOnt
199
- * @throws Error if called on a new (unsaved) record
200
- *
201
- * @example
202
- * ```typescript
203
- * // Get all linked CustomerDeviceOnt records
204
- * const items = await record.customerDeviceOnts.list();
205
- * const first = await record.customerDeviceOnts.first();
206
- *
207
- * // Filter by label
208
- * const specific = await record.customerDeviceOnts.first({ label: 'OntReplacementApproval_CustomerDeviceOnt' });
209
- * ```
210
- */
211
- get customerDeviceOnts() {
212
- var _a;
213
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
214
- throw new Error('Cannot access links on a new (unsaved) record');
215
- if (!this._customerDeviceOnts) {
216
- this._customerDeviceOnts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
217
- sourceEntity: 'FieldServiceModule:OntReplacementApproval',
218
- targetEntity: 'ServiceModule:CustomerDeviceOnt',
219
- targetModuleName: 'ServiceModule',
220
- targetEntityName: 'CustomerDeviceOnt',
221
- labels: ['OntReplacementApproval_CustomerDeviceOnt'],
222
- }, CustomerDeviceOntRecord_1.CustomerDeviceOntRecord);
223
- }
224
- return this._customerDeviceOnts;
225
- }
226
- // ============================================
227
143
  // LINK MANAGEMENT
228
144
  // ============================================
229
145
  /**
@@ -339,13 +255,6 @@ class OntReplacementApprovalRecord {
339
255
  }
340
256
  }
341
257
  exports.OntReplacementApprovalRecord = OntReplacementApprovalRecord;
342
- // ============================================
343
- // TYPED LINK ACCESSORS
344
- // ============================================
345
- /** Valid labels for WorkOrder associations */
346
- OntReplacementApprovalRecord.workOrdersLabels = ['OntReplacementApproval_WorkOrder'];
347
- /** Valid labels for CustomerDeviceOnt associations */
348
- OntReplacementApprovalRecord.customerDeviceOntsLabels = ['OntReplacementApproval_CustomerDeviceOnt'];
349
258
  /** Type guard to check if an object is a OntReplacementApprovalRecord */
350
259
  function isOntReplacementApprovalRecord(obj) {
351
260
  return obj instanceof OntReplacementApprovalRecord;