candidhealth 0.45.0 → 0.46.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 (371) hide show
  1. package/README.md +4 -18
  2. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  3. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
  4. package/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
  5. package/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
  6. package/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
  7. package/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
  8. package/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
  9. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
  10. package/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
  11. package/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
  12. package/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
  13. package/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -1
  14. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
  15. package/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
  16. package/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
  17. package/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
  18. package/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
  19. package/api/resources/contracts/resources/v2/client/Client.js +19 -73
  20. package/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
  21. package/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
  22. package/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
  23. package/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
  24. package/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
  25. package/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  26. package/api/resources/contracts/resources/v2/types/index.js +1 -0
  27. package/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
  28. package/api/resources/credentialing/resources/v2/client/Client.js +9 -31
  29. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
  30. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
  31. package/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
  32. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  33. package/api/resources/diagnoses/client/Client.d.ts +3 -8
  34. package/api/resources/diagnoses/client/Client.js +6 -11
  35. package/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
  36. package/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
  37. package/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
  38. package/api/resources/eligibility/resources/v2/client/Client.js +5 -9
  39. package/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
  40. package/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
  41. package/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
  42. package/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
  43. package/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
  44. package/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
  45. package/api/resources/encounters/resources/v4/client/Client.d.ts +49 -674
  46. package/api/resources/encounters/resources/v4/client/Client.js +54 -679
  47. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -410
  48. package/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -155
  49. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  50. package/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
  51. package/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +7 -7
  52. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
  53. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
  54. package/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
  55. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
  56. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
  57. package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
  58. package/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
  59. package/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
  60. package/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  61. package/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  62. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  63. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
  64. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
  65. package/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
  66. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
  67. package/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
  68. package/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
  69. package/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
  70. package/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
  71. package/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
  72. package/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
  73. package/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  74. package/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
  75. package/api/resources/guarantor/resources/v1/client/Client.js +11 -41
  76. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
  77. package/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
  78. package/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
  79. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
  80. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
  81. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
  82. package/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
  83. package/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
  84. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
  85. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
  86. package/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
  87. package/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
  88. package/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
  89. package/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
  90. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
  91. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
  92. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
  93. package/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
  94. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
  95. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
  96. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
  97. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
  98. package/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
  99. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
  100. package/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
  101. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
  102. package/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
  103. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  104. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
  105. package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
  106. package/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
  107. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
  108. package/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
  109. package/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
  110. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
  111. package/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
  112. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
  113. package/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
  114. package/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
  115. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
  116. package/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
  117. package/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
  118. package/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
  119. package/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
  120. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  121. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
  122. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
  123. package/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
  124. package/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
  125. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
  126. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
  127. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
  128. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
  129. package/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
  130. package/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
  131. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
  132. package/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
  133. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
  134. package/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
  135. package/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
  136. package/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
  137. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
  138. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
  139. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
  140. package/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
  141. package/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  142. package/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
  143. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
  144. package/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
  145. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
  146. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
  147. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
  148. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
  149. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
  150. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
  151. package/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
  152. package/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  153. package/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
  154. package/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
  155. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
  156. package/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
  157. package/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
  158. package/api/resources/serviceFacility/client/Client.d.ts +1 -11
  159. package/api/resources/serviceFacility/client/Client.js +2 -12
  160. package/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
  161. package/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
  162. package/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
  163. package/api/resources/superbills/resources/v1/client/Client.js +3 -11
  164. package/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
  165. package/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
  166. package/api/resources/tasks/resources/v3/client/Client.js +9 -30
  167. package/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
  168. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
  169. package/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
  170. package/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
  171. package/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
  172. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  173. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +2 -3
  174. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +5 -6
  175. package/dist/api/resources/billingNotes/resources/v2/client/requests/BillingNoteUpdate.d.ts +1 -1
  176. package/dist/api/resources/billingNotes/resources/v2/client/requests/StandaloneBillingNoteCreate.d.ts +1 -2
  177. package/dist/api/resources/chargeCapture/resources/v1/client/Client.d.ts +5 -46
  178. package/dist/api/resources/chargeCapture/resources/v1/client/Client.js +11 -52
  179. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCapturePostBilledChangeUpdate.d.ts +1 -3
  180. package/dist/api/resources/chargeCapture/resources/v1/client/requests/ChargeCaptureUpdate.d.ts +1 -9
  181. package/dist/api/resources/chargeCapture/resources/v1/client/requests/CreateChargeCaptureRequest.d.ts +5 -15
  182. package/dist/api/resources/chargeCapture/resources/v1/client/requests/GetAllChargeCapturesRequest.d.ts +1 -35
  183. package/dist/api/resources/chargeCapture/resources/v1/types/ChargeCaptureData.d.ts +1 -1
  184. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.d.ts +1 -22
  185. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/Client.js +4 -25
  186. package/dist/api/resources/chargeCaptureBundles/resources/v1/client/requests/GetAllChargeCaptureClaimCreationsRequest.d.ts +1 -22
  187. package/dist/api/resources/commons/types/InsuranceTypeCode.d.ts +1 -1
  188. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +3 -67
  189. package/dist/api/resources/contracts/resources/v2/client/Client.js +19 -73
  190. package/dist/api/resources/contracts/resources/v2/client/requests/ContractCreate.d.ts +1 -25
  191. package/dist/api/resources/contracts/resources/v2/client/requests/ContractUpdate.d.ts +1 -36
  192. package/dist/api/resources/contracts/resources/v2/client/requests/GetMultiContractsRequest.d.ts +9 -9
  193. package/dist/api/resources/contracts/resources/v2/types/ContractSortField.d.ts +12 -0
  194. package/dist/api/resources/contracts/resources/v2/types/ContractSortField.js +14 -0
  195. package/dist/api/resources/contracts/resources/v2/types/index.d.ts +1 -0
  196. package/dist/api/resources/contracts/resources/v2/types/index.js +1 -0
  197. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +4 -26
  198. package/dist/api/resources/credentialing/resources/v2/client/Client.js +9 -31
  199. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +1 -8
  200. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanCreate.d.ts +4 -14
  201. package/dist/api/resources/credentialing/resources/v2/client/requests/ProviderCredentialingSpanUpdate.d.ts +3 -20
  202. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  203. package/dist/api/resources/diagnoses/client/Client.d.ts +3 -8
  204. package/dist/api/resources/diagnoses/client/Client.js +6 -11
  205. package/dist/api/resources/diagnoses/client/requests/DiagnosisUpdate.d.ts +2 -10
  206. package/dist/api/resources/diagnoses/types/DiagnosisCreate.d.ts +5 -6
  207. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +2 -6
  208. package/dist/api/resources/eligibility/resources/v2/client/Client.js +5 -9
  209. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.d.ts +0 -3
  210. package/dist/api/resources/encounterAttachments/resources/v1/client/Client.js +3 -6
  211. package/dist/api/resources/encounterAttachments/resources/v1/client/requests/CreateAttachmentRequest.d.ts +0 -4
  212. package/dist/api/resources/encounterProviders/resources/v2/client/Client.d.ts +8 -114
  213. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +20 -126
  214. package/dist/api/resources/encounterProviders/resources/v2/client/createInitialReferringProvider.d.ts +1 -2
  215. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +49 -674
  216. package/dist/api/resources/encounters/resources/v4/client/Client.js +54 -679
  217. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +35 -410
  218. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterUpdate.d.ts +6 -155
  219. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +1 -1
  220. package/dist/api/resources/encounters/resources/v4/types/EncounterBase.d.ts +5 -5
  221. package/dist/api/resources/encounters/resources/v4/types/EncounterOptional.d.ts +7 -7
  222. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +6 -9
  223. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -10
  224. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/requests/ExpectedNetworkStatusRequest.d.ts +7 -13
  225. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +12 -16
  226. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +14 -18
  227. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +5 -0
  228. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +5 -0
  229. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +5 -8
  230. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  231. package/dist/api/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  232. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  233. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +1 -5
  234. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +2 -6
  235. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/requests/GetExternalPaymentAccountConfigsRequest.d.ts +1 -4
  236. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +37 -38
  237. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +47 -48
  238. package/dist/api/resources/feeSchedules/resources/v3/client/requests/FeeScheduleUploadRequest.d.ts +32 -5
  239. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetMultiRequest.d.ts +1 -15
  240. package/dist/api/resources/feeSchedules/resources/v3/client/requests/GetUniqueDimensionValuesRequest.d.ts +1 -13
  241. package/dist/api/resources/feeSchedules/resources/v3/types/PayerThreshold.d.ts +1 -1
  242. package/dist/api/resources/feeSchedules/resources/v3/types/Rate.d.ts +1 -1
  243. package/dist/api/resources/feeSchedules/resources/v3/types/RateEntry.d.ts +1 -1
  244. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +8 -38
  245. package/dist/api/resources/guarantor/resources/v1/client/Client.js +11 -41
  246. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +11 -34
  247. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +15 -38
  248. package/dist/api/resources/importInvoice/resources/v1/client/requests/SearchImportedInvoicesRequest.d.ts +1 -12
  249. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +92 -10
  250. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +95 -13
  251. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +1 -10
  252. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +3 -12
  253. package/dist/api/resources/insurancePayments/resources/v1/client/requests/GetMultiInsurancePaymentRequest.d.ts +1 -10
  254. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +12 -26
  255. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +17 -31
  256. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/GetMultiInsuranceRefundsRequest.d.ts +1 -10
  257. package/dist/api/resources/insuranceRefunds/resources/v1/client/requests/InsuranceRefundUpdate.d.ts +1 -11
  258. package/dist/api/resources/medicationDispense/resources/v1/client/Client.d.ts +5 -17
  259. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +6 -18
  260. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.d.ts +9 -25
  261. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +14 -30
  262. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/GetMultiNonInsurancePayerPaymentRequest.d.ts +1 -9
  263. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/requests/UpdateNonInsurancePayerPaymentRequest.d.ts +1 -11
  264. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.d.ts +9 -30
  265. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +14 -35
  266. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/GetMultiNonInsurancePayerRefundsRequest.d.ts +1 -9
  267. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/requests/NonInsurancePayerRefundUpdate.d.ts +1 -15
  268. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.d.ts +3 -37
  269. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +9 -43
  270. package/dist/api/resources/nonInsurancePayers/resources/v1/client/requests/GetMultiNonInsurancePayersRequest.d.ts +1 -9
  271. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +12 -58
  272. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +16 -62
  273. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +1 -1
  274. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +6 -6
  275. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityPhysicalType.d.ts +1 -1
  276. package/dist/api/resources/organizationServiceFacilities/resources/v2/types/ServiceFacilityType.d.ts +3 -3
  277. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +10 -29
  278. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +15 -34
  279. package/dist/api/resources/patientPayments/resources/v4/client/requests/GetMultiPatientPaymentsRequest.d.ts +1 -13
  280. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentCreate.d.ts +8 -5
  281. package/dist/api/resources/patientPayments/resources/v4/client/requests/PatientPaymentUpdate.d.ts +1 -11
  282. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +10 -34
  283. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +15 -39
  284. package/dist/api/resources/patientRefunds/resources/v1/client/requests/GetMultiPatientRefundsRequest.d.ts +1 -13
  285. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundCreate.d.ts +8 -6
  286. package/dist/api/resources/patientRefunds/resources/v1/client/requests/PatientRefundUpdate.d.ts +1 -15
  287. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.d.ts +3 -15
  288. package/dist/api/resources/payerPlanGroups/resources/v1/client/Client.js +8 -20
  289. package/dist/api/resources/payerPlanGroups/resources/v1/client/requests/PayerPlanGroupGetMultiRequest.d.ts +1 -13
  290. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  291. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.d.ts +14 -84
  292. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +21 -91
  293. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/requests/VisitsRequest.d.ts +1 -7
  294. package/dist/api/resources/preEncounter/resources/common/types/BaseModel.d.ts +2 -2
  295. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +28 -87
  296. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +38 -97
  297. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CheckEligibilityRequest.d.ts +1 -1
  298. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiPaginatedRequest.d.ts +1 -6
  299. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/requests/CoverageGetMultiRequest.d.ts +1 -3
  300. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/types/InsuranceTypeCode.d.ts +1 -1
  301. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.d.ts +4 -18
  302. package/dist/api/resources/preEncounter/resources/eligibilityChecks/resources/v1/client/Client.js +5 -19
  303. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.d.ts +15 -34
  304. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/Client.js +20 -39
  305. package/dist/api/resources/preEncounter/resources/images/resources/v1/client/requests/ImageGetMultiRequest.d.ts +1 -4
  306. package/dist/api/resources/preEncounter/resources/images/resources/v1/types/Image.d.ts +1 -1
  307. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.d.ts +2 -14
  308. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +4 -16
  309. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/AppointmentsGetListRequest.d.ts +1 -7
  310. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/requests/PatientListRequest.d.ts +1 -7
  311. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/FilterQueryString.d.ts +1 -1
  312. package/dist/api/resources/preEncounter/resources/lists/resources/v1/types/SortFieldString.d.ts +1 -1
  313. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.d.ts +6 -10
  314. package/dist/api/resources/preEncounter/resources/notes/resources/v1/client/Client.js +10 -14
  315. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +328 -456
  316. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +339 -467
  317. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientRequest.d.ts +104 -144
  318. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/CreatePatientWithMrnRequest.d.ts +104 -144
  319. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientGetMultiRequest.d.ts +1 -4
  320. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/PatientsSearchRequestPaginated.d.ts +1 -7
  321. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/requests/SearchProvidersRequest.d.ts +1 -1
  322. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/MutablePatient.d.ts +3 -3
  323. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/Patient.d.ts +2 -2
  324. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PatientSortField.d.ts +1 -1
  325. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.d.ts +7 -10
  326. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/Client.js +12 -15
  327. package/dist/api/resources/preEncounter/resources/tags/resources/v1/client/requests/GetAllTagsRequest.d.ts +1 -4
  328. package/dist/api/resources/serviceFacility/client/Client.d.ts +1 -11
  329. package/dist/api/resources/serviceFacility/client/Client.js +2 -12
  330. package/dist/api/resources/serviceLines/resources/v2/client/Client.d.ts +4 -82
  331. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +7 -85
  332. package/dist/api/resources/superbills/resources/v1/client/Client.d.ts +2 -10
  333. package/dist/api/resources/superbills/resources/v1/client/Client.js +3 -11
  334. package/dist/api/resources/superbills/resources/v1/client/requests/CreateSuperbillRequest.d.ts +3 -14
  335. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +4 -25
  336. package/dist/api/resources/tasks/resources/v3/client/Client.js +9 -30
  337. package/dist/api/resources/tasks/resources/v3/client/requests/GetAllTasksRequest.d.ts +1 -15
  338. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +7 -13
  339. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +13 -19
  340. package/dist/api/resources/writeOffs/resources/v1/client/requests/CreateWriteOffsRequest.d.ts +6 -1
  341. package/dist/api/resources/writeOffs/resources/v1/client/requests/GetMultiWriteOffsRequest.d.ts +1 -12
  342. package/dist/environments.d.ts +5 -1
  343. package/dist/environments.js +4 -0
  344. package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
  345. package/dist/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
  346. package/dist/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  347. package/dist/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  348. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
  349. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
  350. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
  351. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
  352. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  353. package/dist/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  354. package/dist/version.d.ts +1 -1
  355. package/dist/version.js +1 -1
  356. package/environments.d.ts +5 -1
  357. package/environments.js +4 -0
  358. package/package.json +1 -1
  359. package/reference.md +772 -2366
  360. package/serialization/resources/contracts/resources/v2/types/ContractSortField.d.ts +10 -0
  361. package/serialization/resources/contracts/resources/v2/types/ContractSortField.js +48 -0
  362. package/serialization/resources/contracts/resources/v2/types/index.d.ts +1 -0
  363. package/serialization/resources/contracts/resources/v2/types/index.js +1 -0
  364. package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.d.ts +11 -0
  365. package/serialization/resources/expectedNetworkStatus/resources/v2/types/EmptyObject.js +41 -0
  366. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.d.ts +3 -2
  367. package/serialization/resources/expectedNetworkStatus/resources/v2/types/InsuranceTypeCodes.js +3 -2
  368. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.d.ts +1 -0
  369. package/serialization/resources/expectedNetworkStatus/resources/v2/types/index.js +1 -0
  370. package/version.d.ts +1 -1
  371. package/version.js +1 -1
