@tryvital/vital-node 3.1.232 → 3.1.236

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 (343) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +2 -2
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/electrocardiogram/client/Client.js +1 -1
  6. package/api/resources/insurance/client/Client.js +3 -3
  7. package/api/resources/introspect/client/Client.js +2 -2
  8. package/api/resources/labTests/client/Client.d.ts +10 -0
  9. package/api/resources/labTests/client/Client.js +141 -37
  10. package/api/resources/link/client/Client.js +19 -19
  11. package/api/resources/link/client/requests/LinkTokenExchange.d.ts +23 -0
  12. package/api/resources/meal/client/Client.js +1 -1
  13. package/api/resources/menstrualCycle/client/Client.js +1 -1
  14. package/api/resources/order/client/Client.js +1 -1
  15. package/api/resources/profile/client/Client.js +2 -2
  16. package/api/resources/providers/client/Client.js +1 -1
  17. package/api/resources/sleep/client/Client.js +4 -4
  18. package/api/resources/sleepCycle/client/Client.js +1 -1
  19. package/api/resources/team/client/Client.js +7 -7
  20. package/api/resources/testkit/client/Client.js +2 -2
  21. package/api/resources/user/client/Client.js +16 -16
  22. package/api/resources/vitals/client/Client.js +75 -75
  23. package/api/resources/workouts/client/Client.js +3 -3
  24. package/api/types/ActivityColumnExpr.d.ts +1 -0
  25. package/api/types/ActivityColumnExprActivity.d.ts +3 -0
  26. package/api/types/AggregateExpr.d.ts +1 -0
  27. package/api/types/AggregateExprFunc.d.ts +3 -0
  28. package/api/types/AllowedRadius.d.ts +3 -0
  29. package/api/types/AppointmentEventStatus.d.ts +3 -0
  30. package/api/types/AppointmentProvider.d.ts +3 -0
  31. package/api/types/AppointmentPscLabs.d.ts +3 -0
  32. package/api/types/AppointmentServiceType.d.ts +3 -0
  33. package/api/types/AppointmentStatus.d.ts +3 -0
  34. package/api/types/AppointmentType.d.ts +3 -0
  35. package/api/types/AttemptStatus.d.ts +3 -0
  36. package/api/types/AuthType.d.ts +3 -0
  37. package/api/types/Availability.d.ts +3 -0
  38. package/api/types/Billing.d.ts +3 -0
  39. package/api/types/BiomarkerResult.d.ts +2 -0
  40. package/api/types/BodyColumnExpr.d.ts +1 -0
  41. package/api/types/BodyColumnExprBody.d.ts +3 -0
  42. package/api/types/BulkOp.d.ts +2 -0
  43. package/api/types/BulkOpStatus.d.ts +3 -0
  44. package/api/types/BulkOpType.d.ts +3 -0
  45. package/api/types/CervicalMucusEntry.d.ts +1 -0
  46. package/api/types/CervicalMucusEntryQuality.d.ts +3 -0
  47. package/api/types/ClientFacingConnectionErrorDetails.d.ts +1 -0
  48. package/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +3 -0
  49. package/api/types/ClientFacingElectrocardiogram.d.ts +1 -0
  50. package/api/types/ClientFacingElectrocardiogramSourceType.d.ts +3 -0
  51. package/api/types/ClientFacingHeartRateAlertSample.d.ts +1 -0
  52. package/api/types/ClientFacingHeartRateAlertSampleType.d.ts +3 -0
  53. package/api/types/ClientFacingInsulinInjectionSample.d.ts +1 -1
  54. package/api/types/ClientFacingInsulinInjectionSampleType.d.ts +1 -1
  55. package/api/types/ClientFacingLabs.d.ts +3 -0
  56. package/api/types/ClientFacingMenstrualCycle.d.ts +1 -0
  57. package/api/types/ClientFacingMenstrualCycleSourceType.d.ts +3 -0
  58. package/api/types/ClientFacingResource.d.ts +3 -0
  59. package/api/types/ClientFacingSleepCycle.d.ts +1 -0
  60. package/api/types/ClientFacingSleepCycleSourceType.d.ts +3 -0
  61. package/api/types/ClientFacingStandHourSample.d.ts +1 -0
  62. package/api/types/ClientFacingStandHourSampleType.d.ts +3 -0
  63. package/api/types/ClinicalInformation.d.ts +9 -0
  64. package/api/types/ClinicalInformation.js +5 -0
  65. package/api/types/ConsentType.d.ts +3 -0
  66. package/api/types/ContraceptiveEntry.d.ts +1 -0
  67. package/api/types/ContraceptiveEntryType.d.ts +3 -0
  68. package/api/types/DelegatedFlowType.d.ts +3 -0
  69. package/api/types/DemoProviders.d.ts +3 -0
  70. package/api/types/DetectedDeviationEntry.d.ts +1 -0
  71. package/api/types/DetectedDeviationEntryDeviation.d.ts +3 -0
  72. package/api/types/EmailProviders.d.ts +3 -0
  73. package/api/types/Ethnicity.d.ts +3 -0
  74. package/api/types/EventDestinationPreferences.d.ts +1 -0
  75. package/api/types/EventDestinationPreferencesPreferred.d.ts +3 -0
  76. package/api/types/FailureType.d.ts +3 -0
  77. package/api/types/Gender.d.ts +3 -0
  78. package/api/types/GenderIdentity.d.ts +3 -0
  79. package/api/types/HistoricalPullStatus.d.ts +3 -0
  80. package/api/types/HomePregnancyTestEntry.d.ts +1 -0
  81. package/api/types/HomePregnancyTestEntryTestResult.d.ts +3 -0
  82. package/api/types/HomeProgesteroneTestEntry.d.ts +1 -0
  83. package/api/types/HomeProgesteroneTestEntryTestResult.d.ts +3 -0
  84. package/api/types/IndexColumnExpr.d.ts +1 -0
  85. package/api/types/IndexColumnExprIndex.d.ts +3 -0
  86. package/api/types/LabResultsRaw.d.ts +1 -0
  87. package/api/types/LabTestCollectionMethod.d.ts +1 -1
  88. package/api/types/LabTestGenerationMethodFilter.d.ts +3 -0
  89. package/api/types/LabTestSampleType.d.ts +1 -1
  90. package/api/types/LabTestStatus.d.ts +3 -0
  91. package/api/types/Labs.d.ts +3 -0
  92. package/api/types/ManualProviders.d.ts +3 -0
  93. package/api/types/MarkerType.d.ts +3 -0
  94. package/api/types/MenstrualFlowEntry.d.ts +1 -0
  95. package/api/types/MenstrualFlowEntryFlow.d.ts +3 -0
  96. package/api/types/Minerals.d.ts +3 -0
  97. package/api/types/OAuthProviders.d.ts +3 -0
  98. package/api/types/OrderStatus.d.ts +3 -0
  99. package/api/types/OrderTopLevelStatus.d.ts +3 -0
  100. package/api/types/OvulationTestEntry.d.ts +1 -0
  101. package/api/types/OvulationTestEntryTestResult.d.ts +3 -0
  102. package/api/types/PasswordProviders.d.ts +3 -0
  103. package/api/types/PayorCodeExternalProvider.d.ts +3 -0
  104. package/api/types/PerformingLaboratory.d.ts +10 -0
  105. package/api/types/PerformingLaboratory.js +5 -0
  106. package/api/types/Period.d.ts +1 -0
  107. package/api/types/PeriodUnit.d.ts +3 -0
  108. package/api/types/ProviderConnectionError.d.ts +3 -1
  109. package/api/types/ProviderConnectionErrorErrorType.d.ts +16 -0
  110. package/api/types/ProviderConnectionErrorErrorType.js +15 -0
  111. package/api/types/ProviderLinkResponse.d.ts +1 -0
  112. package/api/types/ProviderLinkResponseState.d.ts +3 -0
  113. package/api/types/ProviderMfaRequest.d.ts +1 -0
  114. package/api/types/ProviderMfaRequestMethod.d.ts +3 -0
  115. package/api/types/Providers.d.ts +3 -0
  116. package/api/types/QuestionType.d.ts +3 -0
  117. package/api/types/Race.d.ts +3 -0
  118. package/api/types/Region.d.ts +3 -0
  119. package/api/types/ResponsibleRelationship.d.ts +3 -0
  120. package/api/types/ResultType.d.ts +3 -0
  121. package/api/types/SampleData.d.ts +13 -0
  122. package/api/types/SampleData.js +5 -0
  123. package/api/types/SampleDataDateCollected.d.ts +5 -0
  124. package/api/types/SampleDataDateCollected.js +5 -0
  125. package/api/types/SampleDataDateReceived.d.ts +5 -0
  126. package/api/types/SampleDataDateReceived.js +5 -0
  127. package/api/types/SampleDataDateReported.d.ts +5 -0
  128. package/api/types/SampleDataDateReported.js +5 -0
  129. package/api/types/SexualOrientation.d.ts +3 -0
  130. package/api/types/SleepColumnExpr.d.ts +1 -0
  131. package/api/types/SleepColumnExprSleep.d.ts +3 -0
  132. package/api/types/SleepSummaryState.d.ts +3 -0
  133. package/api/types/SleepType.d.ts +3 -0
  134. package/api/types/SourceAuthType.d.ts +3 -0
  135. package/api/types/SourceType.d.ts +3 -0
  136. package/api/types/TimeseriesResource.d.ts +3 -0
  137. package/api/types/TraceElements.d.ts +3 -0
  138. package/api/types/UtcTimestampWithTimezoneOffset.d.ts +7 -0
  139. package/api/types/UtcTimestampWithTimezoneOffset.js +5 -0
  140. package/api/types/VitalSleepStage.d.ts +3 -0
  141. package/api/types/Vitamins.d.ts +3 -0
  142. package/api/types/WorkoutColumnExpr.d.ts +1 -0
  143. package/api/types/WorkoutColumnExprWorkout.d.ts +3 -0
  144. package/api/types/index.d.ts +8 -0
  145. package/api/types/index.js +8 -0
  146. package/dist/api/resources/activity/client/Client.js +2 -2
  147. package/dist/api/resources/aggregate/client/Client.js +2 -2
  148. package/dist/api/resources/body/client/Client.js +2 -2
  149. package/dist/api/resources/devices/client/Client.js +1 -1
  150. package/dist/api/resources/electrocardiogram/client/Client.js +1 -1
  151. package/dist/api/resources/insurance/client/Client.js +3 -3
  152. package/dist/api/resources/introspect/client/Client.js +2 -2
  153. package/dist/api/resources/labTests/client/Client.d.ts +10 -0
  154. package/dist/api/resources/labTests/client/Client.js +141 -37
  155. package/dist/api/resources/link/client/Client.js +19 -19
  156. package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +23 -0
  157. package/dist/api/resources/meal/client/Client.js +1 -1
  158. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  159. package/dist/api/resources/order/client/Client.js +1 -1
  160. package/dist/api/resources/profile/client/Client.js +2 -2
  161. package/dist/api/resources/providers/client/Client.js +1 -1
  162. package/dist/api/resources/sleep/client/Client.js +4 -4
  163. package/dist/api/resources/sleepCycle/client/Client.js +1 -1
  164. package/dist/api/resources/team/client/Client.js +7 -7
  165. package/dist/api/resources/testkit/client/Client.js +2 -2
  166. package/dist/api/resources/user/client/Client.js +16 -16
  167. package/dist/api/resources/vitals/client/Client.js +75 -75
  168. package/dist/api/resources/workouts/client/Client.js +3 -3
  169. package/dist/api/types/ActivityColumnExpr.d.ts +1 -0
  170. package/dist/api/types/ActivityColumnExprActivity.d.ts +3 -0
  171. package/dist/api/types/AggregateExpr.d.ts +1 -0
  172. package/dist/api/types/AggregateExprFunc.d.ts +3 -0
  173. package/dist/api/types/AllowedRadius.d.ts +3 -0
  174. package/dist/api/types/AppointmentEventStatus.d.ts +3 -0
  175. package/dist/api/types/AppointmentProvider.d.ts +3 -0
  176. package/dist/api/types/AppointmentPscLabs.d.ts +3 -0
  177. package/dist/api/types/AppointmentServiceType.d.ts +3 -0
  178. package/dist/api/types/AppointmentStatus.d.ts +3 -0
  179. package/dist/api/types/AppointmentType.d.ts +3 -0
  180. package/dist/api/types/AttemptStatus.d.ts +3 -0
  181. package/dist/api/types/AuthType.d.ts +3 -0
  182. package/dist/api/types/Availability.d.ts +3 -0
  183. package/dist/api/types/Billing.d.ts +3 -0
  184. package/dist/api/types/BiomarkerResult.d.ts +2 -0
  185. package/dist/api/types/BodyColumnExpr.d.ts +1 -0
  186. package/dist/api/types/BodyColumnExprBody.d.ts +3 -0
  187. package/dist/api/types/BulkOp.d.ts +2 -0
  188. package/dist/api/types/BulkOpStatus.d.ts +3 -0
  189. package/dist/api/types/BulkOpType.d.ts +3 -0
  190. package/dist/api/types/CervicalMucusEntry.d.ts +1 -0
  191. package/dist/api/types/CervicalMucusEntryQuality.d.ts +3 -0
  192. package/dist/api/types/ClientFacingConnectionErrorDetails.d.ts +1 -0
  193. package/dist/api/types/ClientFacingConnectionErrorDetailsErrorType.d.ts +3 -0
  194. package/dist/api/types/ClientFacingElectrocardiogram.d.ts +1 -0
  195. package/dist/api/types/ClientFacingElectrocardiogramSourceType.d.ts +3 -0
  196. package/dist/api/types/ClientFacingHeartRateAlertSample.d.ts +1 -0
  197. package/dist/api/types/ClientFacingHeartRateAlertSampleType.d.ts +3 -0
  198. package/dist/api/types/ClientFacingInsulinInjectionSample.d.ts +1 -1
  199. package/dist/api/types/ClientFacingInsulinInjectionSampleType.d.ts +1 -1
  200. package/dist/api/types/ClientFacingLabs.d.ts +3 -0
  201. package/dist/api/types/ClientFacingMenstrualCycle.d.ts +1 -0
  202. package/dist/api/types/ClientFacingMenstrualCycleSourceType.d.ts +3 -0
  203. package/dist/api/types/ClientFacingResource.d.ts +3 -0
  204. package/dist/api/types/ClientFacingSleepCycle.d.ts +1 -0
  205. package/dist/api/types/ClientFacingSleepCycleSourceType.d.ts +3 -0
  206. package/dist/api/types/ClientFacingStandHourSample.d.ts +1 -0
  207. package/dist/api/types/ClientFacingStandHourSampleType.d.ts +3 -0
  208. package/dist/api/types/ClinicalInformation.d.ts +9 -0
  209. package/dist/api/types/ClinicalInformation.js +5 -0
  210. package/dist/api/types/ConsentType.d.ts +3 -0
  211. package/dist/api/types/ContraceptiveEntry.d.ts +1 -0
  212. package/dist/api/types/ContraceptiveEntryType.d.ts +3 -0
  213. package/dist/api/types/DelegatedFlowType.d.ts +3 -0
  214. package/dist/api/types/DemoProviders.d.ts +3 -0
  215. package/dist/api/types/DetectedDeviationEntry.d.ts +1 -0
  216. package/dist/api/types/DetectedDeviationEntryDeviation.d.ts +3 -0
  217. package/dist/api/types/EmailProviders.d.ts +3 -0
  218. package/dist/api/types/Ethnicity.d.ts +3 -0
  219. package/dist/api/types/EventDestinationPreferences.d.ts +1 -0
  220. package/dist/api/types/EventDestinationPreferencesPreferred.d.ts +3 -0
  221. package/dist/api/types/FailureType.d.ts +3 -0
  222. package/dist/api/types/Gender.d.ts +3 -0
  223. package/dist/api/types/GenderIdentity.d.ts +3 -0
  224. package/dist/api/types/HistoricalPullStatus.d.ts +3 -0
  225. package/dist/api/types/HomePregnancyTestEntry.d.ts +1 -0
  226. package/dist/api/types/HomePregnancyTestEntryTestResult.d.ts +3 -0
  227. package/dist/api/types/HomeProgesteroneTestEntry.d.ts +1 -0
  228. package/dist/api/types/HomeProgesteroneTestEntryTestResult.d.ts +3 -0
  229. package/dist/api/types/IndexColumnExpr.d.ts +1 -0
  230. package/dist/api/types/IndexColumnExprIndex.d.ts +3 -0
  231. package/dist/api/types/LabResultsRaw.d.ts +1 -0
  232. package/dist/api/types/LabTestCollectionMethod.d.ts +1 -1
  233. package/dist/api/types/LabTestGenerationMethodFilter.d.ts +3 -0
  234. package/dist/api/types/LabTestSampleType.d.ts +1 -1
  235. package/dist/api/types/LabTestStatus.d.ts +3 -0
  236. package/dist/api/types/Labs.d.ts +3 -0
  237. package/dist/api/types/ManualProviders.d.ts +3 -0
  238. package/dist/api/types/MarkerType.d.ts +3 -0
  239. package/dist/api/types/MenstrualFlowEntry.d.ts +1 -0
  240. package/dist/api/types/MenstrualFlowEntryFlow.d.ts +3 -0
  241. package/dist/api/types/Minerals.d.ts +3 -0
  242. package/dist/api/types/OAuthProviders.d.ts +3 -0
  243. package/dist/api/types/OrderStatus.d.ts +3 -0
  244. package/dist/api/types/OrderTopLevelStatus.d.ts +3 -0
  245. package/dist/api/types/OvulationTestEntry.d.ts +1 -0
  246. package/dist/api/types/OvulationTestEntryTestResult.d.ts +3 -0
  247. package/dist/api/types/PasswordProviders.d.ts +3 -0
  248. package/dist/api/types/PayorCodeExternalProvider.d.ts +3 -0
  249. package/dist/api/types/PerformingLaboratory.d.ts +10 -0
  250. package/dist/api/types/PerformingLaboratory.js +5 -0
  251. package/dist/api/types/Period.d.ts +1 -0
  252. package/dist/api/types/PeriodUnit.d.ts +3 -0
  253. package/dist/api/types/ProviderConnectionError.d.ts +3 -1
  254. package/dist/api/types/ProviderConnectionErrorErrorType.d.ts +16 -0
  255. package/dist/api/types/ProviderConnectionErrorErrorType.js +15 -0
  256. package/dist/api/types/ProviderLinkResponse.d.ts +1 -0
  257. package/dist/api/types/ProviderLinkResponseState.d.ts +3 -0
  258. package/dist/api/types/ProviderMfaRequest.d.ts +1 -0
  259. package/dist/api/types/ProviderMfaRequestMethod.d.ts +3 -0
  260. package/dist/api/types/Providers.d.ts +3 -0
  261. package/dist/api/types/QuestionType.d.ts +3 -0
  262. package/dist/api/types/Race.d.ts +3 -0
  263. package/dist/api/types/Region.d.ts +3 -0
  264. package/dist/api/types/ResponsibleRelationship.d.ts +3 -0
  265. package/dist/api/types/ResultType.d.ts +3 -0
  266. package/dist/api/types/SampleData.d.ts +13 -0
  267. package/dist/api/types/SampleData.js +5 -0
  268. package/dist/api/types/SampleDataDateCollected.d.ts +5 -0
  269. package/dist/api/types/SampleDataDateCollected.js +5 -0
  270. package/dist/api/types/SampleDataDateReceived.d.ts +5 -0
  271. package/dist/api/types/SampleDataDateReceived.js +5 -0
  272. package/dist/api/types/SampleDataDateReported.d.ts +5 -0
  273. package/dist/api/types/SampleDataDateReported.js +5 -0
  274. package/dist/api/types/SexualOrientation.d.ts +3 -0
  275. package/dist/api/types/SleepColumnExpr.d.ts +1 -0
  276. package/dist/api/types/SleepColumnExprSleep.d.ts +3 -0
  277. package/dist/api/types/SleepSummaryState.d.ts +3 -0
  278. package/dist/api/types/SleepType.d.ts +3 -0
  279. package/dist/api/types/SourceAuthType.d.ts +3 -0
  280. package/dist/api/types/SourceType.d.ts +3 -0
  281. package/dist/api/types/TimeseriesResource.d.ts +3 -0
  282. package/dist/api/types/TraceElements.d.ts +3 -0
  283. package/dist/api/types/UtcTimestampWithTimezoneOffset.d.ts +7 -0
  284. package/dist/api/types/UtcTimestampWithTimezoneOffset.js +5 -0
  285. package/dist/api/types/VitalSleepStage.d.ts +3 -0
  286. package/dist/api/types/Vitamins.d.ts +3 -0
  287. package/dist/api/types/WorkoutColumnExpr.d.ts +1 -0
  288. package/dist/api/types/WorkoutColumnExprWorkout.d.ts +3 -0
  289. package/dist/api/types/index.d.ts +8 -0
  290. package/dist/api/types/index.js +8 -0
  291. package/dist/serialization/types/BiomarkerResult.d.ts +2 -0
  292. package/dist/serialization/types/BiomarkerResult.js +2 -0
  293. package/dist/serialization/types/ClinicalInformation.d.ts +15 -0
  294. package/dist/serialization/types/ClinicalInformation.js +36 -0
  295. package/dist/serialization/types/LabResultsRaw.d.ts +2 -0
  296. package/dist/serialization/types/LabResultsRaw.js +2 -0
  297. package/dist/serialization/types/PerformingLaboratory.d.ts +16 -0
  298. package/dist/serialization/types/PerformingLaboratory.js +37 -0
  299. package/dist/serialization/types/ProviderConnectionError.d.ts +2 -1
  300. package/dist/serialization/types/ProviderConnectionError.js +2 -1
  301. package/dist/serialization/types/ProviderConnectionErrorErrorType.d.ts +10 -0
  302. package/dist/serialization/types/ProviderConnectionErrorErrorType.js +39 -0
  303. package/dist/serialization/types/SampleData.d.ts +23 -0
  304. package/dist/serialization/types/SampleData.js +44 -0
  305. package/dist/serialization/types/SampleDataDateCollected.d.ts +11 -0
  306. package/dist/serialization/types/SampleDataDateCollected.js +32 -0
  307. package/dist/serialization/types/SampleDataDateReceived.d.ts +11 -0
  308. package/dist/serialization/types/SampleDataDateReceived.js +32 -0
  309. package/dist/serialization/types/SampleDataDateReported.d.ts +11 -0
  310. package/dist/serialization/types/SampleDataDateReported.js +32 -0
  311. package/dist/serialization/types/UtcTimestampWithTimezoneOffset.d.ts +13 -0
  312. package/dist/serialization/types/UtcTimestampWithTimezoneOffset.js +34 -0
  313. package/dist/serialization/types/index.d.ts +8 -0
  314. package/dist/serialization/types/index.js +8 -0
  315. package/dist/version.d.ts +1 -1
  316. package/dist/version.js +1 -1
  317. package/package.json +1 -1
  318. package/serialization/types/BiomarkerResult.d.ts +2 -0
  319. package/serialization/types/BiomarkerResult.js +2 -0
  320. package/serialization/types/ClinicalInformation.d.ts +15 -0
  321. package/serialization/types/ClinicalInformation.js +36 -0
  322. package/serialization/types/LabResultsRaw.d.ts +2 -0
  323. package/serialization/types/LabResultsRaw.js +2 -0
  324. package/serialization/types/PerformingLaboratory.d.ts +16 -0
  325. package/serialization/types/PerformingLaboratory.js +37 -0
  326. package/serialization/types/ProviderConnectionError.d.ts +2 -1
  327. package/serialization/types/ProviderConnectionError.js +2 -1
  328. package/serialization/types/ProviderConnectionErrorErrorType.d.ts +10 -0
  329. package/serialization/types/ProviderConnectionErrorErrorType.js +39 -0
  330. package/serialization/types/SampleData.d.ts +23 -0
  331. package/serialization/types/SampleData.js +44 -0
  332. package/serialization/types/SampleDataDateCollected.d.ts +11 -0
  333. package/serialization/types/SampleDataDateCollected.js +32 -0
  334. package/serialization/types/SampleDataDateReceived.d.ts +11 -0
  335. package/serialization/types/SampleDataDateReceived.js +32 -0
  336. package/serialization/types/SampleDataDateReported.d.ts +11 -0
  337. package/serialization/types/SampleDataDateReported.js +32 -0
  338. package/serialization/types/UtcTimestampWithTimezoneOffset.d.ts +13 -0
  339. package/serialization/types/UtcTimestampWithTimezoneOffset.js +34 -0
  340. package/serialization/types/index.d.ts +8 -0
  341. package/serialization/types/index.js +8 -0
  342. package/version.d.ts +1 -1
  343. package/version.js +1 -1
