candidhealth 1.8.1 → 1.9.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 (1057) hide show
  1. package/Client.d.ts +5 -1
  2. package/Client.js +10 -4
  3. package/README.md +28 -3
  4. package/api/resources/auth/client/Client.d.ts +2 -10
  5. package/api/resources/auth/resources/default/client/Client.d.ts +7 -14
  6. package/api/resources/auth/resources/default/client/Client.js +39 -68
  7. package/api/resources/auth/resources/default/client/index.d.ts +1 -2
  8. package/api/resources/auth/resources/default/client/index.js +5 -6
  9. package/api/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  10. package/api/resources/billingNotes/client/Client.d.ts +2 -10
  11. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +13 -5
  12. package/api/resources/billingNotes/resources/v2/client/Client.js +100 -54
  13. package/api/resources/billingNotes/resources/v2/client/index.d.ts +1 -1
  14. package/api/resources/billingNotes/resources/v2/client/index.js +4 -4
  15. package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +2 -1
  16. package/api/resources/billingNotes/resources/v2/types/BillingNote.d.ts +1 -1
  17. package/api/resources/chargeCapture/client/Client.d.ts +2 -10
  18. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +17 -7
  19. package/api/resources/chargeCapture/resources/v1/client/Client.js +208 -116
  20. package/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  21. package/api/resources/chargeCapture/resources/v1/client/index.js +4 -4
  22. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +37 -111
  23. package/api/resources/chargeCaptureBundles/client/Client.d.ts +2 -10
  24. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +13 -5
  25. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +115 -65
  26. package/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -1
  27. package/api/resources/chargeCaptureBundles/resources/v1/client/index.js +4 -4
  28. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +21 -63
  29. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  30. package/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
  31. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +4 -4
  32. package/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +4 -4
  33. package/api/resources/claims/types/Claim.d.ts +5 -5
  34. package/api/resources/contracts/client/Client.d.ts +2 -10
  35. package/api/resources/contracts/resources/v2/client/Client.d.ts +30 -7
  36. package/api/resources/contracts/resources/v2/client/Client.js +179 -93
  37. package/api/resources/contracts/resources/v2/client/index.d.ts +1 -1
  38. package/api/resources/contracts/resources/v2/client/index.js +4 -4
  39. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +15 -1
  40. package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +5 -15
  41. package/api/resources/credentialing/client/Client.d.ts +2 -10
  42. package/api/resources/credentialing/resources/v2/client/Client.d.ts +25 -11
  43. package/api/resources/credentialing/resources/v2/client/Client.js +374 -211
  44. package/api/resources/credentialing/resources/v2/client/index.d.ts +1 -1
  45. package/api/resources/credentialing/resources/v2/client/index.js +4 -4
  46. package/api/resources/credentialing/resources/v2/client/requests/GetAllFacilityCredentialingSpansRequest.d.ts +4 -12
  47. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +5 -15
  48. package/api/resources/customSchemas/client/Client.d.ts +2 -10
  49. package/api/resources/customSchemas/resources/v1/client/Client.d.ts +13 -5
  50. package/api/resources/customSchemas/resources/v1/client/Client.js +154 -89
  51. package/api/resources/customSchemas/resources/v1/client/index.d.ts +1 -1
  52. package/api/resources/customSchemas/resources/v1/client/index.js +4 -4
  53. package/api/resources/diagnoses/client/Client.d.ts +13 -6
  54. package/api/resources/diagnoses/client/Client.js +101 -56
  55. package/api/resources/diagnoses/client/index.d.ts +1 -1
  56. package/api/resources/diagnoses/client/index.js +4 -4
  57. package/api/resources/diagnoses/types/Diagnosis.d.ts +2 -2
  58. package/api/resources/eligibility/client/Client.d.ts +2 -10
  59. package/api/resources/eligibility/resources/v2/client/Client.d.ts +11 -4
  60. package/api/resources/eligibility/resources/v2/client/Client.js +102 -52
  61. package/api/resources/encounterAttachments/client/Client.d.ts +2 -10
  62. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +11 -4
  63. package/api/resources/encounterAttachments/resources/v1/client/Client.js +74 -37
  64. package/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -1
  65. package/api/resources/encounterAttachments/resources/v1/client/index.js +4 -4
  66. package/api/resources/encounterProviders/client/Client.d.ts +2 -10
  67. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +29 -13
  68. package/api/resources/encounterProviders/resources/v2/client/Client.js +449 -238
  69. package/api/resources/encounters/client/Client.d.ts +2 -10
  70. package/api/resources/encounters/resources/v4/client/Client.d.ts +50 -135
  71. package/api/resources/encounters/resources/v4/client/Client.js +207 -390
  72. package/api/resources/encounters/resources/v4/client/index.d.ts +1 -4
  73. package/api/resources/encounters/resources/v4/client/index.js +5 -8
  74. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +14 -40
  75. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +1 -1
  76. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +12 -12
  77. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +12 -12
  78. package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +2 -3
  79. package/api/resources/encountersUniversal/types/index.d.ts +0 -3
  80. package/api/resources/encountersUniversal/types/index.js +0 -3
  81. package/api/resources/expectedNetworkStatus/client/Client.d.ts +2 -10
  82. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +7 -2
  83. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +27 -16
  84. package/api/resources/expectedNetworkStatus/resources/v1/client/index.d.ts +1 -1
  85. package/api/resources/expectedNetworkStatus/resources/v1/client/index.js +4 -4
  86. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +9 -3
  87. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +79 -46
  88. package/api/resources/exports/client/Client.d.ts +2 -10
  89. package/api/resources/exports/resources/v3/client/Client.d.ts +7 -2
  90. package/api/resources/exports/resources/v3/client/Client.js +39 -27
  91. package/api/resources/exports/resources/v3/client/index.d.ts +1 -1
  92. package/api/resources/exports/resources/v3/client/index.js +4 -4
  93. package/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +2 -2
  94. package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +2 -10
  95. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +7 -2
  96. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +28 -20
  97. package/api/resources/externalPaymentAccountConfig/resources/v1/client/index.d.ts +1 -1
  98. package/api/resources/externalPaymentAccountConfig/resources/v1/client/index.js +4 -4
  99. package/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -3
  100. package/api/resources/feeSchedules/client/Client.d.ts +2 -10
  101. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +29 -13
  102. package/api/resources/feeSchedules/resources/v3/client/Client.js +381 -211
  103. package/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -1
  104. package/api/resources/feeSchedules/resources/v3/client/index.js +4 -4
  105. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -3
  106. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +2 -6
  107. package/api/resources/guarantor/client/Client.d.ts +2 -10
  108. package/api/resources/guarantor/resources/v1/client/Client.d.ts +11 -4
  109. package/api/resources/guarantor/resources/v1/client/Client.js +91 -50
  110. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -1
  111. package/api/resources/healthCareCodeInformation/client/Client.d.ts +2 -10
  112. package/api/resources/healthCareCodeInformation/resources/v1/client/Client.d.ts +9 -3
  113. package/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +78 -47
  114. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +433 -40
  115. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  116. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +12 -1
  117. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -52
  118. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +14 -1
  119. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.d.ts +3 -0
  120. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformation.d.ts +6 -0
  121. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +24 -5
  122. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +5 -1
  123. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformation.d.ts +6 -0
  124. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformation.d.ts +6 -0
  125. package/api/resources/healthCareCodeInformation/resources/v1/types/Rd8Date.d.ts +12 -0
  126. package/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -16
  127. package/api/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -16
  128. package/api/resources/importInvoice/client/Client.d.ts +2 -10
  129. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +13 -5
  130. package/api/resources/importInvoice/resources/v1/client/Client.js +142 -82
  131. package/api/resources/importInvoice/resources/v1/client/index.d.ts +1 -1
  132. package/api/resources/importInvoice/resources/v1/client/index.js +4 -4
  133. package/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +7 -21
  134. package/api/resources/individual/types/Patient.d.ts +1 -1
  135. package/api/resources/insuranceAdjudications/client/Client.d.ts +2 -10
  136. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +11 -4
  137. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +86 -47
  138. package/api/resources/insurancePayments/client/Client.d.ts +2 -10
  139. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -3
  140. package/api/resources/insurancePayments/resources/v1/client/Client.js +78 -50
  141. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +1 -1
  142. package/api/resources/insurancePayments/resources/v1/client/index.js +4 -4
  143. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +3 -9
  144. package/api/resources/insuranceRefunds/client/Client.d.ts +2 -10
  145. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +15 -6
  146. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +188 -108
  147. package/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -1
  148. package/api/resources/insuranceRefunds/resources/v1/client/index.js +4 -4
  149. package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +3 -9
  150. package/api/resources/medicationDispense/client/Client.d.ts +2 -10
  151. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +7 -2
  152. package/api/resources/medicationDispense/resources/v1/client/Client.js +39 -24
  153. package/api/resources/nonInsurancePayerPayments/client/Client.d.ts +2 -10
  154. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +15 -6
  155. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +188 -108
  156. package/api/resources/nonInsurancePayerPayments/resources/v1/client/index.d.ts +1 -1
  157. package/api/resources/nonInsurancePayerPayments/resources/v1/client/index.js +4 -4
  158. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +3 -9
  159. package/api/resources/nonInsurancePayerRefunds/client/Client.d.ts +2 -10
  160. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +15 -6
  161. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +188 -108
  162. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.d.ts +1 -1
  163. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.js +4 -4
  164. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +3 -9
  165. package/api/resources/nonInsurancePayers/client/Client.d.ts +2 -10
  166. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +19 -8
  167. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +252 -143
  168. package/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -1
  169. package/api/resources/nonInsurancePayers/resources/v1/client/index.js +4 -4
  170. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +2 -6
  171. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +3 -9
  172. package/api/resources/organizationProviders/client/Client.d.ts +2 -10
  173. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +3 -1
  174. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  175. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +13 -5
  176. package/api/resources/organizationProviders/resources/v3/client/Client.js +142 -82
  177. package/api/resources/organizationProviders/resources/v3/client/index.d.ts +1 -1
  178. package/api/resources/organizationProviders/resources/v3/client/index.js +4 -4
  179. package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +8 -24
  180. package/api/resources/organizationServiceFacilities/client/Client.d.ts +2 -10
  181. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +28 -6
  182. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +261 -100
  183. package/api/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +28 -0
  184. package/api/resources/{auth/resources/default/client/getMachineTokenForOrgId.js → organizationServiceFacilities/resources/v2/client/getByExternalId.js} +12 -1
  185. package/api/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +2 -1
  186. package/api/resources/organizationServiceFacilities/resources/v2/client/index.js +6 -5
  187. package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +8 -12
  188. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +4 -0
  189. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +4 -0
  190. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +4 -0
  191. package/api/resources/patientAr/client/Client.d.ts +2 -10
  192. package/api/resources/patientAr/resources/v1/client/Client.d.ts +9 -3
  193. package/api/resources/patientAr/resources/v1/client/Client.js +78 -50
  194. package/api/resources/patientAr/resources/v1/client/index.d.ts +1 -1
  195. package/api/resources/patientAr/resources/v1/client/index.js +4 -4
  196. package/api/resources/patientAr/resources/v1/client/requests/GetInventoryRecordsRequest.d.ts +2 -6
  197. package/api/resources/patientPayments/client/Client.d.ts +2 -10
  198. package/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +1 -1
  199. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +15 -6
  200. package/api/resources/patientPayments/resources/v4/client/Client.js +188 -108
  201. package/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -1
  202. package/api/resources/patientPayments/resources/v4/client/index.js +4 -4
  203. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -12
  204. package/api/resources/patientRefunds/client/Client.d.ts +2 -10
  205. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +15 -6
  206. package/api/resources/patientRefunds/resources/v1/client/Client.js +188 -108
  207. package/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -1
  208. package/api/resources/patientRefunds/resources/v1/client/index.js +4 -4
  209. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -12
  210. package/api/resources/payerPlanGroups/client/Client.d.ts +2 -10
  211. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +15 -6
  212. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +192 -112
  213. package/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +1 -1
  214. package/api/resources/payerPlanGroups/resources/v1/client/index.js +4 -4
  215. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +3 -9
  216. package/api/resources/payers/client/Client.d.ts +2 -10
  217. package/api/resources/payers/resources/v3/client/Client.d.ts +9 -3
  218. package/api/resources/payers/resources/v3/client/Client.js +54 -34
  219. package/api/resources/payers/resources/v3/client/index.d.ts +1 -1
  220. package/api/resources/payers/resources/v3/client/index.js +4 -4
  221. package/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -3
  222. package/api/resources/payers/resources/v4/client/Client.d.ts +9 -3
  223. package/api/resources/payers/resources/v4/client/Client.js +54 -34
  224. package/api/resources/payers/resources/v4/client/index.d.ts +1 -1
  225. package/api/resources/payers/resources/v4/client/index.js +4 -4
  226. package/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +1 -3
  227. package/api/resources/payers/resources/v4/types/Payer.d.ts +2 -0
  228. package/api/resources/preEncounter/client/Client.d.ts +2 -10
  229. package/api/resources/preEncounter/resources/appointments/client/Client.d.ts +2 -10
  230. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +22 -11
  231. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +254 -147
  232. package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -1
  233. package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +4 -4
  234. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +1 -1
  235. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +2 -6
  236. package/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +11 -0
  237. package/api/resources/{encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js → preEncounter/resources/common/types/CanonicalServiceFacilityId.js} +4 -0
  238. package/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  239. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  240. package/api/resources/preEncounter/resources/common/types/index.js +1 -0
  241. package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +2 -10
  242. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -12
  243. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +296 -161
  244. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -1
  245. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +4 -4
  246. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -3
  247. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageScanRequest.d.ts +1 -1
  248. package/api/resources/preEncounter/resources/eligibilityChecks/client/Client.d.ts +2 -10
  249. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +17 -7
  250. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +160 -88
  251. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -1
  252. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +4 -4
  253. package/api/resources/preEncounter/resources/images/client/Client.d.ts +2 -10
  254. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -6
  255. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +175 -99
  256. package/api/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +1 -1
  257. package/api/resources/preEncounter/resources/images/resources/v1/client/index.js +4 -4
  258. package/api/resources/preEncounter/resources/lists/client/Client.d.ts +2 -10
  259. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +9 -3
  260. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +67 -44
  261. package/api/resources/preEncounter/resources/lists/resources/v1/client/index.d.ts +1 -1
  262. package/api/resources/preEncounter/resources/lists/resources/v1/client/index.js +4 -4
  263. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -9
  264. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -6
  265. package/api/resources/preEncounter/resources/notes/client/Client.d.ts +2 -10
  266. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +13 -5
  267. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +100 -51
  268. package/api/resources/preEncounter/resources/patients/client/Client.d.ts +2 -10
  269. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +32 -16
  270. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +404 -231
  271. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -1
  272. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +4 -4
  273. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +2 -2
  274. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -3
  275. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -1
  276. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -3
  277. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  278. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +10 -0
  279. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  280. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  281. package/api/resources/preEncounter/resources/tags/client/Client.d.ts +2 -10
  282. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +15 -6
  283. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +127 -67
  284. package/api/resources/preEncounter/resources/tags/resources/v1/client/index.d.ts +1 -1
  285. package/api/resources/preEncounter/resources/tags/resources/v1/client/index.js +4 -4
  286. package/api/resources/serviceFacility/client/Client.d.ts +7 -2
  287. package/api/resources/serviceFacility/client/Client.js +27 -16
  288. package/api/resources/serviceLines/client/Client.d.ts +2 -10
  289. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +17 -8
  290. package/api/resources/serviceLines/resources/v2/client/Client.js +188 -103
  291. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -5
  292. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +1 -1
  293. package/api/resources/serviceLines/resources/v2/types/index.d.ts +0 -1
  294. package/api/resources/serviceLines/resources/v2/types/index.js +0 -1
  295. package/api/resources/superbills/client/Client.d.ts +2 -10
  296. package/api/resources/superbills/resources/v1/client/Client.d.ts +7 -2
  297. package/api/resources/superbills/resources/v1/client/Client.js +39 -24
  298. package/api/resources/superbills/resources/v1/client/index.d.ts +1 -1
  299. package/api/resources/superbills/resources/v1/client/index.js +4 -4
  300. package/api/resources/tasks/client/Client.d.ts +2 -10
  301. package/api/resources/tasks/resources/v3/client/Client.d.ts +15 -6
  302. package/api/resources/tasks/resources/v3/client/Client.js +168 -96
  303. package/api/resources/tasks/resources/v3/client/index.d.ts +1 -1
  304. package/api/resources/tasks/resources/v3/client/index.js +4 -4
  305. package/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +10 -30
  306. package/api/resources/writeOffs/client/Client.d.ts +2 -10
  307. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +19 -9
  308. package/api/resources/writeOffs/resources/v1/client/Client.js +160 -90
  309. package/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -1
  310. package/api/resources/writeOffs/resources/v1/client/index.js +4 -4
  311. package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +2 -2
  312. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +4 -12
  313. package/api/resources/x12/resources/v1/types/index.d.ts +0 -1
  314. package/api/resources/x12/resources/v1/types/index.js +0 -1
  315. package/core/auth/AuthProvider.d.ts +4 -0
  316. package/core/auth/AuthProvider.js +2 -0
  317. package/core/auth/AuthRequest.d.ts +9 -0
  318. package/core/auth/AuthRequest.js +2 -0
  319. package/core/auth/BasicAuth.js +3 -3
  320. package/core/base64.d.ts +2 -0
  321. package/core/base64.js +26 -0
  322. package/core/fetcher/APIResponse.d.ts +10 -0
  323. package/core/fetcher/BinaryResponse.d.ts +20 -0
  324. package/core/fetcher/BinaryResponse.js +17 -0
  325. package/core/fetcher/Fetcher.d.ts +4 -3
  326. package/core/fetcher/Fetcher.js +32 -12
  327. package/core/fetcher/Headers.d.ts +2 -0
  328. package/core/fetcher/Headers.js +84 -0
  329. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  330. package/core/fetcher/HttpResponsePromise.js +103 -0
  331. package/core/fetcher/RawResponse.d.ts +29 -0
  332. package/core/fetcher/RawResponse.js +44 -0
  333. package/core/fetcher/ResponseWithBody.d.ts +4 -0
  334. package/core/fetcher/ResponseWithBody.js +6 -0
  335. package/core/fetcher/createRequestUrl.d.ts +1 -1
  336. package/core/fetcher/createRequestUrl.js +3 -7
  337. package/core/fetcher/getErrorResponseBody.d.ts +1 -0
  338. package/core/fetcher/getErrorResponseBody.js +44 -0
  339. package/core/fetcher/getFetchFn.js +3 -3
  340. package/core/fetcher/getResponseBody.js +34 -32
  341. package/core/fetcher/index.d.ts +5 -1
  342. package/core/fetcher/index.js +7 -1
  343. package/core/fetcher/requestWithRetries.js +44 -8
  344. package/core/form-data-utils/FormDataWrapper.d.ts +4 -0
  345. package/core/form-data-utils/FormDataWrapper.js +58 -13
  346. package/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  347. package/core/form-data-utils/encodeAsFormParameter.js +12 -0
  348. package/core/form-data-utils/index.d.ts +1 -0
  349. package/core/form-data-utils/index.js +3 -0
  350. package/core/headers.d.ts +3 -0
  351. package/core/headers.js +29 -0
  352. package/core/index.d.ts +2 -0
  353. package/core/index.js +3 -1
  354. package/core/runtime/runtime.js +0 -1
  355. package/core/schemas/builders/lazy/index.d.ts +1 -1
  356. package/core/schemas/builders/literals/index.d.ts +1 -1
  357. package/core/schemas/builders/literals/index.js +3 -3
  358. package/core/schemas/builders/object/index.d.ts +2 -2
  359. package/core/schemas/builders/object/object.d.ts +1 -1
  360. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +1 -1
  361. package/core/schemas/builders/object/types.d.ts +1 -1
  362. package/core/schemas/builders/schema-utils/index.d.ts +1 -1
  363. package/core/schemas/builders/undiscriminated-union/types.d.ts +1 -1
  364. package/core/schemas/builders/union/index.d.ts +1 -1
  365. package/core/schemas/builders/union/types.d.ts +1 -1
  366. package/core/schemas/builders/union/union.d.ts +1 -1
  367. package/core/schemas/utils/maybeSkipValidation.js +1 -1
  368. package/core/url/index.d.ts +2 -0
  369. package/core/url/index.js +7 -0
  370. package/core/url/join.d.ts +1 -0
  371. package/core/url/join.js +69 -0
  372. package/core/url/qs.d.ts +6 -0
  373. package/core/url/qs.js +64 -0
  374. package/dist/Client.d.ts +5 -1
  375. package/dist/Client.js +10 -4
  376. package/dist/api/resources/auth/client/Client.d.ts +2 -10
  377. package/dist/api/resources/auth/resources/default/client/Client.d.ts +7 -14
  378. package/dist/api/resources/auth/resources/default/client/Client.js +39 -68
  379. package/dist/api/resources/auth/resources/default/client/index.d.ts +1 -2
  380. package/dist/api/resources/auth/resources/default/client/index.js +5 -6
  381. package/dist/api/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  382. package/dist/api/resources/billingNotes/client/Client.d.ts +2 -10
  383. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +13 -5
  384. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +100 -54
  385. package/dist/api/resources/billingNotes/resources/v2/client/index.d.ts +1 -1
  386. package/dist/api/resources/billingNotes/resources/v2/client/index.js +4 -4
  387. package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +2 -1
  388. package/dist/api/resources/billingNotes/resources/v2/types/BillingNote.d.ts +1 -1
  389. package/dist/api/resources/chargeCapture/client/Client.d.ts +2 -10
  390. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +17 -7
  391. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +208 -116
  392. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  393. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +4 -4
  394. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +37 -111
  395. package/dist/api/resources/chargeCaptureBundles/client/Client.d.ts +2 -10
  396. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +13 -5
  397. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +115 -65
  398. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -1
  399. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +4 -4
  400. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +21 -63
  401. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  402. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
  403. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +4 -4
  404. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +4 -4
  405. package/dist/api/resources/claims/types/Claim.d.ts +5 -5
  406. package/dist/api/resources/contracts/client/Client.d.ts +2 -10
  407. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +30 -7
  408. package/dist/api/resources/contracts/resources/v2/client/Client.js +179 -93
  409. package/dist/api/resources/contracts/resources/v2/client/index.d.ts +1 -1
  410. package/dist/api/resources/contracts/resources/v2/client/index.js +4 -4
  411. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +15 -1
  412. package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +5 -15
  413. package/dist/api/resources/credentialing/client/Client.d.ts +2 -10
  414. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +25 -11
  415. package/dist/api/resources/credentialing/resources/v2/client/Client.js +374 -211
  416. package/dist/api/resources/credentialing/resources/v2/client/index.d.ts +1 -1
  417. package/dist/api/resources/credentialing/resources/v2/client/index.js +4 -4
  418. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllFacilityCredentialingSpansRequest.d.ts +4 -12
  419. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +5 -15
  420. package/dist/api/resources/customSchemas/client/Client.d.ts +2 -10
  421. package/dist/api/resources/customSchemas/resources/v1/client/Client.d.ts +13 -5
  422. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +154 -89
  423. package/dist/api/resources/customSchemas/resources/v1/client/index.d.ts +1 -1
  424. package/dist/api/resources/customSchemas/resources/v1/client/index.js +4 -4
  425. package/dist/api/resources/diagnoses/client/Client.d.ts +13 -6
  426. package/dist/api/resources/diagnoses/client/Client.js +101 -56
  427. package/dist/api/resources/diagnoses/client/index.d.ts +1 -1
  428. package/dist/api/resources/diagnoses/client/index.js +4 -4
  429. package/dist/api/resources/diagnoses/types/Diagnosis.d.ts +2 -2
  430. package/dist/api/resources/eligibility/client/Client.d.ts +2 -10
  431. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +11 -4
  432. package/dist/api/resources/eligibility/resources/v2/client/Client.js +102 -52
  433. package/dist/api/resources/encounterAttachments/client/Client.d.ts +2 -10
  434. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +11 -4
  435. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +74 -37
  436. package/dist/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -1
  437. package/dist/api/resources/encounterAttachments/resources/v1/client/index.js +4 -4
  438. package/dist/api/resources/encounterProviders/client/Client.d.ts +2 -10
  439. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +29 -13
  440. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +449 -238
  441. package/dist/api/resources/encounters/client/Client.d.ts +2 -10
  442. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +50 -135
  443. package/dist/api/resources/encounters/resources/v4/client/Client.js +207 -390
  444. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +1 -4
  445. package/dist/api/resources/encounters/resources/v4/client/index.js +5 -8
  446. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +14 -40
  447. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +1 -1
  448. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +12 -12
  449. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +12 -12
  450. package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +2 -3
  451. package/dist/api/resources/encountersUniversal/types/index.d.ts +0 -3
  452. package/dist/api/resources/encountersUniversal/types/index.js +0 -3
  453. package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +2 -10
  454. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +7 -2
  455. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +27 -16
  456. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/index.d.ts +1 -1
  457. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/index.js +4 -4
  458. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +9 -3
  459. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +79 -46
  460. package/dist/api/resources/exports/client/Client.d.ts +2 -10
  461. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +7 -2
  462. package/dist/api/resources/exports/resources/v3/client/Client.js +39 -27
  463. package/dist/api/resources/exports/resources/v3/client/index.d.ts +1 -1
  464. package/dist/api/resources/exports/resources/v3/client/index.js +4 -4
  465. package/dist/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +2 -2
  466. package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +2 -10
  467. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +7 -2
  468. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +28 -20
  469. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/index.d.ts +1 -1
  470. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/index.js +4 -4
  471. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -3
  472. package/dist/api/resources/feeSchedules/client/Client.d.ts +2 -10
  473. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +29 -13
  474. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +381 -211
  475. package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +1 -1
  476. package/dist/api/resources/feeSchedules/resources/v3/client/index.js +4 -4
  477. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -3
  478. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +2 -6
  479. package/dist/api/resources/guarantor/client/Client.d.ts +2 -10
  480. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +11 -4
  481. package/dist/api/resources/guarantor/resources/v1/client/Client.js +91 -50
  482. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -1
  483. package/dist/api/resources/healthCareCodeInformation/client/Client.d.ts +2 -10
  484. package/dist/api/resources/healthCareCodeInformation/resources/v1/client/Client.d.ts +9 -3
  485. package/dist/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +78 -47
  486. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +433 -40
  487. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  488. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +12 -1
  489. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -52
  490. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +14 -1
  491. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.d.ts +3 -0
  492. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformation.d.ts +6 -0
  493. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +24 -5
  494. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +5 -1
  495. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformation.d.ts +6 -0
  496. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformation.d.ts +6 -0
  497. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/Rd8Date.d.ts +12 -0
  498. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -16
  499. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -16
  500. package/dist/api/resources/importInvoice/client/Client.d.ts +2 -10
  501. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +13 -5
  502. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +142 -82
  503. package/dist/api/resources/importInvoice/resources/v1/client/index.d.ts +1 -1
  504. package/dist/api/resources/importInvoice/resources/v1/client/index.js +4 -4
  505. package/dist/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +7 -21
  506. package/dist/api/resources/individual/types/Patient.d.ts +1 -1
  507. package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +2 -10
  508. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +11 -4
  509. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +86 -47
  510. package/dist/api/resources/insurancePayments/client/Client.d.ts +2 -10
  511. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -3
  512. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +78 -50
  513. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +1 -1
  514. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +4 -4
  515. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +3 -9
  516. package/dist/api/resources/insuranceRefunds/client/Client.d.ts +2 -10
  517. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +15 -6
  518. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +188 -108
  519. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -1
  520. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +4 -4
  521. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +3 -9
  522. package/dist/api/resources/medicationDispense/client/Client.d.ts +2 -10
  523. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +7 -2
  524. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +39 -24
  525. package/dist/api/resources/nonInsurancePayerPayments/client/Client.d.ts +2 -10
  526. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +15 -6
  527. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +188 -108
  528. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/index.d.ts +1 -1
  529. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/index.js +4 -4
  530. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +3 -9
  531. package/dist/api/resources/nonInsurancePayerRefunds/client/Client.d.ts +2 -10
  532. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +15 -6
  533. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +188 -108
  534. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.d.ts +1 -1
  535. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.js +4 -4
  536. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +3 -9
  537. package/dist/api/resources/nonInsurancePayers/client/Client.d.ts +2 -10
  538. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +19 -8
  539. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +252 -143
  540. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -1
  541. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.js +4 -4
  542. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +2 -6
  543. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +3 -9
  544. package/dist/api/resources/organizationProviders/client/Client.d.ts +2 -10
  545. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +3 -1
  546. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  547. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +13 -5
  548. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +142 -82
  549. package/dist/api/resources/organizationProviders/resources/v3/client/index.d.ts +1 -1
  550. package/dist/api/resources/organizationProviders/resources/v3/client/index.js +4 -4
  551. package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +8 -24
  552. package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +2 -10
  553. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +28 -6
  554. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +261 -100
  555. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +28 -0
  556. package/dist/api/resources/{auth/resources/default/client/getMachineTokenForOrgId.js → organizationServiceFacilities/resources/v2/client/getByExternalId.js} +12 -1
  557. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +2 -1
  558. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/index.js +6 -5
  559. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +8 -12
  560. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +4 -0
  561. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +4 -0
  562. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +4 -0
  563. package/dist/api/resources/patientAr/client/Client.d.ts +2 -10
  564. package/dist/api/resources/patientAr/resources/v1/client/Client.d.ts +9 -3
  565. package/dist/api/resources/patientAr/resources/v1/client/Client.js +78 -50
  566. package/dist/api/resources/patientAr/resources/v1/client/index.d.ts +1 -1
  567. package/dist/api/resources/patientAr/resources/v1/client/index.js +4 -4
  568. package/dist/api/resources/patientAr/resources/v1/client/requests/GetInventoryRecordsRequest.d.ts +2 -6
  569. package/dist/api/resources/patientPayments/client/Client.d.ts +2 -10
  570. package/dist/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +1 -1
  571. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +15 -6
  572. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +188 -108
  573. package/dist/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -1
  574. package/dist/api/resources/patientPayments/resources/v4/client/index.js +4 -4
  575. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -12
  576. package/dist/api/resources/patientRefunds/client/Client.d.ts +2 -10
  577. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +15 -6
  578. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +188 -108
  579. package/dist/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -1
  580. package/dist/api/resources/patientRefunds/resources/v1/client/index.js +4 -4
  581. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -12
  582. package/dist/api/resources/payerPlanGroups/client/Client.d.ts +2 -10
  583. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +15 -6
  584. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +192 -112
  585. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +1 -1
  586. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.js +4 -4
  587. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +3 -9
  588. package/dist/api/resources/payers/client/Client.d.ts +2 -10
  589. package/dist/api/resources/payers/resources/v3/client/Client.d.ts +9 -3
  590. package/dist/api/resources/payers/resources/v3/client/Client.js +54 -34
  591. package/dist/api/resources/payers/resources/v3/client/index.d.ts +1 -1
  592. package/dist/api/resources/payers/resources/v3/client/index.js +4 -4
  593. package/dist/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -3
  594. package/dist/api/resources/payers/resources/v4/client/Client.d.ts +9 -3
  595. package/dist/api/resources/payers/resources/v4/client/Client.js +54 -34
  596. package/dist/api/resources/payers/resources/v4/client/index.d.ts +1 -1
  597. package/dist/api/resources/payers/resources/v4/client/index.js +4 -4
  598. package/dist/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +1 -3
  599. package/dist/api/resources/payers/resources/v4/types/Payer.d.ts +2 -0
  600. package/dist/api/resources/preEncounter/client/Client.d.ts +2 -10
  601. package/dist/api/resources/preEncounter/resources/appointments/client/Client.d.ts +2 -10
  602. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +22 -11
  603. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +254 -147
  604. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -1
  605. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +4 -4
  606. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +1 -1
  607. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +2 -6
  608. package/dist/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +11 -0
  609. package/{api/resources/encountersUniversal/types/UniversalEncounterUpdate.js → dist/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.js} +4 -0
  610. package/dist/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  611. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  612. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
  613. package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +2 -10
  614. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -12
  615. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +296 -161
  616. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -1
  617. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +4 -4
  618. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -3
  619. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageScanRequest.d.ts +1 -1
  620. package/dist/api/resources/preEncounter/resources/eligibilityChecks/client/Client.d.ts +2 -10
  621. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +17 -7
  622. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +160 -88
  623. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -1
  624. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +4 -4
  625. package/dist/api/resources/preEncounter/resources/images/client/Client.d.ts +2 -10
  626. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -6
  627. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +175 -99
  628. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +1 -1
  629. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/index.js +4 -4
  630. package/dist/api/resources/preEncounter/resources/lists/client/Client.d.ts +2 -10
  631. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +9 -3
  632. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +67 -44
  633. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/index.d.ts +1 -1
  634. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/index.js +4 -4
  635. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -9
  636. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -6
  637. package/dist/api/resources/preEncounter/resources/notes/client/Client.d.ts +2 -10
  638. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +13 -5
  639. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +100 -51
  640. package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +2 -10
  641. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +32 -16
  642. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +404 -231
  643. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -1
  644. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +4 -4
  645. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +2 -2
  646. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -3
  647. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -1
  648. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -3
  649. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  650. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +10 -0
  651. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  652. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  653. package/dist/api/resources/preEncounter/resources/tags/client/Client.d.ts +2 -10
  654. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +15 -6
  655. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +127 -67
  656. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/index.d.ts +1 -1
  657. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/index.js +4 -4
  658. package/dist/api/resources/serviceFacility/client/Client.d.ts +7 -2
  659. package/dist/api/resources/serviceFacility/client/Client.js +27 -16
  660. package/dist/api/resources/serviceLines/client/Client.d.ts +2 -10
  661. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +17 -8
  662. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +188 -103
  663. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +5 -5
  664. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +1 -1
  665. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +0 -1
  666. package/dist/api/resources/serviceLines/resources/v2/types/index.js +0 -1
  667. package/dist/api/resources/superbills/client/Client.d.ts +2 -10
  668. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +7 -2
  669. package/dist/api/resources/superbills/resources/v1/client/Client.js +39 -24
  670. package/dist/api/resources/superbills/resources/v1/client/index.d.ts +1 -1
  671. package/dist/api/resources/superbills/resources/v1/client/index.js +4 -4
  672. package/dist/api/resources/tasks/client/Client.d.ts +2 -10
  673. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +15 -6
  674. package/dist/api/resources/tasks/resources/v3/client/Client.js +168 -96
  675. package/dist/api/resources/tasks/resources/v3/client/index.d.ts +1 -1
  676. package/dist/api/resources/tasks/resources/v3/client/index.js +4 -4
  677. package/dist/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +10 -30
  678. package/dist/api/resources/writeOffs/client/Client.d.ts +2 -10
  679. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +19 -9
  680. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +160 -90
  681. package/dist/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -1
  682. package/dist/api/resources/writeOffs/resources/v1/client/index.js +4 -4
  683. package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +2 -2
  684. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +4 -12
  685. package/dist/api/resources/x12/resources/v1/types/index.d.ts +0 -1
  686. package/dist/api/resources/x12/resources/v1/types/index.js +0 -1
  687. package/dist/core/auth/AuthProvider.d.ts +4 -0
  688. package/dist/core/auth/AuthProvider.js +2 -0
  689. package/dist/core/auth/AuthRequest.d.ts +9 -0
  690. package/dist/core/auth/AuthRequest.js +2 -0
  691. package/dist/core/auth/BasicAuth.js +3 -3
  692. package/dist/core/base64.d.ts +2 -0
  693. package/dist/core/base64.js +26 -0
  694. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  695. package/dist/core/fetcher/BinaryResponse.d.ts +20 -0
  696. package/dist/core/fetcher/BinaryResponse.js +17 -0
  697. package/dist/core/fetcher/Fetcher.d.ts +4 -3
  698. package/dist/core/fetcher/Fetcher.js +32 -12
  699. package/dist/core/fetcher/Headers.d.ts +2 -0
  700. package/dist/core/fetcher/Headers.js +84 -0
  701. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  702. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  703. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  704. package/dist/core/fetcher/RawResponse.js +44 -0
  705. package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
  706. package/dist/core/fetcher/ResponseWithBody.js +6 -0
  707. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  708. package/dist/core/fetcher/createRequestUrl.js +3 -7
  709. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  710. package/dist/core/fetcher/getErrorResponseBody.js +44 -0
  711. package/dist/core/fetcher/getFetchFn.js +3 -3
  712. package/dist/core/fetcher/getResponseBody.js +34 -32
  713. package/dist/core/fetcher/index.d.ts +5 -1
  714. package/dist/core/fetcher/index.js +7 -1
  715. package/dist/core/fetcher/requestWithRetries.js +44 -8
  716. package/dist/core/form-data-utils/FormDataWrapper.d.ts +4 -0
  717. package/dist/core/form-data-utils/FormDataWrapper.js +58 -13
  718. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  719. package/dist/core/form-data-utils/encodeAsFormParameter.js +12 -0
  720. package/dist/core/form-data-utils/index.d.ts +1 -0
  721. package/dist/core/form-data-utils/index.js +3 -0
  722. package/dist/core/headers.d.ts +3 -0
  723. package/dist/core/headers.js +29 -0
  724. package/dist/core/index.d.ts +2 -0
  725. package/dist/core/index.js +3 -1
  726. package/dist/core/runtime/runtime.js +0 -1
  727. package/dist/core/schemas/builders/lazy/index.d.ts +1 -1
  728. package/dist/core/schemas/builders/literals/index.d.ts +1 -1
  729. package/dist/core/schemas/builders/literals/index.js +3 -3
  730. package/dist/core/schemas/builders/object/index.d.ts +2 -2
  731. package/dist/core/schemas/builders/object/object.d.ts +1 -1
  732. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +1 -1
  733. package/dist/core/schemas/builders/object/types.d.ts +1 -1
  734. package/dist/core/schemas/builders/schema-utils/index.d.ts +1 -1
  735. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +1 -1
  736. package/dist/core/schemas/builders/union/index.d.ts +1 -1
  737. package/dist/core/schemas/builders/union/types.d.ts +1 -1
  738. package/dist/core/schemas/builders/union/union.d.ts +1 -1
  739. package/dist/core/schemas/utils/maybeSkipValidation.js +1 -1
  740. package/dist/core/url/index.d.ts +2 -0
  741. package/dist/core/url/index.js +7 -0
  742. package/dist/core/url/join.d.ts +1 -0
  743. package/dist/core/url/join.js +69 -0
  744. package/dist/core/url/qs.d.ts +6 -0
  745. package/dist/core/url/qs.js +64 -0
  746. package/dist/errors/CandidApiError.d.ts +4 -1
  747. package/dist/errors/CandidApiError.js +4 -7
  748. package/dist/index.d.ts +2 -2
  749. package/dist/index.js +5 -5
  750. package/dist/serialization/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  751. package/dist/serialization/resources/auth/resources/default/client/requests/index.js +1 -3
  752. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -3
  753. package/dist/serialization/resources/encounters/resources/v4/client/index.js +1 -4
  754. package/dist/serialization/resources/encountersUniversal/types/index.d.ts +0 -3
  755. package/dist/serialization/resources/encountersUniversal/types/index.js +0 -3
  756. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -1
  757. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -1
  758. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +1 -1
  759. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  760. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +2 -2
  761. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.js +2 -2
  762. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -12
  763. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.js +1 -14
  764. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +2 -2
  765. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.js +2 -2
  766. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +1 -1
  767. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +19 -1
  768. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -16
  769. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -16
  770. package/dist/serialization/resources/individual/types/Patient.d.ts +1 -1
  771. package/dist/serialization/resources/individual/types/Patient.js +1 -1
  772. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  773. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  774. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +15 -0
  775. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.js +71 -0
  776. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +1 -0
  777. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/index.js +2 -1
  778. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +3 -0
  779. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +3 -0
  780. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +3 -0
  781. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +3 -0
  782. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +3 -0
  783. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +3 -0
  784. package/dist/serialization/resources/payers/resources/v4/types/Payer.d.ts +1 -0
  785. package/dist/serialization/resources/payers/resources/v4/types/Payer.js +1 -0
  786. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +10 -0
  787. package/dist/serialization/resources/{x12/resources/v1/types/TypeOfBillCompositeUpdate.js → preEncounter/resources/common/types/CanonicalServiceFacilityId.js} +4 -11
  788. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  789. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  790. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  791. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  792. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +13 -0
  793. package/{serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js} +5 -7
  794. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  795. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  796. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +0 -1
  797. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +0 -1
  798. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +0 -1
  799. package/dist/serialization/resources/x12/resources/v1/types/index.js +0 -1
  800. package/dist/version.d.ts +1 -1
  801. package/dist/version.js +1 -1
  802. package/errors/CandidApiError.d.ts +4 -1
  803. package/errors/CandidApiError.js +4 -7
  804. package/index.d.ts +2 -2
  805. package/index.js +5 -5
  806. package/jest.config.mjs +37 -3
  807. package/package.json +18 -12
  808. package/reference.md +125 -335
  809. package/scripts/rename-to-esm-files.js +10 -2
  810. package/serialization/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  811. package/serialization/resources/auth/resources/default/client/requests/index.js +1 -3
  812. package/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -3
  813. package/serialization/resources/encounters/resources/v4/client/index.js +1 -4
  814. package/serialization/resources/encountersUniversal/types/index.d.ts +0 -3
  815. package/serialization/resources/encountersUniversal/types/index.js +0 -3
  816. package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -1
  817. package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -1
  818. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +1 -1
  819. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  820. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +2 -2
  821. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.js +2 -2
  822. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -12
  823. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.js +1 -14
  824. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +2 -2
  825. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.js +2 -2
  826. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +1 -1
  827. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +19 -1
  828. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -16
  829. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -16
  830. package/serialization/resources/individual/types/Patient.d.ts +1 -1
  831. package/serialization/resources/individual/types/Patient.js +1 -1
  832. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  833. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +2 -0
  834. package/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +15 -0
  835. package/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.js +71 -0
  836. package/serialization/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +1 -0
  837. package/serialization/resources/organizationServiceFacilities/resources/v2/client/index.js +2 -1
  838. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +3 -0
  839. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +3 -0
  840. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +3 -0
  841. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +3 -0
  842. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +3 -0
  843. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +3 -0
  844. package/serialization/resources/payers/resources/v4/types/Payer.d.ts +1 -0
  845. package/serialization/resources/payers/resources/v4/types/Payer.js +1 -0
  846. package/serialization/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +10 -0
  847. package/serialization/resources/{x12/resources/v1/types/TypeOfBillCompositeUpdate.js → preEncounter/resources/common/types/CanonicalServiceFacilityId.js} +4 -11
  848. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  849. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  850. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +2 -0
  851. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +2 -0
  852. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +13 -0
  853. package/{dist/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js} +5 -7
  854. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +1 -0
  855. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +1 -0
  856. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +0 -1
  857. package/serialization/resources/serviceLines/resources/v2/types/index.js +0 -1
  858. package/serialization/resources/x12/resources/v1/types/index.d.ts +0 -1
  859. package/serialization/resources/x12/resources/v1/types/index.js +0 -1
  860. package/version.d.ts +1 -1
  861. package/version.js +1 -1
  862. package/api/resources/auth/resources/default/client/getMachineTokenForOrgId.d.ts +0 -22
  863. package/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -21
  864. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +0 -70
  865. package/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +0 -145
  866. package/api/resources/encounters/resources/v4/client/createUniversal.d.ts +0 -94
  867. package/api/resources/encounters/resources/v4/client/createUniversal.js +0 -189
  868. package/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +0 -70
  869. package/api/resources/encounters/resources/v4/client/updateUniversal.js +0 -145
  870. package/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +0 -49
  871. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +0 -47
  872. package/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +0 -39
  873. package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +0 -11
  874. package/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +0 -5
  875. package/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -4230
  876. package/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1064
  877. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +0 -11
  878. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +0 -5
  879. package/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -174
  880. package/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -50
  881. package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +0 -11
  882. package/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +0 -5
  883. package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +0 -12
  884. package/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +0 -5
  885. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +0 -19
  886. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +0 -5
  887. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +0 -12
  888. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +0 -5
  889. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +0 -12
  890. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +0 -5
  891. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +0 -12
  892. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +0 -5
  893. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +0 -12
  894. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +0 -5
  895. package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +0 -11
  896. package/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +0 -5
  897. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +0 -12
  898. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +0 -5
  899. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +0 -12
  900. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +0 -5
  901. package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +0 -11
  902. package/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +0 -5
  903. package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +0 -12
  904. package/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +0 -5
  905. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +0 -11
  906. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +0 -5
  907. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +0 -30
  908. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +0 -5
  909. package/dist/api/resources/auth/resources/default/client/getMachineTokenForOrgId.d.ts +0 -22
  910. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -21
  911. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js +0 -5
  912. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +0 -70
  913. package/dist/api/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +0 -145
  914. package/dist/api/resources/encounters/resources/v4/client/createUniversal.d.ts +0 -94
  915. package/dist/api/resources/encounters/resources/v4/client/createUniversal.js +0 -189
  916. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.d.ts +0 -70
  917. package/dist/api/resources/encounters/resources/v4/client/updateUniversal.js +0 -145
  918. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +0 -49
  919. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreate.js +0 -5
  920. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +0 -47
  921. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +0 -5
  922. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +0 -39
  923. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdate.js +0 -5
  924. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +0 -11
  925. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +0 -5
  926. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -4230
  927. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1064
  928. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +0 -11
  929. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +0 -5
  930. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -174
  931. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -50
  932. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +0 -11
  933. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +0 -5
  934. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +0 -12
  935. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +0 -5
  936. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +0 -19
  937. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +0 -5
  938. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +0 -12
  939. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +0 -5
  940. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +0 -12
  941. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +0 -5
  942. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +0 -12
  943. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +0 -5
  944. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +0 -12
  945. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +0 -5
  946. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +0 -11
  947. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +0 -5
  948. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +0 -12
  949. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +0 -5
  950. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +0 -12
  951. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +0 -5
  952. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +0 -11
  953. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +0 -5
  954. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +0 -12
  955. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +0 -5
  956. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +0 -11
  957. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +0 -5
  958. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +0 -30
  959. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.js +0 -5
  960. package/dist/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -15
  961. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +0 -49
  962. package/dist/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +0 -112
  963. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +0 -69
  964. package/dist/serialization/resources/encounters/resources/v4/client/createUniversal.js +0 -136
  965. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +0 -50
  966. package/dist/serialization/resources/encounters/resources/v4/client/updateUniversal.js +0 -113
  967. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +0 -39
  968. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +0 -72
  969. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +0 -37
  970. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +0 -70
  971. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +0 -32
  972. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +0 -65
  973. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +0 -16
  974. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +0 -49
  975. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -10
  976. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1098
  977. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +0 -16
  978. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +0 -49
  979. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -10
  980. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -84
  981. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +0 -16
  982. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +0 -49
  983. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +0 -18
  984. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +0 -51
  985. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +0 -37
  986. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +0 -68
  987. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +0 -18
  988. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +0 -51
  989. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +0 -18
  990. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +0 -51
  991. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +0 -18
  992. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +0 -51
  993. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +0 -18
  994. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +0 -51
  995. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +0 -16
  996. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +0 -49
  997. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +0 -18
  998. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +0 -51
  999. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +0 -18
  1000. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +0 -51
  1001. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +0 -16
  1002. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +0 -49
  1003. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +0 -18
  1004. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +0 -51
  1005. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +0 -15
  1006. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +0 -48
  1007. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +0 -18
  1008. package/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -15
  1009. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.d.ts +0 -49
  1010. package/serialization/resources/encounters/resources/v4/client/createFromPreEncounterPatientUniversal.js +0 -112
  1011. package/serialization/resources/encounters/resources/v4/client/createUniversal.d.ts +0 -69
  1012. package/serialization/resources/encounters/resources/v4/client/createUniversal.js +0 -136
  1013. package/serialization/resources/encounters/resources/v4/client/updateUniversal.d.ts +0 -50
  1014. package/serialization/resources/encounters/resources/v4/client/updateUniversal.js +0 -113
  1015. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.d.ts +0 -39
  1016. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreate.js +0 -72
  1017. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.d.ts +0 -37
  1018. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounter.js +0 -70
  1019. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.d.ts +0 -32
  1020. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdate.js +0 -65
  1021. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.d.ts +0 -16
  1022. package/serialization/resources/healthCareCodeInformation/resources/v1/types/AdmittingDiagnosisNew.js +0 -49
  1023. package/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -10
  1024. package/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1098
  1025. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.d.ts +0 -16
  1026. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionInformationNew.js +0 -49
  1027. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -10
  1028. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -84
  1029. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.d.ts +0 -16
  1030. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DiagnosisRelatedGroupNew.js +0 -49
  1031. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.d.ts +0 -18
  1032. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ExternalCauseOfInjuryNew.js +0 -51
  1033. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.d.ts +0 -37
  1034. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationCreate.js +0 -68
  1035. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.d.ts +0 -18
  1036. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformationNew.js +0 -51
  1037. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.d.ts +0 -18
  1038. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanInformationNew.js +0 -51
  1039. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.d.ts +0 -18
  1040. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherDiagnosisInformationNew.js +0 -51
  1041. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.d.ts +0 -18
  1042. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformationNew.js +0 -51
  1043. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.d.ts +0 -16
  1044. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PatientReasonForVisitNew.js +0 -49
  1045. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.d.ts +0 -18
  1046. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalDiagnosisNew.js +0 -51
  1047. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.d.ts +0 -18
  1048. package/serialization/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformationNew.js +0 -51
  1049. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.d.ts +0 -16
  1050. package/serialization/resources/healthCareCodeInformation/resources/v1/types/TreatmentCodeInformationNew.js +0 -49
  1051. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.d.ts +0 -18
  1052. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ValueInformationNew.js +0 -51
  1053. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.d.ts +0 -15
  1054. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreate.js +0 -48
  1055. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeUpdate.d.ts +0 -18
  1056. /package/api/resources/{auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js} +0 -0
  1057. /package/{api/resources/encountersUniversal/types/UniversalEncounterCreate.js → dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js} +0 -0
