candidhealth 0.40.1 → 0.40.3

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 (282) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  3. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +3 -0
  4. package/api/resources/chargeCapture/resources/v1/client/Client.js +22 -6
  5. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +15 -0
  6. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  7. package/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +12 -0
  8. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +8 -0
  9. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +10 -0
  10. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  11. package/api/resources/chargeCapture/resources/v1/types/index.js +2 -0
  12. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +12 -2
  13. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +58 -6
  14. package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  15. package/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  17. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  18. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +17 -2
  19. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +7 -0
  20. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +9 -0
  21. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  22. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  23. package/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  24. package/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  25. package/api/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  26. package/api/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +8 -0
  27. package/api/resources/commons/types/ChargeCapturePostBilledChangeId.js +9 -0
  28. package/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  29. package/api/resources/commons/types/ProcedureModifier.js +3 -0
  30. package/api/resources/commons/types/index.d.ts +1 -0
  31. package/api/resources/commons/types/index.js +1 -0
  32. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  33. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  34. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  35. package/api/resources/diagnoses/client/Client.js +3 -3
  36. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  37. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  38. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  39. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  40. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  41. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  42. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  43. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
  44. package/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  45. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  46. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  47. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  48. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  49. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  50. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  51. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  52. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  53. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  54. package/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  55. package/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  56. package/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  57. package/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  58. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  59. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  60. package/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  61. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  62. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  63. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  64. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  65. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  66. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  67. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  68. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  69. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  70. package/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  71. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  72. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  73. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  74. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  75. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  76. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  77. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  78. package/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  79. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  80. package/api/resources/serviceFacility/client/Client.js +1 -1
  81. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  82. package/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  83. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  84. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  85. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  86. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  87. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  88. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  89. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +3 -0
  90. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +22 -6
  91. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +15 -0
  92. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +1 -0
  93. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +12 -0
  94. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +8 -0
  95. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +10 -0
  96. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  97. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +2 -0
  98. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +12 -2
  99. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +58 -6
  100. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.d.ts +22 -0
  101. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/getSummary.js +57 -0
  102. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  103. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  104. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureBundlesRequest.d.ts +17 -2
  105. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +7 -0
  106. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +9 -0
  107. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +3 -1
  108. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +2 -0
  109. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +11 -0
  110. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  111. package/dist/api/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  112. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +8 -0
  113. package/dist/api/resources/commons/types/ChargeCapturePostBilledChangeId.js +9 -0
  114. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -1
  115. package/dist/api/resources/commons/types/ProcedureModifier.js +3 -0
  116. package/dist/api/resources/commons/types/index.d.ts +1 -0
  117. package/dist/api/resources/commons/types/index.js +1 -0
  118. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  119. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  120. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  121. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  122. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  123. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  124. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  125. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  126. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  127. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  128. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  129. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +3 -3
  130. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +13 -13
  131. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +1 -1
  132. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -1
  133. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -1
  134. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  135. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  136. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  137. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +0 -56
  138. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -194
  139. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +0 -3
  140. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +1 -4
  141. package/dist/api/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  142. package/dist/api/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  143. package/dist/api/resources/insurancePayments/resources/v1/types/index.js +0 -1
  144. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  145. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +1 -1
  146. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +2 -2
  147. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  148. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  149. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  150. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  151. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  152. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  153. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  154. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  155. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  156. package/dist/api/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +1 -0
  157. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +9 -9
  158. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +1 -1
  159. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  160. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  161. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  162. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  163. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +2 -1
  164. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -0
  165. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  166. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  167. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +2 -2
  168. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +5 -5
  169. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  170. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  171. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  172. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  173. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  174. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  175. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  176. package/dist/serialization/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +7 -6
  177. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  178. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  179. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  180. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  181. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  182. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  183. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  184. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  185. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  186. package/dist/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +5 -9
  187. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  188. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  189. package/dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  190. package/{serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → dist/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js} +6 -6
  191. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  192. package/dist/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  193. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  194. package/dist/serialization/resources/commons/types/index.js +1 -0
  195. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  196. package/dist/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  197. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  198. package/dist/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  199. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  200. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  201. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  202. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  203. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  204. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  205. package/dist/version.d.ts +1 -1
  206. package/dist/version.js +1 -1
  207. package/package.json +1 -1
  208. package/reference.md +53 -231
  209. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  210. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  211. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.d.ts +15 -0
  212. package/serialization/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +6 -9
  213. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.d.ts +10 -0
  214. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureSortField.js +41 -0
  215. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +2 -0
  216. package/serialization/resources/chargeCapture/resources/v1/types/index.js +2 -0
  217. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.d.ts +10 -0
  218. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSortField.js +41 -0
  219. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.d.ts +1 -1
  220. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleStatus.js +1 -1
  221. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.d.ts +14 -0
  222. package/serialization/resources/chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js +45 -0
  223. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.d.ts +2 -0
  224. package/serialization/resources/chargeCaptureBundles/resources/v1/types/index.js +2 -0
  225. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.d.ts +10 -0
  226. package/serialization/resources/commons/types/ChargeCapturePostBilledChangeId.js +45 -0
  227. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  228. package/serialization/resources/commons/types/ProcedureModifier.js +3 -0
  229. package/serialization/resources/commons/types/index.d.ts +1 -0
  230. package/serialization/resources/commons/types/index.js +1 -0
  231. package/serialization/resources/insurancePayments/resources/v1/client/index.d.ts +0 -4
  232. package/serialization/resources/insurancePayments/resources/v1/client/index.js +1 -8
  233. package/serialization/resources/insurancePayments/resources/v1/types/index.d.ts +0 -1
  234. package/serialization/resources/insurancePayments/resources/v1/types/index.js +0 -1
  235. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.d.ts +2 -0
  236. package/serialization/resources/preEncounter/resources/common/types/CanonicalNonInsurancePayerAssociation.js +2 -0
  237. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.d.ts +1 -1
  238. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/AuthorizationUnit.js +1 -1
  239. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  240. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  241. package/version.d.ts +1 -1
  242. package/version.js +1 -1
  243. package/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  244. package/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
  245. package/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  246. package/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
  247. package/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  248. package/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  249. package/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
  250. package/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  251. package/dist/api/resources/insurancePayments/resources/v1/client/create.d.ts +0 -40
  252. package/dist/api/resources/insurancePayments/resources/v1/client/create.js +0 -90
  253. package/dist/api/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -40
  254. package/dist/api/resources/insurancePayments/resources/v1/client/delete.js +0 -90
  255. package/dist/api/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -18
  256. package/dist/api/resources/insurancePayments/resources/v1/client/update.d.ts +0 -40
  257. package/dist/api/resources/insurancePayments/resources/v1/client/update.js +0 -90
  258. package/dist/api/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -11
  259. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
  260. package/dist/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
  261. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
  262. package/dist/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
  263. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  264. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  265. package/dist/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  266. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
  267. package/dist/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
  268. package/dist/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  269. package/serialization/resources/insurancePayments/resources/v1/client/create.d.ts +0 -25
  270. package/serialization/resources/insurancePayments/resources/v1/client/create.js +0 -83
  271. package/serialization/resources/insurancePayments/resources/v1/client/delete.d.ts +0 -25
  272. package/serialization/resources/insurancePayments/resources/v1/client/delete.js +0 -83
  273. package/serialization/resources/insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.d.ts +0 -14
  274. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.d.ts +0 -1
  275. package/serialization/resources/insurancePayments/resources/v1/client/requests/index.js +0 -5
  276. package/serialization/resources/insurancePayments/resources/v1/client/update.d.ts +0 -25
  277. package/serialization/resources/insurancePayments/resources/v1/client/update.js +0 -83
  278. package/serialization/resources/insurancePayments/resources/v1/types/InsurancePaymentCreate.d.ts +0 -18
  279. /package/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +0 -0
  280. /package/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
  281. /package/dist/api/resources/{insurancePayments/resources/v1/client/requests/InsurancePaymentUpdate.js → chargeCapture/resources/v1/types/ChargeCapturePostBilledChange.js} +0 -0
  282. /package/dist/api/resources/{insurancePayments/resources/v1/types/InsurancePaymentCreate.js → chargeCaptureBundles/resources/v1/types/ChargeCaptureBundleSummary.js} +0 -0
