@tryvital/vital-node 3.1.25 → 3.1.27
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/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.d.ts +1 -0
- package/api/resources/labTests/client/Client.js +26 -25
- package/api/resources/link/client/Client.js +14 -14
- package/api/resources/meal/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/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +12 -12
- package/api/resources/vitals/client/Client.d.ts +18 -0
- package/api/resources/vitals/client/Client.js +192 -50
- package/api/resources/vitals/client/requests/VitalsBodyTemperatureDeltaGroupedRequest.d.ts +27 -0
- package/api/resources/vitals/client/requests/VitalsBodyTemperatureDeltaGroupedRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsBodyTemperatureGroupedRequest.d.ts +27 -0
- package/api/resources/vitals/client/requests/VitalsBodyTemperatureGroupedRequest.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/AreaInfo.d.ts +1 -0
- package/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +19 -0
- package/api/types/ClientFacingBodyTemperatureDeltaSample.js +5 -0
- package/api/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +18 -0
- package/api/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.js +20 -0
- package/api/types/ClientFacingBodyTemperatureSample.d.ts +19 -0
- package/api/types/ClientFacingBodyTemperatureSample.js +5 -0
- package/api/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +18 -0
- package/api/types/ClientFacingBodyTemperatureSampleSensorLocation.js +20 -0
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +9 -0
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.js +5 -0
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +9 -0
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.js +5 -0
- package/api/types/ClientFacingLabLocation.d.ts +8 -0
- package/api/types/ClientFacingLabLocation.js +5 -0
- package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +8 -0
- package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.js +5 -0
- package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +8 -0
- package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.js +5 -0
- package/api/types/LabLocationMetadata.d.ts +14 -0
- package/api/types/LabLocationMetadata.js +5 -0
- package/api/types/PscAreaInfo.d.ts +7 -0
- package/api/types/PscAreaInfo.js +5 -0
- package/api/types/index.d.ts +11 -0
- package/api/types/index.js +11 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- 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.d.ts +1 -0
- package/dist/api/resources/labTests/client/Client.js +26 -25
- package/dist/api/resources/link/client/Client.js +14 -14
- package/dist/api/resources/meal/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/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +12 -12
- package/dist/api/resources/vitals/client/Client.d.ts +18 -0
- package/dist/api/resources/vitals/client/Client.js +192 -50
- package/dist/api/resources/vitals/client/requests/VitalsBodyTemperatureDeltaGroupedRequest.d.ts +27 -0
- package/dist/api/resources/vitals/client/requests/VitalsBodyTemperatureDeltaGroupedRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsBodyTemperatureGroupedRequest.d.ts +27 -0
- package/dist/api/resources/vitals/client/requests/VitalsBodyTemperatureGroupedRequest.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/AreaInfo.d.ts +1 -0
- package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +19 -0
- package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.js +5 -0
- package/dist/api/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +18 -0
- package/dist/api/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.js +20 -0
- package/dist/api/types/ClientFacingBodyTemperatureSample.d.ts +19 -0
- package/dist/api/types/ClientFacingBodyTemperatureSample.js +5 -0
- package/dist/api/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +18 -0
- package/dist/api/types/ClientFacingBodyTemperatureSampleSensorLocation.js +20 -0
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +9 -0
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.js +5 -0
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +9 -0
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.js +5 -0
- package/dist/api/types/ClientFacingLabLocation.d.ts +8 -0
- package/dist/api/types/ClientFacingLabLocation.js +5 -0
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +8 -0
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.js +5 -0
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +8 -0
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.js +5 -0
- package/dist/api/types/LabLocationMetadata.d.ts +14 -0
- package/dist/api/types/LabLocationMetadata.js +5 -0
- package/dist/api/types/PscAreaInfo.d.ts +7 -0
- package/dist/api/types/PscAreaInfo.js +5 -0
- package/dist/api/types/index.d.ts +11 -0
- package/dist/api/types/index.js +11 -0
- package/dist/serialization/types/AreaInfo.d.ts +2 -0
- package/dist/serialization/types/AreaInfo.js +2 -0
- package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSample.d.ts +21 -0
- package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSample.js +42 -0
- package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +10 -0
- package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.js +44 -0
- package/dist/serialization/types/ClientFacingBodyTemperatureSample.d.ts +21 -0
- package/dist/serialization/types/ClientFacingBodyTemperatureSample.js +42 -0
- package/dist/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +10 -0
- package/dist/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.js +44 -0
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +14 -0
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.js +35 -0
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +14 -0
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.js +35 -0
- package/dist/serialization/types/ClientFacingLabLocation.d.ts +14 -0
- package/dist/serialization/types/ClientFacingLabLocation.js +35 -0
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +15 -0
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.js +36 -0
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +15 -0
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.js +36 -0
- package/dist/serialization/types/LabLocationMetadata.d.ts +20 -0
- package/dist/serialization/types/LabLocationMetadata.js +41 -0
- package/dist/serialization/types/PscAreaInfo.d.ts +13 -0
- package/dist/serialization/types/PscAreaInfo.js +34 -0
- package/dist/serialization/types/index.d.ts +11 -0
- package/dist/serialization/types/index.js +11 -0
- package/package.json +1 -1
- package/serialization/types/AreaInfo.d.ts +2 -0
- package/serialization/types/AreaInfo.js +2 -0
- package/serialization/types/ClientFacingBodyTemperatureDeltaSample.d.ts +21 -0
- package/serialization/types/ClientFacingBodyTemperatureDeltaSample.js +42 -0
- package/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +10 -0
- package/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.js +44 -0
- package/serialization/types/ClientFacingBodyTemperatureSample.d.ts +21 -0
- package/serialization/types/ClientFacingBodyTemperatureSample.js +42 -0
- package/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +10 -0
- package/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.js +44 -0
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +14 -0
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.js +35 -0
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +14 -0
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.js +35 -0
- package/serialization/types/ClientFacingLabLocation.d.ts +14 -0
- package/serialization/types/ClientFacingLabLocation.js +35 -0
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +15 -0
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.js +36 -0
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +15 -0
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.js +36 -0
- package/serialization/types/LabLocationMetadata.d.ts +20 -0
- package/serialization/types/LabLocationMetadata.js +41 -0
- package/serialization/types/PscAreaInfo.d.ts +13 -0
- package/serialization/types/PscAreaInfo.js +34 -0
- package/serialization/types/index.d.ts +11 -0
- package/serialization/types/index.js +11 -0
@@ -75,7 +75,7 @@ class Vitals {
|
|
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, `v2/timeseries/${userId}/vo2_max/grouped`),
|
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.27", "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
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -146,7 +146,7 @@ class Vitals {
|
|
146
146
|
const _response = yield core.fetcher({
|
147
147
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/stress_level/grouped`),
|
148
148
|
method: "GET",
|
149
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
149
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
150
150
|
contentType: "application/json",
|
151
151
|
queryParameters: _queryParams,
|
152
152
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -217,7 +217,7 @@ class Vitals {
|
|
217
217
|
const _response = yield core.fetcher({
|
218
218
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/mindfulness_minutes/grouped`),
|
219
219
|
method: "GET",
|
220
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
220
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
221
221
|
contentType: "application/json",
|
222
222
|
queryParameters: _queryParams,
|
223
223
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -288,7 +288,7 @@ class Vitals {
|
|
288
288
|
const _response = yield core.fetcher({
|
289
289
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/caffeine/grouped`),
|
290
290
|
method: "GET",
|
291
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
291
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
292
292
|
contentType: "application/json",
|
293
293
|
queryParameters: _queryParams,
|
294
294
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -359,7 +359,7 @@ class Vitals {
|
|
359
359
|
const _response = yield core.fetcher({
|
360
360
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/water/grouped`),
|
361
361
|
method: "GET",
|
362
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
362
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
363
363
|
contentType: "application/json",
|
364
364
|
queryParameters: _queryParams,
|
365
365
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -430,7 +430,7 @@ class Vitals {
|
|
430
430
|
const _response = yield core.fetcher({
|
431
431
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/steps/grouped`),
|
432
432
|
method: "GET",
|
433
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
433
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
434
434
|
contentType: "application/json",
|
435
435
|
queryParameters: _queryParams,
|
436
436
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -501,7 +501,7 @@ class Vitals {
|
|
501
501
|
const _response = yield core.fetcher({
|
502
502
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/floors_climbed/grouped`),
|
503
503
|
method: "GET",
|
504
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
504
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
505
505
|
contentType: "application/json",
|
506
506
|
queryParameters: _queryParams,
|
507
507
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -572,7 +572,7 @@ class Vitals {
|
|
572
572
|
const _response = yield core.fetcher({
|
573
573
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/distance/grouped`),
|
574
574
|
method: "GET",
|
575
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
575
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
576
576
|
contentType: "application/json",
|
577
577
|
queryParameters: _queryParams,
|
578
578
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -643,7 +643,7 @@ class Vitals {
|
|
643
643
|
const _response = yield core.fetcher({
|
644
644
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_basal/grouped`),
|
645
645
|
method: "GET",
|
646
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
646
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
647
647
|
contentType: "application/json",
|
648
648
|
queryParameters: _queryParams,
|
649
649
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -714,7 +714,7 @@ class Vitals {
|
|
714
714
|
const _response = yield core.fetcher({
|
715
715
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_active/grouped`),
|
716
716
|
method: "GET",
|
717
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
717
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
718
718
|
contentType: "application/json",
|
719
719
|
queryParameters: _queryParams,
|
720
720
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -785,7 +785,7 @@ class Vitals {
|
|
785
785
|
const _response = yield core.fetcher({
|
786
786
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/respiratory_rate/grouped`),
|
787
787
|
method: "GET",
|
788
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
788
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
789
789
|
contentType: "application/json",
|
790
790
|
queryParameters: _queryParams,
|
791
791
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -856,7 +856,7 @@ class Vitals {
|
|
856
856
|
const _response = yield core.fetcher({
|
857
857
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/ige/grouped`),
|
858
858
|
method: "GET",
|
859
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
859
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
860
860
|
contentType: "application/json",
|
861
861
|
queryParameters: _queryParams,
|
862
862
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -927,7 +927,7 @@ class Vitals {
|
|
927
927
|
const _response = yield core.fetcher({
|
928
928
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/igg/grouped`),
|
929
929
|
method: "GET",
|
930
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
930
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
931
931
|
contentType: "application/json",
|
932
932
|
queryParameters: _queryParams,
|
933
933
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -998,7 +998,7 @@ class Vitals {
|
|
998
998
|
const _response = yield core.fetcher({
|
999
999
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hypnogram/grouped`),
|
1000
1000
|
method: "GET",
|
1001
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1001
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1002
1002
|
contentType: "application/json",
|
1003
1003
|
queryParameters: _queryParams,
|
1004
1004
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1069,7 +1069,7 @@ class Vitals {
|
|
1069
1069
|
const _response = yield core.fetcher({
|
1070
1070
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hrv/grouped`),
|
1071
1071
|
method: "GET",
|
1072
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1072
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1073
1073
|
contentType: "application/json",
|
1074
1074
|
queryParameters: _queryParams,
|
1075
1075
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1140,7 +1140,7 @@ class Vitals {
|
|
1140
1140
|
const _response = yield core.fetcher({
|
1141
1141
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/heartrate/grouped`),
|
1142
1142
|
method: "GET",
|
1143
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1143
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1144
1144
|
contentType: "application/json",
|
1145
1145
|
queryParameters: _queryParams,
|
1146
1146
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1211,7 +1211,7 @@ class Vitals {
|
|
1211
1211
|
const _response = yield core.fetcher({
|
1212
1212
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/glucose/grouped`),
|
1213
1213
|
method: "GET",
|
1214
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1214
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1215
1215
|
contentType: "application/json",
|
1216
1216
|
queryParameters: _queryParams,
|
1217
1217
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1282,7 +1282,7 @@ class Vitals {
|
|
1282
1282
|
const _response = yield core.fetcher({
|
1283
1283
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/grouped`),
|
1284
1284
|
method: "GET",
|
1285
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1285
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1286
1286
|
contentType: "application/json",
|
1287
1287
|
queryParameters: _queryParams,
|
1288
1288
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1327,6 +1327,148 @@ class Vitals {
|
|
1327
1327
|
}
|
1328
1328
|
});
|
1329
1329
|
}
|
1330
|
+
/**
|
1331
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1332
|
+
*
|
1333
|
+
* @example
|
1334
|
+
* await vital.vitals.bodyTemperatureDeltaGrouped("user_id", {
|
1335
|
+
* startDate: "start_date"
|
1336
|
+
* })
|
1337
|
+
*/
|
1338
|
+
bodyTemperatureDeltaGrouped(userId, request, requestOptions) {
|
1339
|
+
var _a;
|
1340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1341
|
+
const { cursor, provider, startDate, endDate } = request;
|
1342
|
+
const _queryParams = {};
|
1343
|
+
if (cursor != null) {
|
1344
|
+
_queryParams["cursor"] = cursor;
|
1345
|
+
}
|
1346
|
+
if (provider != null) {
|
1347
|
+
_queryParams["provider"] = provider;
|
1348
|
+
}
|
1349
|
+
_queryParams["start_date"] = startDate;
|
1350
|
+
if (endDate != null) {
|
1351
|
+
_queryParams["end_date"] = endDate;
|
1352
|
+
}
|
1353
|
+
const _response = yield core.fetcher({
|
1354
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_temperature_delta/grouped`),
|
1355
|
+
method: "GET",
|
1356
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1357
|
+
contentType: "application/json",
|
1358
|
+
queryParameters: _queryParams,
|
1359
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1360
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1361
|
+
});
|
1362
|
+
if (_response.ok) {
|
1363
|
+
return yield serializers.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.parseOrThrow(_response.body, {
|
1364
|
+
unrecognizedObjectKeys: "passthrough",
|
1365
|
+
allowUnrecognizedUnionMembers: true,
|
1366
|
+
allowUnrecognizedEnumValues: true,
|
1367
|
+
breadcrumbsPrefix: ["response"],
|
1368
|
+
});
|
1369
|
+
}
|
1370
|
+
if (_response.error.reason === "status-code") {
|
1371
|
+
switch (_response.error.statusCode) {
|
1372
|
+
case 422:
|
1373
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1374
|
+
unrecognizedObjectKeys: "passthrough",
|
1375
|
+
allowUnrecognizedUnionMembers: true,
|
1376
|
+
allowUnrecognizedEnumValues: true,
|
1377
|
+
breadcrumbsPrefix: ["response"],
|
1378
|
+
}));
|
1379
|
+
default:
|
1380
|
+
throw new errors.VitalError({
|
1381
|
+
statusCode: _response.error.statusCode,
|
1382
|
+
body: _response.error.body,
|
1383
|
+
});
|
1384
|
+
}
|
1385
|
+
}
|
1386
|
+
switch (_response.error.reason) {
|
1387
|
+
case "non-json":
|
1388
|
+
throw new errors.VitalError({
|
1389
|
+
statusCode: _response.error.statusCode,
|
1390
|
+
body: _response.error.rawBody,
|
1391
|
+
});
|
1392
|
+
case "timeout":
|
1393
|
+
throw new errors.VitalTimeoutError();
|
1394
|
+
case "unknown":
|
1395
|
+
throw new errors.VitalError({
|
1396
|
+
message: _response.error.errorMessage,
|
1397
|
+
});
|
1398
|
+
}
|
1399
|
+
});
|
1400
|
+
}
|
1401
|
+
/**
|
1402
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1403
|
+
*
|
1404
|
+
* @example
|
1405
|
+
* await vital.vitals.bodyTemperatureGrouped("user_id", {
|
1406
|
+
* startDate: "start_date"
|
1407
|
+
* })
|
1408
|
+
*/
|
1409
|
+
bodyTemperatureGrouped(userId, request, requestOptions) {
|
1410
|
+
var _a;
|
1411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1412
|
+
const { cursor, provider, startDate, endDate } = request;
|
1413
|
+
const _queryParams = {};
|
1414
|
+
if (cursor != null) {
|
1415
|
+
_queryParams["cursor"] = cursor;
|
1416
|
+
}
|
1417
|
+
if (provider != null) {
|
1418
|
+
_queryParams["provider"] = provider;
|
1419
|
+
}
|
1420
|
+
_queryParams["start_date"] = startDate;
|
1421
|
+
if (endDate != null) {
|
1422
|
+
_queryParams["end_date"] = endDate;
|
1423
|
+
}
|
1424
|
+
const _response = yield core.fetcher({
|
1425
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_temperature/grouped`),
|
1426
|
+
method: "GET",
|
1427
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1428
|
+
contentType: "application/json",
|
1429
|
+
queryParameters: _queryParams,
|
1430
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1431
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1432
|
+
});
|
1433
|
+
if (_response.ok) {
|
1434
|
+
return yield serializers.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.parseOrThrow(_response.body, {
|
1435
|
+
unrecognizedObjectKeys: "passthrough",
|
1436
|
+
allowUnrecognizedUnionMembers: true,
|
1437
|
+
allowUnrecognizedEnumValues: true,
|
1438
|
+
breadcrumbsPrefix: ["response"],
|
1439
|
+
});
|
1440
|
+
}
|
1441
|
+
if (_response.error.reason === "status-code") {
|
1442
|
+
switch (_response.error.statusCode) {
|
1443
|
+
case 422:
|
1444
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1445
|
+
unrecognizedObjectKeys: "passthrough",
|
1446
|
+
allowUnrecognizedUnionMembers: true,
|
1447
|
+
allowUnrecognizedEnumValues: true,
|
1448
|
+
breadcrumbsPrefix: ["response"],
|
1449
|
+
}));
|
1450
|
+
default:
|
1451
|
+
throw new errors.VitalError({
|
1452
|
+
statusCode: _response.error.statusCode,
|
1453
|
+
body: _response.error.body,
|
1454
|
+
});
|
1455
|
+
}
|
1456
|
+
}
|
1457
|
+
switch (_response.error.reason) {
|
1458
|
+
case "non-json":
|
1459
|
+
throw new errors.VitalError({
|
1460
|
+
statusCode: _response.error.statusCode,
|
1461
|
+
body: _response.error.rawBody,
|
1462
|
+
});
|
1463
|
+
case "timeout":
|
1464
|
+
throw new errors.VitalTimeoutError();
|
1465
|
+
case "unknown":
|
1466
|
+
throw new errors.VitalError({
|
1467
|
+
message: _response.error.errorMessage,
|
1468
|
+
});
|
1469
|
+
}
|
1470
|
+
});
|
1471
|
+
}
|
1330
1472
|
/**
|
1331
1473
|
* @throws {@link Vital.UnprocessableEntityError}
|
1332
1474
|
*
|
@@ -1353,7 +1495,7 @@ class Vitals {
|
|
1353
1495
|
const _response = yield core.fetcher({
|
1354
1496
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_weight/grouped`),
|
1355
1497
|
method: "GET",
|
1356
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1498
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1357
1499
|
contentType: "application/json",
|
1358
1500
|
queryParameters: _queryParams,
|
1359
1501
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1424,7 +1566,7 @@ class Vitals {
|
|
1424
1566
|
const _response = yield core.fetcher({
|
1425
1567
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_fat/grouped`),
|
1426
1568
|
method: "GET",
|
1427
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1569
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1428
1570
|
contentType: "application/json",
|
1429
1571
|
queryParameters: _queryParams,
|
1430
1572
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1495,7 +1637,7 @@ class Vitals {
|
|
1495
1637
|
const _response = yield core.fetcher({
|
1496
1638
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_oxygen/grouped`),
|
1497
1639
|
method: "GET",
|
1498
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1640
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1499
1641
|
contentType: "application/json",
|
1500
1642
|
queryParameters: _queryParams,
|
1501
1643
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1566,7 +1708,7 @@ class Vitals {
|
|
1566
1708
|
const _response = yield core.fetcher({
|
1567
1709
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/electrocardiogram_voltage/grouped`),
|
1568
1710
|
method: "GET",
|
1569
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1711
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1570
1712
|
contentType: "application/json",
|
1571
1713
|
queryParameters: _queryParams,
|
1572
1714
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1637,7 +1779,7 @@ class Vitals {
|
|
1637
1779
|
const _response = yield core.fetcher({
|
1638
1780
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_pressure/grouped`),
|
1639
1781
|
method: "GET",
|
1640
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1782
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1641
1783
|
contentType: "application/json",
|
1642
1784
|
queryParameters: _queryParams,
|
1643
1785
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1705,7 +1847,7 @@ class Vitals {
|
|
1705
1847
|
const _response = yield core.fetcher({
|
1706
1848
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/vo2_max`),
|
1707
1849
|
method: "GET",
|
1708
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1850
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1709
1851
|
contentType: "application/json",
|
1710
1852
|
queryParameters: _queryParams,
|
1711
1853
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1773,7 +1915,7 @@ class Vitals {
|
|
1773
1915
|
const _response = yield core.fetcher({
|
1774
1916
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/stress_level`),
|
1775
1917
|
method: "GET",
|
1776
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1918
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1777
1919
|
contentType: "application/json",
|
1778
1920
|
queryParameters: _queryParams,
|
1779
1921
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1841,7 +1983,7 @@ class Vitals {
|
|
1841
1983
|
const _response = yield core.fetcher({
|
1842
1984
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/mindfulness_minutes`),
|
1843
1985
|
method: "GET",
|
1844
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1986
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1845
1987
|
contentType: "application/json",
|
1846
1988
|
queryParameters: _queryParams,
|
1847
1989
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1909,7 +2051,7 @@ class Vitals {
|
|
1909
2051
|
const _response = yield core.fetcher({
|
1910
2052
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/caffeine`),
|
1911
2053
|
method: "GET",
|
1912
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2054
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1913
2055
|
contentType: "application/json",
|
1914
2056
|
queryParameters: _queryParams,
|
1915
2057
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1977,7 +2119,7 @@ class Vitals {
|
|
1977
2119
|
const _response = yield core.fetcher({
|
1978
2120
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/water`),
|
1979
2121
|
method: "GET",
|
1980
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2122
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1981
2123
|
contentType: "application/json",
|
1982
2124
|
queryParameters: _queryParams,
|
1983
2125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2045,7 +2187,7 @@ class Vitals {
|
|
2045
2187
|
const _response = yield core.fetcher({
|
2046
2188
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/steps`),
|
2047
2189
|
method: "GET",
|
2048
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2190
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2049
2191
|
contentType: "application/json",
|
2050
2192
|
queryParameters: _queryParams,
|
2051
2193
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2113,7 +2255,7 @@ class Vitals {
|
|
2113
2255
|
const _response = yield core.fetcher({
|
2114
2256
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/floors_climbed`),
|
2115
2257
|
method: "GET",
|
2116
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2258
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2117
2259
|
contentType: "application/json",
|
2118
2260
|
queryParameters: _queryParams,
|
2119
2261
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2181,7 +2323,7 @@ class Vitals {
|
|
2181
2323
|
const _response = yield core.fetcher({
|
2182
2324
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/distance`),
|
2183
2325
|
method: "GET",
|
2184
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2326
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2185
2327
|
contentType: "application/json",
|
2186
2328
|
queryParameters: _queryParams,
|
2187
2329
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2249,7 +2391,7 @@ class Vitals {
|
|
2249
2391
|
const _response = yield core.fetcher({
|
2250
2392
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_basal`),
|
2251
2393
|
method: "GET",
|
2252
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2394
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2253
2395
|
contentType: "application/json",
|
2254
2396
|
queryParameters: _queryParams,
|
2255
2397
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2317,7 +2459,7 @@ class Vitals {
|
|
2317
2459
|
const _response = yield core.fetcher({
|
2318
2460
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_active`),
|
2319
2461
|
method: "GET",
|
2320
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2462
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2321
2463
|
contentType: "application/json",
|
2322
2464
|
queryParameters: _queryParams,
|
2323
2465
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2385,7 +2527,7 @@ class Vitals {
|
|
2385
2527
|
const _response = yield core.fetcher({
|
2386
2528
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/respiratory_rate`),
|
2387
2529
|
method: "GET",
|
2388
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2530
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2389
2531
|
contentType: "application/json",
|
2390
2532
|
queryParameters: _queryParams,
|
2391
2533
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2453,7 +2595,7 @@ class Vitals {
|
|
2453
2595
|
const _response = yield core.fetcher({
|
2454
2596
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/ige`),
|
2455
2597
|
method: "GET",
|
2456
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2598
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2457
2599
|
contentType: "application/json",
|
2458
2600
|
queryParameters: _queryParams,
|
2459
2601
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2521,7 +2663,7 @@ class Vitals {
|
|
2521
2663
|
const _response = yield core.fetcher({
|
2522
2664
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/igg`),
|
2523
2665
|
method: "GET",
|
2524
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2666
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2525
2667
|
contentType: "application/json",
|
2526
2668
|
queryParameters: _queryParams,
|
2527
2669
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2589,7 +2731,7 @@ class Vitals {
|
|
2589
2731
|
const _response = yield core.fetcher({
|
2590
2732
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hypnogram`),
|
2591
2733
|
method: "GET",
|
2592
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2734
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2593
2735
|
contentType: "application/json",
|
2594
2736
|
queryParameters: _queryParams,
|
2595
2737
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2657,7 +2799,7 @@ class Vitals {
|
|
2657
2799
|
const _response = yield core.fetcher({
|
2658
2800
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hrv`),
|
2659
2801
|
method: "GET",
|
2660
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2802
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2661
2803
|
contentType: "application/json",
|
2662
2804
|
queryParameters: _queryParams,
|
2663
2805
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2725,7 +2867,7 @@ class Vitals {
|
|
2725
2867
|
const _response = yield core.fetcher({
|
2726
2868
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/heartrate`),
|
2727
2869
|
method: "GET",
|
2728
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2870
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2729
2871
|
contentType: "application/json",
|
2730
2872
|
queryParameters: _queryParams,
|
2731
2873
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2793,7 +2935,7 @@ class Vitals {
|
|
2793
2935
|
const _response = yield core.fetcher({
|
2794
2936
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/glucose`),
|
2795
2937
|
method: "GET",
|
2796
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2938
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2797
2939
|
contentType: "application/json",
|
2798
2940
|
queryParameters: _queryParams,
|
2799
2941
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2861,7 +3003,7 @@ class Vitals {
|
|
2861
3003
|
const _response = yield core.fetcher({
|
2862
3004
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/triglycerides`),
|
2863
3005
|
method: "GET",
|
2864
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3006
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2865
3007
|
contentType: "application/json",
|
2866
3008
|
queryParameters: _queryParams,
|
2867
3009
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2929,7 +3071,7 @@ class Vitals {
|
|
2929
3071
|
const _response = yield core.fetcher({
|
2930
3072
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/total`),
|
2931
3073
|
method: "GET",
|
2932
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3074
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2933
3075
|
contentType: "application/json",
|
2934
3076
|
queryParameters: _queryParams,
|
2935
3077
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -2997,7 +3139,7 @@ class Vitals {
|
|
2997
3139
|
const _response = yield core.fetcher({
|
2998
3140
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/ldl`),
|
2999
3141
|
method: "GET",
|
3000
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3142
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3001
3143
|
contentType: "application/json",
|
3002
3144
|
queryParameters: _queryParams,
|
3003
3145
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -3065,7 +3207,7 @@ class Vitals {
|
|
3065
3207
|
const _response = yield core.fetcher({
|
3066
3208
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/hdl`),
|
3067
3209
|
method: "GET",
|
3068
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3210
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3069
3211
|
contentType: "application/json",
|
3070
3212
|
queryParameters: _queryParams,
|
3071
3213
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -3133,7 +3275,7 @@ class Vitals {
|
|
3133
3275
|
const _response = yield core.fetcher({
|
3134
3276
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol`),
|
3135
3277
|
method: "GET",
|
3136
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3278
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3137
3279
|
contentType: "application/json",
|
3138
3280
|
queryParameters: _queryParams,
|
3139
3281
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -3201,7 +3343,7 @@ class Vitals {
|
|
3201
3343
|
const _response = yield core.fetcher({
|
3202
3344
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_weight`),
|
3203
3345
|
method: "GET",
|
3204
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3346
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3205
3347
|
contentType: "application/json",
|
3206
3348
|
queryParameters: _queryParams,
|
3207
3349
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -3269,7 +3411,7 @@ class Vitals {
|
|
3269
3411
|
const _response = yield core.fetcher({
|
3270
3412
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/body_fat`),
|
3271
3413
|
method: "GET",
|
3272
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3414
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3273
3415
|
contentType: "application/json",
|
3274
3416
|
queryParameters: _queryParams,
|
3275
3417
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -3337,7 +3479,7 @@ class Vitals {
|
|
3337
3479
|
const _response = yield core.fetcher({
|
3338
3480
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_oxygen`),
|
3339
3481
|
method: "GET",
|
3340
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3482
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3341
3483
|
contentType: "application/json",
|
3342
3484
|
queryParameters: _queryParams,
|
3343
3485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -3405,7 +3547,7 @@ class Vitals {
|
|
3405
3547
|
const _response = yield core.fetcher({
|
3406
3548
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/electrocardiogram_voltage`),
|
3407
3549
|
method: "GET",
|
3408
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3550
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3409
3551
|
contentType: "application/json",
|
3410
3552
|
queryParameters: _queryParams,
|
3411
3553
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -3473,7 +3615,7 @@ class Vitals {
|
|
3473
3615
|
const _response = yield core.fetcher({
|
3474
3616
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_pressure`),
|
3475
3617
|
method: "GET",
|
3476
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3618
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.27", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3477
3619
|
contentType: "application/json",
|
3478
3620
|
queryParameters: _queryParams,
|
3479
3621
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|