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.V2 = void 0;
52
49
  const environments = __importStar(require("../../../../../../environments"));
53
50
  const core = __importStar(require("../../../../../../core"));
54
51
  const CandidApi = __importStar(require("../../../../../index"));
52
+ const headers_1 = require("../../../../../../core/headers");
55
53
  const serializers = __importStar(require("../../../../../../serialization/index"));
56
- const url_join_1 = __importDefault(require("url-join"));
57
54
  class V2 {
58
55
  constructor(_options = {}) {
59
56
  this._options = _options;
@@ -70,13 +67,18 @@ class V2 {
70
67
  * })
71
68
  */
72
69
  createFacility(request, requestOptions) {
70
+ return core.HttpResponsePromise.fromPromise(this.__createFacility(request, requestOptions));
71
+ }
72
+ __createFacility(request, requestOptions) {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
- var _a, _b, _c;
74
+ var _a, _b, _c, _d;
75
+ 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);
75
76
  const _response = yield core.fetcher({
76
- 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/provider-credentialing-span/v2/facility"),
77
+ 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/provider-credentialing-span/v2/facility"),
77
78
  method: "POST",
78
- 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),
79
+ headers: _headers,
79
80
  contentType: "application/json",
81
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
80
82
  requestType: "json",
81
83
  body: serializers.credentialing.v2.FacilityCredentialingSpanCreate.jsonOrThrow(request, {
82
84
  unrecognizedObjectKeys: "strip",
@@ -87,33 +89,46 @@ class V2 {
87
89
  });
88
90
  if (_response.ok) {
89
91
  return {
90
- ok: true,
91
- body: serializers.credentialing.v2.FacilityCredentialingSpan.parseOrThrow(_response.body, {
92
- unrecognizedObjectKeys: "passthrough",
93
- allowUnrecognizedUnionMembers: true,
94
- allowUnrecognizedEnumValues: true,
95
- breadcrumbsPrefix: ["response"],
96
- }),
92
+ data: {
93
+ ok: true,
94
+ body: serializers.credentialing.v2.FacilityCredentialingSpan.parseOrThrow(_response.body, {
95
+ unrecognizedObjectKeys: "passthrough",
96
+ allowUnrecognizedUnionMembers: true,
97
+ allowUnrecognizedEnumValues: true,
98
+ breadcrumbsPrefix: ["response"],
99
+ }),
100
+ headers: _response.headers,
101
+ rawResponse: _response.rawResponse,
102
+ },
103
+ rawResponse: _response.rawResponse,
97
104
  };
98
105
  }
99
106
  if (_response.error.reason === "status-code") {
100
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
107
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
101
108
  case "HttpRequestValidationsError":
102
109
  case "UnauthorizedError":
103
110
  return {
104
- ok: false,
105
- error: serializers.credentialing.v2.createFacility.Error.parseOrThrow(_response.error.body, {
106
- unrecognizedObjectKeys: "passthrough",
107
- allowUnrecognizedUnionMembers: true,
108
- allowUnrecognizedEnumValues: true,
109
- breadcrumbsPrefix: ["response"],
110
- }),
111
+ data: {
112
+ ok: false,
113
+ error: serializers.credentialing.v2.createFacility.Error.parseOrThrow(_response.error.body, {
114
+ unrecognizedObjectKeys: "passthrough",
115
+ allowUnrecognizedUnionMembers: true,
116
+ allowUnrecognizedEnumValues: true,
117
+ breadcrumbsPrefix: ["response"],
118
+ }),
119
+ rawResponse: _response.rawResponse,
120
+ },
121
+ rawResponse: _response.rawResponse,
111
122
  };
112
123
  }
113
124
  }
114
125
  return {
115
- ok: false,
116
- error: CandidApi.credentialing.v2.createFacility.Error._unknown(_response.error),
126
+ data: {
127
+ ok: false,
128
+ error: CandidApi.credentialing.v2.createFacility.Error._unknown(_response.error),
129
+ rawResponse: _response.rawResponse,
130
+ },
131
+ rawResponse: _response.rawResponse,
117
132
  };
118
133
  });
119
134
  }
