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.V1 = 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 V1 {
58
55
  constructor(_options = {}) {
59
56
  this._options = _options;
@@ -67,19 +64,24 @@ class V1 {
67
64
  * @example
68
65
  * await client.preEncounter.appointments.v1.create({
69
66
  * patientId: CandidApi.preEncounter.PatientId("patient_id"),
70
- * startTimestamp: "2024-01-15T09:30:00Z",
67
+ * startTimestamp: new Date("2024-01-15T09:30:00.000Z"),
71
68
  * serviceDuration: 1,
72
69
  * services: [{}, {}]
73
70
  * })
74
71
  */
75
72
  create(request, requestOptions) {
73
+ return core.HttpResponsePromise.fromPromise(this.__create(request, requestOptions));
74
+ }
75
+ __create(request, requestOptions) {
76
76
  return __awaiter(this, void 0, void 0, function* () {
77
- var _a, _b, _c;
77
+ var _a, _b, _c, _d;
78
+ 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);
78
79
  const _response = yield core.fetcher({
79
- 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).preEncounter, "/appointments/v1"),
80
+ 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).preEncounter, "/appointments/v1"),
80
81
  method: "POST",
81
- 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),
82
+ headers: _headers,
82
83
  contentType: "application/json",
84
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
83
85
  requestType: "json",
84
86
  body: serializers.preEncounter.appointments.v1.MutableAppointment.jsonOrThrow(request, {
85
87
  unrecognizedObjectKeys: "strip",
@@ -90,33 +92,46 @@ class V1 {
90
92
  });
91
93
  if (_response.ok) {
92
94
  return {
93
- ok: true,
94
- body: serializers.preEncounter.appointments.v1.Appointment.parseOrThrow(_response.body, {
95
- unrecognizedObjectKeys: "passthrough",
96
- allowUnrecognizedUnionMembers: true,
97
- allowUnrecognizedEnumValues: true,
98
- breadcrumbsPrefix: ["response"],
99
- }),
95
+ data: {
96
+ ok: true,
97
+ body: serializers.preEncounter.appointments.v1.Appointment.parseOrThrow(_response.body, {
98
+ unrecognizedObjectKeys: "passthrough",
99
+ allowUnrecognizedUnionMembers: true,
100
+ allowUnrecognizedEnumValues: true,
101
+ breadcrumbsPrefix: ["response"],
102
+ }),
103
+ headers: _response.headers,
104
+ rawResponse: _response.rawResponse,
105
+ },
106
+ rawResponse: _response.rawResponse,
100
107
  };
101
108
  }
102
109
  if (_response.error.reason === "status-code") {
103
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
110
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
104
111
  case "VersionConflictError":
105
112
  case "NotFoundError":
106
113
  return {
107
- ok: false,
108
- error: serializers.preEncounter.appointments.v1.create.Error.parseOrThrow(_response.error.body, {
109
- unrecognizedObjectKeys: "passthrough",
110
- allowUnrecognizedUnionMembers: true,
111
- allowUnrecognizedEnumValues: true,
112
- breadcrumbsPrefix: ["response"],
113
- }),
114
+ data: {
115
+ ok: false,
116
+ error: serializers.preEncounter.appointments.v1.create.Error.parseOrThrow(_response.error.body, {
117
+ unrecognizedObjectKeys: "passthrough",
118
+ allowUnrecognizedUnionMembers: true,
119
+ allowUnrecognizedEnumValues: true,
120
+ breadcrumbsPrefix: ["response"],
121
+ }),
122
+ rawResponse: _response.rawResponse,
123
+ },
124
+ rawResponse: _response.rawResponse,
114
125
  };
115
126
  }
116
127
  }
117
128
  return {
118
- ok: false,
119
- error: CandidApi.preEncounter.appointments.v1.create.Error._unknown(_response.error),
129
+ data: {
130
+ ok: false,
131
+ error: CandidApi.preEncounter.appointments.v1.create.Error._unknown(_response.error),
132
+ rawResponse: _response.rawResponse,
133
+ },
134
+ rawResponse: _response.rawResponse,
120
135
  };
121
136
  });
122
137
  }
