candidhealth 0.35.1 → 0.35.2

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 (246) hide show
  1. package/api/resources/auth/resources/v2/client/Client.js +1 -1
  2. package/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  3. package/api/resources/contracts/resources/v2/client/Client.js +5 -5
  4. package/api/resources/credentialing/resources/v2/client/Client.d.ts +1 -0
  5. package/api/resources/credentialing/resources/v2/client/Client.js +11 -6
  6. package/api/resources/credentialing/resources/v2/client/getAll.d.ts +7 -1
  7. package/api/resources/credentialing/resources/v2/client/getAll.js +11 -0
  8. package/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +7 -2
  9. package/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  10. package/api/resources/diagnoses/client/Client.js +3 -3
  11. package/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  12. package/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  13. package/api/resources/encounters/resources/v4/client/Client.js +5 -5
  14. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  15. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  16. package/api/resources/exports/resources/v3/client/Client.js +1 -1
  17. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  18. package/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  19. package/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  20. package/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  21. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  22. package/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  23. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  24. package/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  25. package/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  26. package/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  27. package/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  28. package/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  29. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  30. package/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  31. package/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  32. package/api/resources/payers/resources/v3/client/Client.js +2 -2
  33. package/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  34. package/api/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +3 -3
  35. package/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +3 -3
  36. package/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +3 -3
  37. package/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +3 -3
  38. package/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +3 -3
  39. package/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
  40. package/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +2 -3
  41. package/api/resources/preEncounter/resources/common/types/index.d.ts +1 -2
  42. package/api/resources/preEncounter/resources/common/types/index.js +1 -2
  43. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  44. package/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +3 -3
  45. package/api/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +3 -3
  46. package/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  47. package/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
  48. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  49. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -13
  50. package/api/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -7
  51. package/api/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -11
  52. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +6 -12
  53. package/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +4 -15
  54. package/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +3 -3
  55. package/api/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +3 -3
  56. package/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +3 -3
  57. package/api/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +3 -3
  58. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
  59. package/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
  60. package/api/resources/serviceFacility/client/Client.js +1 -1
  61. package/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  62. package/api/resources/tasks/resources/v3/client/Client.js +5 -5
  63. package/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  64. package/api/resources/x12/resources/v1/types/Rarc.d.ts +2 -1
  65. package/api/resources/x12/resources/v1/types/Rarc.js +1 -0
  66. package/dist/api/resources/auth/resources/v2/client/Client.js +1 -1
  67. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +1 -1
  68. package/dist/api/resources/contracts/resources/v2/client/Client.js +5 -5
  69. package/dist/api/resources/credentialing/resources/v2/client/Client.d.ts +1 -0
  70. package/dist/api/resources/credentialing/resources/v2/client/Client.js +11 -6
  71. package/dist/api/resources/credentialing/resources/v2/client/getAll.d.ts +7 -1
  72. package/dist/api/resources/credentialing/resources/v2/client/getAll.js +11 -0
  73. package/dist/api/resources/credentialing/resources/v2/client/requests/GetAllProviderCredentialingSpansRequest.d.ts +7 -2
  74. package/dist/api/resources/customSchemas/resources/v1/client/Client.js +4 -4
  75. package/dist/api/resources/diagnoses/client/Client.js +3 -3
  76. package/dist/api/resources/eligibility/resources/v2/client/Client.js +3 -3
  77. package/dist/api/resources/encounterProviders/resources/v2/client/Client.js +12 -12
  78. package/dist/api/resources/encounters/resources/v4/client/Client.js +5 -5
  79. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +1 -1
  80. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +2 -2
  81. package/dist/api/resources/exports/resources/v3/client/Client.js +1 -1
  82. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +1 -1
  83. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +10 -10
  84. package/dist/api/resources/guarantor/resources/v1/client/Client.js +3 -3
  85. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +4 -4
  86. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +3 -3
  87. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +5 -5
  88. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +5 -5
  89. package/dist/api/resources/medicationDispense/resources/v1/client/Client.js +1 -1
  90. package/dist/api/resources/nonInsurancePayerPayments/resources/v1/client/Client.js +5 -5
  91. package/dist/api/resources/nonInsurancePayerRefunds/resources/v1/client/Client.js +5 -5
  92. package/dist/api/resources/nonInsurancePayers/resources/v1/client/Client.js +6 -6
  93. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +4 -4
  94. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +5 -5
  95. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +5 -5
  96. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +5 -5
  97. package/dist/api/resources/payers/resources/v3/client/Client.js +2 -2
  98. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/Client.js +6 -6
  99. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +3 -3
  100. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +3 -3
  101. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +3 -3
  102. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +3 -3
  103. package/dist/api/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +3 -3
  104. package/dist/api/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +2 -1
  105. package/dist/api/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +2 -3
  106. package/dist/api/resources/preEncounter/resources/common/types/index.d.ts +1 -2
  107. package/dist/api/resources/preEncounter/resources/common/types/index.js +1 -2
  108. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +8 -8
  109. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +3 -3
  110. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +3 -3
  111. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/Client.js +2 -2
  112. package/dist/api/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +3 -3
  113. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +1 -1
  114. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +11 -13
  115. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -7
  116. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -11
  117. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +6 -12
  118. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +4 -15
  119. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +3 -3
  120. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +3 -3
  121. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +3 -3
  122. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +3 -3
  123. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
  124. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
  125. package/dist/api/resources/serviceFacility/client/Client.js +1 -1
  126. package/dist/api/resources/serviceLines/resources/v2/client/Client.js +3 -3
  127. package/dist/api/resources/tasks/resources/v3/client/Client.js +5 -5
  128. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +4 -4
  129. package/dist/api/resources/x12/resources/v1/types/Rarc.d.ts +2 -1
  130. package/dist/api/resources/x12/resources/v1/types/Rarc.js +1 -0
  131. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +6 -1
  132. package/dist/serialization/resources/credentialing/resources/v2/client/getAll.js +6 -0
  133. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +2 -2
  134. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +2 -2
  135. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +2 -2
  136. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +2 -2
  137. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +2 -2
  138. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +2 -2
  139. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +2 -2
  140. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +2 -2
  141. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +2 -2
  142. package/dist/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +2 -2
  143. package/dist/serialization/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +3 -2
  144. package/dist/serialization/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +3 -2
  145. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +3 -4
  146. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +3 -4
  147. package/dist/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -2
  148. package/dist/serialization/resources/preEncounter/resources/common/types/index.js +1 -2
  149. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +2 -2
  150. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +2 -2
  151. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +2 -2
  152. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.js +2 -2
  153. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +2 -2
  154. package/dist/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.js +2 -2
  155. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -6
  156. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -6
  157. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +5 -10
  158. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +5 -11
  159. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +2 -2
  160. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +2 -2
  161. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +2 -2
  162. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.js +2 -2
  163. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +2 -2
  164. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +2 -2
  165. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +2 -2
  166. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.js +2 -2
  167. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
  168. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
  169. package/dist/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  170. package/dist/serialization/resources/x12/resources/v1/types/Rarc.js +1 -0
  171. package/package.json +1 -1
  172. package/reference.md +2 -1
  173. package/serialization/resources/credentialing/resources/v2/client/getAll.d.ts +6 -1
  174. package/serialization/resources/credentialing/resources/v2/client/getAll.js +6 -0
  175. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.d.ts +2 -2
  176. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/create.js +2 -2
  177. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.d.ts +2 -2
  178. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/deactivate.js +2 -2
  179. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.d.ts +2 -2
  180. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/get.js +2 -2
  181. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.d.ts +2 -2
  182. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/getHistory.js +2 -2
  183. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.d.ts +2 -2
  184. package/serialization/resources/preEncounter/resources/appointments/resources/v1/client/update.js +2 -2
  185. package/serialization/resources/preEncounter/resources/common/types/{ErrorBase.d.ts → ErrorBase4Xx.d.ts} +3 -2
  186. package/serialization/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +3 -2
  187. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +3 -4
  188. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +3 -4
  189. package/serialization/resources/preEncounter/resources/common/types/index.d.ts +1 -2
  190. package/serialization/resources/preEncounter/resources/common/types/index.js +1 -2
  191. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.d.ts +2 -2
  192. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/getHistory.js +2 -2
  193. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.d.ts +2 -2
  194. package/serialization/resources/preEncounter/resources/coverages/resources/v1/client/update.js +2 -2
  195. package/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.d.ts +2 -2
  196. package/serialization/resources/preEncounter/resources/lists/resources/v1/client/getPatientList.js +2 -2
  197. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.d.ts +1 -6
  198. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/create.js +0 -6
  199. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.d.ts +5 -10
  200. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/createWithMrn.js +5 -11
  201. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.d.ts +2 -2
  202. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/deactivate.js +2 -2
  203. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.d.ts +2 -2
  204. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/get.js +2 -2
  205. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.d.ts +2 -2
  206. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/getHistory.js +2 -2
  207. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.d.ts +2 -2
  208. package/serialization/resources/preEncounter/resources/patients/resources/v1/client/update.js +2 -2
  209. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.d.ts +0 -3
  210. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/index.js +0 -3
  211. package/serialization/resources/x12/resources/v1/types/Rarc.d.ts +1 -1
  212. package/serialization/resources/x12/resources/v1/types/Rarc.js +1 -0
  213. package/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
  214. package/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -7
  215. package/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +0 -5
  216. package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -8
  217. package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -5
  218. package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -8
  219. package/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -5
  220. package/dist/api/resources/preEncounter/resources/common/types/ErrorBase.js +0 -5
  221. package/dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -7
  222. package/dist/api/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +0 -5
  223. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -7
  224. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +0 -5
  225. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -8
  226. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -5
  227. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -8
  228. package/dist/api/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -5
  229. package/dist/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -13
  230. package/dist/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +0 -36
  231. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -13
  232. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +0 -36
  233. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -14
  234. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -35
  235. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -15
  236. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -38
  237. package/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.d.ts +0 -13
  238. package/serialization/resources/preEncounter/resources/common/types/NotFoundErrorBody.js +0 -36
  239. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.d.ts +0 -13
  240. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/InvalidMrnErrorBody.js +0 -36
  241. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.d.ts +0 -14
  242. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatient.js +0 -35
  243. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.d.ts +0 -15
  244. package/serialization/resources/preEncounter/resources/patients/resources/v1/types/PotentialDuplicatePatientsErrorBody.js +0 -38
  245. /package/api/resources/preEncounter/resources/common/types/{ErrorBase.js → ErrorBase4Xx.js} +0 -0
  246. /package/{api/resources/preEncounter/resources/common/types/NotFoundErrorBody.js → dist/api/resources/preEncounter/resources/common/types/ErrorBase4Xx.js} +0 -0
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.appointments.v1.get.Error.Not
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface _Unknown extends _Utils {
13
13
  errorName: void;
@@ -17,12 +17,12 @@ export declare namespace Error {
17
17
  _visit: <_Result>(visitor: CandidApi.preEncounter.appointments.v1.get.Error._Visitor<_Result>) => _Result;
18
18
  }
19
19
  interface _Visitor<_Result> {
20
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
20
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
21
21
  _other: (value: core.Fetcher.Error) => _Result;
22
22
  }
23
23
  }