@@ -125,47 +140,63 @@ class V2 {
125
140
  * await client.credentialing.v2.getFacility(CandidApi.credentialing.v2.FacilityCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
126
141
  */
127
142
  getFacility(facilityCredentialingId, requestOptions) {
143
+ return core.HttpResponsePromise.fromPromise(this.__getFacility(facilityCredentialingId, requestOptions));
144
+ }
145
+ __getFacility(facilityCredentialingId, requestOptions) {
128
146
  return __awaiter(this, void 0, void 0, function* () {
129
- var _a, _b, _c;
147
+ var _a, _b, _c, _d;
148
+ 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);
130
149
  const _response = yield core.fetcher({
131
- 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/provider-credentialing-span/v2/facility/${encodeURIComponent(serializers.credentialing.v2.FacilityCredentialingSpanId.jsonOrThrow(facilityCredentialingId))}`),
150
+ 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/provider-credentialing-span/v2/facility/${encodeURIComponent(serializers.credentialing.v2.FacilityCredentialingSpanId.jsonOrThrow(facilityCredentialingId))}`),
132
151
  method: "GET",
133
- 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),
134
- contentType: "application/json",
135
- requestType: "json",
152
+ headers: _headers,
153
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
136
154
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
137
155
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
138
156
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
139
157
  });
140
158
  if (_response.ok) {
141
159
  return {
142
- ok: true,
143
- body: serializers.credentialing.v2.FacilityCredentialingSpan.parseOrThrow(_response.body, {
144
- unrecognizedObjectKeys: "passthrough",
145
- allowUnrecognizedUnionMembers: true,
146
- allowUnrecognizedEnumValues: true,
147
- breadcrumbsPrefix: ["response"],
148
- }),
160
+ data: {
161
+ ok: true,
162
+ body: serializers.credentialing.v2.FacilityCredentialingSpan.parseOrThrow(_response.body, {
163
+ unrecognizedObjectKeys: "passthrough",
164
+ allowUnrecognizedUnionMembers: true,
165
+ allowUnrecognizedEnumValues: true,
166
+ breadcrumbsPrefix: ["response"],
167
+ }),
168
+ headers: _response.headers,
169
+ rawResponse: _response.rawResponse,
170
+ },
171
+ rawResponse: _response.rawResponse,
149
172
  };
150
173
  }
151
174
  if (_response.error.reason === "status-code") {
152
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
175
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
153
176
  case "EntityNotFoundError":
154
177
  case "UnauthorizedError":
155
178
  return {
156
- ok: false,
157
- error: serializers.credentialing.v2.getFacility.Error.parseOrThrow(_response.error.body, {
158
- unrecognizedObjectKeys: "passthrough",
159
- allowUnrecognizedUnionMembers: true,
160
- allowUnrecognizedEnumValues: true,
161
- breadcrumbsPrefix: ["response"],
162
- }),
179
+ data: {
180
+ ok: false,
181
+ error: serializers.credentialing.v2.getFacility.Error.parseOrThrow(_response.error.body, {
182
+ unrecognizedObjectKeys: "passthrough",
183
+ allowUnrecognizedUnionMembers: true,
184
+ allowUnrecognizedEnumValues: true,
185
+ breadcrumbsPrefix: ["response"],
186
+ }),
187
+ rawResponse: _response.rawResponse,
188
+ },
189
+ rawResponse: _response.rawResponse,
163
190
  };
164
191
  }
165
192
  }
166
193
  return {
167
- ok: false,
168
- error: CandidApi.credentialing.v2.getFacility.Error._unknown(_response.error),
194
+ data: {
195
+ ok: false,
196
+ error: CandidApi.credentialing.v2.getFacility.Error._unknown(_response.error),
197
+ rawResponse: _response.rawResponse,
198
+ },
199
+ rawResponse: _response.rawResponse,
169
200
  };
170
201
  });
171
202
  }