@@ -129,9 +144,12 @@ class V1 {
129
144
  * @example
130
145
  * await client.preEncounter.appointments.v1.getVisits()
131
146
  */
132
- getVisits() {
147
+ getVisits(request = {}, requestOptions) {
148
+ return core.HttpResponsePromise.fromPromise(this.__getVisits(request, requestOptions));
149
+ }
150
+ __getVisits() {
133
151
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
134
- var _a, _b, _c;
152
+ var _a, _b, _c, _d;
135
153
  const { pageToken, limit, sortField, sortDirection, filters } = request;
136
154
  const _queryParams = {};
137
155
  if (pageToken != null) {
@@ -151,45 +169,57 @@ class V1 {
151
169
  if (filters != null) {
152
170
  _queryParams["filters"] = filters;
153
171
  }
172
+ 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);
154
173
  const _response = yield core.fetcher({
155
- 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).preEncounter, "/appointments/v1/visits"),
174
+ 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).preEncounter, "/appointments/v1/visits"),
156
175
  method: "GET",
157
- 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),
158
- contentType: "application/json",
159
- queryParameters: _queryParams,
160
- requestType: "json",
176
+ headers: _headers,
177
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
161
178
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
162
179
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
163
180
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
164
181
  });
165
182
  if (_response.ok) {
166
183
  return {
167
- ok: true,
168
- body: serializers.preEncounter.appointments.v1.VisitsPage.parseOrThrow(_response.body, {
169
- unrecognizedObjectKeys: "passthrough",
170
- allowUnrecognizedUnionMembers: true,
171
- allowUnrecognizedEnumValues: true,
172
- breadcrumbsPrefix: ["response"],
173
- }),
184
+ data: {
185
+ ok: true,
186
+ body: serializers.preEncounter.appointments.v1.VisitsPage.parseOrThrow(_response.body, {
187
+ unrecognizedObjectKeys: "passthrough",
188
+ allowUnrecognizedUnionMembers: true,
189
+ allowUnrecognizedEnumValues: true,
190
+ breadcrumbsPrefix: ["response"],
191
+ }),
192
+ headers: _response.headers,
193
+ rawResponse: _response.rawResponse,
194
+ },
195
+ rawResponse: _response.rawResponse,
174
196
  };
175
197
  }
176
198
  if (_response.error.reason === "status-code") {
177
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
199
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
178
200
  case "BadRequestError":
179
201
  return {
180
- ok: false,
181
- error: serializers.preEncounter.appointments.v1.getVisits.Error.parseOrThrow(_response.error.body, {
182
- unrecognizedObjectKeys: "passthrough",
183
- allowUnrecognizedUnionMembers: true,
184
- allowUnrecognizedEnumValues: true,
185
- breadcrumbsPrefix: ["response"],
186
- }),
202
+ data: {
203
+ ok: false,
204
+ error: serializers.preEncounter.appointments.v1.getVisits.Error.parseOrThrow(_response.error.body, {
205
+ unrecognizedObjectKeys: "passthrough",
206
+ allowUnrecognizedUnionMembers: true,
207
+ allowUnrecognizedEnumValues: true,
208
+ breadcrumbsPrefix: ["response"],
209
+ }),
210
+ rawResponse: _response.rawResponse,
211
+ },
212
+ rawResponse: _response.rawResponse,
187
213
  };
188
214
  }
189
215
  }
190
216
  return {
191
- ok: false,
192
- error: CandidApi.preEncounter.appointments.v1.getVisits.Error._unknown(_response.error),
217
+ data: {
218
+ ok: false,
219
+ error: CandidApi.preEncounter.appointments.v1.getVisits.Error._unknown(_response.error),
220
+ rawResponse: _response.rawResponse,
221
+ },
222
+ rawResponse: _response.rawResponse,
193
223
  };
194
224
  });
195
225
  }