24
24
  export declare const Error: {
25
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.appointments.v1.get.Error.NotFoundError;
25
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.appointments.v1.get.Error.NotFoundError;
26
26
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.appointments.v1.get.Error._Unknown;
27
27
  readonly _visit: <_Result>(value: CandidApi.preEncounter.appointments.v1.get.Error, visitor: CandidApi.preEncounter.appointments.v1.get.Error._Visitor<_Result>) => _Result;
28
28
  };
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.appointments.v1.getHistory.Er
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface _Unknown extends _Utils {
13
13
  errorName: void;
@@ -17,12 +17,12 @@ export declare namespace Error {
17
17
  _visit: <_Result>(visitor: CandidApi.preEncounter.appointments.v1.getHistory.Error._Visitor<_Result>) => _Result;
18
18
  }
19
19
  interface _Visitor<_Result> {
20
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
20
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
21
21
  _other: (value: core.Fetcher.Error) => _Result;
22
22
  }
23
23
  }
24
24
  export declare const Error: {
25
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.appointments.v1.getHistory.Error.NotFoundError;
25
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.appointments.v1.getHistory.Error.NotFoundError;
26
26
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.appointments.v1.getHistory.Error._Unknown;
27
27
  readonly _visit: <_Result>(value: CandidApi.preEncounter.appointments.v1.getHistory.Error, visitor: CandidApi.preEncounter.appointments.v1.getHistory.Error._Visitor<_Result>) => _Result;
28
28
  };
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.appointments.v1.update.Error.
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface VersionConflictError extends _Utils {
13
13
  errorName: "VersionConflictError";
@@ -21,13 +21,13 @@ export declare namespace Error {
21
21
  _visit: <_Result>(visitor: CandidApi.preEncounter.appointments.v1.update.Error._Visitor<_Result>) => _Result;
22
22
  }
23
23
  interface _Visitor<_Result> {
24
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
24
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
25
25
  versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
26
26
  _other: (value: core.Fetcher.Error) => _Result;
27
27
  }
28
28
  }
