@tryvital/vital-node 3.1.73 → 3.1.74

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 (80) hide show
  1. package/api/resources/activity/client/Client.js +2 -2
  2. package/api/resources/aggregate/client/Client.js +1 -1
  3. package/api/resources/body/client/Client.js +2 -2
  4. package/api/resources/devices/client/Client.js +1 -1
  5. package/api/resources/insurance/client/Client.js +2 -2
  6. package/api/resources/introspect/client/Client.js +2 -2
  7. package/api/resources/labTests/client/Client.d.ts +8 -6
  8. package/api/resources/labTests/client/Client.js +41 -33
  9. package/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.d.ts +25 -0
  10. package/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.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/menstrualCycle/client/Client.js +1 -1
  15. package/api/resources/profile/client/Client.js +2 -2
  16. package/api/resources/providers/client/Client.js +1 -1
  17. package/api/resources/sleep/client/Client.js +4 -4
  18. package/api/resources/team/client/Client.js +7 -7
  19. package/api/resources/testkit/client/Client.js +2 -2
  20. package/api/resources/user/client/Client.js +16 -16
  21. package/api/resources/vitals/client/Client.js +56 -56
  22. package/api/resources/workouts/client/Client.js +3 -3
  23. package/api/types/FailureType.d.ts +16 -0
  24. package/api/types/FailureType.js +18 -0
  25. package/api/types/LabResultsRaw.d.ts +1 -0
  26. package/api/types/MissingBiomarkerResult.d.ts +12 -0
  27. package/api/types/MissingBiomarkerResult.js +5 -0
  28. package/api/types/index.d.ts +2 -0
  29. package/api/types/index.js +2 -0
  30. package/dist/api/resources/activity/client/Client.js +2 -2
  31. package/dist/api/resources/aggregate/client/Client.js +1 -1
  32. package/dist/api/resources/body/client/Client.js +2 -2
  33. package/dist/api/resources/devices/client/Client.js +1 -1
  34. package/dist/api/resources/insurance/client/Client.js +2 -2
  35. package/dist/api/resources/introspect/client/Client.js +2 -2
  36. package/dist/api/resources/labTests/client/Client.d.ts +8 -6
  37. package/dist/api/resources/labTests/client/Client.js +41 -33
  38. package/dist/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.d.ts +25 -0
  39. package/dist/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.js +5 -0
  40. package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
  41. package/dist/api/resources/link/client/Client.js +14 -14
  42. package/dist/api/resources/meal/client/Client.js +1 -1
  43. package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
  44. package/dist/api/resources/profile/client/Client.js +2 -2
  45. package/dist/api/resources/providers/client/Client.js +1 -1
  46. package/dist/api/resources/sleep/client/Client.js +4 -4
  47. package/dist/api/resources/team/client/Client.js +7 -7
  48. package/dist/api/resources/testkit/client/Client.js +2 -2
  49. package/dist/api/resources/user/client/Client.js +16 -16
  50. package/dist/api/resources/vitals/client/Client.js +56 -56
  51. package/dist/api/resources/workouts/client/Client.js +3 -3
  52. package/dist/api/types/FailureType.d.ts +16 -0
  53. package/dist/api/types/FailureType.js +18 -0
  54. package/dist/api/types/LabResultsRaw.d.ts +1 -0
  55. package/dist/api/types/MissingBiomarkerResult.d.ts +12 -0
  56. package/dist/api/types/MissingBiomarkerResult.js +5 -0
  57. package/dist/api/types/index.d.ts +2 -0
  58. package/dist/api/types/index.js +2 -0
  59. package/dist/serialization/types/FailureType.d.ts +10 -0
  60. package/dist/serialization/types/FailureType.js +42 -0
  61. package/dist/serialization/types/LabResultsRaw.d.ts +2 -0
  62. package/dist/serialization/types/LabResultsRaw.js +2 -0
  63. package/dist/serialization/types/MissingBiomarkerResult.d.ts +18 -0
  64. package/dist/serialization/types/MissingBiomarkerResult.js +39 -0
  65. package/dist/serialization/types/index.d.ts +2 -0
  66. package/dist/serialization/types/index.js +2 -0
  67. package/dist/version.d.ts +1 -1
  68. package/dist/version.js +1 -1
  69. package/package.json +1 -1
  70. package/reference.md +7 -5
  71. package/serialization/types/FailureType.d.ts +10 -0
  72. package/serialization/types/FailureType.js +42 -0
  73. package/serialization/types/LabResultsRaw.d.ts +2 -0
  74. package/serialization/types/LabResultsRaw.js +2 -0
  75. package/serialization/types/MissingBiomarkerResult.d.ts +18 -0
  76. package/serialization/types/MissingBiomarkerResult.js +39 -0
  77. package/serialization/types/index.d.ts +2 -0
  78. package/serialization/types/index.js +2 -0
  79. package/version.d.ts +1 -1
  80. package/version.js +1 -1
