@tryvital/vital-node 3.1.26 → 3.1.28

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 (173) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/body/client/Client.js +2 -2
  3. package/api/resources/devices/client/Client.js +1 -1
  4. package/api/resources/insurance/client/Client.js +2 -2
  5. package/api/resources/introspect/client/Client.js +2 -2
  6. package/api/resources/labTests/client/Client.d.ts +18 -0
  7. package/api/resources/labTests/client/Client.js +150 -26
  8. package/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +4 -0
  9. package/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +20 -0
  10. package/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.js +5 -0
  11. package/api/resources/labTests/client/requests/index.d.ts +1 -0
  12. package/api/resources/link/client/Client.js +14 -14
  13. package/api/resources/meal/client/Client.js +1 -1
  14. package/api/resources/profile/client/Client.js +2 -2
  15. package/api/resources/providers/client/Client.js +1 -1
  16. package/api/resources/sleep/client/Client.js +4 -4
  17. package/api/resources/team/client/Client.js +7 -7
  18. package/api/resources/testkit/client/Client.js +2 -2
  19. package/api/resources/user/client/Client.js +12 -12
  20. package/api/resources/vitals/client/Client.d.ts +18 -0
  21. package/api/resources/vitals/client/Client.js +192 -50
  22. package/api/resources/vitals/client/requests/VitalsBodyTemperatureDeltaGroupedRequest.d.ts +27 -0
  23. package/api/resources/vitals/client/requests/VitalsBodyTemperatureDeltaGroupedRequest.js +5 -0
  24. package/api/resources/vitals/client/requests/VitalsBodyTemperatureGroupedRequest.d.ts +27 -0
  25. package/api/resources/vitals/client/requests/VitalsBodyTemperatureGroupedRequest.js +5 -0
  26. package/api/resources/vitals/client/requests/index.d.ts +2 -0
  27. package/api/resources/workouts/client/Client.js +3 -3
  28. package/api/types/AreaInfo.d.ts +1 -0
  29. package/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +19 -0
  30. package/api/types/ClientFacingBodyTemperatureDeltaSample.js +5 -0
  31. package/api/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +18 -0
  32. package/api/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.js +20 -0
  33. package/api/types/ClientFacingBodyTemperatureSample.d.ts +19 -0
  34. package/api/types/ClientFacingBodyTemperatureSample.js +5 -0
  35. package/api/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +18 -0
  36. package/api/types/ClientFacingBodyTemperatureSampleSensorLocation.js +20 -0
  37. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +9 -0
  38. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.js +5 -0
  39. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +9 -0
  40. package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.js +5 -0
  41. package/api/types/ClientFacingLabLocation.d.ts +8 -0
  42. package/api/types/ClientFacingLabLocation.js +5 -0
  43. package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +8 -0
  44. package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.js +5 -0
  45. package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +8 -0
  46. package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.js +5 -0
  47. package/api/types/LabLocationMetadata.d.ts +14 -0
  48. package/api/types/LabLocationMetadata.js +5 -0
  49. package/api/types/PscAreaInfo.d.ts +7 -0
  50. package/api/types/PscAreaInfo.js +5 -0
  51. package/api/types/PscAreaInfoDetails.d.ts +7 -0
  52. package/api/types/PscAreaInfoDetails.js +5 -0
  53. package/api/types/PscInfo.d.ts +8 -0
  54. package/api/types/PscInfo.js +5 -0
  55. package/api/types/index.d.ts +13 -0
  56. package/api/types/index.js +13 -0
  57. package/dist/api/resources/activity/client/Client.js +2 -2
  58. package/dist/api/resources/body/client/Client.js +2 -2
  59. package/dist/api/resources/devices/client/Client.js +1 -1
  60. package/dist/api/resources/insurance/client/Client.js +2 -2
  61. package/dist/api/resources/introspect/client/Client.js +2 -2
  62. package/dist/api/resources/labTests/client/Client.d.ts +18 -0
  63. package/dist/api/resources/labTests/client/Client.js +150 -26
  64. package/dist/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +4 -0
  65. package/dist/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +20 -0
  66. package/dist/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.js +5 -0
  67. package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
  68. package/dist/api/resources/link/client/Client.js +14 -14
  69. package/dist/api/resources/meal/client/Client.js +1 -1
  70. package/dist/api/resources/profile/client/Client.js +2 -2
  71. package/dist/api/resources/providers/client/Client.js +1 -1
  72. package/dist/api/resources/sleep/client/Client.js +4 -4
  73. package/dist/api/resources/team/client/Client.js +7 -7
  74. package/dist/api/resources/testkit/client/Client.js +2 -2
  75. package/dist/api/resources/user/client/Client.js +12 -12
  76. package/dist/api/resources/vitals/client/Client.d.ts +18 -0
  77. package/dist/api/resources/vitals/client/Client.js +192 -50
  78. package/dist/api/resources/vitals/client/requests/VitalsBodyTemperatureDeltaGroupedRequest.d.ts +27 -0
  79. package/dist/api/resources/vitals/client/requests/VitalsBodyTemperatureDeltaGroupedRequest.js +5 -0
  80. package/dist/api/resources/vitals/client/requests/VitalsBodyTemperatureGroupedRequest.d.ts +27 -0
  81. package/dist/api/resources/vitals/client/requests/VitalsBodyTemperatureGroupedRequest.js +5 -0
  82. package/dist/api/resources/vitals/client/requests/index.d.ts +2 -0
  83. package/dist/api/resources/workouts/client/Client.js +3 -3
  84. package/dist/api/types/AreaInfo.d.ts +1 -0
  85. package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +19 -0
  86. package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.js +5 -0
  87. package/dist/api/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +18 -0
  88. package/dist/api/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.js +20 -0
  89. package/dist/api/types/ClientFacingBodyTemperatureSample.d.ts +19 -0
  90. package/dist/api/types/ClientFacingBodyTemperatureSample.js +5 -0
  91. package/dist/api/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +18 -0
  92. package/dist/api/types/ClientFacingBodyTemperatureSampleSensorLocation.js +20 -0
  93. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +9 -0
  94. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.js +5 -0
  95. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +9 -0
  96. package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.js +5 -0
  97. package/dist/api/types/ClientFacingLabLocation.d.ts +8 -0
  98. package/dist/api/types/ClientFacingLabLocation.js +5 -0
  99. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +8 -0
  100. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.js +5 -0
  101. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +8 -0
  102. package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.js +5 -0
  103. package/dist/api/types/LabLocationMetadata.d.ts +14 -0
  104. package/dist/api/types/LabLocationMetadata.js +5 -0
  105. package/dist/api/types/PscAreaInfo.d.ts +7 -0
  106. package/dist/api/types/PscAreaInfo.js +5 -0
  107. package/dist/api/types/PscAreaInfoDetails.d.ts +7 -0
  108. package/dist/api/types/PscAreaInfoDetails.js +5 -0
  109. package/dist/api/types/PscInfo.d.ts +8 -0
  110. package/dist/api/types/PscInfo.js +5 -0
  111. package/dist/api/types/index.d.ts +13 -0
  112. package/dist/api/types/index.js +13 -0
  113. package/dist/serialization/types/AreaInfo.d.ts +2 -0
  114. package/dist/serialization/types/AreaInfo.js +2 -0
  115. package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSample.d.ts +21 -0
  116. package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSample.js +42 -0
  117. package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +10 -0
  118. package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.js +44 -0
  119. package/dist/serialization/types/ClientFacingBodyTemperatureSample.d.ts +21 -0
  120. package/dist/serialization/types/ClientFacingBodyTemperatureSample.js +42 -0
  121. package/dist/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +10 -0
  122. package/dist/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.js +44 -0
  123. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +14 -0
  124. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.js +35 -0
  125. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +14 -0
  126. package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.js +35 -0
  127. package/dist/serialization/types/ClientFacingLabLocation.d.ts +14 -0
  128. package/dist/serialization/types/ClientFacingLabLocation.js +35 -0
  129. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +15 -0
  130. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.js +36 -0
  131. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +15 -0
  132. package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.js +36 -0
  133. package/dist/serialization/types/LabLocationMetadata.d.ts +20 -0
  134. package/dist/serialization/types/LabLocationMetadata.js +41 -0
  135. package/dist/serialization/types/PscAreaInfo.d.ts +13 -0
  136. package/dist/serialization/types/PscAreaInfo.js +34 -0
  137. package/dist/serialization/types/PscAreaInfoDetails.d.ts +13 -0
  138. package/dist/serialization/types/PscAreaInfoDetails.js +34 -0
  139. package/dist/serialization/types/PscInfo.d.ts +14 -0
  140. package/dist/serialization/types/PscInfo.js +35 -0
  141. package/dist/serialization/types/index.d.ts +13 -0
  142. package/dist/serialization/types/index.js +13 -0
  143. package/package.json +1 -1
  144. package/serialization/types/AreaInfo.d.ts +2 -0
  145. package/serialization/types/AreaInfo.js +2 -0
  146. package/serialization/types/ClientFacingBodyTemperatureDeltaSample.d.ts +21 -0
  147. package/serialization/types/ClientFacingBodyTemperatureDeltaSample.js +42 -0
  148. package/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +10 -0
  149. package/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.js +44 -0
  150. package/serialization/types/ClientFacingBodyTemperatureSample.d.ts +21 -0
  151. package/serialization/types/ClientFacingBodyTemperatureSample.js +42 -0
  152. package/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +10 -0
  153. package/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.js +44 -0
  154. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +14 -0
  155. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.js +35 -0
  156. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +14 -0
  157. package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.js +35 -0
  158. package/serialization/types/ClientFacingLabLocation.d.ts +14 -0
  159. package/serialization/types/ClientFacingLabLocation.js +35 -0
  160. package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +15 -0
  161. package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.js +36 -0
  162. package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +15 -0
  163. package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.js +36 -0
  164. package/serialization/types/LabLocationMetadata.d.ts +20 -0
  165. package/serialization/types/LabLocationMetadata.js +41 -0
  166. package/serialization/types/PscAreaInfo.d.ts +13 -0
  167. package/serialization/types/PscAreaInfo.js +34 -0
  168. package/serialization/types/PscAreaInfoDetails.d.ts +13 -0
  169. package/serialization/types/PscAreaInfoDetails.js +34 -0
  170. package/serialization/types/PscInfo.d.ts +14 -0
  171. package/serialization/types/PscInfo.js +35 -0
  172. package/serialization/types/index.d.ts +13 -0
  173. package/serialization/types/index.js +13 -0
