@tryvital/vital-node 3.1.303 → 3.1.305
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 +3 -3
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/electrocardiogram/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.js +41 -41
- package/api/resources/link/client/Client.js +19 -19
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/order/client/Client.js +1 -1
- package/api/resources/payor/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 +78 -78
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/BloodPressureTimeseriesExpr.d.ts +1 -0
- package/api/types/BloodPressureTimeseriesExprField.d.ts +3 -0
- package/api/types/ClientFacingActivity.d.ts +1 -1
- package/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
- package/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
- package/api/types/ClientFacingElectrocardiogram.d.ts +2 -0
- package/api/types/ClientFacingProfile.d.ts +2 -0
- package/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -0
- package/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
- package/api/types/DatePartExpr.d.ts +1 -0
- package/api/types/DatePartExprDatePart.d.ts +3 -0
- package/api/types/DiscreteTimeseriesExpr.d.ts +1 -0
- package/api/types/DiscreteTimeseriesExprField.d.ts +3 -0
- package/api/types/IntervalTimeseriesExpr.d.ts +1 -0
- package/api/types/IntervalTimeseriesExprField.d.ts +3 -0
- package/api/types/NoteTimeseriesExpr.d.ts +1 -0
- package/api/types/NoteTimeseriesExprField.d.ts +3 -0
- package/api/types/ProviderLinkResponse.d.ts +1 -1
- package/api/types/Sex.d.ts +12 -0
- package/api/types/Sex.js +11 -0
- package/api/types/SourceColumnExpr.d.ts +1 -0
- package/api/types/SourceColumnExprSource.d.ts +3 -0
- package/api/types/TemperatureTimeseriesExpr.d.ts +1 -0
- package/api/types/TemperatureTimeseriesExprField.d.ts +3 -0
- package/api/types/WorkoutDurationTimeseriesExpr.d.ts +1 -0
- package/api/types/WorkoutDurationTimeseriesExprField.d.ts +3 -0
- package/api/types/index.d.ts +1 -0
- package/api/types/index.js +1 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +3 -3
- 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.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.js +41 -41
- package/dist/api/resources/link/client/Client.js +19 -19
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/order/client/Client.js +1 -1
- package/dist/api/resources/payor/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 +78 -78
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/BloodPressureTimeseriesExpr.d.ts +1 -0
- package/dist/api/types/BloodPressureTimeseriesExprField.d.ts +3 -0
- package/dist/api/types/ClientFacingActivity.d.ts +1 -1
- package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
- package/dist/api/types/ClientFacingBodyTemperatureSample.d.ts +1 -1
- package/dist/api/types/ClientFacingElectrocardiogram.d.ts +2 -0
- package/dist/api/types/ClientFacingProfile.d.ts +2 -0
- package/dist/api/types/ClientFacingSleepBreathingDisturbanceSample.d.ts +1 -0
- package/dist/api/types/ClientFacingWorkoutDurationSample.d.ts +1 -1
- package/dist/api/types/DatePartExpr.d.ts +1 -0
- package/dist/api/types/DatePartExprDatePart.d.ts +3 -0
- package/dist/api/types/DiscreteTimeseriesExpr.d.ts +1 -0
- package/dist/api/types/DiscreteTimeseriesExprField.d.ts +3 -0
- package/dist/api/types/IntervalTimeseriesExpr.d.ts +1 -0
- package/dist/api/types/IntervalTimeseriesExprField.d.ts +3 -0
- package/dist/api/types/NoteTimeseriesExpr.d.ts +1 -0
- package/dist/api/types/NoteTimeseriesExprField.d.ts +3 -0
- package/dist/api/types/ProviderLinkResponse.d.ts +1 -1
- package/dist/api/types/Sex.d.ts +12 -0
- package/dist/api/types/Sex.js +11 -0
- package/dist/api/types/SourceColumnExpr.d.ts +1 -0
- package/dist/api/types/SourceColumnExprSource.d.ts +3 -0
- package/dist/api/types/TemperatureTimeseriesExpr.d.ts +1 -0
- package/dist/api/types/TemperatureTimeseriesExprField.d.ts +3 -0
- package/dist/api/types/WorkoutDurationTimeseriesExpr.d.ts +1 -0
- package/dist/api/types/WorkoutDurationTimeseriesExprField.d.ts +3 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/dist/serialization/types/ClientFacingProfile.d.ts +4 -0
- package/dist/serialization/types/ClientFacingProfile.js +4 -0
- package/dist/serialization/types/Sex.d.ts +10 -0
- package/dist/serialization/types/Sex.js +35 -0
- package/dist/serialization/types/index.d.ts +1 -0
- package/dist/serialization/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ClientFacingProfile.d.ts +4 -0
- package/serialization/types/ClientFacingProfile.js +4 -0
- package/serialization/types/Sex.d.ts +10 -0
- package/serialization/types/Sex.js +35 -0
- package/serialization/types/index.d.ts +1 -0
- package/serialization/types/index.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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,
|
@@ -1,6 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/**
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
6
|
+
*/
|
4
7
|
export declare type BloodPressureTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "systolic" | "diastolic";
|
5
8
|
export declare const BloodPressureTimeseriesExprField: {
|
6
9
|
readonly SourceProvider: "source_provider";
|
@@ -30,7 +30,7 @@ export interface ClientFacingActivity {
|
|
30
30
|
source: Vital.ClientFacingSource;
|
31
31
|
/** Number of floors climbed by the user::count */
|
32
32
|
floorsClimbed?: number;
|
33
|
-
/**
|
33
|
+
/** The IANA time zone identifier. Example: 'Europe/London'. */
|
34
34
|
timeZone?: string;
|
35
35
|
/** Timezone offset from UTC as seconds. For example, EEST (Eastern European Summer Time, +3h) is 10800. PST (Pacific Standard Time, -8h) is -28800::seconds */
|
36
36
|
timezoneOffset?: number;
|
@@ -18,6 +18,6 @@ export interface ClientFacingBodyTemperatureDeltaSample {
|
|
18
18
|
end: Date;
|
19
19
|
/** The recorded value for the interval. */
|
20
20
|
value: number;
|
21
|
-
/** Location of the temperature sensor. */
|
21
|
+
/** Location of the temperature sensor. ℹ️ This enum is non-exhaustive. */
|
22
22
|
sensorLocation?: Vital.ClientFacingBodyTemperatureDeltaSampleSensorLocation;
|
23
23
|
}
|
@@ -18,6 +18,6 @@ export interface ClientFacingBodyTemperatureSample {
|
|
18
18
|
end: Date;
|
19
19
|
/** The recorded value for the interval. */
|
20
20
|
value: number;
|
21
|
-
/** Location of the temperature sensor. */
|
21
|
+
/** Location of the temperature sensor. ℹ️ This enum is non-exhaustive. */
|
22
22
|
sensorLocation?: Vital.ClientFacingBodyTemperatureSampleSensorLocation;
|
23
23
|
}
|
@@ -9,7 +9,9 @@ export interface ClientFacingElectrocardiogram {
|
|
9
9
|
voltageSampleCount: number;
|
10
10
|
heartRateMean?: number;
|
11
11
|
samplingFrequencyHz?: number;
|
12
|
+
/** ℹ️ This enum is non-exhaustive. */
|
12
13
|
classification?: Vital.ClientFacingElectrocardiogramClassification;
|
14
|
+
/** ℹ️ This enum is non-exhaustive. */
|
13
15
|
inconclusiveCause?: Vital.ClientFacingElectrocardiogramInconclusiveCause;
|
14
16
|
algorithmVersion?: string;
|
15
17
|
timeZone?: string;
|
@@ -7,6 +7,7 @@ export interface ClientFacingSleepBreathingDisturbanceSample {
|
|
7
7
|
id?: number;
|
8
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
9
|
timezoneOffset?: number;
|
10
|
+
/** ℹ️ This enum is non-exhaustive. */
|
10
11
|
type?: Vital.ClientFacingSleepBreathingDisturbanceSampleType;
|
11
12
|
unit: "count";
|
12
13
|
/** Depracated. The start time (inclusive) of the interval. */
|
@@ -18,6 +18,6 @@ export interface ClientFacingWorkoutDurationSample {
|
|
18
18
|
end: Date;
|
19
19
|
/** The recorded value for the interval. */
|
20
20
|
value: number;
|
21
|
-
/** Workout intensity. */
|
21
|
+
/** Workout intensity. ℹ️ This enum is non-exhaustive. */
|
22
22
|
intensity?: Vital.ClientFacingWorkoutDurationSampleIntensity;
|
23
23
|
}
|
@@ -1,6 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/**
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
6
|
+
*/
|
4
7
|
export declare type DatePartExprDatePart = "minute" | "hour" | "day" | "week" | "month" | "year" | "weekday" | "week_of_year" | "day_of_year";
|
5
8
|
export declare const DatePartExprDatePart: {
|
6
9
|
readonly Minute: "minute";
|
@@ -1,6 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/**
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
6
|
+
*/
|
4
7
|
export declare type DiscreteTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "value";
|
5
8
|
export declare const DiscreteTimeseriesExprField: {
|
6
9
|
readonly SourceProvider: "source_provider";
|
@@ -1,6 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/**
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
6
|
+
*/
|
4
7
|
export declare type IntervalTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value";
|
5
8
|
export declare const IntervalTimeseriesExprField: {
|
6
9
|
readonly SourceProvider: "source_provider";
|
@@ -1,6 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/**
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
6
|
+
*/
|
4
7
|
export declare type NoteTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "tags" | "content";
|
5
8
|
export declare const NoteTimeseriesExprField: {
|
6
9
|
readonly SourceProvider: "source_provider";
|
@@ -7,7 +7,7 @@ export interface ProviderLinkResponse {
|
|
7
7
|
state: Vital.ProviderLinkResponseState;
|
8
8
|
/** The redirect URL you supplied when creating the Link Token (via `POST /v2/link/token`). */
|
9
9
|
redirectUrl?: string;
|
10
|
-
/** The Link Error Type. This field is populated only when state is `error`. */
|
10
|
+
/** The Link Error Type. This field is populated only when state is `error`. ℹ️ This enum is non-exhaustive. */
|
11
11
|
errorType?: Vital.ProviderLinkResponseErrorType;
|
12
12
|
/** A developer-readable debug description of the Link Error. This field is populated only when state is `error`. */
|
13
13
|
error?: string;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
/**
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
6
|
+
*/
|
7
|
+
export declare type Sex = "female" | "male" | "other";
|
8
|
+
export declare const Sex: {
|
9
|
+
readonly Female: "female";
|
10
|
+
readonly Male: "male";
|
11
|
+
readonly Other: "other";
|
12
|
+
};
|
package/api/types/Sex.js
ADDED
@@ -1,6 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/**
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
6
|
+
*/
|
4
7
|
export declare type SourceColumnExprSource = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport";
|
5
8
|
export declare const SourceColumnExprSource: {
|
6
9
|
readonly SourceProvider: "source_provider";
|
@@ -5,5 +5,6 @@ import * as Vital from "../index";
|
|
5
5
|
export interface TemperatureTimeseriesExpr {
|
6
6
|
/** ℹ️ This enum is non-exhaustive. */
|
7
7
|
timeseries: Vital.TemperatureTimeseriesExprTimeseries;
|
8
|
+
/** ℹ️ This enum is non-exhaustive. */
|
8
9
|
field: Vital.TemperatureTimeseriesExprField;
|
9
10
|
}
|
@@ -1,6 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/**
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
6
|
+
*/
|
4
7
|
export declare type TemperatureTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value" | "sensor_location";
|
5
8
|
export declare const TemperatureTimeseriesExprField: {
|
6
9
|
readonly SourceProvider: "source_provider";
|
@@ -1,6 +1,9 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/**
|
5
|
+
* ℹ️ This enum is non-exhaustive.
|
6
|
+
*/
|
4
7
|
export declare type WorkoutDurationTimeseriesExprField = "source_provider" | "source_type" | "source_app_id" | "source_workout_id" | "source_sport" | "timezone_offset" | "type" | "duration" | "value" | "intensity";
|
5
8
|
export declare const WorkoutDurationTimeseriesExprField: {
|
6
9
|
readonly SourceProvider: "source_provider";
|
package/api/types/index.d.ts
CHANGED
@@ -348,6 +348,7 @@ export * from "./SampleDataDateReported";
|
|
348
348
|
export * from "./SampleData";
|
349
349
|
export * from "./ScopeRequirementsGrants";
|
350
350
|
export * from "./ScopeRequirementsStr";
|
351
|
+
export * from "./Sex";
|
351
352
|
export * from "./SexualActivityEntry";
|
352
353
|
export * from "./SexualOrientation";
|
353
354
|
export * from "./ShippingAddress";
|
package/api/types/index.js
CHANGED
@@ -364,6 +364,7 @@ __exportStar(require("./SampleDataDateReported"), exports);
|
|
364
364
|
__exportStar(require("./SampleData"), exports);
|
365
365
|
__exportStar(require("./ScopeRequirementsGrants"), exports);
|
366
366
|
__exportStar(require("./ScopeRequirementsStr"), exports);
|
367
|
+
__exportStar(require("./Sex"), exports);
|
367
368
|
__exportStar(require("./SexualActivityEntry"), exports);
|
368
369
|
__exportStar(require("./SexualOrientation"), exports);
|
369
370
|
__exportStar(require("./ShippingAddress"), 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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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" }),
|
@@ -144,7 +144,7 @@ class Aggregate {
|
|
144
144
|
const _response = yield core.fetcher({
|
145
145
|
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)}/continuous_query/${encodeURIComponent(queryIdOrSlug)}/result_table`),
|
146
146
|
method: "GET",
|
147
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
147
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.305", "User-Agent": "@tryvital/vital-node/3.1.305", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
|
148
148
|
contentType: "application/json",
|
149
149
|
requestType: "json",
|
150
150
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -215,7 +215,7 @@ class Aggregate {
|
|
215
215
|
const _response = yield core.fetcher({
|
216
216
|
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)}/continuous_query/${encodeURIComponent(queryIdOrSlug)}/task_history`),
|
217
217
|
method: "GET",
|
218
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
218
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.305", "User-Agent": "@tryvital/vital-node/3.1.305", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
219
219
|
contentType: "application/json",
|
220
220
|
queryParameters: _queryParams,
|
221
221
|
requestType: "json",
|
@@ -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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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",
|
@@ -78,7 +78,7 @@ class Electrocardiogram {
|
|
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/electrocardiogram/${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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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",
|
@@ -75,7 +75,7 @@ class Insurance {
|
|
75
75
|
const _response = yield core.fetcher({
|
76
76
|
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"),
|
77
77
|
method: "GET",
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.305", "User-Agent": "@tryvital/vital-node/3.1.305", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
79
79
|
contentType: "application/json",
|
80
80
|
queryParameters: _queryParams,
|
81
81
|
requestType: "json",
|
@@ -137,7 +137,7 @@ class Insurance {
|
|
137
137
|
const _response = yield core.fetcher({
|
138
138
|
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"),
|
139
139
|
method: "POST",
|
140
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
140
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.305", "User-Agent": "@tryvital/vital-node/3.1.305", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
141
141
|
contentType: "application/json",
|
142
142
|
requestType: "json",
|
143
143
|
body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -204,7 +204,7 @@ class Insurance {
|
|
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/insurance/search/diagnosis"),
|
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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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",
|
@@ -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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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.305", "User-Agent": "@tryvital/vital-node/3.1.305", "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",
|