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
@@ -31,18 +31,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
31
31
  step((generator = generator.apply(thisArg, _arguments || [])).next());
32
32
  });
33
33
  };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
34
  Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.fetcher = void 0;
39
- const qs_1 = __importDefault(require("qs"));
40
- const runtime_1 = require("../runtime");
41
- const INITIAL_RETRY_DELAY = 1;
42
- const MAX_RETRY_DELAY = 60;
43
- const DEFAULT_MAX_RETRIES = 2;
35
+ exports.fetcher = exports.fetcherImpl = void 0;
36
+ const createRequestUrl_1 = require("./createRequestUrl");
37
+ const getFetchFn_1 = require("./getFetchFn");
38
+ const getRequestBody_1 = require("./getRequestBody");
39
+ const getResponseBody_1 = require("./getResponseBody");
40
+ const makeRequest_1 = require("./makeRequest");
41
+ const requestWithRetries_1 = require("./requestWithRetries");
44
42
  function fetcherImpl(args) {
45
- var _a, _b;
46
43
  return __awaiter(this, void 0, void 0, function* () {
47
44
  const headers = {};
48
45
  if (args.body !== undefined && args.contentType != null) {
@@ -55,121 +52,24 @@ function fetcherImpl(args) {
55
52
  }
56
53
  }
57
54
  }
58
- const url = Object.keys((_a = args.queryParameters) !== null && _a !== void 0 ? _a : {}).length > 0
59
- ? `${args.url}?${qs_1.default.stringify(args.queryParameters, { arrayFormat: "repeat" })}`
60
- : args.url;
61
- let body = undefined;
62
- const maybeStringifyBody = (body) => {
63
- if (body instanceof Uint8Array) {
64
- return body;
65
- }
66
- else if (args.contentType === "application/x-www-form-urlencoded" && typeof args.body === "string") {
67
- return args.body;
68
- }
69
- else {
70
- return JSON.stringify(body);
71
- }
72
- };
73
- if (runtime_1.RUNTIME.type === "node") {
74
- if (args.body instanceof (yield Promise.resolve().then(() => __importStar(require("formdata-node")))).FormData) {
75
- // @ts-expect-error
76
- body = args.body;
77
- }
78
- else {
79
- body = maybeStringifyBody(args.body);
80
- }
81
- }
82
- else {
83
- if (args.body instanceof (yield Promise.resolve().then(() => __importStar(require("form-data")))).default) {
84
- // @ts-expect-error
85
- body = args.body;
86
- }
87
- else {
88
- body = maybeStringifyBody(args.body);
89
- }
90
- }
91
- // In Node.js environments, the SDK always uses`node-fetch`.
92
- // If not in Node.js the SDK uses global fetch if available,
93
- // and falls back to node-fetch.
94
- const fetchFn = runtime_1.RUNTIME.type === "node"
95
- ? // `.default` is required due to this issue:
96
- // https://github.com/node-fetch/node-fetch/issues/450#issuecomment-387045223
97
- (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default
98
- : typeof fetch == "function"
99
- ? fetch
100
- : (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
101
- const makeRequest = () => __awaiter(this, void 0, void 0, function* () {
102
- const signals = [];
103
- // Add timeout signal
104
- let timeoutAbortId = undefined;
105
- if (args.timeoutMs != null) {
106
- const { signal, abortId } = getTimeoutSignal(args.timeoutMs);
107
- timeoutAbortId = abortId;
108
- signals.push(signal);
109
- }
110
- // Add arbitrary signal
111
- if (args.abortSignal != null) {
112
- signals.push(args.abortSignal);
113
- }
114
- const response = yield fetchFn(url, {
115
- method: args.method,
116
- headers,
117
- body,
118
- signal: anySignal(signals),
119
- credentials: args.withCredentials ? "include" : undefined,
120
- });
121
- if (timeoutAbortId != null) {
122
- clearTimeout(timeoutAbortId);
123
- }
124
- return response;
55
+ const url = (0, createRequestUrl_1.createRequestUrl)(args.url, args.queryParameters);
56
+ let requestBody = yield (0, getRequestBody_1.getRequestBody)({
57
+ body: args.body,
58
+ type: args.requestType === "json" ? "json" : "other",
125
59
  });
60
+ const fetchFn = yield (0, getFetchFn_1.getFetchFn)();
126
61
  try {
127
- let response = yield makeRequest();
128
- for (let i = 0; i < ((_b = args.maxRetries) !== null && _b !== void 0 ? _b : DEFAULT_MAX_RETRIES); ++i) {
129
- if (response.status === 408 ||
130
- response.status === 409 ||
131
- response.status === 429 ||
132
- response.status >= 500) {
133
- const delay = Math.min(INITIAL_RETRY_DELAY * Math.pow(i, 2), MAX_RETRY_DELAY);
134
- yield new Promise((resolve) => setTimeout(resolve, delay));
135
- response = yield makeRequest();
136
- }
137
- else {
138
- break;
139
- }
140
- }
141
- let body;
142
- if (response.body != null && args.responseType === "blob") {
143
- body = yield response.blob();
144
- }
145
- else if (response.body != null && args.responseType === "streaming") {
146
- body = response.body;
147
- }
148
- else if (response.body != null && args.responseType === "text") {
149
- body = yield response.text();
150
- }
151
- else {
152
- const text = yield response.text();
153
- if (text.length > 0) {
154
- try {
155
- body = JSON.parse(text);
156
- }
157
- catch (err) {
158
- return {
159
- ok: false,
160
- error: {
161
- reason: "non-json",
162
- statusCode: response.status,
163
- rawBody: text,
164
- },
165
- };
166
- }
167
- }
168
- }
62
+ const response = yield (0, requestWithRetries_1.requestWithRetries)(() => __awaiter(this, void 0, void 0, function* () {
63
+ return (0, makeRequest_1.makeRequest)(fetchFn, url, args.method, headers, requestBody, args.timeoutMs, args.abortSignal, args.withCredentials, args.duplex);
64
+ }), args.maxRetries);
65
+ let responseBody = yield (0, getResponseBody_1.getResponseBody)(response, args.responseType);
169
66
  if (response.status >= 200 && response.status < 400) {
67
+ if (args.duplex && args.responseType === "streaming") {
68
+ responseBody = (yield Promise.resolve().then(() => __importStar(require("stream")))).Readable.from(responseBody);
69
+ }
170
70
  return {
171
71
  ok: true,
172
- body: body,
72
+ body: responseBody,
173
73
  headers: response.headers,
174
74
  };
175
75
  }
@@ -179,7 +79,7 @@ function fetcherImpl(args) {
179
79
  error: {
180
80
  reason: "status-code",
181
81
  statusCode: response.status,
182
- body,
82
+ body: responseBody,
183
83
  },
184
84
  };
185
85
  }
@@ -221,36 +121,5 @@ function fetcherImpl(args) {
221
121
  }
222
122
  });
223
123
  }
224
- const TIMEOUT = "timeout";
225
- function getTimeoutSignal(timeoutMs) {
226
- const controller = new AbortController();
227
- const abortId = setTimeout(() => controller.abort(TIMEOUT), timeoutMs);
228
- return { signal: controller.signal, abortId };
229
- }
230
- /**
231
- * Returns an abort signal that is getting aborted when
232
- * at least one of the specified abort signals is aborted.
233
- *
234
- * Requires at least node.js 18.
235
- */
236
- function anySignal(...args) {
237
- // Allowing signals to be passed either as array
238
- // of signals or as multiple arguments.
239
- const signals = (args.length === 1 && Array.isArray(args[0]) ? args[0] : args);
240
- const controller = new AbortController();
241
- for (const signal of signals) {
242
- if (signal.aborted) {
243
- // Exiting early if one of the signals
244
- // is already aborted.
245
- controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
246
- break;
247
- }
248
- // Listening for signals and removing the listeners
249
- // when at least one symbol is aborted.
250
- signal.addEventListener("abort", () => controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason), {
251
- signal: controller.signal,
252
- });
253
- }
254
- return controller.signal;
255
- }
124
+ exports.fetcherImpl = fetcherImpl;
256
125
  exports.fetcher = fetcherImpl;
@@ -0,0 +1 @@
1
+ export declare function createRequestUrl(baseUrl: string, queryParameters?: Record<string, string | string[] | object | object[]>): string;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.createRequestUrl = void 0;
7
+ const qs_1 = __importDefault(require("qs"));
8
+ function createRequestUrl(baseUrl, queryParameters) {
9
+ return Object.keys(queryParameters !== null && queryParameters !== void 0 ? queryParameters : {}).length > 0
10
+ ? `${baseUrl}?${qs_1.default.stringify(queryParameters, { arrayFormat: "repeat" })}`
11
+ : baseUrl;
12
+ }
13
+ exports.createRequestUrl = createRequestUrl;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Returns a fetch function based on the runtime
3
+ */
4
+ export declare function getFetchFn(): Promise<any>;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ Object.defineProperty(exports, "__esModule", { value: true });
35
+ exports.getFetchFn = void 0;
36
+ const runtime_1 = require("../runtime");
37
+ /**
38
+ * Returns a fetch function based on the runtime
39
+ */
40
+ function getFetchFn() {
41
+ return __awaiter(this, void 0, void 0, function* () {
42
+ // In Node.js 18+ environments, use native fetch
43
+ if (runtime_1.RUNTIME.type === "node" && runtime_1.RUNTIME.parsedVersion != null && runtime_1.RUNTIME.parsedVersion >= 18) {
44
+ return fetch;
45
+ }
46
+ // In Node.js 18 or lower environments, the SDK always uses`node-fetch`.
47
+ if (runtime_1.RUNTIME.type === "node") {
48
+ return (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
49
+ }
50
+ // Otherwise the SDK uses global fetch if available,
51
+ // and falls back to node-fetch.
52
+ if (typeof fetch == "function") {
53
+ return fetch;
54
+ }
55
+ // Defaults to node `node-fetch` if global fetch isn't available
56
+ return (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
57
+ });
58
+ }
59
+ exports.getFetchFn = getFetchFn;
@@ -0,0 +1,7 @@
1
+ export declare namespace GetRequestBody {
2
+ interface Args {
3
+ body: unknown;
4
+ type: "json" | "file" | "bytes" | "other";
5
+ }
6
+ }
7
+ export declare function getRequestBody({ body, type }: GetRequestBody.Args): Promise<BodyInit | undefined>;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getRequestBody = void 0;
13
+ function getRequestBody({ body, type }) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ if (type.includes("json")) {
16
+ return JSON.stringify(body);
17
+ }
18
+ else {
19
+ return body;
20
+ }
21
+ });
22
+ }
23
+ exports.getRequestBody = getRequestBody;
@@ -0,0 +1 @@
1
+ export declare function getResponseBody(response: Response, responseType?: string): Promise<unknown>;
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.getResponseBody = void 0;
13
+ function getResponseBody(response, responseType) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ if (response.body != null && responseType === "blob") {
16
+ return yield response.blob();
17
+ }
18
+ else if (response.body != null && responseType === "streaming") {
19
+ return response.body;
20
+ }
21
+ else if (response.body != null && responseType === "text") {
22
+ return yield response.text();
23
+ }
24
+ else {
25
+ const text = yield response.text();
26
+ if (text.length > 0) {
27
+ try {
28
+ let responseBody = JSON.parse(text);
29
+ return responseBody;
30
+ }
31
+ catch (err) {
32
+ return {
33
+ ok: false,
34
+ error: {
35
+ reason: "non-json",
36
+ statusCode: response.status,
37
+ rawBody: text,
38
+ },
39
+ };
40
+ }
41
+ }
42
+ else {
43
+ return undefined;
44
+ }
45
+ }
46
+ });
47
+ }
48
+ exports.getResponseBody = getResponseBody;
@@ -0,0 +1 @@
1
+ export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number | undefined, abortSignal?: AbortSignal | undefined, withCredentials?: boolean | undefined, duplex?: "half" | undefined) => Promise<Response>;
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.makeRequest = void 0;
13
+ const signals_1 = require("./signals");
14
+ const makeRequest = (fetchFn, url, method, headers, requestBody, timeoutMs, abortSignal, withCredentials, duplex) => __awaiter(void 0, void 0, void 0, function* () {
15
+ const signals = [];
16
+ // Add timeout signal
17
+ let timeoutAbortId = undefined;
18
+ if (timeoutMs != null) {
19
+ const { signal, abortId } = (0, signals_1.getTimeoutSignal)(timeoutMs);
20
+ timeoutAbortId = abortId;
21
+ signals.push(signal);
22
+ }
23
+ // Add arbitrary signal
24
+ if (abortSignal != null) {
25
+ signals.push(abortSignal);
26
+ }
27
+ let newSignals = (0, signals_1.anySignal)(signals);
28
+ const response = yield fetchFn(url, {
29
+ method: method,
30
+ headers,
31
+ body: requestBody,
32
+ signal: newSignals,
33
+ credentials: withCredentials ? "include" : undefined,
34
+ // @ts-ignore
35
+ duplex,
36
+ });
37
+ if (timeoutAbortId != null) {
38
+ clearTimeout(timeoutAbortId);
39
+ }
40
+ return response;
41
+ });
42
+ exports.makeRequest = makeRequest;
@@ -0,0 +1 @@
1
+ export declare function requestWithRetries(requestFn: () => Promise<Response>, maxRetries?: number): Promise<Response>;
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.requestWithRetries = void 0;
13
+ const INITIAL_RETRY_DELAY = 1;
14
+ const MAX_RETRY_DELAY = 60;
15
+ const DEFAULT_MAX_RETRIES = 2;
16
+ function requestWithRetries(requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ let response = yield requestFn();
19
+ for (let i = 0; i < maxRetries; ++i) {
20
+ if ([408, 409, 429].includes(response.status) || response.status >= 500) {
21
+ const delay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY);
22
+ yield new Promise((resolve) => setTimeout(resolve, delay));
23
+ response = yield requestFn();
24
+ }
25
+ else {
26
+ break;
27
+ }
28
+ }
29
+ return response;
30
+ });
31
+ }
32
+ exports.requestWithRetries = requestWithRetries;
@@ -0,0 +1,12 @@
1
+ /// <reference types="node" />
2
+ export declare function getTimeoutSignal(timeoutMs: number): {
3
+ signal: AbortSignal;
4
+ abortId: NodeJS.Timeout;
5
+ };
6
+ /**
7
+ * Returns an abort signal that is getting aborted when
8
+ * at least one of the specified abort signals is aborted.
9
+ *
10
+ * Requires at least node.js 18.
11
+ */
12
+ export declare function anySignal(...args: AbortSignal[] | [AbortSignal[]]): AbortSignal;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.anySignal = exports.getTimeoutSignal = void 0;
4
+ const TIMEOUT = "timeout";
5
+ function getTimeoutSignal(timeoutMs) {
6
+ const controller = new AbortController();
7
+ const abortId = setTimeout(() => controller.abort(TIMEOUT), timeoutMs);
8
+ return { signal: controller.signal, abortId };
9
+ }
10
+ exports.getTimeoutSignal = getTimeoutSignal;
11
+ /**
12
+ * Returns an abort signal that is getting aborted when
13
+ * at least one of the specified abort signals is aborted.
14
+ *
15
+ * Requires at least node.js 18.
16
+ */
17
+ function anySignal(...args) {
18
+ // Allowing signals to be passed either as array
19
+ // of signals or as multiple arguments.
20
+ const signals = (args.length === 1 && Array.isArray(args[0]) ? args[0] : args);
21
+ const controller = new AbortController();
22
+ for (const signal of signals) {
23
+ if (signal.aborted) {
24
+ // Exiting early if one of the signals
25
+ // is already aborted.
26
+ controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason);
27
+ break;
28
+ }
29
+ // Listening for signals and removing the listeners
30
+ // when at least one symbol is aborted.
31
+ signal.addEventListener("abort", () => controller.abort(signal === null || signal === void 0 ? void 0 : signal.reason), {
32
+ signal: controller.signal,
33
+ });
34
+ }
35
+ return controller.signal;
36
+ }
37
+ exports.anySignal = anySignal;
@@ -3,6 +3,7 @@
3
3
  */
