candidhealth 1.7.0 → 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 (1355) 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 -12
  6. package/api/resources/auth/resources/default/client/Client.js +39 -66
  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 +278 -117
  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 +46 -84
  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 +153 -66
  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 +26 -48
  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/commons/types/Clearinghouse.d.ts +14 -0
  35. package/api/resources/commons/types/Clearinghouse.js +16 -0
  36. package/api/resources/commons/types/ProcedureModifier.d.ts +13 -2
  37. package/api/resources/commons/types/ProcedureModifier.js +11 -0
  38. package/api/resources/commons/types/index.d.ts +1 -0
  39. package/api/resources/commons/types/index.js +1 -0
  40. package/api/resources/contracts/client/Client.d.ts +2 -10
  41. package/api/resources/contracts/resources/v2/client/Client.d.ts +30 -7
  42. package/api/resources/contracts/resources/v2/client/Client.js +179 -93
  43. package/api/resources/contracts/resources/v2/client/index.d.ts +1 -1
  44. package/api/resources/contracts/resources/v2/client/index.js +4 -4
  45. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +15 -1
  46. package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +5 -15
  47. package/api/resources/credentialing/client/Client.d.ts +2 -10
  48. package/api/resources/credentialing/resources/v2/client/Client.d.ts +25 -11
  49. package/api/resources/credentialing/resources/v2/client/Client.js +374 -211
  50. package/api/resources/credentialing/resources/v2/client/index.d.ts +1 -1
  51. package/api/resources/credentialing/resources/v2/client/index.js +4 -4
  52. package/api/resources/credentialing/resources/v2/client/requests/GetAllFacilityCredentialingSpansRequest.d.ts +4 -12
  53. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +5 -15
  54. package/api/resources/customSchemas/client/Client.d.ts +2 -10
  55. package/api/resources/customSchemas/resources/v1/client/Client.d.ts +13 -5
  56. package/api/resources/customSchemas/resources/v1/client/Client.js +154 -89
  57. package/api/resources/customSchemas/resources/v1/client/index.d.ts +1 -1
  58. package/api/resources/customSchemas/resources/v1/client/index.js +4 -4
  59. package/api/resources/diagnoses/client/Client.d.ts +13 -6
  60. package/api/resources/diagnoses/client/Client.js +101 -56
  61. package/api/resources/diagnoses/client/index.d.ts +1 -1
  62. package/api/resources/diagnoses/client/index.js +4 -4
  63. package/api/resources/diagnoses/types/Diagnosis.d.ts +2 -2
  64. package/api/resources/eligibility/client/Client.d.ts +2 -10
  65. package/api/resources/eligibility/resources/v2/client/Client.d.ts +11 -4
  66. package/api/resources/eligibility/resources/v2/client/Client.js +102 -52
  67. package/api/resources/encounterAttachments/client/Client.d.ts +2 -10
  68. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +11 -4
  69. package/api/resources/encounterAttachments/resources/v1/client/Client.js +74 -37
  70. package/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -1
  71. package/api/resources/encounterAttachments/resources/v1/client/index.js +4 -4
  72. package/api/resources/encounterProviders/client/Client.d.ts +2 -10
  73. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +29 -13
  74. package/api/resources/encounterProviders/resources/v2/client/Client.js +449 -238
  75. package/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +1 -1
  76. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +1 -1
  77. package/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +1 -1
  78. package/api/resources/encounters/client/Client.d.ts +2 -10
  79. package/api/resources/encounters/resources/v4/client/Client.d.ts +60 -46
  80. package/api/resources/encounters/resources/v4/client/Client.js +217 -136
  81. package/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  82. package/api/resources/encounters/resources/v4/client/create.js +11 -0
  83. package/api/resources/encounters/resources/v4/client/index.d.ts +1 -1
  84. package/api/resources/encounters/resources/v4/client/index.js +4 -4
  85. package/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +14 -40
  86. package/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
  87. package/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +1 -1
  88. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +27 -41
  89. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +10 -11
  90. package/api/resources/encounters/resources/v4/types/EncounterCreate.d.ts +27 -0
  91. package/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +3 -36
  92. package/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +9 -4
  93. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +10 -16
  94. package/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +14 -21
  95. package/api/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +5 -0
  96. package/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +2 -3
  97. package/api/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +17 -0
  98. package/api/resources/encounters/resources/v4/types/index.d.ts +7 -4
  99. package/api/resources/encounters/resources/v4/types/index.js +7 -4
  100. package/api/resources/encountersUniversal/index.d.ts +1 -0
  101. package/api/resources/encountersUniversal/index.js +17 -0
  102. package/api/resources/{encounters/resources/v4/client/requests/EncounterCreate.d.ts → encountersUniversal/types/UniversalEncounterCreateBase.d.ts} +9 -70
  103. package/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +40 -0
  104. package/api/resources/{encounters/resources/v4/client/requests/EncounterUpdate.d.ts → encountersUniversal/types/UniversalEncounterUpdateBase.d.ts} +9 -18
  105. package/api/resources/encountersUniversal/types/index.d.ts +3 -0
  106. package/api/resources/encountersUniversal/types/index.js +19 -0
  107. package/api/resources/expectedNetworkStatus/client/Client.d.ts +2 -10
  108. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +7 -2
  109. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +27 -16
  110. package/api/resources/expectedNetworkStatus/resources/v1/client/index.d.ts +1 -1
  111. package/api/resources/expectedNetworkStatus/resources/v1/client/index.js +4 -4
  112. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +9 -3
  113. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +79 -46
  114. package/api/resources/exports/client/Client.d.ts +2 -10
  115. package/api/resources/exports/resources/v3/client/Client.d.ts +7 -2
  116. package/api/resources/exports/resources/v3/client/Client.js +39 -27
  117. package/api/resources/exports/resources/v3/client/index.d.ts +1 -1
  118. package/api/resources/exports/resources/v3/client/index.js +4 -4
  119. package/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +2 -2
  120. package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +2 -10
  121. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +7 -2
  122. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +28 -20
  123. package/api/resources/externalPaymentAccountConfig/resources/v1/client/index.d.ts +1 -1
  124. package/api/resources/externalPaymentAccountConfig/resources/v1/client/index.js +4 -4
  125. package/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -3
  126. package/api/resources/feeSchedules/client/Client.d.ts +2 -10
  127. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +40 -12
  128. package/api/resources/feeSchedules/resources/v3/client/Client.js +413 -199
  129. package/api/resources/{auth/resources/default/client/getMachineTokenForOrgId.d.ts → feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts} +4 -4
  130. package/api/resources/{auth/resources/default/client/getMachineTokenForOrgId.js → feeSchedules/resources/v3/client/hardDeleteRatesByIds.js} +1 -1
  131. package/api/resources/feeSchedules/resources/v3/client/index.d.ts +2 -1
  132. package/api/resources/feeSchedules/resources/v3/client/index.js +6 -5
  133. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -3
  134. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +2 -6
  135. package/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
  136. package/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +5 -0
  137. package/api/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
  138. package/api/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
  139. package/api/resources/financials/types/PatientTransactionSource.d.ts +2 -1
  140. package/api/resources/financials/types/PatientTransactionSource.js +1 -0
  141. package/api/resources/guarantor/client/Client.d.ts +2 -10
  142. package/api/resources/guarantor/resources/v1/client/Client.d.ts +11 -4
  143. package/api/resources/guarantor/resources/v1/client/Client.js +91 -50
  144. package/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +2 -0
  145. package/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +2 -0
  146. package/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
  147. package/api/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
  148. package/api/resources/healthCareCodeInformation/client/Client.d.ts +2 -10
  149. package/api/resources/healthCareCodeInformation/resources/v1/client/Client.d.ts +9 -3
  150. package/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +78 -47
  151. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +433 -40
  152. package/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  153. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +12 -1
  154. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -52
  155. package/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +14 -1
  156. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.d.ts +3 -0
  157. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformation.d.ts +6 -0
  158. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +24 -5
  159. package/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +5 -1
  160. package/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformation.d.ts +6 -0
  161. package/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformation.d.ts +6 -0
  162. package/api/resources/healthCareCodeInformation/resources/v1/types/Rd8Date.d.ts +12 -0
  163. package/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -2
  164. package/api/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -2
  165. package/api/resources/importInvoice/client/Client.d.ts +2 -10
  166. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +13 -5
  167. package/api/resources/importInvoice/resources/v1/client/Client.js +142 -82
  168. package/api/resources/importInvoice/resources/v1/client/index.d.ts +1 -1
  169. package/api/resources/importInvoice/resources/v1/client/index.js +4 -4
  170. package/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +7 -21
  171. package/api/resources/index.d.ts +1 -0
  172. package/api/resources/index.js +3 -2
  173. package/api/resources/individual/types/Patient.d.ts +2 -0
  174. package/api/resources/individual/types/PatientBase.d.ts +2 -2
  175. package/api/resources/individual/types/PatientCreate.d.ts +2 -0
  176. package/api/resources/individual/types/PatientUpdate.d.ts +3 -2
  177. package/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +3 -2
  178. package/api/resources/insuranceAdjudications/client/Client.d.ts +2 -10
  179. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +11 -4
  180. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +86 -47
  181. package/api/resources/insurancePayments/client/Client.d.ts +2 -10
  182. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -3
  183. package/api/resources/insurancePayments/resources/v1/client/Client.js +78 -50
  184. package/api/resources/insurancePayments/resources/v1/client/index.d.ts +1 -1
  185. package/api/resources/insurancePayments/resources/v1/client/index.js +4 -4
  186. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +3 -9
  187. package/api/resources/insuranceRefunds/client/Client.d.ts +2 -10
  188. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +15 -6
  189. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +188 -108
  190. package/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -1
  191. package/api/resources/insuranceRefunds/resources/v1/client/index.js +4 -4
  192. package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +3 -9
  193. package/api/resources/medicationDispense/client/Client.d.ts +2 -10
  194. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +7 -2
  195. package/api/resources/medicationDispense/resources/v1/client/Client.js +39 -24
  196. package/api/resources/nonInsurancePayerPayments/client/Client.d.ts +2 -10
  197. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +15 -6
  198. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +188 -108
  199. package/api/resources/nonInsurancePayerPayments/resources/v1/client/index.d.ts +1 -1
  200. package/api/resources/nonInsurancePayerPayments/resources/v1/client/index.js +4 -4
  201. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +3 -9
  202. package/api/resources/nonInsurancePayerRefunds/client/Client.d.ts +2 -10
  203. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +15 -6
  204. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +188 -108
  205. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.d.ts +1 -1
  206. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.js +4 -4
  207. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +3 -9
  208. package/api/resources/nonInsurancePayers/client/Client.d.ts +2 -10
  209. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +19 -8
  210. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +252 -143
  211. package/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -1
  212. package/api/resources/nonInsurancePayers/resources/v1/client/index.js +4 -4
  213. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +2 -6
  214. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +3 -9
  215. package/api/resources/organizationProviders/client/Client.d.ts +2 -10
  216. package/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +5 -1
  217. package/api/resources/organizationProviders/resources/v2/types/LicenseType.js +4 -0
  218. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +13 -5
  219. package/api/resources/organizationProviders/resources/v3/client/Client.js +142 -82
  220. package/api/resources/organizationProviders/resources/v3/client/index.d.ts +1 -1
  221. package/api/resources/organizationProviders/resources/v3/client/index.js +4 -4
  222. package/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +8 -24
  223. package/api/resources/organizationServiceFacilities/client/Client.d.ts +2 -10
  224. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +28 -6
  225. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +261 -100
  226. package/api/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +28 -0
  227. package/api/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.js +68 -0
  228. package/api/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +2 -1
  229. package/api/resources/organizationServiceFacilities/resources/v2/client/index.js +6 -5
  230. package/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +8 -12
  231. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +4 -0
  232. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +4 -0
  233. package/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +4 -0
  234. package/api/resources/patientAr/client/Client.d.ts +2 -10
  235. package/api/resources/patientAr/resources/v1/client/Client.d.ts +9 -3
  236. package/api/resources/patientAr/resources/v1/client/Client.js +78 -50
  237. package/api/resources/patientAr/resources/v1/client/index.d.ts +1 -1
  238. package/api/resources/patientAr/resources/v1/client/index.js +4 -4
  239. package/api/resources/patientAr/resources/v1/client/requests/GetInventoryRecordsRequest.d.ts +2 -6
  240. package/api/resources/patientPayments/client/Client.d.ts +2 -10
  241. package/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +1 -1
  242. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +15 -6
  243. package/api/resources/patientPayments/resources/v4/client/Client.js +188 -108
  244. package/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -1
  245. package/api/resources/patientPayments/resources/v4/client/index.js +4 -4
  246. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -12
  247. package/api/resources/patientRefunds/client/Client.d.ts +2 -10
  248. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +15 -6
  249. package/api/resources/patientRefunds/resources/v1/client/Client.js +188 -108
  250. package/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -1
  251. package/api/resources/patientRefunds/resources/v1/client/index.js +4 -4
  252. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -12
  253. package/api/resources/payerPlanGroups/client/Client.d.ts +2 -10
  254. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +15 -6
  255. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +192 -112
  256. package/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +1 -1
  257. package/api/resources/payerPlanGroups/resources/v1/client/index.js +4 -4
  258. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +3 -9
  259. package/api/resources/payers/client/Client.d.ts +5 -10
  260. package/api/resources/payers/client/Client.js +5 -0
  261. package/api/resources/payers/resources/index.d.ts +1 -0
  262. package/api/resources/payers/resources/index.js +2 -1
  263. package/api/resources/payers/resources/v3/client/Client.d.ts +9 -3
  264. package/api/resources/payers/resources/v3/client/Client.js +54 -34
  265. package/api/resources/payers/resources/v3/client/index.d.ts +1 -1
  266. package/api/resources/payers/resources/v3/client/index.js +4 -4
  267. package/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -3
  268. package/api/resources/payers/resources/v4/client/Client.d.ts +51 -0
  269. package/api/resources/payers/resources/v4/client/Client.js +177 -0
  270. package/{dist/api/resources/auth/resources/default/client/getMachineTokenForOrgId.d.ts → api/resources/payers/resources/v4/client/get.d.ts} +4 -4
  271. package/{dist/api/resources/auth/resources/default/client/getMachineTokenForOrgId.js → api/resources/payers/resources/v4/client/get.js} +1 -1
  272. package/api/resources/payers/resources/v4/client/getAll.d.ts +22 -0
  273. package/api/resources/payers/resources/v4/client/getAll.js +57 -0
  274. package/api/resources/payers/resources/v4/client/index.d.ts +3 -0
  275. package/api/resources/payers/resources/v4/client/index.js +42 -0
  276. package/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +14 -0
  277. package/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.js +5 -0
  278. package/api/resources/payers/resources/v4/client/requests/index.d.ts +1 -0
  279. package/api/resources/payers/resources/v4/client/requests/index.js +2 -0
  280. package/api/resources/payers/resources/v4/index.d.ts +2 -0
  281. package/api/resources/payers/resources/v4/index.js +18 -0
  282. package/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
  283. package/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +5 -0
  284. package/api/resources/payers/resources/v4/types/Payer.d.ts +16 -0
  285. package/api/resources/payers/resources/v4/types/Payer.js +5 -0
  286. package/api/resources/payers/resources/v4/types/PayerIds.d.ts +11 -0
  287. package/api/resources/payers/resources/v4/types/PayerIds.js +5 -0
  288. package/api/resources/payers/resources/v4/types/PayerPage.d.ts +7 -0
  289. package/api/resources/payers/resources/v4/types/PayerPage.js +5 -0
  290. package/api/resources/payers/resources/v4/types/PayerUuid.d.ts +8 -0
  291. package/api/resources/payers/resources/v4/types/PayerUuid.js +9 -0
  292. package/api/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +11 -0
  293. package/api/resources/payers/resources/v4/types/PrimaryPayerIds.js +5 -0
  294. package/api/resources/payers/resources/v4/types/SupportState.d.ts +9 -0
  295. package/api/resources/payers/resources/v4/types/SupportState.js +11 -0
  296. package/api/resources/payers/resources/v4/types/index.d.ts +7 -0
  297. package/api/resources/payers/resources/v4/types/index.js +23 -0
  298. package/api/resources/preEncounter/client/Client.d.ts +2 -10
  299. package/api/resources/preEncounter/resources/appointments/client/Client.d.ts +2 -10
  300. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +22 -11
  301. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +254 -147
  302. package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -1
  303. package/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +4 -4
  304. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +1 -1
  305. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +2 -6
  306. package/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +11 -0
  307. package/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.js +9 -0
  308. package/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  309. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  310. package/api/resources/preEncounter/resources/common/types/index.js +1 -0
  311. package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +2 -10
  312. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -14
  313. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +296 -163
  314. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -1
  315. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +4 -4
  316. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -3
  317. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageScanRequest.d.ts +1 -1
  318. package/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  319. package/api/resources/preEncounter/resources/eligibilityChecks/client/Client.d.ts +2 -10
  320. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +17 -7
  321. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +160 -88
  322. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -1
  323. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +4 -4
  324. package/api/resources/preEncounter/resources/images/client/Client.d.ts +2 -10
  325. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -6
  326. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +175 -99
  327. package/api/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +1 -1
  328. package/api/resources/preEncounter/resources/images/resources/v1/client/index.js +4 -4
  329. package/api/resources/preEncounter/resources/lists/client/Client.d.ts +2 -10
  330. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +9 -3
  331. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +67 -44
  332. package/api/resources/preEncounter/resources/lists/resources/v1/client/index.d.ts +1 -1
  333. package/api/resources/preEncounter/resources/lists/resources/v1/client/index.js +4 -4
  334. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -9
  335. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -6
  336. package/api/resources/preEncounter/resources/notes/client/Client.d.ts +2 -10
  337. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +13 -5
  338. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +100 -51
  339. package/api/resources/preEncounter/resources/patients/client/Client.d.ts +2 -10
  340. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +41 -27
  341. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +435 -221
  342. package/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +28 -0
  343. package/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +68 -0
  344. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +2 -1
  345. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +6 -5
  346. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +0 -4
  347. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +2 -6
  348. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -3
  349. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -1
  350. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -3
  351. package/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  352. package/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +7 -0
  353. package/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +5 -0
  354. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +5 -1
  355. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +10 -0
  356. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js +5 -0
  357. package/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +2 -1
  358. package/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -0
  359. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
  360. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
  361. package/api/resources/preEncounter/resources/tags/client/Client.d.ts +2 -10
  362. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +15 -6
  363. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +127 -67
  364. package/api/resources/preEncounter/resources/tags/resources/v1/client/index.d.ts +1 -1
  365. package/api/resources/preEncounter/resources/tags/resources/v1/client/index.js +4 -4
  366. package/api/resources/serviceFacility/client/Client.d.ts +7 -2
  367. package/api/resources/serviceFacility/client/Client.js +27 -16
  368. package/api/resources/serviceLines/client/Client.d.ts +2 -10
  369. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +34 -4
  370. package/api/resources/serviceLines/resources/v2/client/Client.js +261 -61
  371. package/api/resources/serviceLines/resources/v2/client/createUniversal.d.ts +28 -0
  372. package/api/resources/serviceLines/resources/v2/client/createUniversal.js +68 -0
  373. package/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  374. package/api/resources/serviceLines/resources/v2/client/index.js +3 -1
  375. package/api/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +40 -0
  376. package/api/resources/serviceLines/resources/v2/client/updateUniversal.js +90 -0
  377. package/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +12 -9
  378. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -45
  379. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +7 -0
  380. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +5 -0
  381. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +47 -0
  382. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +5 -0
  383. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +9 -9
  384. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -47
  385. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +7 -0
  386. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +5 -0
  387. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +49 -0
  388. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +5 -0
  389. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -45
  390. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +45 -0
  391. package/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +5 -0
  392. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +13 -0
  393. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +5 -0
  394. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +12 -0
  395. package/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +5 -0
  396. package/api/resources/serviceLines/resources/v2/types/index.d.ts +7 -0
  397. package/api/resources/serviceLines/resources/v2/types/index.js +7 -0
  398. package/api/resources/superbills/client/Client.d.ts +2 -10
  399. package/api/resources/superbills/resources/v1/client/Client.d.ts +7 -2
  400. package/api/resources/superbills/resources/v1/client/Client.js +39 -24
  401. package/api/resources/superbills/resources/v1/client/index.d.ts +1 -1
  402. package/api/resources/superbills/resources/v1/client/index.js +4 -4
  403. package/api/resources/tasks/client/Client.d.ts +2 -10
  404. package/api/resources/tasks/resources/v3/client/Client.d.ts +15 -6
  405. package/api/resources/tasks/resources/v3/client/Client.js +168 -96
  406. package/api/resources/tasks/resources/v3/client/index.d.ts +1 -1
  407. package/api/resources/tasks/resources/v3/client/index.js +4 -4
  408. package/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +10 -30
  409. package/api/resources/writeOffs/client/Client.d.ts +2 -10
  410. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +19 -9
  411. package/api/resources/writeOffs/resources/v1/client/Client.js +160 -90
  412. package/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -1
  413. package/api/resources/writeOffs/resources/v1/client/index.js +4 -4
  414. package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +2 -2
  415. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +4 -12
  416. package/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +1 -7
  417. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +12 -0
  418. package/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +5 -0
  419. package/api/resources/x12/resources/v1/types/index.d.ts +1 -0
  420. package/api/resources/x12/resources/v1/types/index.js +1 -0
  421. package/core/auth/AuthProvider.d.ts +4 -0
  422. package/core/auth/AuthProvider.js +2 -0
  423. package/core/auth/AuthRequest.d.ts +9 -0
  424. package/core/auth/AuthRequest.js +2 -0
  425. package/core/auth/BasicAuth.js +3 -3
  426. package/core/base64.d.ts +2 -0
  427. package/core/base64.js +26 -0
  428. package/core/fetcher/APIResponse.d.ts +10 -0
  429. package/core/fetcher/BinaryResponse.d.ts +20 -0
  430. package/core/fetcher/BinaryResponse.js +17 -0
  431. package/core/fetcher/Fetcher.d.ts +4 -3
  432. package/core/fetcher/Fetcher.js +32 -12
  433. package/core/fetcher/Headers.d.ts +2 -0
  434. package/core/fetcher/Headers.js +84 -0
  435. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  436. package/core/fetcher/HttpResponsePromise.js +103 -0
  437. package/core/fetcher/RawResponse.d.ts +29 -0
  438. package/core/fetcher/RawResponse.js +44 -0
  439. package/core/fetcher/ResponseWithBody.d.ts +4 -0
  440. package/core/fetcher/ResponseWithBody.js +6 -0
  441. package/core/fetcher/createRequestUrl.d.ts +1 -1
  442. package/core/fetcher/createRequestUrl.js +3 -7
  443. package/core/fetcher/getErrorResponseBody.d.ts +1 -0
  444. package/core/fetcher/getErrorResponseBody.js +44 -0
  445. package/core/fetcher/getFetchFn.js +3 -3
  446. package/core/fetcher/getResponseBody.js +34 -32
  447. package/core/fetcher/index.d.ts +5 -1
  448. package/core/fetcher/index.js +7 -1
  449. package/core/fetcher/requestWithRetries.js +44 -8
  450. package/core/form-data-utils/FormDataWrapper.d.ts +4 -0
  451. package/core/form-data-utils/FormDataWrapper.js +58 -13
  452. package/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  453. package/core/form-data-utils/encodeAsFormParameter.js +12 -0
  454. package/core/form-data-utils/index.d.ts +1 -0
  455. package/core/form-data-utils/index.js +3 -0
  456. package/core/headers.d.ts +3 -0
  457. package/core/headers.js +29 -0
  458. package/core/index.d.ts +2 -0
  459. package/core/index.js +3 -1
  460. package/core/runtime/runtime.js +0 -1
  461. package/core/schemas/builders/lazy/index.d.ts +1 -1
  462. package/core/schemas/builders/literals/index.d.ts +1 -1
  463. package/core/schemas/builders/literals/index.js +3 -3
  464. package/core/schemas/builders/object/index.d.ts +2 -2
  465. package/core/schemas/builders/object/object.d.ts +1 -1
  466. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +1 -1
  467. package/core/schemas/builders/object/types.d.ts +1 -1
  468. package/core/schemas/builders/schema-utils/index.d.ts +1 -1
  469. package/core/schemas/builders/undiscriminated-union/types.d.ts +1 -1
  470. package/core/schemas/builders/union/index.d.ts +1 -1
  471. package/core/schemas/builders/union/types.d.ts +1 -1
  472. package/core/schemas/builders/union/union.d.ts +1 -1
  473. package/core/schemas/utils/maybeSkipValidation.js +1 -1
  474. package/core/url/index.d.ts +2 -0
  475. package/core/url/index.js +7 -0
  476. package/core/url/join.d.ts +1 -0
  477. package/core/url/join.js +69 -0
  478. package/core/url/qs.d.ts +6 -0
  479. package/core/url/qs.js +64 -0
  480. package/dist/Client.d.ts +5 -1
  481. package/dist/Client.js +10 -4
  482. package/dist/api/resources/auth/client/Client.d.ts +2 -10
  483. package/dist/api/resources/auth/resources/default/client/Client.d.ts +7 -12
  484. package/dist/api/resources/auth/resources/default/client/Client.js +39 -66
  485. package/dist/api/resources/auth/resources/default/client/index.d.ts +1 -2
  486. package/dist/api/resources/auth/resources/default/client/index.js +5 -6
  487. package/dist/api/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  488. package/dist/api/resources/billingNotes/client/Client.d.ts +2 -10
  489. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +13 -5
  490. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +100 -54
  491. package/dist/api/resources/billingNotes/resources/v2/client/index.d.ts +1 -1
  492. package/dist/api/resources/billingNotes/resources/v2/client/index.js +4 -4
  493. package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +2 -1
  494. package/dist/api/resources/billingNotes/resources/v2/types/BillingNote.d.ts +1 -1
  495. package/dist/api/resources/chargeCapture/client/Client.d.ts +2 -10
  496. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +17 -7
  497. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +278 -117
  498. package/dist/api/resources/chargeCapture/resources/v1/client/index.d.ts +1 -1
  499. package/dist/api/resources/chargeCapture/resources/v1/client/index.js +4 -4
  500. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +46 -84
  501. package/dist/api/resources/chargeCaptureBundles/client/Client.d.ts +2 -10
  502. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +13 -5
  503. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +153 -66
  504. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.d.ts +1 -1
  505. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/index.js +4 -4
  506. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +26 -48
  507. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreate.d.ts +2 -2
  508. package/dist/api/resources/claimSubmission/resources/v1/types/ClaimSubmissionRecordCreateOptional.d.ts +2 -2
  509. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreate.d.ts +4 -4
  510. package/dist/api/resources/claimSubmission/resources/v1/types/ExternalClaimSubmissionCreateOptional.d.ts +4 -4
  511. package/dist/api/resources/claims/types/Claim.d.ts +5 -5
  512. package/dist/api/resources/commons/types/Clearinghouse.d.ts +14 -0
  513. package/dist/api/resources/commons/types/Clearinghouse.js +16 -0
  514. package/dist/api/resources/commons/types/ProcedureModifier.d.ts +13 -2
  515. package/dist/api/resources/commons/types/ProcedureModifier.js +11 -0
  516. package/dist/api/resources/commons/types/index.d.ts +1 -0
  517. package/dist/api/resources/commons/types/index.js +1 -0
  518. package/dist/api/resources/contracts/client/Client.d.ts +2 -10
  519. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +30 -7
  520. package/dist/api/resources/contracts/resources/v2/client/Client.js +179 -93
  521. package/dist/api/resources/contracts/resources/v2/client/index.d.ts +1 -1
  522. package/dist/api/resources/contracts/resources/v2/client/index.js +4 -4
  523. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +15 -1
  524. package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +5 -15
  525. package/dist/api/resources/credentialing/client/Client.d.ts +2 -10
  526. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +25 -11
  527. package/dist/api/resources/credentialing/resources/v2/client/Client.js +374 -211
  528. package/dist/api/resources/credentialing/resources/v2/client/index.d.ts +1 -1
  529. package/dist/api/resources/credentialing/resources/v2/client/index.js +4 -4
  530. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllFacilityCredentialingSpansRequest.d.ts +4 -12
  531. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +5 -15
  532. package/dist/api/resources/customSchemas/client/Client.d.ts +2 -10
  533. package/dist/api/resources/customSchemas/resources/v1/client/Client.d.ts +13 -5
  534. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +154 -89
  535. package/dist/api/resources/customSchemas/resources/v1/client/index.d.ts +1 -1
  536. package/dist/api/resources/customSchemas/resources/v1/client/index.js +4 -4
  537. package/dist/api/resources/diagnoses/client/Client.d.ts +13 -6
  538. package/dist/api/resources/diagnoses/client/Client.js +101 -56
  539. package/dist/api/resources/diagnoses/client/index.d.ts +1 -1
  540. package/dist/api/resources/diagnoses/client/index.js +4 -4
  541. package/dist/api/resources/diagnoses/types/Diagnosis.d.ts +2 -2
  542. package/dist/api/resources/eligibility/client/Client.d.ts +2 -10
  543. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +11 -4
  544. package/dist/api/resources/eligibility/resources/v2/client/Client.js +102 -52
  545. package/dist/api/resources/encounterAttachments/client/Client.d.ts +2 -10
  546. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +11 -4
  547. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +74 -37
  548. package/dist/api/resources/encounterAttachments/resources/v1/client/index.d.ts +1 -1
  549. package/dist/api/resources/encounterAttachments/resources/v1/client/index.js +4 -4
  550. package/dist/api/resources/encounterProviders/client/Client.d.ts +2 -10
  551. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +29 -13
  552. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +449 -238
  553. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProvider.d.ts +1 -1
  554. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdate.d.ts +1 -1
  555. package/dist/api/resources/encounterProviders/resources/v2/types/BillingProviderUpdateWithOptionalAddress.d.ts +1 -1
  556. package/dist/api/resources/encounters/client/Client.d.ts +2 -10
  557. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +60 -46
  558. package/dist/api/resources/encounters/resources/v4/client/Client.js +217 -136
  559. package/dist/api/resources/encounters/resources/v4/client/create.d.ts +7 -1
  560. package/dist/api/resources/encounters/resources/v4/client/create.js +11 -0
  561. package/dist/api/resources/encounters/resources/v4/client/index.d.ts +1 -1
  562. package/dist/api/resources/encounters/resources/v4/client/index.js +4 -4
  563. package/dist/api/resources/encounters/resources/v4/client/requests/GetAllEncountersRequest.d.ts +14 -40
  564. package/dist/api/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
  565. package/dist/api/resources/encounters/resources/v4/types/ClinicalNoteCategory.d.ts +1 -1
  566. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +27 -41
  567. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +10 -11
  568. package/dist/api/resources/encounters/resources/v4/types/EncounterCreate.d.ts +27 -0
  569. package/dist/api/resources/encounters/resources/v4/types/EncounterCreate.js +5 -0
  570. package/dist/api/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +3 -36
  571. package/dist/api/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +9 -4
  572. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +10 -16
  573. package/dist/api/resources/encounters/resources/v4/types/EncounterPage.d.ts +14 -21
  574. package/dist/api/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +5 -0
  575. package/dist/api/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js +5 -0
  576. package/dist/api/resources/encounters/resources/v4/types/EncounterSubmissionExpectation.d.ts +2 -3
  577. package/dist/api/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +17 -0
  578. package/dist/api/resources/encounters/resources/v4/types/EncounterUpdate.js +5 -0
  579. package/dist/api/resources/encounters/resources/v4/types/index.d.ts +7 -4
  580. package/dist/api/resources/encounters/resources/v4/types/index.js +7 -4
  581. package/dist/api/resources/encountersUniversal/index.d.ts +1 -0
  582. package/dist/api/resources/encountersUniversal/index.js +17 -0
  583. package/dist/api/resources/{encounters/resources/v4/client/requests/EncounterCreate.d.ts → encountersUniversal/types/UniversalEncounterCreateBase.d.ts} +9 -70
  584. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateBase.js +5 -0
  585. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +40 -0
  586. package/dist/api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +5 -0
  587. package/dist/api/resources/{encounters/resources/v4/client/requests/EncounterUpdate.d.ts → encountersUniversal/types/UniversalEncounterUpdateBase.d.ts} +9 -18
  588. package/dist/api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.js +5 -0
  589. package/dist/api/resources/encountersUniversal/types/index.d.ts +3 -0
  590. package/dist/api/resources/encountersUniversal/types/index.js +19 -0
  591. package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +2 -10
  592. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +7 -2
  593. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +27 -16
  594. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/index.d.ts +1 -1
  595. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/index.js +4 -4
  596. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +9 -3
  597. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +79 -46
  598. package/dist/api/resources/exports/client/Client.d.ts +2 -10
  599. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +7 -2
  600. package/dist/api/resources/exports/resources/v3/client/Client.js +39 -27
  601. package/dist/api/resources/exports/resources/v3/client/index.d.ts +1 -1
  602. package/dist/api/resources/exports/resources/v3/client/index.js +4 -4
  603. package/dist/api/resources/exports/resources/v3/types/GetExportsResponse.d.ts +2 -2
  604. package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +2 -10
  605. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +7 -2
  606. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +28 -20
  607. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/index.d.ts +1 -1
  608. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/index.js +4 -4
  609. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -3
  610. package/dist/api/resources/feeSchedules/client/Client.d.ts +2 -10
  611. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +40 -12
  612. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +413 -199
  613. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +22 -0
  614. package/dist/api/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +57 -0
  615. package/dist/api/resources/feeSchedules/resources/v3/client/index.d.ts +2 -1
  616. package/dist/api/resources/feeSchedules/resources/v3/client/index.js +6 -5
  617. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -3
  618. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +2 -6
  619. package/dist/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
  620. package/dist/api/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +5 -0
  621. package/dist/api/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
  622. package/dist/api/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
  623. package/dist/api/resources/financials/types/PatientTransactionSource.d.ts +2 -1
  624. package/dist/api/resources/financials/types/PatientTransactionSource.js +1 -0
  625. package/dist/api/resources/guarantor/client/Client.d.ts +2 -10
  626. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +11 -4
  627. package/dist/api/resources/guarantor/resources/v1/client/Client.js +91 -50
  628. package/dist/api/resources/guarantor/resources/v1/types/Guarantor.d.ts +2 -0
  629. package/dist/api/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +2 -0
  630. package/dist/api/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
  631. package/dist/api/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
  632. package/dist/api/resources/healthCareCodeInformation/client/Client.d.ts +2 -10
  633. package/dist/api/resources/healthCareCodeInformation/resources/v1/client/Client.d.ts +9 -3
  634. package/dist/api/resources/healthCareCodeInformation/resources/v1/client/Client.js +78 -47
  635. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +433 -40
  636. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  637. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +12 -1
  638. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -52
  639. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +14 -1
  640. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceCode.d.ts +3 -0
  641. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceInformation.d.ts +6 -0
  642. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +24 -5
  643. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +5 -1
  644. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/OtherProcedureInformation.d.ts +6 -0
  645. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/PrincipalProcedureInformation.d.ts +6 -0
  646. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/Rd8Date.d.ts +12 -0
  647. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -2
  648. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -2
  649. package/dist/api/resources/importInvoice/client/Client.d.ts +2 -10
  650. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +13 -5
  651. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +142 -82
  652. package/dist/api/resources/importInvoice/resources/v1/client/index.d.ts +1 -1
  653. package/dist/api/resources/importInvoice/resources/v1/client/index.js +4 -4
  654. package/dist/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +7 -21
  655. package/dist/api/resources/index.d.ts +1 -0
  656. package/dist/api/resources/index.js +3 -2
  657. package/dist/api/resources/individual/types/Patient.d.ts +2 -0
  658. package/dist/api/resources/individual/types/PatientBase.d.ts +2 -2
  659. package/dist/api/resources/individual/types/PatientCreate.d.ts +2 -0
  660. package/dist/api/resources/individual/types/PatientUpdate.d.ts +3 -2
  661. package/dist/api/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +3 -2
  662. package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +2 -10
  663. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +11 -4
  664. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +86 -47
  665. package/dist/api/resources/insurancePayments/client/Client.d.ts +2 -10
  666. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -3
  667. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +78 -50
  668. package/dist/api/resources/insurancePayments/resources/v1/client/index.d.ts +1 -1
  669. package/dist/api/resources/insurancePayments/resources/v1/client/index.js +4 -4
  670. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +3 -9
  671. package/dist/api/resources/insuranceRefunds/client/Client.d.ts +2 -10
  672. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +15 -6
  673. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +188 -108
  674. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.d.ts +1 -1
  675. package/dist/api/resources/insuranceRefunds/resources/v1/client/index.js +4 -4
  676. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +3 -9
  677. package/dist/api/resources/medicationDispense/client/Client.d.ts +2 -10
  678. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +7 -2
  679. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +39 -24
  680. package/dist/api/resources/nonInsurancePayerPayments/client/Client.d.ts +2 -10
  681. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +15 -6
  682. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +188 -108
  683. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/index.d.ts +1 -1
  684. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/index.js +4 -4
  685. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +3 -9
  686. package/dist/api/resources/nonInsurancePayerRefunds/client/Client.d.ts +2 -10
  687. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +15 -6
  688. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +188 -108
  689. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.d.ts +1 -1
  690. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/index.js +4 -4
  691. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +3 -9
  692. package/dist/api/resources/nonInsurancePayers/client/Client.d.ts +2 -10
  693. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +19 -8
  694. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +252 -143
  695. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.d.ts +1 -1
  696. package/dist/api/resources/nonInsurancePayers/resources/v1/client/index.js +4 -4
  697. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +2 -6
  698. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetNonInsurancePayersCategoriesRequest.d.ts +3 -9
  699. package/dist/api/resources/organizationProviders/client/Client.d.ts +2 -10
  700. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +5 -1
  701. package/dist/api/resources/organizationProviders/resources/v2/types/LicenseType.js +4 -0
  702. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +13 -5
  703. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +142 -82
  704. package/dist/api/resources/organizationProviders/resources/v3/client/index.d.ts +1 -1
  705. package/dist/api/resources/organizationProviders/resources/v3/client/index.js +4 -4
  706. package/dist/api/resources/organizationProviders/resources/v3/client/requests/GetAllOrganizationProvidersRequestV2.d.ts +8 -24
  707. package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +2 -10
  708. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +28 -6
  709. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +261 -100
  710. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +28 -0
  711. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.js +68 -0
  712. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +2 -1
  713. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/index.js +6 -5
  714. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/requests/GetAllOrganizationServiceFacilitiesRequest.d.ts +8 -12
  715. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +4 -0
  716. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +4 -0
  717. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +4 -0
  718. package/dist/api/resources/patientAr/client/Client.d.ts +2 -10
  719. package/dist/api/resources/patientAr/resources/v1/client/Client.d.ts +9 -3
  720. package/dist/api/resources/patientAr/resources/v1/client/Client.js +78 -50
  721. package/dist/api/resources/patientAr/resources/v1/client/index.d.ts +1 -1
  722. package/dist/api/resources/patientAr/resources/v1/client/index.js +4 -4
  723. package/dist/api/resources/patientAr/resources/v1/client/requests/GetInventoryRecordsRequest.d.ts +2 -6
  724. package/dist/api/resources/patientPayments/client/Client.d.ts +2 -10
  725. package/dist/api/resources/patientPayments/resources/v3/types/PatientPayment.d.ts +1 -1
  726. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +15 -6
  727. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +188 -108
  728. package/dist/api/resources/patientPayments/resources/v4/client/index.d.ts +1 -1
  729. package/dist/api/resources/patientPayments/resources/v4/client/index.js +4 -4
  730. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +4 -12
  731. package/dist/api/resources/patientRefunds/client/Client.d.ts +2 -10
  732. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +15 -6
  733. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +188 -108
  734. package/dist/api/resources/patientRefunds/resources/v1/client/index.d.ts +1 -1
  735. package/dist/api/resources/patientRefunds/resources/v1/client/index.js +4 -4
  736. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +4 -12
  737. package/dist/api/resources/payerPlanGroups/client/Client.d.ts +2 -10
  738. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +15 -6
  739. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +192 -112
  740. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.d.ts +1 -1
  741. package/dist/api/resources/payerPlanGroups/resources/v1/client/index.js +4 -4
  742. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +3 -9
  743. package/dist/api/resources/payers/client/Client.d.ts +5 -10
  744. package/dist/api/resources/payers/client/Client.js +5 -0
  745. package/dist/api/resources/payers/resources/index.d.ts +1 -0
  746. package/dist/api/resources/payers/resources/index.js +2 -1
  747. package/dist/api/resources/payers/resources/v3/client/Client.d.ts +9 -3
  748. package/dist/api/resources/payers/resources/v3/client/Client.js +54 -34
  749. package/dist/api/resources/payers/resources/v3/client/index.d.ts +1 -1
  750. package/dist/api/resources/payers/resources/v3/client/index.js +4 -4
  751. package/dist/api/resources/payers/resources/v3/client/requests/GetAllPayersRequest.d.ts +1 -3
  752. package/dist/api/resources/payers/resources/v4/client/Client.d.ts +51 -0
  753. package/dist/api/resources/payers/resources/v4/client/Client.js +177 -0
  754. package/dist/api/resources/payers/resources/v4/client/get.d.ts +22 -0
  755. package/dist/api/resources/payers/resources/v4/client/get.js +57 -0
  756. package/dist/api/resources/payers/resources/v4/client/getAll.d.ts +22 -0
  757. package/dist/api/resources/payers/resources/v4/client/getAll.js +57 -0
  758. package/dist/api/resources/payers/resources/v4/client/index.d.ts +3 -0
  759. package/dist/api/resources/payers/resources/v4/client/index.js +42 -0
  760. package/dist/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.d.ts +14 -0
  761. package/dist/api/resources/payers/resources/v4/client/requests/GetAllPayersRequest.js +5 -0
  762. package/dist/api/resources/payers/resources/v4/client/requests/index.d.ts +1 -0
  763. package/dist/api/resources/payers/resources/v4/client/requests/index.js +2 -0
  764. package/dist/api/resources/payers/resources/v4/index.d.ts +2 -0
  765. package/dist/api/resources/payers/resources/v4/index.js +18 -0
  766. package/dist/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
  767. package/dist/api/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +5 -0
  768. package/dist/api/resources/payers/resources/v4/types/Payer.d.ts +16 -0
  769. package/dist/api/resources/payers/resources/v4/types/Payer.js +5 -0
  770. package/dist/api/resources/payers/resources/v4/types/PayerIds.d.ts +11 -0
  771. package/dist/api/resources/payers/resources/v4/types/PayerIds.js +5 -0
  772. package/dist/api/resources/payers/resources/v4/types/PayerPage.d.ts +7 -0
  773. package/dist/api/resources/payers/resources/v4/types/PayerPage.js +5 -0
  774. package/dist/api/resources/payers/resources/v4/types/PayerUuid.d.ts +8 -0
  775. package/dist/api/resources/payers/resources/v4/types/PayerUuid.js +9 -0
  776. package/dist/api/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +11 -0
  777. package/dist/api/resources/payers/resources/v4/types/PrimaryPayerIds.js +5 -0
  778. package/dist/api/resources/payers/resources/v4/types/SupportState.d.ts +9 -0
  779. package/dist/api/resources/payers/resources/v4/types/SupportState.js +11 -0
  780. package/dist/api/resources/payers/resources/v4/types/index.d.ts +7 -0
  781. package/dist/api/resources/payers/resources/v4/types/index.js +23 -0
  782. package/dist/api/resources/preEncounter/client/Client.d.ts +2 -10
  783. package/dist/api/resources/preEncounter/resources/appointments/client/Client.d.ts +2 -10
  784. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +22 -11
  785. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +254 -147
  786. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.d.ts +1 -1
  787. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/index.js +4 -4
  788. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/AppointmentScanRequest.d.ts +1 -1
  789. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +2 -6
  790. package/dist/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +11 -0
  791. package/dist/api/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.js +9 -0
  792. package/dist/api/resources/preEncounter/resources/common/types/FilterQueryString.d.ts +1 -1
  793. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  794. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -0
  795. package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +2 -10
  796. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -14
  797. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +296 -163
  798. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -1
  799. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +4 -4
  800. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -3
  801. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageScanRequest.d.ts +1 -1
  802. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  803. package/dist/api/resources/preEncounter/resources/eligibilityChecks/client/Client.d.ts +2 -10
  804. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +17 -7
  805. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +160 -88
  806. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.d.ts +1 -1
  807. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/index.js +4 -4
  808. package/dist/api/resources/preEncounter/resources/images/client/Client.d.ts +2 -10
  809. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -6
  810. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +175 -99
  811. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/index.d.ts +1 -1
  812. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/index.js +4 -4
  813. package/dist/api/resources/preEncounter/resources/lists/client/Client.d.ts +2 -10
  814. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +9 -3
  815. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +67 -44
  816. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/index.d.ts +1 -1
  817. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/index.js +4 -4
  818. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +3 -9
  819. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +2 -6
  820. package/dist/api/resources/preEncounter/resources/notes/client/Client.d.ts +2 -10
  821. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +13 -5
  822. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +100 -51
  823. package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +2 -10
  824. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +41 -27
  825. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +435 -221
  826. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +28 -0
  827. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +68 -0
  828. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +2 -1
  829. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +6 -5
  830. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +0 -4
  831. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +2 -6
  832. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -3
  833. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientScanRequest.d.ts +1 -1
  834. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -3
  835. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  836. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +7 -0
  837. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +5 -0
  838. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +5 -1
  839. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +10 -0
  840. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js +5 -0
  841. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +2 -1
  842. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -0
  843. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
  844. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
  845. package/dist/api/resources/preEncounter/resources/tags/client/Client.d.ts +2 -10
  846. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +15 -6
  847. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +127 -67
  848. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/index.d.ts +1 -1
  849. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/index.js +4 -4
  850. package/dist/api/resources/serviceFacility/client/Client.d.ts +7 -2
  851. package/dist/api/resources/serviceFacility/client/Client.js +27 -16
  852. package/dist/api/resources/serviceLines/client/Client.d.ts +2 -10
  853. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +34 -4
  854. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +261 -61
  855. package/dist/api/resources/serviceLines/resources/v2/client/createUniversal.d.ts +28 -0
  856. package/dist/api/resources/serviceLines/resources/v2/client/createUniversal.js +68 -0
  857. package/dist/api/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  858. package/dist/api/resources/serviceLines/resources/v2/client/index.js +3 -1
  859. package/dist/api/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +40 -0
  860. package/dist/api/resources/serviceLines/resources/v2/client/updateUniversal.js +90 -0
  861. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLine.d.ts +12 -9
  862. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +1 -45
  863. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +7 -0
  864. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +5 -0
  865. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +47 -0
  866. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +5 -0
  867. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +9 -9
  868. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +1 -47
  869. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +7 -0
  870. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +5 -0
  871. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +49 -0
  872. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +5 -0
  873. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +1 -45
  874. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +45 -0
  875. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +5 -0
  876. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +13 -0
  877. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +5 -0
  878. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +12 -0
  879. package/dist/api/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +5 -0
  880. package/dist/api/resources/serviceLines/resources/v2/types/index.d.ts +7 -0
  881. package/dist/api/resources/serviceLines/resources/v2/types/index.js +7 -0
  882. package/dist/api/resources/superbills/client/Client.d.ts +2 -10
  883. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +7 -2
  884. package/dist/api/resources/superbills/resources/v1/client/Client.js +39 -24
  885. package/dist/api/resources/superbills/resources/v1/client/index.d.ts +1 -1
  886. package/dist/api/resources/superbills/resources/v1/client/index.js +4 -4
  887. package/dist/api/resources/tasks/client/Client.d.ts +2 -10
  888. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +15 -6
  889. package/dist/api/resources/tasks/resources/v3/client/Client.js +168 -96
  890. package/dist/api/resources/tasks/resources/v3/client/index.d.ts +1 -1
  891. package/dist/api/resources/tasks/resources/v3/client/index.js +4 -4
  892. package/dist/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +10 -30
  893. package/dist/api/resources/writeOffs/client/Client.d.ts +2 -10
  894. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +19 -9
  895. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +160 -90
  896. package/dist/api/resources/writeOffs/resources/v1/client/index.d.ts +1 -1
  897. package/dist/api/resources/writeOffs/resources/v1/client/index.js +4 -4
  898. package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +2 -2
  899. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +4 -12
  900. package/dist/api/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +1 -7
  901. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +12 -0
  902. package/dist/api/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +5 -0
  903. package/dist/api/resources/x12/resources/v1/types/index.d.ts +1 -0
  904. package/dist/api/resources/x12/resources/v1/types/index.js +1 -0
  905. package/dist/core/auth/AuthProvider.d.ts +4 -0
  906. package/dist/core/auth/AuthProvider.js +2 -0
  907. package/dist/core/auth/AuthRequest.d.ts +9 -0
  908. package/dist/core/auth/AuthRequest.js +2 -0
  909. package/dist/core/auth/BasicAuth.js +3 -3
  910. package/dist/core/base64.d.ts +2 -0
  911. package/dist/core/base64.js +26 -0
  912. package/dist/core/fetcher/APIResponse.d.ts +10 -0
  913. package/dist/core/fetcher/BinaryResponse.d.ts +20 -0
  914. package/dist/core/fetcher/BinaryResponse.js +17 -0
  915. package/dist/core/fetcher/Fetcher.d.ts +4 -3
  916. package/dist/core/fetcher/Fetcher.js +32 -12
  917. package/dist/core/fetcher/Headers.d.ts +2 -0
  918. package/dist/core/fetcher/Headers.js +84 -0
  919. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  920. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  921. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  922. package/dist/core/fetcher/RawResponse.js +44 -0
  923. package/dist/core/fetcher/ResponseWithBody.d.ts +4 -0
  924. package/dist/core/fetcher/ResponseWithBody.js +6 -0
  925. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  926. package/dist/core/fetcher/createRequestUrl.js +3 -7
  927. package/dist/core/fetcher/getErrorResponseBody.d.ts +1 -0
  928. package/dist/core/fetcher/getErrorResponseBody.js +44 -0
  929. package/dist/core/fetcher/getFetchFn.js +3 -3
  930. package/dist/core/fetcher/getResponseBody.js +34 -32
  931. package/dist/core/fetcher/index.d.ts +5 -1
  932. package/dist/core/fetcher/index.js +7 -1
  933. package/dist/core/fetcher/requestWithRetries.js +44 -8
  934. package/dist/core/form-data-utils/FormDataWrapper.d.ts +4 -0
  935. package/dist/core/form-data-utils/FormDataWrapper.js +58 -13
  936. package/dist/core/form-data-utils/encodeAsFormParameter.d.ts +1 -0
  937. package/dist/core/form-data-utils/encodeAsFormParameter.js +12 -0
  938. package/dist/core/form-data-utils/index.d.ts +1 -0
  939. package/dist/core/form-data-utils/index.js +3 -0
  940. package/dist/core/headers.d.ts +3 -0
  941. package/dist/core/headers.js +29 -0
  942. package/dist/core/index.d.ts +2 -0
  943. package/dist/core/index.js +3 -1
  944. package/dist/core/runtime/runtime.js +0 -1
  945. package/dist/core/schemas/builders/lazy/index.d.ts +1 -1
  946. package/dist/core/schemas/builders/literals/index.d.ts +1 -1
  947. package/dist/core/schemas/builders/literals/index.js +3 -3
  948. package/dist/core/schemas/builders/object/index.d.ts +2 -2
  949. package/dist/core/schemas/builders/object/object.d.ts +1 -1
  950. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +1 -1
  951. package/dist/core/schemas/builders/object/types.d.ts +1 -1
  952. package/dist/core/schemas/builders/schema-utils/index.d.ts +1 -1
  953. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +1 -1
  954. package/dist/core/schemas/builders/union/index.d.ts +1 -1
  955. package/dist/core/schemas/builders/union/types.d.ts +1 -1
  956. package/dist/core/schemas/builders/union/union.d.ts +1 -1
  957. package/dist/core/schemas/utils/maybeSkipValidation.js +1 -1
  958. package/dist/core/url/index.d.ts +2 -0
  959. package/dist/core/url/index.js +7 -0
  960. package/dist/core/url/join.d.ts +1 -0
  961. package/dist/core/url/join.js +69 -0
  962. package/dist/core/url/qs.d.ts +6 -0
  963. package/dist/core/url/qs.js +64 -0
  964. package/dist/errors/CandidApiError.d.ts +4 -1
  965. package/dist/errors/CandidApiError.js +4 -7
  966. package/dist/index.d.ts +2 -2
  967. package/dist/index.js +5 -5
  968. package/dist/serialization/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  969. package/dist/serialization/resources/auth/resources/default/client/requests/index.js +1 -3
  970. package/dist/serialization/resources/commons/types/Clearinghouse.d.ts +10 -0
  971. package/dist/serialization/resources/commons/types/Clearinghouse.js +50 -0
  972. package/dist/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  973. package/dist/serialization/resources/commons/types/ProcedureModifier.js +11 -0
  974. package/dist/serialization/resources/commons/types/index.d.ts +1 -0
  975. package/dist/serialization/resources/commons/types/index.js +1 -0
  976. package/dist/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
  977. package/dist/serialization/resources/encounters/resources/v4/client/create.js +6 -0
  978. package/dist/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -1
  979. package/dist/serialization/resources/encounters/resources/v4/client/index.js +0 -4
  980. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -4
  981. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -4
  982. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -2
  983. package/dist/serialization/resources/encounters/resources/v4/types/EncounterBase.js +2 -2
  984. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreate.d.ts +22 -0
  985. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreate.js +55 -0
  986. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +4 -28
  987. package/dist/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.js +4 -28
  988. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +2 -0
  989. package/dist/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +2 -0
  990. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -2
  991. package/dist/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -2
  992. package/dist/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +11 -0
  993. package/{serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → dist/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js} +3 -5
  994. package/dist/serialization/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +16 -0
  995. package/dist/serialization/resources/encounters/resources/v4/types/EncounterUpdate.js +49 -0
  996. package/dist/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -4
  997. package/dist/serialization/resources/encounters/resources/v4/types/index.js +7 -4
  998. package/dist/serialization/resources/encountersUniversal/index.d.ts +1 -0
  999. package/dist/serialization/resources/encountersUniversal/index.js +17 -0
  1000. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +50 -0
  1001. package/{serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js → dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js} +21 -31
  1002. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +36 -0
  1003. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +69 -0
  1004. package/dist/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +46 -0
  1005. package/dist/serialization/resources/{encounters/resources/v4/client/requests/EncounterUpdate.js → encountersUniversal/types/UniversalEncounterUpdateBase.js} +20 -22
  1006. package/dist/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
  1007. package/dist/serialization/resources/encountersUniversal/types/index.js +19 -0
  1008. package/dist/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +9 -0
  1009. package/dist/serialization/resources/{auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → feeSchedules/resources/v3/client/hardDeleteRatesByIds.js} +3 -5
  1010. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  1011. package/dist/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  1012. package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
  1013. package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +44 -0
  1014. package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
  1015. package/dist/serialization/resources/feeSchedules/resources/v3/client/requests/index.js +3 -1
  1016. package/dist/serialization/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
  1017. package/dist/serialization/resources/feeSchedules/resources/v3/types/ValidationError.js +1 -0
  1018. package/dist/serialization/resources/financials/types/PatientTransactionSource.d.ts +1 -1
  1019. package/dist/serialization/resources/financials/types/PatientTransactionSource.js +10 -1
  1020. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -0
  1021. package/dist/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -0
  1022. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +1 -0
  1023. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +1 -0
  1024. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
  1025. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +1 -0
  1026. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
  1027. package/dist/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.js +1 -0
  1028. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +1 -1
  1029. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  1030. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +2 -2
  1031. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.js +2 -2
  1032. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -12
  1033. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.js +1 -14
  1034. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +2 -2
  1035. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.js +2 -2
  1036. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +1 -1
  1037. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +19 -1
  1038. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -2
  1039. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -2
  1040. package/dist/serialization/resources/index.d.ts +1 -0
  1041. package/dist/serialization/resources/index.js +3 -2
  1042. package/dist/serialization/resources/individual/types/Patient.d.ts +1 -0
  1043. package/dist/serialization/resources/individual/types/Patient.js +1 -0
  1044. package/dist/serialization/resources/individual/types/PatientCreate.d.ts +1 -0
  1045. package/dist/serialization/resources/individual/types/PatientCreate.js +1 -0
  1046. package/dist/serialization/resources/individual/types/PatientUpdate.d.ts +1 -0
  1047. package/dist/serialization/resources/individual/types/PatientUpdate.js +1 -0
  1048. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +1 -0
  1049. package/dist/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +1 -0
  1050. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  1051. package/dist/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +4 -0
  1052. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +15 -0
  1053. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.js +71 -0
  1054. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +1 -0
  1055. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/client/index.js +2 -1
  1056. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +3 -0
  1057. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +3 -0
  1058. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +3 -0
  1059. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +3 -0
  1060. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +3 -0
  1061. package/dist/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +3 -0
  1062. package/dist/serialization/resources/payers/resources/index.d.ts +1 -0
  1063. package/dist/serialization/resources/payers/resources/index.js +2 -1
  1064. package/dist/serialization/resources/payers/resources/v4/index.d.ts +1 -0
  1065. package/dist/serialization/resources/payers/resources/v4/index.js +17 -0
  1066. package/dist/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
  1067. package/dist/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +51 -0
  1068. package/dist/serialization/resources/payers/resources/v4/types/Payer.d.ts +22 -0
  1069. package/dist/serialization/resources/payers/resources/v4/types/Payer.js +53 -0
  1070. package/dist/serialization/resources/payers/resources/v4/types/PayerIds.d.ts +14 -0
  1071. package/{serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js → dist/serialization/resources/payers/resources/v4/types/PayerIds.js} +6 -45
  1072. package/dist/serialization/resources/payers/resources/v4/types/PayerPage.d.ts +14 -0
  1073. package/dist/serialization/resources/payers/resources/v4/types/PayerPage.js +47 -0
  1074. package/dist/serialization/resources/payers/resources/v4/types/PayerUuid.d.ts +10 -0
  1075. package/dist/serialization/resources/payers/resources/v4/types/PayerUuid.js +45 -0
  1076. package/dist/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +14 -0
  1077. package/dist/serialization/resources/{healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js → payers/resources/v4/types/PrimaryPayerIds.js} +6 -45
  1078. package/dist/serialization/resources/payers/resources/v4/types/SupportState.d.ts +10 -0
  1079. package/dist/serialization/resources/payers/resources/v4/types/SupportState.js +41 -0
  1080. package/dist/serialization/resources/payers/resources/v4/types/index.d.ts +7 -0
  1081. package/dist/serialization/resources/payers/resources/v4/types/index.js +23 -0
  1082. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +10 -0
  1083. package/dist/serialization/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.js +45 -0
  1084. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  1085. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  1086. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  1087. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +1 -1
  1088. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +15 -0
  1089. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +71 -0
  1090. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  1091. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  1092. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  1093. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
  1094. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +13 -0
  1095. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +44 -0
  1096. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +5 -1
  1097. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +5 -1
  1098. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +13 -0
  1099. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js +44 -0
  1100. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +1 -1
  1101. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -1
  1102. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
  1103. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
  1104. package/dist/serialization/resources/serviceLines/resources/v2/client/createUniversal.d.ts +15 -0
  1105. package/dist/serialization/resources/serviceLines/resources/v2/client/createUniversal.js +71 -0
  1106. package/dist/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  1107. package/dist/serialization/resources/serviceLines/resources/v2/client/index.js +3 -1
  1108. package/dist/serialization/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +25 -0
  1109. package/dist/serialization/resources/serviceLines/resources/v2/client/updateUniversal.js +83 -0
  1110. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -23
  1111. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +5 -24
  1112. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +13 -0
  1113. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +46 -0
  1114. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +32 -0
  1115. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +63 -0
  1116. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
  1117. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
  1118. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -27
  1119. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -28
  1120. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +13 -0
  1121. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +46 -0
  1122. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +36 -0
  1123. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +67 -0
  1124. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -24
  1125. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -25
  1126. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +34 -0
  1127. package/dist/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +65 -0
  1128. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +19 -0
  1129. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +52 -0
  1130. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +18 -0
  1131. package/dist/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +51 -0
  1132. package/dist/serialization/resources/serviceLines/resources/v2/types/index.d.ts +7 -0
  1133. package/dist/serialization/resources/serviceLines/resources/v2/types/index.js +7 -0
  1134. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +2 -7
  1135. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -8
  1136. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +17 -0
  1137. package/dist/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +48 -0
  1138. package/dist/serialization/resources/x12/resources/v1/types/index.d.ts +1 -0
  1139. package/dist/serialization/resources/x12/resources/v1/types/index.js +1 -0
  1140. package/dist/version.d.ts +1 -1
  1141. package/dist/version.js +1 -1
  1142. package/errors/CandidApiError.d.ts +4 -1
  1143. package/errors/CandidApiError.js +4 -7
  1144. package/index.d.ts +2 -2
  1145. package/index.js +5 -5
  1146. package/jest.config.mjs +37 -3
  1147. package/package.json +18 -12
  1148. package/reference.md +474 -116
  1149. package/scripts/rename-to-esm-files.js +10 -2
  1150. package/serialization/resources/auth/resources/default/client/requests/index.d.ts +0 -1
  1151. package/serialization/resources/auth/resources/default/client/requests/index.js +1 -3
  1152. package/serialization/resources/commons/types/Clearinghouse.d.ts +10 -0
  1153. package/serialization/resources/commons/types/Clearinghouse.js +50 -0
  1154. package/serialization/resources/commons/types/ProcedureModifier.d.ts +1 -1
  1155. package/serialization/resources/commons/types/ProcedureModifier.js +11 -0
  1156. package/serialization/resources/commons/types/index.d.ts +1 -0
  1157. package/serialization/resources/commons/types/index.js +1 -0
  1158. package/serialization/resources/encounters/resources/v4/client/create.d.ts +6 -1
  1159. package/serialization/resources/encounters/resources/v4/client/create.js +6 -0
  1160. package/serialization/resources/encounters/resources/v4/client/index.d.ts +0 -1
  1161. package/serialization/resources/encounters/resources/v4/client/index.js +0 -4
  1162. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +3 -4
  1163. package/serialization/resources/encounters/resources/v4/types/Encounter.js +3 -4
  1164. package/serialization/resources/encounters/resources/v4/types/EncounterBase.d.ts +2 -2
  1165. package/serialization/resources/encounters/resources/v4/types/EncounterBase.js +2 -2
  1166. package/serialization/resources/encounters/resources/v4/types/EncounterCreate.d.ts +22 -0
  1167. package/serialization/resources/encounters/resources/v4/types/EncounterCreate.js +55 -0
  1168. package/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.d.ts +4 -28
  1169. package/serialization/resources/encounters/resources/v4/types/EncounterCreateFromPreEncounter.js +4 -28
  1170. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.d.ts +2 -0
  1171. package/serialization/resources/encounters/resources/v4/types/EncounterDeepOptional.js +2 -0
  1172. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.d.ts +0 -2
  1173. package/serialization/resources/encounters/resources/v4/types/EncounterOptional.js +0 -2
  1174. package/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.d.ts +11 -0
  1175. package/serialization/resources/encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js +41 -0
  1176. package/serialization/resources/encounters/resources/v4/types/EncounterUpdate.d.ts +16 -0
  1177. package/serialization/resources/encounters/resources/v4/types/EncounterUpdate.js +49 -0
  1178. package/serialization/resources/encounters/resources/v4/types/index.d.ts +7 -4
  1179. package/serialization/resources/encounters/resources/v4/types/index.js +7 -4
  1180. package/serialization/resources/encountersUniversal/index.d.ts +1 -0
  1181. package/serialization/resources/encountersUniversal/index.js +17 -0
  1182. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.d.ts +50 -0
  1183. package/{dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js → serialization/resources/encountersUniversal/types/UniversalEncounterCreateBase.js} +21 -31
  1184. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.d.ts +36 -0
  1185. package/serialization/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js +69 -0
  1186. package/serialization/resources/encountersUniversal/types/UniversalEncounterUpdateBase.d.ts +46 -0
  1187. package/serialization/resources/{encounters/resources/v4/client/requests/EncounterUpdate.js → encountersUniversal/types/UniversalEncounterUpdateBase.js} +20 -22
  1188. package/serialization/resources/encountersUniversal/types/index.d.ts +3 -0
  1189. package/serialization/resources/encountersUniversal/types/index.js +19 -0
  1190. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.d.ts +9 -0
  1191. package/serialization/resources/feeSchedules/resources/v3/client/hardDeleteRatesByIds.js +41 -0
  1192. package/serialization/resources/feeSchedules/resources/v3/client/index.d.ts +1 -0
  1193. package/serialization/resources/feeSchedules/resources/v3/client/index.js +2 -1
  1194. package/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.d.ts +13 -0
  1195. package/serialization/resources/feeSchedules/resources/v3/client/requests/HardDeleteRatesByIdsRequest.js +44 -0
  1196. package/serialization/resources/feeSchedules/resources/v3/client/requests/index.d.ts +1 -0
  1197. package/serialization/resources/feeSchedules/resources/v3/client/requests/index.js +3 -1
  1198. package/serialization/resources/feeSchedules/resources/v3/types/ValidationError.d.ts +4 -1
  1199. package/serialization/resources/feeSchedules/resources/v3/types/ValidationError.js +1 -0
  1200. package/serialization/resources/financials/types/PatientTransactionSource.d.ts +1 -1
  1201. package/serialization/resources/financials/types/PatientTransactionSource.js +10 -1
  1202. package/serialization/resources/guarantor/resources/v1/types/Guarantor.d.ts +1 -0
  1203. package/serialization/resources/guarantor/resources/v1/types/Guarantor.js +1 -0
  1204. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.d.ts +1 -0
  1205. package/serialization/resources/guarantor/resources/v1/types/GuarantorCreate.js +1 -0
  1206. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.d.ts +1 -0
  1207. package/serialization/resources/guarantor/resources/v1/types/GuarantorOptional.js +1 -0
  1208. package/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.d.ts +1 -0
  1209. package/serialization/resources/guarantor/resources/v1/types/GuarantorUpdate.js +1 -0
  1210. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.d.ts +1 -1
  1211. package/serialization/resources/healthCareCodeInformation/resources/v1/types/ConditionCode.js +95 -1
  1212. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.d.ts +2 -2
  1213. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationGetAllResponse.js +2 -2
  1214. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.d.ts +0 -12
  1215. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationNew.js +1 -14
  1216. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.d.ts +2 -2
  1217. package/serialization/resources/healthCareCodeInformation/resources/v1/types/HealthCareCodeInformationUpdate.js +2 -2
  1218. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.d.ts +1 -1
  1219. package/serialization/resources/healthCareCodeInformation/resources/v1/types/OccurrenceSpanCode.js +19 -1
  1220. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.d.ts +0 -2
  1221. package/serialization/resources/healthCareCodeInformation/resources/v1/types/index.js +0 -2
  1222. package/serialization/resources/index.d.ts +1 -0
  1223. package/serialization/resources/index.js +3 -2
  1224. package/serialization/resources/individual/types/Patient.d.ts +1 -0
  1225. package/serialization/resources/individual/types/Patient.js +1 -0
  1226. package/serialization/resources/individual/types/PatientCreate.d.ts +1 -0
  1227. package/serialization/resources/individual/types/PatientCreate.js +1 -0
  1228. package/serialization/resources/individual/types/PatientUpdate.d.ts +1 -0
  1229. package/serialization/resources/individual/types/PatientUpdate.js +1 -0
  1230. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.d.ts +1 -0
  1231. package/serialization/resources/individual/types/PatientUpdateWithOptionalAddress.js +1 -0
  1232. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.d.ts +1 -1
  1233. package/serialization/resources/organizationProviders/resources/v2/types/LicenseType.js +4 -0
  1234. package/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.d.ts +15 -0
  1235. package/serialization/resources/organizationServiceFacilities/resources/v2/client/getByExternalId.js +71 -0
  1236. package/serialization/resources/organizationServiceFacilities/resources/v2/client/index.d.ts +1 -0
  1237. package/serialization/resources/organizationServiceFacilities/resources/v2/client/index.js +2 -1
  1238. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.d.ts +3 -0
  1239. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacility.js +3 -0
  1240. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.d.ts +3 -0
  1241. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityCreate.js +3 -0
  1242. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.d.ts +3 -0
  1243. package/serialization/resources/organizationServiceFacilities/resources/v2/types/OrganizationServiceFacilityUpdate.js +3 -0
  1244. package/serialization/resources/payers/resources/index.d.ts +1 -0
  1245. package/serialization/resources/payers/resources/index.js +2 -1
  1246. package/serialization/resources/payers/resources/v4/index.d.ts +1 -0
  1247. package/serialization/resources/payers/resources/v4/index.js +17 -0
  1248. package/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.d.ts +20 -0
  1249. package/serialization/resources/payers/resources/v4/types/ClearinghousePayerInfo.js +51 -0
  1250. package/serialization/resources/payers/resources/v4/types/Payer.d.ts +22 -0
  1251. package/serialization/resources/payers/resources/v4/types/Payer.js +53 -0
  1252. package/serialization/resources/payers/resources/v4/types/PayerIds.d.ts +14 -0
  1253. package/serialization/resources/payers/resources/v4/types/PayerIds.js +45 -0
  1254. package/serialization/resources/payers/resources/v4/types/PayerPage.d.ts +14 -0
  1255. package/serialization/resources/payers/resources/v4/types/PayerPage.js +47 -0
  1256. package/serialization/resources/payers/resources/v4/types/PayerUuid.d.ts +10 -0
  1257. package/serialization/resources/payers/resources/v4/types/PayerUuid.js +45 -0
  1258. package/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.d.ts +14 -0
  1259. package/serialization/resources/payers/resources/v4/types/PrimaryPayerIds.js +45 -0
  1260. package/serialization/resources/payers/resources/v4/types/SupportState.d.ts +10 -0
  1261. package/serialization/resources/payers/resources/v4/types/SupportState.js +41 -0
  1262. package/serialization/resources/payers/resources/v4/types/index.d.ts +7 -0
  1263. package/serialization/resources/payers/resources/v4/types/index.js +23 -0
  1264. package/serialization/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.d.ts +10 -0
  1265. package/serialization/resources/preEncounter/resources/common/types/CanonicalServiceFacilityId.js +45 -0
  1266. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -0
  1267. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -0
  1268. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.d.ts +1 -1
  1269. package/serialization/resources/preEncounter/resources/coverages/resources/v1/types/Subscriber.js +1 -1
  1270. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.d.ts +15 -0
  1271. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getByMrn.js +71 -0
  1272. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  1273. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -1
  1274. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.d.ts +1 -1
  1275. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/Guarantor.js +1 -1
  1276. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.d.ts +13 -0
  1277. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InferredPatientMetadata.js +44 -0
  1278. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +5 -1
  1279. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.js +5 -1
  1280. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.d.ts +13 -0
  1281. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PatientServiceFacility.js +44 -0
  1282. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.d.ts +1 -1
  1283. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/ReferralType.js +1 -1
  1284. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +2 -0
  1285. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +2 -0
  1286. package/serialization/resources/serviceLines/resources/v2/client/createUniversal.d.ts +15 -0
  1287. package/serialization/resources/serviceLines/resources/v2/client/createUniversal.js +71 -0
  1288. package/serialization/resources/serviceLines/resources/v2/client/index.d.ts +2 -0
  1289. package/serialization/resources/serviceLines/resources/v2/client/index.js +3 -1
  1290. package/serialization/resources/serviceLines/resources/v2/client/updateUniversal.d.ts +25 -0
  1291. package/serialization/resources/serviceLines/resources/v2/client/updateUniversal.js +83 -0
  1292. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +2 -23
  1293. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreate.js +5 -24
  1294. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.d.ts +13 -0
  1295. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBase.js +46 -0
  1296. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.d.ts +32 -0
  1297. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateBaseBase.js +63 -0
  1298. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.d.ts +1 -0
  1299. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateOptional.js +1 -0
  1300. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.d.ts +2 -27
  1301. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandalone.js +5 -28
  1302. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.d.ts +13 -0
  1303. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBase.js +46 -0
  1304. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.d.ts +36 -0
  1305. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineCreateStandaloneBaseBase.js +67 -0
  1306. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.d.ts +2 -24
  1307. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdate.js +5 -25
  1308. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.d.ts +34 -0
  1309. package/serialization/resources/serviceLines/resources/v2/types/ServiceLineUpdateBase.js +65 -0
  1310. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.d.ts +19 -0
  1311. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineCreateStandalone.js +52 -0
  1312. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.d.ts +18 -0
  1313. package/serialization/resources/serviceLines/resources/v2/types/UniversalServiceLineUpdate.js +51 -0
  1314. package/serialization/resources/serviceLines/resources/v2/types/index.d.ts +7 -0
  1315. package/serialization/resources/serviceLines/resources/v2/types/index.js +7 -0
  1316. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.d.ts +2 -7
  1317. package/serialization/resources/x12/resources/v1/types/TypeOfBillComposite.js +5 -8
  1318. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.d.ts +17 -0
  1319. package/serialization/resources/x12/resources/v1/types/TypeOfBillCompositeBase.js +48 -0
  1320. package/serialization/resources/x12/resources/v1/types/index.d.ts +1 -0
  1321. package/serialization/resources/x12/resources/v1/types/index.js +1 -0
  1322. package/version.d.ts +1 -1
  1323. package/version.js +1 -1
  1324. package/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -13
  1325. package/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -4230
  1326. package/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1064
  1327. package/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -174
  1328. package/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -50
  1329. package/dist/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -13
  1330. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -4230
  1331. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1064
  1332. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -174
  1333. package/dist/api/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.js +0 -50
  1334. package/dist/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -12
  1335. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -60
  1336. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +0 -48
  1337. package/dist/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
  1338. package/dist/serialization/resources/encounters/resources/v4/client/requests/index.js +0 -7
  1339. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -10
  1340. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1098
  1341. package/dist/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -10
  1342. package/serialization/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.d.ts +0 -12
  1343. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -60
  1344. package/serialization/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +0 -48
  1345. package/serialization/resources/encounters/resources/v4/client/requests/index.d.ts +0 -2
  1346. package/serialization/resources/encounters/resources/v4/client/requests/index.js +0 -7
  1347. package/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.d.ts +0 -10
  1348. package/serialization/resources/healthCareCodeInformation/resources/v1/types/CodeListQualifierCode.js +0 -1098
  1349. package/serialization/resources/healthCareCodeInformation/resources/v1/types/DateTimePeriodFormatQualifier.d.ts +0 -10
  1350. /package/api/resources/encounters/resources/v4/{client/requests → types}/EncounterCreate.js +0 -0
  1351. /package/api/resources/{auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → encounters/resources/v4/types/EncounterRenderingOrAttendingProviderRequiredError.js} +0 -0
  1352. /package/api/resources/encounters/resources/v4/{client/requests → types}/EncounterUpdate.js +0 -0
  1353. /package/{dist/api/resources/auth/resources/default/client/requests/AuthGetTokenForOrgRequest.js → api/resources/encountersUniversal/types/UniversalEncounterCreateBase.js} +0 -0
  1354. /package/{dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.js → api/resources/encountersUniversal/types/UniversalEncounterCreateFromPreEncounterBase.js} +0 -0
  1355. /package/{dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.js → api/resources/encountersUniversal/types/UniversalEncounterUpdateBase.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.payers.v3.get(CandidApi.payers.v3.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
67
64
  */
68
65
  get(payerUuid, requestOptions) {
66
+ return core.HttpResponsePromise.fromPromise(this.__get(payerUuid, requestOptions));
67
+ }
68
+ __get(payerUuid, 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/payers/v3/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
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/payers/v3/${encodeURIComponent(serializers.payers.v3.PayerUuid.jsonOrThrow(payerUuid))}`),
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.7.0", "User-Agent": "candidhealth/1.7.0", "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.payers.v3.Payer.parseOrThrow(_response.body, {
85
- unrecognizedObjectKeys: "passthrough",
86
- allowUnrecognizedUnionMembers: true,
87
- allowUnrecognizedEnumValues: true,
88
- breadcrumbsPrefix: ["response"],
89
- }),
83
+ data: {
84
+ ok: true,
85
+ body: serializers.payers.v3.Payer.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.payers.v3.get.Error._unknown(_response.error),
98
+ data: {
99
+ ok: false,
100
+ error: CandidApi.payers.v3.get.Error._unknown(_response.error),
101
+ rawResponse: _response.rawResponse,
102
+ },
103
+ rawResponse: _response.rawResponse,
95
104
  };
96
105
  });
97
106
  }
@@ -106,9 +115,12 @@ class V3 {
106
115
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
107
116
  * })
108
117
  */
109
- getAll() {
118
+ getAll(request = {}, requestOptions) {
119
+ return core.HttpResponsePromise.fromPromise(this.__getAll(request, requestOptions));
120
+ }
121
+ __getAll() {
110
122
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
111
- var _a, _b;
123
+ var _a, _b, _c;
112
124
  const { limit, searchTerm, pageToken } = request;
113
125
  const _queryParams = {};
114
126
  if (limit != null) {
@@ -120,31 +132,39 @@ class V3 {
120
132
  if (pageToken != null) {
121
133
  _queryParams["page_token"] = pageToken;
122
134
  }
135
+ 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);
123
136
  const _response = yield core.fetcher({
124
- 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/payers/v3"),
137
+ 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/payers/v3"),
125
138
  method: "GET",
126
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "1.7.0", "User-Agent": "candidhealth/1.7.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
127
- contentType: "application/json",
128
- queryParameters: _queryParams,
129
- requestType: "json",
139
+ headers: _headers,
140
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
130
141
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
131
142
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
132
143
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
133
144
  });
134
145
  if (_response.ok) {
135
146
  return {
136
- ok: true,
137
- body: serializers.payers.v3.PayerPage.parseOrThrow(_response.body, {
138
- unrecognizedObjectKeys: "passthrough",
139
- allowUnrecognizedUnionMembers: true,
140
- allowUnrecognizedEnumValues: true,
141
- breadcrumbsPrefix: ["response"],
142
- }),
147
+ data: {
148
+ ok: true,
149
+ body: serializers.payers.v3.PayerPage.parseOrThrow(_response.body, {
150
+ unrecognizedObjectKeys: "passthrough",
151
+ allowUnrecognizedUnionMembers: true,
152
+ allowUnrecognizedEnumValues: true,
153
+ breadcrumbsPrefix: ["response"],
154
+ }),
155
+ headers: _response.headers,
156
+ rawResponse: _response.rawResponse,
157
+ },
158
+ rawResponse: _response.rawResponse,
143
159
  };
144
160
  }
145
161
  return {
146
- ok: false,
147
- error: CandidApi.payers.v3.getAll.Error._unknown(_response.error),
162
+ data: {
163
+ ok: false,
164
+ error: CandidApi.payers.v3.getAll.Error._unknown(_response.error),
165
+ rawResponse: _response.rawResponse,
166
+ },
167
+ rawResponse: _response.rawResponse,
148
168
  };
149
169
  });
150
170
  }
@@ -1,3 +1,3 @@
1
- export * from "./requests";
2
1
  export * as get from "./get";
3
2
  export * as getAll from "./getAll";
3
+ export * from "./requests";
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
18
  var __importStar = (this && this.__importStar) || (function () {
22
19
  var ownKeys = function(o) {
23
20
  ownKeys = Object.getOwnPropertyNames || function (o) {
@@ -35,8 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
35
32
  return result;
36
33
  };
37
34
  })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.getAll = exports.get = void 0;
40
- __exportStar(require("./requests"), exports);
41
40
  exports.get = __importStar(require("./get"));
42
41
  exports.getAll = __importStar(require("./getAll"));
42
+ __exportStar(require("./requests"), exports);
@@ -11,9 +11,7 @@ import * as CandidApi from "../../../../../../index";
11
11
  * }
12
12
  */
13
13
  export interface GetAllPayersRequest {
14
- /**
15
- * Maximum number of entities per page, defaults to 100.
16
- */
14
+ /** Maximum number of entities per page, defaults to 100. */
17
15
  limit?: number;
18
16
  searchTerm?: string;
19
17
  pageToken?: CandidApi.PageToken;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../../../environments";
5
+ import * as core from "../../../../../../core";
6
+ import * as CandidApi from "../../../../../index";
7
+ export declare namespace V4 {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
+ /** Specify a custom URL to connect the client to. */
11
+ baseUrl?: core.Supplier<string>;
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>;
15
+ }
16
+ interface RequestOptions {
17
+ /** The maximum time to wait for a response in seconds. */
18
+ timeoutInSeconds?: number;
19
+ /** The number of times to retry the request. Defaults to 2. */
20
+ maxRetries?: number;
21
+ /** A hook to abort the request. */
22
+ abortSignal?: AbortSignal;
23
+ /** Additional query string parameters to include in the request. */
24
+ queryParams?: Record<string, unknown>;
25
+ /** Additional headers to include in the request. */
26
+ headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
27
+ }
28
+ }
29
+ export declare class V4 {
30
+ protected readonly _options: V4.Options;
31
+ constructor(_options?: V4.Options);
32
+ /**
33
+ * @param {CandidApi.payers.v4.PayerUuid} payerUuid
34
+ * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
35
+ *
36
+ * @example
37
+ * await client.payers.v4.get(CandidApi.payers.v4.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
38
+ */
39
+ get(payerUuid: CandidApi.payers.v4.PayerUuid, requestOptions?: V4.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.payers.v4.Payer, CandidApi.payers.v4.get.Error>>;
40
+ private __get;
41
+ /**
42
+ * @param {CandidApi.payers.v4.GetAllPayersRequest} request
43
+ * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
45
+ * @example
46
+ * await client.payers.v4.getAll()
47
+ */
48
+ getAll(request?: CandidApi.payers.v4.GetAllPayersRequest, requestOptions?: V4.RequestOptions): core.HttpResponsePromise<core.APIResponse<CandidApi.payers.v4.PayerPage, CandidApi.payers.v4.getAll.Error>>;
49
+ private __getAll;
50
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
51
+ }
@@ -0,0 +1,177 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
39
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
40
+ return new (P || (P = Promise))(function (resolve, reject) {
41
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
42
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
43
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
44
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
45
+ });
46
+ };
47
+ Object.defineProperty(exports, "__esModule", { value: true });
48
+ exports.V4 = void 0;
49
+ const environments = __importStar(require("../../../../../../environments"));
50
+ const core = __importStar(require("../../../../../../core"));
51
+ const CandidApi = __importStar(require("../../../../../index"));
52
+ const headers_1 = require("../../../../../../core/headers");
53
+ const serializers = __importStar(require("../../../../../../serialization/index"));
54
+ class V4 {
55
+ constructor(_options = {}) {
56
+ this._options = _options;
57
+ }
58
+ /**
59
+ * @param {CandidApi.payers.v4.PayerUuid} payerUuid
60
+ * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
61
+ *
62
+ * @example
63
+ * await client.payers.v4.get(CandidApi.payers.v4.PayerUuid("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
64
+ */
65
+ get(payerUuid, requestOptions) {
66
+ return core.HttpResponsePromise.fromPromise(this.__get(payerUuid, requestOptions));
67
+ }
68
+ __get(payerUuid, requestOptions) {
69
+ return __awaiter(this, void 0, void 0, function* () {
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);
72
+ const _response = yield core.fetcher({
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/payers/v4/${encodeURIComponent(serializers.payers.v4.PayerUuid.jsonOrThrow(payerUuid))}`),
74
+ method: "GET",
75
+ headers: _headers,
76
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
77
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
78
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
79
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
+ });
81
+ if (_response.ok) {
82
+ return {
83
+ data: {
84
+ ok: true,
85
+ body: serializers.payers.v4.Payer.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,
95
+ };
96
+ }
97
+ return {
98
+ data: {
99
+ ok: false,
100
+ error: CandidApi.payers.v4.get.Error._unknown(_response.error),
101
+ rawResponse: _response.rawResponse,
102
+ },
103
+ rawResponse: _response.rawResponse,
104
+ };
105
+ });
106
+ }
107
+ /**
108
+ * @param {CandidApi.payers.v4.GetAllPayersRequest} request
109
+ * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
110
+ *
111
+ * @example
112
+ * await client.payers.v4.getAll()
113
+ */
114
+ getAll(request = {}, requestOptions) {
115
+ return core.HttpResponsePromise.fromPromise(this.__getAll(request, requestOptions));
116
+ }
117
+ __getAll() {
118
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
119
+ var _a, _b, _c;
120
+ const { limit, searchTerm, pageToken } = request;
121
+ const _queryParams = {};
122
+ if (limit != null) {
123
+ _queryParams["limit"] = limit.toString();
124
+ }
125
+ if (searchTerm != null) {
126
+ _queryParams["search_term"] = searchTerm;
127
+ }
128
+ if (pageToken != null) {
129
+ _queryParams["page_token"] = pageToken;
130
+ }
131
+ 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);
132
+ const _response = yield core.fetcher({
133
+ 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/payers/v4"),
134
+ method: "GET",
135
+ headers: _headers,
136
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
137
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
138
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
139
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
140
+ });
141
+ if (_response.ok) {
142
+ return {
143
+ data: {
144
+ ok: true,
145
+ body: serializers.payers.v4.PayerPage.parseOrThrow(_response.body, {
146
+ unrecognizedObjectKeys: "passthrough",
147
+ allowUnrecognizedUnionMembers: true,
148
+ allowUnrecognizedEnumValues: true,
149
+ breadcrumbsPrefix: ["response"],
150
+ }),
151
+ headers: _response.headers,
152
+ rawResponse: _response.rawResponse,
153
+ },
154
+ rawResponse: _response.rawResponse,
155
+ };
156
+ }
157
+ return {
158
+ data: {
159
+ ok: false,
160
+ error: CandidApi.payers.v4.getAll.Error._unknown(_response.error),
161
+ rawResponse: _response.rawResponse,
162
+ },
163
+ rawResponse: _response.rawResponse,
164
+ };
165
+ });
166
+ }
167
+ _getAuthorizationHeader() {
168
+ return __awaiter(this, void 0, void 0, function* () {
169
+ const bearer = yield core.Supplier.get(this._options.token);
170
+ if (bearer != null) {
171
+ return `Bearer ${bearer}`;
172
+ }
173
+ return undefined;
174
+ });
175
+ }
176
+ }
177
+ exports.V4 = V4;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.payers.v4.get.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.payers.v4.get.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payers.v4.get.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.payers.v4.get.Error, visitor: CandidApi.payers.v4.get.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.payers.v4.get.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -0,0 +1,22 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../index";
5
+ import * as core from "../../../../../../core";
6
+ export type Error = CandidApi.payers.v4.getAll.Error._Unknown;
7
+ export declare namespace Error {
8
+ interface _Unknown extends _Utils {
9
+ errorName: void;
10
+ content: core.Fetcher.Error;
11
+ }
12
+ interface _Utils {
13
+ _visit: <_Result>(visitor: CandidApi.payers.v4.getAll.Error._Visitor<_Result>) => _Result;
14
+ }
15
+ interface _Visitor<_Result> {
16
+ _other: (value: core.Fetcher.Error) => _Result;
17
+ }
18
+ }
19
+ export declare const Error: {
20
+ readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.payers.v4.getAll.Error._Unknown;
21
+ readonly _visit: <_Result>(value: CandidApi.payers.v4.getAll.Error, visitor: CandidApi.payers.v4.getAll.Error._Visitor<_Result>) => _Result;
22
+ };
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.Error = void 0;
40
+ const CandidApi = __importStar(require("../../../../../index"));
41
+ exports.Error = {
42
+ _unknown: (fetcherError) => {
43
+ return {
44
+ errorName: undefined,
45
+ content: fetcherError,
46
+ _visit: function (visitor) {
47
+ return CandidApi.payers.v4.getAll.Error._visit(this, visitor);
48
+ },
49
+ };
50
+ },
51
+ _visit: (value, visitor) => {
52
+ switch (value.errorName) {
53
+ default:
54
+ return visitor._other(value);
55
+ }
56
+ },
57
+ };
@@ -0,0 +1,3 @@
1
+ export * as get from "./get";
2
+ export * as getAll from "./getAll";
3
+ export * from "./requests";
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
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
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.getAll = exports.get = void 0;
40
+ exports.get = __importStar(require("./get"));
41
+ exports.getAll = __importStar(require("./getAll"));
42
+ __exportStar(require("./requests"), exports);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as CandidApi from "../../../../../../index";
5
+ /**
6
+ * @example
7
+ * {}
8
+ */
9
+ export interface GetAllPayersRequest {
10
+ /** Maximum number of entities per page, defaults to 100. */
11
+ limit?: number;
12
+ searchTerm?: string;
13
+ pageToken?: CandidApi.PageToken;
14
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { type GetAllPayersRequest } from "./GetAllPayersRequest";