candidhealth 0.35.3 → 0.37.0

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 (418) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +65 -60
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +19 -0
  5. package/api/resources/billingNotes/resources/v2/client/Client.js +125 -1
  6. package/api/resources/billingNotes/resources/v2/client/delete.d.ts +40 -0
  7. package/api/resources/billingNotes/resources/v2/client/delete.js +80 -0
  8. package/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  9. package/api/resources/billingNotes/resources/v2/client/index.js +3 -1
  10. package/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +13 -0
  11. package/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.js +5 -0
  12. package/api/resources/billingNotes/resources/v2/client/requests/index.d.ts +1 -0
  13. package/api/resources/billingNotes/resources/v2/client/update.d.ts +46 -0
  14. package/api/resources/billingNotes/resources/v2/client/update.js +91 -0
  15. package/api/resources/chargeCapture/client/Client.d.ts +26 -0
  16. package/api/resources/chargeCapture/client/Client.js +17 -0
  17. package/api/resources/chargeCapture/client/index.d.ts +1 -0
  18. package/api/resources/chargeCapture/client/index.js +2 -0
  19. package/api/resources/chargeCapture/index.d.ts +2 -0
  20. package/api/resources/chargeCapture/index.js +18 -0
  21. package/api/resources/chargeCapture/resources/index.d.ts +1 -0
  22. package/api/resources/chargeCapture/resources/index.js +27 -0
  23. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +288 -0
  24. package/api/resources/chargeCapture/resources/v1/client/Client.js +594 -0
  25. package/api/resources/chargeCapture/resources/v1/client/create.d.ts +52 -0
  26. package/api/resources/chargeCapture/resources/v1/client/create.js +102 -0
  27. package/api/resources/chargeCapture/resources/v1/client/delete.d.ts +40 -0
  28. package/api/resources/chargeCapture/resources/v1/client/delete.js +80 -0
  29. package/api/resources/chargeCapture/resources/v1/client/get.d.ts +22 -0
  30. package/api/resources/chargeCapture/resources/v1/client/get.js +47 -0
  31. package/api/resources/chargeCapture/resources/v1/client/getAll.d.ts +28 -0
  32. package/api/resources/chargeCapture/resources/v1/client/getAll.js +58 -0
  33. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +6 -0
  34. package/api/resources/chargeCapture/resources/v1/client/index.js +35 -0
  35. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +136 -0
  36. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +5 -0
  37. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +137 -0
  38. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +5 -0
  39. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +35 -0
  40. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.js +5 -0
  41. package/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +3 -0
  42. package/api/resources/chargeCapture/resources/v1/client/requests/index.js +2 -0
  43. package/api/resources/chargeCapture/resources/v1/client/update.d.ts +52 -0
  44. package/api/resources/chargeCapture/resources/v1/client/update.js +102 -0
  45. package/api/resources/chargeCapture/resources/v1/index.d.ts +2 -0
  46. package/api/resources/chargeCapture/resources/v1/index.js +18 -0
  47. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +12 -0
  48. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.js +5 -0
  49. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +31 -0
  50. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +5 -0
  51. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +7 -0
  52. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +5 -0
  53. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +13 -0
  54. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +15 -0
  55. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +4 -0
  56. package/api/resources/chargeCapture/resources/v1/types/index.js +20 -0
  57. package/api/resources/commons/types/BillingProviderCommercialLicenseType.d.ts +16 -0
  58. package/api/resources/commons/types/BillingProviderCommercialLicenseType.js +18 -0
  59. package/api/resources/commons/types/ChargeCaptureId.d.ts +8 -0
  60. package/api/resources/commons/types/ChargeCaptureId.js +10 -0
  61. package/api/resources/commons/types/NotImplementedErrorMessage.d.ts +6 -0
  62. package/api/resources/commons/types/NotImplementedErrorMessage.js +5 -0
  63. package/api/resources/commons/types/ProcedureModifier.d.ts +5 -1
  64. package/api/resources/commons/types/ProcedureModifier.js +1 -0
  65. package/api/resources/commons/types/index.d.ts +3 -0
  66. package/api/resources/commons/types/index.js +3 -0
  67. package/api/resources/contracts/resources/v2/client/Client.js +6 -5
  68. package/api/resources/contracts/resources/v2/client/update.d.ts +7 -1
  69. package/api/resources/contracts/resources/v2/client/update.js +11 -0
  70. package/api/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.d.ts +6 -0
  71. package/api/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.js +5 -0
  72. package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  73. package/api/resources/contracts/resources/v2/types/index.js +1 -0
  74. package/api/resources/credentialing/resources/v2/client/Client.js +6 -6
  75. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  76. package/api/resources/diagnoses/client/Client.js +3 -3
  77. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  78. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -66
  79. package/api/resources/encounterProviders/resources/v2/client/Client.js +20 -78
  80. package/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +5 -0
  81. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +5 -0
  82. package/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +5 -0
  83. package/api/resources/encounters/resources/v4/client/Client.d.ts +29 -273
  84. package/api/resources/encounters/resources/v4/client/Client.js +34 -278
  85. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +9 -62
  86. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -20
  87. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +18 -391
  88. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -2
  89. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +146 -0
  90. package/api/resources/encounters/resources/v4/types/EncounterOptional.js +5 -0
  91. package/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  92. package/api/resources/encounters/resources/v4/types/index.js +1 -0
  93. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  94. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  95. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  96. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  97. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  98. package/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -21
  99. package/api/resources/guarantor/resources/v1/client/Client.js +4 -24
  100. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  101. package/api/resources/index.d.ts +1 -0
  102. package/api/resources/index.js +2 -1
  103. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  104. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  105. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  106. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  107. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  108. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +1 -0
  109. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +6 -5
  110. package/api/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.d.ts +1 -0
  111. package/api/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.d.ts +1 -0
  112. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  113. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  114. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  115. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  116. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  117. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  118. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  119. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  120. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  121. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  122. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  123. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  124. package/api/resources/serviceFacility/client/Client.js +1 -1
  125. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +1 -4
  126. package/api/resources/serviceLines/resources/v2/client/Client.js +4 -7
  127. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  128. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  129. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  130. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  131. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  132. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  133. package/dist/Client.d.ts +3 -0
  134. package/dist/Client.js +65 -60
  135. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  136. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +19 -0
  137. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +125 -1
  138. package/dist/api/resources/billingNotes/resources/v2/client/delete.d.ts +40 -0
  139. package/dist/api/resources/billingNotes/resources/v2/client/delete.js +80 -0
  140. package/dist/api/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  141. package/dist/api/resources/billingNotes/resources/v2/client/index.js +3 -1
  142. package/dist/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +13 -0
  143. package/dist/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.js +5 -0
  144. package/dist/api/resources/billingNotes/resources/v2/client/requests/index.d.ts +1 -0
  145. package/dist/api/resources/billingNotes/resources/v2/client/update.d.ts +46 -0
  146. package/dist/api/resources/billingNotes/resources/v2/client/update.js +91 -0
  147. package/dist/api/resources/chargeCapture/client/Client.d.ts +26 -0
  148. package/dist/api/resources/chargeCapture/client/Client.js +17 -0
  149. package/dist/api/resources/chargeCapture/client/index.d.ts +1 -0
  150. package/dist/api/resources/chargeCapture/client/index.js +2 -0
  151. package/dist/api/resources/chargeCapture/index.d.ts +2 -0
  152. package/dist/api/resources/chargeCapture/index.js +18 -0
  153. package/dist/api/resources/chargeCapture/resources/index.d.ts +1 -0
  154. package/dist/api/resources/chargeCapture/resources/index.js +27 -0
  155. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +288 -0
  156. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +594 -0
  157. package/dist/api/resources/chargeCapture/resources/v1/client/create.d.ts +52 -0
  158. package/dist/api/resources/chargeCapture/resources/v1/client/create.js +102 -0
  159. package/dist/api/resources/chargeCapture/resources/v1/client/delete.d.ts +40 -0
  160. package/dist/api/resources/chargeCapture/resources/v1/client/delete.js +80 -0
  161. package/dist/api/resources/chargeCapture/resources/v1/client/get.d.ts +22 -0
  162. package/dist/api/resources/chargeCapture/resources/v1/client/get.js +47 -0
  163. package/dist/api/resources/chargeCapture/resources/v1/client/getAll.d.ts +28 -0
  164. package/dist/api/resources/chargeCapture/resources/v1/client/getAll.js +58 -0
  165. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +6 -0
  166. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +35 -0
  167. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +136 -0
  168. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +5 -0
  169. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +137 -0
  170. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +5 -0
  171. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +35 -0
  172. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.js +5 -0
  173. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.d.ts +3 -0
  174. package/dist/api/resources/chargeCapture/resources/v1/client/requests/index.js +2 -0
  175. package/dist/api/resources/chargeCapture/resources/v1/client/update.d.ts +52 -0
  176. package/dist/api/resources/chargeCapture/resources/v1/client/update.js +102 -0
  177. package/dist/api/resources/chargeCapture/resources/v1/index.d.ts +2 -0
  178. package/dist/api/resources/chargeCapture/resources/v1/index.js +18 -0
  179. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +12 -0
  180. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.js +5 -0
  181. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +31 -0
  182. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +5 -0
  183. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +7 -0
  184. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +5 -0
  185. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +13 -0
  186. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +15 -0
  187. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +4 -0
  188. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +20 -0
  189. package/dist/api/resources/commons/types/BillingProviderCommercialLicenseType.d.ts +16 -0
  190. package/dist/api/resources/commons/types/BillingProviderCommercialLicenseType.js +18 -0
  191. package/dist/api/resources/commons/types/ChargeCaptureId.d.ts +8 -0
  192. package/dist/api/resources/commons/types/ChargeCaptureId.js +10 -0
  193. package/dist/api/resources/commons/types/NotImplementedErrorMessage.d.ts +6 -0
  194. package/dist/api/resources/commons/types/NotImplementedErrorMessage.js +5 -0
  195. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +5 -1
  196. package/dist/api/resources/commons/types/ProcedureModifier.js +1 -0
  197. package/dist/api/resources/commons/types/index.d.ts +3 -0
  198. package/dist/api/resources/commons/types/index.js +3 -0
  199. package/dist/api/resources/contracts/resources/v2/client/Client.js +6 -5
  200. package/dist/api/resources/contracts/resources/v2/client/update.d.ts +7 -1
  201. package/dist/api/resources/contracts/resources/v2/client/update.js +11 -0
  202. package/dist/api/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.d.ts +6 -0
  203. package/dist/api/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.js +5 -0
  204. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  205. package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
  206. package/dist/api/resources/credentialing/resources/v2/client/Client.js +6 -6
  207. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  208. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  209. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  210. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -66
  211. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +20 -78
  212. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +5 -0
  213. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +5 -0
  214. package/dist/api/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +5 -0
  215. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +29 -273
  216. package/dist/api/resources/encounters/resources/v4/client/Client.js +34 -278
  217. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +9 -62
  218. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +6 -20
  219. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +18 -391
  220. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +2 -2
  221. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +146 -0
  222. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.js +5 -0
  223. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +1 -0
  224. package/dist/api/resources/encounters/resources/v4/types/index.js +1 -0
  225. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  226. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  227. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  228. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  229. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  230. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +1 -21
  231. package/dist/api/resources/guarantor/resources/v1/client/Client.js +4 -24
  232. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  233. package/dist/api/resources/index.d.ts +1 -0
  234. package/dist/api/resources/index.js +2 -1
  235. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  236. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  237. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  238. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  239. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  240. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +1 -0
  241. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +6 -5
  242. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.d.ts +1 -0
  243. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.d.ts +1 -0
  244. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  245. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  246. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  247. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  248. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  249. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  250. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  251. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  252. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  253. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  254. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  255. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  256. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  257. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +1 -4
  258. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +4 -7
  259. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +2 -0
  260. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -0
  261. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -0
  262. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -0
  263. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  264. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  265. package/dist/serialization/resources/billingNotes/resources/v2/client/delete.d.ts +25 -0
  266. package/dist/serialization/resources/billingNotes/resources/v2/client/delete.js +73 -0
  267. package/dist/serialization/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  268. package/dist/serialization/resources/billingNotes/resources/v2/client/index.js +15 -0
  269. package/dist/serialization/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +12 -0
  270. package/dist/serialization/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.js +33 -0
  271. package/dist/serialization/resources/billingNotes/resources/v2/client/requests/index.d.ts +1 -0
  272. package/dist/serialization/resources/billingNotes/resources/v2/client/requests/index.js +3 -1
  273. package/dist/serialization/resources/billingNotes/resources/v2/client/update.d.ts +30 -0
  274. package/dist/serialization/resources/billingNotes/resources/v2/client/update.js +79 -0
  275. package/dist/serialization/resources/chargeCapture/index.d.ts +1 -0
  276. package/dist/serialization/resources/chargeCapture/index.js +17 -0
  277. package/dist/serialization/resources/chargeCapture/resources/index.d.ts +1 -0
  278. package/dist/serialization/resources/chargeCapture/resources/index.js +27 -0
  279. package/dist/serialization/resources/chargeCapture/resources/v1/client/create.d.ts +35 -0
  280. package/dist/serialization/resources/chargeCapture/resources/v1/client/create.js +85 -0
  281. package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +25 -0
  282. package/dist/serialization/resources/chargeCapture/resources/v1/client/delete.js +73 -0
  283. package/dist/serialization/resources/chargeCapture/resources/v1/client/getAll.d.ts +15 -0
  284. package/dist/serialization/resources/chargeCapture/resources/v1/client/getAll.js +61 -0
  285. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +5 -0
  286. package/dist/serialization/resources/chargeCapture/resources/v1/client/index.js +34 -0
  287. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +19 -0
  288. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +40 -0
  289. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +19 -0
  290. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +40 -0
  291. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +2 -0
  292. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +7 -0
  293. package/dist/serialization/resources/chargeCapture/resources/v1/client/update.d.ts +35 -0
  294. package/dist/serialization/resources/chargeCapture/resources/v1/client/update.js +85 -0
  295. package/dist/serialization/resources/chargeCapture/resources/v1/index.d.ts +2 -0
  296. package/dist/serialization/resources/chargeCapture/resources/v1/index.js +18 -0
  297. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +22 -0
  298. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +43 -0
  299. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +24 -0
  300. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +47 -0
  301. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +14 -0
  302. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +37 -0
  303. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +10 -0
  304. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +39 -0
  305. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +4 -0
  306. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +20 -0
  307. package/dist/serialization/resources/commons/types/BillingProviderCommercialLicenseType.d.ts +10 -0
  308. package/dist/serialization/resources/commons/types/BillingProviderCommercialLicenseType.js +31 -0
  309. package/dist/serialization/resources/commons/types/ChargeCaptureId.d.ts +10 -0
  310. package/dist/serialization/resources/commons/types/ChargeCaptureId.js +35 -0
  311. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +12 -0
  312. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.js +33 -0
  313. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  314. package/dist/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  315. package/dist/serialization/resources/commons/types/index.d.ts +3 -0
  316. package/dist/serialization/resources/commons/types/index.js +3 -0
  317. package/dist/serialization/resources/contracts/resources/v2/client/update.d.ts +6 -1
  318. package/dist/serialization/resources/contracts/resources/v2/client/update.js +6 -0
  319. package/dist/serialization/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.d.ts +12 -0
  320. package/dist/serialization/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.js +33 -0
  321. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  322. package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  323. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +2 -0
  324. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.js +2 -0
  325. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +2 -0
  326. package/dist/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +2 -0
  327. package/dist/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +2 -0
  328. package/dist/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.js +2 -0
  329. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -59
  330. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +5 -60
  331. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +70 -0
  332. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +91 -0
  333. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  334. package/dist/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  335. package/dist/serialization/resources/index.d.ts +1 -0
  336. package/dist/serialization/resources/index.js +2 -1
  337. package/dist/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.d.ts +1 -0
  338. package/dist/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.js +1 -0
  339. package/dist/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.d.ts +1 -0
  340. package/dist/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.js +1 -0
  341. package/package.json +1 -1
  342. package/reference.md +606 -362
  343. package/serialization/resources/billingNotes/resources/v2/client/delete.d.ts +25 -0
  344. package/serialization/resources/billingNotes/resources/v2/client/delete.js +73 -0
  345. package/serialization/resources/billingNotes/resources/v2/client/index.d.ts +2 -0
  346. package/serialization/resources/billingNotes/resources/v2/client/index.js +15 -0
  347. package/serialization/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +12 -0
  348. package/serialization/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.js +33 -0
  349. package/serialization/resources/billingNotes/resources/v2/client/requests/index.d.ts +1 -0
  350. package/serialization/resources/billingNotes/resources/v2/client/requests/index.js +3 -1
  351. package/serialization/resources/billingNotes/resources/v2/client/update.d.ts +30 -0
  352. package/serialization/resources/billingNotes/resources/v2/client/update.js +79 -0
  353. package/serialization/resources/chargeCapture/index.d.ts +1 -0
  354. package/serialization/resources/chargeCapture/index.js +17 -0
  355. package/serialization/resources/chargeCapture/resources/index.d.ts +1 -0
  356. package/serialization/resources/chargeCapture/resources/index.js +27 -0
  357. package/serialization/resources/chargeCapture/resources/v1/client/create.d.ts +35 -0
  358. package/serialization/resources/chargeCapture/resources/v1/client/create.js +85 -0
  359. package/serialization/resources/chargeCapture/resources/v1/client/delete.d.ts +25 -0
  360. package/serialization/resources/chargeCapture/resources/v1/client/delete.js +73 -0
  361. package/serialization/resources/chargeCapture/resources/v1/client/getAll.d.ts +15 -0
  362. package/serialization/resources/chargeCapture/resources/v1/client/getAll.js +61 -0
  363. package/serialization/resources/chargeCapture/resources/v1/client/index.d.ts +5 -0
  364. package/serialization/resources/chargeCapture/resources/v1/client/index.js +34 -0
  365. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +19 -0
  366. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +40 -0
  367. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +19 -0
  368. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +40 -0
  369. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.d.ts +2 -0
  370. package/serialization/resources/chargeCapture/resources/v1/client/requests/index.js +7 -0
  371. package/serialization/resources/chargeCapture/resources/v1/client/update.d.ts +35 -0
  372. package/serialization/resources/chargeCapture/resources/v1/client/update.js +85 -0
  373. package/serialization/resources/chargeCapture/resources/v1/index.d.ts +2 -0
  374. package/serialization/resources/chargeCapture/resources/v1/index.js +18 -0
  375. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +22 -0
  376. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +43 -0
  377. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +24 -0
  378. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +47 -0
  379. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.d.ts +14 -0
  380. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePage.js +37 -0
  381. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.d.ts +10 -0
  382. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureStatus.js +39 -0
  383. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +4 -0
  384. package/serialization/resources/chargeCapture/resources/v1/types/index.js +20 -0
  385. package/serialization/resources/commons/types/BillingProviderCommercialLicenseType.d.ts +10 -0
  386. package/serialization/resources/commons/types/BillingProviderCommercialLicenseType.js +31 -0
  387. package/serialization/resources/commons/types/ChargeCaptureId.d.ts +10 -0
  388. package/serialization/resources/commons/types/ChargeCaptureId.js +35 -0
  389. package/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +12 -0
  390. package/serialization/resources/commons/types/NotImplementedErrorMessage.js +33 -0
  391. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  392. package/serialization/resources/commons/types/ProcedureModifier.js +1 -0
  393. package/serialization/resources/commons/types/index.d.ts +3 -0
  394. package/serialization/resources/commons/types/index.js +3 -0
  395. package/serialization/resources/contracts/resources/v2/client/update.d.ts +6 -1
  396. package/serialization/resources/contracts/resources/v2/client/update.js +6 -0
  397. package/serialization/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.d.ts +12 -0
  398. package/serialization/resources/contracts/resources/v2/types/ContractInvalidExpirationDateError.js +33 -0
  399. package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  400. package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  401. package/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +2 -0
  402. package/serialization/resources/encounterProviders/resources/v2/types/BillingProvider.js +2 -0
  403. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +2 -0
  404. package/serialization/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.js +2 -0
  405. package/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.d.ts +2 -0
  406. package/serialization/resources/encounterProviders/resources/v2/types/EncounterProvider.js +2 -0
  407. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +2 -59
  408. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +5 -60
  409. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +70 -0
  410. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +91 -0
  411. package/serialization/resources/encounters/resources/v4/types/index.d.ts +1 -0
  412. package/serialization/resources/encounters/resources/v4/types/index.js +1 -0
  413. package/serialization/resources/index.d.ts +1 -0
  414. package/serialization/resources/index.js +2 -1
  415. package/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.d.ts +1 -0
  416. package/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefund.js +1 -0
  417. package/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.d.ts +1 -0
  418. package/serialization/resources/nonInsurancePayerRefunds/resources/v1/types/NonInsurancePayerRefundCreate.js +1 -0
