candidhealth 0.14.4 → 0.16.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 (297) hide show
  1. package/Client.d.ts +6 -0
  2. package/Client.js +26 -16
  3. package/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  4. package/api/resources/auth/resources/v2/client/Client.js +2 -2
  5. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  6. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  7. package/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  8. package/api/resources/encounters/resources/v4/client/Client.js +4 -4
  9. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  10. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  11. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  12. package/api/resources/financials/types/AllocationCreate.d.ts +5 -0
  13. package/api/resources/financials/types/AllocationTarget.d.ts +8 -6
  14. package/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
  15. package/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
  16. package/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
  17. package/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
  18. package/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
  19. package/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
  20. package/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
  21. package/api/resources/financials/types/index.d.ts +3 -0
  22. package/api/resources/financials/types/index.js +3 -0
  23. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  24. package/api/resources/index.d.ts +2 -0
  25. package/api/resources/index.js +3 -1
  26. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  27. package/api/resources/insurancePayments/client/Client.d.ts +18 -0
  28. package/api/resources/insurancePayments/client/Client.js +18 -0
  29. package/api/resources/insurancePayments/client/index.d.ts +1 -0
  30. package/api/resources/insurancePayments/client/index.js +2 -0
  31. package/api/resources/insurancePayments/index.d.ts +2 -0
  32. package/api/resources/insurancePayments/index.js +18 -0
  33. package/api/resources/insurancePayments/resources/index.d.ts +1 -0
  34. package/api/resources/insurancePayments/resources/index.js +27 -0
  35. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
  36. package/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
  37. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
  38. package/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
  39. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
  40. package/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
  41. package/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
  42. package/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
  43. package/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
  44. package/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
  45. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  46. package/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
  47. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
  48. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
  49. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
  50. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
  51. package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
  52. package/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
  53. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
  54. package/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
  55. package/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  56. package/api/resources/insurancePayments/resources/v1/index.js +18 -0
  57. package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
  58. package/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
  59. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
  60. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
  61. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
  62. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
  63. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
  64. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
  65. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
  66. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
  67. package/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  68. package/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
  69. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  70. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  71. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  72. package/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
  73. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
  74. package/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
  75. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
  76. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  77. package/api/resources/serviceFacility/client/Client.d.ts +18 -0
  78. package/api/resources/serviceFacility/client/Client.js +83 -0
  79. package/api/resources/serviceFacility/client/index.d.ts +2 -0
  80. package/api/resources/serviceFacility/client/index.js +31 -0
  81. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  82. package/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  83. package/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  84. package/api/resources/serviceFacility/client/requests/index.js +2 -0
  85. package/api/resources/serviceFacility/client/update.d.ts +22 -0
  86. package/api/resources/serviceFacility/client/update.js +47 -0
  87. package/api/resources/serviceFacility/index.d.ts +1 -0
  88. package/api/resources/serviceFacility/index.js +1 -0
  89. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  90. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  91. package/api/resources/x12/resources/v1/types/Carc.d.ts +2 -1
  92. package/api/resources/x12/resources/v1/types/Carc.js +1 -0
  93. package/dist/Client.d.ts +6 -0
  94. package/dist/Client.js +26 -16
  95. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +1 -1
  96. package/dist/api/resources/auth/resources/v2/client/Client.js +2 -2
  97. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  98. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  99. package/dist/api/resources/eligibility/resources/v2/client/Client.js +1 -1
  100. package/dist/api/resources/encounters/resources/v4/client/Client.js +4 -4
  101. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  102. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  103. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  104. package/dist/api/resources/financials/types/AllocationCreate.d.ts +5 -0
  105. package/dist/api/resources/financials/types/AllocationTarget.d.ts +8 -6
  106. package/dist/api/resources/financials/types/AllocationTargetCreate.d.ts +5 -0
  107. package/dist/api/resources/financials/types/BillingProviderAllocationTarget.d.ts +7 -0
  108. package/dist/api/resources/financials/types/BillingProviderAllocationTarget.js +5 -0
  109. package/dist/api/resources/financials/types/ClaimAllocationTarget.d.ts +8 -0
  110. package/dist/api/resources/financials/types/ClaimAllocationTarget.js +5 -0
  111. package/dist/api/resources/financials/types/ServiceLineAllocationTarget.d.ts +9 -0
  112. package/dist/api/resources/financials/types/ServiceLineAllocationTarget.js +5 -0
  113. package/dist/api/resources/financials/types/index.d.ts +3 -0
  114. package/dist/api/resources/financials/types/index.js +3 -0
  115. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  116. package/dist/api/resources/index.d.ts +2 -0
  117. package/dist/api/resources/index.js +3 -1
  118. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  119. package/dist/api/resources/insurancePayments/client/Client.d.ts +18 -0
  120. package/dist/api/resources/insurancePayments/client/Client.js +18 -0
  121. package/dist/api/resources/insurancePayments/client/index.d.ts +1 -0
  122. package/dist/api/resources/insurancePayments/client/index.js +2 -0
  123. package/dist/api/resources/insurancePayments/index.d.ts +2 -0
  124. package/dist/api/resources/insurancePayments/index.js +18 -0
  125. package/dist/api/resources/insurancePayments/resources/index.d.ts +1 -0
  126. package/dist/api/resources/insurancePayments/resources/index.js +27 -0
  127. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +48 -0
  128. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +325 -0
  129. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +28 -0
  130. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +58 -0
  131. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +34 -0
  132. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +69 -0
  133. package/dist/api/resources/insurancePayments/resources/v1/client/get.d.ts +34 -0
  134. package/dist/api/resources/insurancePayments/resources/v1/client/get.js +69 -0
  135. package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.d.ts +34 -0
  136. package/dist/api/resources/insurancePayments/resources/v1/client/getMulti.js +69 -0
  137. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  138. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +35 -0
  139. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +23 -0
  140. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.js +5 -0
  141. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +8 -0
  142. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +5 -0
  143. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +2 -0
  144. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.js +2 -0
  145. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +34 -0
  146. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +69 -0
  147. package/dist/api/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  148. package/dist/api/resources/insurancePayments/resources/v1/index.js +18 -0
  149. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +12 -0
  150. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePayment.js +5 -0
  151. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +11 -0
  152. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +5 -0
  153. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +8 -0
  154. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +10 -0
  155. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +9 -0
  156. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +11 -0
  157. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +7 -0
  158. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +5 -0
  159. package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  160. package/dist/api/resources/insurancePayments/resources/v1/types/index.js +21 -0
  161. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  162. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  163. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  164. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +9 -6
  165. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -0
  166. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +9 -6
  167. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -0
  168. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  169. package/dist/api/resources/serviceFacility/client/Client.d.ts +18 -0
  170. package/dist/api/resources/serviceFacility/client/Client.js +83 -0
  171. package/dist/api/resources/serviceFacility/client/index.d.ts +2 -0
  172. package/dist/api/resources/serviceFacility/client/index.js +31 -0
  173. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +18 -0
  174. package/dist/api/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +5 -0
  175. package/dist/api/resources/serviceFacility/client/requests/index.d.ts +1 -0
  176. package/dist/api/resources/serviceFacility/client/requests/index.js +2 -0
  177. package/dist/api/resources/serviceFacility/client/update.d.ts +22 -0
  178. package/dist/api/resources/serviceFacility/client/update.js +47 -0
  179. package/dist/api/resources/serviceFacility/index.d.ts +1 -0
  180. package/dist/api/resources/serviceFacility/index.js +1 -0
  181. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  182. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  183. package/dist/api/resources/x12/resources/v1/types/Carc.d.ts +2 -1
  184. package/dist/api/resources/x12/resources/v1/types/Carc.js +1 -0
  185. package/dist/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
  186. package/dist/serialization/resources/financials/types/AllocationTarget.js +3 -9
  187. package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
  188. package/dist/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
  189. package/dist/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
  190. package/dist/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
  191. package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
  192. package/dist/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
  193. package/dist/serialization/resources/financials/types/index.d.ts +3 -0
  194. package/dist/serialization/resources/financials/types/index.js +3 -0
  195. package/dist/serialization/resources/index.d.ts +2 -0
  196. package/dist/serialization/resources/index.js +3 -1
  197. package/dist/serialization/resources/insurancePayments/index.d.ts +1 -0
  198. package/dist/serialization/resources/insurancePayments/index.js +17 -0
  199. package/dist/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
  200. package/dist/serialization/resources/insurancePayments/resources/index.js +27 -0
  201. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
  202. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
  203. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
  204. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
  205. package/dist/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
  206. package/dist/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
  207. package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
  208. package/dist/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
  209. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  210. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
  211. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
  212. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
  213. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
  214. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
  215. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
  216. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
  217. package/dist/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  218. package/dist/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
  219. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
  220. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
  221. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
  222. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
  223. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
  224. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
  225. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
  226. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
  227. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
  228. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
  229. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  230. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
  231. package/dist/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  232. package/dist/serialization/resources/serviceFacility/client/index.js +17 -0
  233. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  234. package/dist/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  235. package/dist/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  236. package/dist/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  237. package/dist/serialization/resources/serviceFacility/index.d.ts +1 -0
  238. package/dist/serialization/resources/serviceFacility/index.js +1 -0
  239. package/dist/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  240. package/dist/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
  241. package/package.json +1 -1
  242. package/serialization/resources/financials/types/AllocationTarget.d.ts +3 -6
  243. package/serialization/resources/financials/types/AllocationTarget.js +3 -9
  244. package/serialization/resources/financials/types/BillingProviderAllocationTarget.d.ts +12 -0
  245. package/serialization/resources/financials/types/BillingProviderAllocationTarget.js +33 -0
  246. package/serialization/resources/financials/types/ClaimAllocationTarget.d.ts +13 -0
  247. package/serialization/resources/financials/types/ClaimAllocationTarget.js +34 -0
  248. package/serialization/resources/financials/types/ServiceLineAllocationTarget.d.ts +14 -0
  249. package/serialization/resources/financials/types/ServiceLineAllocationTarget.js +35 -0
  250. package/serialization/resources/financials/types/index.d.ts +3 -0
  251. package/serialization/resources/financials/types/index.js +3 -0
  252. package/serialization/resources/index.d.ts +2 -0
  253. package/serialization/resources/index.js +3 -1
  254. package/serialization/resources/insurancePayments/index.d.ts +1 -0
  255. package/serialization/resources/insurancePayments/index.js +17 -0
  256. package/serialization/resources/insurancePayments/resources/index.d.ts +1 -0
  257. package/serialization/resources/insurancePayments/resources/index.js +27 -0
  258. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +14 -0
  259. package/serialization/resources/insurancePayments/resources/v1/client/create.js +46 -0
  260. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +18 -0
  261. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +51 -0
  262. package/serialization/resources/insurancePayments/resources/v1/client/get.d.ts +18 -0
  263. package/serialization/resources/insurancePayments/resources/v1/client/get.js +51 -0
  264. package/serialization/resources/insurancePayments/resources/v1/client/getMulti.d.ts +18 -0
  265. package/serialization/resources/insurancePayments/resources/v1/client/getMulti.js +51 -0
  266. package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +6 -0
  267. package/serialization/resources/insurancePayments/resources/v1/client/index.js +35 -0
  268. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +13 -0
  269. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js +34 -0
  270. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +1 -0
  271. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +5 -0
  272. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +18 -0
  273. package/serialization/resources/insurancePayments/resources/v1/client/update.js +51 -0
  274. package/serialization/resources/insurancePayments/resources/v1/index.d.ts +2 -0
  275. package/serialization/resources/insurancePayments/resources/v1/index.js +18 -0
  276. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.d.ts +17 -0
  277. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePayment.js +38 -0
  278. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +16 -0
  279. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.js +37 -0
  280. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.d.ts +10 -0
  281. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentId.js +35 -0
  282. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.d.ts +10 -0
  283. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentSortField.js +31 -0
  284. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.d.ts +12 -0
  285. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentsPage.js +35 -0
  286. package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +5 -0
  287. package/serialization/resources/insurancePayments/resources/v1/types/index.js +21 -0
  288. package/serialization/resources/serviceFacility/client/index.d.ts +1 -0
  289. package/serialization/resources/serviceFacility/client/index.js +17 -0
  290. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.d.ts +14 -0
  291. package/serialization/resources/serviceFacility/client/requests/EncounterServiceFacilityUpdate.js +35 -0
  292. package/serialization/resources/serviceFacility/client/requests/index.d.ts +1 -0
  293. package/serialization/resources/serviceFacility/client/requests/index.js +5 -0
  294. package/serialization/resources/serviceFacility/index.d.ts +1 -0
  295. package/serialization/resources/serviceFacility/index.js +1 -0
  296. package/serialization/resources/x12/resources/v1/types/Carc.d.ts +1 -1
  297. package/serialization/resources/x12/resources/v1/types/Carc.js +1 -0
