@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
@@ -70,7 +70,7 @@ class User {
|
|
70
70
|
const _response = yield core.fetcher({
|
71
71
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
|
72
72
|
method: "GET",
|
73
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
73
|
+
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())),
|
74
74
|
contentType: "application/json",
|
75
75
|
queryParameters: _queryParams,
|
76
76
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -131,7 +131,7 @@ class User {
|
|
131
131
|
const _response = yield core.fetcher({
|
132
132
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
|
133
133
|
method: "POST",
|
134
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
134
|
+
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())),
|
135
135
|
contentType: "application/json",
|
136
136
|
body: yield serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
137
137
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -190,7 +190,7 @@ class User {
|
|
190
190
|
const _response = yield core.fetcher({
|
191
191
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user/metrics"),
|
192
192
|
method: "GET",
|
193
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
193
|
+
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())),
|
194
194
|
contentType: "application/json",
|
195
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
196
196
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -236,7 +236,7 @@ class User {
|
|
236
236
|
const _response = yield core.fetcher({
|
237
237
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}/sign_in_token`),
|
238
238
|
method: "POST",
|
239
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
239
|
+
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())),
|
240
240
|
contentType: "application/json",
|
241
241
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
242
242
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -293,7 +293,7 @@ class User {
|
|
293
293
|
const _response = yield core.fetcher({
|
294
294
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/providers/${userId}`),
|
295
295
|
method: "GET",
|
296
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
296
|
+
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())),
|
297
297
|
contentType: "application/json",
|
298
298
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
299
299
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -350,7 +350,7 @@ class User {
|
|
350
350
|
const _response = yield core.fetcher({
|
351
351
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
|
352
352
|
method: "GET",
|
353
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
353
|
+
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())),
|
354
354
|
contentType: "application/json",
|
355
355
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
356
356
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -406,7 +406,7 @@ class User {
|
|
406
406
|
const _response = yield core.fetcher({
|
407
407
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
|
408
408
|
method: "DELETE",
|
409
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
409
|
+
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())),
|
410
410
|
contentType: "application/json",
|
411
411
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
412
412
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -462,7 +462,7 @@ class User {
|
|
462
462
|
const _response = yield core.fetcher({
|
463
463
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}`),
|
464
464
|
method: "PATCH",
|
465
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
465
|
+
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())),
|
466
466
|
contentType: "application/json",
|
467
467
|
body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
468
468
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -515,7 +515,7 @@ class User {
|
|
515
515
|
const _response = yield core.fetcher({
|
516
516
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/resolve/${clientUserId}`),
|
517
517
|
method: "GET",
|
518
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
518
|
+
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())),
|
519
519
|
contentType: "application/json",
|
520
520
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
521
521
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -571,7 +571,7 @@ class User {
|
|
571
571
|
const _response = yield core.fetcher({
|
572
572
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/${userId}/${yield serializers.Providers.jsonOrThrow(provider)}`),
|
573
573
|
method: "DELETE",
|
574
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
574
|
+
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())),
|
575
575
|
contentType: "application/json",
|
576
576
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
577
577
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -635,7 +635,7 @@ class User {
|
|
635
635
|
const _response = yield core.fetcher({
|
636
636
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user/undo_delete"),
|
637
637
|
method: "POST",
|
638
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
638
|
+
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())),
|
639
639
|
contentType: "application/json",
|
640
640
|
queryParameters: _queryParams,
|
641
641
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -699,7 +699,7 @@ class User {
|
|
699
699
|
const _response = yield core.fetcher({
|
700
700
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/refresh/${userId}`),
|
701
701
|
method: "POST",
|
702
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
702
|
+
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())),
|
703
703
|
contentType: "application/json",
|
704
704
|
queryParameters: _queryParams,
|
705
705
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -179,6 +179,24 @@ export declare class Vitals {
|
|
179
179
|
* })
|
180
180
|
*/
|
181
181
|
cholesterolGrouped(userId: string, request: Vital.VitalsCholesterolGroupedRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.GroupedCholesterolResponse>;
|
182
|
+
/**
|
183
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
184
|
+
*
|
185
|
+
* @example
|
186
|
+
* await vital.vitals.bodyTemperatureDeltaGrouped("user_id", {
|
187
|
+
* startDate: "start_date"
|
188
|
+
* })
|
189
|
+
*/
|
190
|
+
bodyTemperatureDeltaGrouped(userId: string, request: Vital.VitalsBodyTemperatureDeltaGroupedRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample>;
|
191
|
+
/**
|
192
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
193
|
+
*
|
194
|
+
* @example
|
195
|
+
* await vital.vitals.bodyTemperatureGrouped("user_id", {
|
196
|
+
* startDate: "start_date"
|
197
|
+
* })
|
198
|
+
*/
|
199
|
+
bodyTemperatureGrouped(userId: string, request: Vital.VitalsBodyTemperatureGroupedRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample>;
|
182
200
|
/**
|
183
201
|
* @throws {@link Vital.UnprocessableEntityError}
|
184
202
|
*
|