@@ -26,25 +26,17 @@ export declare class V1 {
26
26
  protected readonly _options: V1.Options;
27
27
  constructor(_options?: V1.Options);
28
28
  /**
29
- * Adds an image. VersionConflictError is returned if a front or back of this coverage already exists.
29
+ * Adds an image. VersionConflictError is returned if a front or back of this coverage already exists.
30
30
  *
31
31
  * @param {CandidApi.preEncounter.images.v1.MutableImage} request
32
32
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
33
33
  *
34
34
  * @example
35
35
  * await client.preEncounter.images.v1.create({
36
- * fileName: "string",
37
- * displayName: "string",
38
- * fileType: "string",
39
- * status: "PENDING",
40
- * coverage: {
41
- * id: CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
42
- * side: "FRONT"
43
- * },
44
- * patient: {
45
- * id: CandidApi.preEncounter.PatientId("string"),
46
- * notes: "string"
47
- * }
36
+ * fileName: "file_name",
37
+ * displayName: "display_name",
38
+ * fileType: "file_type",
39
+ * status: "PENDING"
48
40
  * })
49
41
  */
50
42
  create(request: CandidApi.preEncounter.images.v1.MutableImage, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.images.v1.Image, CandidApi.preEncounter.images.v1.create.Error>>;
@@ -55,11 +47,11 @@ export declare class V1 {
55
47
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
56
48
  *
57
49
  * @example
58
- * await client.preEncounter.images.v1.get(CandidApi.preEncounter.images.v1.ImageId("string"))
50
+ * await client.preEncounter.images.v1.get(CandidApi.preEncounter.images.v1.ImageId("id"))
59
51
  */
60
52
  get(id: CandidApi.preEncounter.images.v1.ImageId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.images.v1.Image, CandidApi.preEncounter.images.v1.get.Error>>;
61
53
  /**
62
- * Updates an Image. The path must contain the most recent version to prevent races.
54
+ * Updates an Image. The path must contain the most recent version to prevent races.
63
55
  *
64
56
  * @param {CandidApi.preEncounter.images.v1.ImageId} id
65
57
  * @param {string} version
@@ -67,31 +59,23 @@ export declare class V1 {
67
59
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
68
60
  *
69
61
  * @example
70
- * await client.preEncounter.images.v1.update(CandidApi.preEncounter.images.v1.ImageId("string"), "string", {
71
- * fileName: "string",
72
- * displayName: "string",
73
- * fileType: "string",
74
- * status: "PENDING",
75
- * coverage: {
76
- * id: CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
77
- * side: "FRONT"
78
- * },
79
- * patient: {
80
- * id: CandidApi.preEncounter.PatientId("string"),
81
- * notes: "string"
82
- * }
62
+ * await client.preEncounter.images.v1.update(CandidApi.preEncounter.images.v1.ImageId("id"), "version", {
63
+ * fileName: "file_name",
64
+ * displayName: "display_name",
65
+ * fileType: "file_type",
66
+ * status: "PENDING"
83
67
  * })
84
68
  */
85
69
  update(id: CandidApi.preEncounter.images.v1.ImageId, version: string, request: CandidApi.preEncounter.images.v1.MutableImage, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.images.v1.Image, CandidApi.preEncounter.images.v1.update.Error>>;
86
70
  /**
87
- * Sets an Image as deactivated. The path must contain the most recent version to prevent races.
71
+ * Sets an Image as deactivated. The path must contain the most recent version to prevent races.
88
72
  *
89
73
  * @param {CandidApi.preEncounter.images.v1.ImageId} id
90
74
  * @param {string} version
91
75
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
92
76
  *
93
77
  * @example
94
- * await client.preEncounter.images.v1.deactivate(CandidApi.preEncounter.images.v1.ImageId("string"), "string")
78
+ * await client.preEncounter.images.v1.deactivate(CandidApi.preEncounter.images.v1.ImageId("id"), "version")
95
79
  */
96
80
  deactivate(id: CandidApi.preEncounter.images.v1.ImageId, version: string, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.preEncounter.images.v1.deactivate.Error>>;
97
81
  /**
@@ -101,10 +85,7 @@ export declare class V1 {
101
85
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
102
86
  *
103
87
  * @example
104
- * await client.preEncounter.images.v1.getMulti({
105
- * patientId: "string",
106
- * coverageId: "string"
107
- * })
88
+ * await client.preEncounter.images.v1.getMulti()
108
89
  */
109
90
  getMulti(request?: CandidApi.preEncounter.images.v1.ImageGetMultiRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.images.v1.Image[], CandidApi.preEncounter.images.v1.getMulti.Error>>;
110
91
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -59,25 +59,17 @@ class V1 {
59
59
  this._options = _options;
60
60
  }
61
61
  /**
62
- * Adds an image. VersionConflictError is returned if a front or back of this coverage already exists.
62
+ * Adds an image. VersionConflictError is returned if a front or back of this coverage already exists.
63
63
  *
64
64
  * @param {CandidApi.preEncounter.images.v1.MutableImage} request
65
65
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @example
68
68
  * await client.preEncounter.images.v1.create({
69
- * fileName: "string",
70
- * displayName: "string",
71
- * fileType: "string",
72
- * status: "PENDING",
73
- * coverage: {
74
- * id: CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
75
- * side: "FRONT"
76
- * },
77
- * patient: {
78
- * id: CandidApi.preEncounter.PatientId("string"),
79
- * notes: "string"
80
- * }
69
+ * fileName: "file_name",
70
+ * displayName: "display_name",
71
+ * fileType: "file_type",
72
+ * status: "PENDING"
81
73
  * })
82
74
  */
83
75
  create(request, requestOptions) {
@@ -86,7 +78,7 @@ class V1 {
86
78
  const _response = yield core.fetcher({
87
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, "/images/v1"),
88
80
  method: "POST",
89
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
81
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
90
82
  contentType: "application/json",
91
83
  requestType: "json",
92
84
  body: serializers.preEncounter.images.v1.MutableImage.jsonOrThrow(request, {
@@ -134,7 +126,7 @@ class V1 {
134
126
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
135
127
  *
136
128
  * @example
137
- * await client.preEncounter.images.v1.get(CandidApi.preEncounter.images.v1.ImageId("string"))
129
+ * await client.preEncounter.images.v1.get(CandidApi.preEncounter.images.v1.ImageId("id"))
138
130
  */
139
131
  get(id, requestOptions) {
140
132
  return __awaiter(this, void 0, void 0, function* () {
@@ -142,7 +134,7 @@ class V1 {
142
134
  const _response = yield core.fetcher({
143
135
  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, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}`),
144
136
  method: "GET",
145
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
137
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
146
138
  contentType: "application/json",
147
139
  requestType: "json",
148
140
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -181,7 +173,7 @@ class V1 {
181
173
  });
182
174
  }
183
175
  /**
184
- * Updates an Image. The path must contain the most recent version to prevent races.
176
+ * Updates an Image. The path must contain the most recent version to prevent races.
185
177
  *
186
178
  * @param {CandidApi.preEncounter.images.v1.ImageId} id
187
179
  * @param {string} version
@@ -189,19 +181,11 @@ class V1 {
189
181
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
190
182
  *
191
183
  * @example
192
- * await client.preEncounter.images.v1.update(CandidApi.preEncounter.images.v1.ImageId("string"), "string", {
193
- * fileName: "string",
194
- * displayName: "string",
195
- * fileType: "string",
196
- * status: "PENDING",
197
- * coverage: {
198
- * id: CandidApi.preEncounter.CoverageId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
199
- * side: "FRONT"
200
- * },
201
- * patient: {
202
- * id: CandidApi.preEncounter.PatientId("string"),
203
- * notes: "string"
204
- * }
184
+ * await client.preEncounter.images.v1.update(CandidApi.preEncounter.images.v1.ImageId("id"), "version", {
185
+ * fileName: "file_name",
186
+ * displayName: "display_name",
187
+ * fileType: "file_type",
188
+ * status: "PENDING"
205
189
  * })
206
190
  */
207
191
  update(id, version, request, requestOptions) {
@@ -210,7 +194,7 @@ class V1 {
210
194
  const _response = yield core.fetcher({
211
195
  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, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
212
196
  method: "PUT",
213
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
197
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
214
198
  contentType: "application/json",
215
199
  requestType: "json",
216
200
  body: serializers.preEncounter.images.v1.MutableImage.jsonOrThrow(request, {
@@ -253,14 +237,14 @@ class V1 {
253
237
  });
254
238
  }
255
239
  /**
256
- * Sets an Image as deactivated. The path must contain the most recent version to prevent races.
240
+ * Sets an Image as deactivated. The path must contain the most recent version to prevent races.
257
241
  *
258
242
  * @param {CandidApi.preEncounter.images.v1.ImageId} id
259
243
  * @param {string} version
260
244
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
261
245
  *
262
246
  * @example
263
- * await client.preEncounter.images.v1.deactivate(CandidApi.preEncounter.images.v1.ImageId("string"), "string")
247
+ * await client.preEncounter.images.v1.deactivate(CandidApi.preEncounter.images.v1.ImageId("id"), "version")
264
248
  */
265
249
  deactivate(id, version, requestOptions) {
266
250
  return __awaiter(this, void 0, void 0, function* () {
@@ -268,7 +252,7 @@ class V1 {
268
252
  const _response = yield core.fetcher({
269
253
  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, `/images/v1/${encodeURIComponent(serializers.preEncounter.images.v1.ImageId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
270
254
  method: "DELETE",
271
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
255
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
272
256
  contentType: "application/json",
273
257
  requestType: "json",
274
258
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -309,10 +293,7 @@ class V1 {
309
293
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
310
294
  *
311
295
  * @example
312
- * await client.preEncounter.images.v1.getMulti({
313
- * patientId: "string",
314
- * coverageId: "string"
315
- * })
296
+ * await client.preEncounter.images.v1.getMulti()
316
297
  */
317
298
  getMulti() {
318
299
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
@@ -328,7 +309,7 @@ class V1 {
328
309
  const _response = yield core.fetcher({
329
310
  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, "/images/v1"),
330
311
  method: "GET",
331
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
312
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
332
313
  contentType: "application/json",
333
314
  queryParameters: _queryParams,
334
315
  requestType: "json",
@@ -3,10 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {
7
- * patientId: "string",
8
- * coverageId: "string"
9
- * }
6
+ * {}
10
7
  */
11
8
  export interface ImageGetMultiRequest {
12
9
  patientId?: string;
@@ -7,6 +7,6 @@ import * as CandidApi from "../../../../../../../index";
7
7
  */
8
8
  export interface Image extends CandidApi.preEncounter.BaseModel, CandidApi.preEncounter.images.v1.MutableImage {
9
9
  id: CandidApi.preEncounter.images.v1.ImageId;
10
- /** A signed URL to the image. This url can be used to upload an image to GCP storage or to read the image contents. */
10
+ /** A signed URL to the image. This url can be used to upload an image to GCP storage or to read the image contents. */
11
11
  signedUrl: string;
12
12
  }
@@ -32,13 +32,7 @@ export declare class V1 {
32
32
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
33
33
  *
34
34
  * @example
35
- * await client.preEncounter.lists.v1.getPatientList({
36
- * pageToken: CandidApi.preEncounter.PageToken("string"),
37
- * limit: 1,
38
- * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
39
- * sortDirection: "asc",
40
- * filters: CandidApi.preEncounter.lists.v1.FilterQueryString("string")
41
- * })
35
+ * await client.preEncounter.lists.v1.getPatientList()
42
36
  */
43
37
  getPatientList(request?: CandidApi.preEncounter.lists.v1.PatientListRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.lists.v1.PatientListPage, CandidApi.preEncounter.lists.v1.getPatientList.Error>>;
44
38
  /**
@@ -48,13 +42,7 @@ export declare class V1 {
48
42
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
49
43
  *
50
44
  * @example
51
- * await client.preEncounter.lists.v1.getAppointmentList({
52
- * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
53
- * sortDirection: "asc",
54
- * limit: 1,
55
- * pageToken: CandidApi.preEncounter.PageToken("string"),
56
- * filters: CandidApi.preEncounter.lists.v1.FilterQueryString("string")
57
- * })
45
+ * await client.preEncounter.lists.v1.getAppointmentList()
58
46
  */
59
47
  getAppointmentList(request?: CandidApi.preEncounter.lists.v1.AppointmentsGetListRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.lists.v1.AppointmentListPage, CandidApi.preEncounter.lists.v1.getAppointmentList.Error>>;
60
48
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -65,13 +65,7 @@ class V1 {
65
65
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @example
68
- * await client.preEncounter.lists.v1.getPatientList({
69
- * pageToken: CandidApi.preEncounter.PageToken("string"),
70
- * limit: 1,
71
- * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
72
- * sortDirection: "asc",
73
- * filters: CandidApi.preEncounter.lists.v1.FilterQueryString("string")
74
- * })
68
+ * await client.preEncounter.lists.v1.getPatientList()
75
69
  */
76
70
  getPatientList() {
77
71
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
@@ -98,7 +92,7 @@ class V1 {
98
92
  const _response = yield core.fetcher({
99
93
  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, "/lists/v1/patient"),
100
94
  method: "GET",
101
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
95
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
102
96
  contentType: "application/json",
103
97
  queryParameters: _queryParams,
104
98
  requestType: "json",
@@ -144,13 +138,7 @@ class V1 {
144
138
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
145
139
  *
146
140
  * @example
147
- * await client.preEncounter.lists.v1.getAppointmentList({
148
- * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
149
- * sortDirection: "asc",
150
- * limit: 1,
151
- * pageToken: CandidApi.preEncounter.PageToken("string"),
152
- * filters: CandidApi.preEncounter.lists.v1.FilterQueryString("string")
153
- * })
141
+ * await client.preEncounter.lists.v1.getAppointmentList()
154
142
  */
155
143
  getAppointmentList() {
156
144
  return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
@@ -177,7 +165,7 @@ class V1 {
177
165
  const _response = yield core.fetcher({
178
166
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, "/lists/v1/appointment"),
179
167
  method: "GET",
180
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
169
  contentType: "application/json",
182
170
  queryParameters: _queryParams,
183
171
  requestType: "json",
@@ -4,13 +4,7 @@
4
4
  import * as CandidApi from "../../../../../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
9
- * sortDirection: "asc",
10
- * limit: 1,
11
- * pageToken: CandidApi.preEncounter.PageToken("string"),
12
- * filters: CandidApi.preEncounter.lists.v1.FilterQueryString("string")
13
- * }
7
+ * {}
14
8
  */
15
9
  export interface AppointmentsGetListRequest {
16
10
  /**
@@ -4,13 +4,7 @@
4
4
  import * as CandidApi from "../../../../../../../../index";
5
5
  /**
6
6
  * @example
7
- * {
8
- * pageToken: CandidApi.preEncounter.PageToken("string"),
9
- * limit: 1,
10
- * sortField: CandidApi.preEncounter.lists.v1.SortFieldString("string"),
11
- * sortDirection: "asc",
12
- * filters: CandidApi.preEncounter.lists.v1.FilterQueryString("string")
13
- * }
7
+ * {}
14
8
  */
15
9
  export interface PatientListRequest {
16
10
  pageToken?: CandidApi.preEncounter.PageToken;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../../../index";
5
5
  /**
6
- * A serialized list of filters separated by commas indicating filters to apply. Each filter is of the form 'path:operator:value'. Example: 'patient.mrn|eq|12345'. Filters are separated by commas. Example: 'patient.mrn|eq|12345,appointment.startDate|gt|67890'. All filters are ANDed together. Valid operators are 'eq', 'gt', 'lt', 'contains'. Path values are camelCase.
6
+ * A serialized list of filters separated by commas indicating filters to apply. Each filter is of the form 'path:operator:value'. Example: 'patient.mrn|eq|12345'. Filters are separated by commas. Example: 'patient.mrn|eq|12345,appointment.startDate|gt|67890'. All filters are ANDed together. Valid operators are 'eq', 'gt', 'lt', 'contains'. Path values are camelCase.
7
7
  */
8
8
  export type FilterQueryString = string & {
9
9
  preEncounter_lists_v1_FilterQueryString: void;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../../../index";
5
5
  /**
6
- * The field to order by. Valid values are either keys on the list item object or a special ordering "similar_name:<search_string>" (Ex: similar_name:John). Similar name ordering uses trigrams to fuzzy match patient name to the search criteria. Path names are camelCase.
6
+ * The field to order by. Valid values are either keys on the list item object or a special ordering "similar_name:<search_string>" (Ex: similar_name:John). Similar name ordering uses trigrams to fuzzy match patient name to the search criteria. Path names are camelCase.
7
7
  */
8
8
  export type SortFieldString = string & {
9
9
  preEncounter_lists_v1_SortFieldString: void;
@@ -32,7 +32,7 @@ export declare class V1 {
32
32
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
33
33
  *
34
34
  * @example
35
- * await client.preEncounter.notes.v1.get(CandidApi.preEncounter.NoteId("string"))
35
+ * await client.preEncounter.notes.v1.get(CandidApi.preEncounter.NoteId("id"))
36
36
  */
37
37
  get(id: CandidApi.preEncounter.NoteId, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.notes.v1.Note, CandidApi.preEncounter.notes.v1.get.Error>>;
38
38
  /**
@@ -43,9 +43,7 @@ export declare class V1 {
43
43
  *
44
44
  * @example
45
45
  * await client.preEncounter.notes.v1.create({
46
- * value: "string",
47
- * authorEmail: "string",
48
- * authorName: "string"
46
+ * value: "value"
49
47
  * })
50
48
  */
51
49
  create(request: CandidApi.preEncounter.notes.v1.MutableNote, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.notes.v1.Note, CandidApi.preEncounter.notes.v1.create.Error>>;
@@ -58,22 +56,20 @@ export declare class V1 {
58
56
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
59
57
  *
60
58
  * @example
61
- * await client.preEncounter.notes.v1.update(CandidApi.preEncounter.NoteId("string"), "string", {
62
- * value: "string",
63
- * authorEmail: "string",
64
- * authorName: "string"
59
+ * await client.preEncounter.notes.v1.update(CandidApi.preEncounter.NoteId("id"), "version", {
60
+ * value: "value"
65
61
  * })
66
62
  */
67
63
  update(id: CandidApi.preEncounter.NoteId, version: string, request: CandidApi.preEncounter.notes.v1.MutableNote, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.notes.v1.Note, CandidApi.preEncounter.notes.v1.update.Error>>;
68
64
  /**
69
- * Sets a note as deactivated. The path must contain the most recent version to prevent races.
65
+ * Sets a note as deactivated. The path must contain the most recent version to prevent races.
70
66
  *
71
67
  * @param {CandidApi.preEncounter.NoteId} id
72
68
  * @param {string} version
73
69
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
74
70
  *
75
71
  * @example
76
- * await client.preEncounter.notes.v1.deactivate(CandidApi.preEncounter.NoteId("string"), "string")
72
+ * await client.preEncounter.notes.v1.deactivate(CandidApi.preEncounter.NoteId("id"), "version")
77
73
  */
78
74
  deactivate(id: CandidApi.preEncounter.NoteId, version: string, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<void, CandidApi.preEncounter.notes.v1.deactivate.Error>>;
79
75
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -65,7 +65,7 @@ class V1 {
65
65
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
66
66
  *
67
67
  * @example
68
- * await client.preEncounter.notes.v1.get(CandidApi.preEncounter.NoteId("string"))
68
+ * await client.preEncounter.notes.v1.get(CandidApi.preEncounter.NoteId("id"))
69
69
  */
70
70
  get(id, requestOptions) {
71
71
  return __awaiter(this, void 0, void 0, function* () {
@@ -73,7 +73,7 @@ class V1 {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CandidApiEnvironment.Production).preEncounter, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}`),
75
75
  method: "GET",
76
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
77
77
  contentType: "application/json",
78
78
  requestType: "json",
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -105,9 +105,7 @@ class V1 {
105
105
  *
106
106
  * @example
107
107
  * await client.preEncounter.notes.v1.create({
108
- * value: "string",
109
- * authorEmail: "string",
110
- * authorName: "string"
108
+ * value: "value"
111
109
  * })
112
110
  */
113
111
  create(request, requestOptions) {
@@ -116,7 +114,7 @@ class V1 {
116
114
  const _response = yield core.fetcher({
117
115
  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, "/notes/v1"),
118
116
  method: "POST",
119
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
117
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
120
118
  contentType: "application/json",
121
119
  requestType: "json",
122
120
  body: serializers.preEncounter.notes.v1.MutableNote.jsonOrThrow(request, {
@@ -152,10 +150,8 @@ class V1 {
152
150
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
153
151
  *
154
152
  * @example
155
- * await client.preEncounter.notes.v1.update(CandidApi.preEncounter.NoteId("string"), "string", {
156
- * value: "string",
157
- * authorEmail: "string",
158
- * authorName: "string"
153
+ * await client.preEncounter.notes.v1.update(CandidApi.preEncounter.NoteId("id"), "version", {
154
+ * value: "value"
159
155
  * })
160
156
  */
161
157
  update(id, version, request, requestOptions) {
@@ -164,7 +160,7 @@ class V1 {
164
160
  const _response = yield core.fetcher({
165
161
  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, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
166
162
  method: "PUT",
167
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
163
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
168
164
  contentType: "application/json",
169
165
  requestType: "json",
170
166
  body: serializers.preEncounter.notes.v1.MutableNote.jsonOrThrow(request, {
@@ -192,14 +188,14 @@ class V1 {
192
188
  });
193
189
  }
194
190
  /**
195
- * Sets a note as deactivated. The path must contain the most recent version to prevent races.
191
+ * Sets a note as deactivated. The path must contain the most recent version to prevent races.
196
192
  *
197
193
  * @param {CandidApi.preEncounter.NoteId} id
198
194
  * @param {string} version
199
195
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
200
196
  *
201
197
  * @example
202
- * await client.preEncounter.notes.v1.deactivate(CandidApi.preEncounter.NoteId("string"), "string")
198
+ * await client.preEncounter.notes.v1.deactivate(CandidApi.preEncounter.NoteId("id"), "version")
203
199
  */
204
200
  deactivate(id, version, requestOptions) {
205
201
  return __awaiter(this, void 0, void 0, function* () {
@@ -207,7 +203,7 @@ class V1 {
207
203
  const _response = yield core.fetcher({
208
204
  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, `/notes/v1/${encodeURIComponent(serializers.preEncounter.NoteId.jsonOrThrow(id))}/${encodeURIComponent(version)}`),
209
205
  method: "DELETE",
210
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.45.0", "User-Agent": "candidhealth/0.45.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
206
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "candidhealth", "X-Fern-SDK-Version": "0.46.0", "User-Agent": "candidhealth/0.46.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
211
207
  contentType: "application/json",
212
208
  requestType: "json",
213
209
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,