candidhealth 1.8.1 → 1.9.1

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
@@ -1,4 +1,3 @@
1
- export * from "./requests";
2
1
  export * as createFacility from "./createFacility";
3
2
  export * as getFacility from "./getFacility";
4
3
  export * as getAllFacilities from "./getAllFacilities";
@@ -9,3 +8,4 @@ export * as get from "./get";
9
8
  export * as getAll from "./getAll";
10
9
  export * as delete from "./delete";
11
10
  export * as update from "./update";
11
+ export * from "./requests";
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
18
  var __importStar = (this && this.__importStar) || (function () {
22
19
  var ownKeys = function(o) {
23
20
  ownKeys = Object.getOwnPropertyNames || function (o) {
@@ -35,9 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
35
32
  return result;
36
33
  };
37
34
  })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.update = exports.delete = exports.getAll = exports.get = exports.create = exports.updateFacility = exports.deleteFacility = exports.getAllFacilities = exports.getFacility = exports.createFacility = void 0;
40
- __exportStar(require("./requests"), exports);
41
40
  exports.createFacility = __importStar(require("./createFacility"));
42
41
  exports.getFacility = __importStar(require("./getFacility"));
43
42
  exports.getAllFacilities = __importStar(require("./getAllFacilities"));
@@ -48,3 +47,4 @@ exports.get = __importStar(require("./get"));
48
47
  exports.getAll = __importStar(require("./getAll"));
49
48
  exports.delete = __importStar(require("./delete"));
50
49
  exports.update = __importStar(require("./update"));
50
+ __exportStar(require("./requests"), exports);
@@ -7,21 +7,13 @@ import * as CandidApi from "../../../../../../index";
7
7
  * {}
8
8
  */
9
9
  export interface GetAllFacilityCredentialingSpansRequest {
10
- /**
11
- * Maximum number of entities per page, defaults to 100.
12
- */
10
+ /** Maximum number of entities per page, defaults to 100. */
13
11
  limit?: number;
14
12
  pageToken?: CandidApi.PageToken;
15
- /**
16
- * Filter by payer.
17
- */
13
+ /** Filter by payer. */
18
14
  payerUuid?: string;
19
- /**
20
- * Filter to a particular contracting provider.
21
- */
15
+ /** Filter to a particular contracting provider. */
22
16
  contractingProviderId?: string;
23
- /**
24
- * Filter to a particular service facility.
25
- */
17
+ /** Filter to a particular service facility. */
26
18
  serviceFacilityId?: string;
27
19
  }
@@ -7,25 +7,15 @@ import * as CandidApi from "../../../../../../index";
7
7
  * {}
8
8
  */
9
9
  export interface GetAllProviderCredentialingSpansRequest {
10
- /**
11
- * Maximum number of entities per page, defaults to 100.
12
- */
10
+ /** Maximum number of entities per page, defaults to 100. */
13
11
  limit?: number;
14
12
  pageToken?: CandidApi.PageToken;
15
- /**
16
- * Filter by payer.
17
- */
13
+ /** Filter by payer. */
18
14
  payerUuid?: string;
19
- /**
20
- * Filter to a particular provider. Use in conjunction as_rendering_provider and as_contracting_provider.
21
- */
15
+ /** Filter to a particular provider. Use in conjunction as_rendering_provider and as_contracting_provider. */
22
16
  providerId?: string;
23
- /**
24
- * Filter to credentialing spans where the provider is a rendering provider. To use this filter provider_id is required.
25
- */
17
+ /** Filter to credentialing spans where the provider is a rendering provider. To use this filter provider_id is required. */
26
18
  asRenderingProvider?: boolean;
27
- /**
28
- * Filter to credentialing spans where the provider is a contracting provider. To use this filter provider_id is required.
29
- */
19
+ /** Filter to credentialing spans where the provider is a contracting provider. To use this filter provider_id is required. */
30
20
  asContractingProvider?: boolean;
31
21
  }
@@ -10,16 +10,8 @@ export declare namespace CustomSchemas {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
- }
14
- interface RequestOptions {
15
- /** The maximum time to wait for a response in seconds. */
16
- timeoutInSeconds?: number;
17
- /** The number of times to retry the request. Defaults to 2. */
18
- maxRetries?: number;
19
- /** A hook to abort the request. */
20
- abortSignal?: AbortSignal;
21
- /** Additional headers to include in the request. */
22
- headers?: Record<string, string>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
23
15
  }
24
16
  }