@@ -203,46 +233,62 @@ class V1 {
203
233
  * await client.preEncounter.appointments.v1.get(CandidApi.preEncounter.AppointmentId("id"))
204
234
  */
205
235
  get(id, requestOptions) {
236
+ return core.HttpResponsePromise.fromPromise(this.__get(id, requestOptions));
237
+ }
238
+ __get(id, requestOptions) {
206
239
  return __awaiter(this, void 0, void 0, function* () {
207
- var _a, _b, _c;
240
+ var _a, _b, _c, _d;
241
+ 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);
208
242
  const _response = yield core.fetcher({
209
- 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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}`),
243
+ 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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}`),
210
244
  method: "GET",
211
- 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),
212
- contentType: "application/json",
213
- requestType: "json",
245
+ headers: _headers,
246
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
214
247
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
215
248
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
216
249
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
217
250
  });
218
251
  if (_response.ok) {
219
252
  return {
220
- ok: true,
221
- body: serializers.preEncounter.appointments.v1.Appointment.parseOrThrow(_response.body, {
222
- unrecognizedObjectKeys: "passthrough",
223
- allowUnrecognizedUnionMembers: true,
224
- allowUnrecognizedEnumValues: true,
225
- breadcrumbsPrefix: ["response"],
226
- }),
253
+ data: {
254
+ ok: true,
255
+ body: serializers.preEncounter.appointments.v1.Appointment.parseOrThrow(_response.body, {
256
+ unrecognizedObjectKeys: "passthrough",
257
+ allowUnrecognizedUnionMembers: true,
258
+ allowUnrecognizedEnumValues: true,
259
+ breadcrumbsPrefix: ["response"],
260
+ }),
261
+ headers: _response.headers,
262
+ rawResponse: _response.rawResponse,
263
+ },
264
+ rawResponse: _response.rawResponse,
227
265
  };
228
266
  }
229
267
  if (_response.error.reason === "status-code") {
230
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
268
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
231
269
  case "NotFoundError":
232
270
  return {
233
- ok: false,
234
- error: serializers.preEncounter.appointments.v1.get.Error.parseOrThrow(_response.error.body, {
235
- unrecognizedObjectKeys: "passthrough",
236
- allowUnrecognizedUnionMembers: true,
237
- allowUnrecognizedEnumValues: true,
238
- breadcrumbsPrefix: ["response"],
239
- }),
271
+ data: {
272
+ ok: false,
273
+ error: serializers.preEncounter.appointments.v1.get.Error.parseOrThrow(_response.error.body, {
274
+ unrecognizedObjectKeys: "passthrough",
275
+ allowUnrecognizedUnionMembers: true,
276
+ allowUnrecognizedEnumValues: true,
277
+ breadcrumbsPrefix: ["response"],
278
+ }),
279
+ rawResponse: _response.rawResponse,
280
+ },
281
+ rawResponse: _response.rawResponse,
240
282
  };
241
283
  }
242
284
  }
243
285
  return {
244
- ok: false,
245
- error: CandidApi.preEncounter.appointments.v1.get.Error._unknown(_response.error),
286
+ data: {
287
+ ok: false,
288
+ error: CandidApi.preEncounter.appointments.v1.get.Error._unknown(_response.error),
289
+ rawResponse: _response.rawResponse,
290
+ },
291
+ rawResponse: _response.rawResponse,
246
292
  };
247
293
  });
248
294
  }