@@ -118,7 +118,7 @@ class V1 {
118
118
  const _response = yield core.fetcher({
119
119
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
120
120
  method: "POST",
121
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
121
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
122
122
  contentType: "application/json",
123
123
  requestType: "json",
124
124
  body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
@@ -207,7 +207,7 @@ class V1 {
207
207
  const _response = yield core.fetcher({
208
208
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
209
209
  method: "PUT",
210
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
211
  contentType: "application/json",
212
212
  requestType: "json",
213
213
  body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
@@ -283,7 +283,7 @@ class V1 {
283
283
  const _response = yield core.fetcher({
284
284
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/get-multi-paginated"),
285
285
  method: "GET",
286
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
287
  contentType: "application/json",
288
288
  queryParameters: _queryParams,
289
289
  requestType: "json",
@@ -337,7 +337,7 @@ class V1 {
337
337
  const _response = yield core.fetcher({
338
338
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}`),
339
339
  method: "GET",
340
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
340
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
341
341
  contentType: "application/json",
342
342
  requestType: "json",
343
343
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -376,7 +376,7 @@ class V1 {
376
376
  const _response = yield core.fetcher({
377
377
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/history`),
378
378
  method: "GET",
379
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
379
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
380
380
  contentType: "application/json",
381
381
  requestType: "json",
382
382
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -436,7 +436,7 @@ class V1 {
436
436
  const _response = yield core.fetcher({
437
437
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
438
438
  method: "GET",
439
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
439
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
440
440
  contentType: "application/json",
441
441
  queryParameters: _queryParams,
442
442
  requestType: "json",
@@ -481,7 +481,7 @@ class V1 {
481
481
  const _response = yield core.fetcher({
482
482
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/updates/scan"),
483
483
  method: "GET",
484
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
484
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
485
485
  contentType: "application/json",
486
486
  queryParameters: _queryParams,
487
487
  requestType: "json",
@@ -526,7 +526,7 @@ class V1 {
526
526
  const _response = yield core.fetcher({
527
527
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility`),
528
528
  method: "POST",
529
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
529
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
530
530
  contentType: "application/json",
531
531
  requestType: "json",
532
532
  body: serializers.preEncounter.coverages.v1.CheckEligibilityRequest.jsonOrThrow(request, {
@@ -569,7 +569,7 @@ class V1 {
569
569
  const _response = yield core.fetcher({
570
570
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility/${encodeURIComponent(checkId)}`),
571
571
  method: "GET",
572
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
572
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
573
573
  contentType: "application/json",
574
574
  requestType: "json",
575
575
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -97,7 +97,7 @@ class V1 {
97
97
  const _response = yield core.fetcher({
98
98
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/eligibility-checks/v1"),
99
99
  method: "POST",
100
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
101
  contentType: "application/json",
102
102
  requestType: "json",
103
103
  body: serializers.preEncounter.eligibilityChecks.v1.EligibilityRequest.jsonOrThrow(request, {
@@ -86,7 +86,7 @@ class V1 {
86
86
  const _response = yield core.fetcher({
87
87
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/images/v1"),
88
88
  method: "POST",
89
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
89
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
90
  contentType: "application/json",
91
91
  requestType: "json",
92
92
  body: serializers.preEncounter.images.v1.MutableImage.jsonOrThrow(request, {
@@ -142,7 +142,7 @@ class V1 {
142
142
  const _response = yield core.fetcher({
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}`),
144
144
  method: "GET",
145
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
145
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
146
  contentType: "application/json",
147
147
  requestType: "json",
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -210,7 +210,7 @@ class V1 {
210
210
  const _response = yield core.fetcher({
211
211
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
212
212
  method: "PUT",
213
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
214
  contentType: "application/json",
215
215
  requestType: "json",
216
216
  body: serializers.preEncounter.images.v1.MutableImage.jsonOrThrow(request, {
@@ -268,7 +268,7 @@ class V1 {
268
268
  const _response = yield core.fetcher({
269
269
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
270
270
  method: "DELETE",
271
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
271
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
272
  contentType: "application/json",
273
273
  requestType: "json",
274
274
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -328,7 +328,7 @@ class V1 {
328
328
  const _response = yield core.fetcher({
329
329
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/images/v1"),
330
330
  method: "GET",
331
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
331
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
332
332
  contentType: "application/json",
333
333
  queryParameters: _queryParams,
334
334
  requestType: "json",
@@ -98,7 +98,7 @@ class V1 {
98
98
  const _response = yield core.fetcher({
99
99
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/lists/v1/patient"),
100
100
  method: "GET",
101
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
102
  contentType: "application/json",
103
103
  queryParameters: _queryParams,
104
104
  requestType: "json",
@@ -177,7 +177,7 @@ class V1 {
177
177
  const _response = yield core.fetcher({
178
178
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/lists/v1/appointment"),
179
179
  method: "GET",
180
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
181
  contentType: "application/json",
182
182
  queryParameters: _queryParams,
183
183
  requestType: "json",
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -116,7 +116,7 @@ class V1 {
116
116
  const _response = yield core.fetcher({
117
117
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/notes/v1"),
118
118
  method: "POST",
119
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
119
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
120
120
  contentType: "application/json",
121
121
  requestType: "json",
122
122
  body: serializers.preEncounter.notes.v1.MutableNote.jsonOrThrow(request, {
@@ -164,7 +164,7 @@ class V1 {
164
164
  const _response = yield core.fetcher({
165
165
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
166
166
  method: "PUT",
167
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
167
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
168
  contentType: "application/json",
169
169
  requestType: "json",
170
170
  body: serializers.preEncounter.notes.v1.MutableNote.jsonOrThrow(request, {
@@ -207,7 +207,7 @@ class V1 {
207
207
  const _response = yield core.fetcher({
208
208
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
209
209
  method: "DELETE",
210
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
210
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
211
  contentType: "application/json",
212
212
  requestType: "json",
213
213
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -259,7 +259,7 @@ class V1 {
259
259
  const _response = yield core.fetcher({
260
260
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
261
261
  method: "POST",
262
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
262
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
263
263
  contentType: "application/json",
264
264
  queryParameters: _queryParams,
265
265
  requestType: "json",
@@ -503,7 +503,7 @@ class V1 {
503
503
  const _response = yield core.fetcher({
504
504
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/with_mrn"),
505
505
  method: "POST",
506
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
506
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
507
507
  contentType: "application/json",
508
508
  queryParameters: _queryParams,
509
509
  requestType: "json",
@@ -586,7 +586,7 @@ class V1 {
586
586
  const _response = yield core.fetcher({
587
587
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/get_multi"),
588
588
  method: "GET",
589
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
589
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
590
590
  contentType: "application/json",
591
591
  queryParameters: _queryParams,
592
592
  requestType: "json",
@@ -631,7 +631,7 @@ class V1 {
631
631
  const _response = yield core.fetcher({
632
632
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/search_providers"),
633
633
  method: "GET",
634
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
634
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
635
635
  contentType: "application/json",
636
636
  queryParameters: _queryParams,
637
637
  requestType: "json",
@@ -671,7 +671,7 @@ class V1 {
671
671
  const _response = yield core.fetcher({
672
672
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}`),
673
673
  method: "GET",
674
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
674
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
675
675
  contentType: "application/json",
676
676
  requestType: "json",
677
677
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -724,7 +724,7 @@ class V1 {
724
724
  const _response = yield core.fetcher({
725
725
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/history`),
726
726
  method: "GET",
727
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
727
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
728
728
  contentType: "application/json",
729
729
  requestType: "json",
730
730
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -957,7 +957,7 @@ class V1 {
957
957
  const _response = yield core.fetcher({
958
958
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
959
959
  method: "PUT",
960
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
960
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
961
961
  contentType: "application/json",
962
962
  requestType: "json",
963
963
  body: serializers.preEncounter.patients.v1.MutablePatient.jsonOrThrow(request, {
@@ -1015,7 +1015,7 @@ class V1 {
1015
1015
  const _response = yield core.fetcher({
1016
1016
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
1017
1017
  method: "DELETE",
1018
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1018
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1019
1019
  contentType: "application/json",
1020
1020
  requestType: "json",
1021
1021
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1065,7 +1065,7 @@ class V1 {
1065
1065
  const _response = yield core.fetcher({
1066
1066
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/patients/v1/${encodeURIComponent(serializers.preEncounter.PatientId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
1067
1067
  method: "PATCH",
1068
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1068
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1069
1069
  contentType: "application/json",
1070
1070
  requestType: "json",
1071
1071
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1125,7 +1125,7 @@ class V1 {
1125
1125
  const _response = yield core.fetcher({
1126
1126
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1"),
1127
1127
  method: "GET",
1128
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1128
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1129
1129
  contentType: "application/json",
1130
1130
  queryParameters: _queryParams,
1131
1131
  requestType: "json",
@@ -1170,7 +1170,7 @@ class V1 {
1170
1170
  const _response = yield core.fetcher({
1171
1171
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/patients/v1/updates/scan"),
1172
1172
  method: "GET",
1173
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1173
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1174
1174
  contentType: "application/json",
1175
1175
  queryParameters: _queryParams,
1176
1176
  requestType: "json",
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export type AuthorizationUnit = "VISIT";
4
+ export type AuthorizationUnit = "VISIT" | "UNIT";
5
5
  export declare const AuthorizationUnit: {
6
6
  readonly Visit: "VISIT";
7
+ readonly Unit: "UNIT";
7
8
  };
@@ -6,4 +6,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.AuthorizationUnit = void 0;
7
7
  exports.AuthorizationUnit = {
8
8
  Visit: "VISIT",
9
+ Unit: "UNIT",
9
10
  };
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -123,7 +123,7 @@ class V1 {
123
123
  const _response = yield core.fetcher({
124
124
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/tags/v1"),
125
125
  method: "GET",
126
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
126
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
127
  contentType: "application/json",
128
128
  queryParameters: _queryParams,
129
129
  requestType: "json",
@@ -165,7 +165,7 @@ class V1 {
165
165
  const _response = yield core.fetcher({
166
166
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/tags/v1"),
167
167
  method: "POST",
168
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
169
169
  contentType: "application/json",
170
170
  requestType: "json",
171
171
  body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -209,7 +209,7 @@ class V1 {
209
209
  const _response = yield core.fetcher({
210
210
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
211
211
  method: "PUT",
212
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
213
  contentType: "application/json",
214
214
  requestType: "json",
215
215
  body: serializers.preEncounter.tags.v1.MutableTag.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -250,7 +250,7 @@ class V1 {
250
250
  const _response = yield core.fetcher({
251
251
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/tags/v1/${encodeURIComponent(serializers.preEncounter.TagId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
252
252
  method: "DELETE",
253
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
253
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
254
254
  contentType: "application/json",
255
255
  requestType: "json",
256
256
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -82,7 +82,7 @@ class ServiceFacility {
82
82
  const _response = yield core.fetcher({
83
83
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service_facility/v2/${encodeURIComponent(serializers.ServiceFacilityId.jsonOrThrow(serviceFacilityId))}`),
84
84
  method: "PATCH",
85
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
85
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
86
86
  contentType: "application/json",
87
87
  requestType: "json",
88
88
  body: serializers.EncounterServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -31,7 +31,7 @@ export declare class V2 {
31
31
  *
32
32
  * @example
33
33
  * await client.serviceLines.v2.create({
34
- * modifiers: ["22"],
34
+ * modifiers: ["AV"],
35
35
  * chargeAmountCents: 1,
36
36
  * diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
37
37
  * diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
@@ -90,7 +90,7 @@ export declare class V2 {
90
90
  * @example
91
91
  * await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
92
92
  * editReason: "string",
93
- * modifiers: ["22"],
93
+ * modifiers: ["AV"],
94
94
  * chargeAmountCents: 1,
95
95
  * diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
96
96
  * diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
@@ -64,7 +64,7 @@ class V2 {
64
64
  *
65
65
  * @example
66
66
  * await client.serviceLines.v2.create({
67
- * modifiers: ["22"],
67
+ * modifiers: ["AV"],
68
68
  * chargeAmountCents: 1,
69
69
  * diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
70
70
  * diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
@@ -120,7 +120,7 @@ class V2 {
120
120
  const _response = yield core.fetcher({
121
121
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/service-lines/v2"),
122
122
  method: "POST",
123
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
123
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
124
124
  contentType: "application/json",
125
125
  requestType: "json",
126
126
  body: serializers.serviceLines.v2.ServiceLineCreateStandalone.jsonOrThrow(request, {
@@ -169,7 +169,7 @@ class V2 {
169
169
  * @example
170
170
  * await client.serviceLines.v2.update(CandidApi.ServiceLineId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
171
171
  * editReason: "string",
172
- * modifiers: ["22"],
172
+ * modifiers: ["AV"],
173
173
  * chargeAmountCents: 1,
174
174
  * diagnosisIdZero: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
175
175
  * diagnosisIdOne: CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
@@ -209,7 +209,7 @@ class V2 {
209
209
  const _response = yield core.fetcher({
210
210
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
211
211
  method: "PATCH",
212
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
212
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
213
213
  contentType: "application/json",
214
214
  requestType: "json",
215
215
  body: serializers.serviceLines.v2.ServiceLineUpdate.jsonOrThrow(request, {
@@ -265,7 +265,7 @@ class V2 {
265
265
  const _response = yield core.fetcher({
266
266
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/service-lines/v2/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}`),
267
267
  method: "DELETE",
268
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
268
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
269
269
  contentType: "application/json",
270
270
  requestType: "json",
271
271
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -71,7 +71,7 @@ class V3 {
71
71
  const _response = yield core.fetcher({
72
72
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}/actions`),
73
73
  method: "GET",
74
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
74
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
75
75
  contentType: "application/json",
76
76
  requestType: "json",
77
77
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -169,7 +169,7 @@ class V3 {
169
169
  const _response = yield core.fetcher({
170
170
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/tasks/v3"),
171
171
  method: "GET",
172
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
172
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
173
173
  contentType: "application/json",
174
174
  queryParameters: _queryParams,
175
175
  requestType: "json",
@@ -221,7 +221,7 @@ class V3 {
221
221
  const _response = yield core.fetcher({
222
222
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
223
223
  method: "GET",
224
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
224
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
225
225
  contentType: "application/json",
226
226
  requestType: "json",
227
227
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -281,7 +281,7 @@ class V3 {
281
281
  const _response = yield core.fetcher({
282
282
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/tasks/v3"),
283
283
  method: "POST",
284
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
285
285
  contentType: "application/json",
286
286
  requestType: "json",
287
287
  body: serializers.tasks.v3.TaskCreateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -324,7 +324,7 @@ class V3 {
324
324
  const _response = yield core.fetcher({
325
325
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/tasks/v3/${encodeURIComponent(serializers.TaskId.jsonOrThrow(taskId))}`),
326
326
  method: "PATCH",
327
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.1", "User-Agent": "candidhealth/0.40.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
327
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.40.3", "User-Agent": "candidhealth/0.40.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
328
328
  contentType: "application/json",
329
329
  requestType: "json",
330
330
  body: serializers.tasks.v3.TaskUpdateV3.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),