package/Client.d.ts CHANGED
@@ -5,6 +5,7 @@ import * as environments from "./environments";
5
5
  import * as core from "./core";
6
6
  import { Auth } from "./api/resources/auth/client/Client";
7
7
  import { BillingNotes } from "./api/resources/billingNotes/client/Client";
8
+ import { ChargeCapture } from "./api/resources/chargeCapture/client/Client";
8
9
  import { Contracts } from "./api/resources/contracts/client/Client";
9
10
  import { Credentialing } from "./api/resources/credentialing/client/Client";
10
11
  import { CustomSchemas } from "./api/resources/customSchemas/client/Client";
@@ -58,6 +59,8 @@ export declare class CandidApiClient {
58
59
  get auth(): Auth;
59
60
  protected _billingNotes: BillingNotes | undefined;
60
61
  get billingNotes(): BillingNotes;
62
+ protected _chargeCapture: ChargeCapture | undefined;
63
+ get chargeCapture(): ChargeCapture;
61
64
  protected _contracts: Contracts | undefined;
62
65
  get contracts(): Contracts;
63
66
  protected _credentialing: Credentialing | undefined;
package/Client.js CHANGED
@@ -40,36 +40,37 @@ const core = __importStar(require("./core"));
40
40
  const Client_1 = require("./api/resources/auth/resources/v2/client/Client");
41
41
  const Client_2 = require("./api/resources/auth/client/Client");
42
42
  const Client_3 = require("./api/resources/billingNotes/client/Client");
43
- const Client_4 = require("./api/resources/contracts/client/Client");
44
- const Client_5 = require("./api/resources/credentialing/client/Client");
45
- const Client_6 = require("./api/resources/customSchemas/client/Client");
46
- const Client_7 = require("./api/resources/eligibility/client/Client");
47
- const Client_8 = require("./api/resources/encounterProviders/client/Client");
48
- const Client_9 = require("./api/resources/encounters/client/Client");
49
- const Client_10 = require("./api/resources/expectedNetworkStatus/client/Client");
50
- const Client_11 = require("./api/resources/exports/client/Client");
51
- const Client_12 = require("./api/resources/externalPaymentAccountConfig/client/Client");
52
- const Client_13 = require("./api/resources/feeSchedules/client/Client");
53
- const Client_14 = require("./api/resources/guarantor/client/Client");
54
- const Client_15 = require("./api/resources/importInvoice/client/Client");
55
- const Client_16 = require("./api/resources/insuranceAdjudications/client/Client");
56
- const Client_17 = require("./api/resources/insurancePayments/client/Client");
57
- const Client_18 = require("./api/resources/insuranceRefunds/client/Client");
58
- const Client_19 = require("./api/resources/medicationDispense/client/Client");
59
- const Client_20 = require("./api/resources/nonInsurancePayerPayments/client/Client");
60
- const Client_21 = require("./api/resources/nonInsurancePayerRefunds/client/Client");
61
- const Client_22 = require("./api/resources/nonInsurancePayers/client/Client");
62
- const Client_23 = require("./api/resources/organizationServiceFacilities/client/Client");
63
- const Client_24 = require("./api/resources/organizationProviders/client/Client");
64
- const Client_25 = require("./api/resources/patientPayments/client/Client");
65
- const Client_26 = require("./api/resources/patientRefunds/client/Client");
66
- const Client_27 = require("./api/resources/payers/client/Client");
67
- const Client_28 = require("./api/resources/serviceLines/client/Client");
68
- const Client_29 = require("./api/resources/tasks/client/Client");
69
- const Client_30 = require("./api/resources/writeOffs/client/Client");
70
- const Client_31 = require("./api/resources/preEncounter/client/Client");
71
- const Client_32 = require("./api/resources/diagnoses/client/Client");
72
- const Client_33 = require("./api/resources/serviceFacility/client/Client");
43
+ const Client_4 = require("./api/resources/chargeCapture/client/Client");
44
+ const Client_5 = require("./api/resources/contracts/client/Client");
45
+ const Client_6 = require("./api/resources/credentialing/client/Client");
46
+ const Client_7 = require("./api/resources/customSchemas/client/Client");
47
+ const Client_8 = require("./api/resources/eligibility/client/Client");
48
+ const Client_9 = require("./api/resources/encounterProviders/client/Client");
49
+ const Client_10 = require("./api/resources/encounters/client/Client");
50
+ const Client_11 = require("./api/resources/expectedNetworkStatus/client/Client");
51
+ const Client_12 = require("./api/resources/exports/client/Client");
52
+ const Client_13 = require("./api/resources/externalPaymentAccountConfig/client/Client");
53
+ const Client_14 = require("./api/resources/feeSchedules/client/Client");
54
+ const Client_15 = require("./api/resources/guarantor/client/Client");
55
+ const Client_16 = require("./api/resources/importInvoice/client/Client");
56
+ const Client_17 = require("./api/resources/insuranceAdjudications/client/Client");
57
+ const Client_18 = require("./api/resources/insurancePayments/client/Client");
58
+ const Client_19 = require("./api/resources/insuranceRefunds/client/Client");
59
+ const Client_20 = require("./api/resources/medicationDispense/client/Client");
60
+ const Client_21 = require("./api/resources/nonInsurancePayerPayments/client/Client");
61
+ const Client_22 = require("./api/resources/nonInsurancePayerRefunds/client/Client");
62
+ const Client_23 = require("./api/resources/nonInsurancePayers/client/Client");
63
+ const Client_24 = require("./api/resources/organizationServiceFacilities/client/Client");
64
+ const Client_25 = require("./api/resources/organizationProviders/client/Client");
65
+ const Client_26 = require("./api/resources/patientPayments/client/Client");
66
+ const Client_27 = require("./api/resources/patientRefunds/client/Client");
67
+ const Client_28 = require("./api/resources/payers/client/Client");
68
+ const Client_29 = require("./api/resources/serviceLines/client/Client");
69
+ const Client_30 = require("./api/resources/tasks/client/Client");
70
+ const Client_31 = require("./api/resources/writeOffs/client/Client");
71
+ const Client_32 = require("./api/resources/preEncounter/client/Client");
72
+ const Client_33 = require("./api/resources/diagnoses/client/Client");
73
+ const Client_34 = require("./api/resources/serviceFacility/client/Client");
73
74
  class CandidApiClient {
74
75
  constructor(_options) {
75
76
  this._options = _options;
@@ -89,125 +90,129 @@ class CandidApiClient {
89
90
  var _a;
90
91
  return ((_a = this._billingNotes) !== null && _a !== void 0 ? _a : (this._billingNotes = new Client_3.BillingNotes(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
91
92
  }
93
+ get chargeCapture() {
94
+ var _a;
95
+ return ((_a = this._chargeCapture) !== null && _a !== void 0 ? _a : (this._chargeCapture = new Client_4.ChargeCapture(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
96
+ }
92
97
  get contracts() {
93
98
  var _a;
94
- return ((_a = this._contracts) !== null && _a !== void 0 ? _a : (this._contracts = new Client_4.Contracts(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
99
+ return ((_a = this._contracts) !== null && _a !== void 0 ? _a : (this._contracts = new Client_5.Contracts(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
95
100
  }
96
101
  get credentialing() {
97
102
  var _a;
98
- return ((_a = this._credentialing) !== null && _a !== void 0 ? _a : (this._credentialing = new Client_5.Credentialing(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
103
+ return ((_a = this._credentialing) !== null && _a !== void 0 ? _a : (this._credentialing = new Client_6.Credentialing(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
99
104
  }
100
105
  get customSchemas() {
101
106
  var _a;
102
- return ((_a = this._customSchemas) !== null && _a !== void 0 ? _a : (this._customSchemas = new Client_6.CustomSchemas(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
107
+ return ((_a = this._customSchemas) !== null && _a !== void 0 ? _a : (this._customSchemas = new Client_7.CustomSchemas(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
103
108
  }
104
109
  get eligibility() {
105
110
  var _a;
106
- return ((_a = this._eligibility) !== null && _a !== void 0 ? _a : (this._eligibility = new Client_7.Eligibility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
111
+ return ((_a = this._eligibility) !== null && _a !== void 0 ? _a : (this._eligibility = new Client_8.Eligibility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
107
112
  }
108
113
  get encounterProviders() {
109
114
  var _a;
110
- return ((_a = this._encounterProviders) !== null && _a !== void 0 ? _a : (this._encounterProviders = new Client_8.EncounterProviders(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
115
+ return ((_a = this._encounterProviders) !== null && _a !== void 0 ? _a : (this._encounterProviders = new Client_9.EncounterProviders(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
111
116
  }
112
117
  get encounters() {
113
118
  var _a;
114
- return ((_a = this._encounters) !== null && _a !== void 0 ? _a : (this._encounters = new Client_9.Encounters(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
119
+ return ((_a = this._encounters) !== null && _a !== void 0 ? _a : (this._encounters = new Client_10.Encounters(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
115
120
  }
116
121
  get expectedNetworkStatus() {
117
122
  var _a;
118
- return ((_a = this._expectedNetworkStatus) !== null && _a !== void 0 ? _a : (this._expectedNetworkStatus = new Client_10.ExpectedNetworkStatus(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
123
+ return ((_a = this._expectedNetworkStatus) !== null && _a !== void 0 ? _a : (this._expectedNetworkStatus = new Client_11.ExpectedNetworkStatus(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
119
124
  }
120
125
  get exports() {
121
126
  var _a;
122
- return ((_a = this._exports) !== null && _a !== void 0 ? _a : (this._exports = new Client_11.Exports(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
127
+ return ((_a = this._exports) !== null && _a !== void 0 ? _a : (this._exports = new Client_12.Exports(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
123
128
  }
124
129
  get externalPaymentAccountConfig() {
125
130
  var _a;
126
- return ((_a = this._externalPaymentAccountConfig) !== null && _a !== void 0 ? _a : (this._externalPaymentAccountConfig = new Client_12.ExternalPaymentAccountConfig(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
131
+ return ((_a = this._externalPaymentAccountConfig) !== null && _a !== void 0 ? _a : (this._externalPaymentAccountConfig = new Client_13.ExternalPaymentAccountConfig(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
127
132
  }
128
133
  get feeSchedules() {
129
134
  var _a;
130
- return ((_a = this._feeSchedules) !== null && _a !== void 0 ? _a : (this._feeSchedules = new Client_13.FeeSchedules(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
135
+ return ((_a = this._feeSchedules) !== null && _a !== void 0 ? _a : (this._feeSchedules = new Client_14.FeeSchedules(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
131
136
  }
132
137
  get guarantor() {
133
138
  var _a;
134
- return ((_a = this._guarantor) !== null && _a !== void 0 ? _a : (this._guarantor = new Client_14.Guarantor(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
139
+ return ((_a = this._guarantor) !== null && _a !== void 0 ? _a : (this._guarantor = new Client_15.Guarantor(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
135
140
  }
136
141
  get importInvoice() {
137
142
  var _a;
138
- return ((_a = this._importInvoice) !== null && _a !== void 0 ? _a : (this._importInvoice = new Client_15.ImportInvoice(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
143
+ return ((_a = this._importInvoice) !== null && _a !== void 0 ? _a : (this._importInvoice = new Client_16.ImportInvoice(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
139
144
  }
140
145
  get insuranceAdjudications() {
141
146
  var _a;
142
- return ((_a = this._insuranceAdjudications) !== null && _a !== void 0 ? _a : (this._insuranceAdjudications = new Client_16.InsuranceAdjudications(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
147
+ return ((_a = this._insuranceAdjudications) !== null && _a !== void 0 ? _a : (this._insuranceAdjudications = new Client_17.InsuranceAdjudications(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
143
148
  }
144
149
  get insurancePayments() {
145
150
  var _a;
146
- return ((_a = this._insurancePayments) !== null && _a !== void 0 ? _a : (this._insurancePayments = new Client_17.InsurancePayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
151
+ return ((_a = this._insurancePayments) !== null && _a !== void 0 ? _a : (this._insurancePayments = new Client_18.InsurancePayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
147
152
  }
148
153
  get insuranceRefunds() {
149
154
  var _a;
150
- return ((_a = this._insuranceRefunds) !== null && _a !== void 0 ? _a : (this._insuranceRefunds = new Client_18.InsuranceRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
155
+ return ((_a = this._insuranceRefunds) !== null && _a !== void 0 ? _a : (this._insuranceRefunds = new Client_19.InsuranceRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
151
156
  }
152
157
  get medicationDispense() {
153
158
  var _a;
154
- return ((_a = this._medicationDispense) !== null && _a !== void 0 ? _a : (this._medicationDispense = new Client_19.MedicationDispense(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
159
+ return ((_a = this._medicationDispense) !== null && _a !== void 0 ? _a : (this._medicationDispense = new Client_20.MedicationDispense(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
155
160
  }
156
161
  get nonInsurancePayerPayments() {
157
162
  var _a;
158
- return ((_a = this._nonInsurancePayerPayments) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerPayments = new Client_20.NonInsurancePayerPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
163
+ return ((_a = this._nonInsurancePayerPayments) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerPayments = new Client_21.NonInsurancePayerPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
159
164
  }
160
165
  get nonInsurancePayerRefunds() {
161
166
  var _a;
162
- return ((_a = this._nonInsurancePayerRefunds) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerRefunds = new Client_21.NonInsurancePayerRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
167
+ return ((_a = this._nonInsurancePayerRefunds) !== null && _a !== void 0 ? _a : (this._nonInsurancePayerRefunds = new Client_22.NonInsurancePayerRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
163
168
  }
164
169
  get nonInsurancePayers() {
165
170
  var _a;
166
- return ((_a = this._nonInsurancePayers) !== null && _a !== void 0 ? _a : (this._nonInsurancePayers = new Client_22.NonInsurancePayers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
171
+ return ((_a = this._nonInsurancePayers) !== null && _a !== void 0 ? _a : (this._nonInsurancePayers = new Client_23.NonInsurancePayers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
167
172
  }
168
173
  get organizationServiceFacilities() {
169
174
  var _a;
170
- return ((_a = this._organizationServiceFacilities) !== null && _a !== void 0 ? _a : (this._organizationServiceFacilities = new Client_23.OrganizationServiceFacilities(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
175
+ return ((_a = this._organizationServiceFacilities) !== null && _a !== void 0 ? _a : (this._organizationServiceFacilities = new Client_24.OrganizationServiceFacilities(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
171
176
  }
172
177
  get organizationProviders() {
173
178
  var _a;
174
- return ((_a = this._organizationProviders) !== null && _a !== void 0 ? _a : (this._organizationProviders = new Client_24.OrganizationProviders(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
179
+ return ((_a = this._organizationProviders) !== null && _a !== void 0 ? _a : (this._organizationProviders = new Client_25.OrganizationProviders(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
175
180
  }
176
181
  get patientPayments() {
177
182
  var _a;
178
- return ((_a = this._patientPayments) !== null && _a !== void 0 ? _a : (this._patientPayments = new Client_25.PatientPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
183
+ return ((_a = this._patientPayments) !== null && _a !== void 0 ? _a : (this._patientPayments = new Client_26.PatientPayments(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
179
184
  }
180
185
  get patientRefunds() {
181
186
  var _a;
182
- return ((_a = this._patientRefunds) !== null && _a !== void 0 ? _a : (this._patientRefunds = new Client_26.PatientRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
187
+ return ((_a = this._patientRefunds) !== null && _a !== void 0 ? _a : (this._patientRefunds = new Client_27.PatientRefunds(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
183
188
  }
184
189
  get payers() {
185
190
  var _a;
186
- return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new Client_27.Payers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
191
+ return ((_a = this._payers) !== null && _a !== void 0 ? _a : (this._payers = new Client_28.Payers(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
187
192
  }
188
193
  get serviceLines() {
189
194
  var _a;
190
- return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new Client_28.ServiceLines(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
195
+ return ((_a = this._serviceLines) !== null && _a !== void 0 ? _a : (this._serviceLines = new Client_29.ServiceLines(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
191
196
  }
192
197
  get tasks() {
193
198
  var _a;
194
- return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_29.Tasks(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
199
+ return ((_a = this._tasks) !== null && _a !== void 0 ? _a : (this._tasks = new Client_30.Tasks(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
195
200
  }
196
201
  get writeOffs() {
197
202
  var _a;
198
- return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new Client_30.WriteOffs(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
203
+ return ((_a = this._writeOffs) !== null && _a !== void 0 ? _a : (this._writeOffs = new Client_31.WriteOffs(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
199
204
  }
200
205
  get preEncounter() {
201
206
  var _a;
202
- return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new Client_31.PreEncounter(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
207
+ return ((_a = this._preEncounter) !== null && _a !== void 0 ? _a : (this._preEncounter = new Client_32.PreEncounter(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
203
208
  }
204
209
  get diagnoses() {
205
210
  var _a;
206
- return ((_a = this._diagnoses) !== null && _a !== void 0 ? _a : (this._diagnoses = new Client_32.Diagnoses(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
211
+ return ((_a = this._diagnoses) !== null && _a !== void 0 ? _a : (this._diagnoses = new Client_33.Diagnoses(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
207
212
  }
208
213
  get serviceFacility() {
209
214
  var _a;
210
- return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_33.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
215
+ return ((_a = this._serviceFacility) !== null && _a !== void 0 ? _a : (this._serviceFacility = new Client_34.ServiceFacility(Object.assign(Object.assign({}, this._options), { token: () => __awaiter(this, void 0, void 0, function* () { return yield this._oauthTokenProvider.getToken(); }) }))));
211
216
  }
212
217
  }
213
218
  exports.CandidApiClient = CandidApiClient;
@@ -87,7 +87,7 @@ class V2 {
87
87
  Authorization: yield this._getAuthorizationHeader(),
88
88
  "X-Fern-Language": "JavaScript",
89
89
  "X-Fern-SDK-Name": "candidhealth",
90
- "X-Fern-SDK-Version": "0.35.3",
90
+ "X-Fern-SDK-Version": "0.37.0",
91
91
  "X-Fern-Runtime": core.RUNTIME.type,
92
92
  "X-Fern-Runtime-Version": core.RUNTIME.version,
93
93
  },
@@ -32,5 +32,24 @@ export declare class V2 {
32
32
  * })
33
33
  */
34
34
  create(request: CandidApi.billingNotes.v2.StandaloneBillingNoteCreate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.billingNotes.v2.BillingNote, CandidApi.billingNotes.v2.create.Error>>;
35
+ /**
36
+ * @param {CandidApi.billingNotes.v2.BillingNoteId} billingNoteId
37
+ * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
38
+ *
39
+ * @example
40
+ * await client.billingNotes.v2.delete(CandidApi.billingNotes.v2.BillingNoteId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
41
+ */
42
+ delete(billingNoteId: CandidApi.billingNotes.v2.BillingNoteId, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<void, CandidApi.billingNotes.v2.delete.Error>>;
43
+ /**
44
+ * @param {CandidApi.billingNotes.v2.BillingNoteId} billingNoteId
45
+ * @param {CandidApi.billingNotes.v2.BillingNoteUpdate} request
46
+ * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
47
+ *
48
+ * @example
49
+ * await client.billingNotes.v2.update(CandidApi.billingNotes.v2.BillingNoteId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
50
+ * text: "string"
51
+ * })
52
+ */
53
+ update(billingNoteId: CandidApi.billingNotes.v2.BillingNoteId, request: CandidApi.billingNotes.v2.BillingNoteUpdate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.billingNotes.v2.BillingNote, CandidApi.billingNotes.v2.update.Error>>;
35
54
  protected _getAuthorizationHeader(): Promise<string | undefined>;
36
55
  }
@@ -69,7 +69,7 @@ class V2 {
69
69
  Authorization: yield this._getAuthorizationHeader(),
70
70
  "X-Fern-Language": "JavaScript",
71
71
  "X-Fern-SDK-Name": "candidhealth",
72
- "X-Fern-SDK-Version": "0.35.3",
72
+ "X-Fern-SDK-Version": "0.37.0",
73
73
  "X-Fern-Runtime": core.RUNTIME.type,
74
74
  "X-Fern-Runtime-Version": core.RUNTIME.version,
75
75
  },
@@ -99,6 +99,130 @@ class V2 {
99
99
  };
100
100
  });
101
101
  }
102
+ /**
103
+ * @param {CandidApi.billingNotes.v2.BillingNoteId} billingNoteId
104
+ * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
105
+ *
106
+ * @example
107
+ * await client.billingNotes.v2.delete(CandidApi.billingNotes.v2.BillingNoteId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
108
+ */
109
+ delete(billingNoteId, requestOptions) {
110
+ var _a, _b;
111
+ return __awaiter(this, void 0, void 0, function* () {
112
+ const _response = yield core.fetcher({
113
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
114
+ .candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
115
+ method: "DELETE",
116
+ headers: {
117
+ Authorization: yield this._getAuthorizationHeader(),
118
+ "X-Fern-Language": "JavaScript",
119
+ "X-Fern-SDK-Name": "candidhealth",
120
+ "X-Fern-SDK-Version": "0.37.0",
121
+ "X-Fern-Runtime": core.RUNTIME.type,
122
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
123
+ },
124
+ contentType: "application/json",
125
+ requestType: "json",
126
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
127
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
128
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
129
+ });
130
+ if (_response.ok) {
131
+ return {
132
+ ok: true,
133
+ body: undefined,
134
+ };
135
+ }
136
+ if (_response.error.reason === "status-code") {
137
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
138
+ case "EntityNotFoundError":
139
+ case "OrganizationNotAuthorizedError":
140
+ case "UnauthorizedError":
141
+ return {
142
+ ok: false,
143
+ error: serializers.billingNotes.v2.delete.Error.parseOrThrow(_response.error.body, {
144
+ unrecognizedObjectKeys: "passthrough",
145
+ allowUnrecognizedUnionMembers: true,
146
+ allowUnrecognizedEnumValues: true,
147
+ breadcrumbsPrefix: ["response"],
148
+ }),
149
+ };
150
+ }
151
+ }
152
+ return {
153
+ ok: false,
154
+ error: CandidApi.billingNotes.v2.delete.Error._unknown(_response.error),
155
+ };
156
+ });
157
+ }
158
+ /**
159
+ * @param {CandidApi.billingNotes.v2.BillingNoteId} billingNoteId
160
+ * @param {CandidApi.billingNotes.v2.BillingNoteUpdate} request
161
+ * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
162
+ *
163
+ * @example
164
+ * await client.billingNotes.v2.update(CandidApi.billingNotes.v2.BillingNoteId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
165
+ * text: "string"
166
+ * })
167
+ */
168
+ update(billingNoteId, request, requestOptions) {
169
+ var _a, _b;
170
+ return __awaiter(this, void 0, void 0, function* () {
171
+ const _response = yield core.fetcher({
172
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
173
+ .candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
174
+ method: "PATCH",
175
+ headers: {
176
+ Authorization: yield this._getAuthorizationHeader(),
177
+ "X-Fern-Language": "JavaScript",
178
+ "X-Fern-SDK-Name": "candidhealth",
179
+ "X-Fern-SDK-Version": "0.37.0",
180
+ "X-Fern-Runtime": core.RUNTIME.type,
181
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
182
+ },
183
+ contentType: "application/json",
184
+ requestType: "json",
185
+ body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
186
+ unrecognizedObjectKeys: "strip",
187
+ }),
188
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
189
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
190
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
191
+ });
192
+ if (_response.ok) {
193
+ return {
194
+ ok: true,
195
+ body: serializers.billingNotes.v2.BillingNote.parseOrThrow(_response.body, {
196
+ unrecognizedObjectKeys: "passthrough",
197
+ allowUnrecognizedUnionMembers: true,
198
+ allowUnrecognizedEnumValues: true,
199
+ breadcrumbsPrefix: ["response"],
200
+ }),
201
+ };
202
+ }
203
+ if (_response.error.reason === "status-code") {
204
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
205
+ case "EntityNotFoundError":
206
+ case "OrganizationNotAuthorizedError":
207
+ case "HttpRequestValidationError":
208
+ case "UnauthorizedError":
209
+ return {
210
+ ok: false,
211
+ error: serializers.billingNotes.v2.update.Error.parseOrThrow(_response.error.body, {
212
+ unrecognizedObjectKeys: "passthrough",
213
+ allowUnrecognizedUnionMembers: true,
214
+ allowUnrecognizedEnumValues: true,
215
+ breadcrumbsPrefix: ["response"],
216
+ }),
217
+ };
218
+ }
219
+ }
220
+ return {
221
+ ok: false,
222
+ error: CandidApi.billingNotes.v2.update.Error._unknown(_response.error),
223
+ };
224
+ });
225
+ }
102
226
  _getAuthorizationHeader() {
103
227
  return __awaiter(this, void 0, void 0, function* () {
104
228
  const bearer = yield core.Supplier.get(this._options.token);
@@ -0,0 +1,40 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export declare type Error = CandidApi.billingNotes.v2.delete.Error.EntityNotFoundError | CandidApi.billingNotes.v2.delete.Error.OrganizationNotAuthorizedError | CandidApi.billingNotes.v2.delete.Error.UnauthorizedError | CandidApi.billingNotes.v2.delete.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface EntityNotFoundError extends _Utils {
9
+ errorName: "EntityNotFoundError";
10
+ content: CandidApi.EntityNotFoundErrorMessage;
11
+ }
12
+ interface OrganizationNotAuthorizedError extends _Utils {
13
+ errorName: "OrganizationNotAuthorizedError";
14
+ content: CandidApi.OrganizationNotAuthorizedErrorMessage;
15
+ }
16
+ interface UnauthorizedError extends _Utils {
17
+ errorName: "UnauthorizedError";
18
+ content: CandidApi.UnauthorizedErrorMessage;
19
+ }
20
+ interface _Unknown extends _Utils {
21
+ errorName: void;
22
+ content: core.Fetcher.Error;
23
+ }
24
+ interface _Utils {
25
+ _visit: <_Result>(visitor: CandidApi.billingNotes.v2.delete.Error._Visitor<_Result>) => _Result;
26
+ }
27
+ interface _Visitor<_Result> {
28
+ entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => _Result;
29
+ organizationNotAuthorizedError: (value: CandidApi.OrganizationNotAuthorizedErrorMessage) => _Result;
30
+ unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => _Result;
31
+ _other: (value: core.Fetcher.Error) => _Result;
32
+ }
33
+ }
34
+ export declare const Error: {
35
+ readonly entityNotFoundError: (value: CandidApi.EntityNotFoundErrorMessage) => CandidApi.billingNotes.v2.delete.Error.EntityNotFoundError;
36
+ readonly organizationNotAuthorizedError: (value: CandidApi.OrganizationNotAuthorizedErrorMessage) => CandidApi.billingNotes.v2.delete.Error.OrganizationNotAuthorizedError;
37
+ readonly unauthorizedError: (value: CandidApi.UnauthorizedErrorMessage) => CandidApi.billingNotes.v2.delete.Error.UnauthorizedError;
38
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.billingNotes.v2.delete.Error._Unknown;
39
+ readonly _visit: <_Result>(value: CandidApi.billingNotes.v2.delete.Error, visitor: CandidApi.billingNotes.v2.delete.Error._Visitor<_Result>) => _Result;
40
+ };
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Error = void 0;
30
+ const CandidApi = __importStar(require("../../../../../index"));
31
+ exports.Error = {
32
+ entityNotFoundError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "EntityNotFoundError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.billingNotes.v2.delete.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ organizationNotAuthorizedError: (value) => {
42
+ return {
43
+ content: value,
44
+ errorName: "OrganizationNotAuthorizedError",
45
+ _visit: function (visitor) {
46
+ return CandidApi.billingNotes.v2.delete.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ unauthorizedError: (value) => {
51
+ return {
52
+ content: value,
53
+ errorName: "UnauthorizedError",
54
+ _visit: function (visitor) {
55
+ return CandidApi.billingNotes.v2.delete.Error._visit(this, visitor);
56
+ },
57
+ };
58
+ },
59
+ _unknown: (fetcherError) => {
60
+ return {
61
+ errorName: undefined,
62
+ content: fetcherError,
63
+ _visit: function (visitor) {
64
+ return CandidApi.billingNotes.v2.delete.Error._visit(this, visitor);
65
+ },
66
+ };
67
+ },
68
+ _visit: (value, visitor) => {
69
+ switch (value.errorName) {
70
+ case "EntityNotFoundError":
71
+ return visitor.entityNotFoundError(value.content);
72
+ case "OrganizationNotAuthorizedError":
73
+ return visitor.organizationNotAuthorizedError(value.content);
74
+ case "UnauthorizedError":
75
+ return visitor.unauthorizedError(value.content);
76
+ default:
77
+ return visitor._other(value);
78
+ }
79
+ },
80
+ };
@@ -1,2 +1,4 @@
1
1
  export * from "./requests";
2
2
  export * as create from "./create";
3
+ export * as delete from "./delete";
4
+ export * as update from "./update";
@@ -26,6 +26,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.create = void 0;
29
+ exports.update = exports.delete = exports.create = void 0;
30
30
  __exportStar(require("./requests"), exports);
31
31
  exports.create = __importStar(require("./create"));
32
+ exports.delete = __importStar(require("./delete"));
33
+ exports.update = __importStar(require("./update"));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * text: "string"
8
+ * }
9
+ */
10
+ export interface BillingNoteUpdate {
11
+ /** Empty string not allowed. */
12
+ text: string;
13
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1,2 @@
1
1
  export { type StandaloneBillingNoteCreate } from "./StandaloneBillingNoteCreate";
2
+ export { type BillingNoteUpdate } from "./BillingNoteUpdate";