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
package/dist/Client.js CHANGED
@@ -48,6 +48,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
48
48
  exports.CandidApiClient = void 0;
49
49
  const core = __importStar(require("./core"));
50
50
  const Client_1 = require("./api/resources/auth/resources/default/client/Client");
51
+ const headers_1 = require("./core/headers");
51
52
  const Client_2 = require("./api/resources/auth/client/Client");
52
53
  const Client_3 = require("./api/resources/billingNotes/client/Client");
53
54
  const Client_4 = require("./api/resources/chargeCaptureBundles/client/Client");
@@ -89,13 +90,18 @@ const Client_39 = require("./api/resources/diagnoses/client/Client");
89
90
  const Client_40 = require("./api/resources/serviceFacility/client/Client");
90
91
  class CandidApiClient {
91
92
  constructor(_options) {
92
- this._options = _options;
93
+ this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
94
+ "X-Fern-Language": "JavaScript",
95
+ "X-Fern-SDK-Name": "candidhealth",
96
+ "X-Fern-SDK-Version": "1.9.1",
97
+ "User-Agent": "candidhealth/1.9.1",
98
+ "X-Fern-Runtime": core.RUNTIME.type,
99
+ "X-Fern-Runtime-Version": core.RUNTIME.version,
100
+ }, _options === null || _options === void 0 ? void 0 : _options.headers) });
93
101
  this._oauthTokenProvider = new core.OAuthTokenProvider({
94
102
  clientId: this._options.clientId,
95
103
  clientSecret: this._options.clientSecret,
96
- authClient: new Client_1.Default({
97
- environment: this._options.environment,
98
- }),
104
+ authClient: new Client_1.Default(Object.assign(Object.assign({}, this._options), { environment: this._options.environment })),
99
105
  });
100
106
  }