@@ -78,7 +78,7 @@ class Activity {
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/summary/activity/${encodeURIComponent(userId)}`),
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.73", "User-Agent": "@tryvital/vital-node/3.1.73", "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.74", "User-Agent": "@tryvital/vital-node/3.1.74", "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
  requestType: "json",
@@ -154,7 +154,7 @@ class Activity {
154
154
  const _response = yield core.fetcher({
155
155
  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/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -89,7 +89,7 @@ class Aggregate {
89
89
  const _response = yield core.fetcher({
90
90
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/query_one/${encodeURIComponent(userId)}`),
91
91
  method: "POST",
92
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
92
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
93
93
  contentType: "application/json",
94
94
  requestType: "json",
95
95
  body: serializers.Query.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -78,7 +78,7 @@ class Body {
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/summary/body/${encodeURIComponent(userId)}`),
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.73", "User-Agent": "@tryvital/vital-node/3.1.73", "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.74", "User-Agent": "@tryvital/vital-node/3.1.74", "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
  requestType: "json",
@@ -154,7 +154,7 @@ class Body {
154
154
  const _response = yield core.fetcher({
155
155
  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/${encodeURIComponent(userId)}/raw`),
156
156
  method: "GET",
157
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
157
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
158
158
  contentType: "application/json",
159
159
  queryParameters: _queryParams,
160
160
  requestType: "json",
