candidhealth 0.38.2 → 0.39.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 (336) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +67 -62
  3. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  5. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +2 -206
  6. package/api/resources/chargeCapture/resources/v1/client/Client.js +7 -211
  7. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -103
  8. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +1 -103
  9. package/api/resources/chargeCaptureBundles/client/Client.d.ts +26 -0
  10. package/api/resources/chargeCaptureBundles/client/Client.js +17 -0
  11. package/api/resources/chargeCaptureBundles/client/index.d.ts +1 -0
  12. package/api/resources/chargeCaptureBundles/client/index.js +2 -0
  13. package/api/resources/chargeCaptureBundles/index.d.ts +2 -0
  14. package/api/resources/chargeCaptureBundles/index.js +18 -0
  15. package/api/resources/chargeCaptureBundles/resources/index.d.ts +1 -0
  16. package/api/resources/chargeCaptureBundles/resources/index.js +27 -0
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +57 -0
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +270 -0
  19. package/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +28 -0
  20. package/api/resources/chargeCaptureBundles/resources/v1/client/get.js +58 -0
  21. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +28 -0
  22. package/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +58 -0
  23. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +4 -0
  24. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +33 -0
  25. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +46 -0
  26. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.js +5 -0
  27. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  28. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +2 -0
  29. package/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +28 -0
  30. package/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +58 -0
  31. package/api/resources/chargeCaptureBundles/resources/v1/index.d.ts +2 -0
  32. package/api/resources/chargeCaptureBundles/resources/v1/index.js +18 -0
  33. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts +22 -0
  34. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js +5 -0
  35. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +17 -0
  36. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +5 -0
  37. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +7 -0
  38. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js +5 -0
  39. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +10 -0
  40. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +12 -0
  41. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +4 -0
  42. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +20 -0
  43. package/api/resources/commons/types/ChargeCaptureBundleId.d.ts +8 -0
  44. package/api/resources/commons/types/ChargeCaptureBundleId.js +10 -0
  45. package/api/resources/commons/types/NetworkType.d.ts +9 -1
  46. package/api/resources/commons/types/NetworkType.js +2 -0
  47. package/api/resources/commons/types/NotImplementedErrorMessage.d.ts +6 -0
  48. package/api/resources/commons/types/NotImplementedErrorMessage.js +5 -0
  49. package/api/resources/commons/types/index.d.ts +2 -0
  50. package/api/resources/commons/types/index.js +2 -0
  51. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  52. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  53. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  54. package/api/resources/diagnoses/client/Client.js +3 -3
  55. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  56. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +66 -8
  57. package/api/resources/encounterProviders/resources/v2/client/Client.js +78 -20
  58. package/api/resources/encounters/resources/v4/client/Client.d.ts +83 -95
  59. package/api/resources/encounters/resources/v4/client/Client.js +88 -100
  60. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +62 -8
  61. package/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +20 -5
  62. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -82
  63. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  64. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  65. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  66. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  67. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  68. package/api/resources/guarantor/resources/v1/client/Client.d.ts +21 -1
  69. package/api/resources/guarantor/resources/v1/client/Client.js +24 -4
  70. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  71. package/api/resources/index.d.ts +1 -0
  72. package/api/resources/index.js +2 -1
  73. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  74. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  75. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  76. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  77. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  78. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  79. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  80. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  81. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  82. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  83. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  84. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  85. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  86. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +2 -2
  87. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  88. package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +4 -2
  89. package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +3 -1
  90. package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.d.ts +10 -0
  91. package/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.js +5 -0
  92. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  93. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +4 -3
  94. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +3 -2
  95. package/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
  96. package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +1 -2
  97. package/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +0 -1
  98. package/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +3 -1
  99. package/api/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.d.ts +7 -0
  100. package/api/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.js +5 -0
  101. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +2 -0
  102. package/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +2 -0
  103. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  104. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  105. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  106. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  107. package/api/resources/serviceFacility/client/Client.js +1 -1
  108. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -1
  109. package/api/resources/serviceLines/resources/v2/client/Client.js +7 -4
  110. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  111. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  112. package/api/resources/x12/resources/v1/types/Rarc.d.ts +3 -1
  113. package/api/resources/x12/resources/v1/types/Rarc.js +2 -0
  114. package/dist/Client.d.ts +3 -0
  115. package/dist/Client.js +67 -62
  116. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  117. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  118. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +2 -206
  119. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +7 -211
  120. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -103
  121. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +1 -103
  122. package/dist/api/resources/chargeCaptureBundles/client/Client.d.ts +26 -0
  123. package/dist/api/resources/chargeCaptureBundles/client/Client.js +17 -0
  124. package/dist/api/resources/chargeCaptureBundles/client/index.d.ts +1 -0
  125. package/dist/api/resources/chargeCaptureBundles/client/index.js +2 -0
  126. package/dist/api/resources/chargeCaptureBundles/index.d.ts +2 -0
  127. package/dist/api/resources/chargeCaptureBundles/index.js +18 -0
  128. package/dist/api/resources/chargeCaptureBundles/resources/index.d.ts +1 -0
  129. package/dist/api/resources/chargeCaptureBundles/resources/index.js +27 -0
  130. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +57 -0
  131. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +270 -0
  132. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +28 -0
  133. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/get.js +58 -0
  134. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +28 -0
  135. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getAll.js +58 -0
  136. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +4 -0
  137. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +33 -0
  138. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +46 -0
  139. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.js +5 -0
  140. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  141. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +2 -0
  142. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +28 -0
  143. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +58 -0
  144. package/dist/api/resources/chargeCaptureBundles/resources/v1/index.d.ts +2 -0
  145. package/dist/api/resources/chargeCaptureBundles/resources/v1/index.js +18 -0
  146. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts +22 -0
  147. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js +5 -0
  148. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +17 -0
  149. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +5 -0
  150. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +7 -0
  151. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js +5 -0
  152. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +10 -0
  153. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +12 -0
  154. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +4 -0
  155. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +20 -0
  156. package/dist/api/resources/commons/types/ChargeCaptureBundleId.d.ts +8 -0
  157. package/dist/api/resources/commons/types/ChargeCaptureBundleId.js +10 -0
  158. package/dist/api/resources/commons/types/NetworkType.d.ts +9 -1
  159. package/dist/api/resources/commons/types/NetworkType.js +2 -0
  160. package/dist/api/resources/commons/types/NotImplementedErrorMessage.d.ts +6 -0
  161. package/dist/api/resources/commons/types/NotImplementedErrorMessage.js +5 -0
  162. package/dist/api/resources/commons/types/index.d.ts +2 -0
  163. package/dist/api/resources/commons/types/index.js +2 -0
  164. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  165. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  166. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  167. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  168. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  169. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +66 -8
  170. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +78 -20
  171. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +83 -95
  172. package/dist/api/resources/encounters/resources/v4/client/Client.js +88 -100
  173. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +62 -8
  174. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreateFromPreEncounter.d.ts +20 -5
  175. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +1 -82
  176. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  177. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  178. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  179. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  180. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  181. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +21 -1
  182. package/dist/api/resources/guarantor/resources/v1/client/Client.js +24 -4
  183. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  184. package/dist/api/resources/index.d.ts +1 -0
  185. package/dist/api/resources/index.js +2 -1
  186. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  187. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  188. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  189. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  190. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  191. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  192. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  193. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  194. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  195. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  196. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  197. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  198. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  199. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +2 -2
  200. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  201. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +4 -2
  202. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +3 -1
  203. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.d.ts +10 -0
  204. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.js +5 -0
  205. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +1 -0
  206. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +4 -3
  207. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +3 -2
  208. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
  209. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +1 -2
  210. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +0 -1
  211. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +3 -1
  212. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.d.ts +7 -0
  213. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.js +5 -0
  214. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +2 -0
  215. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/index.js +2 -0
  216. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  217. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  218. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +9 -9
  219. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  220. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  221. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -1
  222. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +7 -4
  223. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  224. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  225. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +3 -1
  226. package/dist/api/resources/x12/resources/v1/types/Rarc.js +2 -0
  227. package/dist/serialization/resources/chargeCaptureBundles/index.d.ts +1 -0
  228. package/dist/serialization/resources/chargeCaptureBundles/index.js +17 -0
  229. package/dist/serialization/resources/chargeCaptureBundles/resources/index.d.ts +1 -0
  230. package/dist/serialization/resources/chargeCaptureBundles/resources/index.js +27 -0
  231. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +15 -0
  232. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/get.js +61 -0
  233. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +15 -0
  234. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js +61 -0
  235. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +3 -0
  236. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +29 -0
  237. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +15 -0
  238. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +61 -0
  239. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +2 -0
  240. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.js +18 -0
  241. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts +18 -0
  242. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js +39 -0
  243. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +21 -0
  244. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +42 -0
  245. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +14 -0
  246. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js +37 -0
  247. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +10 -0
  248. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +31 -0
  249. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +4 -0
  250. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +20 -0
  251. package/dist/serialization/resources/commons/types/ChargeCaptureBundleId.d.ts +10 -0
  252. package/dist/serialization/resources/commons/types/ChargeCaptureBundleId.js +35 -0
  253. package/dist/serialization/resources/commons/types/NetworkType.d.ts +1 -1
  254. package/dist/serialization/resources/commons/types/NetworkType.js +2 -0
  255. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +12 -0
  256. package/dist/serialization/resources/commons/types/NotImplementedErrorMessage.js +33 -0
  257. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  258. package/dist/serialization/resources/commons/types/index.js +2 -0
  259. package/dist/serialization/resources/index.d.ts +1 -0
  260. package/dist/serialization/resources/index.js +2 -1
  261. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +1 -1
  262. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +3 -1
  263. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.d.ts +16 -0
  264. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.js +37 -0
  265. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +2 -0
  266. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +2 -0
  267. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +1 -1
  268. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +1 -1
  269. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
  270. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +1 -0
  271. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
  272. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +1 -1
  273. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +3 -1
  274. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +3 -1
  275. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.d.ts +13 -0
  276. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.js +34 -0
  277. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +2 -0
  278. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +2 -0
  279. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  280. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +2 -0
  281. package/package.json +1 -1
  282. package/reference.md +314 -299
  283. package/serialization/resources/chargeCaptureBundles/index.d.ts +1 -0
  284. package/serialization/resources/chargeCaptureBundles/index.js +17 -0
  285. package/serialization/resources/chargeCaptureBundles/resources/index.d.ts +1 -0
  286. package/serialization/resources/chargeCaptureBundles/resources/index.js +27 -0
  287. package/serialization/resources/chargeCaptureBundles/resources/v1/client/get.d.ts +15 -0
  288. package/serialization/resources/chargeCaptureBundles/resources/v1/client/get.js +61 -0
  289. package/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.d.ts +15 -0
  290. package/serialization/resources/chargeCaptureBundles/resources/v1/client/getAll.js +61 -0
  291. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +3 -0
  292. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +29 -0
  293. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.d.ts +15 -0
  294. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resubmit.js +61 -0
  295. package/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +2 -0
  296. package/serialization/resources/chargeCaptureBundles/resources/v1/index.js +18 -0
  297. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.d.ts +18 -0
  298. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeBundleError.js +39 -0
  299. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.d.ts +21 -0
  300. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundle.js +42 -0
  301. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.d.ts +14 -0
  302. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundlePage.js +37 -0
  303. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +10 -0
  304. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +31 -0
  305. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +4 -0
  306. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +20 -0
  307. package/serialization/resources/commons/types/ChargeCaptureBundleId.d.ts +10 -0
  308. package/serialization/resources/commons/types/ChargeCaptureBundleId.js +35 -0
  309. package/serialization/resources/commons/types/NetworkType.d.ts +1 -1
  310. package/serialization/resources/commons/types/NetworkType.js +2 -0
  311. package/serialization/resources/commons/types/NotImplementedErrorMessage.d.ts +12 -0
  312. package/serialization/resources/commons/types/NotImplementedErrorMessage.js +33 -0
  313. package/serialization/resources/commons/types/index.d.ts +2 -0
  314. package/serialization/resources/commons/types/index.js +2 -0
  315. package/serialization/resources/index.d.ts +1 -0
  316. package/serialization/resources/index.js +2 -1
  317. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.d.ts +1 -1
  318. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitType.js +3 -1
  319. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.d.ts +16 -0
  320. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/BenefitsRelatedEntity.js +37 -0
  321. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.d.ts +2 -0
  322. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageBenefits.js +2 -0
  323. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.d.ts +1 -1
  324. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageLevel.js +1 -1
  325. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.d.ts +1 -0
  326. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/CoverageValue.js +1 -0
  327. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.d.ts +1 -1
  328. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/EligibilityCheckStatus.js +1 -1
  329. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.d.ts +3 -1
  330. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/PlanCoverageDetails.js +3 -1
  331. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.d.ts +13 -0
  332. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/RelatedEntityContact.js +34 -0
  333. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.d.ts +2 -0
  334. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/index.js +2 -0
  335. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  336. package/serialization/resources/x12/resources/v1/types/Rarc.js +2 -0
