@tryvital/vital-node 3.1.246 → 3.1.247
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/aggregate/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/electrocardiogram/client/Client.js +1 -1
- package/api/resources/insurance/client/Client.js +3 -3
- package/api/resources/introspect/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +2 -2
- package/api/resources/labTests/client/Client.js +42 -42
- package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
- package/api/resources/labTests/client/requests/ImportOrderBody.d.ts +1 -1
- package/api/resources/link/client/Client.js +19 -19
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/order/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/sleepCycle/client/Client.js +1 -1
- package/api/resources/team/client/Client.js +7 -7
- package/api/resources/testkit/client/Client.d.ts +1 -1
- package/api/resources/testkit/client/Client.js +3 -3
- package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +75 -75
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ClientFacingPatientDetailsCompatible.d.ts +1 -1
- package/api/types/ClientFacingProfile.d.ts +3 -1
- package/api/types/PatientDetailsWithValidation.d.ts +1 -1
- package/api/types/ProfileInDb.d.ts +3 -2
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/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/electrocardiogram/client/Client.js +1 -1
- package/dist/api/resources/insurance/client/Client.js +3 -3
- package/dist/api/resources/introspect/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +2 -2
- package/dist/api/resources/labTests/client/Client.js +42 -42
- package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/ImportOrderBody.d.ts +1 -1
- package/dist/api/resources/link/client/Client.js +19 -19
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.js +1 -1
- package/dist/api/resources/order/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/sleepCycle/client/Client.js +1 -1
- package/dist/api/resources/team/client/Client.js +7 -7
- package/dist/api/resources/testkit/client/Client.d.ts +1 -1
- package/dist/api/resources/testkit/client/Client.js +3 -3
- package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +1 -1
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +75 -75
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ClientFacingPatientDetailsCompatible.d.ts +1 -1
- package/dist/api/types/ClientFacingProfile.d.ts +3 -1
- package/dist/api/types/PatientDetailsWithValidation.d.ts +1 -1
- package/dist/api/types/ProfileInDb.d.ts +3 -2
- package/dist/serialization/types/ClientFacingPatientDetailsCompatible.js +1 -1
- package/dist/serialization/types/ClientFacingProfile.d.ts +3 -1
- package/dist/serialization/types/ClientFacingProfile.js +3 -1
- package/dist/serialization/types/PatientDetailsWithValidation.js +1 -1
- package/dist/serialization/types/ProfileInDb.d.ts +3 -2
- package/dist/serialization/types/ProfileInDb.js +3 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +3 -3
- package/serialization/types/ClientFacingPatientDetailsCompatible.js +1 -1
- package/serialization/types/ClientFacingProfile.d.ts +3 -1
- package/serialization/types/ClientFacingProfile.js +3 -1
- package/serialization/types/PatientDetailsWithValidation.js +1 -1
- package/serialization/types/ProfileInDb.d.ts +3 -2
- package/serialization/types/ProfileInDb.js +3 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
@@ -78,7 +78,7 @@ class Workouts {
|
|
78
78
|
const _response = yield core.fetcher({
|
79
79
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}`),
|
80
80
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
81
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.247", "User-Agent": "@tryvital/vital-node/3.1.247", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
84
84
|
requestType: "json",
|
@@ -154,7 +154,7 @@ class Workouts {
|
|
154
154
|
const _response = yield core.fetcher({
|
155
155
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/workouts/${encodeURIComponent(userId)}/raw`),
|
156
156
|
method: "GET",
|
157
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
157
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.247", "User-Agent": "@tryvital/vital-node/3.1.247", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
158
158
|
contentType: "application/json",
|
159
159
|
queryParameters: _queryParams,
|
160
160
|
requestType: "json",
|
@@ -216,7 +216,7 @@ class Workouts {
|
|
216
216
|
const _response = yield core.fetcher({
|
217
217
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/workouts/${encodeURIComponent(workoutId)}/stream`),
|
218
218
|
method: "GET",
|
219
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
219
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.247", "User-Agent": "@tryvital/vital-node/3.1.247", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
220
220
|
contentType: "application/json",
|
221
221
|
requestType: "json",
|
222
222
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -3,11 +3,13 @@
|
|
3
3
|
*/
|
4
4
|
import * as Vital from "../index";
|
5
5
|
export interface ClientFacingProfile {
|
6
|
+
id: string;
|
6
7
|
/** User id returned by vital create user request. This id should be stored in your database against the user and used for all interactions with the vital api. */
|
7
8
|
userId: string;
|
8
|
-
id: string;
|
9
9
|
height?: number;
|
10
10
|
birthDate?: string;
|
11
11
|
wheelchairUse?: boolean;
|
12
12
|
source: Vital.ClientFacingSource;
|
13
|
+
createdAt: Date;
|
14
|
+
updatedAt: Date;
|
13
15
|
}
|
@@ -3,11 +3,12 @@
|
|
3
3
|
*/
|
4
4
|
import * as Vital from "../index";
|
5
5
|
export interface ProfileInDb {
|
6
|
-
|
6
|
+
id: string;
|
7
|
+
data?: unknown;
|
7
8
|
userId: string;
|
8
9
|
sourceId: number;
|
9
10
|
priorityId?: number;
|
10
|
-
id: string;
|
11
11
|
source: Vital.ClientFacingProvider;
|
12
|
+
createdAt?: Date;
|
12
13
|
updatedAt?: Date;
|
13
14
|
}
|
@@ -36,7 +36,7 @@ const GenderIdentity_1 = require("./GenderIdentity");
|
|
36
36
|
exports.ClientFacingPatientDetailsCompatible = core.serialization.object({
|
37
37
|
firstName: core.serialization.property("first_name", core.serialization.string().optional()),
|
38
38
|
lastName: core.serialization.property("last_name", core.serialization.string().optional()),
|
39
|
-
dob: core.serialization.
|
39
|
+
dob: core.serialization.string(),
|
40
40
|
gender: core.serialization.string(),
|
41
41
|
phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()),
|
42
42
|
email: core.serialization.string().optional(),
|
@@ -8,11 +8,13 @@ import { ClientFacingSource } from "./ClientFacingSource";
|
|
8
8
|
export declare const ClientFacingProfile: core.serialization.ObjectSchema<serializers.ClientFacingProfile.Raw, Vital.ClientFacingProfile>;
|
9
9
|
export declare namespace ClientFacingProfile {
|
10
10
|
interface Raw {
|
11
|
-
user_id: string;
|
12
11
|
id: string;
|
12
|
+
user_id: string;
|
13
13
|
height?: number | null;
|
14
14
|
birth_date?: string | null;
|
15
15
|
wheelchair_use?: boolean | null;
|
16
16
|
source: ClientFacingSource.Raw;
|
17
|
+
created_at: string;
|
18
|
+
updated_at: string;
|
17
19
|
}
|
18
20
|
}
|
@@ -30,10 +30,12 @@ exports.ClientFacingProfile = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const ClientFacingSource_1 = require("./ClientFacingSource");
|
32
32
|
exports.ClientFacingProfile = core.serialization.object({
|
33
|
-
userId: core.serialization.property("user_id", core.serialization.string()),
|
34
33
|
id: core.serialization.string(),
|
34
|
+
userId: core.serialization.property("user_id", core.serialization.string()),
|
35
35
|
height: core.serialization.number().optional(),
|
36
36
|
birthDate: core.serialization.property("birth_date", core.serialization.string().optional()),
|
37
37
|
wheelchairUse: core.serialization.property("wheelchair_use", core.serialization.boolean().optional()),
|
38
38
|
source: ClientFacingSource_1.ClientFacingSource,
|
39
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
40
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
39
41
|
});
|
@@ -37,7 +37,7 @@ const GenderIdentity_1 = require("./GenderIdentity");
|
|
37
37
|
exports.PatientDetailsWithValidation = core.serialization.object({
|
38
38
|
firstName: core.serialization.property("first_name", core.serialization.string()),
|
39
39
|
lastName: core.serialization.property("last_name", core.serialization.string()),
|
40
|
-
dob: core.serialization.
|
40
|
+
dob: core.serialization.string(),
|
41
41
|
gender: Gender_1.Gender,
|
42
42
|
phoneNumber: core.serialization.property("phone_number", core.serialization.string()),
|
43
43
|
email: core.serialization.string(),
|
@@ -8,12 +8,13 @@ import { ClientFacingProvider } from "./ClientFacingProvider";
|
|
8
8
|
export declare const ProfileInDb: core.serialization.ObjectSchema<serializers.ProfileInDb.Raw, Vital.ProfileInDb>;
|
9
9
|
export declare namespace ProfileInDb {
|
10
10
|
interface Raw {
|
11
|
-
|
11
|
+
id: string;
|
12
|
+
data?: unknown;
|
12
13
|
user_id: string;
|
13
14
|
source_id: number;
|
14
15
|
priority_id?: number | null;
|
15
|
-
id: string;
|
16
16
|
source: ClientFacingProvider.Raw;
|
17
|
+
created_at?: string | null;
|
17
18
|
updated_at?: string | null;
|
18
19
|
}
|
19
20
|
}
|
@@ -30,11 +30,12 @@ exports.ProfileInDb = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const ClientFacingProvider_1 = require("./ClientFacingProvider");
|
32
32
|
exports.ProfileInDb = core.serialization.object({
|
33
|
-
|
33
|
+
id: core.serialization.string(),
|
34
|
+
data: core.serialization.unknown(),
|
34
35
|
userId: core.serialization.property("user_id", core.serialization.string()),
|
35
36
|
sourceId: core.serialization.property("source_id", core.serialization.number()),
|
36
37
|
priorityId: core.serialization.property("priority_id", core.serialization.number().optional()),
|
37
|
-
id: core.serialization.string(),
|
38
38
|
source: ClientFacingProvider_1.ClientFacingProvider,
|
39
|
+
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
39
40
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
40
41
|
});
|
package/dist/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.247";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
package/reference.md
CHANGED
@@ -10129,7 +10129,7 @@ await client.labTests.createOrder({
|
|
10129
10129
|
patientDetails: {
|
10130
10130
|
firstName: "first_name",
|
10131
10131
|
lastName: "last_name",
|
10132
|
-
dob: "
|
10132
|
+
dob: "dob",
|
10133
10133
|
gender: "female",
|
10134
10134
|
phoneNumber: "phone_number",
|
10135
10135
|
email: "email",
|
@@ -10197,7 +10197,7 @@ await client.labTests.importOrder({
|
|
10197
10197
|
patientDetails: {
|
10198
10198
|
firstName: "first_name",
|
10199
10199
|
lastName: "last_name",
|
10200
|
-
dob: "
|
10200
|
+
dob: "dob",
|
10201
10201
|
gender: "female",
|
10202
10202
|
phoneNumber: "phone_number",
|
10203
10203
|
email: "email",
|
@@ -10463,7 +10463,7 @@ await client.testkit.register({
|
|
10463
10463
|
patientDetails: {
|
10464
10464
|
firstName: "first_name",
|
10465
10465
|
lastName: "last_name",
|
10466
|
-
dob: "
|
10466
|
+
dob: "dob",
|
10467
10467
|
gender: "female",
|
10468
10468
|
phoneNumber: "phone_number",
|
10469
10469
|
email: "email",
|
@@ -36,7 +36,7 @@ const GenderIdentity_1 = require("./GenderIdentity");
|
|
36
36
|
exports.ClientFacingPatientDetailsCompatible = core.serialization.object({
|
37
37
|
firstName: core.serialization.property("first_name", core.serialization.string().optional()),
|
38
38
|
lastName: core.serialization.property("last_name", core.serialization.string().optional()),
|
39
|
-
dob: core.serialization.
|
39
|
+
dob: core.serialization.string(),
|
40
40
|
gender: core.serialization.string(),
|
41
41
|
phoneNumber: core.serialization.property("phone_number", core.serialization.string().optional()),
|
42
42
|
email: core.serialization.string().optional(),
|
@@ -8,11 +8,13 @@ import { ClientFacingSource } from "./ClientFacingSource";
|
|
8
8
|
export declare const ClientFacingProfile: core.serialization.ObjectSchema<serializers.ClientFacingProfile.Raw, Vital.ClientFacingProfile>;
|
9
9
|
export declare namespace ClientFacingProfile {
|
10
10
|
interface Raw {
|
11
|
-
user_id: string;
|
12
11
|
id: string;
|
12
|
+
user_id: string;
|
13
13
|
height?: number | null;
|
14
14
|
birth_date?: string | null;
|
15
15
|
wheelchair_use?: boolean | null;
|
16
16
|
source: ClientFacingSource.Raw;
|
17
|
+
created_at: string;
|
18
|
+
updated_at: string;
|
17
19
|
}
|
18
20
|
}
|
@@ -30,10 +30,12 @@ exports.ClientFacingProfile = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const ClientFacingSource_1 = require("./ClientFacingSource");
|
32
32
|
exports.ClientFacingProfile = core.serialization.object({
|
33
|
-
userId: core.serialization.property("user_id", core.serialization.string()),
|
34
33
|
id: core.serialization.string(),
|
34
|
+
userId: core.serialization.property("user_id", core.serialization.string()),
|
35
35
|
height: core.serialization.number().optional(),
|
36
36
|
birthDate: core.serialization.property("birth_date", core.serialization.string().optional()),
|
37
37
|
wheelchairUse: core.serialization.property("wheelchair_use", core.serialization.boolean().optional()),
|
38
38
|
source: ClientFacingSource_1.ClientFacingSource,
|
39
|
+
createdAt: core.serialization.property("created_at", core.serialization.date()),
|
40
|
+
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
|
39
41
|
});
|
@@ -37,7 +37,7 @@ const GenderIdentity_1 = require("./GenderIdentity");
|
|
37
37
|
exports.PatientDetailsWithValidation = core.serialization.object({
|
38
38
|
firstName: core.serialization.property("first_name", core.serialization.string()),
|
39
39
|
lastName: core.serialization.property("last_name", core.serialization.string()),
|
40
|
-
dob: core.serialization.
|
40
|
+
dob: core.serialization.string(),
|
41
41
|
gender: Gender_1.Gender,
|
42
42
|
phoneNumber: core.serialization.property("phone_number", core.serialization.string()),
|
43
43
|
email: core.serialization.string(),
|
@@ -8,12 +8,13 @@ import { ClientFacingProvider } from "./ClientFacingProvider";
|
|
8
8
|
export declare const ProfileInDb: core.serialization.ObjectSchema<serializers.ProfileInDb.Raw, Vital.ProfileInDb>;
|
9
9
|
export declare namespace ProfileInDb {
|
10
10
|
interface Raw {
|
11
|
-
|
11
|
+
id: string;
|
12
|
+
data?: unknown;
|
12
13
|
user_id: string;
|
13
14
|
source_id: number;
|
14
15
|
priority_id?: number | null;
|
15
|
-
id: string;
|
16
16
|
source: ClientFacingProvider.Raw;
|
17
|
+
created_at?: string | null;
|
17
18
|
updated_at?: string | null;
|
18
19
|
}
|
19
20
|
}
|
@@ -30,11 +30,12 @@ exports.ProfileInDb = void 0;
|
|
30
30
|
const core = __importStar(require("../../core"));
|
31
31
|
const ClientFacingProvider_1 = require("./ClientFacingProvider");
|
32
32
|
exports.ProfileInDb = core.serialization.object({
|
33
|
-
|
33
|
+
id: core.serialization.string(),
|
34
|
+
data: core.serialization.unknown(),
|
34
35
|
userId: core.serialization.property("user_id", core.serialization.string()),
|
35
36
|
sourceId: core.serialization.property("source_id", core.serialization.number()),
|
36
37
|
priorityId: core.serialization.property("priority_id", core.serialization.number().optional()),
|
37
|
-
id: core.serialization.string(),
|
38
38
|
source: ClientFacingProvider_1.ClientFacingProvider,
|
39
|
+
createdAt: core.serialization.property("created_at", core.serialization.date().optional()),
|
39
40
|
updatedAt: core.serialization.property("updated_at", core.serialization.date().optional()),
|
40
41
|
});
|
package/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.247";
|
package/version.js
CHANGED