@@ -176,9 +207,12 @@ class V2 {
176
207
  * @example
177
208
  * await client.credentialing.v2.getAllFacilities()
178
209
  */
179
- getAllFacilities() {
210
+ getAllFacilities(request = {}, requestOptions) {
211
+ return core.HttpResponsePromise.fromPromise(this.__getAllFacilities(request, requestOptions));
212
+ }
213
+ __getAllFacilities() {
180
214
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
181
- var _a, _b, _c;
215
+ var _a, _b, _c, _d;
182
216
  const { limit, pageToken, payerUuid, contractingProviderId, serviceFacilityId } = request;
183
217
  const _queryParams = {};
184
218
  if (limit != null) {
@@ -196,46 +230,58 @@ class V2 {
196
230
  if (serviceFacilityId != null) {
197
231
  _queryParams["service_facility_id"] = serviceFacilityId;
198
232
  }
233
+ 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);
199
234
  const _response = yield core.fetcher({
200
- 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/provider-credentialing-span/v2/facility"),
235
+ 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/provider-credentialing-span/v2/facility"),
201
236
  method: "GET",
202
- 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),
203
- contentType: "application/json",
204
- queryParameters: _queryParams,
205
- requestType: "json",
237
+ headers: _headers,
238
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
206
239
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
207
240
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
208
241
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
209
242
  });
210
243
  if (_response.ok) {
211
244
  return {
212
- ok: true,
213
- body: serializers.credentialing.v2.FacilityCredentialingSpanPage.parseOrThrow(_response.body, {
214
- unrecognizedObjectKeys: "passthrough",
215
- allowUnrecognizedUnionMembers: true,
216
- allowUnrecognizedEnumValues: true,
217
- breadcrumbsPrefix: ["response"],
218
- }),
245
+ data: {
246
+ ok: true,
247
+ body: serializers.credentialing.v2.FacilityCredentialingSpanPage.parseOrThrow(_response.body, {
248
+ unrecognizedObjectKeys: "passthrough",
249
+ allowUnrecognizedUnionMembers: true,
250
+ allowUnrecognizedEnumValues: true,
251
+ breadcrumbsPrefix: ["response"],
252
+ }),
253
+ headers: _response.headers,
254
+ rawResponse: _response.rawResponse,
255
+ },
256
+ rawResponse: _response.rawResponse,
219
257
  };
220
258
  }
221
259
  if (_response.error.reason === "status-code") {
222
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
260
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
223
261
  case "UnauthorizedError":
224
262
  case "UnprocessableEntityError":
225
263
  return {
226
- ok: false,
227
- error: serializers.credentialing.v2.getAllFacilities.Error.parseOrThrow(_response.error.body, {
228
- unrecognizedObjectKeys: "passthrough",
229
- allowUnrecognizedUnionMembers: true,
230
- allowUnrecognizedEnumValues: true,
231
- breadcrumbsPrefix: ["response"],
232
- }),
264
+ data: {
265
+ ok: false,
266
+ error: serializers.credentialing.v2.getAllFacilities.Error.parseOrThrow(_response.error.body, {
267
+ unrecognizedObjectKeys: "passthrough",
268
+ allowUnrecognizedUnionMembers: true,
269
+ allowUnrecognizedEnumValues: true,
270
+ breadcrumbsPrefix: ["response"],
271
+ }),
272
+ rawResponse: _response.rawResponse,
273
+ },
274
+ rawResponse: _response.rawResponse,
233
275
  };
234
276
  }
235
277
  }
236
278
  return {
237
- ok: false,
238
- error: CandidApi.credentialing.v2.getAllFacilities.Error._unknown(_response.error),
279
+ data: {
280
+ ok: false,
281
+ error: CandidApi.credentialing.v2.getAllFacilities.Error._unknown(_response.error),
282
+ rawResponse: _response.rawResponse,
283
+ },
284
+ rawResponse: _response.rawResponse,
239
285
  };
240
286
  });
241
287
  }
@@ -249,42 +295,58 @@ class V2 {
249
295
  * await client.credentialing.v2.deleteFacility(CandidApi.credentialing.v2.FacilityCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
250
296
  */
251
297
  deleteFacility(facilityCredentialingId, requestOptions) {
298
+ return core.HttpResponsePromise.fromPromise(this.__deleteFacility(facilityCredentialingId, requestOptions));
299
+ }
300
+ __deleteFacility(facilityCredentialingId, requestOptions) {
252
301
  return __awaiter(this, void 0, void 0, function* () {
253
- var _a, _b, _c;
302
+ var _a, _b, _c, _d;
303
+ 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);
254
304
  const _response = yield core.fetcher({
255
- 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/provider-credentialing-span/v2/facility/${encodeURIComponent(serializers.credentialing.v2.FacilityCredentialingSpanId.jsonOrThrow(facilityCredentialingId))}`),
305
+ 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/provider-credentialing-span/v2/facility/${encodeURIComponent(serializers.credentialing.v2.FacilityCredentialingSpanId.jsonOrThrow(facilityCredentialingId))}`),
256
306
  method: "DELETE",
257
- 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),
258
- contentType: "application/json",
259
- requestType: "json",
307
+ headers: _headers,
308
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
260
309
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
261
310
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
262
311
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
263
312
  });
264
313
  if (_response.ok) {
265
314
  return {
266
- ok: true,
267
- body: undefined,
315
+ data: {
316
+ ok: true,
317
+ body: undefined,
318
+ headers: _response.headers,
319
+ rawResponse: _response.rawResponse,
320
+ },
321
+ rawResponse: _response.rawResponse,
268
322
  };
269
323
  }
270
324
  if (_response.error.reason === "status-code") {
271
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
325
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
272
326
  case "EntityNotFoundError":
273
327
  case "UnauthorizedError":
274
328
  return {
275
- ok: false,
276
- error: serializers.credentialing.v2.deleteFacility.Error.parseOrThrow(_response.error.body, {
277
- unrecognizedObjectKeys: "passthrough",
278
- allowUnrecognizedUnionMembers: true,
279
- allowUnrecognizedEnumValues: true,
280
- breadcrumbsPrefix: ["response"],
281
- }),
329
+ data: {
330
+ ok: false,
331
+ error: serializers.credentialing.v2.deleteFacility.Error.parseOrThrow(_response.error.body, {
332
+ unrecognizedObjectKeys: "passthrough",
333
+ allowUnrecognizedUnionMembers: true,
334
+ allowUnrecognizedEnumValues: true,
335
+ breadcrumbsPrefix: ["response"],
336
+ }),
337
+ rawResponse: _response.rawResponse,
338
+ },
339
+ rawResponse: _response.rawResponse,
282
340
  };
283
341
  }
284
342
  }
285
343
  return {
286
- ok: false,
287
- error: CandidApi.credentialing.v2.deleteFacility.Error._unknown(_response.error),
344
+ data: {
345
+ ok: false,
346
+ error: CandidApi.credentialing.v2.deleteFacility.Error._unknown(_response.error),
347
+ rawResponse: _response.rawResponse,
348
+ },
349
+ rawResponse: _response.rawResponse,
288
350
  };
289
351
  });
