@tryvital/vital-node 3.1.183 → 3.1.185
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 +3 -0
- package/Client.js +9 -4
- 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/index.d.ts +2 -0
- package/api/resources/index.js +3 -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 +27 -13
- package/api/resources/labTests/client/Client.js +192 -101
- package/api/resources/labTests/client/requests/LabTestsGetRequest.d.ts +26 -0
- package/api/resources/labTests/client/requests/UpdateLabTestRequest.d.ts +11 -0
- package/api/resources/labTests/client/requests/index.d.ts +2 -0
- package/api/resources/link/client/Client.d.ts +25 -0
- package/api/resources/link/client/Client.js +140 -16
- package/api/{types → resources/link/client/requests}/BulkExportConnectionsBody.d.ts +8 -1
- package/api/{types → resources/link/client/requests}/BulkPauseConnectionsBody.d.ts +8 -1
- package/api/resources/link/client/requests/index.d.ts +2 -0
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/menstrualCycle/client/Client.js +1 -1
- package/api/resources/order/client/Client.d.ts +39 -0
- package/api/resources/order/client/Client.js +123 -0
- package/api/resources/order/client/index.d.ts +1 -0
- package/api/resources/order/client/index.js +17 -0
- package/api/resources/order/client/requests/ResendWebhookBody.d.ts +12 -0
- package/api/resources/order/client/requests/ResendWebhookBody.js +5 -0
- package/api/resources/order/client/requests/index.d.ts +1 -0
- package/api/resources/order/client/requests/index.js +2 -0
- package/api/resources/order/index.d.ts +1 -0
- package/api/resources/order/index.js +17 -0
- 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 +58 -58
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/LabTestGenerationMethodFilter.d.ts +9 -0
- package/api/types/LabTestGenerationMethodFilter.js +11 -0
- package/api/types/ResendWebhookResponse.d.ts +6 -0
- package/api/types/ResendWebhookResponse.js +5 -0
- package/api/types/index.d.ts +2 -2
- package/api/types/index.js +2 -2
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +9 -4
- 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/index.d.ts +2 -0
- package/dist/api/resources/index.js +3 -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 +27 -13
- package/dist/api/resources/labTests/client/Client.js +192 -101
- package/dist/api/resources/labTests/client/requests/LabTestsGetRequest.d.ts +26 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/UpdateLabTestRequest.d.ts +11 -0
- package/dist/api/resources/labTests/client/requests/UpdateLabTestRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +2 -0
- package/dist/api/resources/link/client/Client.d.ts +25 -0
- package/dist/api/resources/link/client/Client.js +140 -16
- package/dist/api/{types → resources/link/client/requests}/BulkExportConnectionsBody.d.ts +8 -1
- package/dist/api/resources/link/client/requests/BulkExportConnectionsBody.js +5 -0
- package/dist/api/{types → resources/link/client/requests}/BulkPauseConnectionsBody.d.ts +8 -1
- package/dist/api/resources/link/client/requests/BulkPauseConnectionsBody.js +5 -0
- package/dist/api/resources/link/client/requests/index.d.ts +2 -0
- 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.d.ts +39 -0
- package/dist/api/resources/order/client/Client.js +123 -0
- package/dist/api/resources/order/client/index.d.ts +1 -0
- package/dist/api/resources/order/client/index.js +17 -0
- package/dist/api/resources/order/client/requests/ResendWebhookBody.d.ts +12 -0
- package/dist/api/resources/order/client/requests/ResendWebhookBody.js +5 -0
- package/dist/api/resources/order/client/requests/index.d.ts +1 -0
- package/dist/api/resources/order/client/requests/index.js +2 -0
- package/dist/api/resources/order/index.d.ts +1 -0
- package/dist/api/resources/order/index.js +17 -0
- 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 +58 -58
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/LabTestGenerationMethodFilter.d.ts +9 -0
- package/dist/api/types/LabTestGenerationMethodFilter.js +11 -0
- package/dist/api/types/ResendWebhookResponse.d.ts +6 -0
- package/dist/api/types/ResendWebhookResponse.js +5 -0
- package/dist/api/types/index.d.ts +2 -2
- package/dist/api/types/index.js +2 -2
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/labTests/client/requests/UpdateLabTestRequest.d.ts +13 -0
- package/dist/serialization/resources/labTests/client/requests/UpdateLabTestRequest.js +34 -0
- package/dist/serialization/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/labTests/client/requests/index.js +3 -1
- package/dist/serialization/resources/link/client/requests/BulkExportConnectionsBody.d.ts +15 -0
- package/{serialization/types → dist/serialization/resources/link/client/requests}/BulkExportConnectionsBody.js +3 -2
- package/dist/serialization/resources/link/client/requests/BulkPauseConnectionsBody.d.ts +14 -0
- package/dist/serialization/{types → resources/link/client/requests}/BulkPauseConnectionsBody.js +2 -2
- package/dist/serialization/resources/link/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/link/client/requests/index.js +5 -1
- package/dist/serialization/resources/order/client/index.d.ts +1 -0
- package/dist/serialization/resources/order/client/index.js +17 -0
- package/dist/serialization/resources/order/client/requests/ResendWebhookBody.d.ts +14 -0
- package/dist/serialization/resources/order/client/requests/ResendWebhookBody.js +35 -0
- package/dist/serialization/resources/order/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/order/client/requests/index.js +5 -0
- package/dist/serialization/resources/order/index.d.ts +1 -0
- package/dist/serialization/resources/order/index.js +17 -0
- package/dist/serialization/types/LabTestGenerationMethodFilter.d.ts +10 -0
- package/dist/serialization/types/LabTestGenerationMethodFilter.js +31 -0
- package/dist/serialization/types/ResendWebhookResponse.d.ts +12 -0
- package/dist/serialization/types/ResendWebhookResponse.js +33 -0
- package/dist/serialization/types/index.d.ts +2 -2
- package/dist/serialization/types/index.js +2 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +268 -38
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/labTests/client/requests/UpdateLabTestRequest.d.ts +13 -0
- package/serialization/resources/labTests/client/requests/UpdateLabTestRequest.js +34 -0
- package/serialization/resources/labTests/client/requests/index.d.ts +1 -0
- package/serialization/resources/labTests/client/requests/index.js +3 -1
- package/serialization/resources/link/client/requests/BulkExportConnectionsBody.d.ts +15 -0
- package/{dist/serialization/types → serialization/resources/link/client/requests}/BulkExportConnectionsBody.js +3 -2
- package/serialization/resources/link/client/requests/BulkPauseConnectionsBody.d.ts +14 -0
- package/serialization/{types → resources/link/client/requests}/BulkPauseConnectionsBody.js +2 -2
- package/serialization/resources/link/client/requests/index.d.ts +2 -0
- package/serialization/resources/link/client/requests/index.js +5 -1
- package/serialization/resources/order/client/index.d.ts +1 -0
- package/serialization/resources/order/client/index.js +17 -0
- package/serialization/resources/order/client/requests/ResendWebhookBody.d.ts +14 -0
- package/serialization/resources/order/client/requests/ResendWebhookBody.js +35 -0
- package/serialization/resources/order/client/requests/index.d.ts +1 -0
- package/serialization/resources/order/client/requests/index.js +5 -0
- package/serialization/resources/order/index.d.ts +1 -0
- package/serialization/resources/order/index.js +17 -0
- package/serialization/types/LabTestGenerationMethodFilter.d.ts +10 -0
- package/serialization/types/LabTestGenerationMethodFilter.js +31 -0
- package/serialization/types/ResendWebhookResponse.d.ts +12 -0
- package/serialization/types/ResendWebhookResponse.js +33 -0
- package/serialization/types/index.d.ts +2 -2
- package/serialization/types/index.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/dist/serialization/types/BulkExportConnectionsBody.d.ts +0 -14
- package/dist/serialization/types/BulkPauseConnectionsBody.d.ts +0 -14
- package/serialization/types/BulkExportConnectionsBody.d.ts +0 -14
- package/serialization/types/BulkPauseConnectionsBody.d.ts +0 -14
- /package/api/{types/BulkExportConnectionsBody.js → resources/labTests/client/requests/LabTestsGetRequest.js} +0 -0
- /package/api/{types/BulkPauseConnectionsBody.js → resources/labTests/client/requests/UpdateLabTestRequest.js} +0 -0
- /package/{dist/api/types → api/resources/link/client/requests}/BulkExportConnectionsBody.js +0 -0
- /package/{dist/api/types → api/resources/link/client/requests}/BulkPauseConnectionsBody.js +0 -0
@@ -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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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,
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
export declare type LabTestGenerationMethodFilter = "auto" | "manual" | "all";
|
5
|
+
export declare const LabTestGenerationMethodFilter: {
|
6
|
+
readonly Auto: "auto";
|
7
|
+
readonly Manual: "manual";
|
8
|
+
readonly All: "all";
|
9
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
exports.LabTestGenerationMethodFilter = void 0;
|
7
|
+
exports.LabTestGenerationMethodFilter = {
|
8
|
+
Auto: "auto",
|
9
|
+
Manual: "manual",
|
10
|
+
All: "all",
|
11
|
+
};
|
package/api/types/index.d.ts
CHANGED
@@ -32,10 +32,8 @@ export * from "./BiomarkerResult";
|
|
32
32
|
export * from "./BodyColumnExprBody";
|
33
33
|
export * from "./BodyColumnExpr";
|
34
34
|
export * from "./BodyV2InDb";
|
35
|
-
export * from "./BulkExportConnectionsBody";
|
36
35
|
export * from "./BulkExportConnectionsResponse";
|
37
36
|
export * from "./BulkImportConnectionsResponse";
|
38
|
-
export * from "./BulkPauseConnectionsBody";
|
39
37
|
export * from "./CervicalMucusEntryQuality";
|
40
38
|
export * from "./CervicalMucusEntry";
|
41
39
|
export * from "./ChronotypeValueMacroExpr";
|
@@ -223,6 +221,7 @@ export * from "./LabResultsMetadata";
|
|
223
221
|
export * from "./LabResultsRawResults";
|
224
222
|
export * from "./LabResultsRaw";
|
225
223
|
export * from "./LabTestCollectionMethod";
|
224
|
+
export * from "./LabTestGenerationMethodFilter";
|
226
225
|
export * from "./LabTestSampleType";
|
227
226
|
export * from "./LabTestStatus";
|
228
227
|
export * from "./Labs";
|
@@ -289,6 +288,7 @@ export * from "./RawSleep";
|
|
289
288
|
export * from "./RawWorkout";
|
290
289
|
export * from "./Region";
|
291
290
|
export * from "./RelativeTimeframe";
|
291
|
+
export * from "./ResendWebhookResponse";
|
292
292
|
export * from "./ClientFacingResource";
|
293
293
|
export * from "./ResourceAvailability";
|
294
294
|
export * from "./ResponsibleRelationship";
|
package/api/types/index.js
CHANGED
@@ -48,10 +48,8 @@ __exportStar(require("./BiomarkerResult"), exports);
|
|
48
48
|
__exportStar(require("./BodyColumnExprBody"), exports);
|
49
49
|
__exportStar(require("./BodyColumnExpr"), exports);
|
50
50
|
__exportStar(require("./BodyV2InDb"), exports);
|
51
|
-
__exportStar(require("./BulkExportConnectionsBody"), exports);
|
52
51
|
__exportStar(require("./BulkExportConnectionsResponse"), exports);
|
53
52
|
__exportStar(require("./BulkImportConnectionsResponse"), exports);
|
54
|
-
__exportStar(require("./BulkPauseConnectionsBody"), exports);
|
55
53
|
__exportStar(require("./CervicalMucusEntryQuality"), exports);
|
56
54
|
__exportStar(require("./CervicalMucusEntry"), exports);
|
57
55
|
__exportStar(require("./ChronotypeValueMacroExpr"), exports);
|
@@ -239,6 +237,7 @@ __exportStar(require("./LabResultsMetadata"), exports);
|
|
239
237
|
__exportStar(require("./LabResultsRawResults"), exports);
|
240
238
|
__exportStar(require("./LabResultsRaw"), exports);
|
241
239
|
__exportStar(require("./LabTestCollectionMethod"), exports);
|
240
|
+
__exportStar(require("./LabTestGenerationMethodFilter"), exports);
|
242
241
|
__exportStar(require("./LabTestSampleType"), exports);
|
243
242
|
__exportStar(require("./LabTestStatus"), exports);
|
244
243
|
__exportStar(require("./Labs"), exports);
|
@@ -305,6 +304,7 @@ __exportStar(require("./RawSleep"), exports);
|
|
305
304
|
__exportStar(require("./RawWorkout"), exports);
|
306
305
|
__exportStar(require("./Region"), exports);
|
307
306
|
__exportStar(require("./RelativeTimeframe"), exports);
|
307
|
+
__exportStar(require("./ResendWebhookResponse"), exports);
|
308
308
|
__exportStar(require("./ClientFacingResource"), exports);
|
309
309
|
__exportStar(require("./ResourceAvailability"), exports);
|
310
310
|
__exportStar(require("./ResponsibleRelationship"), exports);
|
package/dist/Client.d.ts
CHANGED
@@ -21,6 +21,7 @@ import { Providers } from "./api/resources/providers/client/Client";
|
|
21
21
|
import { Introspect } from "./api/resources/introspect/client/Client";
|
22
22
|
import { LabTests } from "./api/resources/labTests/client/Client";
|
23
23
|
import { Testkit } from "./api/resources/testkit/client/Client";
|
24
|
+
import { Order } from "./api/resources/order/client/Client";
|
24
25
|
import { Insurance } from "./api/resources/insurance/client/Client";
|
25
26
|
import { Aggregate } from "./api/resources/aggregate/client/Client";
|
26
27
|
export declare namespace VitalClient {
|
@@ -76,6 +77,8 @@ export declare class VitalClient {
|
|
76
77
|
get labTests(): LabTests;
|
77
78
|
protected _testkit: Testkit | undefined;
|
78
79
|
get testkit(): Testkit;
|
80
|
+
protected _order: Order | undefined;
|
81
|
+
get order(): Order;
|
79
82
|
protected _insurance: Insurance | undefined;
|
80
83
|
get insurance(): Insurance;
|
81
84
|
protected _aggregate: Aggregate | undefined;
|
package/dist/Client.js
CHANGED
@@ -22,8 +22,9 @@ const Client_15 = require("./api/resources/providers/client/Client");
|
|
22
22
|
const Client_16 = require("./api/resources/introspect/client/Client");
|
23
23
|
const Client_17 = require("./api/resources/labTests/client/Client");
|
24
24
|
const Client_18 = require("./api/resources/testkit/client/Client");
|
25
|
-
const Client_19 = require("./api/resources/
|
26
|
-
const Client_20 = require("./api/resources/
|
25
|
+
const Client_19 = require("./api/resources/order/client/Client");
|
26
|
+
const Client_20 = require("./api/resources/insurance/client/Client");
|
27
|
+
const Client_21 = require("./api/resources/aggregate/client/Client");
|
27
28
|
class VitalClient {
|
28
29
|
constructor(_options = {}) {
|
29
30
|
this._options = _options;
|
@@ -100,13 +101,17 @@ class VitalClient {
|
|
100
101
|
var _a;
|
101
102
|
return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_18.Testkit(this._options)));
|
102
103
|
}
|
104
|
+
get order() {
|
105
|
+
var _a;
|
106
|
+
return ((_a = this._order) !== null && _a !== void 0 ? _a : (this._order = new Client_19.Order(this._options)));
|
107
|
+
}
|
103
108
|
get insurance() {
|
104
109
|
var _a;
|
105
|
-
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new
|
110
|
+
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_20.Insurance(this._options)));
|
106
111
|
}
|
107
112
|
get aggregate() {
|
108
113
|
var _a;
|
109
|
-
return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new
|
114
|
+
return ((_a = this._aggregate) !== null && _a !== void 0 ? _a : (this._aggregate = new Client_21.Aggregate(this._options)));
|
110
115
|
}
|
111
116
|
}
|
112
117
|
exports.VitalClient = VitalClient;
|
@@ -78,7 +78,7 @@ class Activity {
|
|
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/activity/${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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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 Activity {
|
|
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/activity/${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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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",
|
@@ -81,7 +81,7 @@ class Aggregate {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/query`),
|
83
83
|
method: "POST",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, accept: "*/*" }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
requestType: "json",
|
87
87
|
body: serializers.QueryBatch.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -144,7 +144,7 @@ class Aggregate {
|
|
144
144
|
const _response = yield core.fetcher({
|
145
145
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `aggregate/v1/user/${encodeURIComponent(userId)}/continuous_query/${encodeURIComponent(queryId)}/result_table`),
|
146
146
|
method: "GET",
|
147
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
147
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
148
148
|
contentType: "application/json",
|
149
149
|
requestType: "json",
|
150
150
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -78,7 +78,7 @@ class Body {
|
|
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/body/${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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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 Body {
|
|
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/body/${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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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",
|
@@ -72,7 +72,7 @@ class Devices {
|
|
72
72
|
const _response = yield core.fetcher({
|
73
73
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${encodeURIComponent(userId)}/raw`),
|
74
74
|
method: "GET",
|
75
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
75
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
76
76
|
contentType: "application/json",
|
77
77
|
queryParameters: _queryParams,
|
78
78
|
requestType: "json",
|
@@ -78,7 +78,7 @@ class Electrocardiogram {
|
|
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/electrocardiogram/${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.185", "User-Agent": "@tryvital/vital-node/3.1.185", "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",
|
@@ -19,6 +19,7 @@ export * as team from "./team";
|
|
19
19
|
export * as providers from "./providers";
|
20
20
|
export * as introspect from "./introspect";
|
21
21
|
export * as testkit from "./testkit";
|
22
|
+
export * as order from "./order";
|
22
23
|
export * as insurance from "./insurance";
|
23
24
|
export * from "./link/client/requests";
|
24
25
|
export * from "./electrocardiogram/client/requests";
|
@@ -38,5 +39,6 @@ export * from "./providers/client/requests";
|
|
38
39
|
export * from "./introspect/client/requests";
|
39
40
|
export * from "./labTests/client/requests";
|
40
41
|
export * from "./testkit/client/requests";
|
42
|
+
export * from "./order/client/requests";
|
41
43
|
export * from "./insurance/client/requests";
|
42
44
|
export * from "./aggregate/client/requests";
|
@@ -26,7 +26,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.insurance = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.electrocardiogram = exports.link = exports.aggregate = exports.labTests = void 0;
|
29
|
+
exports.insurance = exports.order = exports.testkit = exports.introspect = exports.providers = exports.team = exports.user = exports.vitals = exports.menstrualCycle = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.sleepCycle = exports.electrocardiogram = exports.link = exports.aggregate = exports.labTests = void 0;
|
30
30
|
exports.labTests = __importStar(require("./labTests"));
|
31
31
|
__exportStar(require("./labTests/types"), exports);
|
32
32
|
exports.aggregate = __importStar(require("./aggregate"));
|
@@ -48,6 +48,7 @@ exports.team = __importStar(require("./team"));
|
|
48
48
|
exports.providers = __importStar(require("./providers"));
|
49
49
|
exports.introspect = __importStar(require("./introspect"));
|
50
50
|
exports.testkit = __importStar(require("./testkit"));
|
51
|
+
exports.order = __importStar(require("./order"));
|
51
52
|
exports.insurance = __importStar(require("./insurance"));
|
52
53
|
__exportStar(require("./link/client/requests"), exports);
|
53
54
|
__exportStar(require("./electrocardiogram/client/requests"), exports);
|
@@ -67,5 +68,6 @@ __exportStar(require("./providers/client/requests"), exports);
|
|
67
68
|
__exportStar(require("./introspect/client/requests"), exports);
|
68
69
|
__exportStar(require("./labTests/client/requests"), exports);
|
69
70
|
__exportStar(require("./testkit/client/requests"), exports);
|
71
|
+
__exportStar(require("./order/client/requests"), exports);
|
70
72
|
__exportStar(require("./insurance/client/requests"), exports);
|
71
73
|
__exportStar(require("./aggregate/client/requests"), exports);
|
@@ -75,7 +75,7 @@ class Insurance {
|
|
75
75
|
const _response = yield core.fetcher({
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
|
77
77
|
method: "GET",
|
78
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
78
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
79
79
|
contentType: "application/json",
|
80
80
|
queryParameters: _queryParams,
|
81
81
|
requestType: "json",
|
@@ -137,7 +137,7 @@ class Insurance {
|
|
137
137
|
const _response = yield core.fetcher({
|
138
138
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/payor"),
|
139
139
|
method: "POST",
|
140
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
140
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
141
141
|
contentType: "application/json",
|
142
142
|
requestType: "json",
|
143
143
|
body: serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -204,7 +204,7 @@ class Insurance {
|
|
204
204
|
const _response = yield core.fetcher({
|
205
205
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
|
206
206
|
method: "GET",
|
207
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
207
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
208
208
|
contentType: "application/json",
|
209
209
|
queryParameters: _queryParams,
|
210
210
|
requestType: "json",
|
@@ -81,7 +81,7 @@ class Introspect {
|
|
81
81
|
const _response = yield core.fetcher({
|
82
82
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
83
83
|
method: "GET",
|
84
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
84
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
85
85
|
contentType: "application/json",
|
86
86
|
queryParameters: _queryParams,
|
87
87
|
requestType: "json",
|
@@ -160,7 +160,7 @@ class Introspect {
|
|
160
160
|
const _response = yield core.fetcher({
|
161
161
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
|
162
162
|
method: "GET",
|
163
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
163
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.185", "User-Agent": "@tryvital/vital-node/3.1.185", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
164
164
|
contentType: "application/json",
|
165
165
|
queryParameters: _queryParams,
|
166
166
|
requestType: "json",
|
@@ -26,12 +26,15 @@ export declare class LabTests {
|
|
26
26
|
/**
|
27
27
|
* GET all the lab tests the team has access to.
|
28
28
|
*
|
29
|
+
* @param {Vital.LabTestsGetRequest} request
|
29
30
|
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
30
31
|
*
|
32
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
33
|
+
*
|
31
34
|
* @example
|
32
35
|
* await client.labTests.get()
|
33
36
|
*/
|
34
|
-
get(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
|
37
|
+
get(request?: Vital.LabTestsGetRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
|
35
38
|
/**
|
36
39
|
* @param {Vital.CreateLabTestRequest} request
|
37
40
|
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
@@ -46,6 +49,29 @@ export declare class LabTests {
|
|
46
49
|
* })
|
47
50
|
*/
|
48
51
|
create(request: Vital.CreateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
|
52
|
+
/**
|
53
|
+
* GET all the lab tests the team has access to.
|
54
|
+
*
|
55
|
+
* @param {string} labTestId
|
56
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
57
|
+
*
|
58
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
59
|
+
*
|
60
|
+
* @example
|
61
|
+
* await client.labTests.getById("lab_test_id")
|
62
|
+
*/
|
63
|
+
getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
|
64
|
+
/**
|
65
|
+
* @param {string} labTestId
|
66
|
+
* @param {Vital.UpdateLabTestRequest} request
|
67
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
68
|
+
*
|
69
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
70
|
+
*
|
71
|
+
* @example
|
72
|
+
* await client.labTests.updateLabTest("lab_test_id")
|
73
|
+
*/
|
74
|
+
updateLabTest(labTestId: string, request?: Vital.UpdateLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
|
49
75
|
/**
|
50
76
|
* GET all the markers for the given lab.
|
51
77
|
*
|
@@ -103,18 +129,6 @@ export declare class LabTests {
|
|
103
129
|
* await client.labTests.getLabs()
|
104
130
|
*/
|
105
131
|
getLabs(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLab[]>;
|
106
|
-
/**
|
107
|
-
* GET all the lab tests the team has access to.
|
108
|
-
*
|
109
|
-
* @param {string} labTestId
|
110
|
-
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
111
|
-
*
|
112
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
113
|
-
*
|
114
|
-
* @example
|
115
|
-
* await client.labTests.getById("lab_test_id")
|
116
|
-
*/
|
117
|
-
getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
|
118
132
|
/**
|
119
133
|
* Return the available time slots to book an appointment with a phlebotomist
|
120
134
|
* for the given address and order.
|