@@ -5,109 +5,7 @@ import * as CandidApi from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * data: {
9
- * diagnoses: [],
10
- * interventions: [],
11
- * externalClaimSubmission: {
12
- * claimCreatedAt: new Date("2023-01-01T12:00:00.000Z"),
13
- * patientControlNumber: "PATIENT_CONTROL_NUMBER",
14
- * submissionRecords: [{
15
- * submittedAt: new Date("2023-01-01T13:00:00.000Z"),
16
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Original,
17
- * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
18
- * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Electronic
19
- * }, {
20
- * submittedAt: new Date("2023-01-04T12:00:00.000Z"),
21
- * claimFrequencyCode: CandidApi.claimSubmission.v1.ClaimFrequencyTypeCode.Replacement,
22
- * payerResponsibility: CandidApi.ClaimSubmissionPayerResponsibilityType.Primary,
23
- * intendedSubmissionMedium: CandidApi.IntendedSubmissionMedium.Paper
24
- * }]
25
- * },
26
- * serviceLines: [],
27
- * patientHistories: [],
28
- * billingNotes: [],
29
- * benefitsAssignedToProvider: true,
30
- * priorAuthorizationNumber: CandidApi.encounters.v4.PriorAuthorizationNumber("string"),
31
- * externalId: CandidApi.EncounterExternalId("string"),
32
- * dateOfService: "2023-01-15",
33
- * tagIds: [],
34
- * clinicalNotes: [],
35
- * payToAddress: {
36
- * address1: "123 Main St",
37
- * address2: "Apt 1",
38
- * city: "New York",
39
- * state: CandidApi.State.Ny,
40
- * zipCode: "10001",
41
- * zipPlusFourCode: "1234"
42
- * },
43
- * billableStatus: CandidApi.encounters.v4.BillableStatusType.Billable,
44
- * responsibleParty: CandidApi.encounters.v4.ResponsiblePartyType.InsurancePay,
45
- * providerAcceptsAssignment: true,
46
- * synchronicity: CandidApi.encounters.v4.SynchronicityType.Synchronous,
47
- * placeOfServiceCode: CandidApi.FacilityTypeCode.Pharmacy,
48
- * appointmentType: "string",
49
- * endDateOfService: "2023-01-15",
50
- * subscriberPrimary: {
51
- * insuranceCard: {
52
- * memberId: "string",
53
- * payerName: "string",
54
- * payerId: "string"
55
- * },
56
- * patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
57
- * firstName: "string",
58
- * lastName: "string",
59
- * gender: CandidApi.Gender.Male
60
- * },
61
- * subscriberSecondary: {
62
- * insuranceCard: {
63
- * memberId: "string",
64
- * payerName: "string",
65
- * payerId: "string"
66
- * },
67
- * patientRelationshipToSubscriberCode: CandidApi.PatientRelationshipToInsuredCodeAll.Spouse,
68
- * firstName: "string",
69
- * lastName: "string",
70
- * gender: CandidApi.Gender.Male
71
- * },
72
- * additionalInformation: "string",
73
- * serviceAuthorizationExceptionCode: CandidApi.encounters.v4.ServiceAuthorizationExceptionCode.C1,
74
- * admissionDate: "2023-01-15",
75
- * dischargeDate: "2023-01-15",
76
- * onsetOfCurrentIllnessOrSymptomDate: "2023-01-15",
77
- * lastMenstrualPeriodDate: "2023-01-15",
78
- * delayReasonCode: CandidApi.DelayReasonCode.C1,
79
- * patient: {},
80
- * patientAuthorizedRelease: true,
81
- * schemaInstances: [],
82
- * vitals: {
83
- * heightIn: 70,
84
- * weightLbs: 165,
85
- * bloodPressureSystolicMmhg: 115,
86
- * bloodPressureDiastolicMmhg: 85,
87
- * bodyTemperatureF: 98,
88
- * hemoglobinGdl: 15.1,
89
- * hematocritPct: 51.2
90
- * },
91
- * existingMedications: [],
92
- * renderingProvider: {},
93
- * serviceFacility: {
94
- * organizationName: "Test Organization",
95
- * address: {
96
- * address1: "123 Main St",
97
- * address2: "Apt 1",
98
- * city: "New York",
99
- * state: CandidApi.State.Ny,
100
- * zipCode: "10001",
101
- * zipPlusFourCode: "1234"
102
- * }
103
- * },
104
- * guarantor: {},
105
- * billingProvider: {},
106
- * supervisingProvider: {},
107
- * referringProvider: {},
108
- * initialReferringProvider: {},
109
- * referralNumber: "string"
110
- * },
8
+ * data: {},
111
9
  * chargeExternalId: "string",