@@ -256,46 +302,62 @@ class V1 {
256
302
  * await client.preEncounter.appointments.v1.getHistory(CandidApi.preEncounter.AppointmentId("id"))
257
303
  */
258
304
  getHistory(id, requestOptions) {
305
+ return core.HttpResponsePromise.fromPromise(this.__getHistory(id, requestOptions));
306
+ }
307
+ __getHistory(id, requestOptions) {
259
308
  return __awaiter(this, void 0, void 0, function* () {
260
- var _a, _b, _c;
309
+ var _a, _b, _c, _d;
310
+ 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);
261
311
  const _response = yield core.fetcher({
262
- 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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/history`),
312
+ 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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/history`),
263
313
  method: "GET",
264
- 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),
265
- contentType: "application/json",
266
- requestType: "json",
314
+ headers: _headers,
315
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
267
316
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
268
317
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
269
318
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
270
319
  });
271
320
  if (_response.ok) {
272
321
  return {
273
- ok: true,
274
- body: serializers.preEncounter.appointments.v1.getHistory.Response.parseOrThrow(_response.body, {
275
- unrecognizedObjectKeys: "passthrough",
276
- allowUnrecognizedUnionMembers: true,
277
- allowUnrecognizedEnumValues: true,
278
- breadcrumbsPrefix: ["response"],
279
- }),
322
+ data: {
323
+ ok: true,
324
+ body: serializers.preEncounter.appointments.v1.getHistory.Response.parseOrThrow(_response.body, {
325
+ unrecognizedObjectKeys: "passthrough",
326
+ allowUnrecognizedUnionMembers: true,
327
+ allowUnrecognizedEnumValues: true,
328
+ breadcrumbsPrefix: ["response"],
329
+ }),
330
+ headers: _response.headers,
331
+ rawResponse: _response.rawResponse,
332
+ },
333
+ rawResponse: _response.rawResponse,
280
334
  };
281
335
  }
282
336
  if (_response.error.reason === "status-code") {
283
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
337
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
284
338
  case "NotFoundError":
285
339
  return {
286
- ok: false,
287
- error: serializers.preEncounter.appointments.v1.getHistory.Error.parseOrThrow(_response.error.body, {
288
- unrecognizedObjectKeys: "passthrough",
289
- allowUnrecognizedUnionMembers: true,
290
- allowUnrecognizedEnumValues: true,
291
- breadcrumbsPrefix: ["response"],
292
- }),
340
+ data: {
341
+ ok: false,
342
+ error: serializers.preEncounter.appointments.v1.getHistory.Error.parseOrThrow(_response.error.body, {
343
+ unrecognizedObjectKeys: "passthrough",
344
+ allowUnrecognizedUnionMembers: true,
345
+ allowUnrecognizedEnumValues: true,
346
+ breadcrumbsPrefix: ["response"],
347
+ }),
348
+ rawResponse: _response.rawResponse,
349
+ },
350
+ rawResponse: _response.rawResponse,
293
351
  };
294
352
  }
295
353
  }
296
354
  return {
297
- ok: false,
298
- error: CandidApi.preEncounter.appointments.v1.getHistory.Error._unknown(_response.error),
355
+ data: {
356
+ ok: false,
357
+ error: CandidApi.preEncounter.appointments.v1.getHistory.Error._unknown(_response.error),
358
+ rawResponse: _response.rawResponse,
359
+ },
360
+ rawResponse: _response.rawResponse,
299
361
  };
300
362
  });
301
363
  }