290
352
  }
@@ -299,13 +361,18 @@ class V2 {
299
361
  * })
300
362
  */
301
363
  updateFacility(facilityCredentialingId, request, requestOptions) {
364
+ return core.HttpResponsePromise.fromPromise(this.__updateFacility(facilityCredentialingId, request, requestOptions));
365
+ }
366
+ __updateFacility(facilityCredentialingId, request, requestOptions) {
302
367
  return __awaiter(this, void 0, void 0, function* () {
303
- var _a, _b, _c;
368
+ var _a, _b, _c, _d;
369
+ 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);
304
370
  const _response = yield core.fetcher({
305
- 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/provider-credentialing-span/v2/facility/${encodeURIComponent(serializers.credentialing.v2.FacilityCredentialingSpanId.jsonOrThrow(facilityCredentialingId))}`),
371
+ 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/provider-credentialing-span/v2/facility/${encodeURIComponent(serializers.credentialing.v2.FacilityCredentialingSpanId.jsonOrThrow(facilityCredentialingId))}`),
306
372
  method: "PATCH",
307
- 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),
373
+ headers: _headers,
308
374
  contentType: "application/json",
375
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
309
376
  requestType: "json",
310
377
  body: serializers.credentialing.v2.FacilityCredentialingSpanUpdate.jsonOrThrow(request, {
311
378
  unrecognizedObjectKeys: "strip",
@@ -316,35 +383,48 @@ class V2 {
316
383
  });
317
384
  if (_response.ok) {
318
385
  return {
319
- ok: true,
320
- body: serializers.credentialing.v2.FacilityCredentialingSpan.parseOrThrow(_response.body, {
321
- unrecognizedObjectKeys: "passthrough",
322
- allowUnrecognizedUnionMembers: true,
323
- allowUnrecognizedEnumValues: true,
324
- breadcrumbsPrefix: ["response"],
325
- }),
386
+ data: {
387
+ ok: true,
388
+ body: serializers.credentialing.v2.FacilityCredentialingSpan.parseOrThrow(_response.body, {
389
+ unrecognizedObjectKeys: "passthrough",
390
+ allowUnrecognizedUnionMembers: true,
391
+ allowUnrecognizedEnumValues: true,
392
+ breadcrumbsPrefix: ["response"],
393
+ }),
394
+ headers: _response.headers,
395
+ rawResponse: _response.rawResponse,
396
+ },
397
+ rawResponse: _response.rawResponse,
326
398
  };
327
399
  }
328
400
  if (_response.error.reason === "status-code") {
329
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
401
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
330
402
  case "EntityNotFoundError":
331
403
  case "HttpRequestValidationsError":
332
404
  case "UnauthorizedError":
333
405
  case "UnprocessableEntityError":
334
406
  return {
335
- ok: false,
336
- error: serializers.credentialing.v2.updateFacility.Error.parseOrThrow(_response.error.body, {
337
- unrecognizedObjectKeys: "passthrough",
338
- allowUnrecognizedUnionMembers: true,
339
- allowUnrecognizedEnumValues: true,
340
- breadcrumbsPrefix: ["response"],
341
- }),
407
+ data: {
408
+ ok: false,
409
+ error: serializers.credentialing.v2.updateFacility.Error.parseOrThrow(_response.error.body, {
410
+ unrecognizedObjectKeys: "passthrough",
411
+ allowUnrecognizedUnionMembers: true,
412
+ allowUnrecognizedEnumValues: true,
413
+ breadcrumbsPrefix: ["response"],
414
+ }),
415
+ rawResponse: _response.rawResponse,
416
+ },
417
+ rawResponse: _response.rawResponse,
342
418
  };
343
419
  }
344
420
  }
345
421
  return {
346
- ok: false,
347
- error: CandidApi.credentialing.v2.updateFacility.Error._unknown(_response.error),
422
+ data: {
423
+ ok: false,
424
+ error: CandidApi.credentialing.v2.updateFacility.Error._unknown(_response.error),
425
+ rawResponse: _response.rawResponse,
426
+ },
427
+ rawResponse: _response.rawResponse,
348
428
  };
349
429
  });
