@tryvital/vital-node 3.1.56 → 3.1.58

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 (233) hide show
  1. package/api/index.d.ts +1 -1
  2. package/api/index.js +1 -1
  3. package/api/resources/activity/client/Client.js +2 -2
  4. package/api/resources/body/client/Client.js +2 -2
  5. package/api/resources/devices/client/Client.js +1 -1
  6. package/api/resources/index.d.ts +2 -1
  7. package/api/resources/index.js +3 -2
  8. package/api/resources/insurance/client/Client.js +2 -2
  9. package/api/resources/introspect/client/Client.js +2 -2
  10. package/api/resources/labTests/client/Client.js +43 -28
  11. package/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +15 -0
  12. package/api/resources/labTests/index.d.ts +1 -0
  13. package/api/resources/labTests/index.js +1 -0
  14. package/api/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.d.ts +8 -0
  15. package/api/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.js +10 -0
  16. package/api/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.d.ts +9 -0
  17. package/api/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.js +11 -0
  18. package/api/resources/labTests/types/index.d.ts +2 -0
  19. package/api/resources/labTests/types/index.js +18 -0
  20. package/api/resources/link/client/Client.js +14 -14
  21. package/api/resources/meal/client/Client.js +1 -1
  22. package/api/resources/menstrualCycle/client/Client.js +1 -1
  23. package/api/resources/profile/client/Client.js +2 -2
  24. package/api/resources/providers/client/Client.js +1 -1
  25. package/api/resources/sleep/client/Client.js +4 -4
  26. package/api/resources/team/client/Client.js +7 -7
  27. package/api/resources/testkit/client/Client.js +2 -2
  28. package/api/resources/user/client/Client.js +16 -16
  29. package/api/resources/vitals/client/Client.d.ts +36 -0
  30. package/api/resources/vitals/client/Client.js +348 -52
  31. package/api/resources/vitals/client/requests/VitalsCarbohydratesGroupedRequest.d.ts +31 -0
  32. package/api/resources/vitals/client/requests/VitalsCarbohydratesGroupedRequest.js +5 -0
  33. package/api/resources/vitals/client/requests/VitalsInsulinInjectionGroupedRequest.d.ts +31 -0
  34. package/api/resources/vitals/client/requests/VitalsInsulinInjectionGroupedRequest.js +5 -0
  35. package/api/resources/vitals/client/requests/VitalsNoteGroupedRequest.d.ts +31 -0
  36. package/api/resources/vitals/client/requests/VitalsNoteGroupedRequest.js +5 -0
  37. package/api/resources/vitals/client/requests/VitalsWorkoutDurationGroupedRequest.d.ts +31 -0
  38. package/api/resources/vitals/client/requests/VitalsWorkoutDurationGroupedRequest.js +5 -0
  39. package/api/resources/vitals/client/requests/index.d.ts +4 -0
  40. package/api/resources/workouts/client/Client.js +3 -3
  41. package/api/types/ClientFacingCarbohydratesSample.d.ts +18 -0
  42. package/api/types/ClientFacingCarbohydratesSample.js +5 -0
  43. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +10 -0
  44. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.js +5 -0
  45. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +10 -0
  46. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.js +5 -0
  47. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +10 -0
  48. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.js +5 -0
  49. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +10 -0
  50. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.js +5 -0
  51. package/api/types/ClientFacingInsulinInjectionSample.d.ts +19 -0
  52. package/api/types/ClientFacingInsulinInjectionSample.js +5 -0
  53. package/api/types/ClientFacingInsulinInjectionSampleType.d.ts +11 -0
  54. package/api/types/ClientFacingInsulinInjectionSampleType.js +10 -0
  55. package/api/types/ClientFacingNoteSample.d.ts +20 -0
  56. package/api/types/ClientFacingNoteSample.js +5 -0
  57. package/api/types/ClientFacingNoteSampleTagsItem.d.ts +10 -0
  58. package/api/types/ClientFacingNoteSampleTagsItem.js +12 -0
  59. package/api/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +8 -0
  60. package/api/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.js +5 -0
  61. package/api/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +8 -0
  62. package/api/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.js +5 -0
  63. package/api/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +8 -0
  64. package/api/types/ClientFacingTimeseriesGroupClientFacingNoteSample.js +5 -0
  65. package/api/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +8 -0
  66. package/api/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.js +5 -0
  67. package/api/types/ClientFacingWorkoutDurationSample.d.ts +19 -0
  68. package/api/types/ClientFacingWorkoutDurationSample.js +5 -0
  69. package/api/types/ClientFacingWorkoutDurationSampleIntensity.d.ts +9 -0
  70. package/api/types/ClientFacingWorkoutDurationSampleIntensity.js +11 -0
  71. package/api/types/index.d.ts +15 -0
  72. package/api/types/index.js +15 -0
  73. package/dist/api/index.d.ts +1 -1
  74. package/dist/api/index.js +1 -1
  75. package/dist/api/resources/activity/client/Client.js +2 -2
  76. package/dist/api/resources/body/client/Client.js +2 -2
  77. package/dist/api/resources/devices/client/Client.js +1 -1
  78. package/dist/api/resources/index.d.ts +2 -1
  79. package/dist/api/resources/index.js +3 -2
  80. package/dist/api/resources/insurance/client/Client.js +2 -2
  81. package/dist/api/resources/introspect/client/Client.js +2 -2
  82. package/dist/api/resources/labTests/client/Client.js +43 -28
  83. package/dist/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +15 -0
  84. package/dist/api/resources/labTests/index.d.ts +1 -0
  85. package/dist/api/resources/labTests/index.js +1 -0
  86. package/dist/api/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.d.ts +8 -0
  87. package/dist/api/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.js +10 -0
  88. package/dist/api/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.d.ts +9 -0
  89. package/dist/api/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.js +11 -0
  90. package/dist/api/resources/labTests/types/index.d.ts +2 -0
  91. package/dist/api/resources/labTests/types/index.js +18 -0
  92. package/dist/api/resources/link/client/Client.js +14 -14
  93. package/dist/api/resources/meal/client/Client.js +1 -1
  94. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  95. package/dist/api/resources/profile/client/Client.js +2 -2
  96. package/dist/api/resources/providers/client/Client.js +1 -1
  97. package/dist/api/resources/sleep/client/Client.js +4 -4
  98. package/dist/api/resources/team/client/Client.js +7 -7
  99. package/dist/api/resources/testkit/client/Client.js +2 -2
  100. package/dist/api/resources/user/client/Client.js +16 -16
  101. package/dist/api/resources/vitals/client/Client.d.ts +36 -0
  102. package/dist/api/resources/vitals/client/Client.js +348 -52
  103. package/dist/api/resources/vitals/client/requests/VitalsCarbohydratesGroupedRequest.d.ts +31 -0
  104. package/dist/api/resources/vitals/client/requests/VitalsCarbohydratesGroupedRequest.js +5 -0
  105. package/dist/api/resources/vitals/client/requests/VitalsInsulinInjectionGroupedRequest.d.ts +31 -0
  106. package/dist/api/resources/vitals/client/requests/VitalsInsulinInjectionGroupedRequest.js +5 -0
  107. package/dist/api/resources/vitals/client/requests/VitalsNoteGroupedRequest.d.ts +31 -0
  108. package/dist/api/resources/vitals/client/requests/VitalsNoteGroupedRequest.js +5 -0
  109. package/dist/api/resources/vitals/client/requests/VitalsWorkoutDurationGroupedRequest.d.ts +31 -0
  110. package/dist/api/resources/vitals/client/requests/VitalsWorkoutDurationGroupedRequest.js +5 -0
  111. package/dist/api/resources/vitals/client/requests/index.d.ts +4 -0
  112. package/dist/api/resources/workouts/client/Client.js +3 -3
  113. package/dist/api/types/ClientFacingCarbohydratesSample.d.ts +18 -0
  114. package/dist/api/types/ClientFacingCarbohydratesSample.js +5 -0
  115. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +10 -0
  116. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.js +5 -0
  117. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +10 -0
  118. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.js +5 -0
  119. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +10 -0
  120. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.js +5 -0
  121. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +10 -0
  122. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.js +5 -0
  123. package/dist/api/types/ClientFacingInsulinInjectionSample.d.ts +19 -0
  124. package/dist/api/types/ClientFacingInsulinInjectionSample.js +5 -0
  125. package/dist/api/types/ClientFacingInsulinInjectionSampleType.d.ts +11 -0
  126. package/dist/api/types/ClientFacingInsulinInjectionSampleType.js +10 -0
  127. package/dist/api/types/ClientFacingNoteSample.d.ts +20 -0
  128. package/dist/api/types/ClientFacingNoteSample.js +5 -0
  129. package/dist/api/types/ClientFacingNoteSampleTagsItem.d.ts +10 -0
  130. package/dist/api/types/ClientFacingNoteSampleTagsItem.js +12 -0
  131. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +8 -0
  132. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.js +5 -0
  133. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +8 -0
  134. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.js +5 -0
  135. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +8 -0
  136. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingNoteSample.js +5 -0
  137. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +8 -0
  138. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.js +5 -0
  139. package/dist/api/types/ClientFacingWorkoutDurationSample.d.ts +19 -0
  140. package/dist/api/types/ClientFacingWorkoutDurationSample.js +5 -0
  141. package/dist/api/types/ClientFacingWorkoutDurationSampleIntensity.d.ts +9 -0
  142. package/dist/api/types/ClientFacingWorkoutDurationSampleIntensity.js +11 -0
  143. package/dist/api/types/index.d.ts +15 -0
  144. package/dist/api/types/index.js +15 -0
  145. package/dist/serialization/index.d.ts +1 -1
  146. package/dist/serialization/index.js +1 -1
  147. package/dist/serialization/resources/index.d.ts +2 -1
  148. package/dist/serialization/resources/index.js +3 -2
  149. package/dist/serialization/resources/labTests/index.d.ts +1 -0
  150. package/dist/serialization/resources/labTests/index.js +1 -0
  151. package/dist/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.d.ts +10 -0
  152. package/dist/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.js +31 -0
  153. package/dist/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.d.ts +10 -0
  154. package/dist/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.js +31 -0
  155. package/dist/serialization/resources/labTests/types/index.d.ts +2 -0
  156. package/dist/serialization/resources/labTests/types/index.js +18 -0
  157. package/dist/serialization/types/ClientFacingCarbohydratesSample.d.ts +19 -0
  158. package/dist/serialization/types/ClientFacingCarbohydratesSample.js +40 -0
  159. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +15 -0
  160. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.js +36 -0
  161. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +15 -0
  162. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.js +36 -0
  163. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +15 -0
  164. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.js +36 -0
  165. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +15 -0
  166. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.js +36 -0
  167. package/dist/serialization/types/ClientFacingInsulinInjectionSample.d.ts +20 -0
  168. package/dist/serialization/types/ClientFacingInsulinInjectionSample.js +41 -0
  169. package/dist/serialization/types/ClientFacingInsulinInjectionSampleType.d.ts +10 -0
  170. package/dist/serialization/types/ClientFacingInsulinInjectionSampleType.js +31 -0
  171. package/dist/serialization/types/ClientFacingNoteSample.d.ts +21 -0
  172. package/dist/serialization/types/ClientFacingNoteSample.js +42 -0
  173. package/dist/serialization/types/ClientFacingNoteSampleTagsItem.d.ts +10 -0
  174. package/dist/serialization/types/ClientFacingNoteSampleTagsItem.js +31 -0
  175. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +15 -0
  176. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.js +36 -0
  177. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +15 -0
  178. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.js +36 -0
  179. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +15 -0
  180. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingNoteSample.js +36 -0
  181. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +15 -0
  182. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.js +36 -0
  183. package/dist/serialization/types/ClientFacingWorkoutDurationSample.d.ts +21 -0
  184. package/dist/serialization/types/ClientFacingWorkoutDurationSample.js +42 -0
  185. package/dist/serialization/types/ClientFacingWorkoutDurationSampleIntensity.d.ts +10 -0
  186. package/dist/serialization/types/ClientFacingWorkoutDurationSampleIntensity.js +31 -0
  187. package/dist/serialization/types/index.d.ts +15 -0
  188. package/dist/serialization/types/index.js +15 -0
  189. package/package.json +1 -1
  190. package/serialization/index.d.ts +1 -1
  191. package/serialization/index.js +1 -1
  192. package/serialization/resources/index.d.ts +2 -1
  193. package/serialization/resources/index.js +3 -2
  194. package/serialization/resources/labTests/index.d.ts +1 -0
  195. package/serialization/resources/labTests/index.js +1 -0
  196. package/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.d.ts +10 -0
  197. package/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.js +31 -0
  198. package/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.d.ts +10 -0
  199. package/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.js +31 -0
  200. package/serialization/resources/labTests/types/index.d.ts +2 -0
  201. package/serialization/resources/labTests/types/index.js +18 -0
  202. package/serialization/types/ClientFacingCarbohydratesSample.d.ts +19 -0
  203. package/serialization/types/ClientFacingCarbohydratesSample.js +40 -0
  204. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +15 -0
  205. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.js +36 -0
  206. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +15 -0
  207. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.js +36 -0
  208. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +15 -0
  209. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.js +36 -0
  210. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +15 -0
  211. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.js +36 -0
  212. package/serialization/types/ClientFacingInsulinInjectionSample.d.ts +20 -0
  213. package/serialization/types/ClientFacingInsulinInjectionSample.js +41 -0
  214. package/serialization/types/ClientFacingInsulinInjectionSampleType.d.ts +10 -0
  215. package/serialization/types/ClientFacingInsulinInjectionSampleType.js +31 -0
  216. package/serialization/types/ClientFacingNoteSample.d.ts +21 -0
  217. package/serialization/types/ClientFacingNoteSample.js +42 -0
  218. package/serialization/types/ClientFacingNoteSampleTagsItem.d.ts +10 -0
  219. package/serialization/types/ClientFacingNoteSampleTagsItem.js +31 -0
  220. package/serialization/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +15 -0
  221. package/serialization/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.js +36 -0
  222. package/serialization/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +15 -0
  223. package/serialization/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.js +36 -0
  224. package/serialization/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +15 -0
  225. package/serialization/types/ClientFacingTimeseriesGroupClientFacingNoteSample.js +36 -0
  226. package/serialization/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +15 -0
  227. package/serialization/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.js +36 -0
  228. package/serialization/types/ClientFacingWorkoutDurationSample.d.ts +21 -0
  229. package/serialization/types/ClientFacingWorkoutDurationSample.js +42 -0
  230. package/serialization/types/ClientFacingWorkoutDurationSampleIntensity.d.ts +10 -0
  231. package/serialization/types/ClientFacingWorkoutDurationSampleIntensity.js +31 -0
  232. package/serialization/types/index.d.ts +15 -0
  233. package/serialization/types/index.js +15 -0
