@tryvital/vital-node 3.1.146 → 3.1.147
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/electrocardiogram/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.js +58 -58
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/AggregateExprArg.d.ts +1 -1
- package/api/types/QuerySelectItem.d.ts +1 -1
- 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.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.js +58 -58
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/AggregateExprArg.d.ts +1 -1
- package/dist/api/types/QuerySelectItem.d.ts +1 -1
- package/dist/serialization/types/AggregateExprArg.d.ts +1 -2
- package/dist/serialization/types/AggregateExprArg.js +0 -2
- package/dist/serialization/types/QuerySelectItem.d.ts +2 -2
- package/dist/serialization/types/QuerySelectItem.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +1051 -0
- package/serialization/types/AggregateExprArg.d.ts +1 -2
- package/serialization/types/AggregateExprArg.js +0 -2
- package/serialization/types/QuerySelectItem.d.ts +2 -2
- package/serialization/types/QuerySelectItem.js +2 -2
- 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.147", "User-Agent": "@tryvital/vital-node/3.1.147", "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.147", "User-Agent": "@tryvital/vital-node/3.1.147", "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.147", "User-Agent": "@tryvital/vital-node/3.1.147", "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.
|
5
|
+
export declare type AggregateExprArg = Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
|
@@ -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 QuerySelectItem = Vital.AggregateExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.
|
5
|
+
export declare type QuerySelectItem = Vital.AggregateExpr | Vital.GroupKeyColumnExpr | Vital.SleepColumnExpr | Vital.ActivityColumnExpr | Vital.WorkoutColumnExpr | Vital.BodyColumnExpr | Vital.IndexColumnExpr | Vital.SleepScoreValueMacroExpr | Vital.ChronotypeValueMacroExpr | Vital.UnrecognizedValueMacroExpr;
|
@@ -9,11 +9,10 @@ import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
|
9
9
|
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
10
10
|
import { BodyColumnExpr } from "./BodyColumnExpr";
|
11
11
|
import { IndexColumnExpr } from "./IndexColumnExpr";
|
12
|
-
import { GroupKeyColumnExpr } from "./GroupKeyColumnExpr";
|
13
12
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
14
13
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
15
14
|
import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
|
16
15
|
export declare const AggregateExprArg: core.serialization.Schema<serializers.AggregateExprArg.Raw, Vital.AggregateExprArg>;
|
17
16
|
export declare namespace AggregateExprArg {
|
18
|
-
type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | IndexColumnExpr.Raw |
|
17
|
+
type Raw = SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | IndexColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw;
|
19
18
|
}
|
@@ -33,7 +33,6 @@ const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
|
33
33
|
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
34
34
|
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
35
35
|
const IndexColumnExpr_1 = require("./IndexColumnExpr");
|
36
|
-
const GroupKeyColumnExpr_1 = require("./GroupKeyColumnExpr");
|
37
36
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
38
37
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
39
38
|
const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
|
@@ -43,7 +42,6 @@ exports.AggregateExprArg = core.serialization.undiscriminatedUnion([
|
|
43
42
|
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
44
43
|
BodyColumnExpr_1.BodyColumnExpr,
|
45
44
|
IndexColumnExpr_1.IndexColumnExpr,
|
46
|
-
GroupKeyColumnExpr_1.GroupKeyColumnExpr,
|
47
45
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
48
46
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
49
47
|
UnrecognizedValueMacroExpr_1.UnrecognizedValueMacroExpr,
|
@@ -5,16 +5,16 @@ import * as serializers from "../index";
|
|
5
5
|
import * as Vital from "../../api/index";
|
6
6
|
import * as core from "../../core";
|
7
7
|
import { AggregateExpr } from "./AggregateExpr";
|
8
|
+
import { GroupKeyColumnExpr } from "./GroupKeyColumnExpr";
|
8
9
|
import { SleepColumnExpr } from "./SleepColumnExpr";
|
9
10
|
import { ActivityColumnExpr } from "./ActivityColumnExpr";
|
10
11
|
import { WorkoutColumnExpr } from "./WorkoutColumnExpr";
|
11
12
|
import { BodyColumnExpr } from "./BodyColumnExpr";
|
12
13
|
import { IndexColumnExpr } from "./IndexColumnExpr";
|
13
|
-
import { GroupKeyColumnExpr } from "./GroupKeyColumnExpr";
|
14
14
|
import { SleepScoreValueMacroExpr } from "./SleepScoreValueMacroExpr";
|
15
15
|
import { ChronotypeValueMacroExpr } from "./ChronotypeValueMacroExpr";
|
16
16
|
import { UnrecognizedValueMacroExpr } from "./UnrecognizedValueMacroExpr";
|
17
17
|
export declare const QuerySelectItem: core.serialization.Schema<serializers.QuerySelectItem.Raw, Vital.QuerySelectItem>;
|
18
18
|
export declare namespace QuerySelectItem {
|
19
|
-
type Raw = AggregateExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | IndexColumnExpr.Raw |
|
19
|
+
type Raw = AggregateExpr.Raw | GroupKeyColumnExpr.Raw | SleepColumnExpr.Raw | ActivityColumnExpr.Raw | WorkoutColumnExpr.Raw | BodyColumnExpr.Raw | IndexColumnExpr.Raw | SleepScoreValueMacroExpr.Raw | ChronotypeValueMacroExpr.Raw | UnrecognizedValueMacroExpr.Raw;
|
20
20
|
}
|
@@ -29,23 +29,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.QuerySelectItem = void 0;
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const AggregateExpr_1 = require("./AggregateExpr");
|
32
|
+
const GroupKeyColumnExpr_1 = require("./GroupKeyColumnExpr");
|
32
33
|
const SleepColumnExpr_1 = require("./SleepColumnExpr");
|
33
34
|
const ActivityColumnExpr_1 = require("./ActivityColumnExpr");
|
34
35
|
const WorkoutColumnExpr_1 = require("./WorkoutColumnExpr");
|
35
36
|
const BodyColumnExpr_1 = require("./BodyColumnExpr");
|
36
37
|
const IndexColumnExpr_1 = require("./IndexColumnExpr");
|
37
|
-
const GroupKeyColumnExpr_1 = require("./GroupKeyColumnExpr");
|
38
38
|
const SleepScoreValueMacroExpr_1 = require("./SleepScoreValueMacroExpr");
|
39
39
|
const ChronotypeValueMacroExpr_1 = require("./ChronotypeValueMacroExpr");
|
40
40
|
const UnrecognizedValueMacroExpr_1 = require("./UnrecognizedValueMacroExpr");
|
41
41
|
exports.QuerySelectItem = core.serialization.undiscriminatedUnion([
|
42
42
|
AggregateExpr_1.AggregateExpr,
|
43
|
+
GroupKeyColumnExpr_1.GroupKeyColumnExpr,
|
43
44
|
SleepColumnExpr_1.SleepColumnExpr,
|
44
45
|
ActivityColumnExpr_1.ActivityColumnExpr,
|
45
46
|
WorkoutColumnExpr_1.WorkoutColumnExpr,
|
46
47
|
BodyColumnExpr_1.BodyColumnExpr,
|
47
48
|
IndexColumnExpr_1.IndexColumnExpr,
|
48
|
-
GroupKeyColumnExpr_1.GroupKeyColumnExpr,
|
49
49
|
SleepScoreValueMacroExpr_1.SleepScoreValueMacroExpr,
|
50
50
|
ChronotypeValueMacroExpr_1.ChronotypeValueMacroExpr,
|
51
51
|
UnrecognizedValueMacroExpr_1.UnrecognizedValueMacroExpr,
|
package/dist/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.147";
|
package/dist/version.js
CHANGED