350
430
  }
@@ -364,13 +444,18 @@ class V2 {
364
444
  * })
365
445
  */
366
446
  create(request, requestOptions) {
447
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
448
+ }
449
+ __create(request, requestOptions) {
367
450
  return __awaiter(this, void 0, void 0, function* () {
368
- var _a, _b, _c;
451
+ var _a, _b, _c, _d;
452
+ 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);
369
453
  const _response = yield core.fetcher({
370
- 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/provider-credentialing-span/v2"),
454
+ 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/provider-credentialing-span/v2"),
371
455
  method: "POST",
372
- 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),
456
+ headers: _headers,
373
457
  contentType: "application/json",
458
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
374
459
  requestType: "json",
375
460
  body: serializers.credentialing.v2.ProviderCredentialingSpanCreate.jsonOrThrow(request, {
376
461
  unrecognizedObjectKeys: "strip",
@@ -381,33 +466,46 @@ class V2 {
381
466
  });
382
467
  if (_response.ok) {
383
468
  return {
384
- ok: true,
385
- body: serializers.credentialing.v2.ProviderCredentialingSpan.parseOrThrow(_response.body, {
386
- unrecognizedObjectKeys: "passthrough",
387
- allowUnrecognizedUnionMembers: true,
388
- allowUnrecognizedEnumValues: true,
389
- breadcrumbsPrefix: ["response"],
390
- }),
469
+ data: {
470
+ ok: true,
471
+ body: serializers.credentialing.v2.ProviderCredentialingSpan.parseOrThrow(_response.body, {
472
+ unrecognizedObjectKeys: "passthrough",
473
+ allowUnrecognizedUnionMembers: true,
474
+ allowUnrecognizedEnumValues: true,
475
+ breadcrumbsPrefix: ["response"],
476
+ }),
477
+ headers: _response.headers,
478
+ rawResponse: _response.rawResponse,
479
+ },
480
+ rawResponse: _response.rawResponse,
391
481
  };
392
482
  }
393
483
  if (_response.error.reason === "status-code") {
394
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
484
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
395
485
  case "HttpRequestValidationsError":
396
486
  case "UnauthorizedError":
397
487
  return {
398
- ok: false,
399
- error: serializers.credentialing.v2.create.Error.parseOrThrow(_response.error.body, {
400
- unrecognizedObjectKeys: "passthrough",
401
- allowUnrecognizedUnionMembers: true,
402
- allowUnrecognizedEnumValues: true,
403
- breadcrumbsPrefix: ["response"],
404
- }),
488
+ data: {
489
+ ok: false,
490
+ error: serializers.credentialing.v2.create.Error.parseOrThrow(_response.error.body, {
491
+ unrecognizedObjectKeys: "passthrough",
492
+ allowUnrecognizedUnionMembers: true,
493
+ allowUnrecognizedEnumValues: true,
494
+ breadcrumbsPrefix: ["response"],
495
+ }),
496
+ rawResponse: _response.rawResponse,
497
+ },
498
+ rawResponse: _response.rawResponse,
405
499
  };
406
500
  }
407
501
  }
408
502
  return {
409
- ok: false,
410
- error: CandidApi.credentialing.v2.create.Error._unknown(_response.error),
503
+ data: {
504
+ ok: false,
505
+ error: CandidApi.credentialing.v2.create.Error._unknown(_response.error),
506
+ rawResponse: _response.rawResponse,
507
+ },
508
+ rawResponse: _response.rawResponse,
411
509
  };
412
510
  });
413
511
  }
