@tryvital/vital-node 3.1.103 → 3.1.105
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 +39 -34
- 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/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/link/client/requests/LinkTokenBase.d.ts +2 -0
- 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.d.ts +42 -0
- package/api/resources/sleepCycle/client/Client.js +135 -0
- package/api/resources/sleepCycle/client/index.d.ts +1 -0
- package/api/resources/sleepCycle/client/index.js +17 -0
- package/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.d.ts +17 -0
- package/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.js +5 -0
- package/api/resources/sleepCycle/client/requests/index.d.ts +1 -0
- package/api/resources/sleepCycle/client/requests/index.js +2 -0
- package/api/resources/sleepCycle/index.d.ts +1 -0
- package/api/resources/sleepCycle/index.js +17 -0
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +56 -56
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/BiomarkerResult.d.ts +1 -0
- package/api/types/ClientSleepCycleResponse.d.ts +7 -0
- package/api/types/ClientSleepCycleResponse.js +5 -0
- package/api/types/Labs.d.ts +2 -1
- package/api/types/Labs.js +1 -0
- package/api/types/LinkRequirements.d.ts +9 -0
- package/api/types/LinkRequirements.js +5 -0
- package/api/types/MissingBiomarkerResult.d.ts +1 -0
- package/api/types/ParentBiomarkerData.d.ts +9 -0
- package/api/types/ParentBiomarkerData.js +5 -0
- package/api/types/SleepCycle.d.ts +17 -0
- package/api/types/SleepCycle.js +5 -0
- package/api/types/SleepCycleSourceProvider.d.ts +5 -0
- package/api/types/SleepCycleSourceProvider.js +5 -0
- package/api/types/SleepCycleSourceType.d.ts +19 -0
- package/api/types/SleepCycleSourceType.js +21 -0
- package/api/types/VitalSleepStage.d.ts +4 -0
- package/api/types/VitalSleepStage.js +5 -0
- package/api/types/index.d.ts +7 -0
- package/api/types/index.js +7 -0
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +39 -34
- 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/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/link/client/requests/LinkTokenBase.d.ts +2 -0
- 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.d.ts +42 -0
- package/dist/api/resources/sleepCycle/client/Client.js +135 -0
- package/dist/api/resources/sleepCycle/client/index.d.ts +1 -0
- package/dist/api/resources/sleepCycle/client/index.js +17 -0
- package/dist/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.d.ts +17 -0
- package/dist/api/resources/sleepCycle/client/requests/SleepCycleGetRequest.js +5 -0
- package/dist/api/resources/sleepCycle/client/requests/index.d.ts +1 -0
- package/dist/api/resources/sleepCycle/client/requests/index.js +2 -0
- package/dist/api/resources/sleepCycle/index.d.ts +1 -0
- package/dist/api/resources/sleepCycle/index.js +17 -0
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +56 -56
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/BiomarkerResult.d.ts +1 -0
- package/dist/api/types/ClientSleepCycleResponse.d.ts +7 -0
- package/dist/api/types/ClientSleepCycleResponse.js +5 -0
- package/dist/api/types/Labs.d.ts +2 -1
- package/dist/api/types/Labs.js +1 -0
- package/dist/api/types/LinkRequirements.d.ts +9 -0
- package/dist/api/types/LinkRequirements.js +5 -0
- package/dist/api/types/MissingBiomarkerResult.d.ts +1 -0
- package/dist/api/types/ParentBiomarkerData.d.ts +9 -0
- package/dist/api/types/ParentBiomarkerData.js +5 -0
- package/dist/api/types/SleepCycle.d.ts +17 -0
- package/dist/api/types/SleepCycle.js +5 -0
- package/dist/api/types/SleepCycleSourceProvider.d.ts +5 -0
- package/dist/api/types/SleepCycleSourceProvider.js +5 -0
- package/dist/api/types/SleepCycleSourceType.d.ts +19 -0
- package/dist/api/types/SleepCycleSourceType.js +21 -0
- package/dist/api/types/VitalSleepStage.d.ts +4 -0
- package/dist/api/types/VitalSleepStage.js +5 -0
- package/dist/api/types/index.d.ts +7 -0
- package/dist/api/types/index.js +7 -0
- package/dist/serialization/resources/link/client/requests/LinkTokenBase.d.ts +2 -0
- package/dist/serialization/resources/link/client/requests/LinkTokenBase.js +2 -0
- package/dist/serialization/types/BiomarkerResult.d.ts +2 -0
- package/dist/serialization/types/BiomarkerResult.js +2 -0
- package/dist/serialization/types/ClientSleepCycleResponse.d.ts +13 -0
- package/dist/serialization/types/ClientSleepCycleResponse.js +34 -0
- package/dist/serialization/types/Labs.d.ts +1 -1
- package/dist/serialization/types/Labs.js +1 -0
- package/dist/serialization/types/LinkRequirements.d.ts +15 -0
- package/dist/serialization/types/LinkRequirements.js +36 -0
- package/dist/serialization/types/MissingBiomarkerResult.d.ts +2 -0
- package/dist/serialization/types/MissingBiomarkerResult.js +2 -0
- package/dist/serialization/types/ParentBiomarkerData.d.ts +15 -0
- package/dist/serialization/types/ParentBiomarkerData.js +36 -0
- package/dist/serialization/types/SleepCycle.d.ts +25 -0
- package/dist/serialization/types/SleepCycle.js +46 -0
- package/dist/serialization/types/SleepCycleSourceProvider.d.ts +12 -0
- package/dist/serialization/types/SleepCycleSourceProvider.js +33 -0
- package/dist/serialization/types/SleepCycleSourceType.d.ts +10 -0
- package/dist/serialization/types/SleepCycleSourceType.js +45 -0
- package/dist/serialization/types/VitalSleepStage.d.ts +10 -0
- package/dist/serialization/types/VitalSleepStage.js +31 -0
- package/dist/serialization/types/index.d.ts +7 -0
- package/dist/serialization/types/index.js +7 -0
- 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/resources/link/client/requests/LinkTokenBase.d.ts +2 -0
- package/serialization/resources/link/client/requests/LinkTokenBase.js +2 -0
- package/serialization/types/BiomarkerResult.d.ts +2 -0
- package/serialization/types/BiomarkerResult.js +2 -0
- package/serialization/types/ClientSleepCycleResponse.d.ts +13 -0
- package/serialization/types/ClientSleepCycleResponse.js +34 -0
- package/serialization/types/Labs.d.ts +1 -1
- package/serialization/types/Labs.js +1 -0
- package/serialization/types/LinkRequirements.d.ts +15 -0
- package/serialization/types/LinkRequirements.js +36 -0
- package/serialization/types/MissingBiomarkerResult.d.ts +2 -0
- package/serialization/types/MissingBiomarkerResult.js +2 -0
- package/serialization/types/ParentBiomarkerData.d.ts +15 -0
- package/serialization/types/ParentBiomarkerData.js +36 -0
- package/serialization/types/SleepCycle.d.ts +25 -0
- package/serialization/types/SleepCycle.js +46 -0
- package/serialization/types/SleepCycleSourceProvider.d.ts +12 -0
- package/serialization/types/SleepCycleSourceProvider.js +33 -0
- package/serialization/types/SleepCycleSourceType.d.ts +10 -0
- package/serialization/types/SleepCycleSourceType.js +45 -0
- package/serialization/types/VitalSleepStage.d.ts +10 -0
- package/serialization/types/VitalSleepStage.js +31 -0
- package/serialization/types/index.d.ts +7 -0
- package/serialization/types/index.js +7 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/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 { SleepCycle } from "./api/resources/sleepCycle/client/Client";
|
7
8
|
import { Profile } from "./api/resources/profile/client/Client";
|
8
9
|
import { Devices } from "./api/resources/devices/client/Client";
|
9
10
|
import { Activity } from "./api/resources/activity/client/Client";
|
@@ -40,6 +41,8 @@ export declare class VitalClient {
|
|
40
41
|
constructor(_options?: VitalClient.Options);
|
41
42
|
protected _link: Link | undefined;
|
42
43
|
get link(): Link;
|
44
|
+
protected _sleepCycle: SleepCycle | undefined;
|
45
|
+
get sleepCycle(): SleepCycle;
|
43
46
|
protected _profile: Profile | undefined;
|
44
47
|
get profile(): Profile;
|
45
48
|
protected _devices: Devices | undefined;
|
package/Client.js
CHANGED
@@ -5,23 +5,24 @@
|
|
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/
|
8
|
+
const Client_2 = require("./api/resources/sleepCycle/client/Client");
|
9
|
+
const Client_3 = require("./api/resources/profile/client/Client");
|
10
|
+
const Client_4 = require("./api/resources/devices/client/Client");
|
11
|
+
const Client_5 = require("./api/resources/activity/client/Client");
|
12
|
+
const Client_6 = require("./api/resources/workouts/client/Client");
|
13
|
+
const Client_7 = require("./api/resources/sleep/client/Client");
|
14
|
+
const Client_8 = require("./api/resources/body/client/Client");
|
15
|
+
const Client_9 = require("./api/resources/meal/client/Client");
|
16
|
+
const Client_10 = require("./api/resources/menstrualCycle/client/Client");
|
17
|
+
const Client_11 = require("./api/resources/vitals/client/Client");
|
18
|
+
const Client_12 = require("./api/resources/user/client/Client");
|
19
|
+
const Client_13 = require("./api/resources/team/client/Client");
|
20
|
+
const Client_14 = require("./api/resources/providers/client/Client");
|
21
|
+
const Client_15 = require("./api/resources/introspect/client/Client");
|
22
|
+
const Client_16 = require("./api/resources/labTests/client/Client");
|
23
|
+
const Client_17 = require("./api/resources/testkit/client/Client");
|
24
|
+
const Client_18 = require("./api/resources/insurance/client/Client");
|
25
|
+
const Client_19 = require("./api/resources/aggregate/client/Client");
|
25
26
|
class VitalClient {
|
26
27
|
constructor(_options = {}) {
|
27
28
|
this._options = _options;
|
@@ -30,73 +31,77 @@ class VitalClient {
|
|
30
31
|
var _a;
|
31
32
|
return ((_a = this._link) !== null && _a !== void 0 ? _a : (this._link = new Client_1.Link(this._options)));
|
32
33
|
}
|
34
|
+
get sleepCycle() {
|
35
|
+
var _a;
|
36
|
+
return ((_a = this._sleepCycle) !== null && _a !== void 0 ? _a : (this._sleepCycle = new Client_2.SleepCycle(this._options)));
|
37
|
+
}
|
33
38
|
get profile() {
|
34
39
|
var _a;
|
35
|
-
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new
|
40
|
+
return ((_a = this._profile) !== null && _a !== void 0 ? _a : (this._profile = new Client_3.Profile(this._options)));
|
36
41
|
}
|
37
42
|
get devices() {
|
38
43
|
var _a;
|
39
|
-
return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new
|
44
|
+
return ((_a = this._devices) !== null && _a !== void 0 ? _a : (this._devices = new Client_4.Devices(this._options)));
|
40
45
|
}
|
41
46
|
get activity() {
|
42
47
|
var _a;
|
43
|
-
return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new
|
48
|
+
return ((_a = this._activity) !== null && _a !== void 0 ? _a : (this._activity = new Client_5.Activity(this._options)));
|
44
49
|
}
|
45
50
|
get workouts() {
|
46
51
|
var _a;
|
47
|
-
return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new
|
52
|
+
return ((_a = this._workouts) !== null && _a !== void 0 ? _a : (this._workouts = new Client_6.Workouts(this._options)));
|
48
53
|
}
|
49
54
|
get sleep() {
|
50
55
|
var _a;
|
51
|
-
return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new
|
56
|
+
return ((_a = this._sleep) !== null && _a !== void 0 ? _a : (this._sleep = new Client_7.Sleep(this._options)));
|
52
57
|
}
|
53
58
|
get body() {
|
54
59
|
var _a;
|
55
|
-
return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new
|
60
|
+
return ((_a = this._body) !== null && _a !== void 0 ? _a : (this._body = new Client_8.Body(this._options)));
|
56
61
|
}
|
57
62
|
get meal() {
|
58
63
|
var _a;
|
59
|
-
return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new
|
64
|
+
return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new Client_9.Meal(this._options)));
|
60
65
|
}
|
61
66
|
get menstrualCycle() {
|
62
67
|
var _a;
|
63
|
-
return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new
|
68
|
+
return ((_a = this._menstrualCycle) !== null && _a !== void 0 ? _a : (this._menstrualCycle = new Client_10.MenstrualCycle(this._options)));
|
64
69
|
}
|
65
70
|
get vitals() {
|
66
71
|
var _a;
|
67
|
-
return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new
|
72
|
+
return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new Client_11.Vitals(this._options)));
|
68
73
|
}
|
69
74
|
get user() {
|
70
75
|
var _a;
|
71
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new
|
76
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_12.User(this._options)));
|
72
77
|
}
|
73
78
|
get team() {
|
74
79
|
var _a;
|
75
|
-
return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new
|
80
|
+
return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_13.Team(this._options)));
|
76
81
|
}
|
77
82
|
get providers() {
|
78
83
|
var _a;
|
79
|
-
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new
|
84
|
+
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_14.Providers(this._options)));
|
80
85
|
}
|
81
86
|
get introspect() {
|
82
87
|
var _a;
|
83
|
-
return ((_a = this._introspect) !== null && _a !== void 0 ? _a : (this._introspect = new
|
88
|
+
return ((_a = this._introspect) !== null && _a !== void 0 ? _a : (this._introspect = new Client_15.Introspect(this._options)));
|
84
89
|
}
|
85
90
|
get labTests() {
|
86
91
|
var _a;
|
87
|
-
return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new
|
92
|
+
return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_16.LabTests(this._options)));
|
88
93
|
}
|
89
94
|
get testkit() {
|
90
95
|
var _a;
|
91
|
-
return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new
|
96
|
+
return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_17.Testkit(this._options)));
|
92
97
|
}
|
93
98
|
get insurance() {
|
94
99
|
var _a;
|
95
|
-
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new
|
100
|
+
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_18.Insurance(this._options)));
|
96
101
|
}
|
97
102
|
get aggregate() {
|
98
103
|
var _a;
|
99
|
-
return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new
|
104
|
+
return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_19.Aggregate(this._options)));
|
100
105
|
}
|
101
106
|
}
|
102
107
|
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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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",
|
package/api/resources/index.d.ts
CHANGED
@@ -3,6 +3,7 @@ export * from "./labTests/types";
|
|
3
3
|
export * as aggregate from "./aggregate";
|
4
4
|
export * from "./aggregate/types";
|
5
5
|
export * as link from "./link";
|
6
|
+
export * as sleepCycle from "./sleepCycle";
|
6
7
|
export * as profile from "./profile";
|
7
8
|
export * as devices from "./devices";
|
8
9
|
export * as activity from "./activity";
|
@@ -19,6 +20,7 @@ export * as introspect from "./introspect";
|
|
19
20
|
export * as testkit from "./testkit";
|
20
21
|
export * as insurance from "./insurance";
|
21
22
|
export * from "./link/client/requests";
|
23
|
+
export * from "./sleepCycle/client/requests";
|
22
24
|
export * from "./profile/client/requests";
|
23
25
|
export * from "./devices/client/requests";
|
24
26
|
export * from "./activity/client/requests";
|
package/api/resources/index.js
CHANGED
@@ -26,12 +26,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.insurance = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.link = exports.aggregate = exports.labTests = void 0;
|
29
|
+
exports.insurance = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.link = exports.aggregate = exports.labTests = void 0;
|
30
30
|
exports.labTests = __importStar(require("./labTests"));
|
31
31
|
__exportStar(require("./labTests/types"), exports);
|
32
32
|
exports.aggregate = __importStar(require("./aggregate"));
|
33
33
|
__exportStar(require("./aggregate/types"), exports);
|
34
34
|
exports.link = __importStar(require("./link"));
|
35
|
+
exports.sleepCycle = __importStar(require("./sleepCycle"));
|
35
36
|
exports.profile = __importStar(require("./profile"));
|
36
37
|
exports.devices = __importStar(require("./devices"));
|
37
38
|
exports.activity = __importStar(require("./activity"));
|
@@ -48,6 +49,7 @@ exports.introspect = __importStar(require("./introspect"));
|
|
48
49
|
exports.testkit = __importStar(require("./testkit"));
|
49
50
|
exports.insurance = __importStar(require("./insurance"));
|
50
51
|
__exportStar(require("./link/client/requests"), exports);
|
52
|
+
__exportStar(require("./sleepCycle/client/requests"), exports);
|
51
53
|
__exportStar(require("./profile/client/requests"), exports);
|
52
54
|
__exportStar(require("./devices/client/requests"), exports);
|
53
55
|
__exportStar(require("./activity/client/requests"), exports);
|
@@ -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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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.105", "User-Agent": "@tryvital/vital-node/3.1.105", "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",
|