candidhealth 0.23.0 → 0.24.1

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 (675) hide show
  1. package/Client.d.ts +4 -1
  2. package/README.md +134 -6
  3. package/api/resources/auth/client/Client.d.ts +4 -1
  4. package/api/resources/auth/resources/v2/client/Client.d.ts +5 -2
  5. package/api/resources/auth/resources/v2/client/Client.js +8 -8
  6. package/api/resources/billingNotes/client/Client.d.ts +4 -1
  7. package/api/resources/billingNotes/resources/v2/client/Client.d.ts +5 -2
  8. package/api/resources/billingNotes/resources/v2/client/Client.js +7 -5
  9. package/api/resources/contracts/client/Client.d.ts +4 -1
  10. package/api/resources/contracts/resources/v2/client/Client.d.ts +9 -6
  11. package/api/resources/contracts/resources/v2/client/Client.js +34 -28
  12. package/api/resources/eligibility/client/Client.d.ts +4 -1
  13. package/api/resources/eligibility/resources/v2/client/Client.d.ts +7 -4
  14. package/api/resources/eligibility/resources/v2/client/Client.js +18 -12
  15. package/api/resources/encounters/client/Client.d.ts +4 -1
  16. package/api/resources/encounters/resources/v4/client/Client.d.ts +8 -20
  17. package/api/resources/encounters/resources/v4/client/Client.js +28 -39
  18. package/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +5 -24
  19. package/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  20. package/api/resources/expectedNetworkStatus/client/Client.d.ts +4 -1
  21. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -2
  22. package/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -5
  23. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +6 -3
  24. package/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +16 -12
  25. package/api/resources/exports/client/Client.d.ts +4 -1
  26. package/api/resources/exports/resources/v3/client/Client.d.ts +5 -2
  27. package/api/resources/exports/resources/v3/client/Client.js +7 -5
  28. package/api/resources/externalPaymentAccountConfig/client/Client.d.ts +4 -1
  29. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +5 -2
  30. package/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +6 -4
  31. package/api/resources/feeSchedules/client/Client.d.ts +4 -1
  32. package/api/resources/feeSchedules/resources/v3/client/Client.d.ts +14 -11
  33. package/api/resources/feeSchedules/resources/v3/client/Client.js +67 -49
  34. package/api/resources/guarantor/client/Client.d.ts +4 -1
  35. package/api/resources/guarantor/resources/v1/client/Client.d.ts +7 -4
  36. package/api/resources/guarantor/resources/v1/client/Client.js +21 -19
  37. package/api/resources/importInvoice/client/Client.d.ts +4 -1
  38. package/api/resources/importInvoice/resources/v1/client/Client.d.ts +8 -5
  39. package/api/resources/importInvoice/resources/v1/client/Client.js +28 -20
  40. package/api/resources/insuranceAdjudications/client/Client.d.ts +4 -1
  41. package/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +7 -4
  42. package/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -13
  43. package/api/resources/insurancePayments/client/Client.d.ts +4 -1
  44. package/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -6
  45. package/api/resources/insurancePayments/resources/v1/client/Client.js +36 -26
  46. package/api/resources/insuranceRefunds/client/Client.d.ts +4 -1
  47. package/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +9 -6
  48. package/api/resources/insuranceRefunds/resources/v1/client/Client.js +36 -26
  49. package/api/resources/organizationProviders/client/Client.d.ts +4 -1
  50. package/api/resources/organizationProviders/resources/v3/client/Client.d.ts +8 -5
  51. package/api/resources/organizationProviders/resources/v3/client/Client.js +29 -21
  52. package/api/resources/organizationServiceFacilities/client/Client.d.ts +4 -1
  53. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +9 -6
  54. package/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +39 -25
  55. package/api/resources/patientPayments/client/Client.d.ts +4 -1
  56. package/api/resources/patientPayments/resources/v4/client/Client.d.ts +9 -6
  57. package/api/resources/patientPayments/resources/v4/client/Client.js +36 -26
  58. package/api/resources/patientRefunds/client/Client.d.ts +4 -1
  59. package/api/resources/patientRefunds/resources/v1/client/Client.d.ts +9 -6
  60. package/api/resources/patientRefunds/resources/v1/client/Client.js +36 -26
  61. package/api/resources/payers/client/Client.d.ts +4 -1
  62. package/api/resources/payers/resources/v3/client/Client.d.ts +6 -3
  63. package/api/resources/payers/resources/v3/client/Client.js +12 -8
  64. package/api/resources/preEncounter/client/Client.d.ts +4 -1
  65. package/api/resources/preEncounter/resources/coverages/client/Client.d.ts +7 -125
  66. package/api/resources/preEncounter/resources/coverages/client/Client.js +3 -424
  67. package/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -7
  68. package/api/resources/preEncounter/resources/coverages/client/index.js +0 -34
  69. package/api/resources/preEncounter/resources/coverages/index.d.ts +1 -1
  70. package/api/resources/preEncounter/resources/coverages/index.js +1 -1
  71. package/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  72. package/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  73. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -0
  74. package/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
  75. package/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  76. package/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
  77. package/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
  78. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +147 -0
  79. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +451 -0
  80. package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/create.d.ts +6 -6
  81. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/create.js +2 -2
  82. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.d.ts +6 -6
  83. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.js +2 -2
  84. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getHistory.d.ts +7 -7
  85. package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +3 -3
  86. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.d.ts +6 -6
  87. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.js +2 -2
  88. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
  89. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
  90. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.d.ts +6 -6
  91. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.js +2 -2
  92. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.d.ts +8 -8
  93. package/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +4 -4
  94. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  95. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  96. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Coverage.d.ts +3 -3
  97. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.d.ts +3 -3
  98. package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.d.ts +2 -2
  99. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.d.ts +5 -5
  100. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Subscriber.d.ts +1 -1
  101. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
  102. package/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
  103. package/api/resources/preEncounter/resources/index.d.ts +0 -4
  104. package/api/resources/preEncounter/resources/index.js +0 -4
  105. package/api/resources/preEncounter/resources/patients/client/Client.d.ts +7 -316
  106. package/api/resources/preEncounter/resources/patients/client/Client.js +3 -688
  107. package/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -8
  108. package/api/resources/preEncounter/resources/patients/client/index.js +0 -35
  109. package/api/resources/preEncounter/resources/patients/index.d.ts +1 -1
  110. package/api/resources/preEncounter/resources/patients/index.js +1 -1
  111. package/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  112. package/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
  113. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +26 -0
  114. package/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
  115. package/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  116. package/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
  117. package/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
  118. package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
  119. package/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
  120. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +338 -0
  121. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +716 -0
  122. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.d.ts +7 -7
  123. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.js +3 -3
  124. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.d.ts +8 -8
  125. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +4 -4
  126. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/get.d.ts +7 -7
  127. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +3 -3
  128. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.d.ts +7 -7
  129. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +3 -3
  130. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
  131. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
  132. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/scan.d.ts +6 -6
  133. package/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/scan.js +2 -2
  134. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.d.ts +6 -6
  135. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.js +2 -2
  136. package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.d.ts +8 -8
  137. package/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/update.js +4 -4
  138. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  139. package/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  140. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Contact.d.ts +1 -1
  141. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/ExternalProvider.d.ts +1 -1
  142. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.d.ts +5 -5
  143. package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Patient.d.ts +3 -3
  144. package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.d.ts +3 -3
  145. package/api/resources/serviceFacility/client/Client.d.ts +5 -2
  146. package/api/resources/serviceFacility/client/Client.js +7 -7
  147. package/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +11 -5
  148. package/api/resources/tasks/client/Client.d.ts +4 -1
  149. package/api/resources/tasks/resources/v3/client/Client.d.ts +9 -6
  150. package/api/resources/tasks/resources/v3/client/Client.js +35 -25
  151. package/api/resources/writeOffs/client/Client.d.ts +4 -1
  152. package/api/resources/writeOffs/resources/v1/client/Client.d.ts +8 -5
  153. package/api/resources/writeOffs/resources/v1/client/Client.js +25 -17
  154. package/core/fetcher/Fetcher.d.ts +3 -0
  155. package/core/fetcher/Fetcher.js +22 -153
  156. package/core/fetcher/createRequestUrl.d.ts +1 -0
  157. package/core/fetcher/createRequestUrl.js +13 -0
  158. package/core/fetcher/getFetchFn.d.ts +4 -0
  159. package/core/fetcher/getFetchFn.js +59 -0
  160. package/core/fetcher/getRequestBody.d.ts +7 -0
  161. package/core/fetcher/getRequestBody.js +23 -0
  162. package/core/fetcher/getResponseBody.d.ts +1 -0
  163. package/core/fetcher/getResponseBody.js +48 -0
  164. package/core/fetcher/makeRequest.d.ts +1 -0
  165. package/core/fetcher/makeRequest.js +42 -0
  166. package/core/fetcher/requestWithRetries.d.ts +1 -0
  167. package/core/fetcher/requestWithRetries.js +32 -0
  168. package/core/fetcher/signals.d.ts +12 -0
  169. package/core/fetcher/signals.js +37 -0
  170. package/core/runtime/runtime.d.ts +2 -1
  171. package/core/runtime/runtime.js +12 -1
  172. package/core/schemas/Schema.d.ts +7 -4
  173. package/core/schemas/builders/lazy/lazy.d.ts +2 -2
  174. package/core/schemas/builders/lazy/lazy.js +8 -19
  175. package/core/schemas/builders/lazy/lazyObject.js +1 -10
  176. package/core/schemas/builders/list/list.js +31 -44
  177. package/core/schemas/builders/object/object.js +90 -111
  178. package/core/schemas/builders/object/types.d.ts +2 -2
  179. package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  180. package/core/schemas/builders/record/record.js +49 -60
  181. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  182. package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  183. package/core/schemas/builders/set/set.js +6 -15
  184. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  185. package/core/schemas/builders/union/union.js +51 -62
  186. package/core/schemas/utils/maybeSkipValidation.js +3 -12
  187. package/dist/Client.d.ts +4 -1
  188. package/dist/api/resources/auth/client/Client.d.ts +4 -1
  189. package/dist/api/resources/auth/resources/v2/client/Client.d.ts +5 -2
  190. package/dist/api/resources/auth/resources/v2/client/Client.js +8 -8
  191. package/dist/api/resources/billingNotes/client/Client.d.ts +4 -1
  192. package/dist/api/resources/billingNotes/resources/v2/client/Client.d.ts +5 -2
  193. package/dist/api/resources/billingNotes/resources/v2/client/Client.js +7 -5
  194. package/dist/api/resources/contracts/client/Client.d.ts +4 -1
  195. package/dist/api/resources/contracts/resources/v2/client/Client.d.ts +9 -6
  196. package/dist/api/resources/contracts/resources/v2/client/Client.js +34 -28
  197. package/dist/api/resources/eligibility/client/Client.d.ts +4 -1
  198. package/dist/api/resources/eligibility/resources/v2/client/Client.d.ts +7 -4
  199. package/dist/api/resources/eligibility/resources/v2/client/Client.js +18 -12
  200. package/dist/api/resources/encounters/client/Client.d.ts +4 -1
  201. package/dist/api/resources/encounters/resources/v4/client/Client.d.ts +8 -20
  202. package/dist/api/resources/encounters/resources/v4/client/Client.js +28 -39
  203. package/dist/api/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +5 -24
  204. package/dist/api/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  205. package/dist/api/resources/expectedNetworkStatus/client/Client.d.ts +4 -1
  206. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.d.ts +5 -2
  207. package/dist/api/resources/expectedNetworkStatus/resources/v1/client/Client.js +7 -5
  208. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.d.ts +6 -3
  209. package/dist/api/resources/expectedNetworkStatus/resources/v2/client/Client.js +16 -12
  210. package/dist/api/resources/exports/client/Client.d.ts +4 -1
  211. package/dist/api/resources/exports/resources/v3/client/Client.d.ts +5 -2
  212. package/dist/api/resources/exports/resources/v3/client/Client.js +7 -5
  213. package/dist/api/resources/externalPaymentAccountConfig/client/Client.d.ts +4 -1
  214. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.d.ts +5 -2
  215. package/dist/api/resources/externalPaymentAccountConfig/resources/v1/client/Client.js +6 -4
  216. package/dist/api/resources/feeSchedules/client/Client.d.ts +4 -1
  217. package/dist/api/resources/feeSchedules/resources/v3/client/Client.d.ts +14 -11
  218. package/dist/api/resources/feeSchedules/resources/v3/client/Client.js +67 -49
  219. package/dist/api/resources/guarantor/client/Client.d.ts +4 -1
  220. package/dist/api/resources/guarantor/resources/v1/client/Client.d.ts +7 -4
  221. package/dist/api/resources/guarantor/resources/v1/client/Client.js +21 -19
  222. package/dist/api/resources/importInvoice/client/Client.d.ts +4 -1
  223. package/dist/api/resources/importInvoice/resources/v1/client/Client.d.ts +8 -5
  224. package/dist/api/resources/importInvoice/resources/v1/client/Client.js +28 -20
  225. package/dist/api/resources/insuranceAdjudications/client/Client.d.ts +4 -1
  226. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.d.ts +7 -4
  227. package/dist/api/resources/insuranceAdjudications/resources/v1/client/Client.js +19 -13
  228. package/dist/api/resources/insurancePayments/client/Client.d.ts +4 -1
  229. package/dist/api/resources/insurancePayments/resources/v1/client/Client.d.ts +9 -6
  230. package/dist/api/resources/insurancePayments/resources/v1/client/Client.js +36 -26
  231. package/dist/api/resources/insuranceRefunds/client/Client.d.ts +4 -1
  232. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.d.ts +9 -6
  233. package/dist/api/resources/insuranceRefunds/resources/v1/client/Client.js +36 -26
  234. package/dist/api/resources/organizationProviders/client/Client.d.ts +4 -1
  235. package/dist/api/resources/organizationProviders/resources/v3/client/Client.d.ts +8 -5
  236. package/dist/api/resources/organizationProviders/resources/v3/client/Client.js +29 -21
  237. package/dist/api/resources/organizationServiceFacilities/client/Client.d.ts +4 -1
  238. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.d.ts +9 -6
  239. package/dist/api/resources/organizationServiceFacilities/resources/v2/client/Client.js +39 -25
  240. package/dist/api/resources/patientPayments/client/Client.d.ts +4 -1
  241. package/dist/api/resources/patientPayments/resources/v4/client/Client.d.ts +9 -6
  242. package/dist/api/resources/patientPayments/resources/v4/client/Client.js +36 -26
  243. package/dist/api/resources/patientRefunds/client/Client.d.ts +4 -1
  244. package/dist/api/resources/patientRefunds/resources/v1/client/Client.d.ts +9 -6
  245. package/dist/api/resources/patientRefunds/resources/v1/client/Client.js +36 -26
  246. package/dist/api/resources/payers/client/Client.d.ts +4 -1
  247. package/dist/api/resources/payers/resources/v3/client/Client.d.ts +6 -3
  248. package/dist/api/resources/payers/resources/v3/client/Client.js +12 -8
  249. package/dist/api/resources/preEncounter/client/Client.d.ts +4 -1
  250. package/dist/api/resources/preEncounter/resources/coverages/client/Client.d.ts +7 -125
  251. package/dist/api/resources/preEncounter/resources/coverages/client/Client.js +3 -424
  252. package/dist/api/resources/preEncounter/resources/coverages/client/index.d.ts +1 -7
  253. package/dist/api/resources/preEncounter/resources/coverages/client/index.js +0 -34
  254. package/dist/api/resources/preEncounter/resources/coverages/index.d.ts +1 -1
  255. package/dist/api/resources/preEncounter/resources/coverages/index.js +1 -1
  256. package/dist/api/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  257. package/dist/api/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  258. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.d.ts +26 -0
  259. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/Client.js +17 -0
  260. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.d.ts +1 -0
  261. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/client/index.js +2 -0
  262. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +2 -0
  263. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/index.js +18 -0
  264. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.d.ts +147 -0
  265. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/Client.js +451 -0
  266. package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/create.d.ts +6 -6
  267. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/create.js +2 -2
  268. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.d.ts +6 -6
  269. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/get.js +2 -2
  270. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getHistory.d.ts +7 -7
  271. package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/getHistory.js +3 -3
  272. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.d.ts +6 -6
  273. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/getMulti.js +2 -2
  274. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.d.ts +7 -0
  275. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/index.js +36 -0
  276. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/requests/index.js +2 -0
  277. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/scan.d.ts +6 -6
  278. package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/scan.js +2 -2
  279. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.d.ts +8 -8
  280. package/dist/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +4 -4
  281. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  282. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  283. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Coverage.d.ts +3 -3
  284. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.d.ts +3 -3
  285. package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.d.ts +2 -2
  286. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.d.ts +5 -5
  287. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/Subscriber.d.ts +1 -1
  288. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +3 -0
  289. package/dist/api/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +32 -0
  290. package/dist/api/resources/preEncounter/resources/index.d.ts +0 -4
  291. package/dist/api/resources/preEncounter/resources/index.js +0 -4
  292. package/dist/api/resources/preEncounter/resources/patients/client/Client.d.ts +7 -316
  293. package/dist/api/resources/preEncounter/resources/patients/client/Client.js +3 -688
  294. package/dist/api/resources/preEncounter/resources/patients/client/index.d.ts +1 -8
  295. package/dist/api/resources/preEncounter/resources/patients/client/index.js +0 -35
  296. package/dist/api/resources/preEncounter/resources/patients/index.d.ts +1 -1
  297. package/dist/api/resources/preEncounter/resources/patients/index.js +1 -1
  298. package/dist/api/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  299. package/dist/api/resources/preEncounter/resources/patients/resources/index.js +27 -0
  300. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.d.ts +26 -0
  301. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/Client.js +17 -0
  302. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.d.ts +1 -0
  303. package/dist/api/resources/preEncounter/resources/patients/resources/v1/client/index.js +2 -0
  304. package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.d.ts +2 -0
  305. package/dist/api/resources/preEncounter/resources/patients/resources/v1/index.js +18 -0
  306. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +3 -0
  307. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/index.js +32 -0
  308. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.d.ts +338 -0
  309. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/Client.js +716 -0
  310. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.d.ts +7 -7
  311. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/create.js +3 -3
  312. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.d.ts +8 -8
  313. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +4 -4
  314. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/get.d.ts +7 -7
  315. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +3 -3
  316. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.d.ts +7 -7
  317. package/dist/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/getHistory.js +3 -3
  318. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.d.ts +8 -0
  319. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/index.js +37 -0
  320. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/requests/index.js +2 -0
  321. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/scan.d.ts +6 -6
  322. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +2 -2
  323. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.d.ts +6 -6
  324. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/search.js +2 -2
  325. package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.d.ts +8 -8
  326. package/dist/api/resources/preEncounter/resources/{coverages → patients/resources/v1/resources/patients}/client/update.js +4 -4
  327. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  328. package/dist/api/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  329. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Contact.d.ts +1 -1
  330. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/ExternalProvider.d.ts +1 -1
  331. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.d.ts +5 -5
  332. package/{api/resources/preEncounter → dist/api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/Patient.d.ts +3 -3
  333. package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.d.ts +3 -3
  334. package/dist/api/resources/serviceFacility/client/Client.d.ts +5 -2
  335. package/dist/api/resources/serviceFacility/client/Client.js +7 -7
  336. package/dist/api/resources/serviceLines/resources/v2/types/ServiceLineCreate.d.ts +11 -5
  337. package/dist/api/resources/tasks/client/Client.d.ts +4 -1
  338. package/dist/api/resources/tasks/resources/v3/client/Client.d.ts +9 -6
  339. package/dist/api/resources/tasks/resources/v3/client/Client.js +35 -25
  340. package/dist/api/resources/writeOffs/client/Client.d.ts +4 -1
  341. package/dist/api/resources/writeOffs/resources/v1/client/Client.d.ts +8 -5
  342. package/dist/api/resources/writeOffs/resources/v1/client/Client.js +25 -17
  343. package/dist/core/fetcher/Fetcher.d.ts +3 -0
  344. package/dist/core/fetcher/Fetcher.js +22 -153
  345. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  346. package/dist/core/fetcher/createRequestUrl.js +13 -0
  347. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  348. package/dist/core/fetcher/getFetchFn.js +59 -0
  349. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  350. package/dist/core/fetcher/getRequestBody.js +23 -0
  351. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  352. package/dist/core/fetcher/getResponseBody.js +48 -0
  353. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  354. package/dist/core/fetcher/makeRequest.js +42 -0
  355. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  356. package/dist/core/fetcher/requestWithRetries.js +32 -0
  357. package/dist/core/fetcher/signals.d.ts +12 -0
  358. package/dist/core/fetcher/signals.js +37 -0
  359. package/dist/core/runtime/runtime.d.ts +2 -1
  360. package/dist/core/runtime/runtime.js +12 -1
  361. package/dist/core/schemas/Schema.d.ts +7 -4
  362. package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
  363. package/dist/core/schemas/builders/lazy/lazy.js +8 -19
  364. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
  365. package/dist/core/schemas/builders/list/list.js +31 -44
  366. package/dist/core/schemas/builders/object/object.js +90 -111
  367. package/dist/core/schemas/builders/object/types.d.ts +2 -2
  368. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  369. package/dist/core/schemas/builders/record/record.js +49 -60
  370. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  371. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  372. package/dist/core/schemas/builders/set/set.js +6 -15
  373. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  374. package/dist/core/schemas/builders/union/union.js +51 -62
  375. package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
  376. package/dist/environments.d.ts +12 -2
  377. package/dist/environments.js +8 -2
  378. package/dist/index.d.ts +1 -1
  379. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
  380. package/dist/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
  381. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  382. package/dist/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
  383. package/dist/serialization/resources/preEncounter/resources/common/types/Address.d.ts +1 -1
  384. package/dist/serialization/resources/preEncounter/resources/common/types/Address.js +1 -1
  385. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +1 -1
  386. package/dist/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +1 -1
  387. package/dist/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -2
  388. package/dist/serialization/resources/preEncounter/resources/coverages/index.js +1 -2
  389. package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  390. package/dist/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  391. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
  392. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
  393. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
  394. package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +4 -4
  395. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
  396. package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getMulti.js +1 -1
  397. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
  398. package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/scan.js +1 -1
  399. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
  400. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/client/update.js +6 -6
  401. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  402. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  403. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
  404. package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +5 -5
  405. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
  406. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.js +3 -3
  407. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
  408. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageStatus.js +1 -1
  409. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
  410. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageType.js +1 -1
  411. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
  412. package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +8 -8
  413. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
  414. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.js +4 -4
  415. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
  416. package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +4 -4
  417. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
  418. package/dist/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
  419. package/dist/serialization/resources/preEncounter/resources/index.d.ts +0 -2
  420. package/dist/serialization/resources/preEncounter/resources/index.js +0 -2
  421. package/dist/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -2
  422. package/dist/serialization/resources/preEncounter/resources/patients/index.js +1 -2
  423. package/dist/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  424. package/dist/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
  425. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
  426. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
  427. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
  428. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
  429. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
  430. package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/create.js +4 -4
  431. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
  432. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +6 -6
  433. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
  434. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +4 -4
  435. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
  436. package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +4 -4
  437. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
  438. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +1 -1
  439. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
  440. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/search.js +1 -1
  441. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
  442. package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/update.js +6 -6
  443. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  444. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  445. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
  446. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +7 -7
  447. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
  448. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +3 -3
  449. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
  450. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +5 -5
  451. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +4 -4
  452. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +1 -1
  453. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
  454. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.js +15 -15
  455. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
  456. package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +5 -5
  457. package/dist/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
  458. package/{serialization/resources/preEncounter → dist/serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/PatientId.js +3 -3
  459. package/environments.d.ts +12 -2
  460. package/environments.js +8 -2
  461. package/index.d.ts +1 -1
  462. package/package.json +7 -2
  463. package/reference.md +7177 -0
  464. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.d.ts +0 -2
  465. package/serialization/resources/encounters/resources/v4/client/requests/EncounterCreate.js +0 -2
  466. package/serialization/resources/encounters/resources/v4/types/Encounter.d.ts +0 -1
  467. package/serialization/resources/encounters/resources/v4/types/Encounter.js +0 -1
  468. package/serialization/resources/preEncounter/resources/common/types/Address.d.ts +1 -1
  469. package/serialization/resources/preEncounter/resources/common/types/Address.js +1 -1
  470. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.d.ts +1 -1
  471. package/serialization/resources/preEncounter/resources/common/types/VersionConflictErrorBody.js +1 -1
  472. package/serialization/resources/preEncounter/resources/coverages/index.d.ts +1 -2
  473. package/serialization/resources/preEncounter/resources/coverages/index.js +1 -2
  474. package/serialization/resources/preEncounter/resources/coverages/resources/index.d.ts +1 -0
  475. package/serialization/resources/preEncounter/resources/coverages/resources/index.js +27 -0
  476. package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.d.ts +1 -0
  477. package/serialization/resources/preEncounter/resources/coverages/resources/v1/index.js +17 -0
  478. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getHistory.d.ts +20 -0
  479. package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getHistory.js +4 -4
  480. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/getMulti.d.ts +11 -0
  481. package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/getMulti.js +1 -1
  482. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/scan.d.ts +11 -0
  483. package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/scan.js +1 -1
  484. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/client/update.d.ts +20 -0
  485. package/serialization/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/update.js +6 -6
  486. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.d.ts +2 -0
  487. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/index.js +18 -0
  488. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Coverage.d.ts +21 -0
  489. package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +5 -5
  490. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageId.d.ts +10 -0
  491. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageId.js +3 -3
  492. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageStatus.d.ts +10 -0
  493. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageStatus.js +1 -1
  494. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/CoverageType.d.ts +10 -0
  495. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/CoverageType.js +1 -1
  496. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/InsurancePlan.d.ts +22 -0
  497. package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +8 -8
  498. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/MutableCoverage.d.ts +22 -0
  499. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/coverages/resources/v1}/resources/coverages/types/MutableCoverage.js +4 -4
  500. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/coverages/types/Subscriber.d.ts +16 -0
  501. package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +4 -4
  502. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.d.ts +2 -0
  503. package/serialization/resources/preEncounter/resources/coverages/resources/v1/resources/index.js +31 -0
  504. package/serialization/resources/preEncounter/resources/index.d.ts +0 -2
  505. package/serialization/resources/preEncounter/resources/index.js +0 -2
  506. package/serialization/resources/preEncounter/resources/patients/index.d.ts +1 -2
  507. package/serialization/resources/preEncounter/resources/patients/index.js +1 -2
  508. package/serialization/resources/preEncounter/resources/patients/resources/index.d.ts +1 -0
  509. package/serialization/resources/preEncounter/resources/patients/resources/index.js +27 -0
  510. package/serialization/resources/preEncounter/resources/patients/resources/v1/index.d.ts +1 -0
  511. package/serialization/resources/preEncounter/resources/patients/resources/v1/index.js +17 -0
  512. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.d.ts +2 -0
  513. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/index.js +31 -0
  514. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/create.d.ts +15 -0
  515. package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/create.js +4 -4
  516. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/deactivate.d.ts +20 -0
  517. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/deactivate.js +6 -6
  518. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/get.d.ts +15 -0
  519. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/get.js +4 -4
  520. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/getHistory.d.ts +20 -0
  521. package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/getHistory.js +4 -4
  522. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/scan.d.ts +11 -0
  523. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/scan.js +1 -1
  524. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/search.d.ts +11 -0
  525. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/search.js +1 -1
  526. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/client/update.d.ts +20 -0
  527. package/{dist/serialization/resources/preEncounter/resources/coverages → serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients}/client/update.js +6 -6
  528. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.d.ts +2 -0
  529. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/index.js +18 -0
  530. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Contact.d.ts +23 -0
  531. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +7 -7
  532. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvenance.d.ts +13 -0
  533. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +3 -3
  534. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/ExternalProvider.d.ts +19 -0
  535. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +5 -5
  536. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +4 -4
  537. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +1 -1
  538. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/MutablePatient.d.ts +35 -0
  539. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/MutablePatient.js +15 -15
  540. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/Patient.d.ts +21 -0
  541. package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +5 -5
  542. package/serialization/resources/preEncounter/resources/patients/resources/v1/resources/patients/types/PatientId.d.ts +10 -0
  543. package/{dist/serialization/resources/preEncounter → serialization/resources/preEncounter/resources/patients/resources/v1}/resources/patients/types/PatientId.js +3 -3
  544. package/dist/serialization/resources/preEncounter/resources/coverages/client/getHistory.d.ts +0 -20
  545. package/dist/serialization/resources/preEncounter/resources/coverages/client/getMulti.d.ts +0 -11
  546. package/dist/serialization/resources/preEncounter/resources/coverages/client/scan.d.ts +0 -11
  547. package/dist/serialization/resources/preEncounter/resources/coverages/client/update.d.ts +0 -20
  548. package/dist/serialization/resources/preEncounter/resources/coverages/types/Coverage.d.ts +0 -21
  549. package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageId.d.ts +0 -10
  550. package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageStatus.d.ts +0 -10
  551. package/dist/serialization/resources/preEncounter/resources/coverages/types/CoverageType.d.ts +0 -10
  552. package/dist/serialization/resources/preEncounter/resources/coverages/types/InsurancePlan.d.ts +0 -22
  553. package/dist/serialization/resources/preEncounter/resources/coverages/types/MutableCoverage.d.ts +0 -22
  554. package/dist/serialization/resources/preEncounter/resources/coverages/types/Subscriber.d.ts +0 -16
  555. package/dist/serialization/resources/preEncounter/resources/patients/client/create.d.ts +0 -15
  556. package/dist/serialization/resources/preEncounter/resources/patients/client/deactivate.d.ts +0 -20
  557. package/dist/serialization/resources/preEncounter/resources/patients/client/get.d.ts +0 -15
  558. package/dist/serialization/resources/preEncounter/resources/patients/client/getHistory.d.ts +0 -20
  559. package/dist/serialization/resources/preEncounter/resources/patients/client/scan.d.ts +0 -11
  560. package/dist/serialization/resources/preEncounter/resources/patients/client/search.d.ts +0 -11
  561. package/dist/serialization/resources/preEncounter/resources/patients/client/update.d.ts +0 -20
  562. package/dist/serialization/resources/preEncounter/resources/patients/types/Contact.d.ts +0 -23
  563. package/dist/serialization/resources/preEncounter/resources/patients/types/ExternalProvenance.d.ts +0 -13
  564. package/dist/serialization/resources/preEncounter/resources/patients/types/ExternalProvider.d.ts +0 -19
  565. package/dist/serialization/resources/preEncounter/resources/patients/types/MutablePatient.d.ts +0 -35
  566. package/dist/serialization/resources/preEncounter/resources/patients/types/Patient.d.ts +0 -21
  567. package/dist/serialization/resources/preEncounter/resources/patients/types/PatientId.d.ts +0 -10
  568. package/serialization/resources/preEncounter/resources/coverages/client/getHistory.d.ts +0 -20
  569. package/serialization/resources/preEncounter/resources/coverages/client/getMulti.d.ts +0 -11
  570. package/serialization/resources/preEncounter/resources/coverages/client/scan.d.ts +0 -11
  571. package/serialization/resources/preEncounter/resources/coverages/client/update.d.ts +0 -20
  572. package/serialization/resources/preEncounter/resources/coverages/types/Coverage.d.ts +0 -21
  573. package/serialization/resources/preEncounter/resources/coverages/types/CoverageId.d.ts +0 -10
  574. package/serialization/resources/preEncounter/resources/coverages/types/CoverageStatus.d.ts +0 -10
  575. package/serialization/resources/preEncounter/resources/coverages/types/CoverageType.d.ts +0 -10
  576. package/serialization/resources/preEncounter/resources/coverages/types/InsurancePlan.d.ts +0 -22
  577. package/serialization/resources/preEncounter/resources/coverages/types/MutableCoverage.d.ts +0 -22
  578. package/serialization/resources/preEncounter/resources/coverages/types/Subscriber.d.ts +0 -16
  579. package/serialization/resources/preEncounter/resources/patients/client/create.d.ts +0 -15
  580. package/serialization/resources/preEncounter/resources/patients/client/deactivate.d.ts +0 -20
  581. package/serialization/resources/preEncounter/resources/patients/client/get.d.ts +0 -15
  582. package/serialization/resources/preEncounter/resources/patients/client/getHistory.d.ts +0 -20
  583. package/serialization/resources/preEncounter/resources/patients/client/scan.d.ts +0 -11
  584. package/serialization/resources/preEncounter/resources/patients/client/search.d.ts +0 -11
  585. package/serialization/resources/preEncounter/resources/patients/client/update.d.ts +0 -20
  586. package/serialization/resources/preEncounter/resources/patients/types/Contact.d.ts +0 -23
  587. package/serialization/resources/preEncounter/resources/patients/types/ExternalProvenance.d.ts +0 -13
  588. package/serialization/resources/preEncounter/resources/patients/types/ExternalProvider.d.ts +0 -19
  589. package/serialization/resources/preEncounter/resources/patients/types/MutablePatient.d.ts +0 -35
  590. package/serialization/resources/preEncounter/resources/patients/types/Patient.d.ts +0 -21
  591. package/serialization/resources/preEncounter/resources/patients/types/PatientId.d.ts +0 -10
  592. /package/api/resources/preEncounter/resources/coverages/{client/requests → resources/v1/client}/index.js +0 -0
  593. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.d.ts +0 -0
  594. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.js +0 -0
  595. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.d.ts +0 -0
  596. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.js +0 -0
  597. /package/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/index.d.ts +0 -0
  598. /package/api/resources/preEncounter/resources/{patients → coverages/resources/v1/resources/coverages}/client/requests/index.js +0 -0
  599. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +0 -0
  600. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageId.js +0 -0
  601. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.d.ts +0 -0
  602. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.js +0 -0
  603. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.d.ts +0 -0
  604. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.js +0 -0
  605. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +0 -0
  606. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/MutableCoverage.js +0 -0
  607. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +0 -0
  608. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
  609. /package/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
  610. /package/{dist/api/resources/preEncounter/resources/coverages/client/requests → api/resources/preEncounter/resources/patients/resources/v1/client}/index.js +0 -0
  611. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.d.ts +0 -0
  612. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.js +0 -0
  613. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.d.ts +0 -0
  614. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.js +0 -0
  615. /package/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/index.d.ts +0 -0
  616. /package/{dist/api/resources/preEncounter → api/resources/preEncounter/resources/patients/resources/v1}/resources/patients/client/requests/index.js +0 -0
  617. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +0 -0
  618. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.d.ts +0 -0
  619. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +0 -0
  620. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +0 -0
  621. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +0 -0
  622. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +0 -0
  623. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MutablePatient.js +0 -0
  624. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +0 -0
  625. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.js +0 -0
  626. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
  627. /package/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
  628. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.d.ts +0 -0
  629. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/CoverageScanRequest.js +0 -0
  630. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.d.ts +0 -0
  631. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/GetAllCoveragesRequest.js +0 -0
  632. /package/dist/api/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/requests/index.d.ts +0 -0
  633. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Coverage.js +0 -0
  634. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageId.js +0 -0
  635. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.d.ts +0 -0
  636. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageStatus.js +0 -0
  637. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.d.ts +0 -0
  638. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/CoverageType.js +0 -0
  639. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/InsurancePlan.js +0 -0
  640. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/MutableCoverage.js +0 -0
  641. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/Subscriber.js +0 -0
  642. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
  643. /package/dist/api/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
  644. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.d.ts +0 -0
  645. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientScanRequest.js +0 -0
  646. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.d.ts +0 -0
  647. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/PatientsSearchRequest.js +0 -0
  648. /package/dist/api/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/requests/index.d.ts +0 -0
  649. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Contact.js +0 -0
  650. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.d.ts +0 -0
  651. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvenance.js +0 -0
  652. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/ExternalProvider.js +0 -0
  653. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.d.ts +0 -0
  654. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MaritalStatus.js +0 -0
  655. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/MutablePatient.js +0 -0
  656. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/Patient.js +0 -0
  657. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/PatientId.js +0 -0
  658. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
  659. /package/dist/api/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
  660. /package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.d.ts +0 -0
  661. /package/dist/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.js +0 -0
  662. /package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
  663. /package/dist/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
  664. /package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.d.ts +0 -0
  665. /package/dist/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.js +0 -0
  666. /package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
  667. /package/dist/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
  668. /package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.d.ts +0 -0
  669. /package/serialization/resources/preEncounter/resources/coverages/{client → resources/v1/resources/coverages/client}/index.js +0 -0
  670. /package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.d.ts +0 -0
  671. /package/serialization/resources/preEncounter/resources/coverages/{types → resources/v1/resources/coverages/types}/index.js +0 -0
  672. /package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.d.ts +0 -0
  673. /package/serialization/resources/preEncounter/resources/patients/{client → resources/v1/resources/patients/client}/index.js +0 -0
  674. /package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.d.ts +0 -0
  675. /package/serialization/resources/preEncounter/resources/patients/{types → resources/v1/resources/patients/types}/index.js +0 -0
@@ -6,12 +6,15 @@ import * as core from "../../../../../../core";
6
6
  import * as CandidApi from "../../../../../index";
7
7
  export declare namespace V3 {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -23,7 +26,7 @@ export declare class V3 {
23
26
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
24
27
  *
25
28
  * @example
26
- * await candidApi.organizationProviders.v3.get(CandidApi.organizationProviders.v2.OrganizationProviderId("965A563A-0285-4910-9569-E3739C0F6EAB"))
29
+ * await client.organizationProviders.v3.get(CandidApi.organizationProviders.v2.OrganizationProviderId("965A563A-0285-4910-9569-E3739C0F6EAB"))
27
30
  */
28
31
  get(organizationProviderId: CandidApi.organizationProviders.v2.OrganizationProviderId, requestOptions?: V3.RequestOptions): Promise<core.APIResponse<CandidApi.organizationProviders.v3.OrganizationProviderV2, CandidApi.organizationProviders.v3.get.Error>>;
29
32
  /**
@@ -31,7 +34,7 @@ export declare class V3 {
31
34
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
32
35
  *
33
36
  * @example
34
- * await candidApi.organizationProviders.v3.getMulti({
37
+ * await client.organizationProviders.v3.getMulti({
35
38
  * limit: 100,
36
39
  * searchTerm: "john",
37
40
  * npi: "1234567890",
@@ -47,7 +50,7 @@ export declare class V3 {
47
50
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
48
51
  *
49
52
  * @example
50
- * await candidApi.organizationProviders.v3.create({
53
+ * await client.organizationProviders.v3.create({
51
54
  * npi: "string",
52
55
  * isRendering: true,
53
56
  * isBilling: true,
@@ -81,7 +84,7 @@ export declare class V3 {
81
84
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
82
85
  *
83
86
  * @example
84
- * await candidApi.organizationProviders.v3.update(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
87
+ * await client.organizationProviders.v3.update(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
85
88
  * npi: "string",
86
89
  * isRendering: true,
87
90
  * isBilling: true,
@@ -53,23 +53,25 @@ class V3 {
53
53
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
54
54
  *
55
55
  * @example
56
- * await candidApi.organizationProviders.v3.get(CandidApi.organizationProviders.v2.OrganizationProviderId("965A563A-0285-4910-9569-E3739C0F6EAB"))
56
+ * await client.organizationProviders.v3.get(CandidApi.organizationProviders.v2.OrganizationProviderId("965A563A-0285-4910-9569-E3739C0F6EAB"))
57
57
  */
58
58
  get(organizationProviderId, requestOptions) {
59
59
  var _a, _b;
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
61
  const _response = yield core.fetcher({
62
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/organization-providers/v3/${encodeURIComponent(yield serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
62
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
63
+ .candidApi, `/api/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
63
64
  method: "GET",
64
65
  headers: {
65
66
  Authorization: yield this._getAuthorizationHeader(),
66
67
  "X-Fern-Language": "JavaScript",
67
68
  "X-Fern-SDK-Name": "candidhealth",
68
- "X-Fern-SDK-Version": "0.23.0",
69
+ "X-Fern-SDK-Version": "0.24.1",
69
70
  "X-Fern-Runtime": core.RUNTIME.type,
70
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
72
  },
72
73
  contentType: "application/json",
74
+ requestType: "json",
73
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
74
76
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
75
77
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -77,7 +79,7 @@ class V3 {
77
79
  if (_response.ok) {
78
80
  return {
79
81
  ok: true,
80
- body: yield serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
82
+ body: serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
81
83
  unrecognizedObjectKeys: "passthrough",
82
84
  allowUnrecognizedUnionMembers: true,
83
85
  allowUnrecognizedEnumValues: true,
@@ -90,7 +92,7 @@ class V3 {
90
92
  case "EntityNotFoundError":
91
93
  return {
92
94
  ok: false,
93
- error: yield serializers.organizationProviders.v3.get.Error.parseOrThrow(_response.error.body, {
95
+ error: serializers.organizationProviders.v3.get.Error.parseOrThrow(_response.error.body, {
94
96
  unrecognizedObjectKeys: "passthrough",
95
97
  allowUnrecognizedUnionMembers: true,
96
98
  allowUnrecognizedEnumValues: true,
@@ -110,7 +112,7 @@ class V3 {
110
112
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
111
113
  *
112
114
  * @example
113
- * await candidApi.organizationProviders.v3.getMulti({
115
+ * await client.organizationProviders.v3.getMulti({
114
116
  * limit: 100,
115
117
  * searchTerm: "john",
116
118
  * npi: "1234567890",
@@ -147,18 +149,20 @@ class V3 {
147
149
  _queryParams["sort"] = sort;
148
150
  }
149
151
  const _response = yield core.fetcher({
150
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/api/organization-providers/v3"),
152
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
153
+ .candidApi, "/api/organization-providers/v3"),
151
154
  method: "GET",
152
155
  headers: {
153
156
  Authorization: yield this._getAuthorizationHeader(),
154
157
  "X-Fern-Language": "JavaScript",
155
158
  "X-Fern-SDK-Name": "candidhealth",
156
- "X-Fern-SDK-Version": "0.23.0",
159
+ "X-Fern-SDK-Version": "0.24.1",
157
160
  "X-Fern-Runtime": core.RUNTIME.type,
158
161
  "X-Fern-Runtime-Version": core.RUNTIME.version,
159
162
  },
160
163
  contentType: "application/json",
161
164
  queryParameters: _queryParams,
165
+ requestType: "json",
162
166
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
163
167
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
164
168
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -166,7 +170,7 @@ class V3 {
166
170
  if (_response.ok) {
167
171
  return {
168
172
  ok: true,
169
- body: yield serializers.organizationProviders.v3.OrganizationProviderPageV2.parseOrThrow(_response.body, {
173
+ body: serializers.organizationProviders.v3.OrganizationProviderPageV2.parseOrThrow(_response.body, {
170
174
  unrecognizedObjectKeys: "passthrough",
171
175
  allowUnrecognizedUnionMembers: true,
172
176
  allowUnrecognizedEnumValues: true,
@@ -185,7 +189,7 @@ class V3 {
185
189
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
186
190
  *
187
191
  * @example
188
- * await candidApi.organizationProviders.v3.create({
192
+ * await client.organizationProviders.v3.create({
189
193
  * npi: "string",
190
194
  * isRendering: true,
191
195
  * isBilling: true,
@@ -216,18 +220,20 @@ class V3 {
216
220
  var _a, _b;
217
221
  return __awaiter(this, void 0, void 0, function* () {
218
222
  const _response = yield core.fetcher({
219
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/api/organization-providers/v3"),
223
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
224
+ .candidApi, "/api/organization-providers/v3"),
220
225
  method: "POST",
221
226
  headers: {
222
227
  Authorization: yield this._getAuthorizationHeader(),
223
228
  "X-Fern-Language": "JavaScript",
224
229
  "X-Fern-SDK-Name": "candidhealth",
225
- "X-Fern-SDK-Version": "0.23.0",
230
+ "X-Fern-SDK-Version": "0.24.1",
226
231
  "X-Fern-Runtime": core.RUNTIME.type,
227
232
  "X-Fern-Runtime-Version": core.RUNTIME.version,
228
233
  },
229
234
  contentType: "application/json",
230
- body: yield serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
235
+ requestType: "json",
236
+ body: serializers.organizationProviders.v3.OrganizationProviderCreateV2.jsonOrThrow(request, {
231
237
  unrecognizedObjectKeys: "strip",
232
238
  }),
233
239
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -237,7 +243,7 @@ class V3 {
237
243
  if (_response.ok) {
238
244
  return {
239
245
  ok: true,
240
- body: yield serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
246
+ body: serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
241
247
  unrecognizedObjectKeys: "passthrough",
242
248
  allowUnrecognizedUnionMembers: true,
243
249
  allowUnrecognizedEnumValues: true,
@@ -251,7 +257,7 @@ class V3 {
251
257
  case "UpdatesDisabledDueToExternalSystemIntegrationError":
252
258
  return {
253
259
  ok: false,
254
- error: yield serializers.organizationProviders.v3.create.Error.parseOrThrow(_response.error.body, {
260
+ error: serializers.organizationProviders.v3.create.Error.parseOrThrow(_response.error.body, {
255
261
  unrecognizedObjectKeys: "passthrough",
256
262
  allowUnrecognizedUnionMembers: true,
257
263
  allowUnrecognizedEnumValues: true,
@@ -272,7 +278,7 @@ class V3 {
272
278
  * @param {V3.RequestOptions} requestOptions - Request-specific configuration.
273
279
  *
274
280
  * @example
275
- * await candidApi.organizationProviders.v3.update(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
281
+ * await client.organizationProviders.v3.update(CandidApi.organizationProviders.v2.OrganizationProviderId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
276
282
  * npi: "string",
277
283
  * isRendering: true,
278
284
  * isBilling: true,
@@ -305,18 +311,20 @@ class V3 {
305
311
  var _a, _b;
306
312
  return __awaiter(this, void 0, void 0, function* () {
307
313
  const _response = yield core.fetcher({
308
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/organization-providers/v3/${encodeURIComponent(yield serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
314
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
315
+ .candidApi, `/api/organization-providers/v3/${encodeURIComponent(serializers.organizationProviders.v2.OrganizationProviderId.jsonOrThrow(organizationProviderId))}`),
309
316
  method: "PATCH",
310
317
  headers: {
311
318
  Authorization: yield this._getAuthorizationHeader(),
312
319
  "X-Fern-Language": "JavaScript",
313
320
  "X-Fern-SDK-Name": "candidhealth",
314
- "X-Fern-SDK-Version": "0.23.0",
321
+ "X-Fern-SDK-Version": "0.24.1",
315
322
  "X-Fern-Runtime": core.RUNTIME.type,
316
323
  "X-Fern-Runtime-Version": core.RUNTIME.version,
317
324
  },
318
325
  contentType: "application/json",
319
- body: yield serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
326
+ requestType: "json",
327
+ body: serializers.organizationProviders.v3.OrganizationProviderUpdateV2.jsonOrThrow(request, {
320
328
  unrecognizedObjectKeys: "strip",
321
329
  }),
322
330
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -326,7 +334,7 @@ class V3 {
326
334
  if (_response.ok) {
327
335
  return {
328
336
  ok: true,
329
- body: yield serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
337
+ body: serializers.organizationProviders.v3.OrganizationProviderV2.parseOrThrow(_response.body, {
330
338
  unrecognizedObjectKeys: "passthrough",
331
339
  allowUnrecognizedUnionMembers: true,
332
340
  allowUnrecognizedEnumValues: true,
@@ -341,7 +349,7 @@ class V3 {
341
349
  case "UpdatesDisabledDueToExternalSystemIntegrationError":
342
350
  return {
343
351
  ok: false,
344
- error: yield serializers.organizationProviders.v3.update.Error.parseOrThrow(_response.error.body, {
352
+ error: serializers.organizationProviders.v3.update.Error.parseOrThrow(_response.error.body, {
345
353
  unrecognizedObjectKeys: "passthrough",
346
354
  allowUnrecognizedUnionMembers: true,
347
355
  allowUnrecognizedEnumValues: true,
@@ -6,12 +6,15 @@ import * as core from "../../../../core";
6
6
  import { V2 } from "../resources/v2/client/Client";
7
7
  export declare namespace OrganizationServiceFacilities {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -6,12 +6,15 @@ import * as core from "../../../../../../core";
6
6
  import * as CandidApi from "../../../../../index";
7
7
  export declare namespace V2 {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -23,7 +26,7 @@ export declare class V2 {
23
26
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
24
27
  *
25
28
  * @example
26
- * await candidApi.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
29
+ * await client.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
27
30
  */
28
31
  get(organizationServiceFacilityId: CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacility, CandidApi.organizationServiceFacilities.v2.get.Error>>;
29
32
  /**
@@ -31,7 +34,7 @@ export declare class V2 {
31
34
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
32
35
  *
33
36
  * @example
34
- * await candidApi.organizationServiceFacilities.v2.getMulti({
37
+ * await client.organizationServiceFacilities.v2.getMulti({
35
38
  * limit: 100,
36
39
  * name: "Test Service Facility",
37
40
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
@@ -43,7 +46,7 @@ export declare class V2 {
43
46
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
44
47
  *
45
48
  * @example
46
- * await candidApi.organizationServiceFacilities.v2.create({
49
+ * await client.organizationServiceFacilities.v2.create({
47
50
  * name: "Test Service Facility",
48
51
  * aliases: ["Test Service Facility Alias"],
49
52
  * description: "Test Service Facility Description",
@@ -70,7 +73,7 @@ export declare class V2 {
70
73
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
71
74
  *
72
75
  * @example
73
- * await candidApi.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
76
+ * await client.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
74
77
  * name: "Test Service Facility",
75
78
  * aliases: ["Test Service Facility Alias"],
76
79
  * description: "Test Service Facility Description",
@@ -96,7 +99,7 @@ export declare class V2 {
96
99
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
97
100
  *
98
101
  * @example
99
- * await candidApi.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
102
+ * await client.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
100
103
  */
101
104
  delete(organizationServiceFacilityId: CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId, requestOptions?: V2.RequestOptions): Promise<core.APIResponse<void, CandidApi.organizationServiceFacilities.v2.delete.Error>>;
102
105
  protected _getAuthorizationHeader(): Promise<string | undefined>;
@@ -53,23 +53,25 @@ class V2 {
53
53
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
54
54
  *
55
55
  * @example
56
- * await candidApi.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
56
+ * await client.organizationServiceFacilities.v2.get(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
57
57
  */
58
58
  get(organizationServiceFacilityId, requestOptions) {
59
59
  var _a, _b;
60
60
  return __awaiter(this, void 0, void 0, function* () {
61
61
  const _response = yield core.fetcher({
62
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/organization-service-facilities/v2/${encodeURIComponent(yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
62
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
63
+ .candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
63
64
  method: "GET",
64
65
  headers: {
65
66
  Authorization: yield this._getAuthorizationHeader(),
66
67
  "X-Fern-Language": "JavaScript",
67
68
  "X-Fern-SDK-Name": "candidhealth",
68
- "X-Fern-SDK-Version": "0.23.0",
69
+ "X-Fern-SDK-Version": "0.24.1",
69
70
  "X-Fern-Runtime": core.RUNTIME.type,
70
71
  "X-Fern-Runtime-Version": core.RUNTIME.version,
71
72
  },
72
73
  contentType: "application/json",
74
+ requestType: "json",
73
75
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
74
76
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
75
77
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -77,7 +79,7 @@ class V2 {
77
79
  if (_response.ok) {
78
80
  return {
79
81
  ok: true,
80
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
82
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
81
83
  unrecognizedObjectKeys: "passthrough",
82
84
  allowUnrecognizedUnionMembers: true,
83
85
  allowUnrecognizedEnumValues: true,
@@ -90,7 +92,7 @@ class V2 {
90
92
  case "EntityNotFoundError":
91
93
  return {
92
94
  ok: false,
93
- error: yield serializers.organizationServiceFacilities.v2.get.Error.parseOrThrow(_response.error.body, {
95
+ error: serializers.organizationServiceFacilities.v2.get.Error.parseOrThrow(_response.error.body, {
94
96
  unrecognizedObjectKeys: "passthrough",
95
97
  allowUnrecognizedUnionMembers: true,
96
98
  allowUnrecognizedEnumValues: true,
@@ -110,7 +112,7 @@ class V2 {
110
112
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
111
113
  *
112
114
  * @example
113
- * await candidApi.organizationServiceFacilities.v2.getMulti({
115
+ * await client.organizationServiceFacilities.v2.getMulti({
114
116
  * limit: 100,
115
117
  * name: "Test Service Facility",
116
118
  * pageToken: CandidApi.PageToken("eyJ0b2tlbiI6IjEiLCJwYWdlX3Rva2VuIjoiMiJ9")
@@ -131,18 +133,20 @@ class V2 {
131
133
  _queryParams["page_token"] = pageToken;
132
134
  }
133
135
  const _response = yield core.fetcher({
134
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/api/organization-service-facilities/v2"),
136
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
137
+ .candidApi, "/api/organization-service-facilities/v2"),
135
138
  method: "GET",
136
139
  headers: {
137
140
  Authorization: yield this._getAuthorizationHeader(),
138
141
  "X-Fern-Language": "JavaScript",
139
142
  "X-Fern-SDK-Name": "candidhealth",
140
- "X-Fern-SDK-Version": "0.23.0",
143
+ "X-Fern-SDK-Version": "0.24.1",
141
144
  "X-Fern-Runtime": core.RUNTIME.type,
142
145
  "X-Fern-Runtime-Version": core.RUNTIME.version,
143
146
  },
144
147
  contentType: "application/json",
145
148
  queryParameters: _queryParams,
149
+ requestType: "json",
146
150
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
147
151
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
148
152
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -150,7 +154,7 @@ class V2 {
150
154
  if (_response.ok) {
151
155
  return {
152
156
  ok: true,
153
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityPage.parseOrThrow(_response.body, {
157
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityPage.parseOrThrow(_response.body, {
154
158
  unrecognizedObjectKeys: "passthrough",
155
159
  allowUnrecognizedUnionMembers: true,
156
160
  allowUnrecognizedEnumValues: true,
@@ -169,7 +173,7 @@ class V2 {
169
173
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
170
174
  *
171
175
  * @example
172
- * await candidApi.organizationServiceFacilities.v2.create({
176
+ * await client.organizationServiceFacilities.v2.create({
173
177
  * name: "Test Service Facility",
174
178
  * aliases: ["Test Service Facility Alias"],
175
179
  * description: "Test Service Facility Description",
@@ -193,18 +197,22 @@ class V2 {
193
197
  var _a, _b;
194
198
  return __awaiter(this, void 0, void 0, function* () {
195
199
  const _response = yield core.fetcher({
196
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, "/api/organization-service-facilities/v2"),
200
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
201
+ .candidApi, "/api/organization-service-facilities/v2"),
197
202
  method: "POST",
198
203
  headers: {
199
204
  Authorization: yield this._getAuthorizationHeader(),
200
205
  "X-Fern-Language": "JavaScript",
201
206
  "X-Fern-SDK-Name": "candidhealth",
202
- "X-Fern-SDK-Version": "0.23.0",
207
+ "X-Fern-SDK-Version": "0.24.1",
203
208
  "X-Fern-Runtime": core.RUNTIME.type,
204
209
  "X-Fern-Runtime-Version": core.RUNTIME.version,
205
210
  },
206
211
  contentType: "application/json",
207
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
212
+ requestType: "json",
213
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityCreate.jsonOrThrow(request, {
214
+ unrecognizedObjectKeys: "strip",
215
+ }),
208
216
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
209
217
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
210
218
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -212,7 +220,7 @@ class V2 {
212
220
  if (_response.ok) {
213
221
  return {
214
222
  ok: true,
215
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
223
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
216
224
  unrecognizedObjectKeys: "passthrough",
217
225
  allowUnrecognizedUnionMembers: true,
218
226
  allowUnrecognizedEnumValues: true,
@@ -225,7 +233,7 @@ class V2 {
225
233
  case "HttpRequestValidationError":
226
234
  return {
227
235
  ok: false,
228
- error: yield serializers.organizationServiceFacilities.v2.create.Error.parseOrThrow(_response.error.body, {
236
+ error: serializers.organizationServiceFacilities.v2.create.Error.parseOrThrow(_response.error.body, {
229
237
  unrecognizedObjectKeys: "passthrough",
230
238
  allowUnrecognizedUnionMembers: true,
231
239
  allowUnrecognizedEnumValues: true,
@@ -246,7 +254,7 @@ class V2 {
246
254
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
247
255
  *
248
256
  * @example
249
- * await candidApi.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
257
+ * await client.organizationServiceFacilities.v2.update(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"), {
250
258
  * name: "Test Service Facility",
251
259
  * aliases: ["Test Service Facility Alias"],
252
260
  * description: "Test Service Facility Description",
@@ -270,18 +278,22 @@ class V2 {
270
278
  var _a, _b;
271
279
  return __awaiter(this, void 0, void 0, function* () {
272
280
  const _response = yield core.fetcher({
273
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/organization-service-facilities/v2/${encodeURIComponent(yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
281
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
282
+ .candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
274
283
  method: "PATCH",
275
284
  headers: {
276
285
  Authorization: yield this._getAuthorizationHeader(),
277
286
  "X-Fern-Language": "JavaScript",
278
287
  "X-Fern-SDK-Name": "candidhealth",
279
- "X-Fern-SDK-Version": "0.23.0",
288
+ "X-Fern-SDK-Version": "0.24.1",
280
289
  "X-Fern-Runtime": core.RUNTIME.type,
281
290
  "X-Fern-Runtime-Version": core.RUNTIME.version,
282
291
  },
283
292
  contentType: "application/json",
284
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
293
+ requestType: "json",
294
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityUpdate.jsonOrThrow(request, {
295
+ unrecognizedObjectKeys: "strip",
296
+ }),
285
297
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
286
298
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
287
299
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -289,7 +301,7 @@ class V2 {
289
301
  if (_response.ok) {
290
302
  return {
291
303
  ok: true,
292
- body: yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
304
+ body: serializers.organizationServiceFacilities.v2.OrganizationServiceFacility.parseOrThrow(_response.body, {
293
305
  unrecognizedObjectKeys: "passthrough",
294
306
  allowUnrecognizedUnionMembers: true,
295
307
  allowUnrecognizedEnumValues: true,
@@ -303,7 +315,7 @@ class V2 {
303
315
  case "EntityNotFoundError":
304
316
  return {
305
317
  ok: false,
306
- error: yield serializers.organizationServiceFacilities.v2.update.Error.parseOrThrow(_response.error.body, {
318
+ error: serializers.organizationServiceFacilities.v2.update.Error.parseOrThrow(_response.error.body, {
307
319
  unrecognizedObjectKeys: "passthrough",
308
320
  allowUnrecognizedUnionMembers: true,
309
321
  allowUnrecognizedEnumValues: true,
@@ -323,23 +335,25 @@ class V2 {
323
335
  * @param {V2.RequestOptions} requestOptions - Request-specific configuration.
324
336
  *
325
337
  * @example
326
- * await candidApi.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
338
+ * await client.organizationServiceFacilities.v2.delete(CandidApi.organizationServiceFacilities.v2.OrganizationServiceFacilityId("30F55EE6-8C0E-43FC-A7FC-DAC00D5BF569"))
327
339
  */
328
340
  delete(organizationServiceFacilityId, requestOptions) {
329
341
  var _a, _b;
330
342
  return __awaiter(this, void 0, void 0, function* () {
331
343
  const _response = yield core.fetcher({
332
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production, `/api/organization-service-facilities/v2/${encodeURIComponent(yield serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
344
+ url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.CandidApiEnvironment.Production)
345
+ .candidApi, `/api/organization-service-facilities/v2/${encodeURIComponent(serializers.organizationServiceFacilities.v2.OrganizationServiceFacilityId.jsonOrThrow(organizationServiceFacilityId))}`),
333
346
  method: "DELETE",
334
347
  headers: {
335
348
  Authorization: yield this._getAuthorizationHeader(),
336
349
  "X-Fern-Language": "JavaScript",
337
350
  "X-Fern-SDK-Name": "candidhealth",
338
- "X-Fern-SDK-Version": "0.23.0",
351
+ "X-Fern-SDK-Version": "0.24.1",
339
352
  "X-Fern-Runtime": core.RUNTIME.type,
340
353
  "X-Fern-Runtime-Version": core.RUNTIME.version,
341
354
  },
342
355
  contentType: "application/json",
356
+ requestType: "json",
343
357
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
344
358
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
345
359
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -355,7 +369,7 @@ class V2 {
355
369
  case "EntityNotFoundError":
356
370
  return {
357
371
  ok: false,
358
- error: yield serializers.organizationServiceFacilities.v2.delete.Error.parseOrThrow(_response.error.body, {
372
+ error: serializers.organizationServiceFacilities.v2.delete.Error.parseOrThrow(_response.error.body, {
359
373
  unrecognizedObjectKeys: "passthrough",
360
374
  allowUnrecognizedUnionMembers: true,
361
375
  allowUnrecognizedEnumValues: true,
@@ -6,12 +6,15 @@ import * as core from "../../../../core";
6
6
  import { V4 } from "../resources/v4/client/Client";
7
7
  export declare namespace PatientPayments {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -6,12 +6,15 @@ import * as core from "../../../../../../core";
6
6
  import * as CandidApi from "../../../../../index";
7
7
  export declare namespace V4 {
8
8
  interface Options {
9
- environment?: core.Supplier<environments.CandidApiEnvironment | string>;
9
+ environment?: core.Supplier<environments.CandidApiEnvironment | environments.CandidApiEnvironmentUrls>;
10
10
  token?: core.Supplier<core.BearerToken | undefined>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
15
18
  abortSignal?: AbortSignal;
16
19
  }
17
20
  }
@@ -26,7 +29,7 @@ export declare class V4 {
26
29
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
27
30
  *
28
31
  * @example
29
- * await candidApi.patientPayments.v4.getMulti({
32
+ * await client.patientPayments.v4.getMulti({
30
33
  * limit: 1,
31
34
  * patientExternalId: CandidApi.PatientExternalId("string"),
32
35
  * claimId: CandidApi.ClaimId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"),
@@ -48,7 +51,7 @@ export declare class V4 {
48
51
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
49
52
  *
50
53
  * @example
51
- * await candidApi.patientPayments.v4.get(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
54
+ * await client.patientPayments.v4.get(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
52
55
  */
53
56
  get(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<CandidApi.patientPayments.v4.PatientPayment, CandidApi.patientPayments.v4.get.Error>>;
54
57
  /**
@@ -60,7 +63,7 @@ export declare class V4 {
60
63
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
61
64
  *
62
65
  * @example
63
- * await candidApi.patientPayments.v4.create({
66
+ * await client.patientPayments.v4.create({
64
67
  * amountCents: 1,
65
68
  * paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
66
69
  * paymentNote: "string",
@@ -84,7 +87,7 @@ export declare class V4 {
84
87
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
85
88
  *
86
89
  * @example
87
- * await candidApi.patientPayments.v4.update(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
90
+ * await client.patientPayments.v4.update(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"), {
88
91
  * paymentTimestamp: new Date("2024-01-15T09:30:00.000Z"),
89
92
  * paymentNote: {
90
93
  * type: "set",
@@ -104,7 +107,7 @@ export declare class V4 {
104
107
  * @param {V4.RequestOptions} requestOptions - Request-specific configuration.
105
108
  *
106
109
  * @example
107
- * await candidApi.patientPayments.v4.delete(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
110
+ * await client.patientPayments.v4.delete(CandidApi.patientPayments.v4.PatientPaymentId("d5e9c84f-c2b2-4bf4-b4b0-7ffd7a9ffc32"))
108
111
  */
109
112
  delete(patientPaymentId: CandidApi.patientPayments.v4.PatientPaymentId, requestOptions?: V4.RequestOptions): Promise<core.APIResponse<void, CandidApi.patientPayments.v4.delete.Error>>;
110
113
  protected _getAuthorizationHeader(): Promise<string | undefined>;