@@ -419,47 +517,63 @@ class V2 {
419
517
  * await client.credentialing.v2.get(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
420
518
  */
421
519
  get(providerCredentialingId, requestOptions) {
520
+ return core.HttpResponsePromise.fromPromise(this.__get(providerCredentialingId, requestOptions));
521
+ }
522
+ __get(providerCredentialingId, requestOptions) {
422
523
  return __awaiter(this, void 0, void 0, function* () {
423
- var _a, _b, _c;
524
+ var _a, _b, _c, _d;
525
+ 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);
424
526
  const _response = yield core.fetcher({
425
- 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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
527
+ 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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
426
528
  method: "GET",
427
- 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),
428
- contentType: "application/json",
429
- requestType: "json",
529
+ headers: _headers,
530
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
430
531
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
431
532
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
432
533
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
433
534
  });
434
535
  if (_response.ok) {
435
536
  return {
436
- ok: true,
437
- body: serializers.credentialing.v2.ProviderCredentialingSpan.parseOrThrow(_response.body, {
438
- unrecognizedObjectKeys: "passthrough",
439
- allowUnrecognizedUnionMembers: true,
440
- allowUnrecognizedEnumValues: true,
441
- breadcrumbsPrefix: ["response"],
442
- }),
537
+ data: {
538
+ ok: true,
539
+ body: serializers.credentialing.v2.ProviderCredentialingSpan.parseOrThrow(_response.body, {
540
+ unrecognizedObjectKeys: "passthrough",
541
+ allowUnrecognizedUnionMembers: true,
542
+ allowUnrecognizedEnumValues: true,
543
+ breadcrumbsPrefix: ["response"],
544
+ }),
545
+ headers: _response.headers,
546
+ rawResponse: _response.rawResponse,
547
+ },
548
+ rawResponse: _response.rawResponse,
443
549
  };
444
550
  }
445
551
  if (_response.error.reason === "status-code") {
446
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
552
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
447
553
  case "EntityNotFoundError":
448
554
  case "UnauthorizedError":
449
555
  return {
450
- ok: false,
451
- error: serializers.credentialing.v2.get.Error.parseOrThrow(_response.error.body, {
452
- unrecognizedObjectKeys: "passthrough",
453
- allowUnrecognizedUnionMembers: true,
454
- allowUnrecognizedEnumValues: true,
455
- breadcrumbsPrefix: ["response"],
456
- }),
556
+ data: {
557
+ ok: false,
558
+ error: serializers.credentialing.v2.get.Error.parseOrThrow(_response.error.body, {
559
+ unrecognizedObjectKeys: "passthrough",
560
+ allowUnrecognizedUnionMembers: true,
561
+ allowUnrecognizedEnumValues: true,
562
+ breadcrumbsPrefix: ["response"],
563
+ }),
564
+ rawResponse: _response.rawResponse,
565
+ },
566
+ rawResponse: _response.rawResponse,
457
567
  };
458
568
  }
459
569
  }
460
570
  return {
461
- ok: false,
462
- error: CandidApi.credentialing.v2.get.Error._unknown(_response.error),
571
+ data: {
572
+ ok: false,
573
+ error: CandidApi.credentialing.v2.get.Error._unknown(_response.error),
574
+ rawResponse: _response.rawResponse,
575
+ },
576
+ rawResponse: _response.rawResponse,
463
577
  };
464
578
  });
465
579
  }