@@ -310,19 +372,24 @@ class V1 {
310
372
  * @example
311
373
  * await client.preEncounter.appointments.v1.update(CandidApi.preEncounter.AppointmentId("id"), "version", {
312
374
  * patientId: CandidApi.preEncounter.PatientId("patient_id"),
313
- * startTimestamp: "2024-01-15T09:30:00Z",
375
+ * startTimestamp: new Date("2024-01-15T09:30:00.000Z"),
314
376
  * serviceDuration: 1,
315
377
  * services: [{}, {}]
316
378
  * })
317
379
  */
318
380
  update(id, version, request, requestOptions) {
381
+ return core.HttpResponsePromise.fromPromise(this.__update(id, version, request, requestOptions));
382
+ }
383
+ __update(id, version, request, requestOptions) {
319
384
  return __awaiter(this, void 0, void 0, function* () {
320
- var _a, _b, _c;
385
+ var _a, _b, _c, _d;
386
+ 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);
321
387
  const _response = yield core.fetcher({
322
- 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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
388
+ 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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
323
389
  method: "PUT",
324
- 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),
390
+ headers: _headers,
325
391
  contentType: "application/json",
392
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
326
393
  requestType: "json",
327
394
  body: serializers.preEncounter.appointments.v1.MutableAppointment.jsonOrThrow(request, {
328
395
  unrecognizedObjectKeys: "strip",
@@ -333,33 +400,46 @@ class V1 {
333
400
  });
334
401
  if (_response.ok) {
335
402
  return {
336
- ok: true,
337
- body: serializers.preEncounter.appointments.v1.Appointment.parseOrThrow(_response.body, {
338
- unrecognizedObjectKeys: "passthrough",
339
- allowUnrecognizedUnionMembers: true,
340
- allowUnrecognizedEnumValues: true,
341
- breadcrumbsPrefix: ["response"],
342
- }),
403
+ data: {
404
+ ok: true,
405
+ body: serializers.preEncounter.appointments.v1.Appointment.parseOrThrow(_response.body, {
406
+ unrecognizedObjectKeys: "passthrough",
407
+ allowUnrecognizedUnionMembers: true,
408
+ allowUnrecognizedEnumValues: true,
409
+ breadcrumbsPrefix: ["response"],
410
+ }),
411
+ headers: _response.headers,
412
+ rawResponse: _response.rawResponse,
413
+ },
414
+ rawResponse: _response.rawResponse,
343
415
  };
344
416
  }
345
417
  if (_response.error.reason === "status-code") {
346
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
418
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
347
419
  case "NotFoundError":
348
420
  case "VersionConflictError":
349
421
  return {
350
- ok: false,
351
- error: serializers.preEncounter.appointments.v1.update.Error.parseOrThrow(_response.error.body, {
352
- unrecognizedObjectKeys: "passthrough",
353
- allowUnrecognizedUnionMembers: true,
354
- allowUnrecognizedEnumValues: true,
355
- breadcrumbsPrefix: ["response"],
356
- }),
422
+ data: {
423
+ ok: false,
424
+ error: serializers.preEncounter.appointments.v1.update.Error.parseOrThrow(_response.error.body, {
425
+ unrecognizedObjectKeys: "passthrough",
426
+ allowUnrecognizedUnionMembers: true,
427
+ allowUnrecognizedEnumValues: true,
428
+ breadcrumbsPrefix: ["response"],
429
+ }),
430
+ rawResponse: _response.rawResponse,
431
+ },
432
+ rawResponse: _response.rawResponse,
357
433
  };
358
434
  }
359
435
  }
360
436
  return {
361
- ok: false,
362
- error: CandidApi.preEncounter.appointments.v1.update.Error._unknown(_response.error),
437
+ data: {
438
+ ok: false,
439
+ error: CandidApi.preEncounter.appointments.v1.update.Error._unknown(_response.error),
440
+ rawResponse: _response.rawResponse,
441
+ },
442
+ rawResponse: _response.rawResponse,
363
443
  };
364
444
  });
365
445
  }
@@ -371,40 +451,51 @@ class V1 {
371
451
  *
372
452
  * @example
373
453
  * await client.preEncounter.appointments.v1.scan({
374
- * since: "2024-01-15T09:30:00Z"
454
+ * since: new Date("2024-01-15T09:30:00.000Z")
375
455
  * })
376
456
  */
377
457
  scan(request, requestOptions) {
458
+ return core.HttpResponsePromise.fromPromise(this.__scan(request, requestOptions));
459
+ }
460
+ __scan(request, requestOptions) {
378
461
  return __awaiter(this, void 0, void 0, function* () {
379
- var _a, _b;
462
+ var _a, _b, _c;
380
463
  const { since } = request;
381
464
  const _queryParams = {};
382
465
  _queryParams["since"] = since.toISOString();
466
+ 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);
383
467
  const _response = yield core.fetcher({
384
- 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).preEncounter, "/appointments/v1/updates/scan"),
468
+ 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).preEncounter, "/appointments/v1/updates/scan"),
385
469
  method: "GET",
386
- 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),
387
- contentType: "application/json",
388
- queryParameters: _queryParams,
389
- requestType: "json",
470
+ headers: _headers,
471
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
390
472
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
391
473
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
392
474
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
393
475
  });
394
476
  if (_response.ok) {
395
477
  return {
396
- ok: true,
397
- body: serializers.preEncounter.appointments.v1.scan.Response.parseOrThrow(_response.body, {
398
- unrecognizedObjectKeys: "passthrough",
399
- allowUnrecognizedUnionMembers: true,
400
- allowUnrecognizedEnumValues: true,
401
- breadcrumbsPrefix: ["response"],
402
- }),
478
+ data: {
479
+ ok: true,
480
+ body: serializers.preEncounter.appointments.v1.scan.Response.parseOrThrow(_response.body, {
481
+ unrecognizedObjectKeys: "passthrough",
482
+ allowUnrecognizedUnionMembers: true,
483
+ allowUnrecognizedEnumValues: true,
484
+ breadcrumbsPrefix: ["response"],
485
+ }),
486
+ headers: _response.headers,
487
+ rawResponse: _response.rawResponse,
488
+ },
489
+ rawResponse: _response.rawResponse,
403
490
  };
404
491
  }
