@tryvital/vital-node 3.1.143 → 3.1.145
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/Client.d.ts +3 -0
- package/Client.js +41 -36
- 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/electrocardiogram/client/Client.d.ts +42 -0
- package/api/resources/electrocardiogram/client/Client.js +135 -0
- package/api/resources/electrocardiogram/client/index.d.ts +1 -0
- package/api/resources/electrocardiogram/client/index.js +17 -0
- package/api/resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.d.ts +17 -0
- package/api/resources/electrocardiogram/client/requests/index.d.ts +1 -0
- package/api/resources/electrocardiogram/client/requests/index.js +2 -0
- package/api/resources/electrocardiogram/index.d.ts +1 -0
- package/api/resources/electrocardiogram/index.js +17 -0
- package/api/resources/index.d.ts +2 -0
- package/api/resources/index.js +3 -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 +34 -34
- 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/sleepCycle/client/Client.js +1 -1
- 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 +58 -58
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ClientFacingElectrocardiogram.d.ts +22 -0
- package/api/types/ClientFacingElectrocardiogramClassification.d.ts +9 -0
- package/api/types/ClientFacingElectrocardiogramClassification.js +11 -0
- package/api/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +9 -0
- package/api/types/ClientFacingElectrocardiogramInconclusiveCause.js +11 -0
- package/api/types/ClientFacingElectrocardiogramResponse.d.ts +7 -0
- package/api/types/ClientFacingElectrocardiogramResponse.js +5 -0
- package/api/types/ClientFacingElectrocardiogramSourceProvider.d.ts +5 -0
- package/api/types/ClientFacingElectrocardiogramSourceProvider.js +5 -0
- package/api/types/ClientFacingElectrocardiogramSourceType.d.ts +19 -0
- package/api/types/ClientFacingElectrocardiogramSourceType.js +21 -0
- package/api/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +6 -1
- package/api/types/ClientFacingMenstrualCycle.js +5 -0
- package/api/types/ClientFacingMenstrualCycleSourceProvider.d.ts +5 -0
- package/api/types/ClientFacingMenstrualCycleSourceProvider.js +5 -0
- package/api/types/ClientFacingMenstrualCycleSourceType.d.ts +19 -0
- package/api/types/ClientFacingMenstrualCycleSourceType.js +21 -0
- package/api/types/ClientFacingSport.d.ts +1 -0
- package/api/types/MenstrualCycleResponse.d.ts +1 -1
- package/api/types/WorkoutColumnExprWorkout.d.ts +1 -2
- package/api/types/WorkoutColumnExprWorkout.js +0 -1
- package/api/types/index.d.ts +9 -1
- package/api/types/index.js +9 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +41 -36
- 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/electrocardiogram/client/Client.d.ts +42 -0
- package/dist/api/resources/electrocardiogram/client/Client.js +135 -0
- package/dist/api/resources/electrocardiogram/client/index.d.ts +1 -0
- package/dist/api/resources/electrocardiogram/client/index.js +17 -0
- package/dist/api/resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.d.ts +17 -0
- package/dist/api/resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.js +5 -0
- package/dist/api/resources/electrocardiogram/client/requests/index.d.ts +1 -0
- package/dist/api/resources/electrocardiogram/client/requests/index.js +2 -0
- package/dist/api/resources/electrocardiogram/index.d.ts +1 -0
- package/dist/api/resources/electrocardiogram/index.js +17 -0
- package/dist/api/resources/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -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 +34 -34
- 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/sleepCycle/client/Client.js +1 -1
- 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 +58 -58
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ClientFacingElectrocardiogram.d.ts +22 -0
- package/dist/api/types/ClientFacingElectrocardiogram.js +5 -0
- package/dist/api/types/ClientFacingElectrocardiogramClassification.d.ts +9 -0
- package/dist/api/types/ClientFacingElectrocardiogramClassification.js +11 -0
- package/dist/api/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +9 -0
- package/dist/api/types/ClientFacingElectrocardiogramInconclusiveCause.js +11 -0
- package/dist/api/types/ClientFacingElectrocardiogramResponse.d.ts +7 -0
- package/dist/api/types/ClientFacingElectrocardiogramResponse.js +5 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceProvider.d.ts +5 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceProvider.js +5 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceType.d.ts +19 -0
- package/dist/api/types/ClientFacingElectrocardiogramSourceType.js +21 -0
- package/dist/api/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +6 -1
- package/dist/api/types/ClientFacingMenstrualCycle.js +5 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceProvider.d.ts +5 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceProvider.js +5 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceType.d.ts +19 -0
- package/dist/api/types/ClientFacingMenstrualCycleSourceType.js +21 -0
- package/dist/api/types/ClientFacingSport.d.ts +1 -0
- package/dist/api/types/MenstrualCycleResponse.d.ts +1 -1
- package/dist/api/types/WorkoutColumnExprWorkout.d.ts +1 -2
- package/dist/api/types/WorkoutColumnExprWorkout.js +0 -1
- package/dist/api/types/index.d.ts +9 -1
- package/dist/api/types/index.js +9 -1
- package/dist/serialization/types/ClientFacingElectrocardiogram.d.ts +32 -0
- package/dist/serialization/types/ClientFacingElectrocardiogram.js +53 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramClassification.d.ts +10 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramClassification.js +31 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +10 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.js +31 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramResponse.d.ts +13 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramResponse.js +34 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceProvider.d.ts +12 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceProvider.js +33 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +10 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramSourceType.js +45 -0
- package/dist/serialization/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +9 -2
- package/dist/serialization/types/{MenstrualCycle.js → ClientFacingMenstrualCycle.js} +9 -2
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceProvider.d.ts +12 -0
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceProvider.js +33 -0
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +10 -0
- package/dist/serialization/types/ClientFacingMenstrualCycleSourceType.js +45 -0
- package/dist/serialization/types/MenstrualCycleResponse.d.ts +2 -2
- package/dist/serialization/types/MenstrualCycleResponse.js +2 -2
- package/dist/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
- package/dist/serialization/types/WorkoutColumnExprWorkout.js +0 -1
- package/dist/serialization/types/index.d.ts +9 -1
- package/dist/serialization/types/index.js +9 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +75 -0
- package/serialization/types/ClientFacingElectrocardiogram.d.ts +32 -0
- package/serialization/types/ClientFacingElectrocardiogram.js +53 -0
- package/serialization/types/ClientFacingElectrocardiogramClassification.d.ts +10 -0
- package/serialization/types/ClientFacingElectrocardiogramClassification.js +31 -0
- package/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.d.ts +10 -0
- package/serialization/types/ClientFacingElectrocardiogramInconclusiveCause.js +31 -0
- package/serialization/types/ClientFacingElectrocardiogramResponse.d.ts +13 -0
- package/serialization/types/ClientFacingElectrocardiogramResponse.js +34 -0
- package/serialization/types/ClientFacingElectrocardiogramSourceProvider.d.ts +12 -0
- package/serialization/types/ClientFacingElectrocardiogramSourceProvider.js +33 -0
- package/serialization/types/ClientFacingElectrocardiogramSourceType.d.ts +10 -0
- package/serialization/types/ClientFacingElectrocardiogramSourceType.js +45 -0
- package/serialization/types/{MenstrualCycle.d.ts → ClientFacingMenstrualCycle.d.ts} +9 -2
- package/serialization/types/{MenstrualCycle.js → ClientFacingMenstrualCycle.js} +9 -2
- package/serialization/types/ClientFacingMenstrualCycleSourceProvider.d.ts +12 -0
- package/serialization/types/ClientFacingMenstrualCycleSourceProvider.js +33 -0
- package/serialization/types/ClientFacingMenstrualCycleSourceType.d.ts +10 -0
- package/serialization/types/ClientFacingMenstrualCycleSourceType.js +45 -0
- package/serialization/types/MenstrualCycleResponse.d.ts +2 -2
- package/serialization/types/MenstrualCycleResponse.js +2 -2
- package/serialization/types/WorkoutColumnExprWorkout.d.ts +1 -1
- package/serialization/types/WorkoutColumnExprWorkout.js +0 -1
- package/serialization/types/index.d.ts +9 -1
- package/serialization/types/index.js +9 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- /package/api/{types/MenstrualCycle.js → resources/electrocardiogram/client/requests/ElectrocardiogramGetRequest.js} +0 -0
- /package/{dist/api/types/MenstrualCycle.js → api/types/ClientFacingElectrocardiogram.js} +0 -0
@@ -78,7 +78,7 @@ class Workouts {
|
|
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/workouts/${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.145", "User-Agent": "@tryvital/vital-node/3.1.145", "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 Workouts {
|
|
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/workouts/${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.145", "User-Agent": "@tryvital/vital-node/3.1.145", "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",
|
@@ -216,7 +216,7 @@ class Workouts {
|
|
216
216
|
const _response = yield core.fetcher({
|
217
217
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
|
218
218
|
method: "GET",
|
219
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
219
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.145", "User-Agent": "@tryvital/vital-node/3.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
220
220
|
contentType: "application/json",
|
221
221
|
requestType: "json",
|
222
222
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -0,0 +1,22 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface ClientFacingElectrocardiogram {
|
6
|
+
id: string;
|
7
|
+
sessionStart: Date;
|
8
|
+
sessionEnd: Date;
|
9
|
+
voltageSampleCount: number;
|
10
|
+
heartRateMean?: number;
|
11
|
+
samplingFrequencyHz?: number;
|
12
|
+
classification?: Vital.ClientFacingElectrocardiogramClassification;
|
13
|
+
inconclusiveCause?: Vital.ClientFacingElectrocardiogramInconclusiveCause;
|
14
|
+
algorithmVersion?: string;
|
15
|
+
timeZone?: string;
|
16
|
+
sourceProvider: Vital.ClientFacingElectrocardiogramSourceProvider;
|
17
|
+
sourceType: Vital.ClientFacingElectrocardiogramSourceType;
|
18
|
+
sourceAppId?: string;
|
19
|
+
sourceDeviceModel?: string;
|
20
|
+
userId: string;
|
21
|
+
source: Vital.ClientFacingSource;
|
22
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type ClientFacingElectrocardiogramClassification = "sinus_rhythm" | "atrial_fibrillation" | "inconclusive";
|
5
|
+
export declare const ClientFacingElectrocardiogramClassification: {
|
6
|
+
readonly SinusRhythm: "sinus_rhythm";
|
7
|
+
readonly AtrialFibrillation: "atrial_fibrillation";
|
8
|
+
readonly Inconclusive: "inconclusive";
|
9
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.ClientFacingElectrocardiogramClassification = void 0;
|
7
|
+
exports.ClientFacingElectrocardiogramClassification = {
|
8
|
+
SinusRhythm: "sinus_rhythm",
|
9
|
+
AtrialFibrillation: "atrial_fibrillation",
|
10
|
+
Inconclusive: "inconclusive",
|
11
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type ClientFacingElectrocardiogramInconclusiveCause = "high_heart_rate" | "low_heart_rate" | "poor_reading";
|
5
|
+
export declare const ClientFacingElectrocardiogramInconclusiveCause: {
|
6
|
+
readonly HighHeartRate: "high_heart_rate";
|
7
|
+
readonly LowHeartRate: "low_heart_rate";
|
8
|
+
readonly PoorReading: "poor_reading";
|
9
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.ClientFacingElectrocardiogramInconclusiveCause = void 0;
|
7
|
+
exports.ClientFacingElectrocardiogramInconclusiveCause = {
|
8
|
+
HighHeartRate: "high_heart_rate",
|
9
|
+
LowHeartRate: "low_heart_rate",
|
10
|
+
PoorReading: "poor_reading",
|
11
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type ClientFacingElectrocardiogramSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
5
|
+
export declare const ClientFacingElectrocardiogramSourceType: {
|
6
|
+
readonly Unknown: "unknown";
|
7
|
+
readonly Phone: "phone";
|
8
|
+
readonly Watch: "watch";
|
9
|
+
readonly App: "app";
|
10
|
+
readonly MultipleSources: "multiple_sources";
|
11
|
+
readonly Fingerprick: "fingerprick";
|
12
|
+
readonly Cuff: "cuff";
|
13
|
+
readonly ManualScan: "manual_scan";
|
14
|
+
readonly Automatic: "automatic";
|
15
|
+
readonly Scale: "scale";
|
16
|
+
readonly ChestStrap: "chest_strap";
|
17
|
+
readonly Ring: "ring";
|
18
|
+
readonly Lab: "lab";
|
19
|
+
};
|
@@ -0,0 +1,21 @@
|
|
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.ClientFacingElectrocardiogramSourceType = void 0;
|
7
|
+
exports.ClientFacingElectrocardiogramSourceType = {
|
8
|
+
Unknown: "unknown",
|
9
|
+
Phone: "phone",
|
10
|
+
Watch: "watch",
|
11
|
+
App: "app",
|
12
|
+
MultipleSources: "multiple_sources",
|
13
|
+
Fingerprick: "fingerprick",
|
14
|
+
Cuff: "cuff",
|
15
|
+
ManualScan: "manual_scan",
|
16
|
+
Automatic: "automatic",
|
17
|
+
Scale: "scale",
|
18
|
+
ChestStrap: "chest_strap",
|
19
|
+
Ring: "ring",
|
20
|
+
Lab: "lab",
|
21
|
+
};
|
@@ -2,7 +2,8 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
import * as Vital from "../index";
|
5
|
-
export interface
|
5
|
+
export interface ClientFacingMenstrualCycle {
|
6
|
+
id: string;
|
6
7
|
periodStart: string;
|
7
8
|
periodEnd?: string;
|
8
9
|
cycleEnd?: string;
|
@@ -17,5 +18,9 @@ export interface MenstrualCycle {
|
|
17
18
|
homeProgesteroneTest?: Vital.HomeProgesteroneTestEntry[];
|
18
19
|
sexualActivity?: Vital.SexualActivityEntry[];
|
19
20
|
basalBodyTemperature?: Vital.BasalBodyTemperatureEntry[];
|
21
|
+
sourceProvider: Vital.ClientFacingMenstrualCycleSourceProvider;
|
22
|
+
sourceType: Vital.ClientFacingMenstrualCycleSourceType;
|
23
|
+
sourceAppId?: string;
|
24
|
+
userId: string;
|
20
25
|
source: Vital.ClientFacingSource;
|
21
26
|
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type ClientFacingMenstrualCycleSourceType = "unknown" | "phone" | "watch" | "app" | "multiple_sources" | "fingerprick" | "cuff" | "manual_scan" | "automatic" | "scale" | "chest_strap" | "ring" | "lab";
|
5
|
+
export declare const ClientFacingMenstrualCycleSourceType: {
|
6
|
+
readonly Unknown: "unknown";
|
7
|
+
readonly Phone: "phone";
|
8
|
+
readonly Watch: "watch";
|
9
|
+
readonly App: "app";
|
10
|
+
readonly MultipleSources: "multiple_sources";
|
11
|
+
readonly Fingerprick: "fingerprick";
|
12
|
+
readonly Cuff: "cuff";
|
13
|
+
readonly ManualScan: "manual_scan";
|
14
|
+
readonly Automatic: "automatic";
|
15
|
+
readonly Scale: "scale";
|
16
|
+
readonly ChestStrap: "chest_strap";
|
17
|
+
readonly Ring: "ring";
|
18
|
+
readonly Lab: "lab";
|
19
|
+
};
|
@@ -0,0 +1,21 @@
|
|
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.ClientFacingMenstrualCycleSourceType = void 0;
|
7
|
+
exports.ClientFacingMenstrualCycleSourceType = {
|
8
|
+
Unknown: "unknown",
|
9
|
+
Phone: "phone",
|
10
|
+
Watch: "watch",
|
11
|
+
App: "app",
|
12
|
+
MultipleSources: "multiple_sources",
|
13
|
+
Fingerprick: "fingerprick",
|
14
|
+
Cuff: "cuff",
|
15
|
+
ManualScan: "manual_scan",
|
16
|
+
Automatic: "automatic",
|
17
|
+
Scale: "scale",
|
18
|
+
ChestStrap: "chest_strap",
|
19
|
+
Ring: "ring",
|
20
|
+
Lab: "lab",
|
21
|
+
};
|
@@ -1,12 +1,11 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
-
export declare type WorkoutColumnExprWorkout = "session_start" | "session_end" | "title" | "
|
4
|
+
export declare type WorkoutColumnExprWorkout = "session_start" | "session_end" | "title" | "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" | "speed_mean" | "speed_maximum" | "power_source" | "power_mean" | "power_maximum" | "power_weighted_mean" | "steps" | "map" | "source_type" | "source_provider" | "source_app_id";
|
5
5
|
export declare const WorkoutColumnExprWorkout: {
|
6
6
|
readonly SessionStart: "session_start";
|
7
7
|
readonly SessionEnd: "session_end";
|
8
8
|
readonly Title: "title";
|
9
|
-
readonly SportId: "sport_id";
|
10
9
|
readonly SportName: "sport_name";
|
11
10
|
readonly SportSlug: "sport_slug";
|
12
11
|
readonly DurationActiveSecond: "duration_active_second";
|
package/api/types/index.d.ts
CHANGED
@@ -61,6 +61,12 @@ export * from "./ClientFacingCarbohydratesSample";
|
|
61
61
|
export * from "./ClientFacingCholesterolTimeseries";
|
62
62
|
export * from "./ClientFacingDiagnosisInformation";
|
63
63
|
export * from "./ClientFacingDistanceTimeseries";
|
64
|
+
export * from "./ClientFacingElectrocardiogramClassification";
|
65
|
+
export * from "./ClientFacingElectrocardiogramInconclusiveCause";
|
66
|
+
export * from "./ClientFacingElectrocardiogramSourceProvider";
|
67
|
+
export * from "./ClientFacingElectrocardiogramSourceType";
|
68
|
+
export * from "./ClientFacingElectrocardiogram";
|
69
|
+
export * from "./ClientFacingElectrocardiogramResponse";
|
64
70
|
export * from "./ClientFacingElectrocardiogramVoltageTimeseries";
|
65
71
|
export * from "./ClientFacingFloorsClimbedTimeseries";
|
66
72
|
export * from "./ClientFacingFood";
|
@@ -92,6 +98,9 @@ export * from "./ClientFacingLoinc";
|
|
92
98
|
export * from "./ClientFacingMarker";
|
93
99
|
export * from "./ClientFacingMarkerComplete";
|
94
100
|
export * from "./ClientFacingMealResponse";
|
101
|
+
export * from "./ClientFacingMenstrualCycleSourceProvider";
|
102
|
+
export * from "./ClientFacingMenstrualCycleSourceType";
|
103
|
+
export * from "./ClientFacingMenstrualCycle";
|
95
104
|
export * from "./ClientFacingMindfulnessMinutesTimeseries";
|
96
105
|
export * from "./ClientFacingNoteSampleTagsItem";
|
97
106
|
export * from "./ClientFacingNoteSample";
|
@@ -219,7 +228,6 @@ export * from "./Macros";
|
|
219
228
|
export * from "./ManualProviders";
|
220
229
|
export * from "./MarkerType";
|
221
230
|
export * from "./MealInDbBaseClientFacingSource";
|
222
|
-
export * from "./MenstrualCycle";
|
223
231
|
export * from "./MenstrualCycleResponse";
|
224
232
|
export * from "./MenstrualFlowEntryFlow";
|
225
233
|
export * from "./MenstrualFlowEntry";
|
package/api/types/index.js
CHANGED
@@ -77,6 +77,12 @@ __exportStar(require("./ClientFacingCarbohydratesSample"), exports);
|
|
77
77
|
__exportStar(require("./ClientFacingCholesterolTimeseries"), exports);
|
78
78
|
__exportStar(require("./ClientFacingDiagnosisInformation"), exports);
|
79
79
|
__exportStar(require("./ClientFacingDistanceTimeseries"), exports);
|
80
|
+
__exportStar(require("./ClientFacingElectrocardiogramClassification"), exports);
|
81
|
+
__exportStar(require("./ClientFacingElectrocardiogramInconclusiveCause"), exports);
|
82
|
+
__exportStar(require("./ClientFacingElectrocardiogramSourceProvider"), exports);
|
83
|
+
__exportStar(require("./ClientFacingElectrocardiogramSourceType"), exports);
|
84
|
+
__exportStar(require("./ClientFacingElectrocardiogram"), exports);
|
85
|
+
__exportStar(require("./ClientFacingElectrocardiogramResponse"), exports);
|
80
86
|
__exportStar(require("./ClientFacingElectrocardiogramVoltageTimeseries"), exports);
|
81
87
|
__exportStar(require("./ClientFacingFloorsClimbedTimeseries"), exports);
|
82
88
|
__exportStar(require("./ClientFacingFood"), exports);
|
@@ -108,6 +114,9 @@ __exportStar(require("./ClientFacingLoinc"), exports);
|
|
108
114
|
__exportStar(require("./ClientFacingMarker"), exports);
|
109
115
|
__exportStar(require("./ClientFacingMarkerComplete"), exports);
|
110
116
|
__exportStar(require("./ClientFacingMealResponse"), exports);
|
117
|
+
__exportStar(require("./ClientFacingMenstrualCycleSourceProvider"), exports);
|
118
|
+
__exportStar(require("./ClientFacingMenstrualCycleSourceType"), exports);
|
119
|
+
__exportStar(require("./ClientFacingMenstrualCycle"), exports);
|
111
120
|
__exportStar(require("./ClientFacingMindfulnessMinutesTimeseries"), exports);
|
112
121
|
__exportStar(require("./ClientFacingNoteSampleTagsItem"), exports);
|
113
122
|
__exportStar(require("./ClientFacingNoteSample"), exports);
|
@@ -235,7 +244,6 @@ __exportStar(require("./Macros"), exports);
|
|
235
244
|
__exportStar(require("./ManualProviders"), exports);
|
236
245
|
__exportStar(require("./MarkerType"), exports);
|
237
246
|
__exportStar(require("./MealInDbBaseClientFacingSource"), exports);
|
238
|
-
__exportStar(require("./MenstrualCycle"), exports);
|
239
247
|
__exportStar(require("./MenstrualCycleResponse"), exports);
|
240
248
|
__exportStar(require("./MenstrualFlowEntryFlow"), exports);
|
241
249
|
__exportStar(require("./MenstrualFlowEntry"), exports);
|
package/dist/Client.d.ts
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
import * as environments from "./environments";
|
5
5
|
import * as core from "./core";
|
6
6
|
import { Link } from "./api/resources/link/client/Client";
|
7
|
+
import { Electrocardiogram } from "./api/resources/electrocardiogram/client/Client";
|
7
8
|
import { SleepCycle } from "./api/resources/sleepCycle/client/Client";
|
8
9
|
import { Profile } from "./api/resources/profile/client/Client";
|
9
10
|
import { Devices } from "./api/resources/devices/client/Client";
|
@@ -41,6 +42,8 @@ export declare class VitalClient {
|
|
41
42
|
constructor(_options?: VitalClient.Options);
|
42
43
|
protected _link: Link | undefined;
|
43
44
|
get link(): Link;
|
45
|
+
protected _electrocardiogram: Electrocardiogram | undefined;
|
46
|
+
get electrocardiogram(): Electrocardiogram;
|
44
47
|
protected _sleepCycle: SleepCycle | undefined;
|
45
48
|
get sleepCycle(): SleepCycle;
|
46
49
|
protected _profile: Profile | undefined;
|
package/dist/Client.js
CHANGED
@@ -5,24 +5,25 @@
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
6
|
exports.VitalClient = void 0;
|
7
7
|
const Client_1 = require("./api/resources/link/client/Client");
|
8
|
-
const Client_2 = require("./api/resources/
|
9
|
-
const Client_3 = require("./api/resources/
|
10
|
-
const Client_4 = require("./api/resources/
|
11
|
-
const Client_5 = require("./api/resources/
|
12
|
-
const Client_6 = require("./api/resources/
|
13
|
-
const Client_7 = require("./api/resources/
|
14
|
-
const Client_8 = require("./api/resources/
|
15
|
-
const Client_9 = require("./api/resources/
|
16
|
-
const Client_10 = require("./api/resources/
|
17
|
-
const Client_11 = require("./api/resources/
|
18
|
-
const Client_12 = require("./api/resources/
|
19
|
-
const Client_13 = require("./api/resources/
|
20
|
-
const Client_14 = require("./api/resources/
|
21
|
-
const Client_15 = require("./api/resources/
|
22
|
-
const Client_16 = require("./api/resources/
|
23
|
-
const Client_17 = require("./api/resources/
|
24
|
-
const Client_18 = require("./api/resources/
|
25
|
-
const Client_19 = require("./api/resources/
|
8
|
+
const Client_2 = require("./api/resources/electrocardiogram/client/Client");
|
9
|
+
const Client_3 = require("./api/resources/sleepCycle/client/Client");
|
10
|
+
const Client_4 = require("./api/resources/profile/client/Client");
|
11
|
+
const Client_5 = require("./api/resources/devices/client/Client");
|
12
|
+
const Client_6 = require("./api/resources/activity/client/Client");
|
13
|
+
const Client_7 = require("./api/resources/workouts/client/Client");
|
14
|
+
const Client_8 = require("./api/resources/sleep/client/Client");
|
15
|
+
const Client_9 = require("./api/resources/body/client/Client");
|
16
|
+
const Client_10 = require("./api/resources/meal/client/Client");
|
17
|
+
const Client_11 = require("./api/resources/menstrualCycle/client/Client");
|
18
|
+
const Client_12 = require("./api/resources/vitals/client/Client");
|
19
|
+
const Client_13 = require("./api/resources/user/client/Client");
|
20
|
+
const Client_14 = require("./api/resources/team/client/Client");
|
21
|
+
const Client_15 = require("./api/resources/providers/client/Client");
|
22
|
+
const Client_16 = require("./api/resources/introspect/client/Client");
|
23
|
+
const Client_17 = require("./api/resources/labTests/client/Client");
|
24
|
+
const Client_18 = require("./api/resources/testkit/client/Client");
|
25
|
+
const Client_19 = require("./api/resources/insurance/client/Client");
|
26
|
+
const Client_20 = require("./api/resources/aggregate/client/Client");
|
26
27
|
class VitalClient {
|
27
28
|
constructor(_options = {}) {
|
28
29
|
this._options = _options;
|
@@ -31,77 +32,81 @@ class VitalClient {
|
|
31
32
|
var _a;
|
32
33
|
return ((_a = this._link) !== null && _a !== void 0 ? _a : (this._link = new Client_1.Link(this._options)));
|
33
34
|
}
|
35
|
+
get electrocardiogram() {
|
36
|
+
var _a;
|
37
|
+
return ((_a = this._electrocardiogram) !== null && _a !== void 0 ? _a : (this._electrocardiogram = new Client_2.Electrocardiogram(this._options)));
|
38
|
+
}
|
34
39
|
get sleepCycle() {
|
35
40
|
var _a;
|
36
|
-
return ((_a = this._sleepCycle) !== null && _a !== void 0 ? _a : (this._sleepCycle = new
|
41
|
+
return ((_a = this._sleepCycle) !== null && _a !== void 0 ? _a : (this._sleepCycle = new Client_3.SleepCycle(this._options)));
|
37
42
|
}
|
38
43
|
get profile() {
|
39
44
|
var _a;
|
40
|
-
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new
|
45
|
+
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_4.Profile(this._options)));
|
41
46
|
}
|
42
47
|
get devices() {
|
43
48
|
var _a;
|
44
|
-
return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new
|
49
|
+
return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_5.Devices(this._options)));
|
45
50
|
}
|
46
51
|
get activity() {
|
47
52
|
var _a;
|
48
|
-
return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new
|
53
|
+
return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_6.Activity(this._options)));
|
49
54
|
}
|
50
55
|
get workouts() {
|
51
56
|
var _a;
|
52
|
-
return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new
|
57
|
+
return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new Client_7.Workouts(this._options)));
|
53
58
|
}
|
54
59
|
get sleep() {
|
55
60
|
var _a;
|
56
|
-
return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new
|
61
|
+
return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new Client_8.Sleep(this._options)));
|
57
62
|
}
|
58
63
|
get body() {
|
59
64
|
var _a;
|
60
|
-
return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new
|
65
|
+
return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new Client_9.Body(this._options)));
|
61
66
|
}
|
62
67
|
get meal() {
|
63
68
|
var _a;
|
64
|
-
return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new
|
69
|
+
return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new Client_10.Meal(this._options)));
|
65
70
|
}
|
66
71
|
get menstrualCycle() {
|
67
72
|
var _a;
|
68
|
-
return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new
|
73
|
+
return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new Client_11.MenstrualCycle(this._options)));
|
69
74
|
}
|
70
75
|
get vitals() {
|
71
76
|
var _a;
|
72
|
-
return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new
|
77
|
+
return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new Client_12.Vitals(this._options)));
|
73
78
|
}
|
74
79
|
get user() {
|
75
80
|
var _a;
|
76
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new
|
81
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_13.User(this._options)));
|
77
82
|
}
|
78
83
|
get team() {
|
79
84
|
var _a;
|
80
|
-
return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new
|
85
|
+
return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_14.Team(this._options)));
|
81
86
|
}
|
82
87
|
get providers() {
|
83
88
|
var _a;
|
84
|
-
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new
|
89
|
+
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_15.Providers(this._options)));
|
85
90
|
}
|
86
91
|
get introspect() {
|
87
92
|
var _a;
|
88
|
-
return ((_a = this._introspect) !== null && _a !== void 0 ? _a : (this._introspect = new
|
93
|
+
return ((_a = this._introspect) !== null && _a !== void 0 ? _a : (this._introspect = new Client_16.Introspect(this._options)));
|
89
94
|
}
|
90
95
|
get labTests() {
|
91
96
|
var _a;
|
92
|
-
return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new
|
97
|
+
return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_17.LabTests(this._options)));
|
93
98
|
}
|
94
99
|
get testkit() {
|
95
100
|
var _a;
|
96
|
-
return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new
|
101
|
+
return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_18.Testkit(this._options)));
|
97
102
|
}
|
98
103
|
get insurance() {
|
99
104
|
var _a;
|
100
|
-
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new
|
105
|
+
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_19.Insurance(this._options)));
|
101
106
|
}
|
102
107
|
get aggregate() {
|
103
108
|
var _a;
|
104
|
-
return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new
|
109
|
+
return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_20.Aggregate(this._options)));
|
105
110
|
}
|
106
111
|
}
|
107
112
|
exports.VitalClient = VitalClient;
|
@@ -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.145", "User-Agent": "@tryvital/vital-node/3.1.145", "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.145", "User-Agent": "@tryvital/vital-node/3.1.145", "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",
|
@@ -81,7 +81,7 @@ class Aggregate {
|
|
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, `aggregate/v1/user/${encodeURIComponent(userId)}/query`),
|
83
83
|
method: "POST",
|
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.145", "User-Agent": "@tryvital/vital-node/3.1.145", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
requestType: "json",
|
87
87
|
body: serializers.QueryBatch.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.145", "User-Agent": "@tryvital/vital-node/3.1.145", "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.145", "User-Agent": "@tryvital/vital-node/3.1.145", "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.145", "User-Agent": "@tryvital/vital-node/3.1.145", "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",
|