package/api/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
+ export * from "./resources";
1
2
  export * from "./types";
2
3
  export * from "./errors";
3
- export * from "./resources";
package/api/index.js CHANGED
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./resources"), exports);
17
18
  __exportStar(require("./types"), exports);
18
19
  __exportStar(require("./errors"), exports);
19
- __exportStar(require("./resources"), exports);
@@ -73,7 +73,7 @@ class Activity {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${userId}`),
75
75
  method: "GET",
76
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -142,7 +142,7 @@ class Activity {
142
142
  const _response = yield core.fetcher({
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/activity/${userId}/raw`),
144
144
  method: "GET",
145
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
145
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
146
  contentType: "application/json",
147
147
  queryParameters: _queryParams,
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -73,7 +73,7 @@ class Body {
73
73
  const _response = yield core.fetcher({
74
74
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${userId}`),
75
75
  method: "GET",
76
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
77
77
  contentType: "application/json",
78
78
  queryParameters: _queryParams,
79
79
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -142,7 +142,7 @@ class Body {
142
142
  const _response = yield core.fetcher({
143
143
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${userId}/raw`),
144
144
  method: "GET",
145
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
145
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
146
146
  contentType: "application/json",
147
147
  queryParameters: _queryParams,
148
148
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -67,7 +67,7 @@ class Devices {
67
67
  const _response = yield core.fetcher({
68
68
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${userId}/raw`),
69
69
  method: "GET",
70
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
71
71
  contentType: "application/json",
72
72
  queryParameters: _queryParams,
73
73
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,3 +1,5 @@
1
+ export * as labTests from "./labTests";
2
+ export * from "./labTests/types";
1
3
  export * as link from "./link";
2
4
  export * as profile from "./profile";
3
5
  export * as devices from "./devices";
@@ -12,7 +14,6 @@ export * as user from "./user";
12
14
  export * as team from "./team";
13
15
  export * as providers from "./providers";
14
16
  export * as introspect from "./introspect";
15
- export * as labTests from "./labTests";
16
17
  export * as testkit from "./testkit";
17
18
  export * as insurance from "./insurance";
18
19
  export * from "./link/client/requests";
@@ -26,7 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.insurance = exports.testkit = exports.labTests = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.link = void 0;
29
+ exports.insurance = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.link = exports.labTests = void 0;
30
+ exports.labTests = __importStar(require("./labTests"));
31
+ __exportStar(require("./labTests/types"), exports);
30
32
  exports.link = __importStar(require("./link"));
31
33
  exports.profile = __importStar(require("./profile"));
32
34
  exports.devices = __importStar(require("./devices"));
@@ -41,7 +43,6 @@ exports.user = __importStar(require("./user"));
41
43
  exports.team = __importStar(require("./team"));
42
44
  exports.providers = __importStar(require("./providers"));
43
45
  exports.introspect = __importStar(require("./introspect"));
44
- exports.labTests = __importStar(require("./labTests"));
45
46
  exports.testkit = __importStar(require("./testkit"));
46
47
  exports.insurance = __importStar(require("./insurance"));
47
48
  __exportStar(require("./link/client/requests"), exports);
@@ -63,7 +63,7 @@ class Insurance {
63
63
  const _response = yield core.fetcher({
64
64
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
65
65
  method: "POST",
66
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
66
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
67
  contentType: "application/json",
68
68
  body: yield serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
69
69
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -125,7 +125,7 @@ class Insurance {
125
125
  const _response = yield core.fetcher({
126
126
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
127
127
  method: "GET",
128
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
128
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
129
129
  contentType: "application/json",
130
130
  queryParameters: _queryParams,
131
131
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -78,7 +78,7 @@ class Introspect {
78
78
  const _response = yield core.fetcher({
79
79
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
80
80
  method: "GET",
81
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
81
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
82
82
  contentType: "application/json",
83
83
  queryParameters: _queryParams,
84
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -152,7 +152,7 @@ class Introspect {
152
152
  const _response = yield core.fetcher({
153
153
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
154
154
  method: "GET",
155
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
155
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
156
156
  contentType: "application/json",
157
157
  queryParameters: _queryParams,
158
158
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -61,7 +61,7 @@ class LabTests {
61
61
  const _response = yield core.fetcher({
62
62
  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"),
63
63
  method: "GET",
64
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
64
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
65
65
  contentType: "application/json",
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
67
67
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -111,7 +111,7 @@ class LabTests {
111
111
  const _response = yield core.fetcher({
112
112
  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"),
113
113
  method: "POST",
114
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
114
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
115
115
  contentType: "application/json",
116
116
  body: yield serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
117
117
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -188,7 +188,7 @@ class LabTests {
188
188
  const _response = yield core.fetcher({
189
189
  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"),
190
190
  method: "GET",
191
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
191
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
192
192
  contentType: "application/json",
193
193
  queryParameters: _queryParams,
194
194
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -253,7 +253,7 @@ class LabTests {
253
253
  const _response = yield core.fetcher({
254
254
  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/${labTestId}/markers`),
255
255
  method: "GET",
256
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
256
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
257
257
  contentType: "application/json",
258
258
  queryParameters: _queryParams,
259
259
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -311,7 +311,7 @@ class LabTests {
311
311
  const _response = yield core.fetcher({
312
312
  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/${labId}/markers/${providerId}`),
313
313
  method: "GET",
314
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
314
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
315
315
  contentType: "application/json",
316
316
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
317
317
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -367,7 +367,7 @@ class LabTests {
367
367
  const _response = yield core.fetcher({
368
368
  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"),
369
369
  method: "GET",
370
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
370
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
371
371
  contentType: "application/json",
372
372
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
373
373
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -414,7 +414,7 @@ class LabTests {
414
414
  const _response = yield core.fetcher({
415
415
  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/${labTestId}`),
416
416
  method: "GET",
417
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
417
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
418
418
  contentType: "application/json",
419
419
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
420
420
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -477,7 +477,7 @@ class LabTests {
477
477
  const _response = yield core.fetcher({
478
478
  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"),
479
479
  method: "POST",
480
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
480
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
481
481
  contentType: "application/json",
482
482
  body: yield serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
483
483
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -537,7 +537,7 @@ class LabTests {
537
537
  const _response = yield core.fetcher({
538
538
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/book`),
539
539
  method: "POST",
540
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
540
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
541
541
  contentType: "application/json",
542
542
  body: yield serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
543
543
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -603,7 +603,7 @@ class LabTests {
603
603
  const _response = yield core.fetcher({
604
604
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/request`),
605
605
  method: "POST",
606
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
606
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
607
607
  contentType: "application/json",
608
608
  body: yield serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
609
609
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -663,7 +663,7 @@ class LabTests {
663
663
  const _response = yield core.fetcher({
664
664
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/reschedule`),
665
665
  method: "PATCH",
666
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
666
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
667
667
  contentType: "application/json",
668
668
  body: yield serializers.AppointmentRescheduleRequest.jsonOrThrow(request, {
669
669
  unrecognizedObjectKeys: "strip",
@@ -725,7 +725,7 @@ class LabTests {
725
725
  const _response = yield core.fetcher({
726
726
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/cancel`),
727
727
  method: "PATCH",
728
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
728
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
729
729
  contentType: "application/json",
730
730
  body: yield serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
731
731
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -782,7 +782,7 @@ class LabTests {
782
782
  const _response = yield core.fetcher({
783
783
  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"),
784
784
  method: "GET",
785
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
785
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
786
786
  contentType: "application/json",
787
787
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
788
788
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -829,7 +829,7 @@ class LabTests {
829
829
  const _response = yield core.fetcher({
830
830
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment`),
831
831
  method: "GET",
832
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
832
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
833
833
  contentType: "application/json",
834
834
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
835
835
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -902,7 +902,7 @@ class LabTests {
902
902
  const _response = yield core.fetcher({
903
903
  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"),
904
904
  method: "GET",
905
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
905
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
906
906
  contentType: "application/json",
907
907
  queryParameters: _queryParams,
908
908
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -969,7 +969,7 @@ class LabTests {
969
969
  const _response = yield core.fetcher({
970
970
  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"),
971
971
  method: "GET",
972
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
972
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
973
973
  contentType: "application/json",
974
974
  queryParameters: _queryParams,
975
975
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1031,7 +1031,7 @@ class LabTests {
1031
1031
  const _response = yield core.fetcher({
1032
1032
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/psc/info`),
1033
1033
  method: "GET",
1034
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1034
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1035
1035
  contentType: "application/json",
1036
1036
  queryParameters: _queryParams,
1037
1037
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1086,7 +1086,7 @@ class LabTests {
1086
1086
  const _response = yield core.fetcher({
1087
1087
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/pdf`),
1088
1088
  method: "GET",
1089
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1089
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1090
1090
  contentType: "application/json",
1091
1091
  responseType: "streaming",
1092
1092
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1140,7 +1140,7 @@ class LabTests {
1140
1140
  const _response = yield core.fetcher({
1141
1141
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/metadata`),
1142
1142
  method: "GET",
1143
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1143
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1144
1144
  contentType: "application/json",
1145
1145
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1146
1146
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1197,7 +1197,7 @@ class LabTests {
1197
1197
  const _response = yield core.fetcher({
1198
1198
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result`),
1199
1199
  method: "GET",
1200
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1200
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1201
1201
  contentType: "application/json",
1202
1202
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1203
1203
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1257,7 +1257,7 @@ class LabTests {
1257
1257
  const _response = yield core.fetcher({
1258
1258
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/labels/pdf`),
1259
1259
  method: "GET",
1260
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1260
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1261
1261
  contentType: "application/json",
1262
1262
  queryParameters: _queryParams,
1263
1263
  responseType: "streaming",
@@ -1308,7 +1308,7 @@ class LabTests {
1308
1308
  const _response = yield core.fetcher({
1309
1309
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/requisition/pdf`),
1310
1310
  method: "GET",
1311
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1311
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1312
1312
  contentType: "application/json",
1313
1313
  responseType: "streaming",
1314
1314
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1358,7 +1358,7 @@ class LabTests {
1358
1358
  const _response = yield core.fetcher({
1359
1359
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}`),
1360
1360
  method: "GET",
1361
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1361
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1362
1362
  contentType: "application/json",
1363
1363
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1364
1364
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1412,7 +1412,7 @@ class LabTests {
1412
1412
  const _response = yield core.fetcher({
1413
1413
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
1414
1414
  method: "POST",
1415
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1415
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1416
1416
  contentType: "application/json",
1417
1417
  body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
1418
1418
  unrecognizedObjectKeys: "strip",
@@ -1469,7 +1469,7 @@ class LabTests {
1469
1469
  const _response = yield core.fetcher({
1470
1470
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/cancel`),
1471
1471
  method: "POST",
1472
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1472
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1473
1473
  contentType: "application/json",
1474
1474
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1475
1475
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1534,7 +1534,7 @@ class LabTests {
1534
1534
  const _response = yield core.fetcher({
1535
1535
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/test`),
1536
1536
  method: "POST",
1537
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1537
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1538
1538
  contentType: "application/json",
1539
1539
  queryParameters: _queryParams,
1540
1540
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1584,14 +1584,29 @@ class LabTests {
1584
1584
  getOrders(request = {}, requestOptions) {
1585
1585
  var _a;
1586
1586
  return __awaiter(this, void 0, void 0, function* () {
1587
- const { startDate, endDate, userId, patientName, shippingRecipientName, orderIds, page, size } = request;
1587
+ const { searchInput, startDate, endDate, updatedStartDate, updatedEndDate, orderKey, orderDirection, userId, patientName, shippingRecipientName, orderIds, page, size, } = request;
1588
1588
  const _queryParams = {};
1589
+ if (searchInput != null) {
1590
+ _queryParams["search_input"] = searchInput;
1591
+ }
1589
1592
  if (startDate != null) {
1590
1593
  _queryParams["start_date"] = startDate.toISOString();
1591
1594
  }
1592
1595
  if (endDate != null) {
1593
1596
  _queryParams["end_date"] = endDate.toISOString();
1594
1597
  }
1598
+ if (updatedStartDate != null) {
1599
+ _queryParams["updated_start_date"] = updatedStartDate.toISOString();
1600
+ }
1601
+ if (updatedEndDate != null) {
1602
+ _queryParams["updated_end_date"] = updatedEndDate.toISOString();
1603
+ }
1604
+ if (orderKey != null) {
1605
+ _queryParams["order_key"] = orderKey;
1606
+ }
1607
+ if (orderDirection != null) {
1608
+ _queryParams["order_direction"] = orderDirection;
1609
+ }
1595
1610
  if (userId != null) {
1596
1611
  _queryParams["user_id"] = userId;
1597
1612
  }
@@ -1618,7 +1633,7 @@ class LabTests {
1618
1633
  const _response = yield core.fetcher({
1619
1634
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
1620
1635
  method: "GET",
1621
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.56", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1636
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.58", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1622
1637
  contentType: "application/json",
1623
1638
  queryParameters: _queryParams,
1624
1639
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1,11 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Vital from "../../../..";
4
5
  /**
5
6
  * @example
6
7
  * {}
7
8
  */
8
9
  export interface LabTestsGetOrdersRequest {
10
+ /**
11
+ * Search by order id, user id, patient name, shipping dob, or shipping recipient name.
12
+ */
13
+ searchInput?: string;
9
14
  /**
10
15
  * Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
11
16
  */
@@ -14,6 +19,16 @@ export interface LabTestsGetOrdersRequest {
14
19
  * Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59
15
20
  */
16
21
  endDate?: Date;
22
+ /**
23
+ * Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
24
+ */
25
+ updatedStartDate?: Date;
26
+ /**
27
+ * Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
28
+ */
29
+ updatedEndDate?: Date;
30
+ orderKey?: Vital.LabTestsGetOrdersRequestOrderKey;
31
+ orderDirection?: Vital.LabTestsGetOrdersRequestOrderDirection;
17
32
  /**
18
33
  * Filter by user ID.
19
34
  */
@@ -1 +1,2 @@
1
+ export * from "./types";
1
2
  export * from "./client";
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
17
18
  __exportStar(require("./client"), exports);
@@ -0,0 +1,8 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type LabTestsGetOrdersRequestOrderDirection = "asc" | "desc";
5
+ export declare const LabTestsGetOrdersRequestOrderDirection: {
6
+ readonly Asc: "asc";
7
+ readonly Desc: "desc";
8
+ };
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LabTestsGetOrdersRequestOrderDirection = void 0;
7
+ exports.LabTestsGetOrdersRequestOrderDirection = {
8
+ Asc: "asc",
9
+ Desc: "desc",
10
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type LabTestsGetOrdersRequestOrderKey = "created_at" | "patient_name" | "last_status";
5
+ export declare const LabTestsGetOrdersRequestOrderKey: {
6
+ readonly CreatedAt: "created_at";
7
+ readonly PatientName: "patient_name";
8
+ readonly LastStatus: "last_status";
9
+ };
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LabTestsGetOrdersRequestOrderKey = void 0;
7
+ exports.LabTestsGetOrdersRequestOrderKey = {
8
+ CreatedAt: "created_at",
9
+ PatientName: "patient_name",
10
+ LastStatus: "last_status",
11
+ };
@@ -0,0 +1,2 @@
1
+ export * from "./LabTestsGetOrdersRequestOrderKey";
2
+ export * from "./LabTestsGetOrdersRequestOrderDirection";
@@ -0,0 +1,18 @@
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./LabTestsGetOrdersRequestOrderKey"), exports);
18
+ __exportStar(require("./LabTestsGetOrdersRequestOrderDirection"), exports);