candidhealth 1.0.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (675) hide show
  1. package/Client.js +2 -2
  2. package/README.md +1 -1
  3. package/api/resources/auth/client/Client.d.ts +3 -3
  4. package/api/resources/auth/client/Client.js +3 -3
  5. package/api/resources/auth/resources/{v2 → default}/client/Client.d.ts +23 -9
  6. package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/client/Client.js +29 -12
  7. package/api/resources/auth/resources/default/client/getToken.d.ts +34 -0
  8. package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/client/getToken.js +13 -2
  9. package/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +6 -0
  10. package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.d.ts +1 -0
  11. package/{dist/serialization/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.js +1 -0
  12. package/api/resources/auth/resources/index.d.ts +1 -1
  13. package/api/resources/auth/resources/index.js +2 -2
  14. package/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  15. package/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +7 -0
  16. package/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  17. package/api/resources/billingNotes/resources/v2/types/index.js +1 -0
  18. package/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  19. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
  20. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
  21. package/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  22. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
  23. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
  24. package/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  25. package/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
  26. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  27. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
  28. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  29. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  30. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  31. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  32. package/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +34 -0
  33. package/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +79 -0
  34. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
  35. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +5 -0
  36. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
  37. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +5 -0
  38. package/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  39. package/api/resources/claimSubmission/resources/v1/types/index.js +2 -0
  40. package/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
  41. package/api/resources/commons/types/PhoneNumberOptional.js +5 -0
  42. package/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
  43. package/api/resources/commons/types/ProcedureModifier.js +2 -0
  44. package/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
  45. package/api/resources/commons/types/StreetAddressLongZipOptional.js +5 -0
  46. package/api/resources/commons/types/index.d.ts +2 -0
  47. package/api/resources/commons/types/index.js +2 -0
  48. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  49. package/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  50. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  51. package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
  52. package/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
  53. package/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  54. package/api/resources/customSchemas/resources/v1/types/index.js +1 -0
  55. package/api/resources/diagnoses/client/Client.js +3 -3
  56. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
  57. package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
  58. package/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
  59. package/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
  60. package/api/resources/diagnoses/types/index.d.ts +1 -0
  61. package/api/resources/diagnoses/types/index.js +1 -0
  62. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  63. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  64. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  65. package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
  66. package/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
  67. package/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  68. package/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  69. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  70. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  71. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
  72. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
  73. package/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
  74. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
  75. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
  76. package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
  77. package/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
  78. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
  79. package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
  80. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
  81. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
  82. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
  83. package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
  84. package/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
  85. package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
  86. package/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
  87. package/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
  88. package/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
  89. package/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
  90. package/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
  91. package/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
  92. package/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
  93. package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
  94. package/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
  95. package/api/resources/encounters/resources/v4/types/index.d.ts +10 -0
  96. package/api/resources/encounters/resources/v4/types/index.js +10 -0
  97. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  98. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  99. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  100. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  101. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  102. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  103. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
  104. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
  105. package/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  106. package/api/resources/guarantor/resources/v1/types/index.js +1 -0
  107. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  108. package/api/resources/index.d.ts +2 -0
  109. package/api/resources/index.js +3 -1
  110. package/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
  111. package/api/resources/individual/types/IndividualBaseOptional.js +5 -0
  112. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
  113. package/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
  114. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
  115. package/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
  116. package/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
  117. package/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
  118. package/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
  119. package/api/resources/individual/types/index.d.ts +4 -0
  120. package/api/resources/individual/types/index.js +4 -0
  121. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  122. package/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  123. package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
  124. package/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
  125. package/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  126. package/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
  127. package/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  128. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  129. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  130. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  131. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  132. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  133. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  134. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  135. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  136. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  137. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  138. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  139. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  140. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  141. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +3 -3
  142. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  143. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  144. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  145. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  146. package/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  147. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  148. package/api/resources/serviceFacility/client/Client.js +1 -1
  149. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  150. package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
  151. package/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
  152. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +50 -0
  153. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
  154. package/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
  155. package/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
  156. package/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  157. package/api/resources/serviceLines/resources/v2/types/index.js +3 -0
  158. package/api/resources/superbills/resources/v1/client/Client.js +1 -1
  159. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  160. package/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  161. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
  162. package/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  163. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  164. package/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  165. package/api/resources/yesNoIndicator/index.d.ts +1 -0
  166. package/api/resources/yesNoIndicator/index.js +17 -0
  167. package/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  168. package/api/resources/yesNoIndicator/types/YesNoIndicator.js +12 -0
  169. package/api/resources/yesNoIndicator/types/index.d.ts +1 -0
  170. package/api/resources/yesNoIndicator/types/index.js +17 -0
  171. package/core/auth/OAuthTokenProvider.d.ts +2 -2
  172. package/dist/Client.js +2 -2
  173. package/dist/api/resources/auth/client/Client.d.ts +3 -3
  174. package/dist/api/resources/auth/client/Client.js +3 -3
  175. package/dist/api/resources/auth/resources/{v2 → default}/client/Client.d.ts +23 -9
  176. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/Client.js +29 -12
  177. package/dist/api/resources/auth/resources/default/client/getToken.d.ts +34 -0
  178. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/client/getToken.js +13 -2
  179. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenRequest.js +5 -0
  180. package/dist/api/resources/auth/resources/default/types/AuthGetTokenResponse.js +5 -0
  181. package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +6 -0
  182. package/dist/api/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +5 -0
  183. package/dist/api/resources/auth/resources/default/types/TooManyRequestsErrorType.js +5 -0
  184. package/dist/{serialization/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/index.d.ts +1 -0
  185. package/{api/resources/auth/resources/v2 → dist/api/resources/auth/resources/default}/types/index.js +1 -0
  186. package/dist/api/resources/auth/resources/index.d.ts +1 -1
  187. package/dist/api/resources/auth/resources/index.js +2 -2
  188. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +3 -3
  189. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +7 -0
  190. package/dist/api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +5 -0
  191. package/dist/api/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  192. package/dist/api/resources/billingNotes/resources/v2/types/index.js +1 -0
  193. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +5 -5
  194. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +4 -0
  195. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +4 -0
  196. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  197. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -52
  198. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +6 -0
  199. package/dist/api/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  200. package/dist/api/resources/chargeCapture/resources/v1/types/index.js +1 -1
  201. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +9 -0
  202. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +55 -3
  203. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -0
  204. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +2 -1
  205. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  206. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +5 -0
  207. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  208. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +34 -0
  209. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +79 -0
  210. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +34 -0
  211. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +5 -0
  212. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +43 -0
  213. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +5 -0
  214. package/dist/api/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  215. package/dist/api/resources/claimSubmission/resources/v1/types/index.js +2 -0
  216. package/dist/api/resources/commons/types/PhoneNumberOptional.d.ts +15 -0
  217. package/dist/api/resources/commons/types/PhoneNumberOptional.js +5 -0
  218. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +9 -1
  219. package/dist/api/resources/commons/types/ProcedureModifier.js +2 -0
  220. package/dist/api/resources/commons/types/StreetAddressLongZipOptional.d.ts +19 -0
  221. package/dist/api/resources/commons/types/StreetAddressLongZipOptional.js +5 -0
  222. package/dist/api/resources/commons/types/index.d.ts +2 -0
  223. package/dist/api/resources/commons/types/index.js +2 -0
  224. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  225. package/dist/api/resources/credentialing/resources/v2/client/Client.js +5 -5
  226. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  227. package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +22 -0
  228. package/dist/api/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +5 -0
  229. package/dist/api/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  230. package/dist/api/resources/customSchemas/resources/v1/types/index.js +1 -0
  231. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  232. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +7 -0
  233. package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +7 -0
  234. package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +28 -0
  235. package/dist/api/resources/diagnoses/types/DiagnosisCreateOptional.js +5 -0
  236. package/dist/api/resources/diagnoses/types/index.d.ts +1 -0
  237. package/dist/api/resources/diagnoses/types/index.js +1 -0
  238. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  239. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -3
  240. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  241. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +13 -0
  242. package/dist/api/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +5 -0
  243. package/dist/api/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  244. package/dist/api/resources/encounterProviders/resources/v2/types/index.js +1 -0
  245. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  246. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +1 -1
  247. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +26 -0
  248. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +9 -0
  249. package/dist/api/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +5 -0
  250. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +8 -0
  251. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +5 -0
  252. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +10 -0
  253. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +5 -0
  254. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +3 -1
  255. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +1 -1
  256. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +80 -0
  257. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.js +5 -0
  258. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -26
  259. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +9 -0
  260. package/dist/api/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +5 -0
  261. package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +24 -0
  262. package/dist/api/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +5 -0
  263. package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.d.ts +14 -0
  264. package/dist/api/resources/encounters/resources/v4/types/InterventionOptional.js +5 -0
  265. package/dist/api/resources/encounters/resources/v4/types/LabOptional.d.ts +17 -0
  266. package/dist/api/resources/encounters/resources/v4/types/LabOptional.js +5 -0
  267. package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.d.ts +12 -0
  268. package/dist/api/resources/encounters/resources/v4/types/MedicationOptional.js +5 -0
  269. package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +9 -0
  270. package/dist/api/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +5 -0
  271. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +10 -0
  272. package/dist/api/resources/encounters/resources/v4/types/index.js +10 -0
  273. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  274. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  275. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  276. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  277. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  278. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  279. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +17 -0
  280. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.js +5 -0
  281. package/dist/api/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  282. package/dist/api/resources/guarantor/resources/v1/types/index.js +1 -0
  283. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  284. package/dist/api/resources/index.d.ts +2 -0
  285. package/dist/api/resources/index.js +3 -1
  286. package/dist/api/resources/individual/types/IndividualBaseOptional.d.ts +9 -0
  287. package/dist/api/resources/individual/types/IndividualBaseOptional.js +5 -0
  288. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +9 -0
  289. package/dist/api/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +5 -0
  290. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +2 -2
  291. package/dist/api/resources/individual/types/SubscriberBaseOptional.d.ts +9 -0
  292. package/dist/api/resources/individual/types/SubscriberBaseOptional.js +5 -0
  293. package/dist/api/resources/individual/types/SubscriberCreateOptional.d.ts +7 -0
  294. package/dist/api/resources/individual/types/SubscriberCreateOptional.js +5 -0
  295. package/dist/api/resources/individual/types/index.d.ts +4 -0
  296. package/dist/api/resources/individual/types/index.js +4 -0
  297. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  298. package/dist/api/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  299. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +14 -0
  300. package/dist/api/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +5 -0
  301. package/dist/api/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  302. package/dist/api/resources/insuranceCards/resources/v2/types/index.js +1 -0
  303. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +2 -2
  304. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  305. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  306. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  307. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  308. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  309. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  310. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  311. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  312. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  313. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +5 -5
  314. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  315. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +7 -7
  316. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +10 -10
  317. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +3 -3
  318. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +5 -5
  319. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  320. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +4 -4
  321. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -11
  322. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +2 -0
  323. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +5 -5
  324. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  325. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  326. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +14 -0
  327. package/dist/api/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +5 -0
  328. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +50 -0
  329. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +5 -0
  330. package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +8 -0
  331. package/dist/api/resources/serviceLines/resources/v2/types/TestResultOptional.js +5 -0
  332. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  333. package/dist/api/resources/serviceLines/resources/v2/types/index.js +3 -0
  334. package/dist/api/resources/superbills/resources/v1/client/Client.js +1 -1
  335. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  336. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +6 -6
  337. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +2 -1
  338. package/dist/api/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  339. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +2 -1
  340. package/dist/api/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  341. package/dist/api/resources/yesNoIndicator/index.d.ts +1 -0
  342. package/dist/api/resources/yesNoIndicator/index.js +17 -0
  343. package/dist/api/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  344. package/dist/api/resources/yesNoIndicator/types/YesNoIndicator.js +12 -0
  345. package/dist/api/resources/yesNoIndicator/types/index.d.ts +1 -0
  346. package/dist/api/resources/yesNoIndicator/types/index.js +17 -0
  347. package/dist/core/auth/OAuthTokenProvider.d.ts +2 -2
  348. package/dist/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
  349. package/dist/serialization/resources/auth/resources/{v2 → default}/client/getToken.js +7 -1
  350. package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
  351. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/AuthGetTokenResponse.d.ts +1 -1
  352. package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
  353. package/dist/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
  354. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
  355. package/{serialization/resources/auth/resources/v2 → dist/serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
  356. package/dist/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.js +1 -0
  357. package/dist/serialization/resources/auth/resources/index.d.ts +1 -1
  358. package/dist/serialization/resources/auth/resources/index.js +2 -2
  359. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
  360. package/dist/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
  361. package/dist/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  362. package/dist/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  363. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
  364. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
  365. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
  366. package/dist/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
  367. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  368. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  369. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
  370. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
  371. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
  372. package/dist/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
  373. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  374. package/dist/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
  375. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
  376. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
  377. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  378. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
  379. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  380. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
  381. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +20 -0
  382. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +77 -0
  383. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
  384. package/dist/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
  385. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
  386. package/dist/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
  387. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
  388. package/dist/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
  389. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  390. package/dist/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -0
  391. package/dist/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
  392. package/dist/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
  393. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  394. package/dist/serialization/resources/commons/types/ProcedureModifier.js +2 -0
  395. package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
  396. package/dist/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
  397. package/dist/serialization/resources/commons/types/index.d.ts +2 -0
  398. package/dist/serialization/resources/commons/types/index.js +2 -0
  399. package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
  400. package/dist/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
  401. package/dist/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  402. package/dist/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
  403. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
  404. package/dist/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
  405. package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
  406. package/dist/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
  407. package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
  408. package/dist/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
  409. package/dist/serialization/resources/diagnoses/types/index.d.ts +1 -0
  410. package/dist/serialization/resources/diagnoses/types/index.js +1 -0
  411. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
  412. package/dist/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
  413. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  414. package/dist/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  415. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  416. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  417. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
  418. package/dist/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
  419. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
  420. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
  421. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
  422. package/dist/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
  423. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  424. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  425. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
  426. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
  427. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
  428. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
  429. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
  430. package/dist/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
  431. package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
  432. package/dist/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
  433. package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
  434. package/dist/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
  435. package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
  436. package/dist/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
  437. package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
  438. package/dist/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
  439. package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
  440. package/dist/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
  441. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +10 -0
  442. package/dist/serialization/resources/encounters/resources/v4/types/index.js +10 -0
  443. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
  444. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
  445. package/dist/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  446. package/dist/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  447. package/dist/serialization/resources/index.d.ts +2 -0
  448. package/dist/serialization/resources/index.js +3 -1
  449. package/dist/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
  450. package/dist/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
  451. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
  452. package/dist/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
  453. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
  454. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
  455. package/dist/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
  456. package/dist/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
  457. package/dist/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
  458. package/dist/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
  459. package/dist/serialization/resources/individual/types/index.d.ts +4 -0
  460. package/dist/serialization/resources/individual/types/index.js +4 -0
  461. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  462. package/dist/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
  463. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
  464. package/dist/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
  465. package/dist/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  466. package/dist/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
  467. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  468. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  469. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
  470. package/dist/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
  471. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +33 -0
  472. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +64 -0
  473. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
  474. package/dist/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
  475. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  476. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
  477. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
  478. package/dist/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  479. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  480. package/dist/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  481. package/dist/serialization/resources/yesNoIndicator/index.d.ts +1 -0
  482. package/dist/serialization/resources/yesNoIndicator/index.js +17 -0
  483. package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  484. package/dist/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
  485. package/dist/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
  486. package/dist/serialization/resources/yesNoIndicator/types/index.js +17 -0
  487. package/dist/version.d.ts +1 -1
  488. package/dist/version.js +1 -1
  489. package/package.json +1 -1
  490. package/reference.md +77 -6
  491. package/serialization/resources/auth/resources/{v2 → default}/client/getToken.d.ts +7 -2
  492. package/serialization/resources/auth/resources/{v2 → default}/client/getToken.js +7 -1
  493. package/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +1 -1
  494. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/AuthGetTokenResponse.d.ts +1 -1
  495. package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.d.ts +12 -0
  496. package/serialization/resources/auth/resources/default/types/InvalidContentTypeErrorType.js +43 -0
  497. package/{dist/serialization/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/TooManyRequestsErrorType.d.ts +1 -1
  498. package/{api/resources/auth/resources/v2 → serialization/resources/auth/resources/default}/types/index.d.ts +1 -0
  499. package/serialization/resources/auth/resources/{v2 → default}/types/index.js +1 -0
  500. package/serialization/resources/auth/resources/index.d.ts +1 -1
  501. package/serialization/resources/auth/resources/index.js +2 -2
  502. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.d.ts +12 -0
  503. package/serialization/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js +43 -0
  504. package/serialization/resources/billingNotes/resources/v2/types/index.d.ts +1 -0
  505. package/serialization/resources/billingNotes/resources/v2/types/index.js +1 -0
  506. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +2 -0
  507. package/serialization/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.js +2 -0
  508. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +2 -0
  509. package/serialization/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.js +2 -0
  510. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.d.ts +2 -0
  511. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCapture.js +2 -0
  512. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +2 -30
  513. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureData.js +2 -33
  514. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.d.ts +3 -0
  515. package/serialization/resources/chargeCapture/resources/v1/types/ChargeCaptureError.js +3 -0
  516. package/serialization/resources/chargeCapture/resources/v1/types/index.d.ts +1 -1
  517. package/serialization/resources/chargeCapture/resources/v1/types/index.js +1 -1
  518. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +2 -0
  519. package/serialization/resources/chargeCaptureBundles/resources/v1/client/index.js +41 -0
  520. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.d.ts +13 -0
  521. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js +44 -0
  522. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.d.ts +1 -0
  523. package/serialization/resources/chargeCaptureBundles/resources/v1/client/requests/index.js +5 -0
  524. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.d.ts +20 -0
  525. package/serialization/resources/chargeCaptureBundles/resources/v1/client/resolveChargeCreationError.js +77 -0
  526. package/serialization/resources/chargeCaptureBundles/resources/v1/index.d.ts +1 -0
  527. package/serialization/resources/chargeCaptureBundles/resources/v1/index.js +1 -0
  528. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +18 -0
  529. package/serialization/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.js +49 -0
  530. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +15 -0
  531. package/serialization/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.js +46 -0
  532. package/serialization/resources/claimSubmission/resources/v1/types/index.d.ts +2 -0
  533. package/serialization/resources/claimSubmission/resources/v1/types/index.js +2 -0
  534. package/serialization/resources/commons/types/PhoneNumberOptional.d.ts +14 -0
  535. package/serialization/resources/commons/types/PhoneNumberOptional.js +45 -0
  536. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  537. package/serialization/resources/commons/types/ProcedureModifier.js +2 -0
  538. package/serialization/resources/commons/types/StreetAddressLongZipOptional.d.ts +13 -0
  539. package/serialization/resources/commons/types/StreetAddressLongZipOptional.js +46 -0
  540. package/serialization/resources/commons/types/index.d.ts +2 -0
  541. package/serialization/resources/commons/types/index.js +2 -0
  542. package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.d.ts +14 -0
  543. package/serialization/resources/customSchemas/resources/v1/types/SchemaInstanceOptional.js +45 -0
  544. package/serialization/resources/customSchemas/resources/v1/types/index.d.ts +1 -0
  545. package/serialization/resources/customSchemas/resources/v1/types/index.js +1 -0
  546. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -0
  547. package/serialization/resources/diagnoses/client/requests/DiagnosisUpdate.js +2 -0
  548. package/serialization/resources/diagnoses/types/DiagnosisCreate.d.ts +2 -0
  549. package/serialization/resources/diagnoses/types/DiagnosisCreate.js +2 -0
  550. package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.d.ts +17 -0
  551. package/serialization/resources/diagnoses/types/DiagnosisCreateOptional.js +48 -0
  552. package/serialization/resources/diagnoses/types/index.d.ts +1 -0
  553. package/serialization/resources/diagnoses/types/index.js +1 -0
  554. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.d.ts +16 -0
  555. package/serialization/resources/encounterProviders/resources/v2/types/OrderingProviderOptional.js +49 -0
  556. package/serialization/resources/encounterProviders/resources/v2/types/index.d.ts +1 -0
  557. package/serialization/resources/encounterProviders/resources/v2/types/index.js +1 -0
  558. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +16 -0
  559. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.js +16 -0
  560. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.d.ts +16 -0
  561. package/serialization/resources/encounters/resources/v4/types/ClaimSupplementalInformationOptional.js +47 -0
  562. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.d.ts +15 -0
  563. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteCategoryCreateOptional.js +46 -0
  564. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.d.ts +16 -0
  565. package/serialization/resources/encounters/resources/v4/types/ClinicalNoteOptional.js +47 -0
  566. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +2 -0
  567. package/serialization/resources/encounters/resources/v4/types/Encounter.js +2 -0
  568. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +56 -0
  569. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +89 -0
  570. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -16
  571. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -16
  572. package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.d.ts +15 -0
  573. package/serialization/resources/encounters/resources/v4/types/EpsdtReferralOptional.js +46 -0
  574. package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.d.ts +16 -0
  575. package/serialization/resources/encounters/resources/v4/types/IntakeQuestionOptional.js +47 -0
  576. package/serialization/resources/encounters/resources/v4/types/InterventionOptional.d.ts +19 -0
  577. package/serialization/resources/encounters/resources/v4/types/InterventionOptional.js +50 -0
  578. package/serialization/resources/encounters/resources/v4/types/LabOptional.d.ts +15 -0
  579. package/serialization/resources/encounters/resources/v4/types/LabOptional.js +46 -0
  580. package/serialization/resources/encounters/resources/v4/types/MedicationOptional.d.ts +18 -0
  581. package/serialization/resources/encounters/resources/v4/types/MedicationOptional.js +49 -0
  582. package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.d.ts +15 -0
  583. package/serialization/resources/encounters/resources/v4/types/PatientHistoryCategoryOptional.js +46 -0
  584. package/serialization/resources/encounters/resources/v4/types/index.d.ts +10 -0
  585. package/serialization/resources/encounters/resources/v4/types/index.js +10 -0
  586. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +23 -0
  587. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +54 -0
  588. package/serialization/resources/guarantor/resources/v1/types/index.d.ts +1 -0
  589. package/serialization/resources/guarantor/resources/v1/types/index.js +1 -0
  590. package/serialization/resources/index.d.ts +2 -0
  591. package/serialization/resources/index.js +3 -1
  592. package/serialization/resources/individual/types/IndividualBaseOptional.d.ts +15 -0
  593. package/serialization/resources/individual/types/IndividualBaseOptional.js +46 -0
  594. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.d.ts +16 -0
  595. package/serialization/resources/individual/types/PatientNonInsurancePayerInfoCreateOptional.js +47 -0
  596. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +4 -4
  597. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +4 -4
  598. package/serialization/resources/individual/types/SubscriberBaseOptional.d.ts +17 -0
  599. package/serialization/resources/individual/types/SubscriberBaseOptional.js +50 -0
  600. package/serialization/resources/individual/types/SubscriberCreateOptional.d.ts +14 -0
  601. package/serialization/resources/individual/types/SubscriberCreateOptional.js +47 -0
  602. package/serialization/resources/individual/types/index.d.ts +4 -0
  603. package/serialization/resources/individual/types/index.js +4 -0
  604. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.d.ts +1 -0
  605. package/serialization/resources/insuranceAdjudications/resources/v1/types/InsuranceAdjudicationCreate.js +1 -0
  606. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.d.ts +21 -0
  607. package/serialization/resources/insuranceCards/resources/v2/types/InsuranceCardCreateOptional.js +54 -0
  608. package/serialization/resources/insuranceCards/resources/v2/types/index.d.ts +1 -0
  609. package/serialization/resources/insuranceCards/resources/v2/types/index.js +1 -0
  610. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.d.ts +1 -0
  611. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Authorization.js +1 -0
  612. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.d.ts +21 -0
  613. package/serialization/resources/serviceLines/resources/v2/types/DrugIdentificationOptional.js +52 -0
  614. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +33 -0
  615. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +64 -0
  616. package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.d.ts +14 -0
  617. package/serialization/resources/serviceLines/resources/v2/types/TestResultOptional.js +45 -0
  618. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +3 -0
  619. package/serialization/resources/serviceLines/resources/v2/types/index.js +3 -0
  620. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.d.ts +1 -1
  621. package/serialization/resources/writeOffs/resources/v1/types/InsuranceWriteOffReason.js +1 -0
  622. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.d.ts +1 -1
  623. package/serialization/resources/writeOffs/resources/v1/types/PatientWriteOffReason.js +1 -0
  624. package/serialization/resources/yesNoIndicator/index.d.ts +1 -0
  625. package/serialization/resources/yesNoIndicator/index.js +17 -0
  626. package/serialization/resources/yesNoIndicator/types/YesNoIndicator.d.ts +10 -0
  627. package/serialization/resources/yesNoIndicator/types/YesNoIndicator.js +41 -0
  628. package/serialization/resources/yesNoIndicator/types/index.d.ts +1 -0
  629. package/serialization/resources/yesNoIndicator/types/index.js +17 -0
  630. package/version.d.ts +1 -1
  631. package/version.js +1 -1
  632. package/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
  633. package/dist/api/resources/auth/resources/v2/client/getToken.d.ts +0 -28
  634. /package/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  635. /package/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  636. /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
  637. /package/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  638. /package/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  639. /package/api/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  640. /package/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  641. /package/api/resources/auth/resources/{v2 → default}/index.js +0 -0
  642. /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
  643. /package/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  644. /package/api/resources/auth/resources/{v2/types/TooManyRequestsErrorType.js → default/types/InvalidContentTypeErrorType.js} +0 -0
  645. /package/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
  646. /package/{dist/api/resources/auth/resources/v2 → api/resources/auth/resources/default}/types/TooManyRequestsErrorType.js +0 -0
  647. /package/{dist/api/resources/auth/resources/v2/client/requests/AuthGetTokenRequest.js → api/resources/billingNotes/resources/v2/types/BillingNoteBaseOptional.js} +0 -0
  648. /package/{dist/api/resources/auth/resources/v2/types/AuthGetTokenResponse.js → api/resources/chargeCaptureBundles/resources/v1/client/requests/ChargeCaptureBundleErrorResolution.js} +0 -0
  649. /package/dist/api/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  650. /package/dist/api/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  651. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.d.ts +0 -0
  652. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  653. /package/dist/api/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  654. /package/dist/api/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  655. /package/dist/api/resources/auth/resources/{v2 → default}/index.js +0 -0
  656. /package/dist/api/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.d.ts +0 -0
  657. /package/dist/api/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.d.ts +0 -0
  658. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  659. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  660. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  661. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  662. /package/dist/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  663. /package/dist/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  664. /package/dist/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
  665. /package/dist/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  666. /package/dist/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
  667. /package/serialization/resources/auth/resources/{v2 → default}/client/index.d.ts +0 -0
  668. /package/serialization/resources/auth/resources/{v2 → default}/client/index.js +0 -0
  669. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/AuthGetTokenRequest.js +0 -0
  670. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.d.ts +0 -0
  671. /package/serialization/resources/auth/resources/{v2 → default}/client/requests/index.js +0 -0
  672. /package/serialization/resources/auth/resources/{v2 → default}/index.d.ts +0 -0
  673. /package/serialization/resources/auth/resources/{v2 → default}/index.js +0 -0
  674. /package/serialization/resources/auth/resources/{v2 → default}/types/AuthGetTokenResponse.js +0 -0
  675. /package/serialization/resources/auth/resources/{v2 → default}/types/TooManyRequestsErrorType.js +0 -0
@@ -73,7 +73,7 @@ class V3 {
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).candidApi, `/api/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match`),
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": "1.0.0", "User-Agent": "candidhealth/1.0.0", "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": "1.3.0", "User-Agent": "candidhealth/1.3.0", "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,
@@ -128,7 +128,7 @@ class V3 {
128
128
  const _response = yield core.fetcher({
129
129
  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/fee-schedules/v3/service-line/${encodeURIComponent(serializers.ServiceLineId.jsonOrThrow(serviceLineId))}/match/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}`),
130
130
  method: "GET",
131
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
131
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
132
132
  contentType: "application/json",
133
133
  requestType: "json",
134
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -266,7 +266,7 @@ class V3 {
266
266
  const _response = yield core.fetcher({
267
267
  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/fee-schedules/v3"),
268
268
  method: "GET",
269
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
269
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
270
270
  contentType: "application/json",
271
271
  queryParameters: _queryParams,
272
272
  requestType: "json",
@@ -392,7 +392,7 @@ class V3 {
392
392
  const _response = yield core.fetcher({
393
393
  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/fee-schedules/v3/unique-dimension-values"),
394
394
  method: "GET",
395
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
395
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
396
396
  contentType: "application/json",
397
397
  queryParameters: _queryParams,
398
398
  requestType: "json",
@@ -432,7 +432,7 @@ class V3 {
432
432
  const _response = yield core.fetcher({
433
433
  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/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/history`),
434
434
  method: "GET",
435
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
435
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
436
436
  contentType: "application/json",
437
437
  requestType: "json",
438
438
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -534,7 +534,7 @@ class V3 {
534
534
  const _response = yield core.fetcher({
535
535
  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/fee-schedules/v3"),
536
536
  method: "POST",
537
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
537
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
538
538
  contentType: "application/json",
539
539
  requestType: "json",
540
540
  body: serializers.feeSchedules.v3.FeeScheduleUploadRequest.jsonOrThrow(request, {
@@ -591,7 +591,7 @@ class V3 {
591
591
  const _response = yield core.fetcher({
592
592
  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/fee-schedules/v3/${encodeURIComponent(serializers.RateId.jsonOrThrow(rateId))}/${encodeURIComponent(version)}`),
593
593
  method: "DELETE",
594
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
594
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
595
595
  contentType: "application/json",
596
596
  requestType: "json",
597
597
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -639,7 +639,7 @@ class V3 {
639
639
  const _response = yield core.fetcher({
640
640
  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/fee-schedules/v3/payer-threshold/default"),
641
641
  method: "GET",
642
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
642
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
643
643
  contentType: "application/json",
644
644
  requestType: "json",
645
645
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -688,7 +688,7 @@ class V3 {
688
688
  const _response = yield core.fetcher({
689
689
  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/fee-schedules/v3/payer-threshold"),
690
690
  method: "GET",
691
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
691
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
692
692
  contentType: "application/json",
693
693
  queryParameters: _queryParams,
694
694
  requestType: "json",
@@ -731,7 +731,7 @@ class V3 {
731
731
  const _response = yield core.fetcher({
732
732
  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/fee-schedules/v3/payer-threshold/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
733
733
  method: "PUT",
734
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
734
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
735
735
  contentType: "application/json",
736
736
  requestType: "json",
737
737
  body: serializers.feeSchedules.v3.PayerThreshold.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -84,7 +84,7 @@ class V1 {
84
84
  const _response = yield core.fetcher({
85
85
  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/guarantors/v1/${encodeURIComponent(serializers.EncounterId.jsonOrThrow(encounterId))}`),
86
86
  method: "POST",
87
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
87
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
88
  contentType: "application/json",
89
89
  requestType: "json",
90
90
  body: serializers.guarantor.v1.GuarantorCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -139,7 +139,7 @@ class V1 {
139
139
  const _response = yield core.fetcher({
140
140
  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/guarantors/v1/${encodeURIComponent(serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId))}`),
141
141
  method: "GET",
142
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
142
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
143
143
  contentType: "application/json",
144
144
  requestType: "json",
145
145
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -179,7 +179,7 @@ class V1 {
179
179
  const _response = yield core.fetcher({
180
180
  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/guarantors/v1/${encodeURIComponent(serializers.guarantor.v1.GuarantorId.jsonOrThrow(guarantorId))}`),
181
181
  method: "PATCH",
182
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
182
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
183
  contentType: "application/json",
184
184
  requestType: "json",
185
185
  body: serializers.guarantor.v1.GuarantorUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface GuarantorOptional {
6
+ firstName?: string;
7
+ lastName?: string;
8
+ /** A unique identifier for the guarantor assigned by an external system. */
9
+ externalId?: string;
10
+ /** Date formatted as YYYY-MM-DD; eg: 2019-08-25. */
11
+ dateOfBirth?: string;
12
+ address?: CandidApi.StreetAddressShortZipOptional;
13
+ phoneNumbers?: CandidApi.PhoneNumberOptional[];
14
+ phoneConsent?: boolean;
15
+ email?: CandidApi.Email;
16
+ emailConsent?: boolean;
17
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -3,4 +3,5 @@ export * from "./GuarantorBase";
3
3
  export * from "./Guarantor";
4
4
  export * from "./GuarantorCreate";
5
5
  export * from "./GuarantorUpdate";
6
+ export * from "./GuarantorOptional";
6
7
  export * from "./EncounterHasExistingGuarantorErrorType";
@@ -19,4 +19,5 @@ __exportStar(require("./GuarantorBase"), exports);
19
19
  __exportStar(require("./Guarantor"), exports);
20
20
  __exportStar(require("./GuarantorCreate"), exports);
21
21
  __exportStar(require("./GuarantorUpdate"), exports);
22
+ __exportStar(require("./GuarantorOptional"), exports);
22
23
  __exportStar(require("./EncounterHasExistingGuarantorErrorType"), exports);
@@ -92,7 +92,7 @@ class V1 {
92
92
  const _response = yield core.fetcher({
93
93
  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/import-invoice/v1"),
94
94
  method: "POST",
95
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
96
96
  contentType: "application/json",
97
97
  requestType: "json",
98
98
  body: serializers.importInvoice.v1.CreateImportInvoiceRequest.jsonOrThrow(request, {
@@ -192,7 +192,7 @@ class V1 {
192
192
  const _response = yield core.fetcher({
193
193
  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/import-invoice/v1"),
194
194
  method: "GET",
195
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
195
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
196
196
  contentType: "application/json",
197
197
  queryParameters: _queryParams,
198
198
  requestType: "json",
@@ -232,7 +232,7 @@ class V1 {
232
232
  const _response = yield core.fetcher({
233
233
  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/import-invoice/v1/${encodeURIComponent(serializers.InvoiceId.jsonOrThrow(invoiceId))}`),
234
234
  method: "GET",
235
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
235
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
236
236
  contentType: "application/json",
237
237
  requestType: "json",
238
238
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -286,7 +286,7 @@ class V1 {
286
286
  const _response = yield core.fetcher({
287
287
  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/import-invoice/v1/${encodeURIComponent(serializers.InvoiceId.jsonOrThrow(invoiceId))}`),
288
288
  method: "PATCH",
289
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
289
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
290
290
  contentType: "application/json",
291
291
  requestType: "json",
292
292
  body: serializers.importInvoice.v1.ImportInvoiceUpdateRequest.jsonOrThrow(request, {
@@ -64,5 +64,7 @@ export * as serviceFacility from "./serviceFacility";
64
64
  export * from "./serviceFacility/types";
65
65
  export * as tags from "./tags";
66
66
  export * from "./tags/types";
67
+ export * as yesNoIndicator from "./yesNoIndicator";
68
+ export * from "./yesNoIndicator/types";
67
69
  export * as eligibility from "./eligibility";
68
70
  export * from "./diagnoses/client/requests";
@@ -37,7 +37,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
37
37
  };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.paymentAccountConfigs = exports.individual = exports.identifiers = exports.financials = exports.era = exports.eraCommons = exports.diagnoses = exports.commons = exports.claims = exports.preEncounter = exports.x12 = exports.writeOffs = exports.tasks = exports.superbills = exports.serviceLines = exports.remits = exports.remitDrafts = exports.payers = exports.payerPlanGroups = exports.patientRefunds = exports.patientPayments = exports.organizationProviders = exports.organizationServiceFacilities = exports.nonInsurancePayers = exports.nonInsurancePayerRefunds = exports.nonInsurancePayerPayments = exports.medicationDispense = exports.invoices = exports.insuranceRefunds = exports.insurancePayments = exports.insuranceCards = exports.insuranceAdjudications = exports.importInvoice = exports.guarantor = exports.feeSchedules = exports.externalPaymentAccountConfig = exports.exports = exports.expectedNetworkStatus = exports.encounters = exports.encounterProviders = exports.encounterAttachments = exports.customSchemas = exports.credentialing = exports.contracts = exports.clinicalTrials = exports.claimSubmission = exports.chargeCapture = exports.chargeCaptureBundles = exports.billingNotes = exports.auth = void 0;
40
- exports.eligibility = exports.tags = exports.serviceFacility = exports.pipelineCommons = void 0;
40
+ exports.eligibility = exports.yesNoIndicator = exports.tags = exports.serviceFacility = exports.pipelineCommons = void 0;
41
41
  exports.auth = __importStar(require("./auth"));
42
42
  exports.billingNotes = __importStar(require("./billingNotes"));
43
43
  exports.chargeCaptureBundles = __importStar(require("./chargeCaptureBundles"));
@@ -104,5 +104,7 @@ exports.serviceFacility = __importStar(require("./serviceFacility"));
104
104
  __exportStar(require("./serviceFacility/types"), exports);
105
105
  exports.tags = __importStar(require("./tags"));
106
106
  __exportStar(require("./tags/types"), exports);
107
+ exports.yesNoIndicator = __importStar(require("./yesNoIndicator"));
108
+ __exportStar(require("./yesNoIndicator/types"), exports);
107
109
  exports.eligibility = __importStar(require("./eligibility"));
108
110
  __exportStar(require("./diagnoses/client/requests"), exports);
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ export interface IndividualBaseOptional {
6
+ firstName?: string;
7
+ lastName?: string;
8
+ gender?: CandidApi.Gender;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ export interface PatientNonInsurancePayerInfoCreateOptional {
6
+ nonInsurancePayerId?: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId;
7
+ memberId?: string;
8
+ clinicalTrialInfo?: CandidApi.PatientClinicalTrialInfoCreate[];
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,12 +12,12 @@ export interface PatientUpdateWithOptionalAddress {
12
12
  dateOfBirth?: string;
13
13
  /** Box 5 on the CMS-1500 claim form. */
14
14
  address?: CandidApi.StreetAddressShortZipOptional;
15
- phoneNumbers?: CandidApi.PhoneNumber[];
15
+ phoneNumbers?: CandidApi.PhoneNumberOptional[];
16
16
  phoneConsent?: boolean;
17
17
  email?: CandidApi.Email;
18
18
  emailConsent?: boolean;
19
19
  /** On update, we will replace the existing list of non-insurance payers with the new list if populated. */
20
20
  nonInsurancePayers?: CandidApi.nonInsurancePayers.v1.NonInsurancePayerId[];
21
21
  /** On update, we will replace the existing list of non-insurance payers with the new list if populated. */
22
- nonInsurancePayersInfo?: CandidApi.PatientNonInsurancePayerInfoCreate[];
22
+ nonInsurancePayersInfo?: CandidApi.PatientNonInsurancePayerInfoCreateOptional[];
23
23
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ export interface SubscriberBaseOptional extends CandidApi.IndividualBaseOptional {
6
+ patientRelationshipToSubscriberCode?: CandidApi.PatientRelationshipToInsuredCodeAll;
7
+ dateOfBirth?: string;
8
+ address?: CandidApi.StreetAddressShortZipOptional;
9
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../index";
5
+ export interface SubscriberCreateOptional extends CandidApi.SubscriberBaseOptional {
6
+ insuranceCard?: CandidApi.insuranceCards.v2.InsuranceCardCreateOptional;
7
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +1,13 @@
1
1
  export * from "./IndividualId";
2
2
  export * from "./IndividualBase";
3
+ export * from "./IndividualBaseOptional";
3
4
  export * from "./SubscriberBase";
5
+ export * from "./SubscriberBaseOptional";
4
6
  export * from "./SubscriberCreate";
7
+ export * from "./SubscriberCreateOptional";
5
8
  export * from "./Subscriber";
6
9
  export * from "./PatientNonInsurancePayerInfoCreate";
10
+ export * from "./PatientNonInsurancePayerInfoCreateOptional";
7
11
  export * from "./PatientClinicalTrialInfoCreate";
8
12
  export * from "./PatientClinicalTrialInfo";
9
13
  export * from "./PatientNonInsurancePayerInfo";
@@ -16,10 +16,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./IndividualId"), exports);
18
18
  __exportStar(require("./IndividualBase"), exports);
19
+ __exportStar(require("./IndividualBaseOptional"), exports);
19
20
  __exportStar(require("./SubscriberBase"), exports);
21
+ __exportStar(require("./SubscriberBaseOptional"), exports);
20
22
  __exportStar(require("./SubscriberCreate"), exports);
23
+ __exportStar(require("./SubscriberCreateOptional"), exports);
21
24
  __exportStar(require("./Subscriber"), exports);
22
25
  __exportStar(require("./PatientNonInsurancePayerInfoCreate"), exports);
26
+ __exportStar(require("./PatientNonInsurancePayerInfoCreateOptional"), exports);
23
27
  __exportStar(require("./PatientClinicalTrialInfoCreate"), exports);
24
28
  __exportStar(require("./PatientClinicalTrialInfo"), exports);
25
29
  __exportStar(require("./PatientNonInsurancePayerInfo"), exports);
@@ -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).candidApi, `/api/insurance-adjudications/v1/${encodeURIComponent(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
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": "1.0.0", "User-Agent": "candidhealth/1.0.0", "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": "1.3.0", "User-Agent": "candidhealth/1.3.0", "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,
@@ -217,7 +217,7 @@ class V1 {
217
217
  const _response = yield core.fetcher({
218
218
  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/insurance-adjudications/v1"),
219
219
  method: "POST",
220
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
220
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
221
221
  contentType: "application/json",
222
222
  requestType: "json",
223
223
  body: serializers.insuranceAdjudications.v1.InsuranceAdjudicationCreate.jsonOrThrow(request, {
@@ -273,7 +273,7 @@ class V1 {
273
273
  const _response = yield core.fetcher({
274
274
  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/insurance-adjudications/v1/${encodeURIComponent(serializers.insuranceAdjudications.v1.InsuranceAdjudicationId.jsonOrThrow(insuranceAdjudicationId))}`),
275
275
  method: "DELETE",
276
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
276
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
277
277
  contentType: "application/json",
278
278
  requestType: "json",
279
279
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -8,6 +8,7 @@ export interface InsuranceAdjudicationCreate {
8
8
  postDate?: string;
9
9
  checkNumber?: string;
10
10
  checkDate: string;
11
+ checkAmountCents?: number;
11
12
  note?: string;
12
13
  claims: Record<CandidApi.ClaimId, CandidApi.insuranceAdjudications.v1.ClaimAdjudicationCreate[]>;
13
14
  remitDraftId?: CandidApi.remitDrafts.v1.RemitDraftId;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ export interface InsuranceCardCreateOptional extends CandidApi.insuranceCards.v2.InsuranceCardBase {
6
+ memberId?: string;
7
+ payerName?: string;
8
+ payerId?: string;
9
+ rxBin?: string;
10
+ rxPcn?: string;
11
+ imageUrlFront?: string;
12
+ imageUrlBack?: string;
13
+ emrPayerCrosswalk?: CandidApi.EmrPayerCrosswalk;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,5 @@
1
1
  export * from "./InsuranceCardId";
2
2
  export * from "./InsuranceCardBase";
3
3
  export * from "./InsuranceCardCreate";
4
+ export * from "./InsuranceCardCreateOptional";
4
5
  export * from "./InsuranceCard";
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./InsuranceCardId"), exports);
18
18
  __exportStar(require("./InsuranceCardBase"), exports);
19
19
  __exportStar(require("./InsuranceCardCreate"), exports);
20
+ __exportStar(require("./InsuranceCardCreateOptional"), exports);
20
21
  __exportStar(require("./InsuranceCard"), exports);
@@ -103,7 +103,7 @@ class V1 {
103
103
  const _response = yield core.fetcher({
104
104
  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/insurance-payments/v1"),
105
105
  method: "GET",
106
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
106
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
107
  contentType: "application/json",
108
108
  queryParameters: _queryParams,
109
109
  requestType: "json",
@@ -159,7 +159,7 @@ class V1 {
159
159
  const _response = yield core.fetcher({
160
160
  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/insurance-payments/v1/${encodeURIComponent(serializers.insurancePayments.v1.InsurancePaymentId.jsonOrThrow(insurancePaymentId))}`),
161
161
  method: "GET",
162
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
162
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
163
  contentType: "application/json",
164
164
  requestType: "json",
165
165
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -104,7 +104,7 @@ class V1 {
104
104
  const _response = yield core.fetcher({
105
105
  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/insurance-refunds/v1"),
106
106
  method: "GET",
107
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
107
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
108
108
  contentType: "application/json",
109
109
  queryParameters: _queryParams,
110
110
  requestType: "json",
@@ -160,7 +160,7 @@ class V1 {
160
160
  const _response = yield core.fetcher({
161
161
  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/insurance-refunds/v1/${encodeURIComponent(serializers.insuranceRefunds.v1.InsuranceRefundId.jsonOrThrow(insuranceRefundId))}`),
162
162
  method: "GET",
163
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -236,7 +236,7 @@ class V1 {
236
236
  const _response = yield core.fetcher({
237
237
  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/insurance-refunds/v1"),
238
238
  method: "POST",
239
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
239
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
240
240
  contentType: "application/json",
241
241
  requestType: "json",
242
242
  body: serializers.insuranceRefunds.v1.InsuranceRefundCreate.jsonOrThrow(request, {
@@ -296,7 +296,7 @@ class V1 {
296
296
  const _response = yield core.fetcher({
297
297
  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/insurance-refunds/v1/${encodeURIComponent(serializers.insuranceRefunds.v1.InsuranceRefundId.jsonOrThrow(insuranceRefundId))}`),
298
298
  method: "PATCH",
299
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
299
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
300
300
  contentType: "application/json",
301
301
  requestType: "json",
302
302
  body: serializers.insuranceRefunds.v1.InsuranceRefundUpdate.jsonOrThrow(request, {
@@ -356,7 +356,7 @@ class V1 {
356
356
  const _response = yield core.fetcher({
357
357
  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/insurance-refunds/v1/${encodeURIComponent(serializers.insuranceRefunds.v1.InsuranceRefundId.jsonOrThrow(insuranceRefundId))}`),
358
358
  method: "DELETE",
359
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
359
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
360
360
  contentType: "application/json",
361
361
  requestType: "json",
362
362
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -78,7 +78,7 @@ class V1 {
78
78
  const _response = yield core.fetcher({
79
79
  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/medication-dispense/v1"),
80
80
  method: "POST",
81
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
82
82
  contentType: "application/json",
83
83
  requestType: "json",
84
84
  body: serializers.medicationDispense.v1.MedicationDispenseCreate.jsonOrThrow(request, {
@@ -106,7 +106,7 @@ class V1 {
106
106
  const _response = yield core.fetcher({
107
107
  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/non-insurance-payer-payments/v1"),
108
108
  method: "GET",
109
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
109
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
110
110
  contentType: "application/json",
111
111
  queryParameters: _queryParams,
112
112
  requestType: "json",
@@ -160,7 +160,7 @@ class V1 {
160
160
  const _response = yield core.fetcher({
161
161
  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/non-insurance-payer-payments/v1/${encodeURIComponent(serializers.nonInsurancePayerPayments.v1.NonInsurancePayerPaymentId.jsonOrThrow(nonInsurancePayerPaymentId))}`),
162
162
  method: "GET",
163
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
164
164
  contentType: "application/json",
165
165
  requestType: "json",
166
166
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -227,7 +227,7 @@ class V1 {
227
227
  const _response = yield core.fetcher({
228
228
  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/non-insurance-payer-payments/v1"),
229
229
  method: "POST",
230
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
230
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
231
231
  contentType: "application/json",
232
232
  requestType: "json",
233
233
  body: serializers.nonInsurancePayerPayments.v1.NonInsurancePayerPaymentCreate.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).candidApi, `/api/non-insurance-payer-payments/v1/${encodeURIComponent(serializers.nonInsurancePayerPayments.v1.NonInsurancePayerPaymentId.jsonOrThrow(nonInsurancePayerPaymentId))}`),
285
285
  method: "PATCH",
286
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "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": "1.3.0", "User-Agent": "candidhealth/1.3.0", "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
  requestType: "json",
289
289
  body: serializers.nonInsurancePayerPayments.v1.UpdateNonInsurancePayerPaymentRequest.jsonOrThrow(request, {
@@ -340,7 +340,7 @@ class V1 {
340
340
  const _response = yield core.fetcher({
341
341
  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/non-insurance-payer-payments/v1/${encodeURIComponent(serializers.nonInsurancePayerPayments.v1.NonInsurancePayerPaymentId.jsonOrThrow(nonInsurancePayerPaymentId))}`),
342
342
  method: "DELETE",
343
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.0.0", "User-Agent": "candidhealth/1.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
343
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.3.0", "User-Agent": "candidhealth/1.3.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
344
344
  contentType: "application/json",
345
345
  requestType: "json",
346
346
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,