@tryvital/vital-node 3.1.281 → 3.1.282
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 +3 -3
- 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.js +41 -41
- 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.js +2 -2
- package/api/resources/user/client/Client.js +16 -16
- package/api/resources/vitals/client/Client.js +78 -78
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ClientFacingLabTest.d.ts +4 -0
- package/api/types/ClientFacingMarker.d.ts +2 -0
- package/api/types/ClientFacingMarkerComplete.d.ts +2 -0
- package/api/types/ClientFacingOrder.d.ts +4 -0
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/aggregate/client/Client.js +3 -3
- 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.js +41 -41
- 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.js +2 -2
- package/dist/api/resources/user/client/Client.js +16 -16
- package/dist/api/resources/vitals/client/Client.js +78 -78
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ClientFacingLabTest.d.ts +4 -0
- package/dist/api/types/ClientFacingMarker.d.ts +2 -0
- package/dist/api/types/ClientFacingMarkerComplete.d.ts +2 -0
- package/dist/api/types/ClientFacingOrder.d.ts +4 -0
- package/dist/serialization/types/ClientFacingLabTest.d.ts +2 -0
- package/dist/serialization/types/ClientFacingLabTest.js +2 -0
- package/dist/serialization/types/ClientFacingMarker.d.ts +2 -0
- package/dist/serialization/types/ClientFacingMarker.js +2 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +2 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.js +2 -0
- package/dist/serialization/types/ClientFacingOrder.d.ts +2 -0
- package/dist/serialization/types/ClientFacingOrder.js +2 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/serialization/types/ClientFacingLabTest.d.ts +2 -0
- package/serialization/types/ClientFacingLabTest.js +2 -0
- package/serialization/types/ClientFacingMarker.d.ts +2 -0
- package/serialization/types/ClientFacingMarker.js +2 -0
- package/serialization/types/ClientFacingMarkerComplete.d.ts +2 -0
- package/serialization/types/ClientFacingMarkerComplete.js +2 -0
- package/serialization/types/ClientFacingOrder.d.ts +2 -0
- package/serialization/types/ClientFacingOrder.js +2 -0
- 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.282", "User-Agent": "@tryvital/vital-node/3.1.282", "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.282", "User-Agent": "@tryvital/vital-node/3.1.282", "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.282", "User-Agent": "@tryvital/vital-node/3.1.282", "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,
|
@@ -31,4 +31,8 @@ export interface ClientFacingLabTest {
|
|
31
31
|
autoGenerated?: boolean;
|
32
32
|
/** Whether or not the lab test has collection instructions. */
|
33
33
|
hasCollectionInstructions?: boolean;
|
34
|
+
/** The common turnaround time in days for the lab test. This is the expected time for the lab to process the test and return results. */
|
35
|
+
commonTatDays?: number;
|
36
|
+
/** The worst-case turnaround time in days for the lab test. This is the maximum time the lab may take to process the test and return results. */
|
37
|
+
worstCaseTatDays?: number;
|
34
38
|
}
|
@@ -44,4 +44,8 @@ export interface ClientFacingOrder {
|
|
44
44
|
hasAbn: boolean;
|
45
45
|
/** Interpretation of the order result. Can be one of (normal, abnormal, critical). */
|
46
46
|
interpretation?: Vital.Interpretation;
|
47
|
+
/** The common-case date by which the order result is expected to be available. */
|
48
|
+
expectedResultByDate?: string;
|
49
|
+
/** The latest date by which the order result is expected to be available. */
|
50
|
+
worstCaseResultByDate?: string;
|
47
51
|
}
|
@@ -48,4 +48,6 @@ exports.ClientFacingLabTest = core.serialization.object({
|
|
48
48
|
isDelegated: core.serialization.property("is_delegated", core.serialization.boolean().optional()),
|
49
49
|
autoGenerated: core.serialization.property("auto_generated", core.serialization.boolean().optional()),
|
50
50
|
hasCollectionInstructions: core.serialization.property("has_collection_instructions", core.serialization.boolean().optional()),
|
51
|
+
commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
|
52
|
+
worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
|
51
53
|
});
|
@@ -42,4 +42,6 @@ exports.ClientFacingMarker = core.serialization.object({
|
|
42
42
|
price: core.serialization.string().optional(),
|
43
43
|
aoe: AoE_1.AoE.optional(),
|
44
44
|
aLaCarteEnabled: core.serialization.property("a_la_carte_enabled", core.serialization.boolean().optional()),
|
45
|
+
commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
|
46
|
+
worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
|
45
47
|
});
|
@@ -21,6 +21,8 @@ export declare namespace ClientFacingMarkerComplete {
|
|
21
21
|
price?: string | null;
|
22
22
|
aoe?: AoE.Raw | null;
|
23
23
|
a_la_carte_enabled?: boolean | null;
|
24
|
+
common_tat_days?: number | null;
|
25
|
+
worst_case_tat_days?: number | null;
|
24
26
|
expected_results: ClientFacingResult.Raw[];
|
25
27
|
}
|
26
28
|
}
|
@@ -43,5 +43,7 @@ exports.ClientFacingMarkerComplete = core.serialization.object({
|
|
43
43
|
price: core.serialization.string().optional(),
|
44
44
|
aoe: AoE_1.AoE.optional(),
|
45
45
|
aLaCarteEnabled: core.serialization.property("a_la_carte_enabled", core.serialization.boolean().optional()),
|
46
|
+
commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
|
47
|
+
worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
|
46
48
|
expectedResults: core.serialization.property("expected_results", core.serialization.list(ClientFacingResult_1.ClientFacingResult)),
|
47
49
|
});
|
@@ -63,4 +63,6 @@ exports.ClientFacingOrder = core.serialization.object({
|
|
63
63
|
icdCodes: core.serialization.property("icd_codes", core.serialization.list(core.serialization.string()).optional()),
|
64
64
|
hasAbn: core.serialization.property("has_abn", core.serialization.boolean()),
|
65
65
|
interpretation: Interpretation_1.Interpretation.optional(),
|
66
|
+
expectedResultByDate: core.serialization.property("expected_result_by_date", core.serialization.string().optional()),
|
67
|
+
worstCaseResultByDate: core.serialization.property("worst_case_result_by_date", core.serialization.string().optional()),
|
66
68
|
});
|
package/dist/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.282";
|
package/dist/version.js
CHANGED
package/package.json
CHANGED
@@ -48,4 +48,6 @@ exports.ClientFacingLabTest = core.serialization.object({
|
|
48
48
|
isDelegated: core.serialization.property("is_delegated", core.serialization.boolean().optional()),
|
49
49
|
autoGenerated: core.serialization.property("auto_generated", core.serialization.boolean().optional()),
|
50
50
|
hasCollectionInstructions: core.serialization.property("has_collection_instructions", core.serialization.boolean().optional()),
|
51
|
+
commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
|
52
|
+
worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
|
51
53
|
});
|
@@ -42,4 +42,6 @@ exports.ClientFacingMarker = core.serialization.object({
|
|
42
42
|
price: core.serialization.string().optional(),
|
43
43
|
aoe: AoE_1.AoE.optional(),
|
44
44
|
aLaCarteEnabled: core.serialization.property("a_la_carte_enabled", core.serialization.boolean().optional()),
|
45
|
+
commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
|
46
|
+
worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
|
45
47
|
});
|
@@ -21,6 +21,8 @@ export declare namespace ClientFacingMarkerComplete {
|
|
21
21
|
price?: string | null;
|
22
22
|
aoe?: AoE.Raw | null;
|
23
23
|
a_la_carte_enabled?: boolean | null;
|
24
|
+
common_tat_days?: number | null;
|
25
|
+
worst_case_tat_days?: number | null;
|
24
26
|
expected_results: ClientFacingResult.Raw[];
|
25
27
|
}
|
26
28
|
}
|
@@ -43,5 +43,7 @@ exports.ClientFacingMarkerComplete = core.serialization.object({
|
|
43
43
|
price: core.serialization.string().optional(),
|
44
44
|
aoe: AoE_1.AoE.optional(),
|
45
45
|
aLaCarteEnabled: core.serialization.property("a_la_carte_enabled", core.serialization.boolean().optional()),
|
46
|
+
commonTatDays: core.serialization.property("common_tat_days", core.serialization.number().optional()),
|
47
|
+
worstCaseTatDays: core.serialization.property("worst_case_tat_days", core.serialization.number().optional()),
|
46
48
|
expectedResults: core.serialization.property("expected_results", core.serialization.list(ClientFacingResult_1.ClientFacingResult)),
|
47
49
|
});
|
@@ -63,4 +63,6 @@ exports.ClientFacingOrder = core.serialization.object({
|
|
63
63
|
icdCodes: core.serialization.property("icd_codes", core.serialization.list(core.serialization.string()).optional()),
|
64
64
|
hasAbn: core.serialization.property("has_abn", core.serialization.boolean()),
|
65
65
|
interpretation: Interpretation_1.Interpretation.optional(),
|
66
|
+
expectedResultByDate: core.serialization.property("expected_result_by_date", core.serialization.string().optional()),
|
67
|
+
worstCaseResultByDate: core.serialization.property("worst_case_result_by_date", core.serialization.string().optional()),
|
66
68
|
});
|
package/version.d.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export declare const SDK_VERSION = "3.1.
|
1
|
+
export declare const SDK_VERSION = "3.1.282";
|
package/version.js
CHANGED