@@ -470,9 +584,12 @@ class V2 {
470
584
  * @example
471
585
  * await client.credentialing.v2.getAll()
472
586
  */
473
- getAll() {
587
+ getAll(request = {}, requestOptions) {
588
+ return core.HttpResponsePromise.fromPromise(this.__getAll(request, requestOptions));
589
+ }
590
+ __getAll() {
474
591
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
475
- var _a, _b, _c;
592
+ var _a, _b, _c, _d;
476
593
  const { limit, pageToken, payerUuid, providerId, asRenderingProvider, asContractingProvider } = request;
477
594
  const _queryParams = {};
478
595
  if (limit != null) {
@@ -493,46 +610,58 @@ class V2 {
493
610
  if (asContractingProvider != null) {
494
611
  _queryParams["as_contracting_provider"] = asContractingProvider.toString();
495
612
  }
613
+ 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);
496
614
  const _response = yield core.fetcher({
497
- 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/provider-credentialing-span/v2"),
615
+ 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/provider-credentialing-span/v2"),
498
616
  method: "GET",
499
- 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),
500
- contentType: "application/json",
501
- queryParameters: _queryParams,
502
- requestType: "json",
617
+ headers: _headers,
618
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
503
619
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
504
620
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
505
621
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
506
622
  });
507
623
  if (_response.ok) {
508
624
  return {
509
- ok: true,
510
- body: serializers.credentialing.v2.ProviderCredentialingSpanPage.parseOrThrow(_response.body, {
511
- unrecognizedObjectKeys: "passthrough",
512
- allowUnrecognizedUnionMembers: true,
513
- allowUnrecognizedEnumValues: true,
514
- breadcrumbsPrefix: ["response"],
515
- }),
625
+ data: {
626
+ ok: true,
627
+ body: serializers.credentialing.v2.ProviderCredentialingSpanPage.parseOrThrow(_response.body, {
628
+ unrecognizedObjectKeys: "passthrough",
629
+ allowUnrecognizedUnionMembers: true,
630
+ allowUnrecognizedEnumValues: true,
631
+ breadcrumbsPrefix: ["response"],
632
+ }),
633
+ headers: _response.headers,
634
+ rawResponse: _response.rawResponse,
635
+ },
636
+ rawResponse: _response.rawResponse,
516
637
  };
517
638
  }
518
639
  if (_response.error.reason === "status-code") {
519
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
640
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
520
641
  case "UnauthorizedError":
521
642
  case "UnprocessableEntityError":
522
643
  return {
523
- ok: false,
524
- error: serializers.credentialing.v2.getAll.Error.parseOrThrow(_response.error.body, {
525
- unrecognizedObjectKeys: "passthrough",
526
- allowUnrecognizedUnionMembers: true,
527
- allowUnrecognizedEnumValues: true,
528
- breadcrumbsPrefix: ["response"],
529
- }),
644
+ data: {
645
+ ok: false,
646
+ error: serializers.credentialing.v2.getAll.Error.parseOrThrow(_response.error.body, {
647
+ unrecognizedObjectKeys: "passthrough",
648
+ allowUnrecognizedUnionMembers: true,
649
+ allowUnrecognizedEnumValues: true,
650
+ breadcrumbsPrefix: ["response"],
651
+ }),
652
+ rawResponse: _response.rawResponse,
653
+ },
654
+ rawResponse: _response.rawResponse,
530
655
  };
531
656
  }
532
657
  }
533
658
  return {
534
- ok: false,
535
- error: CandidApi.credentialing.v2.getAll.Error._unknown(_response.error),
659
+ data: {
660
+ ok: false,
661
+ error: CandidApi.credentialing.v2.getAll.Error._unknown(_response.error),
662
+ rawResponse: _response.rawResponse,
663
+ },
664
+ rawResponse: _response.rawResponse,
536
665
  };
537
666
  });
538
667
  }