@@ -159,6 +159,7 @@ export declare class LabTests {
159
159
  * Information returned:
160
160
  *
161
161
  * - Whether a given zip code is served by our Phlebotomy network.
162
+ * - List of Lab locations in the area.
162
163
  * @throws {@link Vital.UnprocessableEntityError}
163
164
  *
164
165
  * @example
@@ -167,6 +168,23 @@ export declare class LabTests {
167
168
  * })
168
169
  */
169
170
  getAreaInfo(request: Vital.LabTestsGetAreaInfoRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.AreaInfo>;
171
+ /**
172
+ * @throws {@link Vital.UnprocessableEntityError}
173
+ *
174
+ * @example
175
+ * await vital.labTests.getPscInfo({
176
+ * zipCode: "zip_code",
177
+ * labId: 1
178
+ * })
179
+ */
180
+ getPscInfo(request: Vital.LabTestsGetPscInfoRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.PscInfo>;
181
+ /**
182
+ * @throws {@link Vital.UnprocessableEntityError}
183
+ *
184
+ * @example
185
+ * await vital.labTests.getOrderPscInfo("order_id")
186
+ */
187
+ getOrderPscInfo(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.PscInfo>;
170
188
  /**
171
189
  * This endpoint returns the lab results for the order.
172
190
  * @throws {@link Vital.UnprocessableEntityError}
@@ -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.26", "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.28", "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,
@@ -114,7 +114,7 @@ class LabTests {
114
114
  const _response = yield core.fetcher({
115
115
  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"),
116
116
  method: "POST",
117
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
117
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
118
118
  contentType: "application/json",
119
119
  body: yield serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
120
120
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -191,7 +191,7 @@ class LabTests {
191
191
  const _response = yield core.fetcher({
192
192
  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"),
193
193
  method: "GET",
194
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
194
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
195
195
  contentType: "application/json",
196
196
  queryParameters: _queryParams,
197
197
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -256,7 +256,7 @@ class LabTests {
256
256
  const _response = yield core.fetcher({
257
257
  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`),
258
258
  method: "GET",
259
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
259
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
260
260
  contentType: "application/json",
261
261
  queryParameters: _queryParams,
262
262
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -314,7 +314,7 @@ class LabTests {
314
314
  const _response = yield core.fetcher({
315
315
  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}`),
316
316
  method: "GET",
317
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
317
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
318
318
  contentType: "application/json",
319
319
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
320
320
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -370,7 +370,7 @@ class LabTests {
370
370
  const _response = yield core.fetcher({
371
371
  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"),
372
372
  method: "GET",
373
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
373
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
374
374
  contentType: "application/json",
375
375
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
376
376
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -417,7 +417,7 @@ class LabTests {
417
417
  const _response = yield core.fetcher({
418
418
  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}`),
419
419
  method: "GET",
420
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
420
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
421
421
  contentType: "application/json",
422
422
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
423
423
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -480,7 +480,7 @@ class LabTests {
480
480
  const _response = yield core.fetcher({
481
481
  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"),
482
482
  method: "POST",
483
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
483
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
484
484
  contentType: "application/json",
485
485
  body: yield serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
486
486
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -540,7 +540,7 @@ class LabTests {
540
540
  const _response = yield core.fetcher({
541
541
  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`),
542
542
  method: "POST",
543
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
543
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
544
544
  contentType: "application/json",
545
545
  body: yield serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
546
546
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -606,7 +606,7 @@ class LabTests {
606
606
  const _response = yield core.fetcher({
607
607
  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`),
608
608
  method: "POST",
609
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
609
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
610
610
  contentType: "application/json",
611
611
  body: yield serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
612
612
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -666,7 +666,7 @@ class LabTests {
666
666
  const _response = yield core.fetcher({
667
667
  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`),
668
668
  method: "PATCH",
669
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
669
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
670
670
  contentType: "application/json",
671
671
  body: yield serializers.AppointmentRescheduleRequest.jsonOrThrow(request, {
672
672
  unrecognizedObjectKeys: "strip",
@@ -728,7 +728,7 @@ class LabTests {
728
728
  const _response = yield core.fetcher({
729
729
  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`),
730
730
  method: "PATCH",
731
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
731
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
732
732
  contentType: "application/json",
733
733
  body: yield serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
734
734
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -785,7 +785,7 @@ class LabTests {
785
785
  const _response = yield core.fetcher({
786
786
  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"),
787
787
  method: "GET",
788
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
788
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
789
789
  contentType: "application/json",
790
790
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
791
791
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -832,7 +832,7 @@ class LabTests {
832
832
  const _response = yield core.fetcher({
833
833
  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`),
834
834
  method: "GET",
835
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
835
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
836
836
  contentType: "application/json",
837
837
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
838
838
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -882,6 +882,7 @@ class LabTests {
882
882
  * Information returned:
883
883
  *
884
884
  * - Whether a given zip code is served by our Phlebotomy network.
885
+ * - List of Lab locations in the area.
885
886
  * @throws {@link Vital.UnprocessableEntityError}
886
887
  *
887
888
  * @example
@@ -898,7 +899,7 @@ class LabTests {
898
899
  const _response = yield core.fetcher({
899
900
  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"),
900
901
  method: "GET",
901
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
902
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
902
903
  contentType: "application/json",
903
904
  queryParameters: _queryParams,
904
905
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -943,6 +944,126 @@ class LabTests {
943
944
  }
944
945
  });
945
946
  }
947
+ /**
948
+ * @throws {@link Vital.UnprocessableEntityError}
949
+ *
950
+ * @example
951
+ * await vital.labTests.getPscInfo({
952
+ * zipCode: "zip_code",
953
+ * labId: 1
954
+ * })
955
+ */
956
+ getPscInfo(request, requestOptions) {
957
+ var _a;
958
+ return __awaiter(this, void 0, void 0, function* () {
959
+ const { zipCode, labId } = request;
960
+ const _queryParams = {};
961
+ _queryParams["zip_code"] = zipCode;
962
+ _queryParams["lab_id"] = labId.toString();
963
+ const _response = yield core.fetcher({
964
+ 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"),
965
+ method: "GET",
966
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
967
+ contentType: "application/json",
968
+ queryParameters: _queryParams,
969
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
970
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
971
+ });
972
+ if (_response.ok) {
973
+ return yield serializers.PscInfo.parseOrThrow(_response.body, {
974
+ unrecognizedObjectKeys: "passthrough",
975
+ allowUnrecognizedUnionMembers: true,
976
+ allowUnrecognizedEnumValues: true,
977
+ breadcrumbsPrefix: ["response"],
978
+ });
979
+ }
980
+ if (_response.error.reason === "status-code") {
981
+ switch (_response.error.statusCode) {
982
+ case 422:
983
+ throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
984
+ unrecognizedObjectKeys: "passthrough",
985
+ allowUnrecognizedUnionMembers: true,
986
+ allowUnrecognizedEnumValues: true,
987
+ breadcrumbsPrefix: ["response"],
988
+ }));
989
+ default:
990
+ throw new errors.VitalError({
991
+ statusCode: _response.error.statusCode,
992
+ body: _response.error.body,
993
+ });
994
+ }
995
+ }
996
+ switch (_response.error.reason) {
997
+ case "non-json":
998
+ throw new errors.VitalError({
999
+ statusCode: _response.error.statusCode,
1000
+ body: _response.error.rawBody,
1001
+ });
1002
+ case "timeout":
1003
+ throw new errors.VitalTimeoutError();
1004
+ case "unknown":
1005
+ throw new errors.VitalError({
1006
+ message: _response.error.errorMessage,
1007
+ });
1008
+ }
1009
+ });
1010
+ }
1011
+ /**
1012
+ * @throws {@link Vital.UnprocessableEntityError}
1013
+ *
1014
+ * @example
1015
+ * await vital.labTests.getOrderPscInfo("order_id")
1016
+ */
1017
+ getOrderPscInfo(orderId, requestOptions) {
1018
+ var _a;
1019
+ return __awaiter(this, void 0, void 0, function* () {
1020
+ const _response = yield core.fetcher({
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/${orderId}/psc/info`),
1022
+ method: "GET",
1023
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1024
+ contentType: "application/json",
1025
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1026
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1027
+ });
1028
+ if (_response.ok) {
1029
+ return yield serializers.PscInfo.parseOrThrow(_response.body, {
1030
+ unrecognizedObjectKeys: "passthrough",
1031
+ allowUnrecognizedUnionMembers: true,
1032
+ allowUnrecognizedEnumValues: true,
1033
+ breadcrumbsPrefix: ["response"],
1034
+ });
1035
+ }
1036
+ if (_response.error.reason === "status-code") {
1037
+ switch (_response.error.statusCode) {
1038
+ case 422:
1039
+ throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
1040
+ unrecognizedObjectKeys: "passthrough",
1041
+ allowUnrecognizedUnionMembers: true,
1042
+ allowUnrecognizedEnumValues: true,
1043
+ breadcrumbsPrefix: ["response"],
1044
+ }));
1045
+ default:
1046
+ throw new errors.VitalError({
1047
+ statusCode: _response.error.statusCode,
1048
+ body: _response.error.body,
1049
+ });
1050
+ }
1051
+ }
1052
+ switch (_response.error.reason) {
1053
+ case "non-json":
1054
+ throw new errors.VitalError({
1055
+ statusCode: _response.error.statusCode,
1056
+ body: _response.error.rawBody,
1057
+ });
1058
+ case "timeout":
1059
+ throw new errors.VitalTimeoutError();
1060
+ case "unknown":
1061
+ throw new errors.VitalError({
1062
+ message: _response.error.errorMessage,
1063
+ });
1064
+ }
1065
+ });
1066
+ }
946
1067
  /**
947
1068
  * This endpoint returns the lab results for the order.
948
1069
  * @throws {@link Vital.UnprocessableEntityError}
@@ -953,7 +1074,7 @@ class LabTests {
953
1074
  const _response = yield core.fetcher({
954
1075
  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`),
955
1076
  method: "GET",
956
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1077
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
957
1078
  contentType: "application/json",
958
1079
  responseType: "streaming",
959
1080
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1007,7 +1128,7 @@ class LabTests {
1007
1128
  const _response = yield core.fetcher({
1008
1129
  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`),
1009
1130
  method: "GET",
1010
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1131
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1011
1132
  contentType: "application/json",
1012
1133
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1013
1134
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1064,7 +1185,7 @@ class LabTests {
1064
1185
  const _response = yield core.fetcher({
1065
1186
  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`),
1066
1187
  method: "GET",
1067
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1188
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1068
1189
  contentType: "application/json",
1069
1190
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1070
1191
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1124,7 +1245,7 @@ class LabTests {
1124
1245
  const _response = yield core.fetcher({
1125
1246
  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`),
1126
1247
  method: "GET",
1127
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1248
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1128
1249
  contentType: "application/json",
1129
1250
  queryParameters: _queryParams,
1130
1251
  responseType: "streaming",
@@ -1175,7 +1296,7 @@ class LabTests {
1175
1296
  const _response = yield core.fetcher({
1176
1297
  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`),
1177
1298
  method: "GET",
1178
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1299
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1179
1300
  contentType: "application/json",
1180
1301
  responseType: "streaming",
1181
1302
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1225,7 +1346,7 @@ class LabTests {
1225
1346
  const _response = yield core.fetcher({
1226
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/${orderId}`),
1227
1348
  method: "GET",
1228
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "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.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1229
1350
  contentType: "application/json",
1230
1351
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1231
1352
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1279,7 +1400,7 @@ class LabTests {
1279
1400
  const _response = yield core.fetcher({
1280
1401
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
1281
1402
  method: "POST",
1282
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1403
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1283
1404
  contentType: "application/json",
1284
1405
  body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
1285
1406
  unrecognizedObjectKeys: "strip",
@@ -1336,7 +1457,7 @@ class LabTests {
1336
1457
  const _response = yield core.fetcher({
1337
1458
  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`),
1338
1459
  method: "POST",
1339
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1460
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1340
1461
  contentType: "application/json",
1341
1462
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1342
1463
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
@@ -1401,7 +1522,7 @@ class LabTests {
1401
1522
  const _response = yield core.fetcher({
1402
1523
  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`),
1403
1524
  method: "POST",
1404
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1525
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1405
1526
  contentType: "application/json",
1406
1527
  queryParameters: _queryParams,
1407
1528
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1451,7 +1572,7 @@ class LabTests {
1451
1572
  getOrders(request = {}, requestOptions) {
1452
1573
  var _a;
1453
1574
  return __awaiter(this, void 0, void 0, function* () {
1454
- const { startDate, endDate, userId, patientName, orderIds, page, size } = request;
1575
+ const { startDate, endDate, userId, patientName, shippingRecipientName, orderIds, page, size } = request;
1455
1576
  const _queryParams = {};
1456
1577
  if (startDate != null) {
1457
1578
  _queryParams["start_date"] = startDate.toISOString();
@@ -1465,6 +1586,9 @@ class LabTests {
1465
1586
  if (patientName != null) {
1466
1587
  _queryParams["patient_name"] = patientName;
1467
1588
  }
1589
+ if (shippingRecipientName != null) {
1590
+ _queryParams["shipping_recipient_name"] = shippingRecipientName;
1591
+ }
1468
1592
  if (orderIds != null) {
1469
1593
  if (Array.isArray(orderIds)) {
1470
1594
  _queryParams["order_ids"] = orderIds.map((item) => item);
@@ -1482,7 +1606,7 @@ class LabTests {
1482
1606
  const _response = yield core.fetcher({
1483
1607
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
1484
1608
  method: "GET",
1485
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.26", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1609
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.28", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1486
1610
  contentType: "application/json",
1487
1611
  queryParameters: _queryParams,
1488
1612
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -22,6 +22,10 @@ export interface LabTestsGetOrdersRequest {
22
22
  * Filter by patient name.
23
23
  */
24
24
  patientName?: string;
25
+ /**
26
+ * Filter by shipping recipient name.
27
+ */
28
+ shippingRecipientName?: string;
25
29
  /**
26
30
  * Filter by order ids.
27
31
  */
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {
7
+ * zipCode: "zip_code",
8
+ * labId: 1
9
+ * }
10
+ */
11
+ export interface LabTestsGetPscInfoRequest {
12
+ /**
13
+ * Zip code of the area to check
14
+ */
15
+ zipCode: string;
16
+ /**
17
+ * Lab ID to check for PSCs
18
+ */
19
+ labId: number;
20
+ }
@@ -0,0 +1,5 @@
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,6 +6,7 @@ export { RequestAppointmentRequest } from "./RequestAppointmentRequest";
6
6
  export { AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest";
7
7
  export { AppointmentCancelRequest } from "./AppointmentCancelRequest";
8
8
  export { LabTestsGetAreaInfoRequest } from "./LabTestsGetAreaInfoRequest";
9
+ export { LabTestsGetPscInfoRequest } from "./LabTestsGetPscInfoRequest";
9
10
  export { LabTestsGetLabelsPdfRequest } from "./LabTestsGetLabelsPdfRequest";
10
11
  export { CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible";
11
12
  export { LabTestsSimulateOrderProcessRequest } from "./LabTestsSimulateOrderProcessRequest";