candidhealth 1.8.1 → 1.9.0

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