@tryvital/vital-node 3.1.81 → 3.1.83
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.js +28 -28
- 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/ActivityColumnExprActivity.d.ts +3 -3
- package/api/types/ActivityColumnExprActivity.js +2 -2
- package/api/types/AggregateExprArg.d.ts +1 -1
- package/api/types/IndexColumnExprIndex.d.ts +2 -1
- package/api/types/IndexColumnExprIndex.js +1 -0
- package/api/types/QueryInstructionSelectItem.d.ts +1 -1
- package/api/types/WorkoutColumnExpr.d.ts +7 -0
- package/api/types/WorkoutColumnExpr.js +5 -0
- package/api/types/WorkoutColumnExprWorkout.d.ts +38 -0
- package/api/types/WorkoutColumnExprWorkout.js +40 -0
- package/api/types/index.d.ts +2 -0
- package/api/types/index.js +2 -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.js +28 -28
- 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/ActivityColumnExprActivity.d.ts +3 -3
- package/dist/api/types/ActivityColumnExprActivity.js +2 -2
- package/dist/api/types/AggregateExprArg.d.ts +1 -1
- package/dist/api/types/IndexColumnExprIndex.d.ts +2 -1
- package/dist/api/types/IndexColumnExprIndex.js +1 -0
- package/dist/api/types/QueryInstructionSelectItem.d.ts +1 -1
- package/dist/api/types/WorkoutColumnExpr.d.ts +7 -0
- package/dist/api/types/WorkoutColumnExpr.js +5 -0
- package/dist/api/types/WorkoutColumnExprWorkout.d.ts +38 -0
- package/dist/api/types/WorkoutColumnExprWorkout.js +40 -0
- package/dist/api/types/index.d.ts +2 -0
- package/dist/api/types/index.js +2 -0
- package/dist/serialization/types/ActivityColumnExprActivity.d.ts +1 -1
- package/dist/serialization/types/ActivityColumnExprActivity.js +2 -2
- package/dist/serialization/types/AggregateExprArg.d.ts +2 -1
- package/dist/serialization/types/AggregateExprArg.js +8 -1
- package/dist/serialization/types/IndexColumnExprIndex.d.ts +1 -1
- package/dist/serialization/types/IndexColumnExprIndex.js +1 -1
- package/dist/serialization/types/QueryInstructionSelectItem.d.ts +2 -1
- package/dist/serialization/types/QueryInstructionSelectItem.js +2 -0
- package/dist/serialization/types/WorkoutColumnExpr.d.ts +13 -0
- package/dist/serialization/types/WorkoutColumnExpr.js +34 -0
- package/dist/serialization/types/WorkoutColumnExprWorkout.d.ts +10 -0
- package/dist/serialization/types/WorkoutColumnExprWorkout.js +64 -0
- package/dist/serialization/types/index.d.ts +2 -0
- package/dist/serialization/types/index.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ActivityColumnExprActivity.d.ts +1 -1
- package/serialization/types/ActivityColumnExprActivity.js +2 -2
- package/serialization/types/AggregateExprArg.d.ts +2 -1
- package/serialization/types/AggregateExprArg.js +8 -1
- package/serialization/types/IndexColumnExprIndex.d.ts +1 -1
- package/serialization/types/IndexColumnExprIndex.js +1 -1
- package/serialization/types/QueryInstructionSelectItem.d.ts +2 -1
- package/serialization/types/QueryInstructionSelectItem.js +2 -0
- package/serialization/types/WorkoutColumnExpr.d.ts +13 -0
- package/serialization/types/WorkoutColumnExpr.js +34 -0
- package/serialization/types/WorkoutColumnExprWorkout.d.ts +10 -0
- package/serialization/types/WorkoutColumnExprWorkout.js +64 -0
- package/serialization/types/index.d.ts +2 -0
- package/serialization/types/index.js +2 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type ActivityColumnExprActivity = "date" | "calories_total" | "calories_active" | "steps" | "distance_meter" | "floors_climbed" | "duration_active_second" | "intensity_sedentary_second" | "intensity_low_second" | "intensity_medium_second" | "intensity_high_second" | "heart_rate_mean" | "
|
4
|
+
export declare type ActivityColumnExprActivity = "date" | "calories_total" | "calories_active" | "steps" | "distance_meter" | "floors_climbed" | "duration_active_second" | "intensity_sedentary_second" | "intensity_low_second" | "intensity_medium_second" | "intensity_high_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_resting" | "source_type" | "source_provider" | "source_app_id";
|
5
5
|
export declare const ActivityColumnExprActivity: {
|
6
6
|
readonly Date: "date";
|
7
7
|
readonly CaloriesTotal: "calories_total";
|
@@ -15,8 +15,8 @@ export declare const ActivityColumnExprActivity: {
|
|
15
15
|
readonly IntensityMediumSecond: "intensity_medium_second";
|
16
16
|
readonly IntensityHighSecond: "intensity_high_second";
|
17
17
|
readonly HeartRateMean: "heart_rate_mean";
|
18
|
-
readonly
|
19
|
-
readonly
|
18
|
+
readonly HeartRateMinimum: "heart_rate_minimum";
|
19
|
+
readonly HeartRateMaximum: "heart_rate_maximum";
|
20
20
|
readonly HeartRateResting: "heart_rate_resting";
|
21
21
|
readonly SourceType: "source_type";
|
22
22
|
readonly SourceProvider: "source_provider";
|
@@ -17,8 +17,8 @@ exports.ActivityColumnExprActivity = {
|
|
17
17
|
IntensityMediumSecond: "intensity_medium_second",
|
18
18
|
IntensityHighSecond: "intensity_high_second",
|
19
19
|
HeartRateMean: "heart_rate_mean",
|
20
|
-
|
21
|
-
|
20
|
+
HeartRateMinimum: "heart_rate_minimum",
|
21
|
+
HeartRateMaximum: "heart_rate_maximum",
|
22
22
|
HeartRateResting: "heart_rate_resting",
|
23
23
|
SourceType: "source_type",
|
24
24
|
SourceProvider: "source_provider",
|
@@ -2,4 +2,4 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
import * as Vital from "../index";
|
5
|
-
export declare type AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr;
|
5
|
+
export declare type AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr;
|
@@ -1,8 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type IndexColumnExprIndex = "sleep" | "activity";
|
4
|
+
export declare type IndexColumnExprIndex = "sleep" | "activity" | "workout";
|
5
5
|
export declare const IndexColumnExprIndex: {
|
6
6
|
readonly Sleep: "sleep";
|
7
7
|
readonly Activity: "activity";
|
8
|
+
readonly Workout: "workout";
|
8
9
|
};
|
@@ -2,4 +2,4 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
import * as Vital from "../index";
|
5
|
-
export declare type QueryInstructionSelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr;
|
5
|
+
export declare type QueryInstructionSelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type WorkoutColumnExprWorkout = "session_start" | "session_end" | "title" | "sport_id" | "sport_name" | "sport_slug" | "duration_active_second" | "heart_rate_mean" | "heart_rate_minimum" | "heart_rate_maximum" | "heart_rate_zone_1" | "heart_rate_zone_2" | "heart_rate_zone_3" | "heart_rate_zone_4" | "heart_rate_zone_5" | "heart_rate_zone_6" | "distance_meter" | "calories" | "elevation_gain_meter" | "elevation_maximum_meter" | "elevation_minimum_meter" | "average_speed" | "max_speed" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "map" | "source_type" | "source_provider" | "source_app_id";
|
5
|
+
export declare const WorkoutColumnExprWorkout: {
|
6
|
+
readonly SessionStart: "session_start";
|
7
|
+
readonly SessionEnd: "session_end";
|
8
|
+
readonly Title: "title";
|
9
|
+
readonly SportId: "sport_id";
|
10
|
+
readonly SportName: "sport_name";
|
11
|
+
readonly SportSlug: "sport_slug";
|
12
|
+
readonly DurationActiveSecond: "duration_active_second";
|
13
|
+
readonly HeartRateMean: "heart_rate_mean";
|
14
|
+
readonly HeartRateMinimum: "heart_rate_minimum";
|
15
|
+
readonly HeartRateMaximum: "heart_rate_maximum";
|
16
|
+
readonly HeartRateZone1: "heart_rate_zone_1";
|
17
|
+
readonly HeartRateZone2: "heart_rate_zone_2";
|
18
|
+
readonly HeartRateZone3: "heart_rate_zone_3";
|
19
|
+
readonly HeartRateZone4: "heart_rate_zone_4";
|
20
|
+
readonly HeartRateZone5: "heart_rate_zone_5";
|
21
|
+
readonly HeartRateZone6: "heart_rate_zone_6";
|
22
|
+
readonly DistanceMeter: "distance_meter";
|
23
|
+
readonly Calories: "calories";
|
24
|
+
readonly ElevationGainMeter: "elevation_gain_meter";
|
25
|
+
readonly ElevationMaximumMeter: "elevation_maximum_meter";
|
26
|
+
readonly ElevationMinimumMeter: "elevation_minimum_meter";
|
27
|
+
readonly AverageSpeed: "average_speed";
|
28
|
+
readonly MaxSpeed: "max_speed";
|
29
|
+
readonly PowerSource: "power_source";
|
30
|
+
readonly PowerMean: "power_mean";
|
31
|
+
readonly PowerMaximum: "power_maximum";
|
32
|
+
readonly PowerWeightedMean: "power_weighted_mean";
|
33
|
+
readonly Steps: "steps";
|
34
|
+
readonly Map: "map";
|
35
|
+
readonly SourceType: "source_type";
|
36
|
+
readonly SourceProvider: "source_provider";
|
37
|
+
readonly SourceAppId: "source_app_id";
|
38
|
+
};
|
@@ -0,0 +1,40 @@
|
|
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.WorkoutColumnExprWorkout = void 0;
|
7
|
+
exports.WorkoutColumnExprWorkout = {
|
8
|
+
SessionStart: "session_start",
|
9
|
+
SessionEnd: "session_end",
|
10
|
+
Title: "title",
|
11
|
+
SportId: "sport_id",
|
12
|
+
SportName: "sport_name",
|
13
|
+
SportSlug: "sport_slug",
|
14
|
+
DurationActiveSecond: "duration_active_second",
|
15
|
+
HeartRateMean: "heart_rate_mean",
|
16
|
+
HeartRateMinimum: "heart_rate_minimum",
|
17
|
+
HeartRateMaximum: "heart_rate_maximum",
|
18
|
+
HeartRateZone1: "heart_rate_zone_1",
|
19
|
+
HeartRateZone2: "heart_rate_zone_2",
|
20
|
+
HeartRateZone3: "heart_rate_zone_3",
|
21
|
+
HeartRateZone4: "heart_rate_zone_4",
|
22
|
+
HeartRateZone5: "heart_rate_zone_5",
|
23
|
+
HeartRateZone6: "heart_rate_zone_6",
|
24
|
+
DistanceMeter: "distance_meter",
|
25
|
+
Calories: "calories",
|
26
|
+
ElevationGainMeter: "elevation_gain_meter",
|
27
|
+
ElevationMaximumMeter: "elevation_maximum_meter",
|
28
|
+
ElevationMinimumMeter: "elevation_minimum_meter",
|
29
|
+
AverageSpeed: "average_speed",
|
30
|
+
MaxSpeed: "max_speed",
|
31
|
+
PowerSource: "power_source",
|
32
|
+
PowerMean: "power_mean",
|
33
|
+
PowerMaximum: "power_maximum",
|
34
|
+
PowerWeightedMean: "power_weighted_mean",
|
35
|
+
Steps: "steps",
|
36
|
+
Map: "map",
|
37
|
+
SourceType: "source_type",
|
38
|
+
SourceProvider: "source_provider",
|
39
|
+
SourceAppId: "source_app_id",
|
40
|
+
};
|
package/api/types/index.d.ts
CHANGED
@@ -289,6 +289,8 @@ export * from "./ValidationErrorLocItem";
|
|
289
289
|
export * from "./ValidationError";
|
290
290
|
export * from "./VitalTokenCreatedResponse";
|
291
291
|
export * from "./Vitamins";
|
292
|
+
export * from "./WorkoutColumnExprWorkout";
|
293
|
+
export * from "./WorkoutColumnExpr";
|
292
294
|
export * from "./WorkoutV2InDb";
|
293
295
|
export * from "./ClientFacingSampleGroupingKeys";
|
294
296
|
export * from "./VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails";
|
package/api/types/index.js
CHANGED
@@ -305,6 +305,8 @@ __exportStar(require("./ValidationErrorLocItem"), exports);
|
|
305
305
|
__exportStar(require("./ValidationError"), exports);
|
306
306
|
__exportStar(require("./VitalTokenCreatedResponse"), exports);
|
307
307
|
__exportStar(require("./Vitamins"), exports);
|
308
|
+
__exportStar(require("./WorkoutColumnExprWorkout"), exports);
|
309
|
+
__exportStar(require("./WorkoutColumnExpr"), exports);
|
308
310
|
__exportStar(require("./WorkoutV2InDb"), exports);
|
309
311
|
__exportStar(require("./ClientFacingSampleGroupingKeys"), exports);
|
310
312
|
__exportStar(require("./VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails"), 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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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",
|
@@ -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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "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",
|
@@ -276,7 +276,7 @@ class LabTests {
|
|
276
276
|
const _response = yield core.fetcher({
|
277
277
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/list_order_set_markers"),
|
278
278
|
method: "POST",
|
279
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
279
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
280
280
|
contentType: "application/json",
|
281
281
|
queryParameters: _queryParams,
|
282
282
|
requestType: "json",
|
@@ -348,7 +348,7 @@ class LabTests {
|
|
348
348
|
const _response = yield core.fetcher({
|
349
349
|
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`),
|
350
350
|
method: "GET",
|
351
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
351
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
352
352
|
contentType: "application/json",
|
353
353
|
queryParameters: _queryParams,
|
354
354
|
requestType: "json",
|
@@ -413,7 +413,7 @@ class LabTests {
|
|
413
413
|
const _response = yield core.fetcher({
|
414
414
|
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)}`),
|
415
415
|
method: "GET",
|
416
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
416
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
417
417
|
contentType: "application/json",
|
418
418
|
requestType: "json",
|
419
419
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -473,7 +473,7 @@ class LabTests {
|
|
473
473
|
const _response = yield core.fetcher({
|
474
474
|
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"),
|
475
475
|
method: "GET",
|
476
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
476
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
477
477
|
contentType: "application/json",
|
478
478
|
requestType: "json",
|
479
479
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -526,7 +526,7 @@ class LabTests {
|
|
526
526
|
const _response = yield core.fetcher({
|
527
527
|
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)}`),
|
528
528
|
method: "GET",
|
529
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
529
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
530
530
|
contentType: "application/json",
|
531
531
|
requestType: "json",
|
532
532
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -602,7 +602,7 @@ class LabTests {
|
|
602
602
|
const _response = yield core.fetcher({
|
603
603
|
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"),
|
604
604
|
method: "POST",
|
605
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
605
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
606
606
|
contentType: "application/json",
|
607
607
|
queryParameters: _queryParams,
|
608
608
|
requestType: "json",
|
@@ -670,7 +670,7 @@ class LabTests {
|
|
670
670
|
const _response = yield core.fetcher({
|
671
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/book`),
|
672
672
|
method: "POST",
|
673
|
-
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.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
674
674
|
contentType: "application/json",
|
675
675
|
requestType: "json",
|
676
676
|
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -743,7 +743,7 @@ class LabTests {
|
|
743
743
|
const _response = yield core.fetcher({
|
744
744
|
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`),
|
745
745
|
method: "POST",
|
746
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
746
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
747
747
|
contentType: "application/json",
|
748
748
|
requestType: "json",
|
749
749
|
body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -810,7 +810,7 @@ class LabTests {
|
|
810
810
|
const _response = yield core.fetcher({
|
811
811
|
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`),
|
812
812
|
method: "PATCH",
|
813
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
813
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
814
814
|
contentType: "application/json",
|
815
815
|
requestType: "json",
|
816
816
|
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -877,7 +877,7 @@ class LabTests {
|
|
877
877
|
const _response = yield core.fetcher({
|
878
878
|
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`),
|
879
879
|
method: "PATCH",
|
880
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
880
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
881
881
|
contentType: "application/json",
|
882
882
|
requestType: "json",
|
883
883
|
body: serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -938,7 +938,7 @@ class LabTests {
|
|
938
938
|
const _response = yield core.fetcher({
|
939
939
|
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"),
|
940
940
|
method: "GET",
|
941
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
941
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
942
942
|
contentType: "application/json",
|
943
943
|
requestType: "json",
|
944
944
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -991,7 +991,7 @@ class LabTests {
|
|
991
991
|
const _response = yield core.fetcher({
|
992
992
|
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`),
|
993
993
|
method: "GET",
|
994
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
994
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
995
995
|
contentType: "application/json",
|
996
996
|
requestType: "json",
|
997
997
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1070,7 +1070,7 @@ class LabTests {
|
|
1070
1070
|
const _response = yield core.fetcher({
|
1071
1071
|
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"),
|
1072
1072
|
method: "GET",
|
1073
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1073
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1074
1074
|
contentType: "application/json",
|
1075
1075
|
queryParameters: _queryParams,
|
1076
1076
|
requestType: "json",
|
@@ -1142,7 +1142,7 @@ class LabTests {
|
|
1142
1142
|
const _response = yield core.fetcher({
|
1143
1143
|
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"),
|
1144
1144
|
method: "GET",
|
1145
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1145
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1146
1146
|
contentType: "application/json",
|
1147
1147
|
queryParameters: _queryParams,
|
1148
1148
|
requestType: "json",
|
@@ -1210,7 +1210,7 @@ class LabTests {
|
|
1210
1210
|
const _response = yield core.fetcher({
|
1211
1211
|
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`),
|
1212
1212
|
method: "GET",
|
1213
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1213
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1214
1214
|
contentType: "application/json",
|
1215
1215
|
queryParameters: _queryParams,
|
1216
1216
|
requestType: "json",
|
@@ -1267,7 +1267,7 @@ class LabTests {
|
|
1267
1267
|
const _response = yield core.fetcher({
|
1268
1268
|
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`),
|
1269
1269
|
method: "GET",
|
1270
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1270
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1271
1271
|
contentType: "application/json",
|
1272
1272
|
requestType: "json",
|
1273
1273
|
responseType: "streaming",
|
@@ -1327,7 +1327,7 @@ class LabTests {
|
|
1327
1327
|
const _response = yield core.fetcher({
|
1328
1328
|
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`),
|
1329
1329
|
method: "GET",
|
1330
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1330
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1331
1331
|
contentType: "application/json",
|
1332
1332
|
requestType: "json",
|
1333
1333
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1390,7 +1390,7 @@ class LabTests {
|
|
1390
1390
|
const _response = yield core.fetcher({
|
1391
1391
|
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`),
|
1392
1392
|
method: "GET",
|
1393
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1393
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1394
1394
|
contentType: "application/json",
|
1395
1395
|
requestType: "json",
|
1396
1396
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1452,7 +1452,7 @@ class LabTests {
|
|
1452
1452
|
const _response = yield core.fetcher({
|
1453
1453
|
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`),
|
1454
1454
|
method: "GET",
|
1455
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1455
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1456
1456
|
contentType: "application/json",
|
1457
1457
|
queryParameters: _queryParams,
|
1458
1458
|
requestType: "json",
|
@@ -1505,7 +1505,7 @@ class LabTests {
|
|
1505
1505
|
const _response = yield core.fetcher({
|
1506
1506
|
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`),
|
1507
1507
|
method: "GET",
|
1508
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1508
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1509
1509
|
contentType: "application/json",
|
1510
1510
|
requestType: "json",
|
1511
1511
|
responseType: "streaming",
|
@@ -1564,7 +1564,7 @@ class LabTests {
|
|
1564
1564
|
const _response = yield core.fetcher({
|
1565
1565
|
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)}`),
|
1566
1566
|
method: "GET",
|
1567
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1567
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1568
1568
|
contentType: "application/json",
|
1569
1569
|
requestType: "json",
|
1570
1570
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1644,7 +1644,7 @@ class LabTests {
|
|
1644
1644
|
const _response = yield core.fetcher({
|
1645
1645
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
|
1646
1646
|
method: "POST",
|
1647
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1647
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1648
1648
|
contentType: "application/json",
|
1649
1649
|
requestType: "json",
|
1650
1650
|
body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -1708,7 +1708,7 @@ class LabTests {
|
|
1708
1708
|
const _response = yield core.fetcher({
|
1709
1709
|
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`),
|
1710
1710
|
method: "POST",
|
1711
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1711
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1712
1712
|
contentType: "application/json",
|
1713
1713
|
requestType: "json",
|
1714
1714
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1780,7 +1780,7 @@ class LabTests {
|
|
1780
1780
|
const _response = yield core.fetcher({
|
1781
1781
|
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`),
|
1782
1782
|
method: "POST",
|
1783
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1783
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1784
1784
|
contentType: "application/json",
|
1785
1785
|
queryParameters: _queryParams,
|
1786
1786
|
requestType: "json",
|
@@ -1885,7 +1885,7 @@ class LabTests {
|
|
1885
1885
|
const _response = yield core.fetcher({
|
1886
1886
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
|
1887
1887
|
method: "GET",
|
1888
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1888
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.83", "User-Agent": "@tryvital/vital-node/3.1.83", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1889
1889
|
contentType: "application/json",
|
1890
1890
|
queryParameters: _queryParams,
|
1891
1891
|
requestType: "json",
|