101
107
  get auth() {
@@ -10,16 +10,8 @@ export declare namespace Auth {
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 Auth {
@@ -10,6 +10,8 @@ export declare namespace Default {
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 Default {
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 Default {
@@ -67,18 +71,7 @@ export declare class Default {
67
71
  * clientSecret: "YOUR_CLIENT_SECRET"
68
72
  * })
69
73
  */
70
- getToken(request: CandidApi.auth.default_.AuthGetTokenRequest, requestOptions?: Default.RequestOptions): Promise<core.APIResponse<CandidApi.auth.default_.AuthGetTokenResponse, CandidApi.auth.default_.getToken.Error>>;
71
- /**
72
- * @param {CandidApi.auth.default_.AuthGetTokenForOrgRequest} request
73
- * @param {Default.RequestOptions} requestOptions - Request-specific configuration.
74
- *
75
- * @example
76
- * await client.auth.default.getMachineTokenForOrgId({
77
- * orgId: "org_id",
78
- * clientId: "client_id",
79
- * clientSecret: "client_secret"
80
- * })
81
- */
82
- getMachineTokenForOrgId(request: CandidApi.auth.default_.AuthGetTokenForOrgRequest, requestOptions?: Default.RequestOptions): Promise<core.APIResponse<CandidApi.auth.default_.AuthGetTokenResponse, CandidApi.auth.default_.getMachineTokenForOrgId.Error>>;
74
+ getToken(request: CandidApi.auth.default_.AuthGetTokenRequest, requestOptions?: Default.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.auth.default_.AuthGetTokenResponse, CandidApi.auth.default_.getToken.Error>>;
75
+ private __getToken;
83
76
  protected _getAuthorizationHeader(): Promise<string | undefined>;
84
77
  }
@@ -44,16 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.Default = void 0;
52
49
  const environments = __importStar(require("../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../core"));
54
51
  const CandidApi = __importStar(require("../../../../../index"));
52
+ const headers_1 = require("../../../../../../core/headers");
55
53
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
- const url_join_1 = __importDefault(require("url-join"));
57
54
  class Default {
58
55
  constructor(_options = {}) {
59
56
  this._options = _options;
@@ -101,13 +98,18 @@ class Default {
101
98
  * })
102
99
  */
103
100
  getToken(request, requestOptions) {
101
+ return core.HttpResponsePromise.fromPromise(this.__getToken(request, requestOptions));
102
+ }
103
+ __getToken(request, requestOptions) {
104
104
  return __awaiter(this, void 0, void 0, function* () {
105
- var _a, _b, _c;
105
+ var _a, _b, _c, _d;
106
+ 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);
106
107
  const _response = yield core.fetcher({
107
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/auth/v2/token"),
108
+ 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/auth/v2/token"),
108
109
  method: "POST",
109
- 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),
110
+ headers: _headers,
110
111
  contentType: "application/json",
112
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
111
113
  requestType: "json",
112
114
  body: serializers.auth.default_.AuthGetTokenRequest.jsonOrThrow(request, {
113
115
  unrecognizedObjectKeys: "strip",
@@ -118,77 +120,46 @@ class Default {
118
120
  });
119
121
  if (_response.ok) {
120
122
  return {
121
- ok: true,
122
- body: serializers.auth.default_.AuthGetTokenResponse.parseOrThrow(_response.body, {
123
- unrecognizedObjectKeys: "passthrough",
124
- allowUnrecognizedUnionMembers: true,
125
- allowUnrecognizedEnumValues: true,
126
- breadcrumbsPrefix: ["response"],
127
- }),
123
+ data: {
124
+ ok: true,
125
+ body: serializers.auth.default_.AuthGetTokenResponse.parseOrThrow(_response.body, {
126
+ unrecognizedObjectKeys: "passthrough",
127
+ allowUnrecognizedUnionMembers: true,
128
+ allowUnrecognizedEnumValues: true,
129
+ breadcrumbsPrefix: ["response"],
130
+ }),
131
+ headers: _response.headers,
132
+ rawResponse: _response.rawResponse,
133
+ },
134
+ rawResponse: _response.rawResponse,
128
135
  };
129
136
  }
130
137
  if (_response.error.reason === "status-code") {
131
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
138
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
132
139
  case "TooManyRequestsError":
133
140
  case "InvalidContentTypeError":
134
141
  return {
135
- ok: false,
136
- error: serializers.auth.default_.getToken.Error.parseOrThrow(_response.error.body, {
137
- unrecognizedObjectKeys: "passthrough",
138
- allowUnrecognizedUnionMembers: true,
139
- allowUnrecognizedEnumValues: true,
140
- breadcrumbsPrefix: ["response"],
141
- }),
142
+ data: {
143
+ ok: false,
144
+ error: serializers.auth.default_.getToken.Error.parseOrThrow(_response.error.body, {
145
+ unrecognizedObjectKeys: "passthrough",
146
+ allowUnrecognizedUnionMembers: true,
147
+ allowUnrecognizedEnumValues: true,
148
+ breadcrumbsPrefix: ["response"],
149
+ }),
150
+ rawResponse: _response.rawResponse,
151
+ },
152
+ rawResponse: _response.rawResponse,
142
153
  };
143
154
  }
144
155
  }
145
156
  return {
146
- ok: false,
147
- error: CandidApi.auth.default_.getToken.Error._unknown(_response.error),
148
- };
149
- });
150
- }
151
- /**
152
- * @param {CandidApi.auth.default_.AuthGetTokenForOrgRequest} request
153
- * @param {Default.RequestOptions} requestOptions - Request-specific configuration.
154
- *
155
- * @example
156
- * await client.auth.default.getMachineTokenForOrgId({
157
- * orgId: "org_id",
158
- * clientId: "client_id",
159
- * clientSecret: "client_secret"
160
- * })
161
- */
162
- getMachineTokenForOrgId(request, requestOptions) {
163
- return __awaiter(this, void 0, void 0, function* () {
164
- var _a, _b;
165
- const _response = yield core.fetcher({
166
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/auth/v2/machine-token-for-org-id"),
167
- method: "POST",
168
- 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),
169
- contentType: "application/json",
170
- requestType: "json",
171
- body: serializers.auth.default_.AuthGetTokenForOrgRequest.jsonOrThrow(request, {
172
- unrecognizedObjectKeys: "strip",
173
- }),
174
- timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
175
- maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
176
- abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
177
- });
178
- if (_response.ok) {
179
- return {
180
- ok: true,
181
- body: serializers.auth.default_.AuthGetTokenResponse.parseOrThrow(_response.body, {
182
- unrecognizedObjectKeys: "passthrough",
183
- allowUnrecognizedUnionMembers: true,
184
- allowUnrecognizedEnumValues: true,
185
- breadcrumbsPrefix: ["response"],
186
- }),
187
- };
188
- }
189
- return {
190
- ok: false,
191
- error: CandidApi.auth.default_.getMachineTokenForOrgId.Error._unknown(_response.error),
157
+ data: {
158
+ ok: false,
159
+ error: CandidApi.auth.default_.getToken.Error._unknown(_response.error),
160
+ rawResponse: _response.rawResponse,
161
+ },
162
+ rawResponse: _response.rawResponse,
192
163
  };
193
164
  });
194
165
  }
@@ -1,3 +1,2 @@
1
- export * from "./requests";
2
1
  export * as getToken from "./getToken";
3
- export * as getMachineTokenForOrgId from "./getMachineTokenForOrgId";
2
+ 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,8 +32,10 @@ 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
- exports.getMachineTokenForOrgId = exports.getToken = void 0;
40
- __exportStar(require("./requests"), exports);
39
+ exports.getToken = void 0;
41
40
  exports.getToken = __importStar(require("./getToken"));
42
- exports.getMachineTokenForOrgId = __importStar(require("./getMachineTokenForOrgId"));
41
+ __exportStar(require("./requests"), exports);
@@ -1,2 +1 @@
1
1
  export { type AuthGetTokenRequest } from "./AuthGetTokenRequest";
2
- export { type AuthGetTokenForOrgRequest } from "./AuthGetTokenForOrgRequest";
@@ -10,16 +10,8 @@ export declare namespace BillingNotes {
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 BillingNotes {
@@ -10,6 +10,8 @@ export declare namespace V2 {
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 V2 {
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 V2 {
@@ -31,10 +35,12 @@ export declare class V2 {
31
35
  *
32
36
  * @example
33
37
  * await client.billingNotes.v2.create({
34
- * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
38
+ * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
39
+ * text: "text"
35
40
  * })
36
41
  */
37
- create(request: CandidApi.billingNotes.v2.StandaloneBillingNoteCreate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.billingNotes.v2.BillingNote, CandidApi.billingNotes.v2.create.Error>>;
42
+ create(request: CandidApi.billingNotes.v2.StandaloneBillingNoteCreate, requestOptions?: V2.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.billingNotes.v2.BillingNote, CandidApi.billingNotes.v2.create.Error>>;
43
+ private __create;
38
44
  /**
39
45
  * @param {CandidApi.billingNotes.v2.BillingNoteId} billingNoteId
40
46
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
@@ -42,7 +48,8 @@ export declare class V2 {
42
48
  * @example
43
49
  * await client.billingNotes.v2.delete(CandidApi.billingNotes.v2.BillingNoteId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
44
50
  */
45
- delete(billingNoteId: CandidApi.billingNotes.v2.BillingNoteId, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<void, CandidApi.billingNotes.v2.delete.Error>>;
51
+ delete(billingNoteId: CandidApi.billingNotes.v2.BillingNoteId, requestOptions?: V2.RequestOptions): core.HttpResponsePromise<core.APIResponse<void, CandidApi.billingNotes.v2.delete.Error>>;
52
+ private __delete;
46
53
  /**
47
54
  * @param {CandidApi.billingNotes.v2.BillingNoteId} billingNoteId
48
55
  * @param {CandidApi.billingNotes.v2.BillingNoteUpdate} request
@@ -53,6 +60,7 @@ export declare class V2 {
53
60
  * text: "text"
54
61
  * })
55
62
  */
56
- update(billingNoteId: CandidApi.billingNotes.v2.BillingNoteId, request: CandidApi.billingNotes.v2.BillingNoteUpdate, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.billingNotes.v2.BillingNote, CandidApi.billingNotes.v2.update.Error>>;
63
+ update(billingNoteId: CandidApi.billingNotes.v2.BillingNoteId, request: CandidApi.billingNotes.v2.BillingNoteUpdate, requestOptions?: V2.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.billingNotes.v2.BillingNote, CandidApi.billingNotes.v2.update.Error>>;
64
+ private __update;
57
65
  protected _getAuthorizationHeader(): Promise<string | undefined>;
58
66
  }
@@ -44,16 +44,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
44
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
45
45
  });
46
46
  };
47
- var __importDefault = (this && this.__importDefault) || function (mod) {
48
- return (mod && mod.__esModule) ? mod : { "default": mod };
49
- };
50
47
  Object.defineProperty(exports, "__esModule", { value: true });
51
48
  exports.V2 = void 0;
52
49
  const environments = __importStar(require("../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../core"));
54
51
  const CandidApi = __importStar(require("../../../../../index"));
52
+ const headers_1 = require("../../../../../../core/headers");
55
53
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
- const url_join_1 = __importDefault(require("url-join"));
57
54
  class V2 {
58
55
  constructor(_options = {}) {
59
56
  this._options = _options;
@@ -64,17 +61,23 @@ class V2 {
64
61
  *
65
62
  * @example
66
63
  * await client.billingNotes.v2.create({
67
- * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32")
64
+ * encounterId: CandidApi.EncounterId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
65
+ * text: "text"
68
66
  * })
69
67
  */
70
68
  create(request, requestOptions) {
69
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
70
+ }
71
+ __create(request, requestOptions) {
71
72
  return __awaiter(this, void 0, void 0, function* () {
72
- var _a, _b;
73
+ var _a, _b, _c;
74
+ 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);
73
75
  const _response = yield core.fetcher({
74
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, "/api/billing_notes/v2"),
76
+ 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/billing_notes/v2"),
75
77
  method: "POST",
76
- 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),
78
+ headers: _headers,
77
79
  contentType: "application/json",
80
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
78
81
  requestType: "json",
79
82
  body: serializers.billingNotes.v2.StandaloneBillingNoteCreate.jsonOrThrow(request, {
80
83
  unrecognizedObjectKeys: "strip",
@@ -85,18 +88,27 @@ class V2 {
85
88
  });
86
89
  if (_response.ok) {
87
90
  return {
88
- ok: true,
89
- body: serializers.billingNotes.v2.BillingNote.parseOrThrow(_response.body, {
90
- unrecognizedObjectKeys: "passthrough",
91
- allowUnrecognizedUnionMembers: true,
92
- allowUnrecognizedEnumValues: true,
93
- breadcrumbsPrefix: ["response"],
94
- }),
91
+ data: {
92
+ ok: true,
93
+ body: serializers.billingNotes.v2.BillingNote.parseOrThrow(_response.body, {
94
+ unrecognizedObjectKeys: "passthrough",
95
+ allowUnrecognizedUnionMembers: true,
96
+ allowUnrecognizedEnumValues: true,
97
+ breadcrumbsPrefix: ["response"],
98
+ }),
99
+ headers: _response.headers,
100
+ rawResponse: _response.rawResponse,
101
+ },
102
+ rawResponse: _response.rawResponse,
95
103
  };
96
104
  }
97
105
  return {
98
- ok: false,
99
- error: CandidApi.billingNotes.v2.create.Error._unknown(_response.error),
106
+ data: {
107
+ ok: false,
108
+ error: CandidApi.billingNotes.v2.create.Error._unknown(_response.error),
109
+ rawResponse: _response.rawResponse,
110
+ },
111
+ rawResponse: _response.rawResponse,
100
112
  };
101
113
  });
102
114
  }
@@ -108,43 +120,59 @@ class V2 {
108
120
  * await client.billingNotes.v2.delete(CandidApi.billingNotes.v2.BillingNoteId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
109
121
  */
110
122
  delete(billingNoteId, requestOptions) {
123
+ return core.HttpResponsePromise.fromPromise(this.__delete(billingNoteId, requestOptions));
124
+ }
125
+ __delete(billingNoteId, requestOptions) {
111
126
  return __awaiter(this, void 0, void 0, function* () {
112
- var _a, _b, _c;
127
+ var _a, _b, _c, _d;
128
+ 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);
113
129
  const _response = yield core.fetcher({
114
- 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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
130
+ 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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
115
131
  method: "DELETE",
116
- 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),
117
- contentType: "application/json",
118
- requestType: "json",
132
+ headers: _headers,
133
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
119
134
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
120
135
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
121
136
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
122
137
  });
123
138
  if (_response.ok) {
124
139
  return {
125
- ok: true,
126
- body: undefined,
140
+ data: {
141
+ ok: true,
142
+ body: undefined,
143
+ headers: _response.headers,
144
+ rawResponse: _response.rawResponse,
145
+ },
146
+ rawResponse: _response.rawResponse,
127
147
  };
128
148
  }
129
149
  if (_response.error.reason === "status-code") {
130
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
150
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
131
151
  case "EntityNotFoundError":
132
152
  case "OrganizationNotAuthorizedError":
133
153
  case "UnauthorizedError":
134
154
  return {
135
- ok: false,
136
- error: serializers.billingNotes.v2.delete.Error.parseOrThrow(_response.error.body, {
137
- unrecognizedObjectKeys: "passthrough",
138
- allowUnrecognizedUnionMembers: true,
139
- allowUnrecognizedEnumValues: true,
140
- breadcrumbsPrefix: ["response"],
141
- }),
155
+ data: {
156
+ ok: false,
157
+ error: serializers.billingNotes.v2.delete.Error.parseOrThrow(_response.error.body, {
158
+ unrecognizedObjectKeys: "passthrough",
159
+ allowUnrecognizedUnionMembers: true,
160
+ allowUnrecognizedEnumValues: true,
161
+ breadcrumbsPrefix: ["response"],
162
+ }),
163
+ rawResponse: _response.rawResponse,
164
+ },
165
+ rawResponse: _response.rawResponse,
142
166
  };
143
167
  }
144
168
  }
145
169
  return {
146
- ok: false,
147
- error: CandidApi.billingNotes.v2.delete.Error._unknown(_response.error),
170
+ data: {
171
+ ok: false,
172
+ error: CandidApi.billingNotes.v2.delete.Error._unknown(_response.error),
173
+ rawResponse: _response.rawResponse,
174
+ },
175
+ rawResponse: _response.rawResponse,
148
176
  };
149
177
  });
150
178
  }
@@ -159,13 +187,18 @@ class V2 {
159
187
  * })
160
188
  */
161
189
  update(billingNoteId, request, requestOptions) {
190
+ return core.HttpResponsePromise.fromPromise(this.__update(billingNoteId, request, requestOptions));
191
+ }
192
+ __update(billingNoteId, request, requestOptions) {
162
193
  return __awaiter(this, void 0, void 0, function* () {
163
- var _a, _b, _c;
194
+ var _a, _b, _c, _d;
195
+ 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);
164
196
  const _response = yield core.fetcher({
165
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
197
+ 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/billing_notes/v2/${encodeURIComponent(serializers.billingNotes.v2.BillingNoteId.jsonOrThrow(billingNoteId))}`),
166
198
  method: "PATCH",
167
- 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),
199
+ headers: _headers,
168
200
  contentType: "application/json",
201
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
169
202
  requestType: "json",
170
203
  body: serializers.billingNotes.v2.BillingNoteUpdate.jsonOrThrow(request, {
171
204
  unrecognizedObjectKeys: "strip",
@@ -176,35 +209,48 @@ class V2 {
176
209
  });
177
210
  if (_response.ok) {
178
211
  return {
179
- ok: true,
180
- body: serializers.billingNotes.v2.BillingNote.parseOrThrow(_response.body, {
181
- unrecognizedObjectKeys: "passthrough",
182
- allowUnrecognizedUnionMembers: true,
183
- allowUnrecognizedEnumValues: true,
184
- breadcrumbsPrefix: ["response"],
185
- }),
212
+ data: {
213
+ ok: true,
214
+ body: serializers.billingNotes.v2.BillingNote.parseOrThrow(_response.body, {
215
+ unrecognizedObjectKeys: "passthrough",
216
+ allowUnrecognizedUnionMembers: true,
217
+ allowUnrecognizedEnumValues: true,
218
+ breadcrumbsPrefix: ["response"],
219
+ }),
220
+ headers: _response.headers,
221
+ rawResponse: _response.rawResponse,
222
+ },
223
+ rawResponse: _response.rawResponse,
186
224
  };
187
225
  }
188
226
  if (_response.error.reason === "status-code") {
189
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
227
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
190
228
  case "EntityNotFoundError":
191
229
  case "OrganizationNotAuthorizedError":
192
230
  case "HttpRequestValidationError":
193
231
  case "UnauthorizedError":
194
232
  return {
195
- ok: false,
196
- error: serializers.billingNotes.v2.update.Error.parseOrThrow(_response.error.body, {
197
- unrecognizedObjectKeys: "passthrough",
198
- allowUnrecognizedUnionMembers: true,
199
- allowUnrecognizedEnumValues: true,
200
- breadcrumbsPrefix: ["response"],
201
- }),
233
+ data: {
234
+ ok: false,
235
+ error: serializers.billingNotes.v2.update.Error.parseOrThrow(_response.error.body, {
236
+ unrecognizedObjectKeys: "passthrough",
237
+ allowUnrecognizedUnionMembers: true,
238
+ allowUnrecognizedEnumValues: true,
239
+ breadcrumbsPrefix: ["response"],
240
+ }),
241
+ rawResponse: _response.rawResponse,
242
+ },
243
+ rawResponse: _response.rawResponse,
202
244
  };
203
245
  }
204
246
  }
205
247
  return {
206
- ok: false,
207
- error: CandidApi.billingNotes.v2.update.Error._unknown(_response.error),
248
+ data: {
249
+ ok: false,
250
+ error: CandidApi.billingNotes.v2.update.Error._unknown(_response.error),
251
+ rawResponse: _response.rawResponse,
252
+ },
253
+ rawResponse: _response.rawResponse,
208
254
  };
209
255
  });
210
256
  }
@@ -1,4 +1,4 @@
1
- export * from "./requests";
2
1
  export * as create from "./create";
3
2
  export * as delete from "./delete";
4
3
  export * as update from "./update";
4
+ 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,12 @@ 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.create = void 0;
40
- __exportStar(require("./requests"), exports);
41
40
  exports.create = __importStar(require("./create"));
42
41
  exports.delete = __importStar(require("./delete"));
43
42
  exports.update = __importStar(require("./update"));
43
+ __exportStar(require("./requests"), exports);