4
4
  export declare const RUNTIME: Runtime;
5
5
  export interface Runtime {
6
- type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown";
6
+ type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd";
7
7
  version?: string;
8
+ parsedVersion?: number;
8
9
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
- var _a, _b, _c, _d;
2
+ var _a, _b, _c, _d, _e;
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.RUNTIME = void 0;
5
5
  /**
@@ -37,6 +37,11 @@ const isNode = typeof process !== "undefined" &&
37
37
  * https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
38
38
  */
39
39
  const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
40
+ /**
41
+ * A constant that indicates whether the environment the code is running is Cloudflare.
42
+ * https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
43
+ */
44
+ const isCloudflare = typeof globalThis !== "undefined" && ((_e = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _e === void 0 ? void 0 : _e.userAgent) === "Cloudflare-Workers";
40
45
  /**
41
46
  * A constant that indicates which environment and version the SDK is running in.
42
47
  */
@@ -48,6 +53,11 @@ function evaluateRuntime() {
48
53
  version: window.navigator.userAgent,
49
54
  };
50
55
  }
56
+ if (isCloudflare) {
57
+ return {
58
+ type: "workerd",
59
+ };
60
+ }
51
61
  if (isWebWorker) {
52
62
  return {
53
63
  type: "web-worker",
@@ -69,6 +79,7 @@ function evaluateRuntime() {
69
79
  return {
70
80
  type: "node",
71
81
  version: process.versions.node,
82
+ parsedVersion: Number(process.versions.node.split(".")[0]),
72
83
  };
73
84
  }
74
85
  if (isReactNative) {
@@ -1,12 +1,11 @@
1
1
  import { SchemaUtils } from "./builders";
2
- import { MaybePromise } from "./utils/MaybePromise";
3
2
  export declare type Schema<Raw = unknown, Parsed = unknown> = BaseSchema<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
4
3
  export declare type inferRaw<S extends Schema> = S extends Schema<infer Raw, any> ? Raw : never;
5
4
  export declare type inferParsed<S extends Schema> = S extends Schema<any, infer Parsed> ? Parsed : never;
6
5
  export interface BaseSchema<Raw, Parsed> {
7
- parse: (raw: unknown, opts?: SchemaOptions) => MaybePromise<MaybeValid<Parsed>>;
8
- json: (parsed: unknown, opts?: SchemaOptions) => MaybePromise<MaybeValid<Raw>>;
9
- getType: () => SchemaType | Promise<SchemaType>;
6
+ parse: (raw: unknown, opts?: SchemaOptions) => MaybeValid<Parsed>;
7
+ json: (parsed: unknown, opts?: SchemaOptions) => MaybeValid<Raw>;
8
+ getType: () => SchemaType | SchemaType;
10
9
  }
11
10
  export declare const SchemaType: {
12
11
  readonly DATE: "date";
@@ -78,4 +77,8 @@ export interface SchemaOptions {
78
77
  * helpful for zurg's internal debug logging.
79
78
  */
80
79
  breadcrumbsPrefix?: string[];
80
+ /**
81
+ * whether to send 'null' for optional properties explicitly set to 'undefined'.
82
+ */
83
+ omitUndefined?: boolean;
81
84
  }
@@ -1,5 +1,5 @@
1
1
  import { BaseSchema, Schema } from "../../Schema";
2
- export declare type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType | Promise<SchemaType>;
2
+ export declare type SchemaGetter<SchemaType extends Schema<any, any>> = () => SchemaType;
3
3
  export declare function lazy<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): Schema<Raw, Parsed>;
4
4
  export declare function constructLazyBaseSchema<Raw, Parsed>(getter: SchemaGetter<Schema<Raw, Parsed>>): BaseSchema<Raw, Parsed>;
5
- export declare function getMemoizedSchema<SchemaType extends Schema<any, any>>(getter: SchemaGetter<SchemaType>): Promise<SchemaType>;
5
+ export declare function getMemoizedSchema<SchemaType extends Schema<any, any>>(getter: SchemaGetter<SchemaType>): SchemaType;
@@ -1,13 +1,4 @@
1
1
  "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
2
  Object.defineProperty(exports, "__esModule", { value: true });
12
3
  exports.getMemoizedSchema = exports.constructLazyBaseSchema = exports.lazy = void 0;
13
4
  const schema_utils_1 = require("../schema-utils");
@@ -18,19 +9,17 @@ function lazy(getter) {
18
9
  exports.lazy = lazy;
19
10
  function constructLazyBaseSchema(getter) {
20
11
  return {
21
- parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () { return (yield getMemoizedSchema(getter)).parse(raw, opts); }),
22
- json: (parsed, opts) => __awaiter(this, void 0, void 0, function* () { return (yield getMemoizedSchema(getter)).json(parsed, opts); }),
23
- getType: () => __awaiter(this, void 0, void 0, function* () { return (yield getMemoizedSchema(getter)).getType(); }),
12
+ parse: (raw, opts) => getMemoizedSchema(getter).parse(raw, opts),
13
+ json: (parsed, opts) => getMemoizedSchema(getter).json(parsed, opts),
14
+ getType: () => getMemoizedSchema(getter).getType(),
24
15
  };
25
16
  }
26
17
  exports.constructLazyBaseSchema = constructLazyBaseSchema;
27
18
  function getMemoizedSchema(getter) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- const castedGetter = getter;
30
- if (castedGetter.__zurg_memoized == null) {
31
- castedGetter.__zurg_memoized = yield getter();
32
- }
33
- return castedGetter.__zurg_memoized;
34
- });
19
+ const castedGetter = getter;
20
+ if (castedGetter.__zurg_memoized == null) {
21
+ castedGetter.__zurg_memoized = getter();
22
+ }
23
+ return castedGetter.__zurg_memoized;
35
24
  }
36
25
  exports.getMemoizedSchema = getMemoizedSchema;