29
29
  export declare const Error: {
30
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.appointments.v1.update.Error.NotFoundError;
30
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.appointments.v1.update.Error.NotFoundError;
31
31
  readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.appointments.v1.update.Error.VersionConflictError;
32
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.appointments.v1.update.Error._Unknown;
33
33
  readonly _visit: <_Result>(value: CandidApi.preEncounter.appointments.v1.update.Error, visitor: CandidApi.preEncounter.appointments.v1.update.Error._Visitor<_Result>) => _Result;
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface ErrorBase {
4
+ export interface ErrorBase4Xx {
5
5
  message: string;
6
+ data?: unknown;
6
7
  }
@@ -2,7 +2,6 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as CandidApi from "../../../../../index";
5
- export interface VersionConflictErrorBody extends CandidApi.preEncounter.ErrorBase {
6
- code: "VERSION_CONFLICT";
7
- latestVersion: number;
5
+ export interface VersionConflictErrorBody extends CandidApi.preEncounter.ErrorBase4Xx {
6
+ latestVersion?: number;
8
7
  }
@@ -23,8 +23,7 @@ export * from "./ContactPointUse";
23
23
  export * from "./ContactPoint";
24
24
  export * from "./PageToken";
25
25
  export * from "./ResourcePage";
26
- export * from "./ErrorBase";
27
- export * from "./NotFoundErrorBody";
26
+ export * from "./ErrorBase4Xx";
28
27
  export * from "./VersionConflictErrorBody";
29
28
  export * from "./AdditionalPayerInformation";
30
29
  export * from "./ExternalProviderType";
@@ -39,8 +39,7 @@ __exportStar(require("./ContactPointUse"), exports);
39
39
  __exportStar(require("./ContactPoint"), exports);
40
40
  __exportStar(require("./PageToken"), exports);
41
41
  __exportStar(require("./ResourcePage"), exports);
42
- __exportStar(require("./ErrorBase"), exports);
43
- __exportStar(require("./NotFoundErrorBody"), exports);
42
+ __exportStar(require("./ErrorBase4Xx"), exports);
44
43
  __exportStar(require("./VersionConflictErrorBody"), exports);
45
44
  __exportStar(require("./AdditionalPayerInformation"), exports);
46
45
  __exportStar(require("./ExternalProviderType"), exports);
@@ -122,7 +122,7 @@ class V1 {
122
122
  Authorization: yield this._getAuthorizationHeader(),
123
123
  "X-Fern-Language": "JavaScript",
124
124
  "X-Fern-SDK-Name": "candidhealth",
125
- "X-Fern-SDK-Version": "0.35.1",
125
+ "X-Fern-SDK-Version": "0.35.2",
126
126
  "X-Fern-Runtime": core.RUNTIME.type,
127
127
  "X-Fern-Runtime-Version": core.RUNTIME.version,
128
128
  },
@@ -228,7 +228,7 @@ class V1 {
228
228
  Authorization: yield this._getAuthorizationHeader(),
229
229
  "X-Fern-Language": "JavaScript",
230
230
  "X-Fern-SDK-Name": "candidhealth",
231
- "X-Fern-SDK-Version": "0.35.1",
231
+ "X-Fern-SDK-Version": "0.35.2",
232
232
  "X-Fern-Runtime": core.RUNTIME.type,
233
233
  "X-Fern-Runtime-Version": core.RUNTIME.version,
234
234
  },
@@ -293,7 +293,7 @@ class V1 {
293
293
  Authorization: yield this._getAuthorizationHeader(),
294
294
  "X-Fern-Language": "JavaScript",
295
295
  "X-Fern-SDK-Name": "candidhealth",
296
- "X-Fern-SDK-Version": "0.35.1",
296
+ "X-Fern-SDK-Version": "0.35.2",
297
297
  "X-Fern-Runtime": core.RUNTIME.type,
298
298
  "X-Fern-Runtime-Version": core.RUNTIME.version,
299
299
  },
@@ -340,7 +340,7 @@ class V1 {
340
340
  Authorization: yield this._getAuthorizationHeader(),
341
341
  "X-Fern-Language": "JavaScript",
342
342
  "X-Fern-SDK-Name": "candidhealth",
343
- "X-Fern-SDK-Version": "0.35.1",
343
+ "X-Fern-SDK-Version": "0.35.2",
344
344
  "X-Fern-Runtime": core.RUNTIME.type,
345
345
  "X-Fern-Runtime-Version": core.RUNTIME.version,
346
346
  },
@@ -408,7 +408,7 @@ class V1 {
408
408
  Authorization: yield this._getAuthorizationHeader(),
409
409
  "X-Fern-Language": "JavaScript",
410
410
  "X-Fern-SDK-Name": "candidhealth",
411
- "X-Fern-SDK-Version": "0.35.1",
411
+ "X-Fern-SDK-Version": "0.35.2",
412
412
  "X-Fern-Runtime": core.RUNTIME.type,
413
413
  "X-Fern-Runtime-Version": core.RUNTIME.version,
414
414
  },
@@ -461,7 +461,7 @@ class V1 {
461
461
  Authorization: yield this._getAuthorizationHeader(),
462
462
  "X-Fern-Language": "JavaScript",
463
463
  "X-Fern-SDK-Name": "candidhealth",
464
- "X-Fern-SDK-Version": "0.35.1",
464
+ "X-Fern-SDK-Version": "0.35.2",
465
465
  "X-Fern-Runtime": core.RUNTIME.type,
466
466
  "X-Fern-Runtime-Version": core.RUNTIME.version,
467
467
  },
@@ -514,7 +514,7 @@ class V1 {
514
514
  Authorization: yield this._getAuthorizationHeader(),
515
515
  "X-Fern-Language": "JavaScript",
516
516
  "X-Fern-SDK-Name": "candidhealth",
517
- "X-Fern-SDK-Version": "0.35.1",
517
+ "X-Fern-SDK-Version": "0.35.2",
518
518
  "X-Fern-Runtime": core.RUNTIME.type,
519
519
  "X-Fern-Runtime-Version": core.RUNTIME.version,
520
520
  },
@@ -565,7 +565,7 @@ class V1 {
565
565
  Authorization: yield this._getAuthorizationHeader(),
566
566
  "X-Fern-Language": "JavaScript",
567
567
  "X-Fern-SDK-Name": "candidhealth",
568
- "X-Fern-SDK-Version": "0.35.1",
568
+ "X-Fern-SDK-Version": "0.35.2",
569
569
  "X-Fern-Runtime": core.RUNTIME.type,
570
570
  "X-Fern-Runtime-Version": core.RUNTIME.version,
571
571
  },
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.coverages.v1.getHistory.Error
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface _Unknown extends _Utils {
13
13
  errorName: void;
@@ -17,12 +17,12 @@ export declare namespace Error {
17
17
  _visit: <_Result>(visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
18
18
  }
19
19
  interface _Visitor<_Result> {
20
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
20
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
21
21
  _other: (value: core.Fetcher.Error) => _Result;
22
22
  }
23
23
  }
24
24
  export declare const Error: {
25
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError;
25
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.getHistory.Error.NotFoundError;
26
26
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.coverages.v1.getHistory.Error._Unknown;
27
27
  readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.getHistory.Error, visitor: CandidApi.preEncounter.coverages.v1.getHistory.Error._Visitor<_Result>) => _Result;
28
28
  };
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.coverages.v1.update.Error.Not
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface VersionConflictError extends _Utils {
13
13
  errorName: "VersionConflictError";
@@ -21,13 +21,13 @@ export declare namespace Error {
21
21
  _visit: <_Result>(visitor: CandidApi.preEncounter.coverages.v1.update.Error._Visitor<_Result>) => _Result;
22
22
  }
23
23
  interface _Visitor<_Result> {
24
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
24
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
25
25
  versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
26
26
  _other: (value: core.Fetcher.Error) => _Result;
27
27
  }
28
28
  }
29
29
  export declare const Error: {
30
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.coverages.v1.update.Error.NotFoundError;
30
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.coverages.v1.update.Error.NotFoundError;
31
31
  readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.coverages.v1.update.Error.VersionConflictError;
32
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.coverages.v1.update.Error._Unknown;
33
33
  readonly _visit: <_Result>(value: CandidApi.preEncounter.coverages.v1.update.Error, visitor: CandidApi.preEncounter.coverages.v1.update.Error._Visitor<_Result>) => _Result;
@@ -91,7 +91,7 @@ class V1 {
91
91
  Authorization: yield this._getAuthorizationHeader(),
92
92
  "X-Fern-Language": "JavaScript",
93
93
  "X-Fern-SDK-Name": "candidhealth",
94
- "X-Fern-SDK-Version": "0.35.1",
94
+ "X-Fern-SDK-Version": "0.35.2",
95
95
  "X-Fern-Runtime": core.RUNTIME.type,
96
96
  "X-Fern-Runtime-Version": core.RUNTIME.version,
97
97
  },
@@ -176,7 +176,7 @@ class V1 {
176
176
  Authorization: yield this._getAuthorizationHeader(),
177
177
  "X-Fern-Language": "JavaScript",
178
178
  "X-Fern-SDK-Name": "candidhealth",
179
- "X-Fern-SDK-Version": "0.35.1",
179
+ "X-Fern-SDK-Version": "0.35.2",
180
180
  "X-Fern-Runtime": core.RUNTIME.type,
181
181
  "X-Fern-Runtime-Version": core.RUNTIME.version,
182
182
  },
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.lists.v1.getPatientList.Error
7
7
  export declare namespace Error {
8
8
  interface BadRequestError extends _Utils {
9
9
  errorName: "BadRequestError";
10
- content: CandidApi.preEncounter.ErrorBase;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface _Unknown extends _Utils {
13
13
  errorName: void;
@@ -17,12 +17,12 @@ export declare namespace Error {
17
17
  _visit: <_Result>(visitor: CandidApi.preEncounter.lists.v1.getPatientList.Error._Visitor<_Result>) => _Result;
18
18
  }
19
19
  interface _Visitor<_Result> {
20
- badRequestError: (value: CandidApi.preEncounter.ErrorBase) => _Result;
20
+ badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
21
21
  _other: (value: core.Fetcher.Error) => _Result;
22
22
  }
23
23
  }
24
24
  export declare const Error: {
25
- readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase) => CandidApi.preEncounter.lists.v1.getPatientList.Error.BadRequestError;
25
+ readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.lists.v1.getPatientList.Error.BadRequestError;
26
26
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.lists.v1.getPatientList.Error._Unknown;
27
27
  readonly _visit: <_Result>(value: CandidApi.preEncounter.lists.v1.getPatientList.Error, visitor: CandidApi.preEncounter.lists.v1.getPatientList.Error._Visitor<_Result>) => _Result;
28
28
  };
@@ -194,7 +194,7 @@ export declare class V1 {
194
194
  */
195
195
  create(request: CandidApi.preEncounter.patients.v1.CreatePatientRequest, requestOptions?: V1.RequestOptions): Promise<core.APIResponse<CandidApi.preEncounter.patients.v1.Patient, CandidApi.preEncounter.patients.v1.create.Error>>;
196
196
  /**
197
- * Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. InvalidMRNError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
197
+ * Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. BadRequestError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
198
198
  *
199
199
  * @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
200
200
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
@@ -235,7 +235,7 @@ class V1 {
235
235
  Authorization: yield this._getAuthorizationHeader(),
236
236
  "X-Fern-Language": "JavaScript",
237
237
  "X-Fern-SDK-Name": "candidhealth",
238
- "X-Fern-SDK-Version": "0.35.1",
238
+ "X-Fern-SDK-Version": "0.35.2",
239
239
  "X-Fern-Runtime": core.RUNTIME.type,
240
240
  "X-Fern-Runtime-Version": core.RUNTIME.version,
241
241
  },
@@ -263,7 +263,6 @@ class V1 {
263
263
  if (_response.error.reason === "status-code") {
264
264
  switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
265
265
  case "VersionConflictError":
266
- case "PotentialDuplicatePatients":
267
266
  return {
268
267
  ok: false,
269
268
  error: serializers.preEncounter.patients.v1.create.Error.parseOrThrow(_response.error.body, {
@@ -282,7 +281,7 @@ class V1 {
282
281
  });
283
282
  }
284
283
  /**
285
- * Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. InvalidMRNError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
284
+ * Adds a patient and hydrates their MRN with a pre-existing MRN. Once this patient is created their MRN will not be editable. BadRequestError is returned when the MRN is greater than 20 characters. VersionConflictError is returned when the patient's external ID is already in use.
286
285
  *
287
286
  * @param {CandidApi.preEncounter.patients.v1.CreatePatientWithMrnRequest} request
288
287
  * @param {V1.RequestOptions} requestOptions - Request-specific configuration.
@@ -469,7 +468,7 @@ class V1 {
469
468
  Authorization: yield this._getAuthorizationHeader(),
470
469
  "X-Fern-Language": "JavaScript",
471
470
  "X-Fern-SDK-Name": "candidhealth",
472
- "X-Fern-SDK-Version": "0.35.1",
471
+ "X-Fern-SDK-Version": "0.35.2",
473
472
  "X-Fern-Runtime": core.RUNTIME.type,
474
473
  "X-Fern-Runtime-Version": core.RUNTIME.version,
475
474
  },
@@ -497,8 +496,7 @@ class V1 {
497
496
  if (_response.error.reason === "status-code") {
498
497
  switch ((_b = _response.error.body) === null || _b === void 0 ? void 0 : _b.errorName) {
499
498
  case "VersionConflictError":
500
- case "PotentialDuplicatePatients":
501
- case "InvalidMRNError":
499
+ case "BadRequestError":
502
500
  return {
503
501
  ok: false,
504
502
  error: serializers.preEncounter.patients.v1.createWithMrn.Error.parseOrThrow(_response.error.body, {
@@ -559,7 +557,7 @@ class V1 {
559
557
  Authorization: yield this._getAuthorizationHeader(),
560
558
  "X-Fern-Language": "JavaScript",
561
559
  "X-Fern-SDK-Name": "candidhealth",
562
- "X-Fern-SDK-Version": "0.35.1",
560
+ "X-Fern-SDK-Version": "0.35.2",
563
561
  "X-Fern-Runtime": core.RUNTIME.type,
564
562
  "X-Fern-Runtime-Version": core.RUNTIME.version,
565
563
  },
@@ -607,7 +605,7 @@ class V1 {
607
605
  Authorization: yield this._getAuthorizationHeader(),
608
606
  "X-Fern-Language": "JavaScript",
609
607
  "X-Fern-SDK-Name": "candidhealth",
610
- "X-Fern-SDK-Version": "0.35.1",
608
+ "X-Fern-SDK-Version": "0.35.2",
611
609
  "X-Fern-Runtime": core.RUNTIME.type,
612
610
  "X-Fern-Runtime-Version": core.RUNTIME.version,
613
611
  },
@@ -668,7 +666,7 @@ class V1 {
668
666
  Authorization: yield this._getAuthorizationHeader(),
669
667
  "X-Fern-Language": "JavaScript",
670
668
  "X-Fern-SDK-Name": "candidhealth",
671
- "X-Fern-SDK-Version": "0.35.1",
669
+ "X-Fern-SDK-Version": "0.35.2",
672
670
  "X-Fern-Runtime": core.RUNTIME.type,
673
671
  "X-Fern-Runtime-Version": core.RUNTIME.version,
674
672
  },
@@ -890,7 +888,7 @@ class V1 {
890
888
  Authorization: yield this._getAuthorizationHeader(),
891
889
  "X-Fern-Language": "JavaScript",
892
890
  "X-Fern-SDK-Name": "candidhealth",
893
- "X-Fern-SDK-Version": "0.35.1",
891
+ "X-Fern-SDK-Version": "0.35.2",
894
892
  "X-Fern-Runtime": core.RUNTIME.type,
895
893
  "X-Fern-Runtime-Version": core.RUNTIME.version,
896
894
  },
@@ -956,7 +954,7 @@ class V1 {
956
954
  Authorization: yield this._getAuthorizationHeader(),
957
955
  "X-Fern-Language": "JavaScript",
958
956
  "X-Fern-SDK-Name": "candidhealth",
959
- "X-Fern-SDK-Version": "0.35.1",
957
+ "X-Fern-SDK-Version": "0.35.2",
960
958
  "X-Fern-Runtime": core.RUNTIME.type,
961
959
  "X-Fern-Runtime-Version": core.RUNTIME.version,
962
960
  },
@@ -1024,7 +1022,7 @@ class V1 {
1024
1022
  Authorization: yield this._getAuthorizationHeader(),
1025
1023
  "X-Fern-Language": "JavaScript",
1026
1024
  "X-Fern-SDK-Name": "candidhealth",
1027
- "X-Fern-SDK-Version": "0.35.1",
1025
+ "X-Fern-SDK-Version": "0.35.2",
1028
1026
  "X-Fern-Runtime": core.RUNTIME.type,
1029
1027
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1030
1028
  },
@@ -1077,7 +1075,7 @@ class V1 {
1077
1075
  Authorization: yield this._getAuthorizationHeader(),
1078
1076
  "X-Fern-Language": "JavaScript",
1079
1077
  "X-Fern-SDK-Name": "candidhealth",
1080
- "X-Fern-SDK-Version": "0.35.1",
1078
+ "X-Fern-SDK-Version": "0.35.2",
1081
1079
  "X-Fern-Runtime": core.RUNTIME.type,
1082
1080
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1083
1081
  },
@@ -3,16 +3,12 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../../../index";
5
5
  import * as core from "../../../../../../../../core";
6
- export declare type Error = CandidApi.preEncounter.patients.v1.create.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.create.Error.PotentialDuplicatePatients | CandidApi.preEncounter.patients.v1.create.Error._Unknown;
6
+ export declare type Error = CandidApi.preEncounter.patients.v1.create.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.create.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface VersionConflictError extends _Utils {
9
9
  errorName: "VersionConflictError";
10
10
  content: CandidApi.preEncounter.VersionConflictErrorBody;
11
11
  }
12
- interface PotentialDuplicatePatients extends _Utils {
13
- errorName: "PotentialDuplicatePatients";
14
- content: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody;
15
- }
16
12
  interface _Unknown extends _Utils {
17
13
  errorName: void;
18
14
  content: core.Fetcher.Error;
@@ -22,13 +18,11 @@ export declare namespace Error {
22
18
  }
23
19
  interface _Visitor<_Result> {
24
20
  versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
25
- potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => _Result;
26
21
  _other: (value: core.Fetcher.Error) => _Result;
27
22
  }
28
23
  }
29
24
  export declare const Error: {
30
25
  readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.create.Error.VersionConflictError;
31
- readonly potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => CandidApi.preEncounter.patients.v1.create.Error.PotentialDuplicatePatients;
32
26
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.create.Error._Unknown;
33
27
  readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.create.Error, visitor: CandidApi.preEncounter.patients.v1.create.Error._Visitor<_Result>) => _Result;
34
28
  };
@@ -38,15 +38,6 @@ exports.Error = {
38
38
  },
39
39
  };
40
40
  },
41
- potentialDuplicatePatients: (value) => {
42
- return {
43
- content: value,
44
- errorName: "PotentialDuplicatePatients",
45
- _visit: function (visitor) {
46
- return CandidApi.preEncounter.patients.v1.create.Error._visit(this, visitor);
47
- },
48
- };
49
- },
50
41
  _unknown: (fetcherError) => {
51
42
  return {
52
43
  errorName: undefined,
@@ -60,8 +51,6 @@ exports.Error = {
60
51
  switch (value.errorName) {
61
52
  case "VersionConflictError":
62
53
  return visitor.versionConflictError(value.content);
63
- case "PotentialDuplicatePatients":
64
- return visitor.potentialDuplicatePatients(value.content);
65
54
  default:
66
55
  return visitor._other(value);
67
56
  }
@@ -3,19 +3,15 @@
3
3
  */
4
4
  import * as CandidApi from "../../../../../../../index";
5
5
  import * as core from "../../../../../../../../core";
6
- export declare type Error = CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.createWithMrn.Error.PotentialDuplicatePatients | CandidApi.preEncounter.patients.v1.createWithMrn.Error.InvalidMrnError | CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
6
+ export declare type Error = CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError | CandidApi.preEncounter.patients.v1.createWithMrn.Error.BadRequestError | CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
7
7
  export declare namespace Error {
8
8
  interface VersionConflictError extends _Utils {
9
9
  errorName: "VersionConflictError";
10
10
  content: CandidApi.preEncounter.VersionConflictErrorBody;
11
11
  }
12
- interface PotentialDuplicatePatients extends _Utils {
13
- errorName: "PotentialDuplicatePatients";
14
- content: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody;
15
- }
16
- interface InvalidMrnError extends _Utils {
17
- errorName: "InvalidMRNError";
18
- content: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody;
12
+ interface BadRequestError extends _Utils {
13
+ errorName: "BadRequestError";
14
+ content: CandidApi.preEncounter.ErrorBase4Xx;
19
15
  }
20
16
  interface _Unknown extends _Utils {
21
17
  errorName: void;
@@ -26,15 +22,13 @@ export declare namespace Error {
26
22
  }
27
23
  interface _Visitor<_Result> {
28
24
  versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
29
- potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => _Result;
30
- invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => _Result;
25
+ badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
31
26
  _other: (value: core.Fetcher.Error) => _Result;
32
27
  }
33
28
  }
34
29
  export declare const Error: {
35
30
  readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.VersionConflictError;
36
- readonly potentialDuplicatePatients: (value: CandidApi.preEncounter.patients.v1.PotentialDuplicatePatientsErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.PotentialDuplicatePatients;
37
- readonly invalidMrnError: (value: CandidApi.preEncounter.patients.v1.InvalidMrnErrorBody) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.InvalidMrnError;
31
+ readonly badRequestError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.createWithMrn.Error.BadRequestError;
38
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.createWithMrn.Error._Unknown;
39
33
  readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.createWithMrn.Error, visitor: CandidApi.preEncounter.patients.v1.createWithMrn.Error._Visitor<_Result>) => _Result;
40
34
  };
@@ -38,19 +38,10 @@ exports.Error = {
38
38
  },
39
39
  };
40
40
  },
41
- potentialDuplicatePatients: (value) => {
41
+ badRequestError: (value) => {
42
42
  return {
43
43
  content: value,
44
- errorName: "PotentialDuplicatePatients",
45
- _visit: function (visitor) {
46
- return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
47
- },
48
- };
49
- },
50
- invalidMrnError: (value) => {
51
- return {
52
- content: value,
53
- errorName: "InvalidMRNError",
44
+ errorName: "BadRequestError",
54
45
  _visit: function (visitor) {
55
46
  return CandidApi.preEncounter.patients.v1.createWithMrn.Error._visit(this, visitor);
56
47
  },
@@ -69,10 +60,8 @@ exports.Error = {
69
60
  switch (value.errorName) {
70
61
  case "VersionConflictError":
71
62
  return visitor.versionConflictError(value.content);
72
- case "PotentialDuplicatePatients":
73
- return visitor.potentialDuplicatePatients(value.content);
74
- case "InvalidMRNError":
75
- return visitor.invalidMrnError(value.content);
63
+ case "BadRequestError":
64
+ return visitor.badRequestError(value.content);
76
65
  default:
77
66
  return visitor._other(value);
78
67
  }
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.patients.v1.deactivate.Error.
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface VersionConflictError extends _Utils {
13
13
  errorName: "VersionConflictError";
@@ -21,13 +21,13 @@ export declare namespace Error {
21
21
  _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.deactivate.Error._Visitor<_Result>) => _Result;
22
22
  }
23
23
  interface _Visitor<_Result> {
24
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
24
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
25
25
  versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => _Result;
26
26
  _other: (value: core.Fetcher.Error) => _Result;
27
27
  }
28
28
  }
29
29
  export declare const Error: {
30
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.patients.v1.deactivate.Error.NotFoundError;
30
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.deactivate.Error.NotFoundError;
31
31
  readonly versionConflictError: (value: CandidApi.preEncounter.VersionConflictErrorBody) => CandidApi.preEncounter.patients.v1.deactivate.Error.VersionConflictError;
32
32
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.deactivate.Error._Unknown;
33
33
  readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.deactivate.Error, visitor: CandidApi.preEncounter.patients.v1.deactivate.Error._Visitor<_Result>) => _Result;
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.patients.v1.get.Error.NotFoun
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface _Unknown extends _Utils {
13
13
  errorName: void;
@@ -17,12 +17,12 @@ export declare namespace Error {
17
17
  _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.get.Error._Visitor<_Result>) => _Result;
18
18
  }
19
19
  interface _Visitor<_Result> {
20
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
20
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
21
21
  _other: (value: core.Fetcher.Error) => _Result;
22
22
  }
23
23
  }
24
24
  export declare const Error: {
25
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.patients.v1.get.Error.NotFoundError;
25
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.get.Error.NotFoundError;
26
26
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.get.Error._Unknown;
27
27
  readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.get.Error, visitor: CandidApi.preEncounter.patients.v1.get.Error._Visitor<_Result>) => _Result;
28
28
  };
@@ -7,7 +7,7 @@ export declare type Error = CandidApi.preEncounter.patients.v1.getHistory.Error.
7
7
  export declare namespace Error {
8
8
  interface NotFoundError extends _Utils {
9
9
  errorName: "NotFoundError";
10
- content: CandidApi.preEncounter.NotFoundErrorBody;
10
+ content: CandidApi.preEncounter.ErrorBase4Xx;
11
11
  }
12
12
  interface _Unknown extends _Utils {
13
13
  errorName: void;
@@ -17,12 +17,12 @@ export declare namespace Error {
17
17
  _visit: <_Result>(visitor: CandidApi.preEncounter.patients.v1.getHistory.Error._Visitor<_Result>) => _Result;
18
18
  }
19
19
  interface _Visitor<_Result> {
20
- notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => _Result;
20
+ notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => _Result;
21
21
  _other: (value: core.Fetcher.Error) => _Result;
22
22
  }
23
23
  }
24
24
  export declare const Error: {
25
- readonly notFoundError: (value: CandidApi.preEncounter.NotFoundErrorBody) => CandidApi.preEncounter.patients.v1.getHistory.Error.NotFoundError;
25
+ readonly notFoundError: (value: CandidApi.preEncounter.ErrorBase4Xx) => CandidApi.preEncounter.patients.v1.getHistory.Error.NotFoundError;
26
26
  readonly _unknown: (fetcherError: core.Fetcher.Error) => CandidApi.preEncounter.patients.v1.getHistory.Error._Unknown;
27
27
  readonly _visit: <_Result>(value: CandidApi.preEncounter.patients.v1.getHistory.Error, visitor: CandidApi.preEncounter.patients.v1.getHistory.Error._Visitor<_Result>) => _Result;
28
28
  };