@@ -44,16 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.V1 = void 0;
52
49
  const environments = __importStar(require("../../../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../../../core"));
54
51
  const CandidApi = __importStar(require("../../../../../../../index"));
52
+ const headers_1 = require("../../../../../../../../core/headers");
55
53
  const serializers = __importStar(require("../../../../../../../../serialization/index"));
56
- const url_join_1 = __importDefault(require("url-join"));
57
54
  class V1 {
58
55
  constructor(_options = {}) {
59
56
  this._options = _options;
@@ -86,13 +83,18 @@ class V1 {
86
83
  * })
87
84
  */
88
85
  create(request, requestOptions) {
86
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
87
+ }
88
+ __create(request, requestOptions) {
89
89
  return __awaiter(this, void 0, void 0, function* () {
90
- var _a, _b;
90
+ var _a, _b, _c;
91
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
91
92
  const _response = yield core.fetcher({
92
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
93
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
93
94
  method: "POST",
94
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ headers: _headers,
95
96
  contentType: "application/json",
97
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
96
98
  requestType: "json",
97
99
  body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
98
100
  unrecognizedObjectKeys: "strip",
@@ -103,18 +105,27 @@ class V1 {
103
105
  });
104
106
  if (_response.ok) {
105
107
  return {
106
- ok: true,
107
- body: serializers.preEncounter.coverages.v1.Coverage.parseOrThrow(_response.body, {
108
- unrecognizedObjectKeys: "passthrough",
109
- allowUnrecognizedUnionMembers: true,
110
- allowUnrecognizedEnumValues: true,
111
- breadcrumbsPrefix: ["response"],
112
- }),
108
+ data: {
109
+ ok: true,
110
+ body: serializers.preEncounter.coverages.v1.Coverage.parseOrThrow(_response.body, {
111
+ unrecognizedObjectKeys: "passthrough",
112
+ allowUnrecognizedUnionMembers: true,
113
+ allowUnrecognizedEnumValues: true,
114
+ breadcrumbsPrefix: ["response"],
115
+ }),
116
+ headers: _response.headers,
117
+ rawResponse: _response.rawResponse,
118
+ },
119
+ rawResponse: _response.rawResponse,
113
120
  };
114
121
  }
115
122
  return {
116
- ok: false,
117
- error: CandidApi.preEncounter.coverages.v1.create.Error._unknown(_response.error),
123
+ data: {
124
+ ok: false,
125
+ error: CandidApi.preEncounter.coverages.v1.create.Error._unknown(_response.error),
126
+ rawResponse: _response.rawResponse,
127
+ },
128
+ rawResponse: _response.rawResponse,
118
129
  };
119
130
  });
120
131
  }
@@ -148,13 +159,18 @@ class V1 {
148
159
  * })
149
160
  */
150
161
  update(id, version, request, requestOptions) {
162
+ return core.HttpResponsePromise.fromPromise(this.__update(id, version, request, requestOptions));
163
+ }
164
+ __update(id, version, request, requestOptions) {
151
165
  return __awaiter(this, void 0, void 0, function* () {
152
- var _a, _b, _c;
166
+ var _a, _b, _c, _d;
167
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
153
168
  const _response = yield core.fetcher({
154
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
169
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
155
170
  method: "PUT",
156
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
171
+ headers: _headers,
157
172
  contentType: "application/json",
173
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
158
174
  requestType: "json",
159
175
  body: serializers.preEncounter.coverages.v1.MutableCoverage.jsonOrThrow(request, {
160
176
  unrecognizedObjectKeys: "strip",
@@ -165,33 +181,46 @@ class V1 {
165
181
  });
166
182
  if (_response.ok) {
167
183
  return {
168
- ok: true,
169
- body: serializers.preEncounter.coverages.v1.Coverage.parseOrThrow(_response.body, {
170
- unrecognizedObjectKeys: "passthrough",
171
- allowUnrecognizedUnionMembers: true,
172
- allowUnrecognizedEnumValues: true,
173
- breadcrumbsPrefix: ["response"],
174
- }),
184
+ data: {
185
+ ok: true,
186
+ body: serializers.preEncounter.coverages.v1.Coverage.parseOrThrow(_response.body, {
187
+ unrecognizedObjectKeys: "passthrough",
188
+ allowUnrecognizedUnionMembers: true,
189
+ allowUnrecognizedEnumValues: true,
190
+ breadcrumbsPrefix: ["response"],
191
+ }),
192
+ headers: _response.headers,
193
+ rawResponse: _response.rawResponse,
194
+ },
195
+ rawResponse: _response.rawResponse,
175
196
  };
176
197
  }
177
198
  if (_response.error.reason === "status-code") {
178
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
199
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
179
200
  case "NotFoundError":
180
201
  case "VersionConflictError":
181
202
  return {
182
- ok: false,
183
- error: serializers.preEncounter.coverages.v1.update.Error.parseOrThrow(_response.error.body, {
184
- unrecognizedObjectKeys: "passthrough",
185
- allowUnrecognizedUnionMembers: true,
186
- allowUnrecognizedEnumValues: true,
187
- breadcrumbsPrefix: ["response"],
188
- }),
203
+ data: {
204
+ ok: false,
205
+ error: serializers.preEncounter.coverages.v1.update.Error.parseOrThrow(_response.error.body, {
206
+ unrecognizedObjectKeys: "passthrough",
207
+ allowUnrecognizedUnionMembers: true,
208
+ allowUnrecognizedEnumValues: true,
209
+ breadcrumbsPrefix: ["response"],
210
+ }),
211
+ rawResponse: _response.rawResponse,
212
+ },
213
+ rawResponse: _response.rawResponse,
189
214
  };
190
215
  }
191
216
  }
192
217
  return {
193
- ok: false,
194
- error: CandidApi.preEncounter.coverages.v1.update.Error._unknown(_response.error),
218
+ data: {
219
+ ok: false,
220
+ error: CandidApi.preEncounter.coverages.v1.update.Error._unknown(_response.error),
221
+ rawResponse: _response.rawResponse,
222
+ },
223
+ rawResponse: _response.rawResponse,
195
224
  };
196
225
  });
197
226
  }
@@ -204,9 +233,12 @@ class V1 {
204
233
  * @example
205
234
  * await client.preEncounter.coverages.v1.getMultiPaginated()
206
235
  */
207
- getMultiPaginated() {
236
+ getMultiPaginated(request = {}, requestOptions) {
237
+ return core.HttpResponsePromise.fromPromise(this.__getMultiPaginated(request, requestOptions));
238
+ }
239
+ __getMultiPaginated() {
208
240
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
209
- var _a, _b, _c;
241
+ var _a, _b, _c, _d;
210
242
  const { patientId, payerPlanGroupId, pageToken, limit } = request;
211
243
  const _queryParams = {};
212
244
  if (patientId != null) {
@@ -221,45 +253,58 @@ class V1 {
221
253
  if (limit != null) {
222
254
  _queryParams["limit"] = limit.toString();
223
255
  }
256
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
224
257
  const _response = yield core.fetcher({
225
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/get-multi-paginated"),
258
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/get-multi-paginated"),
226
259
  method: "GET",
227
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
- contentType: "application/json",
229
- queryParameters: _queryParams,
230
- requestType: "json",
260
+ headers: _headers,
261
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
231
262
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
232
263
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
233
264
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
234
265
  });
235
266
  if (_response.ok) {
236
267
  return {
237
- ok: true,
238
- body: serializers.preEncounter.coverages.v1.CoveragesPage.parseOrThrow(_response.body, {
239
- unrecognizedObjectKeys: "passthrough",
240
- allowUnrecognizedUnionMembers: true,
241
- allowUnrecognizedEnumValues: true,
242
- breadcrumbsPrefix: ["response"],
243
- }),
268
+ data: {
269
+ ok: true,
270
+ body: serializers.preEncounter.coverages.v1.CoveragesPage.parseOrThrow(_response.body, {
271
+ unrecognizedObjectKeys: "passthrough",
272
+ allowUnrecognizedUnionMembers: true,
273
+ allowUnrecognizedEnumValues: true,
274
+ breadcrumbsPrefix: ["response"],
275
+ }),
276
+ headers: _response.headers,
277
+ rawResponse: _response.rawResponse,
278
+ },
279
+ rawResponse: _response.rawResponse,
244
280
  };
245
281
  }
246
282
  if (_response.error.reason === "status-code") {
247
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
283
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
248
284
  case "BadRequestError":
249
285
  return {
250
- ok: false,
251
- error: serializers.preEncounter.coverages.v1.getMultiPaginated.Error.parseOrThrow(_response.error.body, {
252
- unrecognizedObjectKeys: "passthrough",
253
- allowUnrecognizedUnionMembers: true,
254
- allowUnrecognizedEnumValues: true,
255
- breadcrumbsPrefix: ["response"],
256
- }),
286
+ data: {
287
+ ok: false,
288
+ error: serializers.preEncounter.coverages.v1.getMultiPaginated.Error.parseOrThrow(_response.error
289
+ .body, {
290
+ unrecognizedObjectKeys: "passthrough",
291
+ allowUnrecognizedUnionMembers: true,
292
+ allowUnrecognizedEnumValues: true,
293
+ breadcrumbsPrefix: ["response"],
294
+ }),
295
+ rawResponse: _response.rawResponse,
296
+ },
297
+ rawResponse: _response.rawResponse,
257
298
  };
258
299
  }
259
300
  }
260
301
  return {
261
- ok: false,
262
- error: CandidApi.preEncounter.coverages.v1.getMultiPaginated.Error._unknown(_response.error),
302
+ data: {
303
+ ok: false,
304
+ error: CandidApi.preEncounter.coverages.v1.getMultiPaginated.Error._unknown(_response.error),
305
+ rawResponse: _response.rawResponse,
306
+ },
307
+ rawResponse: _response.rawResponse,
263
308
  };
264
309
  });
265
310
  }
@@ -273,32 +318,44 @@ class V1 {
273
318
  * await client.preEncounter.coverages.v1.get(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
274
319
  */
275
320
  get(id, requestOptions) {
321
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
322
+ }
323
+ __get(id, requestOptions) {
276
324
  return __awaiter(this, void 0, void 0, function* () {
277
- var _a, _b;
325
+ var _a, _b, _c;
326
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
278
327
  const _response = yield core.fetcher({
279
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}`),
328
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}`),
280
329
  method: "GET",
281
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
- contentType: "application/json",
283
- requestType: "json",
330
+ headers: _headers,
331
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
284
332
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
285
333
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
286
334
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
287
335
  });
288
336
  if (_response.ok) {
289
337
  return {
290
- ok: true,
291
- body: serializers.preEncounter.coverages.v1.Coverage.parseOrThrow(_response.body, {
292
- unrecognizedObjectKeys: "passthrough",
293
- allowUnrecognizedUnionMembers: true,
294
- allowUnrecognizedEnumValues: true,
295
- breadcrumbsPrefix: ["response"],
296
- }),
338
+ data: {
339
+ ok: true,
340
+ body: serializers.preEncounter.coverages.v1.Coverage.parseOrThrow(_response.body, {
341
+ unrecognizedObjectKeys: "passthrough",
342
+ allowUnrecognizedUnionMembers: true,
343
+ allowUnrecognizedEnumValues: true,
344
+ breadcrumbsPrefix: ["response"],
345
+ }),
346
+ headers: _response.headers,
347
+ rawResponse: _response.rawResponse,
348
+ },
349
+ rawResponse: _response.rawResponse,
297
350
  };
298
351
  }
299
352
  return {
300
- ok: false,
301
- error: CandidApi.preEncounter.coverages.v1.get.Error._unknown(_response.error),
353
+ data: {
354
+ ok: false,
355
+ error: CandidApi.preEncounter.coverages.v1.get.Error._unknown(_response.error),
356
+ rawResponse: _response.rawResponse,
357
+ },
358
+ rawResponse: _response.rawResponse,
302
359
  };
303
360
  });
304
361
  }
@@ -312,46 +369,62 @@ class V1 {
312
369
  * await client.preEncounter.coverages.v1.getHistory(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
313
370
  */
314
371
  getHistory(id, requestOptions) {
372
+ return core.HttpResponsePromise.fromPromise(this.__getHistory(id, requestOptions));
373
+ }
374
+ __getHistory(id, requestOptions) {
315
375
  return __awaiter(this, void 0, void 0, function* () {
316
- var _a, _b, _c;
376
+ var _a, _b, _c, _d;
377
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
317
378
  const _response = yield core.fetcher({
318
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/history`),
379
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/history`),
319
380
  method: "GET",
320
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
321
- contentType: "application/json",
322
- requestType: "json",
381
+ headers: _headers,
382
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
323
383
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
324
384
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
325
385
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
326
386
  });
327
387
  if (_response.ok) {
328
388
  return {
329
- ok: true,
330
- body: serializers.preEncounter.coverages.v1.getHistory.Response.parseOrThrow(_response.body, {
331
- unrecognizedObjectKeys: "passthrough",
332
- allowUnrecognizedUnionMembers: true,
333
- allowUnrecognizedEnumValues: true,
334
- breadcrumbsPrefix: ["response"],
335
- }),
389
+ data: {
390
+ ok: true,
391
+ body: serializers.preEncounter.coverages.v1.getHistory.Response.parseOrThrow(_response.body, {
392
+ unrecognizedObjectKeys: "passthrough",
393
+ allowUnrecognizedUnionMembers: true,
394
+ allowUnrecognizedEnumValues: true,
395
+ breadcrumbsPrefix: ["response"],
396
+ }),
397
+ headers: _response.headers,
398
+ rawResponse: _response.rawResponse,
399
+ },
400
+ rawResponse: _response.rawResponse,
336
401
  };
337
402
  }
338
403
  if (_response.error.reason === "status-code") {
339
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
404
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
340
405
  case "NotFoundError":
341
406
  return {
342
- ok: false,
343
- error: serializers.preEncounter.coverages.v1.getHistory.Error.parseOrThrow(_response.error.body, {
344
- unrecognizedObjectKeys: "passthrough",
345
- allowUnrecognizedUnionMembers: true,
346
- allowUnrecognizedEnumValues: true,
347
- breadcrumbsPrefix: ["response"],
348
- }),
407
+ data: {
408
+ ok: false,
409
+ error: serializers.preEncounter.coverages.v1.getHistory.Error.parseOrThrow(_response.error.body, {
410
+ unrecognizedObjectKeys: "passthrough",
411
+ allowUnrecognizedUnionMembers: true,
412
+ allowUnrecognizedEnumValues: true,
413
+ breadcrumbsPrefix: ["response"],
414
+ }),
415
+ rawResponse: _response.rawResponse,
416
+ },
417
+ rawResponse: _response.rawResponse,
349
418
  };
350
419
  }
351
420
  }
352
421
  return {
353
- ok: false,
354
- error: CandidApi.preEncounter.coverages.v1.getHistory.Error._unknown(_response.error),
422
+ data: {
423
+ ok: false,
424
+ error: CandidApi.preEncounter.coverages.v1.getHistory.Error._unknown(_response.error),
425
+ rawResponse: _response.rawResponse,
426
+ },
427
+ rawResponse: _response.rawResponse,
355
428
  };
356
429
  });
357
430
  }
@@ -364,39 +437,50 @@ class V1 {
364
437
  * @example
365
438
  * await client.preEncounter.coverages.v1.getMulti()
366
439
  */
367
- getMulti() {
440
+ getMulti(request = {}, requestOptions) {
441
+ return core.HttpResponsePromise.fromPromise(this.__getMulti(request, requestOptions));
442
+ }
443
+ __getMulti() {
368
444
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
369
- var _a, _b;
445
+ var _a, _b, _c;
370
446
  const { patientId } = request;
371
447
  const _queryParams = {};
372
448
  if (patientId != null) {
373
449
  _queryParams["patient_id"] = patientId;
374
450
  }
451
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
375
452
  const _response = yield core.fetcher({
376
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
453
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1"),
377
454
  method: "GET",
378
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
379
- contentType: "application/json",
380
- queryParameters: _queryParams,
381
- requestType: "json",
455
+ headers: _headers,
456
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
382
457
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
383
458
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
384
459
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
385
460
  });
386
461
  if (_response.ok) {
387
462
  return {
388
- ok: true,
389
- body: serializers.preEncounter.coverages.v1.getMulti.Response.parseOrThrow(_response.body, {
390
- unrecognizedObjectKeys: "passthrough",
391
- allowUnrecognizedUnionMembers: true,
392
- allowUnrecognizedEnumValues: true,
393
- breadcrumbsPrefix: ["response"],
394
- }),
463
+ data: {
464
+ ok: true,
465
+ body: serializers.preEncounter.coverages.v1.getMulti.Response.parseOrThrow(_response.body, {
466
+ unrecognizedObjectKeys: "passthrough",
467
+ allowUnrecognizedUnionMembers: true,
468
+ allowUnrecognizedEnumValues: true,
469
+ breadcrumbsPrefix: ["response"],
470
+ }),
471
+ headers: _response.headers,
472
+ rawResponse: _response.rawResponse,
473
+ },
474
+ rawResponse: _response.rawResponse,
395
475
  };
396
476
  }
397
477
  return {
398
- ok: false,
399
- error: CandidApi.preEncounter.coverages.v1.getMulti.Error._unknown(_response.error),
478
+ data: {
479
+ ok: false,
480
+ error: CandidApi.preEncounter.coverages.v1.getMulti.Error._unknown(_response.error),
481
+ rawResponse: _response.rawResponse,
482
+ },
483
+ rawResponse: _response.rawResponse,
400
484
  };
401
485
  });
402
486
  }
@@ -408,40 +492,51 @@ class V1 {
408
492
  *
409
493
  * @example
410
494
  * await client.preEncounter.coverages.v1.scan({
411
- * since: "2024-01-15T09:30:00Z"
495
+ * since: new Date("2024-01-15T09:30:00.000Z")
412
496
  * })
413
497
  */
414
498
  scan(request, requestOptions) {
499
+ return core.HttpResponsePromise.fromPromise(this.__scan(request, requestOptions));
500
+ }
501
+ __scan(request, requestOptions) {
415
502
  return __awaiter(this, void 0, void 0, function* () {
416
- var _a, _b;
503
+ var _a, _b, _c;
417
504
  const { since } = request;
418
505
  const _queryParams = {};
419
506
  _queryParams["since"] = since.toISOString();
507
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
420
508
  const _response = yield core.fetcher({
421
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/updates/scan"),
509
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, "/coverages/v1/updates/scan"),
422
510
  method: "GET",
423
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
424
- contentType: "application/json",
425
- queryParameters: _queryParams,
426
- requestType: "json",
511
+ headers: _headers,
512
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
427
513
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
428
514
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
429
515
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
430
516
  });
431
517
  if (_response.ok) {
432
518
  return {
433
- ok: true,
434
- body: serializers.preEncounter.coverages.v1.scan.Response.parseOrThrow(_response.body, {
435
- unrecognizedObjectKeys: "passthrough",
436
- allowUnrecognizedUnionMembers: true,
437
- allowUnrecognizedEnumValues: true,
438
- breadcrumbsPrefix: ["response"],
439
- }),
519
+ data: {
520
+ ok: true,
521
+ body: serializers.preEncounter.coverages.v1.scan.Response.parseOrThrow(_response.body, {
522
+ unrecognizedObjectKeys: "passthrough",
523
+ allowUnrecognizedUnionMembers: true,
524
+ allowUnrecognizedEnumValues: true,
525
+ breadcrumbsPrefix: ["response"],
526
+ }),
527
+ headers: _response.headers,
528
+ rawResponse: _response.rawResponse,
529
+ },
530
+ rawResponse: _response.rawResponse,
440
531
  };
441
532
  }
442
533
  return {
443
- ok: false,
444
- error: CandidApi.preEncounter.coverages.v1.scan.Error._unknown(_response.error),
534
+ data: {
535
+ ok: false,
536
+ error: CandidApi.preEncounter.coverages.v1.scan.Error._unknown(_response.error),
537
+ rawResponse: _response.rawResponse,
538
+ },
539
+ rawResponse: _response.rawResponse,
445
540
  };
446
541
  });
447
542
  }
@@ -461,13 +556,18 @@ class V1 {
461
556
  * })
462
557
  */
463
558
  batchUpdatePpg(ppgId, request, requestOptions) {
559
+ return core.HttpResponsePromise.fromPromise(this.__batchUpdatePpg(ppgId, request, requestOptions));
560
+ }
561
+ __batchUpdatePpg(ppgId, request, requestOptions) {
464
562
  return __awaiter(this, void 0, void 0, function* () {
465
- var _a, _b;
563
+ var _a, _b, _c;
564
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
466
565
  const _response = yield core.fetcher({
467
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/batch-update-ppg/${encodeURIComponent(serializers.preEncounter.PayerPlanGroupId.jsonOrThrow(ppgId))}`),
566
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/batch-update-ppg/${encodeURIComponent(serializers.preEncounter.PayerPlanGroupId.jsonOrThrow(ppgId))}`),
468
567
  method: "POST",
469
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
568
+ headers: _headers,
470
569
  contentType: "application/json",
570
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
471
571
  requestType: "json",
472
572
  body: serializers.preEncounter.coverages.v1.PayerPlanGroupFields.jsonOrThrow(request, {
473
573
  unrecognizedObjectKeys: "strip",
@@ -478,13 +578,22 @@ class V1 {
478
578
  });
479
579
  if (_response.ok) {
480
580
  return {
481
- ok: true,
482
- body: undefined,
581
+ data: {
582
+ ok: true,
583
+ body: undefined,
584
+ headers: _response.headers,
585
+ rawResponse: _response.rawResponse,
586
+ },
587
+ rawResponse: _response.rawResponse,
483
588
  };
484
589
  }
485
590
  return {
486
- ok: false,
487
- error: CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error._unknown(_response.error),
591
+ data: {
592
+ ok: false,
593
+ error: CandidApi.preEncounter.coverages.v1.batchUpdatePpg.Error._unknown(_response.error),
594
+ rawResponse: _response.rawResponse,
595
+ },
596
+ rawResponse: _response.rawResponse,
488
597
  };
489
598
  });
490
599
  }
@@ -503,13 +612,18 @@ class V1 {
503
612
  * })
504
613
  */
505
614
  checkEligibility(id, request, requestOptions) {
615
+ return core.HttpResponsePromise.fromPromise(this.__checkEligibility(id, request, requestOptions));
616
+ }
617
+ __checkEligibility(id, request, requestOptions) {
506
618
  return __awaiter(this, void 0, void 0, function* () {
507
- var _a, _b;
619
+ var _a, _b, _c;
620
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
508
621
  const _response = yield core.fetcher({
509
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility`),
622
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility`),
510
623
  method: "POST",
511
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
624
+ headers: _headers,
512
625
  contentType: "application/json",
626
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
513
627
  requestType: "json",
514
628
  body: serializers.preEncounter.coverages.v1.CheckEligibilityRequest.jsonOrThrow(request, {
515
629
  unrecognizedObjectKeys: "strip",
@@ -520,18 +634,27 @@ class V1 {
520
634
  });
521
635
  if (_response.ok) {
522
636
  return {
523
- ok: true,
524
- body: serializers.preEncounter.eligibilityChecks.v1.EligibilityCheckMetadata.parseOrThrow(_response.body, {
525
- unrecognizedObjectKeys: "passthrough",
526
- allowUnrecognizedUnionMembers: true,
527
- allowUnrecognizedEnumValues: true,
528
- breadcrumbsPrefix: ["response"],
529
- }),
637
+ data: {
638
+ ok: true,
639
+ body: serializers.preEncounter.eligibilityChecks.v1.EligibilityCheckMetadata.parseOrThrow(_response.body, {
640
+ unrecognizedObjectKeys: "passthrough",
641
+ allowUnrecognizedUnionMembers: true,
642
+ allowUnrecognizedEnumValues: true,
643
+ breadcrumbsPrefix: ["response"],
644
+ }),
645
+ headers: _response.headers,
646
+ rawResponse: _response.rawResponse,
647
+ },
648
+ rawResponse: _response.rawResponse,
530
649
  };
531
650
  }
532
651
  return {
533
- ok: false,
534
- error: CandidApi.preEncounter.coverages.v1.checkEligibility.Error._unknown(_response.error),
652
+ data: {
653
+ ok: false,
654
+ error: CandidApi.preEncounter.coverages.v1.checkEligibility.Error._unknown(_response.error),
655
+ rawResponse: _response.rawResponse,
656
+ },
657
+ rawResponse: _response.rawResponse,
535
658
  };
536
659
  });
537
660
  }
@@ -546,32 +669,44 @@ class V1 {
546
669
  * await client.preEncounter.coverages.v1.getEligibility(CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), "check_id")
547
670
  */
548
671
  getEligibility(id, checkId, requestOptions) {
672
+ return core.HttpResponsePromise.fromPromise(this.__getEligibility(id, checkId, requestOptions));
673
+ }
674
+ __getEligibility(id, checkId, requestOptions) {
549
675
  return __awaiter(this, void 0, void 0, function* () {
550
- var _a, _b;
676
+ var _a, _b, _c;
677
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
551
678
  const _response = yield core.fetcher({
552
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility/${encodeURIComponent(checkId)}`),
679
+ url: core.url.join((_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : ((_c = (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.CandidApiEnvironment.Production).preEncounter, `/coverages/v1/${encodeURIComponent(serializers.preEncounter.CoverageId.jsonOrThrow(id))}/eligibility/${encodeURIComponent(checkId)}`),
553
680
  method: "GET",
554
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.8.1", "User-Agent": "candidhealth/1.8.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
555
- contentType: "application/json",
556
- requestType: "json",
681
+ headers: _headers,
682
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
557
683
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
558
684
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
559
685
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
560
686
  });
561
687
  if (_response.ok) {
562
688
  return {
563
- ok: true,
564
- body: serializers.preEncounter.coverages.v1.CoverageEligibilityCheckResponse.parseOrThrow(_response.body, {
565
- unrecognizedObjectKeys: "passthrough",
566
- allowUnrecognizedUnionMembers: true,
567
- allowUnrecognizedEnumValues: true,
568
- breadcrumbsPrefix: ["response"],
569
- }),
689
+ data: {
690
+ ok: true,
691
+ body: serializers.preEncounter.coverages.v1.CoverageEligibilityCheckResponse.parseOrThrow(_response.body, {
692
+ unrecognizedObjectKeys: "passthrough",
693
+ allowUnrecognizedUnionMembers: true,
694
+ allowUnrecognizedEnumValues: true,
695
+ breadcrumbsPrefix: ["response"],
696
+ }),
697
+ headers: _response.headers,
698
+ rawResponse: _response.rawResponse,
699
+ },
700
+ rawResponse: _response.rawResponse,
570
701
  };
571
702
  }
572
703
  return {
573
- ok: false,
574
- error: CandidApi.preEncounter.coverages.v1.getEligibility.Error._unknown(_response.error),
704
+ data: {
705
+ ok: false,
706
+ error: CandidApi.preEncounter.coverages.v1.getEligibility.Error._unknown(_response.error),
707
+ rawResponse: _response.rawResponse,
708
+ },
709
+ rawResponse: _response.rawResponse,
575
710
  };
576
711
  });
577
712
  }