25
17
  export declare class CustomSchemas {
@@ -10,6 +10,8 @@ export declare namespace V1 {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,8 +20,10 @@ export declare namespace V1 {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Additional query string parameters to include in the request. */
24
+ queryParams?: Record<string, unknown>;
21
25
  /** Additional headers to include in the request. */
22
- headers?: Record<string, string>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
23
27
  }
24
28
  }
25
29
  export declare class V1 {
@@ -33,7 +37,8 @@ export declare class V1 {
33
37
  * @example
34
38
  * await client.customSchemas.v1.getMulti()
35
39
  */
36
- getMulti(requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.customSchemas.v1.SchemaGetMultiResponse, CandidApi.customSchemas.v1.getMulti.Error>>;
40
+ getMulti(requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.customSchemas.v1.SchemaGetMultiResponse, CandidApi.customSchemas.v1.getMulti.Error>>;
41
+ private __getMulti;
37
42
  /**
38
43
  * Return a custom schema with a given ID.
39
44
  *
@@ -43,7 +48,8 @@ export declare class V1 {
43
48
  * @example
44
49
  * await client.customSchemas.v1.get(CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"))
45
50
  */
46
- get(schemaId: CandidApi.SchemaId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.customSchemas.v1.Schema, CandidApi.customSchemas.v1.get.Error>>;
51
+ get(schemaId: CandidApi.SchemaId, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.customSchemas.v1.Schema, CandidApi.customSchemas.v1.get.Error>>;
52
+ private __get;
47
53
  /**
48
54
  * Create custom schema with a set of typed keys. Schema keys can be referenced as inputs in user-configurable rules in the Rules
49
55
  * Engine, and key-value pairs can be attached to claims via the Encounters API.
@@ -70,7 +76,8 @@ export declare class V1 {
70
76
  * }]
71
77
  * })
72
78
  */
73
- create(request: CandidApi.customSchemas.v1.SchemaCreate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.customSchemas.v1.Schema, CandidApi.customSchemas.v1.create.Error>>;
79
+ create(request: CandidApi.customSchemas.v1.SchemaCreate, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.customSchemas.v1.Schema, CandidApi.customSchemas.v1.create.Error>>;
80
+ private __create;
74
81
  /**
75
82
  * Update the name, description, or keys on a preexisting schema.
76
83
  *
@@ -88,6 +95,7 @@ export declare class V1 {
88
95
  * }]
89
96
  * })
90
97
  */
91
- update(schemaId: CandidApi.SchemaId, request?: CandidApi.customSchemas.v1.SchemaUpdate, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.customSchemas.v1.Schema, CandidApi.customSchemas.v1.update.Error>>;
98
+ update(schemaId: CandidApi.SchemaId, request?: CandidApi.customSchemas.v1.SchemaUpdate, requestOptions?: V1.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.customSchemas.v1.Schema, CandidApi.customSchemas.v1.update.Error>>;
99
+ private __update;
92
100
  protected _getAuthorizationHeader(): Promise<string | undefined>;
93
101
  }
@@ -44,15 +44,12 @@ 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"));
55
- const url_join_1 = __importDefault(require("url-join"));
52
+ const headers_1 = require("../../../../../../core/headers");
56
53
  const serializers = __importStar(require("../../../../../../serialization/index"));
57
54
  class V1 {
58
55
  constructor(_options = {}) {
@@ -67,46 +64,62 @@ class V1 {
67
64
  * await client.customSchemas.v1.getMulti()
68
65
  */
69
66
  getMulti(requestOptions) {
67
+ return core.HttpResponsePromise.fromPromise(this.__getMulti(requestOptions));
68
+ }
69
+ __getMulti(requestOptions) {
70
70
  return __awaiter(this, void 0, void 0, function* () {
71
- var _a, _b, _c;
71
+ var _a, _b, _c, _d;
72
+ 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);
72
73
  const _response = yield core.fetcher({
73
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/custom-schemas/v1"),
74
+ 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).candidApi, "/api/custom-schemas/v1"),
74
75
  method: "GET",
75
- 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),
76
- contentType: "application/json",
77
- requestType: "json",
76
+ headers: _headers,
77
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
78
78
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
79
79
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
80
80
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
81
81
  });
82
82
  if (_response.ok) {
83
83
  return {
84
- ok: true,
85
- body: serializers.customSchemas.v1.SchemaGetMultiResponse.parseOrThrow(_response.body, {
86
- unrecognizedObjectKeys: "passthrough",
87
- allowUnrecognizedUnionMembers: true,
88
- allowUnrecognizedEnumValues: true,
89
- breadcrumbsPrefix: ["response"],
90
- }),
84
+ data: {
85
+ ok: true,
86
+ body: serializers.customSchemas.v1.SchemaGetMultiResponse.parseOrThrow(_response.body, {
87
+ unrecognizedObjectKeys: "passthrough",
88
+ allowUnrecognizedUnionMembers: true,
89
+ allowUnrecognizedEnumValues: true,
90
+ breadcrumbsPrefix: ["response"],
91
+ }),
92
+ headers: _response.headers,
93
+ rawResponse: _response.rawResponse,
94
+ },
95
+ rawResponse: _response.rawResponse,
91
96
  };
92
97
  }
93
98
  if (_response.error.reason === "status-code") {
94
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
99
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
95
100
  case "UnauthorizedError":
96
101
  return {
97
- ok: false,
98
- error: serializers.customSchemas.v1.getMulti.Error.parseOrThrow(_response.error.body, {
99
- unrecognizedObjectKeys: "passthrough",
100
- allowUnrecognizedUnionMembers: true,
101
- allowUnrecognizedEnumValues: true,
102
- breadcrumbsPrefix: ["response"],
103
- }),
102
+ data: {
103
+ ok: false,
104
+ error: serializers.customSchemas.v1.getMulti.Error.parseOrThrow(_response.error.body, {
105
+ unrecognizedObjectKeys: "passthrough",
106
+ allowUnrecognizedUnionMembers: true,
107
+ allowUnrecognizedEnumValues: true,
108
+ breadcrumbsPrefix: ["response"],
109
+ }),
110
+ rawResponse: _response.rawResponse,
111
+ },
112
+ rawResponse: _response.rawResponse,
104
113
  };
105
114
  }
106
115
  }
107
116
  return {
108
- ok: false,
109
- error: CandidApi.customSchemas.v1.getMulti.Error._unknown(_response.error),
117
+ data: {
118
+ ok: false,
119
+ error: CandidApi.customSchemas.v1.getMulti.Error._unknown(_response.error),
120
+ rawResponse: _response.rawResponse,
121
+ },
122
+ rawResponse: _response.rawResponse,
110
123
  };
111
124
  });
112
125
  }
@@ -120,47 +133,63 @@ class V1 {
120
133
  * await client.customSchemas.v1.get(CandidApi.SchemaId("ec096b13-f80a-471d-aaeb-54b021c9d582"))
121
134
  */
122
135
  get(schemaId, requestOptions) {
136
+ return core.HttpResponsePromise.fromPromise(this.__get(schemaId, requestOptions));
137
+ }
138
+ __get(schemaId, requestOptions) {
123
139
  return __awaiter(this, void 0, void 0, function* () {
124
- var _a, _b, _c;
140
+ var _a, _b, _c, _d;
141
+ 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);
125
142
  const _response = yield core.fetcher({
126
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
143
+ 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).candidApi, `/api/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
127
144
  method: "GET",
128
- 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),
129
- contentType: "application/json",
130
- requestType: "json",
145
+ headers: _headers,
146
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
131
147
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
132
148
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
133
149
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
134
150
  });
135
151
  if (_response.ok) {
136
152
  return {
137
- ok: true,
138
- body: serializers.customSchemas.v1.Schema.parseOrThrow(_response.body, {
139
- unrecognizedObjectKeys: "passthrough",
140
- allowUnrecognizedUnionMembers: true,
141
- allowUnrecognizedEnumValues: true,
142
- breadcrumbsPrefix: ["response"],
143
- }),
153
+ data: {
154
+ ok: true,
155
+ body: serializers.customSchemas.v1.Schema.parseOrThrow(_response.body, {
156
+ unrecognizedObjectKeys: "passthrough",
157
+ allowUnrecognizedUnionMembers: true,
158
+ allowUnrecognizedEnumValues: true,
159
+ breadcrumbsPrefix: ["response"],
160
+ }),
161
+ headers: _response.headers,
162
+ rawResponse: _response.rawResponse,
163
+ },
164
+ rawResponse: _response.rawResponse,
144
165
  };
145
166
  }
146
167
  if (_response.error.reason === "status-code") {
147
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
168
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
148
169
  case "EntityNotFoundError":
149
170
  case "UnauthorizedError":
150
171
  return {
151
- ok: false,
152
- error: serializers.customSchemas.v1.get.Error.parseOrThrow(_response.error.body, {
153
- unrecognizedObjectKeys: "passthrough",
154
- allowUnrecognizedUnionMembers: true,
155
- allowUnrecognizedEnumValues: true,
156
- breadcrumbsPrefix: ["response"],
157
- }),
172
+ data: {
173
+ ok: false,
174
+ error: serializers.customSchemas.v1.get.Error.parseOrThrow(_response.error.body, {
175
+ unrecognizedObjectKeys: "passthrough",
176
+ allowUnrecognizedUnionMembers: true,
177
+ allowUnrecognizedEnumValues: true,
178
+ breadcrumbsPrefix: ["response"],
179
+ }),
180
+ rawResponse: _response.rawResponse,
181
+ },
182
+ rawResponse: _response.rawResponse,
158
183
  };
159
184
  }
160
185
  }
161
186
  return {
162
- ok: false,
163
- error: CandidApi.customSchemas.v1.get.Error._unknown(_response.error),
187
+ data: {
188
+ ok: false,
189
+ error: CandidApi.customSchemas.v1.get.Error._unknown(_response.error),
190
+ rawResponse: _response.rawResponse,
191
+ },
192
+ rawResponse: _response.rawResponse,
164
193
  };
165
194
  });
166
195
  }
@@ -191,13 +220,18 @@ class V1 {
191
220
  * })
192
221
  */
193
222
  create(request, requestOptions) {
223
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
224
+ }
225
+ __create(request, requestOptions) {
194
226
  return __awaiter(this, void 0, void 0, function* () {
195
- var _a, _b, _c;
227
+ var _a, _b, _c, _d;
228
+ 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);
196
229
  const _response = yield core.fetcher({
197
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/custom-schemas/v1"),
230
+ 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).candidApi, "/api/custom-schemas/v1"),
198
231
  method: "POST",
199
- 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),
232
+ headers: _headers,
200
233
  contentType: "application/json",
234
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
201
235
  requestType: "json",
202
236
  body: serializers.customSchemas.v1.SchemaCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
203
237
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -206,32 +240,45 @@ class V1 {
206
240
  });
207
241
  if (_response.ok) {
208
242
  return {
209
- ok: true,
210
- body: serializers.customSchemas.v1.Schema.parseOrThrow(_response.body, {
211
- unrecognizedObjectKeys: "passthrough",
212
- allowUnrecognizedUnionMembers: true,
213
- allowUnrecognizedEnumValues: true,
214
- breadcrumbsPrefix: ["response"],
215
- }),
243
+ data: {
244
+ ok: true,
245
+ body: serializers.customSchemas.v1.Schema.parseOrThrow(_response.body, {
246
+ unrecognizedObjectKeys: "passthrough",
247
+ allowUnrecognizedUnionMembers: true,
248
+ allowUnrecognizedEnumValues: true,
249
+ breadcrumbsPrefix: ["response"],
250
+ }),
251
+ headers: _response.headers,
252
+ rawResponse: _response.rawResponse,
253
+ },
254
+ rawResponse: _response.rawResponse,
216
255
  };
217
256
  }
218
257
  if (_response.error.reason === "status-code") {
219
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
258
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
220
259
  case "SchemaValidationHttpFailure":
221
260
  return {
222
- ok: false,
223
- error: serializers.customSchemas.v1.create.Error.parseOrThrow(_response.error.body, {
224
- unrecognizedObjectKeys: "passthrough",
225
- allowUnrecognizedUnionMembers: true,
226
- allowUnrecognizedEnumValues: true,
227
- breadcrumbsPrefix: ["response"],
228
- }),
261
+ data: {
262
+ ok: false,
263
+ error: serializers.customSchemas.v1.create.Error.parseOrThrow(_response.error.body, {
264
+ unrecognizedObjectKeys: "passthrough",
265
+ allowUnrecognizedUnionMembers: true,
266
+ allowUnrecognizedEnumValues: true,
267
+ breadcrumbsPrefix: ["response"],
268
+ }),
269
+ rawResponse: _response.rawResponse,
270
+ },
271
+ rawResponse: _response.rawResponse,
229
272
  };
230
273
  }
231
274
  }
232
275
  return {
233
- ok: false,
234
- error: CandidApi.customSchemas.v1.create.Error._unknown(_response.error),
276
+ data: {
277
+ ok: false,
278
+ error: CandidApi.customSchemas.v1.create.Error._unknown(_response.error),
279
+ rawResponse: _response.rawResponse,
280
+ },
281
+ rawResponse: _response.rawResponse,
235
282
  };
236
283
  });
237
284
  }
@@ -252,14 +299,19 @@ class V1 {
252
299
  * }]
253
300
  * })
254
301
  */
255
- update(schemaId_1) {
302
+ update(schemaId, request = {}, requestOptions) {
303
+ return core.HttpResponsePromise.fromPromise(this.__update(schemaId, request, requestOptions));
304
+ }
305
+ __update(schemaId_1) {
256
306
  return __awaiter(this, arguments, void 0, function* (schemaId, request = {}, requestOptions) {
257
- var _a, _b, _c;
307
+ var _a, _b, _c, _d;
308
+ 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);
258
309
  const _response = yield core.fetcher({
259
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
310
+ 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).candidApi, `/api/custom-schemas/v1/${encodeURIComponent(serializers.SchemaId.jsonOrThrow(schemaId))}`),
260
311
  method: "PATCH",
261
- 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),
312
+ headers: _headers,
262
313
  contentType: "application/json",
314
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
263
315
  requestType: "json",
264
316
  body: serializers.customSchemas.v1.SchemaUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
265
317
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -268,34 +320,47 @@ class V1 {
268
320
  });
269
321
  if (_response.ok) {
270
322
  return {
271
- ok: true,
272
- body: serializers.customSchemas.v1.Schema.parseOrThrow(_response.body, {
273
- unrecognizedObjectKeys: "passthrough",
274
- allowUnrecognizedUnionMembers: true,
275
- allowUnrecognizedEnumValues: true,
276
- breadcrumbsPrefix: ["response"],
277
- }),
323
+ data: {
324
+ ok: true,
325
+ body: serializers.customSchemas.v1.Schema.parseOrThrow(_response.body, {
326
+ unrecognizedObjectKeys: "passthrough",
327
+ allowUnrecognizedUnionMembers: true,
328
+ allowUnrecognizedEnumValues: true,
329
+ breadcrumbsPrefix: ["response"],
330
+ }),
331
+ headers: _response.headers,
332
+ rawResponse: _response.rawResponse,
333
+ },
334
+ rawResponse: _response.rawResponse,
278
335
  };
279
336
  }
280
337
  if (_response.error.reason === "status-code") {
281
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
338
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
282
339
  case "EntityNotFoundError":
283
340
  case "UnauthorizedError":
284
341
  case "SchemaValidationHttpFailure":
285
342
  return {
286
- ok: false,
287
- error: serializers.customSchemas.v1.update.Error.parseOrThrow(_response.error.body, {
288
- unrecognizedObjectKeys: "passthrough",
289
- allowUnrecognizedUnionMembers: true,
290
- allowUnrecognizedEnumValues: true,
291
- breadcrumbsPrefix: ["response"],
292
- }),
343
+ data: {
344
+ ok: false,
345
+ error: serializers.customSchemas.v1.update.Error.parseOrThrow(_response.error.body, {
346
+ unrecognizedObjectKeys: "passthrough",
347
+ allowUnrecognizedUnionMembers: true,
348
+ allowUnrecognizedEnumValues: true,
349
+ breadcrumbsPrefix: ["response"],
350
+ }),
351
+ rawResponse: _response.rawResponse,
352
+ },
353
+ rawResponse: _response.rawResponse,
293
354
  };
294
355
  }
295
356
  }
296
357
  return {
297
- ok: false,
298
- error: CandidApi.customSchemas.v1.update.Error._unknown(_response.error),
358
+ data: {
359
+ ok: false,
360
+ error: CandidApi.customSchemas.v1.update.Error._unknown(_response.error),
361
+ rawResponse: _response.rawResponse,
362
+ },
363
+ rawResponse: _response.rawResponse,
299
364
  };
300
365
  });
301
366
  }
@@ -1,5 +1,5 @@
1
- export * from "./requests";
2
1
  export * as getMulti from "./getMulti";
3
2
  export * as get from "./get";
4
3
  export * as create from "./create";
5
4
  export * as update from "./update";
5
+ export * from "./requests";
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
18
  var __importStar = (this && this.__importStar) || (function () {
22
19
  var ownKeys = function(o) {
23
20
  ownKeys = Object.getOwnPropertyNames || function (o) {
@@ -35,10 +32,13 @@ var __importStar = (this && this.__importStar) || (function () {
35
32
  return result;
36
33
  };
37
34
  })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.update = exports.create = exports.get = exports.getMulti = void 0;
40
- __exportStar(require("./requests"), exports);
41
40
  exports.getMulti = __importStar(require("./getMulti"));
42
41
  exports.get = __importStar(require("./get"));
43
42
  exports.create = __importStar(require("./create"));
44
43
  exports.update = __importStar(require("./update"));
44
+ __exportStar(require("./requests"), exports);
@@ -10,6 +10,8 @@ export declare namespace Diagnoses {
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
12
  token?: core.Supplier<core.BearerToken | undefined>;
13
+ /** Additional headers to include in requests. */
14
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
13
15
  }
14
16
  interface RequestOptions {
15
17
  /** The maximum time to wait for a response in seconds. */
@@ -18,8 +20,10 @@ export declare namespace Diagnoses {
18
20
  maxRetries?: number;
19
21
  /** A hook to abort the request. */
20
22
  abortSignal?: AbortSignal;
23
+ /** Additional query string parameters to include in the request. */
24
+ queryParams?: Record<string, unknown>;
21
25
  /** Additional headers to include in the request. */
22
- headers?: Record<string, string>;
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
23
27
  }
24
28
  }
25
29
  export declare class Diagnoses {
@@ -33,12 +37,13 @@ export declare class Diagnoses {
33
37
  *
34
38
  * @example
35
39
  * await client.diagnoses.create({
40
+ * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
36
41
  * codeType: "ABF",
37
- * code: "code",
38
- * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
42
+ * code: "code"
39
43
  * })
40
44
  */
41
- create(request: CandidApi.StandaloneDiagnosisCreate, requestOptions?: Diagnoses.RequestOptions): Promise<core.APIResponse<CandidApi.Diagnosis, CandidApi.diagnoses.create.Error>>;
45
+ create(request: CandidApi.StandaloneDiagnosisCreate, requestOptions?: Diagnoses.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.Diagnosis, CandidApi.diagnoses.create.Error>>;
46
+ private __create;
42
47
  /**
43
48
  * Updates the diagnosis record matching the provided `diagnosis_id`
44
49
  *
@@ -49,7 +54,8 @@ export declare class Diagnoses {
49
54
  * @example
50
55
  * await client.diagnoses.update(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
51
56
  */
52
- update(diagnosisId: CandidApi.DiagnosisId, request?: CandidApi.DiagnosisUpdate, requestOptions?: Diagnoses.RequestOptions): Promise<core.APIResponse<CandidApi.Diagnosis, CandidApi.diagnoses.update.Error>>;
57
+ update(diagnosisId: CandidApi.DiagnosisId, request?: CandidApi.DiagnosisUpdate, requestOptions?: Diagnoses.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.Diagnosis, CandidApi.diagnoses.update.Error>>;
58
+ private __update;
53
59
  /**
54
60
  * Deletes the diagnosis record associated with the provided `diagnosis_id`
55
61
  *
@@ -59,6 +65,7 @@ export declare class Diagnoses {
59
65
  * @example
60
66
  * await client.diagnoses.delete(CandidApi.DiagnosisId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
61
67
  */
62
- delete(diagnosisId: CandidApi.DiagnosisId, requestOptions?: Diagnoses.RequestOptions): Promise<core.APIResponse<void, CandidApi.diagnoses.delete.Error>>;
68
+ delete(diagnosisId: CandidApi.DiagnosisId, requestOptions?: Diagnoses.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, CandidApi.diagnoses.delete.Error>>;
69
+ private __delete;
63
70
  protected _getAuthorizationHeader(): Promise<string | undefined>;
64
71
  }