@tryvital/vital-node 3.0.0-beta.0 → 3.0.1
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 -3
- package/Client.js +14 -19
- package/README.md +91 -0
- 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/index.d.ts +0 -1
- package/api/resources/index.js +1 -2
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +10 -1
- package/api/resources/labTests/client/Client.js +136 -21
- package/api/resources/link/client/Client.d.ts +1 -1
- package/api/resources/link/client/Client.js +16 -16
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.d.ts +1 -1
- package/api/resources/providers/client/Client.js +3 -3
- package/api/resources/sleep/client/Client.d.ts +5 -0
- package/api/resources/sleep/client/Client.js +61 -3
- package/api/resources/team/client/Client.d.ts +6 -6
- package/api/resources/team/client/Client.js +13 -13
- package/api/resources/team/client/requests/{GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.d.ts → TeamGetSourcePrioritiesRequest.d.ts} +1 -1
- package/{dist/api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.d.ts → api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts} +1 -1
- package/{dist/api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.d.ts → api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts} +1 -1
- package/api/resources/team/client/requests/index.d.ts +3 -3
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +11 -11
- package/api/resources/vitals/client/Client.d.ts +5 -0
- package/api/resources/vitals/client/Client.js +90 -22
- package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/index.d.ts +1 -0
- package/api/resources/workouts/client/Client.d.ts +4 -0
- package/api/resources/workouts/client/Client.js +59 -2
- package/api/types/BiomarkerResult.d.ts +2 -0
- package/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/api/types/ClientFacingLoinc.d.ts +10 -0
- package/api/types/ClientFacingMarkerComplete.d.ts +16 -0
- package/api/types/ClientFacingMarkerComplete.js +5 -0
- package/api/types/ClientFacingResult.d.ts +12 -0
- package/api/types/ClientFacingResult.js +5 -0
- package/api/types/ClientFacingSleep.d.ts +1 -1
- package/api/types/GetMarkersResponse.d.ts +1 -1
- package/api/types/Region.d.ts +2 -1
- package/api/types/Region.js +1 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +14 -19
- 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/index.d.ts +0 -1
- package/dist/api/resources/index.js +1 -2
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +10 -1
- package/dist/api/resources/labTests/client/Client.js +136 -21
- package/dist/api/resources/link/client/Client.d.ts +1 -1
- package/dist/api/resources/link/client/Client.js +16 -16
- 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.d.ts +1 -1
- package/dist/api/resources/providers/client/Client.js +3 -3
- package/dist/api/resources/sleep/client/Client.d.ts +5 -0
- package/dist/api/resources/sleep/client/Client.js +61 -3
- package/dist/api/resources/team/client/Client.d.ts +6 -6
- package/dist/api/resources/team/client/Client.js +13 -13
- package/dist/api/resources/team/client/requests/{GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.d.ts → TeamGetSourcePrioritiesRequest.d.ts} +1 -1
- package/dist/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.js +5 -0
- package/{api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.d.ts → dist/api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts} +1 -1
- package/dist/api/resources/team/client/requests/TeamGetUserByIdRequest.js +5 -0
- package/{api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.d.ts → dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts} +1 -1
- package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.js +5 -0
- package/dist/api/resources/team/client/requests/index.d.ts +3 -3
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +11 -11
- package/dist/api/resources/vitals/client/Client.d.ts +5 -0
- package/dist/api/resources/vitals/client/Client.js +90 -22
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workouts/client/Client.d.ts +4 -0
- package/dist/api/resources/workouts/client/Client.js +59 -2
- package/dist/api/types/BiomarkerResult.d.ts +2 -0
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.js +5 -0
- package/dist/api/types/ClientFacingLoinc.d.ts +10 -0
- package/dist/api/types/ClientFacingLoinc.js +5 -0
- package/dist/api/types/ClientFacingMarkerComplete.d.ts +16 -0
- package/dist/api/types/ClientFacingMarkerComplete.js +5 -0
- package/dist/api/types/ClientFacingResult.d.ts +12 -0
- package/dist/api/types/ClientFacingResult.js +5 -0
- package/dist/api/types/ClientFacingSleep.d.ts +1 -1
- package/dist/api/types/GetMarkersResponse.d.ts +1 -1
- package/dist/api/types/Region.d.ts +2 -1
- package/dist/api/types/Region.js +1 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/labTests/client/getMarkersForLabTest.d.ts +10 -0
- package/dist/serialization/resources/labTests/client/getMarkersForLabTest.js +40 -0
- package/dist/serialization/resources/labTests/client/index.d.ts +1 -0
- package/dist/serialization/resources/labTests/client/index.js +2 -1
- package/dist/serialization/resources/link/client/{getProviders.d.ts → getAllProviders.d.ts} +1 -1
- package/dist/serialization/resources/link/client/index.d.ts +1 -1
- package/dist/serialization/resources/link/client/index.js +2 -2
- package/{serialization/resources/providers/client/getListOfProviders.d.ts → dist/serialization/resources/providers/client/getAll.d.ts} +1 -1
- package/dist/serialization/resources/providers/client/index.d.ts +1 -1
- package/dist/serialization/resources/providers/client/index.js +2 -2
- package/{serialization/resources/team/client/getTeamConfig.d.ts → dist/serialization/resources/team/client/getLinkConfig.d.ts} +1 -1
- package/dist/serialization/resources/team/client/{getTeamConfig.d.ts → getSvixUrl.d.ts} +1 -1
- package/{serialization/resources/team/client/searchTeamUsersByUuidOrClientUserId.d.ts → dist/serialization/resources/team/client/getUserById.d.ts} +1 -1
- package/dist/serialization/resources/team/client/index.d.ts +3 -3
- package/dist/serialization/resources/team/client/index.js +4 -4
- package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.js +40 -0
- package/dist/serialization/resources/vitals/client/index.d.ts +1 -0
- package/dist/serialization/resources/vitals/client/index.js +2 -1
- package/dist/serialization/types/BiomarkerResult.d.ts +2 -0
- package/dist/serialization/types/BiomarkerResult.js +2 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingLoinc.d.ts +16 -0
- package/dist/serialization/types/ClientFacingLoinc.js +37 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +21 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.js +51 -0
- package/dist/serialization/types/ClientFacingResult.d.ts +17 -0
- package/dist/serialization/types/ClientFacingResult.js +47 -0
- package/dist/serialization/types/GetMarkersResponse.d.ts +1 -1
- package/dist/serialization/types/GetMarkersResponse.js +1 -1
- package/dist/serialization/types/Region.d.ts +1 -1
- package/dist/serialization/types/Region.js +1 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/package.json +1 -1
- package/serialization/resources/labTests/client/getMarkersForLabTest.d.ts +10 -0
- package/serialization/resources/labTests/client/getMarkersForLabTest.js +40 -0
- package/serialization/resources/labTests/client/index.d.ts +1 -0
- package/serialization/resources/labTests/client/index.js +2 -1
- package/serialization/resources/link/client/{getProviders.d.ts → getAllProviders.d.ts} +1 -1
- package/serialization/resources/link/client/index.d.ts +1 -1
- package/serialization/resources/link/client/index.js +2 -2
- package/{dist/serialization/resources/providers/client/getListOfProviders.d.ts → serialization/resources/providers/client/getAll.d.ts} +1 -1
- package/serialization/resources/providers/client/index.d.ts +1 -1
- package/serialization/resources/providers/client/index.js +2 -2
- package/serialization/resources/team/client/{getSvixWebhookUrl.d.ts → getLinkConfig.d.ts} +1 -1
- package/{dist/serialization/resources/team/client/getSvixWebhookUrl.d.ts → serialization/resources/team/client/getSvixUrl.d.ts} +1 -1
- package/{dist/serialization/resources/team/client/searchTeamUsersByUuidOrClientUserId.d.ts → serialization/resources/team/client/getUserById.d.ts} +1 -1
- package/serialization/resources/team/client/index.d.ts +3 -3
- package/serialization/resources/team/client/index.js +4 -4
- package/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +10 -0
- package/serialization/resources/vitals/client/electrocardiogramVoltage.js +40 -0
- package/serialization/resources/vitals/client/index.d.ts +1 -0
- package/serialization/resources/vitals/client/index.js +2 -1
- package/serialization/types/BiomarkerResult.d.ts +2 -0
- package/serialization/types/BiomarkerResult.js +2 -0
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +38 -0
- package/serialization/types/ClientFacingLoinc.d.ts +16 -0
- package/serialization/types/ClientFacingLoinc.js +37 -0
- package/serialization/types/ClientFacingMarkerComplete.d.ts +21 -0
- package/serialization/types/ClientFacingMarkerComplete.js +51 -0
- package/serialization/types/ClientFacingResult.d.ts +17 -0
- package/serialization/types/ClientFacingResult.js +47 -0
- package/serialization/types/GetMarkersResponse.d.ts +1 -1
- package/serialization/types/GetMarkersResponse.js +1 -1
- package/serialization/types/Region.d.ts +1 -1
- package/serialization/types/Region.js +1 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/api/resources/timeseries/client/Client.d.ts +0 -28
- package/api/resources/timeseries/client/Client.js +0 -168
- package/api/resources/timeseries/client/index.d.ts +0 -1
- package/api/resources/timeseries/client/index.js +0 -2
- package/api/resources/timeseries/index.d.ts +0 -1
- package/api/resources/timeseries/index.js +0 -17
- package/dist/api/resources/timeseries/client/Client.d.ts +0 -28
- package/dist/api/resources/timeseries/client/Client.js +0 -168
- package/dist/api/resources/timeseries/client/index.d.ts +0 -1
- package/dist/api/resources/timeseries/client/index.js +0 -2
- package/dist/api/resources/timeseries/index.d.ts +0 -1
- package/dist/api/resources/timeseries/index.js +0 -17
- /package/api/resources/team/client/requests/{GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.js → TeamGetSourcePrioritiesRequest.js} +0 -0
- /package/api/resources/team/client/requests/{SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.js → TeamGetUserByIdRequest.js} +0 -0
- /package/api/resources/team/client/requests/{UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.js → TeamUpdateSourcePrioritiesRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.js → api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.js → api/types/ClientFacingElectrocardiogramVoltageTimeseries.js} +0 -0
- /package/{dist/api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.js → api/types/ClientFacingLoinc.js} +0 -0
- /package/dist/serialization/resources/link/client/{getProviders.js → getAllProviders.js} +0 -0
- /package/dist/serialization/resources/providers/client/{getListOfProviders.js → getAll.js} +0 -0
- /package/dist/serialization/resources/team/client/{getSvixWebhookUrl.js → getLinkConfig.js} +0 -0
- /package/dist/serialization/resources/team/client/{getTeamConfig.js → getSvixUrl.js} +0 -0
- /package/dist/serialization/resources/team/client/{searchTeamUsersByUuidOrClientUserId.js → getUserById.js} +0 -0
- /package/serialization/resources/link/client/{getProviders.js → getAllProviders.js} +0 -0
- /package/serialization/resources/providers/client/{getListOfProviders.js → getAll.js} +0 -0
- /package/serialization/resources/team/client/{getSvixWebhookUrl.js → getLinkConfig.js} +0 -0
- /package/serialization/resources/team/client/{getTeamConfig.js → getSvixUrl.js} +0 -0
- /package/serialization/resources/team/client/{searchTeamUsersByUuidOrClientUserId.js → getUserById.js} +0 -0
@@ -31,4 +31,9 @@ export declare class Sleep {
|
|
31
31
|
* @throws {@link Vital.UnprocessableEntityError}
|
32
32
|
*/
|
33
33
|
getRaw(userId: string, request: Vital.SleepGetRawRequest, requestOptions?: Sleep.RequestOptions): Promise<Vital.RawSleep>;
|
34
|
+
/**
|
35
|
+
* Get Sleep stream for a user_id
|
36
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
37
|
+
*/
|
38
|
+
getStreamBySleepId(sleepId: string, requestOptions?: Sleep.RequestOptions): Promise<Vital.ClientFacingSleepStream>;
|
34
39
|
}
|
@@ -73,7 +73,7 @@ class Sleep {
|
|
73
73
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
74
74
|
"X-Fern-Language": "JavaScript",
|
75
75
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
76
|
-
"X-Fern-SDK-Version": "3.0.
|
76
|
+
"X-Fern-SDK-Version": "3.0.1",
|
77
77
|
},
|
78
78
|
contentType: "application/json",
|
79
79
|
queryParameters: _queryParams,
|
@@ -141,7 +141,7 @@ class Sleep {
|
|
141
141
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
142
142
|
"X-Fern-Language": "JavaScript",
|
143
143
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
144
|
-
"X-Fern-SDK-Version": "3.0.
|
144
|
+
"X-Fern-SDK-Version": "3.0.1",
|
145
145
|
},
|
146
146
|
contentType: "application/json",
|
147
147
|
queryParameters: _queryParams,
|
@@ -209,7 +209,7 @@ class Sleep {
|
|
209
209
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
210
210
|
"X-Fern-Language": "JavaScript",
|
211
211
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
212
|
-
"X-Fern-SDK-Version": "3.0.
|
212
|
+
"X-Fern-SDK-Version": "3.0.1",
|
213
213
|
},
|
214
214
|
contentType: "application/json",
|
215
215
|
queryParameters: _queryParams,
|
@@ -254,5 +254,63 @@ class Sleep {
|
|
254
254
|
}
|
255
255
|
});
|
256
256
|
}
|
257
|
+
/**
|
258
|
+
* Get Sleep stream for a user_id
|
259
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
260
|
+
*/
|
261
|
+
getStreamBySleepId(sleepId, requestOptions) {
|
262
|
+
var _a;
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
264
|
+
const _response = yield core.fetcher({
|
265
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/sleep/${sleepId}/stream`),
|
266
|
+
method: "GET",
|
267
|
+
headers: {
|
268
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
269
|
+
"X-Fern-Language": "JavaScript",
|
270
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
271
|
+
"X-Fern-SDK-Version": "3.0.1",
|
272
|
+
},
|
273
|
+
contentType: "application/json",
|
274
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
275
|
+
});
|
276
|
+
if (_response.ok) {
|
277
|
+
return yield serializers.ClientFacingSleepStream.parseOrThrow(_response.body, {
|
278
|
+
unrecognizedObjectKeys: "passthrough",
|
279
|
+
allowUnrecognizedUnionMembers: true,
|
280
|
+
allowUnrecognizedEnumValues: true,
|
281
|
+
breadcrumbsPrefix: ["response"],
|
282
|
+
});
|
283
|
+
}
|
284
|
+
if (_response.error.reason === "status-code") {
|
285
|
+
switch (_response.error.statusCode) {
|
286
|
+
case 422:
|
287
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
288
|
+
unrecognizedObjectKeys: "passthrough",
|
289
|
+
allowUnrecognizedUnionMembers: true,
|
290
|
+
allowUnrecognizedEnumValues: true,
|
291
|
+
breadcrumbsPrefix: ["response"],
|
292
|
+
}));
|
293
|
+
default:
|
294
|
+
throw new errors.VitalError({
|
295
|
+
statusCode: _response.error.statusCode,
|
296
|
+
body: _response.error.body,
|
297
|
+
});
|
298
|
+
}
|
299
|
+
}
|
300
|
+
switch (_response.error.reason) {
|
301
|
+
case "non-json":
|
302
|
+
throw new errors.VitalError({
|
303
|
+
statusCode: _response.error.statusCode,
|
304
|
+
body: _response.error.rawBody,
|
305
|
+
});
|
306
|
+
case "timeout":
|
307
|
+
throw new errors.VitalTimeoutError();
|
308
|
+
case "unknown":
|
309
|
+
throw new errors.VitalError({
|
310
|
+
message: _response.error.errorMessage,
|
311
|
+
});
|
312
|
+
}
|
313
|
+
});
|
314
|
+
}
|
257
315
|
}
|
258
316
|
exports.Sleep = Sleep;
|
@@ -19,26 +19,26 @@ export declare class Team {
|
|
19
19
|
/**
|
20
20
|
* Post teams.
|
21
21
|
*/
|
22
|
-
|
22
|
+
getLinkConfig(requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>>;
|
23
23
|
/**
|
24
24
|
* Get team.
|
25
25
|
* @throws {@link Vital.UnprocessableEntityError}
|
26
26
|
*/
|
27
|
-
|
27
|
+
get(teamId: string, requestOptions?: Team.RequestOptions): Promise<Vital.ClientFacingTeam>;
|
28
28
|
/**
|
29
29
|
* Search team users by user_id
|
30
30
|
* @throws {@link Vital.UnprocessableEntityError}
|
31
31
|
*/
|
32
|
-
|
33
|
-
|
32
|
+
getUserById(request?: Vital.TeamGetUserByIdRequest, requestOptions?: Team.RequestOptions): Promise<Vital.ClientFacingUser[]>;
|
33
|
+
getSvixUrl(requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>>;
|
34
34
|
/**
|
35
35
|
* GET source priorities.
|
36
36
|
* @throws {@link Vital.UnprocessableEntityError}
|
37
37
|
*/
|
38
|
-
getSourcePriorities(request?: Vital.
|
38
|
+
getSourcePriorities(request?: Vital.TeamGetSourcePrioritiesRequest, requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>[]>;
|
39
39
|
/**
|
40
40
|
* Patch source priorities.
|
41
41
|
* @throws {@link Vital.UnprocessableEntityError}
|
42
42
|
*/
|
43
|
-
updateSourcePriorities(request: Vital.
|
43
|
+
updateSourcePriorities(request: Vital.TeamUpdateSourcePrioritiesRequest, requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>[]>;
|
44
44
|
}
|
@@ -53,7 +53,7 @@ class Team {
|
|
53
53
|
/**
|
54
54
|
* Post teams.
|
55
55
|
*/
|
56
|
-
|
56
|
+
getLinkConfig(requestOptions) {
|
57
57
|
var _a;
|
58
58
|
return __awaiter(this, void 0, void 0, function* () {
|
59
59
|
const _response = yield core.fetcher({
|
@@ -63,13 +63,13 @@ class Team {
|
|
63
63
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
64
64
|
"X-Fern-Language": "JavaScript",
|
65
65
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
66
|
-
"X-Fern-SDK-Version": "3.0.
|
66
|
+
"X-Fern-SDK-Version": "3.0.1",
|
67
67
|
},
|
68
68
|
contentType: "application/json",
|
69
69
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
70
70
|
});
|
71
71
|
if (_response.ok) {
|
72
|
-
return yield serializers.team.
|
72
|
+
return yield serializers.team.getLinkConfig.Response.parseOrThrow(_response.body, {
|
73
73
|
unrecognizedObjectKeys: "passthrough",
|
74
74
|
allowUnrecognizedUnionMembers: true,
|
75
75
|
allowUnrecognizedEnumValues: true,
|
@@ -101,7 +101,7 @@ class Team {
|
|
101
101
|
* Get team.
|
102
102
|
* @throws {@link Vital.UnprocessableEntityError}
|
103
103
|
*/
|
104
|
-
|
104
|
+
get(teamId, requestOptions) {
|
105
105
|
var _a;
|
106
106
|
return __awaiter(this, void 0, void 0, function* () {
|
107
107
|
const _response = yield core.fetcher({
|
@@ -111,7 +111,7 @@ class Team {
|
|
111
111
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
112
112
|
"X-Fern-Language": "JavaScript",
|
113
113
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
114
|
-
"X-Fern-SDK-Version": "3.0.
|
114
|
+
"X-Fern-SDK-Version": "3.0.1",
|
115
115
|
},
|
116
116
|
contentType: "application/json",
|
117
117
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -159,7 +159,7 @@ class Team {
|
|
159
159
|
* Search team users by user_id
|
160
160
|
* @throws {@link Vital.UnprocessableEntityError}
|
161
161
|
*/
|
162
|
-
|
162
|
+
getUserById(request = {}, requestOptions) {
|
163
163
|
var _a;
|
164
164
|
return __awaiter(this, void 0, void 0, function* () {
|
165
165
|
const { queryId } = request;
|
@@ -174,14 +174,14 @@ class Team {
|
|
174
174
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
175
175
|
"X-Fern-Language": "JavaScript",
|
176
176
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
177
|
-
"X-Fern-SDK-Version": "3.0.
|
177
|
+
"X-Fern-SDK-Version": "3.0.1",
|
178
178
|
},
|
179
179
|
contentType: "application/json",
|
180
180
|
queryParameters: _queryParams,
|
181
181
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
182
182
|
});
|
183
183
|
if (_response.ok) {
|
184
|
-
return yield serializers.team.
|
184
|
+
return yield serializers.team.getUserById.Response.parseOrThrow(_response.body, {
|
185
185
|
unrecognizedObjectKeys: "passthrough",
|
186
186
|
allowUnrecognizedUnionMembers: true,
|
187
187
|
allowUnrecognizedEnumValues: true,
|
@@ -219,7 +219,7 @@ class Team {
|
|
219
219
|
}
|
220
220
|
});
|
221
221
|
}
|
222
|
-
|
222
|
+
getSvixUrl(requestOptions) {
|
223
223
|
var _a;
|
224
224
|
return __awaiter(this, void 0, void 0, function* () {
|
225
225
|
const _response = yield core.fetcher({
|
@@ -229,13 +229,13 @@ class Team {
|
|
229
229
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
230
230
|
"X-Fern-Language": "JavaScript",
|
231
231
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
232
|
-
"X-Fern-SDK-Version": "3.0.
|
232
|
+
"X-Fern-SDK-Version": "3.0.1",
|
233
233
|
},
|
234
234
|
contentType: "application/json",
|
235
235
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
236
236
|
});
|
237
237
|
if (_response.ok) {
|
238
|
-
return yield serializers.team.
|
238
|
+
return yield serializers.team.getSvixUrl.Response.parseOrThrow(_response.body, {
|
239
239
|
unrecognizedObjectKeys: "passthrough",
|
240
240
|
allowUnrecognizedUnionMembers: true,
|
241
241
|
allowUnrecognizedEnumValues: true,
|
@@ -282,7 +282,7 @@ class Team {
|
|
282
282
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
283
283
|
"X-Fern-Language": "JavaScript",
|
284
284
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
285
|
-
"X-Fern-SDK-Version": "3.0.
|
285
|
+
"X-Fern-SDK-Version": "3.0.1",
|
286
286
|
},
|
287
287
|
contentType: "application/json",
|
288
288
|
queryParameters: _queryParams,
|
@@ -344,7 +344,7 @@ class Team {
|
|
344
344
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
345
345
|
"X-Fern-Language": "JavaScript",
|
346
346
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
347
|
-
"X-Fern-SDK-Version": "3.0.
|
347
|
+
"X-Fern-SDK-Version": "3.0.1",
|
348
348
|
},
|
349
349
|
contentType: "application/json",
|
350
350
|
queryParameters: _queryParams,
|
@@ -1,3 +1,3 @@
|
|
1
|
-
export {
|
2
|
-
export {
|
3
|
-
export {
|
1
|
+
export { TeamGetUserByIdRequest } from "./TeamGetUserByIdRequest";
|
2
|
+
export { TeamGetSourcePrioritiesRequest } from "./TeamGetSourcePrioritiesRequest";
|
3
|
+
export { TeamUpdateSourcePrioritiesRequest } from "./TeamUpdateSourcePrioritiesRequest";
|
@@ -62,7 +62,7 @@ class Testkit {
|
|
62
62
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
63
63
|
"X-Fern-Language": "JavaScript",
|
64
64
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
65
|
-
"X-Fern-SDK-Version": "3.0.
|
65
|
+
"X-Fern-SDK-Version": "3.0.1",
|
66
66
|
},
|
67
67
|
contentType: "application/json",
|
68
68
|
body: yield serializers.RegisterTestkitRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -121,7 +121,7 @@ class Testkit {
|
|
121
121
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
122
122
|
"X-Fern-Language": "JavaScript",
|
123
123
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
124
|
-
"X-Fern-SDK-Version": "3.0.
|
124
|
+
"X-Fern-SDK-Version": "3.0.1",
|
125
125
|
},
|
126
126
|
contentType: "application/json",
|
127
127
|
body: yield serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
|
@@ -72,7 +72,7 @@ class User {
|
|
72
72
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
73
73
|
"X-Fern-Language": "JavaScript",
|
74
74
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
75
|
-
"X-Fern-SDK-Version": "3.0.
|
75
|
+
"X-Fern-SDK-Version": "3.0.1",
|
76
76
|
},
|
77
77
|
contentType: "application/json",
|
78
78
|
queryParameters: _queryParams,
|
@@ -131,7 +131,7 @@ class User {
|
|
131
131
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
132
132
|
"X-Fern-Language": "JavaScript",
|
133
133
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
134
|
-
"X-Fern-SDK-Version": "3.0.
|
134
|
+
"X-Fern-SDK-Version": "3.0.1",
|
135
135
|
},
|
136
136
|
contentType: "application/json",
|
137
137
|
body: yield serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -189,7 +189,7 @@ class User {
|
|
189
189
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
190
190
|
"X-Fern-Language": "JavaScript",
|
191
191
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
192
|
-
"X-Fern-SDK-Version": "3.0.
|
192
|
+
"X-Fern-SDK-Version": "3.0.1",
|
193
193
|
},
|
194
194
|
contentType: "application/json",
|
195
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -236,7 +236,7 @@ class User {
|
|
236
236
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
237
237
|
"X-Fern-Language": "JavaScript",
|
238
238
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
239
|
-
"X-Fern-SDK-Version": "3.0.
|
239
|
+
"X-Fern-SDK-Version": "3.0.1",
|
240
240
|
},
|
241
241
|
contentType: "application/json",
|
242
242
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -294,7 +294,7 @@ class User {
|
|
294
294
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
295
295
|
"X-Fern-Language": "JavaScript",
|
296
296
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
297
|
-
"X-Fern-SDK-Version": "3.0.
|
297
|
+
"X-Fern-SDK-Version": "3.0.1",
|
298
298
|
},
|
299
299
|
contentType: "application/json",
|
300
300
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -352,7 +352,7 @@ class User {
|
|
352
352
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
353
353
|
"X-Fern-Language": "JavaScript",
|
354
354
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
355
|
-
"X-Fern-SDK-Version": "3.0.
|
355
|
+
"X-Fern-SDK-Version": "3.0.1",
|
356
356
|
},
|
357
357
|
contentType: "application/json",
|
358
358
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -409,7 +409,7 @@ class User {
|
|
409
409
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
410
410
|
"X-Fern-Language": "JavaScript",
|
411
411
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
412
|
-
"X-Fern-SDK-Version": "3.0.
|
412
|
+
"X-Fern-SDK-Version": "3.0.1",
|
413
413
|
},
|
414
414
|
contentType: "application/json",
|
415
415
|
body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -462,7 +462,7 @@ class User {
|
|
462
462
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
463
463
|
"X-Fern-Language": "JavaScript",
|
464
464
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
465
|
-
"X-Fern-SDK-Version": "3.0.
|
465
|
+
"X-Fern-SDK-Version": "3.0.1",
|
466
466
|
},
|
467
467
|
contentType: "application/json",
|
468
468
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -520,7 +520,7 @@ class User {
|
|
520
520
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
521
521
|
"X-Fern-Language": "JavaScript",
|
522
522
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
523
|
-
"X-Fern-SDK-Version": "3.0.
|
523
|
+
"X-Fern-SDK-Version": "3.0.1",
|
524
524
|
},
|
525
525
|
contentType: "application/json",
|
526
526
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -577,7 +577,7 @@ class User {
|
|
577
577
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
578
578
|
"X-Fern-Language": "JavaScript",
|
579
579
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
580
|
-
"X-Fern-SDK-Version": "3.0.
|
580
|
+
"X-Fern-SDK-Version": "3.0.1",
|
581
581
|
},
|
582
582
|
contentType: "application/json",
|
583
583
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -636,7 +636,7 @@ class User {
|
|
636
636
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
637
637
|
"X-Fern-Language": "JavaScript",
|
638
638
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
639
|
-
"X-Fern-SDK-Version": "3.0.
|
639
|
+
"X-Fern-SDK-Version": "3.0.1",
|
640
640
|
},
|
641
641
|
contentType: "application/json",
|
642
642
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -121,6 +121,11 @@ export declare class Vitals {
|
|
121
121
|
* @throws {@link Vital.UnprocessableEntityError}
|
122
122
|
*/
|
123
123
|
bloodOxygen(userId: string, request: Vital.VitalsBloodOxygenRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingBloodOxygenTimeseries[]>;
|
124
|
+
/**
|
125
|
+
* Get timeseries data for user
|
126
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
127
|
+
*/
|
128
|
+
electrocardiogramVoltage(userId: string, request: Vital.VitalsElectrocardiogramVoltageRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingElectrocardiogramVoltageTimeseries[]>;
|
124
129
|
/**
|
125
130
|
* Get timeseries data for user
|
126
131
|
* @throws {@link Vital.UnprocessableEntityError}
|