package/dist/Client.js CHANGED
@@ -13,14 +13,16 @@ const Client_6 = require("./api/resources/expectedNetworkStatus/client/Client");
13
13
  const Client_7 = require("./api/resources/exports/client/Client");
14
14
  const Client_8 = require("./api/resources/guarantor/client/Client");
15
15
  const Client_9 = require("./api/resources/insuranceAdjudications/client/Client");
16
- const Client_10 = require("./api/resources/insuranceRefunds/client/Client");
17
- const Client_11 = require("./api/resources/organizationServiceFacilities/client/Client");
18
- const Client_12 = require("./api/resources/organizationProviders/client/Client");
19
- const Client_13 = require("./api/resources/patientPayments/client/Client");
20
- const Client_14 = require("./api/resources/patientRefunds/client/Client");
21
- const Client_15 = require("./api/resources/payers/client/Client");
22
- const Client_16 = require("./api/resources/tasks/client/Client");
23
- const Client_17 = require("./api/resources/writeOffs/client/Client");
16
+ const Client_10 = require("./api/resources/insurancePayments/client/Client");
17
+ const Client_11 = require("./api/resources/insuranceRefunds/client/Client");
18
+ const Client_12 = require("./api/resources/organizationServiceFacilities/client/Client");
19
+ const Client_13 = require("./api/resources/organizationProviders/client/Client");
20
+ const Client_14 = require("./api/resources/patientPayments/client/Client");
21
+ const Client_15 = require("./api/resources/patientRefunds/client/Client");
22
+ const Client_16 = require("./api/resources/payers/client/Client");
23
+ const Client_17 = require("./api/resources/tasks/client/Client");
24
+ const Client_18 = require("./api/resources/writeOffs/client/Client");
25
+ const Client_19 = require("./api/resources/serviceFacility/client/Client");
24
26
  class CandidApiClient {
25
27
  options;
26
28
  constructor(options) {
@@ -62,37 +64,45 @@ class CandidApiClient {
62
64
  get insuranceAdjudications() {
63
65
  return (this._insuranceAdjudications ??= new Client_9.InsuranceAdjudications(this.options));
64
66
  }
67
+ _insurancePayments;
68
+ get insurancePayments() {
69
+ return (this._insurancePayments ??= new Client_10.InsurancePayments(this.options));
70
+ }
65
71
  _insuranceRefunds;
66
72
  get insuranceRefunds() {
67
- return (this._insuranceRefunds ??= new Client_10.InsuranceRefunds(this.options));
73
+ return (this._insuranceRefunds ??= new Client_11.InsuranceRefunds(this.options));
68
74
  }
69
75
  _organizationServiceFacilities;
70
76
  get organizationServiceFacilities() {
71
- return (this._organizationServiceFacilities ??= new Client_11.OrganizationServiceFacilities(this.options));
77
+ return (this._organizationServiceFacilities ??= new Client_12.OrganizationServiceFacilities(this.options));
72
78
  }
73
79
  _organizationProviders;
74
80
  get organizationProviders() {
75
- return (this._organizationProviders ??= new Client_12.OrganizationProviders(this.options));
81
+ return (this._organizationProviders ??= new Client_13.OrganizationProviders(this.options));
76
82
  }
77
83
  _patientPayments;
78
84
  get patientPayments() {
79
- return (this._patientPayments ??= new Client_13.PatientPayments(this.options));
85
+ return (this._patientPayments ??= new Client_14.PatientPayments(this.options));
80
86
  }
81
87
  _patientRefunds;
82
88
  get patientRefunds() {
83
- return (this._patientRefunds ??= new Client_14.PatientRefunds(this.options));
89
+ return (this._patientRefunds ??= new Client_15.PatientRefunds(this.options));
84
90
  }
85
91
  _payers;
86
92
  get payers() {
87
- return (this._payers ??= new Client_15.Payers(this.options));
93
+ return (this._payers ??= new Client_16.Payers(this.options));
88
94
  }
89
95
  _tasks;
90
96
  get tasks() {
91
- return (this._tasks ??= new Client_16.Tasks(this.options));
97
+ return (this._tasks ??= new Client_17.Tasks(this.options));
92
98
  }
93
99
  _writeOffs;
94
100
  get writeOffs() {
95
- return (this._writeOffs ??= new Client_17.WriteOffs(this.options));
101
+ return (this._writeOffs ??= new Client_18.WriteOffs(this.options));
102
+ }
103
+ _serviceFacility;
104
+ get serviceFacility() {
105
+ return (this._serviceFacility ??= new Client_19.ServiceFacility(this.options));
96
106
  }
97
107
  }
98
108
  exports.CandidApiClient = CandidApiClient;
@@ -17,7 +17,7 @@ export declare class V2 {
17
17
  * Authenticating with the Candid Health API.
18
18
  *
19
19
  * Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
20
- * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` are provided to you during the Candid onboarding process.
20
+ * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
21
21
  *
22
22
  * The bearer token should be provided in the `Authorization` header for all subsequent API calls.
23
23
  *
@@ -44,7 +44,7 @@ class V2 {
44
44
  * Authenticating with the Candid Health API.
45
45
  *
46
46
  * Candid Health utilizes the [OAuth 2.0 bearer token authentication scheme](https://developer.mozilla.org/en-US/docs/Web/HTTP/Authentication) in our auth flow. You obtain the bearer token for all
47
- * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` are provided to you during the Candid onboarding process.
47
+ * subsequent API requests via the `/auth/token` endpoint defined below, which requires you to provide your `client_id` and `client_secret`. Your `client_id` and `client_secret` can be [generated](https://support.joincandidhealth.com/hc/en-us/articles/23065219476244--Generating-Candid-API-Keys) from the "Users & Credentials" tab by your org admin.
48
48
  *
49
49
  * The bearer token should be provided in the `Authorization` header for all subsequent API calls.
50
50
  *
@@ -62,7 +62,7 @@ class V2 {
62
62
  Authorization: await this._getAuthorizationHeader(),
63
63
  "X-Fern-Language": "JavaScript",
64
64
  "X-Fern-SDK-Name": "candidhealth",
65
- "X-Fern-SDK-Version": "0.14.4",
65
+ "X-Fern-SDK-Version": "0.16.0",
66
66
  },
67
67
  contentType: "application/json",
68
68
  body: await serializers.auth.v2.AuthGetTokenRequest.jsonOrThrow(request, {
@@ -48,7 +48,7 @@ class V2 {
48
48
  Authorization: await this._getAuthorizationHeader(),
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "candidhealth",
51
- "X-Fern-SDK-Version": "0.14.4",
51
+ "X-Fern-SDK-Version": "0.16.0",
52
52
  },
53
53
  contentType: "application/json",
54
54
  body: await serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
@@ -49,7 +49,7 @@ class V2 {
49
49
  Authorization: await this._getAuthorizationHeader(),
50
50
  "X-Fern-Language": "JavaScript",
51
51
  "X-Fern-SDK-Name": "candidhealth",
52
- "X-Fern-SDK-Version": "0.14.4",
52
+ "X-Fern-SDK-Version": "0.16.0",
53
53
  },
54
54
  contentType: "application/json",
55
55
  timeoutMs: 60000,
@@ -136,7 +136,7 @@ class V2 {
136
136
  Authorization: await this._getAuthorizationHeader(),
137
137
  "X-Fern-Language": "JavaScript",
138
138
  "X-Fern-SDK-Name": "candidhealth",
139
- "X-Fern-SDK-Version": "0.14.4",
139
+ "X-Fern-SDK-Version": "0.16.0",
140
140
  },
141
141
  contentType: "application/json",
142
142
  queryParameters: _queryParams,
@@ -169,7 +169,7 @@ class V2 {
169
169
  Authorization: await this._getAuthorizationHeader(),
170
170
  "X-Fern-Language": "JavaScript",
171
171
  "X-Fern-SDK-Name": "candidhealth",
172
- "X-Fern-SDK-Version": "0.14.4",
172
+ "X-Fern-SDK-Version": "0.16.0",
173
173
  },
174
174
  contentType: "application/json",
175
175
  body: await serializers.contracts.v2.ContractCreate.jsonOrThrow(request, {
@@ -201,7 +201,7 @@ class V2 {
201
201
  Authorization: await this._getAuthorizationHeader(),
202
202
  "X-Fern-Language": "JavaScript",
203
203
  "X-Fern-SDK-Name": "candidhealth",
204
- "X-Fern-SDK-Version": "0.14.4",
204
+ "X-Fern-SDK-Version": "0.16.0",
205
205
  },
206
206
  contentType: "application/json",
207
207
  timeoutMs: 60000,
@@ -239,7 +239,7 @@ class V2 {
239
239
  Authorization: await this._getAuthorizationHeader(),
240
240
  "X-Fern-Language": "JavaScript",
241
241
  "X-Fern-SDK-Name": "candidhealth",
242
- "X-Fern-SDK-Version": "0.14.4",
242
+ "X-Fern-SDK-Version": "0.16.0",
243
243
  },
244
244
  contentType: "application/json",
245
245
  body: await serializers.contracts.v2.ContractUpdate.jsonOrThrow(request, {
@@ -65,7 +65,7 @@ class V2 {
65
65
  Authorization: await this._getAuthorizationHeader(),
66
66
  "X-Fern-Language": "JavaScript",
67
67
  "X-Fern-SDK-Name": "candidhealth",
68
- "X-Fern-SDK-Version": "0.14.4",
68
+ "X-Fern-SDK-Version": "0.16.0",
69
69
  },
70
70
  contentType: "application/json",
71
71
  body: request,
@@ -103,7 +103,7 @@ class V4 {
103
103
  Authorization: await this._getAuthorizationHeader(),
104
104
  "X-Fern-Language": "JavaScript",
105
105
  "X-Fern-SDK-Name": "candidhealth",
106
- "X-Fern-SDK-Version": "0.14.4",
106
+ "X-Fern-SDK-Version": "0.16.0",
107
107
  },
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
@@ -133,7 +133,7 @@ class V4 {
133
133
  Authorization: await this._getAuthorizationHeader(),
134
134
  "X-Fern-Language": "JavaScript",
135
135
  "X-Fern-SDK-Name": "candidhealth",
136
- "X-Fern-SDK-Version": "0.14.4",
136
+ "X-Fern-SDK-Version": "0.16.0",
137
137
  },
138
138
  contentType: "application/json",
139
139
  timeoutMs: 60000,
@@ -162,7 +162,7 @@ class V4 {
162
162
  Authorization: await this._getAuthorizationHeader(),
163
163
  "X-Fern-Language": "JavaScript",
164
164
  "X-Fern-SDK-Name": "candidhealth",
165
- "X-Fern-SDK-Version": "0.14.4",
165
+ "X-Fern-SDK-Version": "0.16.0",
166
166
  },
167
167
  contentType: "application/json",
168
168
  body: await serializers.encounters.v4.EncounterCreate.jsonOrThrow(request, {
@@ -213,7 +213,7 @@ class V4 {
213
213
  Authorization: await this._getAuthorizationHeader(),
214
214
  "X-Fern-Language": "JavaScript",
215
215
  "X-Fern-SDK-Name": "candidhealth",
216
- "X-Fern-SDK-Version": "0.14.4",
216
+ "X-Fern-SDK-Version": "0.16.0",
217
217
  },
218
218
  contentType: "application/json",
219
219
  body: await serializers.encounters.v4.EncounterUpdate.jsonOrThrow(request, {
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.14.4",
55
+ "X-Fern-SDK-Version": "0.16.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  body: await serializers.expectedNetworkStatus.v1.ExpectedNetworkStatusRequest.jsonOrThrow(request, {
@@ -54,7 +54,7 @@ class V2 {
54
54
  Authorization: await this._getAuthorizationHeader(),
55
55
  "X-Fern-Language": "JavaScript",
56
56
  "X-Fern-SDK-Name": "candidhealth",
57
- "X-Fern-SDK-Version": "0.14.4",
57
+ "X-Fern-SDK-Version": "0.16.0",
58
58
  },
59
59
  contentType: "application/json",
60
60
  body: await serializers.expectedNetworkStatus.v2.ExpectedNetworkStatusRequestV2.jsonOrThrow(request, {
@@ -109,7 +109,7 @@ class V2 {
109
109
  Authorization: await this._getAuthorizationHeader(),
110
110
  "X-Fern-Language": "JavaScript",
111
111
  "X-Fern-SDK-Name": "candidhealth",
112
- "X-Fern-SDK-Version": "0.14.4",
112
+ "X-Fern-SDK-Version": "0.16.0",
113
113
  },
114
114
  contentType: "application/json",
115
115
  body: await serializers.expectedNetworkStatus.v2.ComputeAllInNetworkProvidersRequest.jsonOrThrow(request, {
@@ -68,7 +68,7 @@ class V3 {
68
68
  Authorization: await this._getAuthorizationHeader(),
69
69
  "X-Fern-Language": "JavaScript",
70
70
  "X-Fern-SDK-Name": "candidhealth",
71
- "X-Fern-SDK-Version": "0.14.4",
71
+ "X-Fern-SDK-Version": "0.16.0",
72
72
  },
73
73
  contentType: "application/json",
74
74
  queryParameters: _queryParams,
@@ -2,6 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
+ /**
6
+ * Allocations are portions of payments that are applied to specific resources, known as targets. Each allocation has
7
+ * and amount, defined in cents, and a target.
8
+ *
9
+ */
5
10
  export interface AllocationCreate {
6
11
  amountCents: number;
7
12
  target: CandidApi.AllocationTargetCreate;
@@ -2,19 +2,21 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
+ /**
6
+ * Allocation targets describe whether the portion of a payment is being applied toward a specific service line,
7
+ * claim, billing provider, or is unallocated.
8
+ *
9
+ */
5
10
  export declare type AllocationTarget = CandidApi.AllocationTarget.ServiceLine | CandidApi.AllocationTarget.Claim | CandidApi.AllocationTarget.BillingProviderId | CandidApi.AllocationTarget.Unattributed;
6
11
  export declare namespace AllocationTarget {
7
- interface ServiceLine {
12
+ interface ServiceLine extends CandidApi.ServiceLineAllocationTarget {
8
13
  type: "service_line";
9
- value: CandidApi.ServiceLineId;
10
14
  }
11
- interface Claim {
15
+ interface Claim extends CandidApi.ClaimAllocationTarget {
12
16
  type: "claim";
13
- value: CandidApi.ClaimId;
14
17
  }
15
- interface BillingProviderId {
18
+ interface BillingProviderId extends CandidApi.BillingProviderAllocationTarget {
16
19
  type: "billing_provider_id";
17
- value: CandidApi.ProviderId;
18
20
  }
19
21
  interface Unattributed {
20
22
  type: "unattributed";
@@ -2,6 +2,11 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../..";
5
+ /**
6
+ * Allocation targets describe whether the portion of a payment is being applied toward a specific service line,
7
+ * claim, billing provider, or is unallocated.
8
+ *
9
+ */
5
10
  export declare type AllocationTargetCreate = CandidApi.AllocationTargetCreate.ServiceLineById | CandidApi.AllocationTargetCreate.ClaimById | CandidApi.AllocationTargetCreate.BillingProviderById | CandidApi.AllocationTargetCreate.Unattributed;
6
11
  export declare namespace AllocationTargetCreate {
7
12
  interface ServiceLineById {
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ export interface BillingProviderAllocationTarget {
6
+ billingProviderId: CandidApi.ProviderId;
7
+ }
@@ -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 });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ export interface ClaimAllocationTarget {
6
+ claimId: CandidApi.ClaimId;
7
+ encounterId: CandidApi.EncounterId;
8
+ }
@@ -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 });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../..";
5
+ export interface ServiceLineAllocationTarget {
6
+ serviceLineId: CandidApi.ServiceLineId;
7
+ claimId: CandidApi.ClaimId;
8
+ encounterId: CandidApi.EncounterId;
9
+ }
@@ -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,6 +1,9 @@
1
1
  export * from "./RefundReason";
2
2
  export * from "./PatientTransactionSource";
3
3
  export * from "./Allocation";
4
+ export * from "./ServiceLineAllocationTarget";
5
+ export * from "./ClaimAllocationTarget";
6
+ export * from "./BillingProviderAllocationTarget";
4
7
  export * from "./AllocationTarget";
5
8
  export * from "./AllocationCreate";
6
9
  export * from "./AllocationTargetCreate";
@@ -17,6 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./RefundReason"), exports);
18
18
  __exportStar(require("./PatientTransactionSource"), exports);
19
19
  __exportStar(require("./Allocation"), exports);
20
+ __exportStar(require("./ServiceLineAllocationTarget"), exports);
21
+ __exportStar(require("./ClaimAllocationTarget"), exports);
22
+ __exportStar(require("./BillingProviderAllocationTarget"), exports);
20
23
  __exportStar(require("./AllocationTarget"), exports);
21
24
  __exportStar(require("./AllocationCreate"), exports);
22
25
  __exportStar(require("./AllocationTargetCreate"), exports);
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.14.4",
55
+ "X-Fern-SDK-Version": "0.16.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  body: await serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, {
@@ -102,7 +102,7 @@ class V1 {
102
102
  Authorization: await this._getAuthorizationHeader(),
103
103
  "X-Fern-Language": "JavaScript",
104
104
  "X-Fern-SDK-Name": "candidhealth",
105
- "X-Fern-SDK-Version": "0.14.4",
105
+ "X-Fern-SDK-Version": "0.16.0",
106
106
  },
107
107
  contentType: "application/json",
108
108
  timeoutMs: 60000,
@@ -135,7 +135,7 @@ class V1 {
135
135
  Authorization: await this._getAuthorizationHeader(),
136
136
  "X-Fern-Language": "JavaScript",
137
137
  "X-Fern-SDK-Name": "candidhealth",
138
- "X-Fern-SDK-Version": "0.14.4",
138
+ "X-Fern-SDK-Version": "0.16.0",
139
139
  },
140
140
  contentType: "application/json",
141
141
  body: await serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, {
@@ -9,6 +9,7 @@ export * as exports from "./exports";
9
9
  export * as guarantor from "./guarantor";
10
10
  export * as insuranceAdjudications from "./insuranceAdjudications";
11
11
  export * as insuranceCards from "./insuranceCards";
12
+ export * as insurancePayments from "./insurancePayments";
12
13
  export * as insuranceRefunds from "./insuranceRefunds";
13
14
  export * as organizationServiceFacilities from "./organizationServiceFacilities";
14
15
  export * as organizationProviders from "./organizationProviders";
@@ -43,3 +44,4 @@ export * from "./serviceFacility/types";
43
44
  export * as tags from "./tags";
44
45
  export * from "./tags/types";
45
46
  export * as eligibility from "./eligibility";
47
+ export * from "./serviceFacility/client/requests";
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.commons = exports.claims = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.insuranceRefunds = exports.insuranceCards = exports.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
29
+ exports.eligibility = exports.tags = exports.serviceFacility = exports.invoices = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.commons = exports.claims = exports.x12 = exports.writeOffs = exports.tasks = exports.serviceLines = exports.remits = exports.payers = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.guarantor = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.contracts = exports.claimSubmission = exports.billingNotes = exports.auth = void 0;
30
30
  exports.auth = __importStar(require("./auth"));
31
31
  exports.billingNotes = __importStar(require("./billingNotes"));
32
32
  exports.claimSubmission = __importStar(require("./claimSubmission"));
@@ -38,6 +38,7 @@ exports.exports = __importStar(require("./exports"));
38
38
  exports.guarantor = __importStar(require("./guarantor"));
39
39
  exports.insuranceAdjudications = __importStar(require("./insuranceAdjudications"));
40
40
  exports.insuranceCards = __importStar(require("./insuranceCards"));
41
+ exports.insurancePayments = __importStar(require("./insurancePayments"));
41
42
  exports.insuranceRefunds = __importStar(require("./insuranceRefunds"));
42
43
  exports.organizationServiceFacilities = __importStar(require("./organizationServiceFacilities"));
43
44
  exports.organizationProviders = __importStar(require("./organizationProviders"));
@@ -72,3 +73,4 @@ __exportStar(require("./serviceFacility/types"), exports);
72
73
  exports.tags = __importStar(require("./tags"));
73
74
  __exportStar(require("./tags/types"), exports);
74
75
  exports.eligibility = __importStar(require("./eligibility"));
76
+ __exportStar(require("./serviceFacility/client/requests"), exports);
@@ -52,7 +52,7 @@ class V1 {
52
52
  Authorization: await this._getAuthorizationHeader(),
53
53
  "X-Fern-Language": "JavaScript",
54
54
  "X-Fern-SDK-Name": "candidhealth",
55
- "X-Fern-SDK-Version": "0.14.4",
55
+ "X-Fern-SDK-Version": "0.16.0",
56
56
  },
57
57
  contentType: "application/json",
58
58
  timeoutMs: 60000,
@@ -85,7 +85,7 @@ class V1 {
85
85
  Authorization: await this._getAuthorizationHeader(),
86
86
  "X-Fern-Language": "JavaScript",
87
87
  "X-Fern-SDK-Name": "candidhealth",
88
- "X-Fern-SDK-Version": "0.14.4",
88
+ "X-Fern-SDK-Version": "0.16.0",
89
89
  },
90
90
  contentType: "application/json",
91
91
  body: await serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -121,7 +121,7 @@ class V1 {
121
121
  Authorization: await this._getAuthorizationHeader(),
122
122
  "X-Fern-Language": "JavaScript",
123
123
  "X-Fern-SDK-Name": "candidhealth",
124
- "X-Fern-SDK-Version": "0.14.4",
124
+ "X-Fern-SDK-Version": "0.16.0",
125
125
  },
126
126
  contentType: "application/json",
127
127
  timeoutMs: 60000,
@@ -0,0 +1,18 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import { V1 } from "../resources/v1/client/Client";
7
+ export declare namespace InsurancePayments {
8
+ interface Options {
9
+ environment?: environments.CandidApiEnvironment | string;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ }
13
+ export declare class InsurancePayments {
14
+ protected readonly options: InsurancePayments.Options;
15
+ constructor(options: InsurancePayments.Options);
16
+ protected _v1: V1 | undefined;
17
+ get v1(): V1;
18
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.InsurancePayments = void 0;
7
+ const Client_1 = require("../resources/v1/client/Client");
8
+ class InsurancePayments {
9
+ options;
10
+ constructor(options) {
11
+ this.options = options;
12
+ }
13
+ _v1;
14
+ get v1() {
15
+ return (this._v1 ??= new Client_1.V1(this.options));
16
+ }
17
+ }
18
+ exports.InsurancePayments = InsurancePayments;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ export * from "./resources";
2
+ export * from "./client";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
18
+ __exportStar(require("./client"), exports);
@@ -0,0 +1 @@
1
+ export * as v1 from "./v1";
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ exports.v1 = void 0;
27
+ exports.v1 = __importStar(require("./v1"));
@@ -0,0 +1,48 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as CandidApi from "../../../../..";
7
+ export declare namespace V1 {
8
+ interface Options {
9
+ environment?: environments.CandidApiEnvironment | string;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ }
13
+ export declare class V1 {
14
+ protected readonly options: V1.Options;
15
+ constructor(options: V1.Options);
16
+ /**
17
+ * Returns all non-ERA originated insurance payments satisfying the search criteria
18
+ *
19
+ */
20
+ getMulti(request?: CandidApi.insurancePayments.v1.GetMultiInsurancePaymentRequest): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePaymentsPage, CandidApi.insurancePayments.v1.getMulti.Error>>;
21
+ /**
22
+ * Retrieves a previously created insurance payment by its `insurance_payment_id`.
23
+ * If the payment does not exist, a `403` will be thrown.
24
+ *
25
+ */
26
+ get(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.get.Error>>;
27
+ /**
28
+ * Creates a new insurance payment record and returns the newly created `InsurancePayment` object. This endpoint
29
+ * should only be used for insurance payments that do not have a corresponding ERA (for example: a settlement check
30
+ * from a payer). If the payment is an ERA, then you should used the insurance-adjudications API.
31
+ *
32
+ */
33
+ create(request: CandidApi.insurancePayments.v1.InsurancePaymentCreate): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.create.Error>>;
34
+ /**
35
+ * Updates the patient payment record matching the provided insurance_payment_id. If updating the payment amount,
36
+ * then the allocations must be appropriately updated as well.
37
+ *
38
+ */
39
+ update(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId, request?: CandidApi.insurancePayments.v1.InsurancePaymentUpdate): Promise<core.APIResponse<CandidApi.insurancePayments.v1.InsurancePayment, CandidApi.insurancePayments.v1.update.Error>>;
40
+ /**
41
+ * Deletes the insurance payment record matching the provided `insurance_payment_id`.
42
+ * If the matching record's organization_id does not match the authenticated user's
43
+ * current organization_id, then a response code of `403` will be returned.
44
+ *
45
+ */
46
+ delete(insurancePaymentId: CandidApi.insurancePayments.v1.InsurancePaymentId): Promise<core.APIResponse<void, CandidApi.insurancePayments.v1.delete.Error>>;
47
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
48
+ }