@@ -72,7 +72,7 @@ class Devices {
72
72
  const _response = yield core.fetcher({
73
73
  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/${encodeURIComponent(userId)}/raw`),
74
74
  method: "GET",
75
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
75
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
76
76
  contentType: "application/json",
77
77
  queryParameters: _queryParams,
78
78
  requestType: "json",
@@ -66,7 +66,7 @@ class Insurance {
66
66
  const _response = yield core.fetcher({
67
67
  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"),
68
68
  method: "POST",
69
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
69
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
70
70
  contentType: "application/json",
71
71
  requestType: "json",
72
72
  body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -133,7 +133,7 @@ class Insurance {
133
133
  const _response = yield core.fetcher({
134
134
  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"),
135
135
  method: "GET",
136
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
136
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
137
137
  contentType: "application/json",
138
138
  queryParameters: _queryParams,
139
139
  requestType: "json",
@@ -81,7 +81,7 @@ class Introspect {
81
81
  const _response = yield core.fetcher({
82
82
  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"),
83
83
  method: "GET",
84
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
84
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
85
85
  contentType: "application/json",
86
86
  queryParameters: _queryParams,
87
87
  requestType: "json",
@@ -160,7 +160,7 @@ class Introspect {
160
160
  const _response = yield core.fetcher({
161
161
  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"),
162
162
  method: "GET",
163
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
163
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
164
164
  contentType: "application/json",
165
165
  queryParameters: _queryParams,
166
166
  requestType: "json",
@@ -107,20 +107,22 @@ export declare class LabTests {
107
107
  * Return the available time slots to book an appointment with a phlebotomist
108
108
  * for the given address and order.
109
109
  *
110
- * @param {Vital.UsAddress} request
110
+ * @param {Vital.LabTestsGetPhlebotomyAppointmentAvailabilityRequest} request
111
111
  * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
112
112
  *
113
113
  * @throws {@link Vital.UnprocessableEntityError}
114
114
  *
115
115
  * @example
116
116
  * await client.labTests.getPhlebotomyAppointmentAvailability({
117
- * firstLine: "first_line",
118
- * city: "city",
119
- * state: "state",
120
- * zipCode: "zip_code"
117
+ * body: {
118
+ * firstLine: "first_line",
119
+ * city: "city",
120
+ * state: "state",
121
+ * zipCode: "zip_code"
122
+ * }
121
123
  * })
122
124
  */
123
- getPhlebotomyAppointmentAvailability(request: Vital.UsAddress, requestOptions?: LabTests.RequestOptions): Promise<Vital.AppointmentAvailabilitySlots>;
125
+ getPhlebotomyAppointmentAvailability(request: Vital.LabTestsGetPhlebotomyAppointmentAvailabilityRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.AppointmentAvailabilitySlots>;
124
126
  /**
125
127
  * Book an at-home phlebotomy appointment.
126
128
  *
@@ -63,7 +63,7 @@ class LabTests {
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/lab_tests"),
65
65
  method: "GET",
66
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "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.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
67
67
  contentType: "application/json",
68
68
  requestType: "json",
69
69
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -118,7 +118,7 @@ class LabTests {
118
118
  const _response = yield core.fetcher({
119
119
  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"),
120
120
  method: "POST",
121
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
121
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
122
122
  contentType: "application/json",
123
123
  requestType: "json",
124
124
  body: serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -204,7 +204,7 @@ class LabTests {
204
204
  const _response = yield core.fetcher({
205
205
  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"),
206
206
  method: "GET",
207
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
207
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
208
208
  contentType: "application/json",
209
209
  queryParameters: _queryParams,
210
210
  requestType: "json",
@@ -275,7 +275,7 @@ class LabTests {
275
275
  const _response = yield core.fetcher({
276
276
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}/markers`),
277
277
  method: "GET",
278
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
278
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
279
279
  contentType: "application/json",
280
280
  queryParameters: _queryParams,
281
281
  requestType: "json",
@@ -340,7 +340,7 @@ class LabTests {
340
340
  const _response = yield core.fetcher({
341
341
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labId)}/markers/${encodeURIComponent(providerId)}`),
342
342
  method: "GET",
343
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
343
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
344
344
  contentType: "application/json",
345
345
  requestType: "json",
346
346
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -400,7 +400,7 @@ class LabTests {
400
400
  const _response = yield core.fetcher({
401
401
  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"),
402
402
  method: "GET",
403
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
403
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
404
404
  contentType: "application/json",
405
405
  requestType: "json",
406
406
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -453,7 +453,7 @@ class LabTests {
453
453
  const _response = yield core.fetcher({
454
454
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
455
455
  method: "GET",
456
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
456
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
457
457
  contentType: "application/json",
458
458
  requestType: "json",
459
459
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -503,29 +503,37 @@ class LabTests {
503
503
  * Return the available time slots to book an appointment with a phlebotomist
504
504
  * for the given address and order.
505
505
  *
506
- * @param {Vital.UsAddress} request
506
+ * @param {Vital.LabTestsGetPhlebotomyAppointmentAvailabilityRequest} request
507
507
  * @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
508
508
  *
509
509
  * @throws {@link Vital.UnprocessableEntityError}
510
510
  *
511
511
  * @example
512
512
  * await client.labTests.getPhlebotomyAppointmentAvailability({
513
- * firstLine: "first_line",
514
- * city: "city",
515
- * state: "state",
516
- * zipCode: "zip_code"
513
+ * body: {
514
+ * firstLine: "first_line",
515
+ * city: "city",
516
+ * state: "state",
517
+ * zipCode: "zip_code"
518
+ * }
517
519
  * })
518
520
  */
519
521
  getPhlebotomyAppointmentAvailability(request, requestOptions) {
520
522
  var _a;
521
523
  return __awaiter(this, void 0, void 0, function* () {
524
+ const { startDate, body: _body } = request;
525
+ const _queryParams = {};
526
+ if (startDate != null) {
527
+ _queryParams["start_date"] = startDate;
528
+ }
522
529
  const _response = yield core.fetcher({
523
530
  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"),
524
531
  method: "POST",
525
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
532
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
526
533
  contentType: "application/json",
534
+ queryParameters: _queryParams,
527
535
  requestType: "json",
528
- body: serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
536
+ body: serializers.UsAddress.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
529
537
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
530
538
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
531
539
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -589,7 +597,7 @@ class LabTests {
589
597
  const _response = yield core.fetcher({
590
598
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/book`),
591
599
  method: "POST",
592
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
600
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
593
601
  contentType: "application/json",
594
602
  requestType: "json",
595
603
  body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -662,7 +670,7 @@ class LabTests {
662
670
  const _response = yield core.fetcher({
663
671
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/request`),
664
672
  method: "POST",
665
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
673
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
666
674
  contentType: "application/json",
667
675
  requestType: "json",
668
676
  body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -729,7 +737,7 @@ class LabTests {
729
737
  const _response = yield core.fetcher({
730
738
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/reschedule`),
731
739
  method: "PATCH",
732
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
740
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
733
741
  contentType: "application/json",
734
742
  requestType: "json",
735
743
  body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -796,7 +804,7 @@ class LabTests {
796
804
  const _response = yield core.fetcher({
797
805
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/cancel`),
798
806
  method: "PATCH",
799
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
807
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
800
808
  contentType: "application/json",
801
809
  requestType: "json",
802
810
  body: serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -857,7 +865,7 @@ class LabTests {
857
865
  const _response = yield core.fetcher({
858
866
  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"),
859
867
  method: "GET",
860
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
868
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
861
869
  contentType: "application/json",
862
870
  requestType: "json",
863
871
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -910,7 +918,7 @@ class LabTests {
910
918
  const _response = yield core.fetcher({
911
919
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment`),
912
920
  method: "GET",
913
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
921
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
914
922
  contentType: "application/json",
915
923
  requestType: "json",
916
924
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -989,7 +997,7 @@ class LabTests {
989
997
  const _response = yield core.fetcher({
990
998
  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"),
991
999
  method: "GET",
992
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1000
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
993
1001
  contentType: "application/json",
994
1002
  queryParameters: _queryParams,
995
1003
  requestType: "json",
@@ -1061,7 +1069,7 @@ class LabTests {
1061
1069
  const _response = yield core.fetcher({
1062
1070
  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"),
1063
1071
  method: "GET",
1064
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1072
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1065
1073
  contentType: "application/json",
1066
1074
  queryParameters: _queryParams,
1067
1075
  requestType: "json",
@@ -1129,7 +1137,7 @@ class LabTests {
1129
1137
  const _response = yield core.fetcher({
1130
1138
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/info`),
1131
1139
  method: "GET",
1132
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1140
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1133
1141
  contentType: "application/json",
1134
1142
  queryParameters: _queryParams,
1135
1143
  requestType: "json",
@@ -1186,7 +1194,7 @@ class LabTests {
1186
1194
  const _response = yield core.fetcher({
1187
1195
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/pdf`),
1188
1196
  method: "GET",
1189
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1197
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1190
1198
  contentType: "application/json",
1191
1199
  requestType: "json",
1192
1200
  responseType: "streaming",
@@ -1246,7 +1254,7 @@ class LabTests {
1246
1254
  const _response = yield core.fetcher({
1247
1255
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/metadata`),
1248
1256
  method: "GET",
1249
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1257
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1250
1258
  contentType: "application/json",
1251
1259
  requestType: "json",
1252
1260
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1309,7 +1317,7 @@ class LabTests {
1309
1317
  const _response = yield core.fetcher({
1310
1318
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result`),
1311
1319
  method: "GET",
1312
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1320
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1313
1321
  contentType: "application/json",
1314
1322
  requestType: "json",
1315
1323
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1371,7 +1379,7 @@ class LabTests {
1371
1379
  const _response = yield core.fetcher({
1372
1380
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/labels/pdf`),
1373
1381
  method: "GET",
1374
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1382
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1375
1383
  contentType: "application/json",
1376
1384
  queryParameters: _queryParams,
1377
1385
  requestType: "json",
@@ -1424,7 +1432,7 @@ class LabTests {
1424
1432
  const _response = yield core.fetcher({
1425
1433
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/requisition/pdf`),
1426
1434
  method: "GET",
1427
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1435
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1428
1436
  contentType: "application/json",
1429
1437
  requestType: "json",
1430
1438
  responseType: "streaming",
@@ -1483,7 +1491,7 @@ class LabTests {
1483
1491
  const _response = yield core.fetcher({
1484
1492
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}`),
1485
1493
  method: "GET",
1486
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1494
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1487
1495
  contentType: "application/json",
1488
1496
  requestType: "json",
1489
1497
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1563,7 +1571,7 @@ class LabTests {
1563
1571
  const _response = yield core.fetcher({
1564
1572
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
1565
1573
  method: "POST",
1566
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1574
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1567
1575
  contentType: "application/json",
1568
1576
  requestType: "json",
1569
1577
  body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -1627,7 +1635,7 @@ class LabTests {
1627
1635
  const _response = yield core.fetcher({
1628
1636
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/cancel`),
1629
1637
  method: "POST",
1630
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1638
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1631
1639
  contentType: "application/json",
1632
1640
  requestType: "json",
1633
1641
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1699,7 +1707,7 @@ class LabTests {
1699
1707
  const _response = yield core.fetcher({
1700
1708
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/test`),
1701
1709
  method: "POST",
1702
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1710
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1703
1711
  contentType: "application/json",
1704
1712
  queryParameters: _queryParams,
1705
1713
  requestType: "json",
@@ -1804,7 +1812,7 @@ class LabTests {
1804
1812
  const _response = yield core.fetcher({
1805
1813
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
1806
1814
  method: "GET",
1807
- headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.73", "User-Agent": "@tryvital/vital-node/3.1.73", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1815
+ headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.74", "User-Agent": "@tryvital/vital-node/3.1.74", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
1808
1816
  contentType: "application/json",
1809
1817
  queryParameters: _queryParams,
1810
1818
  requestType: "json",
@@ -0,0 +1,25 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Vital from "../../../../index";
5
+ /**
6
+ * @example
7
+ * {
8
+ * body: {
9
+ * firstLine: "first_line",
10
+ * city: "city",
11
+ * state: "state",
12
+ * zipCode: "zip_code"
13
+ * }
14
+ * }
15
+ */
16
+ export interface LabTestsGetPhlebotomyAppointmentAvailabilityRequest {
17
+ /**
18
+ * Start date for appointment availability
19
+ */
20
+ startDate?: string;
21
+ /**
22
+ * At-home phlebotomy appointment address.
23
+ */
24
+ body: Vital.UsAddress;
25
+ }
@@ -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 });
@@ -1,6 +1,7 @@
1
1
  export { type CreateLabTestRequest } from "./CreateLabTestRequest";
2
2
  export { type LabTestsGetMarkersRequest } from "./LabTestsGetMarkersRequest";
3
3
  export { type LabTestsGetMarkersForLabTestRequest } from "./LabTestsGetMarkersForLabTestRequest";
4
+ export { type LabTestsGetPhlebotomyAppointmentAvailabilityRequest } from "./LabTestsGetPhlebotomyAppointmentAvailabilityRequest";
4
5
  export { type AppointmentBookingRequest } from "./AppointmentBookingRequest";
5
6
  export { type RequestAppointmentRequest } from "./RequestAppointmentRequest";
6
7
  export { type AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest";