@tryvital/vital-node 3.1.134 → 3.1.136
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 +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.d.ts +26 -0
- package/api/resources/vitals/client/Client.js +216 -56
- package/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.d.ts +31 -0
- package/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.d.ts +31 -0
- package/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.js +5 -0
- package/api/resources/vitals/client/requests/index.d.ts +2 -0
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/AggregateExprArg.d.ts +1 -1
- package/api/types/ChronotypeValueMacroExpr.d.ts +7 -0
- package/api/types/ChronotypeValueMacroExpr.js +5 -0
- package/api/types/ClientFacingAFibBurdenSample.d.ts +20 -0
- package/api/types/ClientFacingAFibBurdenSample.js +5 -0
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +12 -0
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +5 -0
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +12 -0
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +5 -0
- package/api/types/ClientFacingHeartRateAlertSample.d.ts +19 -0
- package/api/types/ClientFacingHeartRateAlertSample.js +5 -0
- package/api/types/ClientFacingHeartRateAlertSampleType.d.ts +9 -0
- package/api/types/ClientFacingHeartRateAlertSampleType.js +11 -0
- package/api/types/ClientFacingResource.d.ts +3 -1
- package/api/types/ClientFacingResource.js +2 -0
- package/api/types/ClientFacingSleepCycle.d.ts +9 -0
- package/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +8 -0
- package/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +5 -0
- package/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +8 -0
- package/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +5 -0
- package/api/types/QueryInstructionSelectItem.d.ts +1 -1
- package/api/types/TimeseriesResource.d.ts +3 -1
- package/api/types/TimeseriesResource.js +2 -0
- package/api/types/index.d.ts +8 -0
- package/api/types/index.js +8 -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 +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.d.ts +26 -0
- package/dist/api/resources/vitals/client/Client.js +216 -56
- package/dist/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.d.ts +31 -0
- package/dist/api/resources/vitals/client/requests/VitalsAfibBurdenGroupedRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.d.ts +31 -0
- package/dist/api/resources/vitals/client/requests/VitalsHeartRateAlertGroupedRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/index.d.ts +2 -0
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/AggregateExprArg.d.ts +1 -1
- package/dist/api/types/ChronotypeValueMacroExpr.d.ts +7 -0
- package/dist/api/types/ChronotypeValueMacroExpr.js +5 -0
- package/dist/api/types/ClientFacingAFibBurdenSample.d.ts +20 -0
- package/dist/api/types/ClientFacingAFibBurdenSample.js +5 -0
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +12 -0
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +5 -0
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +12 -0
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +5 -0
- package/dist/api/types/ClientFacingHeartRateAlertSample.d.ts +19 -0
- package/dist/api/types/ClientFacingHeartRateAlertSample.js +5 -0
- package/dist/api/types/ClientFacingHeartRateAlertSampleType.d.ts +9 -0
- package/dist/api/types/ClientFacingHeartRateAlertSampleType.js +11 -0
- package/dist/api/types/ClientFacingResource.d.ts +3 -1
- package/dist/api/types/ClientFacingResource.js +2 -0
- package/dist/api/types/ClientFacingSleepCycle.d.ts +9 -0
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +8 -0
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +5 -0
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +8 -0
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +5 -0
- package/dist/api/types/QueryInstructionSelectItem.d.ts +1 -1
- package/dist/api/types/TimeseriesResource.d.ts +3 -1
- package/dist/api/types/TimeseriesResource.js +2 -0
- package/dist/api/types/index.d.ts +8 -0
- package/dist/api/types/index.js +8 -0
- package/dist/serialization/types/AggregateExprArg.d.ts +2 -1
- package/dist/serialization/types/AggregateExprArg.js +2 -0
- package/dist/serialization/types/ChronotypeValueMacroExpr.d.ts +13 -0
- package/dist/serialization/types/ChronotypeValueMacroExpr.js +34 -0
- package/dist/serialization/types/ClientFacingAFibBurdenSample.d.ts +19 -0
- package/dist/serialization/types/ClientFacingAFibBurdenSample.js +40 -0
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +15 -0
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +36 -0
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +15 -0
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +36 -0
- package/dist/serialization/types/ClientFacingHeartRateAlertSample.d.ts +20 -0
- package/dist/serialization/types/ClientFacingHeartRateAlertSample.js +41 -0
- package/dist/serialization/types/ClientFacingHeartRateAlertSampleType.d.ts +10 -0
- package/dist/serialization/types/ClientFacingHeartRateAlertSampleType.js +31 -0
- package/dist/serialization/types/ClientFacingResource.d.ts +1 -1
- package/dist/serialization/types/ClientFacingResource.js +2 -0
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +15 -0
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +36 -0
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +15 -0
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +36 -0
- package/dist/serialization/types/QueryInstructionSelectItem.d.ts +2 -1
- package/dist/serialization/types/QueryInstructionSelectItem.js +2 -0
- package/dist/serialization/types/TimeseriesResource.d.ts +1 -1
- package/dist/serialization/types/TimeseriesResource.js +2 -0
- package/dist/serialization/types/index.d.ts +8 -0
- package/dist/serialization/types/index.js +8 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +116 -0
- package/serialization/types/AggregateExprArg.d.ts +2 -1
- package/serialization/types/AggregateExprArg.js +2 -0
- package/serialization/types/ChronotypeValueMacroExpr.d.ts +13 -0
- package/serialization/types/ChronotypeValueMacroExpr.js +34 -0
- package/serialization/types/ClientFacingAFibBurdenSample.d.ts +19 -0
- package/serialization/types/ClientFacingAFibBurdenSample.js +40 -0
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.d.ts +15 -0
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample.js +36 -0
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.d.ts +15 -0
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample.js +36 -0
- package/serialization/types/ClientFacingHeartRateAlertSample.d.ts +20 -0
- package/serialization/types/ClientFacingHeartRateAlertSample.js +41 -0
- package/serialization/types/ClientFacingHeartRateAlertSampleType.d.ts +10 -0
- package/serialization/types/ClientFacingHeartRateAlertSampleType.js +31 -0
- package/serialization/types/ClientFacingResource.d.ts +1 -1
- package/serialization/types/ClientFacingResource.js +2 -0
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.d.ts +15 -0
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingAFibBurdenSample.js +36 -0
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.d.ts +15 -0
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample.js +36 -0
- package/serialization/types/QueryInstructionSelectItem.d.ts +2 -1
- package/serialization/types/QueryInstructionSelectItem.js +2 -0
- package/serialization/types/TimeseriesResource.d.ts +1 -1
- package/serialization/types/TimeseriesResource.js +2 -0
- package/serialization/types/index.d.ts +8 -0
- package/serialization/types/index.js +8 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* @example
|
6
|
+
* {
|
7
|
+
* startDate: "start_date"
|
8
|
+
* }
|
9
|
+
*/
|
10
|
+
export interface VitalsAfibBurdenGroupedRequest {
|
11
|
+
/**
|
12
|
+
* The cursor for fetching the next page, or `null` to fetch the first page.
|
13
|
+
*/
|
14
|
+
cursor?: string;
|
15
|
+
/**
|
16
|
+
* The cursor for fetching the next page, or `null` to fetch the first page.
|
17
|
+
*/
|
18
|
+
nextCursor?: string;
|
19
|
+
/**
|
20
|
+
* Provider oura/strava etc
|
21
|
+
*/
|
22
|
+
provider?: string;
|
23
|
+
/**
|
24
|
+
* Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
|
25
|
+
*/
|
26
|
+
startDate: string;
|
27
|
+
/**
|
28
|
+
* Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59
|
29
|
+
*/
|
30
|
+
endDate?: string;
|
31
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* @example
|
6
|
+
* {
|
7
|
+
* startDate: "start_date"
|
8
|
+
* }
|
9
|
+
*/
|
10
|
+
export interface VitalsHeartRateAlertGroupedRequest {
|
11
|
+
/**
|
12
|
+
* The cursor for fetching the next page, or `null` to fetch the first page.
|
13
|
+
*/
|
14
|
+
cursor?: string;
|
15
|
+
/**
|
16
|
+
* The cursor for fetching the next page, or `null` to fetch the first page.
|
17
|
+
*/
|
18
|
+
nextCursor?: string;
|
19
|
+
/**
|
20
|
+
* Provider oura/strava etc
|
21
|
+
*/
|
22
|
+
provider?: string;
|
23
|
+
/**
|
24
|
+
* Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00
|
25
|
+
*/
|
26
|
+
startDate: string;
|
27
|
+
/**
|
28
|
+
* Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59
|
29
|
+
*/
|
30
|
+
endDate?: string;
|
31
|
+
}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
export { type VitalsHeartRateAlertGroupedRequest } from "./VitalsHeartRateAlertGroupedRequest";
|
2
|
+
export { type VitalsAfibBurdenGroupedRequest } from "./VitalsAfibBurdenGroupedRequest";
|
1
3
|
export { type VitalsWorkoutDurationGroupedRequest } from "./VitalsWorkoutDurationGroupedRequest";
|
2
4
|
export { type VitalsVo2MaxGroupedRequest } from "./VitalsVo2MaxGroupedRequest";
|
3
5
|
export { type VitalsStressLevelGroupedRequest } from "./VitalsStressLevelGroupedRequest";
|
@@ -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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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,
|
@@ -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.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
|
5
|
+
export declare type AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export interface ClientFacingAFibBurdenSample {
|
5
|
+
/** Deprecated */
|
6
|
+
id?: number;
|
7
|
+
/** Time zone UTC offset in seconds. Positive offset indicates east of UTC; negative offset indicates west of UTC; and null indicates the time zone information is unavailable at source. */
|
8
|
+
timezoneOffset?: number;
|
9
|
+
/** The reading type of the measurement. This is applicable only to Cholesterol, IGG, IGE and InsulinInjection. */
|
10
|
+
type?: string;
|
11
|
+
unit: "%";
|
12
|
+
/** Depracated. The start time (inclusive) of the interval. */
|
13
|
+
timestamp: string;
|
14
|
+
/** The start time (inclusive) of the interval. */
|
15
|
+
start: string;
|
16
|
+
/** The end time (exclusive) of the interval. */
|
17
|
+
end: string;
|
18
|
+
/** The recorded value for the interval. */
|
19
|
+
value: number;
|
20
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample {
|
6
|
+
/** For each matching provider or lab, a list of grouped timeseries values. */
|
7
|
+
groups: Record<string, Vital.ClientFacingTimeseriesGroupClientFacingAFibBurdenSample[]>;
|
8
|
+
/** The cursor for fetching the next page, or `null` if there is no more data. */
|
9
|
+
next?: string;
|
10
|
+
/** The cursor for fetching the next page, or `null` if there is no more data. */
|
11
|
+
nextCursor?: string;
|
12
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample {
|
6
|
+
/** For each matching provider or lab, a list of grouped timeseries values. */
|
7
|
+
groups: Record<string, Vital.ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample[]>;
|
8
|
+
/** The cursor for fetching the next page, or `null` if there is no more data. */
|
9
|
+
next?: string;
|
10
|
+
/** The cursor for fetching the next page, or `null` if there is no more data. */
|
11
|
+
nextCursor?: string;
|
12
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface ClientFacingHeartRateAlertSample {
|
6
|
+
/** Deprecated */
|
7
|
+
id?: number;
|
8
|
+
/** Time zone UTC offset in seconds. Positive offset indicates east of UTC; negative offset indicates west of UTC; and null indicates the time zone information is unavailable at source. */
|
9
|
+
timezoneOffset?: number;
|
10
|
+
type: Vital.ClientFacingHeartRateAlertSampleType;
|
11
|
+
unit: "count";
|
12
|
+
/** Depracated. The start time (inclusive) of the interval. */
|
13
|
+
timestamp: string;
|
14
|
+
/** The start time (inclusive) of the interval. */
|
15
|
+
start: string;
|
16
|
+
/** The end time (exclusive) of the interval. */
|
17
|
+
end: string;
|
18
|
+
value: number;
|
19
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type ClientFacingHeartRateAlertSampleType = "low_heart_rate" | "high_heart_rate" | "irregular_rhythm";
|
5
|
+
export declare const ClientFacingHeartRateAlertSampleType: {
|
6
|
+
readonly LowHeartRate: "low_heart_rate";
|
7
|
+
readonly HighHeartRate: "high_heart_rate";
|
8
|
+
readonly IrregularRhythm: "irregular_rhythm";
|
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.ClientFacingHeartRateAlertSampleType = void 0;
|
7
|
+
exports.ClientFacingHeartRateAlertSampleType = {
|
8
|
+
LowHeartRate: "low_heart_rate",
|
9
|
+
HighHeartRate: "high_heart_rate",
|
10
|
+
IrregularRhythm: "irregular_rhythm",
|
11
|
+
};
|
@@ -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 ClientFacingResource = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram_voltage" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
|
4
|
+
export declare type ClientFacingResource = "profile" | "activity" | "sleep" | "body" | "workouts" | "workout_stream" | "connection" | "order" | "result" | "appointment" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "blood_oxygen" | "blood_pressure" | "cholesterol" | "device" | "weight" | "fat" | "body_temperature" | "body_temperature_delta" | "meal" | "water" | "caffeine" | "mindfulness_minutes" | "steps" | "calories_active" | "distance" | "floors_climbed" | "respiratory_rate" | "vo2_max" | "calories_basal" | "stress_level" | "menstrual_cycle" | "sleep_cycle" | "electrocardiogram_voltage" | "afib_burden" | "heart_rate_alert" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note" | "sleep_stream";
|
5
5
|
export declare const ClientFacingResource: {
|
6
6
|
readonly Profile: "profile";
|
7
7
|
readonly Activity: "activity";
|
@@ -42,6 +42,8 @@ export declare const ClientFacingResource: {
|
|
42
42
|
readonly MenstrualCycle: "menstrual_cycle";
|
43
43
|
readonly SleepCycle: "sleep_cycle";
|
44
44
|
readonly ElectrocardiogramVoltage: "electrocardiogram_voltage";
|
45
|
+
readonly AfibBurden: "afib_burden";
|
46
|
+
readonly HeartRateAlert: "heart_rate_alert";
|
45
47
|
readonly WorkoutDuration: "workout_duration";
|
46
48
|
readonly InsulinInjection: "insulin_injection";
|
47
49
|
readonly Carbohydrates: "carbohydrates";
|
@@ -44,6 +44,8 @@ exports.ClientFacingResource = {
|
|
44
44
|
MenstrualCycle: "menstrual_cycle",
|
45
45
|
SleepCycle: "sleep_cycle",
|
46
46
|
ElectrocardiogramVoltage: "electrocardiogram_voltage",
|
47
|
+
AfibBurden: "afib_burden",
|
48
|
+
HeartRateAlert: "heart_rate_alert",
|
47
49
|
WorkoutDuration: "workout_duration",
|
48
50
|
InsulinInjection: "insulin_injection",
|
49
51
|
Carbohydrates: "carbohydrates",
|
@@ -9,6 +9,15 @@ export interface ClientFacingSleepCycle {
|
|
9
9
|
sessionEnd: Date;
|
10
10
|
stageStartOffsetSecond: number[];
|
11
11
|
stageEndOffsetSecond: number[];
|
12
|
+
/**
|
13
|
+
* Sleep stage classification:
|
14
|
+
* `-1`: Unknown or unclassified sleep stage;
|
15
|
+
* `1`: Deep sleep;
|
16
|
+
* `2`: Light/non-REM sleep;
|
17
|
+
* `3`: Rapid Eye Movement sleep;
|
18
|
+
* `4`: Awake period;
|
19
|
+
* `5`: Manually classified stage.
|
20
|
+
*/
|
12
21
|
stageType: Vital.VitalSleepStage[];
|
13
22
|
timeZone?: string;
|
14
23
|
sourceProvider: Vital.ClientFacingSleepCycleSourceProvider;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface ClientFacingTimeseriesGroupClientFacingAFibBurdenSample {
|
6
|
+
source: Vital.ClientFacingSource;
|
7
|
+
data: Vital.ClientFacingAFibBurdenSample[];
|
8
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../index";
|
5
|
+
export interface ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample {
|
6
|
+
source: Vital.ClientFacingSource;
|
7
|
+
data: Vital.ClientFacingHeartRateAlertSample[];
|
8
|
+
}
|
@@ -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.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
|
5
|
+
export declare type QueryInstructionSelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.GroupKeyColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
|
@@ -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 TimeseriesResource = "calories_active" | "calories_basal" | "distance" | "blood_oxygen" | "blood_pressure" | "body_fat" | "body_weight" | "body_temperature" | "body_temperature_delta" | "cholesterol" | "cholesterol/ldl" | "cholesterol/hdl" | "cholesterol/total" | "cholesterol/triglycerides" | "electrocardiogram_voltage" | "floors_climbed" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "respiratory_rate" | "steps" | "stress_level" | "vo2_max" | "water" | "caffeine" | "mindfulness_minutes" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note";
|
4
|
+
export declare type TimeseriesResource = "calories_active" | "calories_basal" | "distance" | "blood_oxygen" | "blood_pressure" | "body_fat" | "body_weight" | "body_temperature" | "body_temperature_delta" | "cholesterol" | "cholesterol/ldl" | "cholesterol/hdl" | "cholesterol/total" | "cholesterol/triglycerides" | "electrocardiogram_voltage" | "floors_climbed" | "glucose" | "heartrate" | "hrv" | "hypnogram" | "ige" | "igg" | "respiratory_rate" | "steps" | "stress_level" | "vo2_max" | "water" | "caffeine" | "mindfulness_minutes" | "afib_burden" | "heart_rate_alert" | "workout_duration" | "insulin_injection" | "carbohydrates" | "note";
|
5
5
|
export declare const TimeseriesResource: {
|
6
6
|
readonly CaloriesActive: "calories_active";
|
7
7
|
readonly CaloriesBasal: "calories_basal";
|
@@ -32,6 +32,8 @@ export declare const TimeseriesResource: {
|
|
32
32
|
readonly Water: "water";
|
33
33
|
readonly Caffeine: "caffeine";
|
34
34
|
readonly MindfulnessMinutes: "mindfulness_minutes";
|
35
|
+
readonly AfibBurden: "afib_burden";
|
36
|
+
readonly HeartRateAlert: "heart_rate_alert";
|
35
37
|
readonly WorkoutDuration: "workout_duration";
|
36
38
|
readonly InsulinInjection: "insulin_injection";
|
37
39
|
readonly Carbohydrates: "carbohydrates";
|
@@ -34,6 +34,8 @@ exports.TimeseriesResource = {
|
|
34
34
|
Water: "water",
|
35
35
|
Caffeine: "caffeine",
|
36
36
|
MindfulnessMinutes: "mindfulness_minutes",
|
37
|
+
AfibBurden: "afib_burden",
|
38
|
+
HeartRateAlert: "heart_rate_alert",
|
37
39
|
WorkoutDuration: "workout_duration",
|
38
40
|
InsulinInjection: "insulin_injection",
|
39
41
|
Carbohydrates: "carbohydrates",
|
package/api/types/index.d.ts
CHANGED
@@ -32,8 +32,10 @@ export * from "./BodyColumnExpr";
|
|
32
32
|
export * from "./BodyV2InDb";
|
33
33
|
export * from "./CervicalMucusEntryQuality";
|
34
34
|
export * from "./CervicalMucusEntry";
|
35
|
+
export * from "./ChronotypeValueMacroExpr";
|
35
36
|
export * from "./ClientActivityResponse";
|
36
37
|
export * from "./ClientBodyResponse";
|
38
|
+
export * from "./ClientFacingAFibBurdenSample";
|
37
39
|
export * from "./ClientFacingActivity";
|
38
40
|
export * from "./ClientFacingApiKey";
|
39
41
|
export * from "./ClientFacingAppointment";
|
@@ -61,14 +63,18 @@ export * from "./ClientFacingElectrocardiogramVoltageTimeseries";
|
|
61
63
|
export * from "./ClientFacingFloorsClimbedTimeseries";
|
62
64
|
export * from "./ClientFacingFood";
|
63
65
|
export * from "./ClientFacingGlucoseTimeseries";
|
66
|
+
export * from "./ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample";
|
64
67
|
export * from "./ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample";
|
65
68
|
export * from "./ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample";
|
66
69
|
export * from "./ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample";
|
70
|
+
export * from "./ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample";
|
67
71
|
export * from "./ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample";
|
68
72
|
export * from "./ClientFacingGroupedTimeseriesResponseClientFacingNoteSample";
|
69
73
|
export * from "./ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample";
|
70
74
|
export * from "./ClientFacingHrvTimeseries";
|
71
75
|
export * from "./ClientFacingHeartRate";
|
76
|
+
export * from "./ClientFacingHeartRateAlertSampleType";
|
77
|
+
export * from "./ClientFacingHeartRateAlertSample";
|
72
78
|
export * from "./ClientFacingHeartRateTimeseries";
|
73
79
|
export * from "./ClientFacingHypnogramTimeseries";
|
74
80
|
export * from "./ClientFacingIgeTimeseries";
|
@@ -124,9 +130,11 @@ export * from "./ClientFacingStressLevelTimeseries";
|
|
124
130
|
export * from "./ClientFacingTeam";
|
125
131
|
export * from "./ClientFacingTestKitOrderDetails";
|
126
132
|
export * from "./ClientFacingTestkitOrder";
|
133
|
+
export * from "./ClientFacingTimeseriesGroupClientFacingAFibBurdenSample";
|
127
134
|
export * from "./ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample";
|
128
135
|
export * from "./ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample";
|
129
136
|
export * from "./ClientFacingTimeseriesGroupClientFacingCarbohydratesSample";
|
137
|
+
export * from "./ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample";
|
130
138
|
export * from "./ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample";
|
131
139
|
export * from "./ClientFacingTimeseriesGroupClientFacingNoteSample";
|
132
140
|
export * from "./ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample";
|
package/api/types/index.js
CHANGED
@@ -48,8 +48,10 @@ __exportStar(require("./BodyColumnExpr"), exports);
|
|
48
48
|
__exportStar(require("./BodyV2InDb"), exports);
|
49
49
|
__exportStar(require("./CervicalMucusEntryQuality"), exports);
|
50
50
|
__exportStar(require("./CervicalMucusEntry"), exports);
|
51
|
+
__exportStar(require("./ChronotypeValueMacroExpr"), exports);
|
51
52
|
__exportStar(require("./ClientActivityResponse"), exports);
|
52
53
|
__exportStar(require("./ClientBodyResponse"), exports);
|
54
|
+
__exportStar(require("./ClientFacingAFibBurdenSample"), exports);
|
53
55
|
__exportStar(require("./ClientFacingActivity"), exports);
|
54
56
|
__exportStar(require("./ClientFacingApiKey"), exports);
|
55
57
|
__exportStar(require("./ClientFacingAppointment"), exports);
|
@@ -77,14 +79,18 @@ __exportStar(require("./ClientFacingElectrocardiogramVoltageTimeseries"), export
|
|
77
79
|
__exportStar(require("./ClientFacingFloorsClimbedTimeseries"), exports);
|
78
80
|
__exportStar(require("./ClientFacingFood"), exports);
|
79
81
|
__exportStar(require("./ClientFacingGlucoseTimeseries"), exports);
|
82
|
+
__exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingAFibBurdenSample"), exports);
|
80
83
|
__exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample"), exports);
|
81
84
|
__exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample"), exports);
|
82
85
|
__exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample"), exports);
|
86
|
+
__exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingHeartRateAlertSample"), exports);
|
83
87
|
__exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample"), exports);
|
84
88
|
__exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingNoteSample"), exports);
|
85
89
|
__exportStar(require("./ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample"), exports);
|
86
90
|
__exportStar(require("./ClientFacingHrvTimeseries"), exports);
|
87
91
|
__exportStar(require("./ClientFacingHeartRate"), exports);
|
92
|
+
__exportStar(require("./ClientFacingHeartRateAlertSampleType"), exports);
|
93
|
+
__exportStar(require("./ClientFacingHeartRateAlertSample"), exports);
|
88
94
|
__exportStar(require("./ClientFacingHeartRateTimeseries"), exports);
|
89
95
|
__exportStar(require("./ClientFacingHypnogramTimeseries"), exports);
|
90
96
|
__exportStar(require("./ClientFacingIgeTimeseries"), exports);
|
@@ -140,9 +146,11 @@ __exportStar(require("./ClientFacingStressLevelTimeseries"), exports);
|
|
140
146
|
__exportStar(require("./ClientFacingTeam"), exports);
|
141
147
|
__exportStar(require("./ClientFacingTestKitOrderDetails"), exports);
|
142
148
|
__exportStar(require("./ClientFacingTestkitOrder"), exports);
|
149
|
+
__exportStar(require("./ClientFacingTimeseriesGroupClientFacingAFibBurdenSample"), exports);
|
143
150
|
__exportStar(require("./ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample"), exports);
|
144
151
|
__exportStar(require("./ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample"), exports);
|
145
152
|
__exportStar(require("./ClientFacingTimeseriesGroupClientFacingCarbohydratesSample"), exports);
|
153
|
+
__exportStar(require("./ClientFacingTimeseriesGroupClientFacingHeartRateAlertSample"), exports);
|
146
154
|
__exportStar(require("./ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample"), exports);
|
147
155
|
__exportStar(require("./ClientFacingTimeseriesGroupClientFacingNoteSample"), exports);
|
148
156
|
__exportStar(require("./ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample"), 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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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/query_one/${encodeURIComponent(userId)}`),
|
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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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.136", "User-Agent": "@tryvital/vital-node/3.1.136", "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",
|