@tryvital/vital-node 3.1.184 → 3.1.186
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.d.ts +3 -3
- package/api/resources/aggregate/client/Client.js +6 -6
- 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.d.ts +3 -3
- package/dist/api/resources/aggregate/client/Client.js +6 -6
- 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 +271 -41
- 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
package/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/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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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",
|
@@ -50,15 +50,15 @@ export declare class Aggregate {
|
|
50
50
|
queryOne(userId: string, request: Vital.QueryBatch, requestOptions?: Aggregate.RequestOptions): Promise<Vital.AggregationResponse>;
|
51
51
|
/**
|
52
52
|
* @param {string} userId
|
53
|
-
* @param {string}
|
53
|
+
* @param {string} queryIdOrSlug
|
54
54
|
* @param {Aggregate.RequestOptions} requestOptions - Request-specific configuration.
|
55
55
|
*
|
56
56
|
* @throws {@link Vital.UnprocessableEntityError}
|
57
57
|
*
|
58
58
|
* @example
|
59
|
-
* await client.aggregate.getResultTableForContinuousQuery("user_id", "
|
59
|
+
* await client.aggregate.getResultTableForContinuousQuery("user_id", "query_id_or_slug")
|
60
60
|
*/
|
61
|
-
getResultTableForContinuousQuery(userId: string,
|
61
|
+
getResultTableForContinuousQuery(userId: string, queryIdOrSlug: string, requestOptions?: Aggregate.RequestOptions): Promise<Vital.AggregationResult>;
|
62
62
|
protected _getCustomAuthorizationHeaders(): Promise<{
|
63
63
|
"x-vital-api-key": string | undefined;
|
64
64
|
}>;
|
@@ -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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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" }),
|
@@ -130,21 +130,21 @@ class Aggregate {
|
|
130
130
|
}
|
131
131
|
/**
|
132
132
|
* @param {string} userId
|
133
|
-
* @param {string}
|
133
|
+
* @param {string} queryIdOrSlug
|
134
134
|
* @param {Aggregate.RequestOptions} requestOptions - Request-specific configuration.
|
135
135
|
*
|
136
136
|
* @throws {@link Vital.UnprocessableEntityError}
|
137
137
|
*
|
138
138
|
* @example
|
139
|
-
* await client.aggregate.getResultTableForContinuousQuery("user_id", "
|
139
|
+
* await client.aggregate.getResultTableForContinuousQuery("user_id", "query_id_or_slug")
|
140
140
|
*/
|
141
|
-
getResultTableForContinuousQuery(userId,
|
141
|
+
getResultTableForContinuousQuery(userId, queryIdOrSlug, requestOptions) {
|
142
142
|
var _a;
|
143
143
|
return __awaiter(this, void 0, void 0, function* () {
|
144
144
|
const _response = yield core.fetcher({
|
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(
|
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(queryIdOrSlug)}/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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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",
|
package/api/resources/index.d.ts
CHANGED
@@ -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";
|
package/api/resources/index.js
CHANGED
@@ -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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.186", "User-Agent": "@tryvital/vital-node/3.1.186", "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.
|