112
10
  * ehrSourceUrl: "string",
113
11
  * dateOfService: "2023-01-15",
@@ -0,0 +1,26 @@
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 ChargeCaptureBundles {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
14
+ timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
16
+ maxRetries?: number;
17
+ /** A hook to abort the request. */
18
+ abortSignal?: AbortSignal;
19
+ }
20
+ }
21
+ export declare class ChargeCaptureBundles {
22
+ protected readonly _options: ChargeCaptureBundles.Options;
23
+ constructor(_options?: ChargeCaptureBundles.Options);
24
+ protected _v1: V1 | undefined;
25
+ get v1(): V1;
26
+ }
@@ -0,0 +1,17 @@
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.ChargeCaptureBundles = void 0;
7
+ const Client_1 = require("../resources/v1/client/Client");
8
+ class ChargeCaptureBundles {
9
+ constructor(_options = {}) {
10
+ this._options = _options;
11
+ }
12
+ get v1() {
13
+ var _a;
14
+ return ((_a = this._v1) !== null && _a !== void 0 ? _a : (this._v1 = new Client_1.V1(this._options)));
15
+ }
16
+ }
17
+ exports.ChargeCaptureBundles = ChargeCaptureBundles;
@@ -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,57 @@
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 "../../../../../index";
7
+ export declare namespace V1 {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
+ token?: core.Supplier<core.BearerToken | undefined>;
11
+ }
12
+ interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
14
+ timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
16
+ maxRetries?: number;
17
+ /** A hook to abort the request. */
18
+ abortSignal?: AbortSignal;
19
+ }
20
+ }
21
+ export declare class V1 {
22
+ protected readonly _options: V1.Options;
23
+ constructor(_options?: V1.Options);
24
+ /**
25
+ * @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
26
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
27
+ *
28
+ * @example
29
+ * await client.chargeCaptureBundles.v1.get(CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
30
+ */
31
+ get(chargeCaptureBundleId: CandidApi.ChargeCaptureBundleId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundle, CandidApi.chargeCaptureBundles.v1.get.Error>>;
32
+ /**
33
+ * @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
34
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @example
37
+ * await client.chargeCaptureBundles.v1.resubmit(CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
38
+ */
39
+ resubmit(chargeCaptureBundleId: CandidApi.ChargeCaptureBundleId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundle, CandidApi.chargeCaptureBundles.v1.resubmit.Error>>;
40
+ /**
41
+ * @param {CandidApi.chargeCaptureBundles.v1.GetAllChargeCaptureBundlesRequest} request
42
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
43
+ *
44
+ * @example
45
+ * await client.chargeCaptureBundles.v1.getAll({
46
+ * limit: 1,
47
+ * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
48
+ * patientExternalId: "string",
49
+ * bundleStatus: CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleStatus.InProgress,
50
+ * chargeStatus: CandidApi.chargeCapture.v1.ChargeCaptureStatus.Planned,
51
+ * chargeExternalId: "string",
52
+ * dateOfService: "2023-01-15"
53
+ * })
54
+ */
55
+ getAll(request?: CandidApi.chargeCaptureBundles.v1.GetAllChargeCaptureBundlesRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundlePage, CandidApi.chargeCaptureBundles.v1.getAll.Error>>;
56
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
57
+ }
@@ -0,0 +1,270 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.V1 = void 0;
42
+ const environments = __importStar(require("../../../../../../environments"));
43
+ const core = __importStar(require("../../../../../../core"));
44
+ const CandidApi = __importStar(require("../../../../../index"));
45
+ const serializers = __importStar(require("../../../../../../serialization/index"));
46
+ const url_join_1 = __importDefault(require("url-join"));
47
+ class V1 {
48
+ constructor(_options = {}) {
49
+ this._options = _options;
50
+ }
51
+ /**
52
+ * @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
53
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
54
+ *
55
+ * @example
56
+ * await client.chargeCaptureBundles.v1.get(CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
57
+ */
58
+ get(chargeCaptureBundleId, requestOptions) {
59
+ var _a, _b;
60
+ return __awaiter(this, void 0, void 0, function* () {
61
+ const _response = yield core.fetcher({
62
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
63
+ .candidApi, `/api/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
64
+ method: "GET",
65
+ headers: {
66
+ Authorization: yield this._getAuthorizationHeader(),
67
+ "X-Fern-Language": "JavaScript",
68
+ "X-Fern-SDK-Name": "candidhealth",
69
+ "X-Fern-SDK-Version": "0.39.0",
70
+ "X-Fern-Runtime": core.RUNTIME.type,
71
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
72
+ },
73
+ contentType: "application/json",
74
+ requestType: "json",
75
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
76
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
77
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
78
+ });
79
+ if (_response.ok) {
80
+ return {
81
+ ok: true,
82
+ body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundle.parseOrThrow(_response.body, {
83
+ unrecognizedObjectKeys: "passthrough",
84
+ allowUnrecognizedUnionMembers: true,
85
+ allowUnrecognizedEnumValues: true,
86
+ breadcrumbsPrefix: ["response"],
87
+ }),
88
+ };
89
+ }
90
+ if (_response.error.reason === "status-code") {
91
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
92
+ case "NotImplementedError":
93
+ return {
94
+ ok: false,
95
+ error: serializers.chargeCaptureBundles.v1.get.Error.parseOrThrow(_response.error.body, {
96
+ unrecognizedObjectKeys: "passthrough",
97
+ allowUnrecognizedUnionMembers: true,
98
+ allowUnrecognizedEnumValues: true,
99
+ breadcrumbsPrefix: ["response"],
100
+ }),
101
+ };
102
+ }
103
+ }
104
+ return {
105
+ ok: false,
106
+ error: CandidApi.chargeCaptureBundles.v1.get.Error._unknown(_response.error),
107
+ };
108
+ });
109
+ }
110
+ /**
111
+ * @param {CandidApi.ChargeCaptureBundleId} chargeCaptureBundleId
112
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
113
+ *
114
+ * @example
115
+ * await client.chargeCaptureBundles.v1.resubmit(CandidApi.ChargeCaptureBundleId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
116
+ */
117
+ resubmit(chargeCaptureBundleId, requestOptions) {
118
+ var _a, _b;
119
+ return __awaiter(this, void 0, void 0, function* () {
120
+ const _response = yield core.fetcher({
121
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
122
+ .candidApi, `/api/charge_capture_bundle/v1/${encodeURIComponent(serializers.ChargeCaptureBundleId.jsonOrThrow(chargeCaptureBundleId))}`),
123
+ method: "POST",
124
+ headers: {
125
+ Authorization: yield this._getAuthorizationHeader(),
126
+ "X-Fern-Language": "JavaScript",
127
+ "X-Fern-SDK-Name": "candidhealth",
128
+ "X-Fern-SDK-Version": "0.39.0",
129
+ "X-Fern-Runtime": core.RUNTIME.type,
130
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
131
+ },
132
+ contentType: "application/json",
133
+ requestType: "json",
134
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
135
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
136
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
137
+ });
138
+ if (_response.ok) {
139
+ return {
140
+ ok: true,
141
+ body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundle.parseOrThrow(_response.body, {
142
+ unrecognizedObjectKeys: "passthrough",
143
+ allowUnrecognizedUnionMembers: true,
144
+ allowUnrecognizedEnumValues: true,
145
+ breadcrumbsPrefix: ["response"],
146
+ }),
147
+ };
148
+ }
149
+ if (_response.error.reason === "status-code") {
150
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
151
+ case "NotImplementedError":
152
+ return {
153
+ ok: false,
154
+ error: serializers.chargeCaptureBundles.v1.resubmit.Error.parseOrThrow(_response.error.body, {
155
+ unrecognizedObjectKeys: "passthrough",
156
+ allowUnrecognizedUnionMembers: true,
157
+ allowUnrecognizedEnumValues: true,
158
+ breadcrumbsPrefix: ["response"],
159
+ }),
160
+ };
161
+ }
162
+ }
163
+ return {
164
+ ok: false,
165
+ error: CandidApi.chargeCaptureBundles.v1.resubmit.Error._unknown(_response.error),
166
+ };
167
+ });
168
+ }
169
+ /**
170
+ * @param {CandidApi.chargeCaptureBundles.v1.GetAllChargeCaptureBundlesRequest} request
171
+ * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
172
+ *
173
+ * @example
174
+ * await client.chargeCaptureBundles.v1.getAll({
175
+ * limit: 1,
176
+ * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9"),
177
+ * patientExternalId: "string",
178
+ * bundleStatus: CandidApi.chargeCaptureBundles.v1.ChargeCaptureBundleStatus.InProgress,
179
+ * chargeStatus: CandidApi.chargeCapture.v1.ChargeCaptureStatus.Planned,
180
+ * chargeExternalId: "string",
181
+ * dateOfService: "2023-01-15"
182
+ * })
183
+ */
184
+ getAll(request = {}, requestOptions) {
185
+ var _a, _b;
186
+ return __awaiter(this, void 0, void 0, function* () {
187
+ const { limit, pageToken, patientExternalId, bundleStatus, chargeStatus, chargeExternalId, dateOfService } = request;
188
+ const _queryParams = {};
189
+ if (limit != null) {
190
+ _queryParams["limit"] = limit.toString();
191
+ }
192
+ if (pageToken != null) {
193
+ _queryParams["page_token"] = pageToken;
194
+ }
195
+ if (patientExternalId != null) {
196
+ _queryParams["patient_external_id"] = patientExternalId;
197
+ }
198
+ if (bundleStatus != null) {
199
+ _queryParams["bundle_status"] = bundleStatus;
200
+ }
201
+ if (chargeStatus != null) {
202
+ _queryParams["charge_status"] = chargeStatus;
203
+ }
204
+ if (chargeExternalId != null) {
205
+ _queryParams["charge_external_id"] = chargeExternalId;
206
+ }
207
+ if (dateOfService != null) {
208
+ _queryParams["date_of_service"] = dateOfService;
209
+ }
210
+ const _response = yield core.fetcher({
211
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
212
+ .candidApi, "/api/charge_capture_bundle/v1"),
213
+ method: "GET",
214
+ headers: {
215
+ Authorization: yield this._getAuthorizationHeader(),
216
+ "X-Fern-Language": "JavaScript",
217
+ "X-Fern-SDK-Name": "candidhealth",
218
+ "X-Fern-SDK-Version": "0.39.0",
219
+ "X-Fern-Runtime": core.RUNTIME.type,
220
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
221
+ },
222
+ contentType: "application/json",
223
+ queryParameters: _queryParams,
224
+ requestType: "json",
225
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
226
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
227
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
228
+ });
229
+ if (_response.ok) {
230
+ return {
231
+ ok: true,
232
+ body: serializers.chargeCaptureBundles.v1.ChargeCaptureBundlePage.parseOrThrow(_response.body, {
233
+ unrecognizedObjectKeys: "passthrough",
234
+ allowUnrecognizedUnionMembers: true,
235
+ allowUnrecognizedEnumValues: true,
236
+ breadcrumbsPrefix: ["response"],
237
+ }),
238
+ };
239
+ }
240
+ if (_response.error.reason === "status-code") {
241
+ switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
242
+ case "NotImplementedError":
243
+ return {
244
+ ok: false,
245
+ error: serializers.chargeCaptureBundles.v1.getAll.Error.parseOrThrow(_response.error.body, {
246
+ unrecognizedObjectKeys: "passthrough",
247
+ allowUnrecognizedUnionMembers: true,
248
+ allowUnrecognizedEnumValues: true,
249
+ breadcrumbsPrefix: ["response"],
250
+ }),
251
+ };
252
+ }
253
+ }
254
+ return {
255
+ ok: false,
256
+ error: CandidApi.chargeCaptureBundles.v1.getAll.Error._unknown(_response.error),
257
+ };
258
+ });
259
+ }
260
+ _getAuthorizationHeader() {
261
+ return __awaiter(this, void 0, void 0, function* () {
262
+ const bearer = yield core.Supplier.get(this._options.token);
263
+ if (bearer != null) {
264
+ return `Bearer ${bearer}`;
265
+ }
266
+ return undefined;
267
+ });
268
+ }
269
+ }
270
+ exports.V1 = V1;
@@ -0,0 +1,28 @@
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.chargeCaptureBundles.v1.get.Error.NotImplementedError | CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface NotImplementedError extends _Utils {
9
+ errorName: "NotImplementedError";
10
+ content: CandidApi.NotImplementedErrorMessage;
11
+ }
12
+ interface _Unknown extends _Utils {
13
+ errorName: void;
14
+ content: core.Fetcher.Error;
15
+ }
16
+ interface _Utils {
17
+ _visit: <_Result>(visitor: CandidApi.chargeCaptureBundles.v1.get.Error._Visitor<_Result>) => _Result;
18
+ }
19
+ interface _Visitor<_Result> {
20
+ notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => _Result;
21
+ _other: (value: core.Fetcher.Error) => _Result;
22
+ }
23
+ }
24
+ export declare const Error: {
25
+ readonly notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => CandidApi.chargeCaptureBundles.v1.get.Error.NotImplementedError;
26
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCaptureBundles.v1.get.Error._Unknown;
27
+ readonly _visit: <_Result>(value: CandidApi.chargeCaptureBundles.v1.get.Error, visitor: CandidApi.chargeCaptureBundles.v1.get.Error._Visitor<_Result>) => _Result;
28
+ };
@@ -0,0 +1,58 @@
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
+ notImplementedError: (value) => {
33
+ return {
34
+ content: value,
35
+ errorName: "NotImplementedError",
36
+ _visit: function (visitor) {
37
+ return CandidApi.chargeCaptureBundles.v1.get.Error._visit(this, visitor);
38
+ },
39
+ };
40
+ },
41
+ _unknown: (fetcherError) => {
42
+ return {
43
+ errorName: undefined,
44
+ content: fetcherError,
45
+ _visit: function (visitor) {
46
+ return CandidApi.chargeCaptureBundles.v1.get.Error._visit(this, visitor);
47
+ },
48
+ };
49
+ },
50
+ _visit: (value, visitor) => {
51
+ switch (value.errorName) {
52
+ case "NotImplementedError":
53
+ return visitor.notImplementedError(value.content);
54
+ default:
55
+ return visitor._other(value);
56
+ }
57
+ },
58
+ };
@@ -0,0 +1,28 @@
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.chargeCaptureBundles.v1.getAll.Error.NotImplementedError | CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface NotImplementedError extends _Utils {
9
+ errorName: "NotImplementedError";
10
+ content: CandidApi.NotImplementedErrorMessage;
11
+ }
12
+ interface _Unknown extends _Utils {
13
+ errorName: void;
14
+ content: core.Fetcher.Error;
15
+ }
16
+ interface _Utils {
17
+ _visit: <_Result>(visitor: CandidApi.chargeCaptureBundles.v1.getAll.Error._Visitor<_Result>) => _Result;
18
+ }
19
+ interface _Visitor<_Result> {
20
+ notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => _Result;
21
+ _other: (value: core.Fetcher.Error) => _Result;
22
+ }
23
+ }
24
+ export declare const Error: {
25
+ readonly notImplementedError: (value: CandidApi.NotImplementedErrorMessage) => CandidApi.chargeCaptureBundles.v1.getAll.Error.NotImplementedError;
26
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.chargeCaptureBundles.v1.getAll.Error._Unknown;
27
+ readonly _visit: <_Result>(value: CandidApi.chargeCaptureBundles.v1.getAll.Error, visitor: CandidApi.chargeCaptureBundles.v1.getAll.Error._Visitor<_Result>) => _Result;
28
+ };