@tryvital/vital-node 3.1.73 → 3.1.75
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.
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/aggregate/client/Client.js +1 -1
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +8 -6
- package/api/resources/labTests/client/Client.js +41 -33
- package/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.d.ts +25 -0
- package/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.js +5 -0
- package/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/api/resources/link/client/Client.js +14 -14
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +56 -56
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/FailureType.d.ts +16 -0
- package/api/types/FailureType.js +18 -0
- package/api/types/GroupKeyColumnExprGroupKey.d.ts +2 -1
- package/api/types/LabResultsRaw.d.ts +1 -0
- package/api/types/MissingBiomarkerResult.d.ts +13 -0
- package/api/types/MissingBiomarkerResult.js +5 -0
- package/api/types/Select.d.ts +7 -0
- package/api/types/Select.js +9 -0
- package/api/types/index.d.ts +3 -0
- package/api/types/index.js +3 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +1 -1
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +8 -6
- package/dist/api/resources/labTests/client/Client.js +41 -33
- package/dist/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.d.ts +25 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetPhlebotomyAppointmentAvailabilityRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/link/client/Client.js +14 -14
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +56 -56
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/FailureType.d.ts +16 -0
- package/dist/api/types/FailureType.js +18 -0
- package/dist/api/types/GroupKeyColumnExprGroupKey.d.ts +2 -1
- package/dist/api/types/LabResultsRaw.d.ts +1 -0
- package/dist/api/types/MissingBiomarkerResult.d.ts +13 -0
- package/dist/api/types/MissingBiomarkerResult.js +5 -0
- package/dist/api/types/Select.d.ts +7 -0
- package/dist/api/types/Select.js +9 -0
- package/dist/api/types/index.d.ts +3 -0
- package/dist/api/types/index.js +3 -0
- package/dist/serialization/types/FailureType.d.ts +10 -0
- package/dist/serialization/types/FailureType.js +42 -0
- package/dist/serialization/types/GroupKeyColumnExprGroupKey.d.ts +2 -1
- package/dist/serialization/types/GroupKeyColumnExprGroupKey.js +2 -1
- package/dist/serialization/types/LabResultsRaw.d.ts +2 -0
- package/dist/serialization/types/LabResultsRaw.js +2 -0
- package/dist/serialization/types/MissingBiomarkerResult.d.ts +19 -0
- package/dist/serialization/types/MissingBiomarkerResult.js +40 -0
- package/dist/serialization/types/Select.d.ts +10 -0
- package/dist/serialization/types/Select.js +31 -0
- package/dist/serialization/types/index.d.ts +3 -0
- package/dist/serialization/types/index.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +7 -5
- package/serialization/types/FailureType.d.ts +10 -0
- package/serialization/types/FailureType.js +42 -0
- package/serialization/types/GroupKeyColumnExprGroupKey.d.ts +2 -1
- package/serialization/types/GroupKeyColumnExprGroupKey.js +2 -1
- package/serialization/types/LabResultsRaw.d.ts +2 -0
- package/serialization/types/LabResultsRaw.js +2 -0
- package/serialization/types/MissingBiomarkerResult.d.ts +19 -0
- package/serialization/types/MissingBiomarkerResult.js +40 -0
- package/serialization/types/Select.d.ts +10 -0
- package/serialization/types/Select.js +31 -0
- package/serialization/types/index.d.ts +3 -0
- package/serialization/types/index.js +3 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type FailureType = "quantity_not_sufficient_failure" | "collection_process_failure" | "drop_off_failure" | "internal_lab_failure" | "order_entry_failure" | "non_failure" | "unknown_failure" | "patient_condition_failure" | "missing_result_calc_failure" | "missing_demo_aoe_calc_failure";
|
5
|
+
export declare const FailureType: {
|
6
|
+
readonly QuantityNotSufficientFailure: "quantity_not_sufficient_failure";
|
7
|
+
readonly CollectionProcessFailure: "collection_process_failure";
|
8
|
+
readonly DropOffFailure: "drop_off_failure";
|
9
|
+
readonly InternalLabFailure: "internal_lab_failure";
|
10
|
+
readonly OrderEntryFailure: "order_entry_failure";
|
11
|
+
readonly NonFailure: "non_failure";
|
12
|
+
readonly UnknownFailure: "unknown_failure";
|
13
|
+
readonly PatientConditionFailure: "patient_condition_failure";
|
14
|
+
readonly MissingResultCalcFailure: "missing_result_calc_failure";
|
15
|
+
readonly MissingDemoAoeCalcFailure: "missing_demo_aoe_calc_failure";
|
16
|
+
};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.FailureType = void 0;
|
7
|
+
exports.FailureType = {
|
8
|
+
QuantityNotSufficientFailure: "quantity_not_sufficient_failure",
|
9
|
+
CollectionProcessFailure: "collection_process_failure",
|
10
|
+
DropOffFailure: "drop_off_failure",
|
11
|
+
InternalLabFailure: "internal_lab_failure",
|
12
|
+
OrderEntryFailure: "order_entry_failure",
|
13
|
+
NonFailure: "non_failure",
|
14
|
+
UnknownFailure: "unknown_failure",
|
15
|
+
PatientConditionFailure: "patient_condition_failure",
|
16
|
+
MissingResultCalcFailure: "missing_result_calc_failure",
|
17
|
+
MissingDemoAoeCalcFailure: "missing_demo_aoe_calc_failure",
|
18
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface MissingBiomarkerResult {
|
6
|
+
name: string;
|
7
|
+
slug: string;
|
8
|
+
inferredFailureType: Vital.FailureType;
|
9
|
+
note?: string;
|
10
|
+
loinc?: string;
|
11
|
+
loincSlug?: string;
|
12
|
+
providerId?: string;
|
13
|
+
}
|
package/api/types/index.d.ts
CHANGED
@@ -158,6 +158,7 @@ export * from "./Energy";
|
|
158
158
|
export * from "./EventDestinationPreferencesPreferred";
|
159
159
|
export * from "./EventDestinationPreferencesEnabledItem";
|
160
160
|
export * from "./EventDestinationPreferences";
|
161
|
+
export * from "./FailureType";
|
161
162
|
export * from "./FallbackBirthDate";
|
162
163
|
export * from "./FallbackTimeZone";
|
163
164
|
export * from "./Fats";
|
@@ -204,6 +205,7 @@ export * from "./MenstrualFlowEntry";
|
|
204
205
|
export * from "./MetricsResult";
|
205
206
|
export * from "./Micros";
|
206
207
|
export * from "./Minerals";
|
208
|
+
export * from "./MissingBiomarkerResult";
|
207
209
|
export * from "./OAuthProviders";
|
208
210
|
export * from "./OrderSetRequest";
|
209
211
|
export * from "./OrderStatus";
|
@@ -337,3 +339,4 @@ export * from "./GroupedBodyFat";
|
|
337
339
|
export * from "./GroupedBloodOxygen";
|
338
340
|
export * from "./GroupedElectrocardiogramVoltage";
|
339
341
|
export * from "./GroupedBloodPressure";
|
342
|
+
export * from "./Select";
|
package/api/types/index.js
CHANGED
@@ -174,6 +174,7 @@ __exportStar(require("./Energy"), exports);
|
|
174
174
|
__exportStar(require("./EventDestinationPreferencesPreferred"), exports);
|
175
175
|
__exportStar(require("./EventDestinationPreferencesEnabledItem"), exports);
|
176
176
|
__exportStar(require("./EventDestinationPreferences"), exports);
|
177
|
+
__exportStar(require("./FailureType"), exports);
|
177
178
|
__exportStar(require("./FallbackBirthDate"), exports);
|
178
179
|
__exportStar(require("./FallbackTimeZone"), exports);
|
179
180
|
__exportStar(require("./Fats"), exports);
|
@@ -220,6 +221,7 @@ __exportStar(require("./MenstrualFlowEntry"), exports);
|
|
220
221
|
__exportStar(require("./MetricsResult"), exports);
|
221
222
|
__exportStar(require("./Micros"), exports);
|
222
223
|
__exportStar(require("./Minerals"), exports);
|
224
|
+
__exportStar(require("./MissingBiomarkerResult"), exports);
|
223
225
|
__exportStar(require("./OAuthProviders"), exports);
|
224
226
|
__exportStar(require("./OrderSetRequest"), exports);
|
225
227
|
__exportStar(require("./OrderStatus"), exports);
|
@@ -353,3 +355,4 @@ __exportStar(require("./GroupedBodyFat"), exports);
|
|
353
355
|
__exportStar(require("./GroupedBloodOxygen"), exports);
|
354
356
|
__exportStar(require("./GroupedElectrocardiogramVoltage"), exports);
|
355
357
|
__exportStar(require("./GroupedBloodPressure"), exports);
|
358
|
+
__exportStar(require("./Select"), exports);
|
@@ -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.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
92
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
69
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
136
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
163
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
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
|
-
*
|
118
|
-
*
|
119
|
-
*
|
120
|
-
*
|
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.
|
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.
|
66
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
121
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
207
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
278
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
343
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
403
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
456
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
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
|
-
*
|
514
|
-
*
|
515
|
-
*
|
516
|
-
*
|
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.
|
532
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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(
|
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.
|
600
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
673
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
740
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
807
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
868
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
921
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1000
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1072
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1140
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1197
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1257
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1320
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1382
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1435
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1494
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1574
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1638
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1710
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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.
|
1815
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.75", "User-Agent": "@tryvital/vital-node/3.1.75", "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",
|