@@ -546,42 +675,58 @@ class V2 {
546
675
  * await client.credentialing.v2.delete(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
547
676
  */
548
677
  delete(providerCredentialingId, requestOptions) {
678
+ return core.HttpResponsePromise.fromPromise(this.__delete(providerCredentialingId, requestOptions));
679
+ }
680
+ __delete(providerCredentialingId, requestOptions) {
549
681
  return __awaiter(this, void 0, void 0, function* () {
550
- var _a, _b, _c;
682
+ var _a, _b, _c, _d;
683
+ let _headers = (0, headers_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
551
684
  const _response = yield core.fetcher({
552
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).candidApi, `/api/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
685
+ 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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
553
686
  method: "DELETE",
554
- 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),
555
- contentType: "application/json",
556
- requestType: "json",
687
+ headers: _headers,
688
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
557
689
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
558
690
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
559
691
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
560
692
  });
561
693
  if (_response.ok) {
562
694
  return {
563
- ok: true,
564
- body: undefined,
695
+ data: {
696
+ ok: true,
697
+ body: undefined,
698
+ headers: _response.headers,
699
+ rawResponse: _response.rawResponse,
700
+ },
701
+ rawResponse: _response.rawResponse,
565
702
  };
566
703
  }
567
704
  if (_response.error.reason === "status-code") {
568
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
705
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
569
706
  case "EntityNotFoundError":
570
707
  case "UnauthorizedError":
571
708
  return {
572
- ok: false,
573
- error: serializers.credentialing.v2.delete.Error.parseOrThrow(_response.error.body, {
574
- unrecognizedObjectKeys: "passthrough",
575
- allowUnrecognizedUnionMembers: true,
576
- allowUnrecognizedEnumValues: true,
577
- breadcrumbsPrefix: ["response"],
578
- }),
709
+ data: {
710
+ ok: false,
711
+ error: serializers.credentialing.v2.delete.Error.parseOrThrow(_response.error.body, {
712
+ unrecognizedObjectKeys: "passthrough",
713
+ allowUnrecognizedUnionMembers: true,
714
+ allowUnrecognizedEnumValues: true,
715
+ breadcrumbsPrefix: ["response"],
716
+ }),
717
+ rawResponse: _response.rawResponse,
718
+ },
719
+ rawResponse: _response.rawResponse,
579
720
  };
580
721
  }
581
722
  }
582
723
  return {
583
- ok: false,
584
- error: CandidApi.credentialing.v2.delete.Error._unknown(_response.error),
724
+ data: {
725
+ ok: false,
726
+ error: CandidApi.credentialing.v2.delete.Error._unknown(_response.error),
727
+ rawResponse: _response.rawResponse,
728
+ },
729
+ rawResponse: _response.rawResponse,
585
730
  };
586
731
  });
587
732
  }
@@ -593,14 +738,19 @@ class V2 {
593
738
  * @example
594
739
  * await client.credentialing.v2.update(CandidApi.ProviderCredentialingSpanId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
595
740
  */
596
- update(providerCredentialingId_1) {
741
+ update(providerCredentialingId, request = {}, requestOptions) {
742
+ return core.HttpResponsePromise.fromPromise(this.__update(providerCredentialingId, request, requestOptions));
743
+ }
744
+ __update(providerCredentialingId_1) {
597
745
  return __awaiter(this, arguments, void 0, function* (providerCredentialingId, request = {}, requestOptions) {
598
- var _a, _b, _c;
746
+ var _a, _b, _c, _d;
747
+ 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);
599
748
  const _response = yield core.fetcher({
600
- 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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
749
+ 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/provider-credentialing-span/v2/${encodeURIComponent(serializers.ProviderCredentialingSpanId.jsonOrThrow(providerCredentialingId))}`),
601
750
  method: "PATCH",
602
- 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),
751
+ headers: _headers,
603
752
  contentType: "application/json",
753
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
604
754
  requestType: "json",
605
755
  body: serializers.credentialing.v2.ProviderCredentialingSpanUpdate.jsonOrThrow(request, {
606
756
  unrecognizedObjectKeys: "strip",
@@ -611,35 +761,48 @@ class V2 {
611
761
  });
612
762
  if (_response.ok) {
613
763
  return {
614
- ok: true,
615
- body: serializers.credentialing.v2.ProviderCredentialingSpan.parseOrThrow(_response.body, {
616
- unrecognizedObjectKeys: "passthrough",
617
- allowUnrecognizedUnionMembers: true,
618
- allowUnrecognizedEnumValues: true,
619
- breadcrumbsPrefix: ["response"],
620
- }),
764
+ data: {
765
+ ok: true,
766
+ body: serializers.credentialing.v2.ProviderCredentialingSpan.parseOrThrow(_response.body, {
767
+ unrecognizedObjectKeys: "passthrough",
768
+ allowUnrecognizedUnionMembers: true,
769
+ allowUnrecognizedEnumValues: true,
770
+ breadcrumbsPrefix: ["response"],
771
+ }),
772
+ headers: _response.headers,
773
+ rawResponse: _response.rawResponse,
774
+ },
775
+ rawResponse: _response.rawResponse,
621
776
  };
622
777
  }
623
778
  if (_response.error.reason === "status-code") {
624
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
779
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
625
780
  case "EntityNotFoundError":
626
781
  case "HttpRequestValidationsError":
627
782
  case "UnauthorizedError":
628
783
  case "UnprocessableEntityError":
629
784
  return {
630
- ok: false,
631
- error: serializers.credentialing.v2.update.Error.parseOrThrow(_response.error.body, {
632
- unrecognizedObjectKeys: "passthrough",
633
- allowUnrecognizedUnionMembers: true,
634
- allowUnrecognizedEnumValues: true,
635
- breadcrumbsPrefix: ["response"],
636
- }),
785
+ data: {
786
+ ok: false,
787
+ error: serializers.credentialing.v2.update.Error.parseOrThrow(_response.error.body, {
788
+ unrecognizedObjectKeys: "passthrough",
789
+ allowUnrecognizedUnionMembers: true,
790
+ allowUnrecognizedEnumValues: true,
791
+ breadcrumbsPrefix: ["response"],
792
+ }),
793
+ rawResponse: _response.rawResponse,
794
+ },
795
+ rawResponse: _response.rawResponse,
637
796
  };
638
797
  }
639
798
  }
640
799
  return {
641
- ok: false,
642
- error: CandidApi.credentialing.v2.update.Error._unknown(_response.error),
800
+ data: {
801
+ ok: false,
802
+ error: CandidApi.credentialing.v2.update.Error._unknown(_response.error),
803
+ rawResponse: _response.rawResponse,
804
+ },
805
+ rawResponse: _response.rawResponse,
643
806
  };
644
807
  });
645
808
  }