405
492
  return {
406
- ok: false,
407
- error: CandidApi.preEncounter.appointments.v1.scan.Error._unknown(_response.error),
493
+ data: {
494
+ ok: false,
495
+ error: CandidApi.preEncounter.appointments.v1.scan.Error._unknown(_response.error),
496
+ rawResponse: _response.rawResponse,
497
+ },
498
+ rawResponse: _response.rawResponse,
408
499
  };
409
500
  });
410
501
  }
@@ -419,42 +510,58 @@ class V1 {
419
510
  * await client.preEncounter.appointments.v1.deactivate(CandidApi.preEncounter.AppointmentId("id"), "version")
420
511
  */
421
512
  deactivate(id, version, requestOptions) {
513
+ return core.HttpResponsePromise.fromPromise(this.__deactivate(id, version, requestOptions));
514
+ }
515
+ __deactivate(id, version, requestOptions) {
422
516
  return __awaiter(this, void 0, void 0, function* () {
423
- var _a, _b, _c;
517
+ var _a, _b, _c, _d;
518
+ 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
519
  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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
520
+ 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).preEncounter, `/appointments/v1/${encodeURIComponent(serializers.preEncounter.AppointmentId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
426
521
  method: "DELETE",
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",
522
+ headers: _headers,
523
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
430
524
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
431
525
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
432
526
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
433
527
  });
434
528
  if (_response.ok) {
435
529
  return {
436
- ok: true,
437
- body: undefined,
530
+ data: {
531
+ ok: true,
532
+ body: undefined,
533
+ headers: _response.headers,
534
+ rawResponse: _response.rawResponse,
535
+ },
536
+ rawResponse: _response.rawResponse,
438
537
  };
439
538
  }
440
539
  if (_response.error.reason === "status-code") {
441
- switch ((_c = _response.error.body) === null || _c === void 0 ? void 0 : _c.errorName) {
540
+ switch ((_d = _response.error.body) === null || _d === void 0 ? void 0 : _d.errorName) {
442
541
  case "NotFoundError":
443
542
  case "VersionConflictError":
444
543
  return {
445
- ok: false,
446
- error: serializers.preEncounter.appointments.v1.deactivate.Error.parseOrThrow(_response.error.body, {
447
- unrecognizedObjectKeys: "passthrough",
448
- allowUnrecognizedUnionMembers: true,
449
- allowUnrecognizedEnumValues: true,
450
- breadcrumbsPrefix: ["response"],
451
- }),
544
+ data: {
545
+ ok: false,
546
+ error: serializers.preEncounter.appointments.v1.deactivate.Error.parseOrThrow(_response.error.body, {
547
+ unrecognizedObjectKeys: "passthrough",
548
+ allowUnrecognizedUnionMembers: true,
549
+ allowUnrecognizedEnumValues: true,
550
+ breadcrumbsPrefix: ["response"],
551
+ }),
552
+ rawResponse: _response.rawResponse,
553
+ },
554
+ rawResponse: _response.rawResponse,
452
555
  };
453
556
  }
454
557
  }
455
558
  return {
456
- ok: false,
457
- error: CandidApi.preEncounter.appointments.v1.deactivate.Error._unknown(_response.error),
559
+ data: {
560
+ ok: false,
561
+ error: CandidApi.preEncounter.appointments.v1.deactivate.Error._unknown(_response.error),
562
+ rawResponse: _response.rawResponse,
563
+ },
564
+ rawResponse: _response.rawResponse,
458
565
  };
459
566
  });
460
567
  }
@@ -1,4 +1,3 @@
1
- export * from "./requests";
2
1
  export * as create from "./create";
3
2
  export * as getVisits from "./getVisits";
4
3
  export * as get from "./get";
@@ -6,3 +5,4 @@ export * as getHistory from "./getHistory";
6
5
  export * as update from "./update";
7
6
  export * as scan from "./scan";
8
7
  export * as deactivate from "./deactivate";
8
+ export * from "./requests";