@tryvital/vital-node 3.1.5 → 3.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +0 -1
- package/api/resources/activity/client/Client.d.ts +0 -1
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/body/client/Client.d.ts +0 -1
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.d.ts +0 -1
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.d.ts +0 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.d.ts +0 -1
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +0 -1
- package/api/resources/labTests/client/Client.js +24 -24
- package/api/resources/link/client/Client.d.ts +3 -4
- package/api/resources/link/client/Client.js +26 -20
- package/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
- package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
- package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
- package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
- package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.js +5 -0
- package/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +10 -0
- package/api/resources/link/client/requests/LinkGetAllProvidersRequest.js +5 -0
- package/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +10 -0
- package/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
- package/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
- package/api/resources/link/client/requests/index.d.ts +3 -0
- package/api/resources/meal/client/Client.d.ts +0 -1
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.d.ts +0 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.d.ts +0 -1
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.d.ts +0 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/team/client/Client.d.ts +1 -2
- package/api/resources/team/client/Client.js +9 -8
- package/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +10 -0
- package/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
- package/api/resources/team/client/requests/index.d.ts +1 -0
- package/api/resources/testkit/client/Client.d.ts +0 -1
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.d.ts +0 -1
- package/api/resources/user/client/Client.js +12 -12
- package/api/resources/vitals/client/Client.d.ts +0 -1
- package/api/resources/vitals/client/Client.js +50 -50
- package/api/resources/workouts/client/Client.d.ts +0 -1
- package/api/resources/workouts/client/Client.js +3 -3
- package/dist/Client.d.ts +0 -1
- package/dist/api/resources/activity/client/Client.d.ts +0 -1
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.d.ts +0 -1
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.d.ts +0 -1
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.d.ts +0 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.d.ts +0 -1
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +0 -1
- package/dist/api/resources/labTests/client/Client.js +24 -24
- package/dist/api/resources/link/client/Client.d.ts +3 -4
- package/dist/api/resources/link/client/Client.js +26 -20
- package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -0
- package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -0
- package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -0
- package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +6 -0
- package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.js +5 -0
- package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +10 -0
- package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.js +5 -0
- package/dist/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +10 -0
- package/dist/api/resources/link/client/requests/LinkTokenStateRequest.js +5 -0
- package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -0
- package/dist/api/resources/link/client/requests/index.d.ts +3 -0
- package/dist/api/resources/meal/client/Client.d.ts +0 -1
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.d.ts +0 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +0 -1
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.d.ts +0 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/team/client/Client.d.ts +1 -2
- package/dist/api/resources/team/client/Client.js +9 -8
- package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +10 -0
- package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.js +5 -0
- package/dist/api/resources/team/client/requests/index.d.ts +1 -0
- package/dist/api/resources/testkit/client/Client.d.ts +0 -1
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.d.ts +0 -1
- package/dist/api/resources/user/client/Client.js +12 -12
- package/dist/api/resources/vitals/client/Client.d.ts +0 -1
- package/dist/api/resources/vitals/client/Client.js +50 -50
- package/dist/api/resources/workouts/client/Client.d.ts +0 -1
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
- package/package.json +1 -1
- package/serialization/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
@@ -67,7 +67,7 @@ class User {
|
|
67
67
|
const _response = yield core.fetcher({
|
68
68
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
|
69
69
|
method: "GET",
|
70
|
-
headers: Object.assign({ "
|
70
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
71
71
|
contentType: "application/json",
|
72
72
|
queryParameters: _queryParams,
|
73
73
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -123,7 +123,7 @@ class User {
|
|
123
123
|
const _response = yield core.fetcher({
|
124
124
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
|
125
125
|
method: "POST",
|
126
|
-
headers: Object.assign({ "
|
126
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
127
127
|
contentType: "application/json",
|
128
128
|
body: yield serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
129
129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -179,7 +179,7 @@ class User {
|
|
179
179
|
const _response = yield core.fetcher({
|
180
180
|
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"),
|
181
181
|
method: "GET",
|
182
|
-
headers: Object.assign({ "
|
182
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
183
183
|
contentType: "application/json",
|
184
184
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
185
185
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -222,7 +222,7 @@ class User {
|
|
222
222
|
const _response = yield core.fetcher({
|
223
223
|
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`),
|
224
224
|
method: "POST",
|
225
|
-
headers: Object.assign({ "
|
225
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
226
226
|
contentType: "application/json",
|
227
227
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
228
228
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -279,7 +279,7 @@ class User {
|
|
279
279
|
const _response = yield core.fetcher({
|
280
280
|
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}`),
|
281
281
|
method: "GET",
|
282
|
-
headers: Object.assign({ "
|
282
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
283
283
|
contentType: "application/json",
|
284
284
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
285
285
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -333,7 +333,7 @@ class User {
|
|
333
333
|
const _response = yield core.fetcher({
|
334
334
|
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}`),
|
335
335
|
method: "GET",
|
336
|
-
headers: Object.assign({ "
|
336
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
337
337
|
contentType: "application/json",
|
338
338
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
339
339
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -386,7 +386,7 @@ class User {
|
|
386
386
|
const _response = yield core.fetcher({
|
387
387
|
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}`),
|
388
388
|
method: "DELETE",
|
389
|
-
headers: Object.assign({ "
|
389
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
390
390
|
contentType: "application/json",
|
391
391
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
392
392
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -442,7 +442,7 @@ class User {
|
|
442
442
|
const _response = yield core.fetcher({
|
443
443
|
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}`),
|
444
444
|
method: "PATCH",
|
445
|
-
headers: Object.assign({ "
|
445
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
446
446
|
contentType: "application/json",
|
447
447
|
body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
448
448
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -492,7 +492,7 @@ class User {
|
|
492
492
|
const _response = yield core.fetcher({
|
493
493
|
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}`),
|
494
494
|
method: "GET",
|
495
|
-
headers: Object.assign({ "
|
495
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
496
496
|
contentType: "application/json",
|
497
497
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
498
498
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -545,7 +545,7 @@ class User {
|
|
545
545
|
const _response = yield core.fetcher({
|
546
546
|
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)}`),
|
547
547
|
method: "DELETE",
|
548
|
-
headers: Object.assign({ "
|
548
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
549
549
|
contentType: "application/json",
|
550
550
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
551
551
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
@@ -606,7 +606,7 @@ class User {
|
|
606
606
|
const _response = yield core.fetcher({
|
607
607
|
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"),
|
608
608
|
method: "POST",
|
609
|
-
headers: Object.assign({ "
|
609
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
610
610
|
contentType: "application/json",
|
611
611
|
queryParameters: _queryParams,
|
612
612
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -667,7 +667,7 @@ class User {
|
|
667
667
|
const _response = yield core.fetcher({
|
668
668
|
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}`),
|
669
669
|
method: "POST",
|
670
|
-
headers: Object.assign({ "
|
670
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.7", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
671
671
|
contentType: "application/json",
|
672
672
|
queryParameters: _queryParams,
|
673
673
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -8,7 +8,6 @@ export declare namespace Vitals {
|
|
8
8
|
interface Options {
|
9
9
|
environment?: core.Supplier<environments.VitalEnvironment | string>;
|
10
10
|
apiKey: core.Supplier<string>;
|
11
|
-
vitalLinkToken: core.Supplier<string>;
|
12
11
|
}
|
13
12
|
interface RequestOptions {
|
14
13
|
timeoutInSeconds?: number;
|