@@ -105,7 +105,7 @@ class LabTests {
105
105
  const _response = yield core.fetcher({
106
106
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
107
107
  method: "GET",
108
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
108
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
109
109
  contentType: "application/json",
110
110
  queryParameters: _queryParams,
111
111
  requestType: "json",
@@ -171,7 +171,7 @@ class LabTests {
171
171
  const _response = yield core.fetcher({
172
172
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
173
173
  method: "POST",
174
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
174
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
175
175
  contentType: "application/json",
176
176
  requestType: "json",
177
177
  body: serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -235,7 +235,7 @@ class LabTests {
235
235
  const _response = yield core.fetcher({
236
236
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
237
237
  method: "GET",
238
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
238
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
239
239
  contentType: "application/json",
240
240
  requestType: "json",
241
241
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -297,7 +297,7 @@ class LabTests {
297
297
  const _response = yield core.fetcher({
298
298
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
299
299
  method: "PATCH",
300
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
300
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
301
301
  contentType: "application/json",
302
302
  requestType: "json",
303
303
  body: serializers.UpdateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -383,7 +383,7 @@ class LabTests {
383
383
  const _response = yield core.fetcher({
384
384
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/markers"),
385
385
  method: "GET",
386
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
386
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
387
387
  contentType: "application/json",
388
388
  queryParameters: _queryParams,
389
389
  requestType: "json",
@@ -455,7 +455,7 @@ class LabTests {
455
455
  const _response = yield core.fetcher({
456
456
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/list_order_set_markers"),
457
457
  method: "POST",
458
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
458
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
459
459
  contentType: "application/json",
460
460
  queryParameters: _queryParams,
461
461
  requestType: "json",
@@ -527,7 +527,7 @@ class LabTests {
527
527
  const _response = yield core.fetcher({
528
528
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}/markers`),
529
529
  method: "GET",
530
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
530
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
531
531
  contentType: "application/json",
532
532
  queryParameters: _queryParams,
533
533
  requestType: "json",
@@ -592,7 +592,7 @@ class LabTests {
592
592
  const _response = yield core.fetcher({
593
593
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labId)}/markers/${encodeURIComponent(providerId)}`),
594
594
  method: "GET",
595
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
595
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
596
596
  contentType: "application/json",
597
597
  requestType: "json",
598
598
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -652,7 +652,7 @@ class LabTests {
652
652
  const _response = yield core.fetcher({
653
653
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/labs"),
654
654
  method: "GET",
655
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
655
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
656
656
  contentType: "application/json",
657
657
  requestType: "json",
658
658
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -750,7 +750,7 @@ class LabTests {
750
750
  const _response = yield core.fetcher({
751
751
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_test"),
752
752
  method: "GET",
753
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
753
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
754
754
  contentType: "application/json",
755
755
  queryParameters: _queryParams,
756
756
  requestType: "json",
@@ -797,6 +797,58 @@ class LabTests {
797
797
  }
798
798
  });
799
799
  }
800
+ /**
801
+ * GET collection instructions for a lab test
802
+ * @throws {@link Vital.UnprocessableEntityError}
803
+ */
804
+ getLabTestCollectionInstructionPdf(labTestId, requestOptions) {
805
+ var _a;
806
+ return __awaiter(this, void 0, void 0, function* () {
807
+ const _response = yield core.fetcher({
808
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_test/${encodeURIComponent(labTestId)}/collection_instruction_pdf`),
809
+ method: "GET",
810
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
811
+ contentType: "application/json",
812
+ requestType: "json",
813
+ responseType: "streaming",
814
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
815
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
816
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
817
+ });
818
+ if (_response.ok) {
819
+ return _response.body;
820
+ }
821
+ if (_response.error.reason === "status-code") {
822
+ switch (_response.error.statusCode) {
823
+ case 422:
824
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
825
+ unrecognizedObjectKeys: "passthrough",
826
+ allowUnrecognizedUnionMembers: true,
827
+ allowUnrecognizedEnumValues: true,
828
+ breadcrumbsPrefix: ["response"],
829
+ }));
830
+ default:
831
+ throw new errors.VitalError({
832
+ statusCode: _response.error.statusCode,
833
+ body: _response.error.body,
834
+ });
835
+ }
836
+ }
837
+ switch (_response.error.reason) {
838
+ case "non-json":
839
+ throw new errors.VitalError({
840
+ statusCode: _response.error.statusCode,
841
+ body: _response.error.rawBody,
842
+ });
843
+ case "timeout":
844
+ throw new errors.VitalTimeoutError();
845
+ case "unknown":
846
+ throw new errors.VitalError({
847
+ message: _response.error.errorMessage,
848
+ });
849
+ }
850
+ });
851
+ }
800
852
  /**
801
853
  * Return the available time slots to book an appointment with a phlebotomist
802
854
  * for the given address and order.
@@ -827,7 +879,7 @@ class LabTests {
827
879
  const _response = yield core.fetcher({
828
880
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/availability"),
829
881
  method: "POST",
830
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
882
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
831
883
  contentType: "application/json",
832
884
  queryParameters: _queryParams,
833
885
  requestType: "json",
@@ -895,7 +947,7 @@ class LabTests {
895
947
  const _response = yield core.fetcher({
896
948
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/book`),
897
949
  method: "POST",
898
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
950
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
899
951
  contentType: "application/json",
900
952
  requestType: "json",
901
953
  body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -968,7 +1020,7 @@ class LabTests {
968
1020
  const _response = yield core.fetcher({
969
1021
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/request`),
970
1022
  method: "POST",
971
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1023
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
972
1024
  contentType: "application/json",
973
1025
  requestType: "json",
974
1026
  body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1035,7 +1087,7 @@ class LabTests {
1035
1087
  const _response = yield core.fetcher({
1036
1088
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/reschedule`),
1037
1089
  method: "PATCH",
1038
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1090
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1039
1091
  contentType: "application/json",
1040
1092
  requestType: "json",
1041
1093
  body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1102,7 +1154,7 @@ class LabTests {
1102
1154
  const _response = yield core.fetcher({
1103
1155
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/cancel`),
1104
1156
  method: "PATCH",
1105
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1106
1158
  contentType: "application/json",
1107
1159
  requestType: "json",
1108
1160
  body: serializers.ApiApiV1EndpointsVitalApiLabTestingOrdersHelpersAppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1163,7 +1215,7 @@ class LabTests {
1163
1215
  const _response = yield core.fetcher({
1164
1216
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/cancellation-reasons"),
1165
1217
  method: "GET",
1166
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1218
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1167
1219
  contentType: "application/json",
1168
1220
  requestType: "json",
1169
1221
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1216,7 +1268,7 @@ class LabTests {
1216
1268
  const _response = yield core.fetcher({
1217
1269
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment`),
1218
1270
  method: "GET",
1219
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1271
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1220
1272
  contentType: "application/json",
1221
1273
  requestType: "json",
1222
1274
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1294,7 +1346,7 @@ class LabTests {
1294
1346
  const _response = yield core.fetcher({
1295
1347
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/area/info"),
1296
1348
  method: "GET",
1297
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1349
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1298
1350
  contentType: "application/json",
1299
1351
  queryParameters: _queryParams,
1300
1352
  requestType: "json",
@@ -1366,7 +1418,7 @@ class LabTests {
1366
1418
  const _response = yield core.fetcher({
1367
1419
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/info"),
1368
1420
  method: "GET",
1369
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1421
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1370
1422
  contentType: "application/json",
1371
1423
  queryParameters: _queryParams,
1372
1424
  requestType: "json",
@@ -1434,7 +1486,7 @@ class LabTests {
1434
1486
  const _response = yield core.fetcher({
1435
1487
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/info`),
1436
1488
  method: "GET",
1437
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1489
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1438
1490
  contentType: "application/json",
1439
1491
  queryParameters: _queryParams,
1440
1492
  requestType: "json",
@@ -1491,7 +1543,7 @@ class LabTests {
1491
1543
  const _response = yield core.fetcher({
1492
1544
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/pdf`),
1493
1545
  method: "GET",
1494
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1546
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1495
1547
  contentType: "application/json",
1496
1548
  requestType: "json",
1497
1549
  responseType: "streaming",
@@ -1551,7 +1603,7 @@ class LabTests {
1551
1603
  const _response = yield core.fetcher({
1552
1604
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/metadata`),
1553
1605
  method: "GET",
1554
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1606
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1555
1607
  contentType: "application/json",
1556
1608
  requestType: "json",
1557
1609
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1614,7 +1666,7 @@ class LabTests {
1614
1666
  const _response = yield core.fetcher({
1615
1667
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result`),
1616
1668
  method: "GET",
1617
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1669
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1618
1670
  contentType: "application/json",
1619
1671
  requestType: "json",
1620
1672
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1676,7 +1728,7 @@ class LabTests {
1676
1728
  const _response = yield core.fetcher({
1677
1729
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/labels/pdf`),
1678
1730
  method: "GET",
1679
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1731
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1680
1732
  contentType: "application/json",
1681
1733
  queryParameters: _queryParams,
1682
1734
  requestType: "json",
@@ -1756,7 +1808,7 @@ class LabTests {
1756
1808
  const _response = yield core.fetcher({
1757
1809
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/appointment/availability"),
1758
1810
  method: "POST",
1759
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1811
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1760
1812
  contentType: "application/json",
1761
1813
  queryParameters: _queryParams,
1762
1814
  requestType: "json",
@@ -1821,7 +1873,7 @@ class LabTests {
1821
1873
  const _response = yield core.fetcher({
1822
1874
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/book`),
1823
1875
  method: "POST",
1824
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1876
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1825
1877
  contentType: "application/json",
1826
1878
  requestType: "json",
1827
1879
  body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1886,7 +1938,7 @@ class LabTests {
1886
1938
  const _response = yield core.fetcher({
1887
1939
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/reschedule`),
1888
1940
  method: "PATCH",
1889
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1941
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1890
1942
  contentType: "application/json",
1891
1943
  requestType: "json",
1892
1944
  body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1951,7 +2003,7 @@ class LabTests {
1951
2003
  const _response = yield core.fetcher({
1952
2004
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment/cancel`),
1953
2005
  method: "PATCH",
1954
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2006
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1955
2007
  contentType: "application/json",
1956
2008
  requestType: "json",
1957
2009
  body: serializers.VitalCoreClientsLabTestGetlabsSchemaAppointmentCancelRequest.jsonOrThrow(request, {
@@ -2012,7 +2064,7 @@ class LabTests {
2012
2064
  const _response = yield core.fetcher({
2013
2065
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/appointment/cancellation-reasons"),
2014
2066
  method: "GET",
2015
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2067
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2016
2068
  contentType: "application/json",
2017
2069
  requestType: "json",
2018
2070
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2065,7 +2117,7 @@ class LabTests {
2065
2117
  const _response = yield core.fetcher({
2066
2118
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/appointment`),
2067
2119
  method: "GET",
2068
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2120
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2069
2121
  contentType: "application/json",
2070
2122
  requestType: "json",
2071
2123
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2111,6 +2163,58 @@ class LabTests {
2111
2163
  }
2112
2164
  });
2113
2165
  }
2166
+ /**
2167
+ * GET collection instructions for an order
2168
+ * @throws {@link Vital.UnprocessableEntityError}
2169
+ */
2170
+ getOrderCollectionInstructionPdf(orderId, requestOptions) {
2171
+ var _a;
2172
+ return __awaiter(this, void 0, void 0, function* () {
2173
+ const _response = yield core.fetcher({
2174
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/collection_instruction_pdf`),
2175
+ method: "GET",
2176
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2177
+ contentType: "application/json",
2178
+ requestType: "json",
2179
+ responseType: "streaming",
2180
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
2181
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
2182
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
2183
+ });
2184
+ if (_response.ok) {
2185
+ return _response.body;
2186
+ }
2187
+ if (_response.error.reason === "status-code") {
2188
+ switch (_response.error.statusCode) {
2189
+ case 422:
2190
+ throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
2191
+ unrecognizedObjectKeys: "passthrough",
2192
+ allowUnrecognizedUnionMembers: true,
2193
+ allowUnrecognizedEnumValues: true,
2194
+ breadcrumbsPrefix: ["response"],
2195
+ }));
2196
+ default:
2197
+ throw new errors.VitalError({
2198
+ statusCode: _response.error.statusCode,
2199
+ body: _response.error.body,
2200
+ });
2201
+ }
2202
+ }
2203
+ switch (_response.error.reason) {
2204
+ case "non-json":
2205
+ throw new errors.VitalError({
2206
+ statusCode: _response.error.statusCode,
2207
+ body: _response.error.rawBody,
2208
+ });
2209
+ case "timeout":
2210
+ throw new errors.VitalTimeoutError();
2211
+ case "unknown":
2212
+ throw new errors.VitalError({
2213
+ message: _response.error.errorMessage,
2214
+ });
2215
+ }
2216
+ });
2217
+ }
2114
2218
  /**
2115
2219
  * GET requisition pdf for an order
2116
2220
  * @throws {@link Vital.UnprocessableEntityError}
@@ -2121,7 +2225,7 @@ class LabTests {
2121
2225
  const _response = yield core.fetcher({
2122
2226
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/requisition/pdf`),
2123
2227
  method: "GET",
2124
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2228
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2125
2229
  contentType: "application/json",
2126
2230
  requestType: "json",
2127
2231
  responseType: "streaming",
@@ -2180,7 +2284,7 @@ class LabTests {
2180
2284
  const _response = yield core.fetcher({
2181
2285
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}`),
2182
2286
  method: "GET",
2183
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2287
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2184
2288
  contentType: "application/json",
2185
2289
  requestType: "json",
2186
2290
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2260,7 +2364,7 @@ class LabTests {
2260
2364
  const _response = yield core.fetcher({
2261
2365
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
2262
2366
  method: "POST",
2263
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2367
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2264
2368
  contentType: "application/json",
2265
2369
  requestType: "json",
2266
2370
  body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2344,7 +2448,7 @@ class LabTests {
2344
2448
  const _response = yield core.fetcher({
2345
2449
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/import"),
2346
2450
  method: "POST",
2347
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2451
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2348
2452
  contentType: "application/json",
2349
2453
  requestType: "json",
2350
2454
  body: serializers.ImportOrderBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -2408,7 +2512,7 @@ class LabTests {
2408
2512
  const _response = yield core.fetcher({
2409
2513
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/cancel`),
2410
2514
  method: "POST",
2411
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2515
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2412
2516
  contentType: "application/json",
2413
2517
  requestType: "json",
2414
2518
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -2480,7 +2584,7 @@ class LabTests {
2480
2584
  const _response = yield core.fetcher({
2481
2585
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/test`),
2482
2586
  method: "POST",
2483
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2587
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2484
2588
  contentType: "application/json",
2485
2589
  queryParameters: _queryParams,
2486
2590
  requestType: "json",
@@ -2585,7 +2689,7 @@ class LabTests {
2585
2689
  const _response = yield core.fetcher({
2586
2690
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
2587
2691
  method: "GET",
2588
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.232", "User-Agent": "@tryvital/vital-node/3.1.232", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2692
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.236", "User-Agent": "@tryvital/vital-node/3.1.236", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
2589
2693
  contentType: "application/json",
2590
2694
  queryParameters: _queryParams,
2591
2695
  requestType: "json",