@tryvital/vital-node 3.0.0-beta.0 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +0 -3
- package/Client.js +14 -19
- package/README.md +91 -0
- package/api/resources/activity/client/Client.js +2 -2
- package/api/resources/body/client/Client.js +2 -2
- package/api/resources/devices/client/Client.js +1 -1
- package/api/resources/index.d.ts +0 -1
- package/api/resources/index.js +1 -2
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +10 -1
- package/api/resources/labTests/client/Client.js +145 -21
- package/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +7 -0
- package/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/api/resources/link/client/Client.d.ts +1 -1
- package/api/resources/link/client/Client.js +16 -16
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.d.ts +1 -1
- package/api/resources/providers/client/Client.js +3 -3
- package/api/resources/sleep/client/Client.d.ts +5 -0
- package/api/resources/sleep/client/Client.js +61 -3
- package/api/resources/team/client/Client.d.ts +6 -6
- package/api/resources/team/client/Client.js +13 -13
- package/api/resources/team/client/requests/{GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.d.ts → TeamGetSourcePrioritiesRequest.d.ts} +1 -1
- package/{dist/api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.d.ts → api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts} +1 -1
- package/{dist/api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.d.ts → api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts} +1 -1
- package/api/resources/team/client/requests/index.d.ts +3 -3
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.js +11 -11
- package/api/resources/vitals/client/Client.d.ts +5 -0
- package/api/resources/vitals/client/Client.js +90 -22
- package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/index.d.ts +1 -0
- package/api/resources/workouts/client/Client.d.ts +4 -0
- package/api/resources/workouts/client/Client.js +59 -2
- package/api/types/BiomarkerResult.d.ts +2 -0
- package/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/api/types/ClientFacingLoinc.d.ts +10 -0
- package/api/types/ClientFacingLoinc.js +5 -0
- package/api/types/ClientFacingMarkerComplete.d.ts +16 -0
- package/api/types/ClientFacingMarkerComplete.js +5 -0
- package/api/types/ClientFacingResult.d.ts +12 -0
- package/api/types/ClientFacingResult.js +5 -0
- package/api/types/ClientFacingSleep.d.ts +1 -1
- package/api/types/GetMarkersResponse.d.ts +1 -1
- package/api/types/Region.d.ts +2 -1
- package/api/types/Region.js +1 -0
- package/api/types/index.d.ts +4 -0
- package/api/types/index.js +4 -0
- package/dist/Client.d.ts +0 -3
- package/dist/Client.js +14 -19
- package/dist/api/resources/activity/client/Client.js +2 -2
- package/dist/api/resources/body/client/Client.js +2 -2
- package/dist/api/resources/devices/client/Client.js +1 -1
- package/dist/api/resources/index.d.ts +0 -1
- package/dist/api/resources/index.js +1 -2
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +10 -1
- package/dist/api/resources/labTests/client/Client.js +145 -21
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +7 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/link/client/Client.d.ts +1 -1
- package/dist/api/resources/link/client/Client.js +16 -16
- package/dist/api/resources/meal/client/Client.js +1 -1
- package/dist/api/resources/profile/client/Client.js +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +1 -1
- package/dist/api/resources/providers/client/Client.js +3 -3
- package/dist/api/resources/sleep/client/Client.d.ts +5 -0
- package/dist/api/resources/sleep/client/Client.js +61 -3
- package/dist/api/resources/team/client/Client.d.ts +6 -6
- package/dist/api/resources/team/client/Client.js +13 -13
- package/dist/api/resources/team/client/requests/{GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.d.ts → TeamGetSourcePrioritiesRequest.d.ts} +1 -1
- package/dist/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.js +5 -0
- package/{api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.d.ts → dist/api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts} +1 -1
- package/dist/api/resources/team/client/requests/TeamGetUserByIdRequest.js +5 -0
- package/{api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.d.ts → dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts} +1 -1
- package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.js +5 -0
- package/dist/api/resources/team/client/requests/index.d.ts +3 -3
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.js +11 -11
- package/dist/api/resources/vitals/client/Client.d.ts +5 -0
- package/dist/api/resources/vitals/client/Client.js +90 -22
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/index.d.ts +1 -0
- package/dist/api/resources/workouts/client/Client.d.ts +4 -0
- package/dist/api/resources/workouts/client/Client.js +59 -2
- package/dist/api/types/BiomarkerResult.d.ts +2 -0
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.js +5 -0
- package/dist/api/types/ClientFacingLoinc.d.ts +10 -0
- package/dist/api/types/ClientFacingLoinc.js +5 -0
- package/dist/api/types/ClientFacingMarkerComplete.d.ts +16 -0
- package/dist/api/types/ClientFacingMarkerComplete.js +5 -0
- package/dist/api/types/ClientFacingResult.d.ts +12 -0
- package/dist/api/types/ClientFacingResult.js +5 -0
- package/dist/api/types/ClientFacingSleep.d.ts +1 -1
- package/dist/api/types/GetMarkersResponse.d.ts +1 -1
- package/dist/api/types/Region.d.ts +2 -1
- package/dist/api/types/Region.js +1 -0
- package/dist/api/types/index.d.ts +4 -0
- package/dist/api/types/index.js +4 -0
- package/dist/serialization/resources/link/client/{getProviders.d.ts → getAllProviders.d.ts} +1 -1
- package/dist/serialization/resources/link/client/index.d.ts +1 -1
- package/dist/serialization/resources/link/client/index.js +2 -2
- package/{serialization/resources/providers/client/getListOfProviders.d.ts → dist/serialization/resources/providers/client/getAll.d.ts} +1 -1
- package/dist/serialization/resources/providers/client/index.d.ts +1 -1
- package/dist/serialization/resources/providers/client/index.js +2 -2
- package/{serialization/resources/team/client/getTeamConfig.d.ts → dist/serialization/resources/team/client/getLinkConfig.d.ts} +1 -1
- package/dist/serialization/resources/team/client/{getTeamConfig.d.ts → getSvixUrl.d.ts} +1 -1
- package/{serialization/resources/team/client/searchTeamUsersByUuidOrClientUserId.d.ts → dist/serialization/resources/team/client/getUserById.d.ts} +1 -1
- package/dist/serialization/resources/team/client/index.d.ts +3 -3
- package/dist/serialization/resources/team/client/index.js +4 -4
- package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.js +40 -0
- package/dist/serialization/resources/vitals/client/index.d.ts +1 -0
- package/dist/serialization/resources/vitals/client/index.js +2 -1
- package/dist/serialization/types/BiomarkerResult.d.ts +2 -0
- package/dist/serialization/types/BiomarkerResult.js +2 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingLoinc.d.ts +16 -0
- package/dist/serialization/types/ClientFacingLoinc.js +37 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +21 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.js +51 -0
- package/dist/serialization/types/ClientFacingResult.d.ts +17 -0
- package/dist/serialization/types/ClientFacingResult.js +47 -0
- package/dist/serialization/types/GetMarkersResponse.d.ts +1 -1
- package/dist/serialization/types/GetMarkersResponse.js +1 -1
- package/dist/serialization/types/Region.d.ts +1 -1
- package/dist/serialization/types/Region.js +1 -0
- package/dist/serialization/types/index.d.ts +4 -0
- package/dist/serialization/types/index.js +4 -0
- package/package.json +1 -1
- package/serialization/resources/link/client/{getProviders.d.ts → getAllProviders.d.ts} +1 -1
- package/serialization/resources/link/client/index.d.ts +1 -1
- package/serialization/resources/link/client/index.js +2 -2
- package/{dist/serialization/resources/providers/client/getListOfProviders.d.ts → serialization/resources/providers/client/getAll.d.ts} +1 -1
- package/serialization/resources/providers/client/index.d.ts +1 -1
- package/serialization/resources/providers/client/index.js +2 -2
- package/serialization/resources/team/client/{getSvixWebhookUrl.d.ts → getLinkConfig.d.ts} +1 -1
- package/{dist/serialization/resources/team/client/getSvixWebhookUrl.d.ts → serialization/resources/team/client/getSvixUrl.d.ts} +1 -1
- package/{dist/serialization/resources/team/client/searchTeamUsersByUuidOrClientUserId.d.ts → serialization/resources/team/client/getUserById.d.ts} +1 -1
- package/serialization/resources/team/client/index.d.ts +3 -3
- package/serialization/resources/team/client/index.js +4 -4
- package/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +10 -0
- package/serialization/resources/vitals/client/electrocardiogramVoltage.js +40 -0
- package/serialization/resources/vitals/client/index.d.ts +1 -0
- package/serialization/resources/vitals/client/index.js +2 -1
- package/serialization/types/BiomarkerResult.d.ts +2 -0
- package/serialization/types/BiomarkerResult.js +2 -0
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +38 -0
- package/serialization/types/ClientFacingLoinc.d.ts +16 -0
- package/serialization/types/ClientFacingLoinc.js +37 -0
- package/serialization/types/ClientFacingMarkerComplete.d.ts +21 -0
- package/serialization/types/ClientFacingMarkerComplete.js +51 -0
- package/serialization/types/ClientFacingResult.d.ts +17 -0
- package/serialization/types/ClientFacingResult.js +47 -0
- package/serialization/types/GetMarkersResponse.d.ts +1 -1
- package/serialization/types/GetMarkersResponse.js +1 -1
- package/serialization/types/Region.d.ts +1 -1
- package/serialization/types/Region.js +1 -0
- package/serialization/types/index.d.ts +4 -0
- package/serialization/types/index.js +4 -0
- package/api/resources/timeseries/client/Client.d.ts +0 -28
- package/api/resources/timeseries/client/Client.js +0 -168
- package/api/resources/timeseries/client/index.d.ts +0 -1
- package/api/resources/timeseries/client/index.js +0 -2
- package/api/resources/timeseries/index.d.ts +0 -1
- package/api/resources/timeseries/index.js +0 -17
- package/dist/api/resources/timeseries/client/Client.d.ts +0 -28
- package/dist/api/resources/timeseries/client/Client.js +0 -168
- package/dist/api/resources/timeseries/client/index.d.ts +0 -1
- package/dist/api/resources/timeseries/client/index.js +0 -2
- package/dist/api/resources/timeseries/index.d.ts +0 -1
- package/dist/api/resources/timeseries/index.js +0 -17
- /package/api/resources/{team/client/requests/GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.js → labTests/client/requests/LabTestsGetMarkersForLabTestRequest.js} +0 -0
- /package/api/resources/team/client/requests/{SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.js → TeamGetSourcePrioritiesRequest.js} +0 -0
- /package/api/resources/team/client/requests/{UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.js → TeamGetUserByIdRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.js → api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.js → api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.js → api/types/ClientFacingElectrocardiogramVoltageTimeseries.js} +0 -0
- /package/dist/serialization/resources/link/client/{getProviders.js → getAllProviders.js} +0 -0
- /package/dist/serialization/resources/providers/client/{getListOfProviders.js → getAll.js} +0 -0
- /package/dist/serialization/resources/team/client/{getSvixWebhookUrl.js → getLinkConfig.js} +0 -0
- /package/dist/serialization/resources/team/client/{getTeamConfig.js → getSvixUrl.js} +0 -0
- /package/dist/serialization/resources/team/client/{searchTeamUsersByUuidOrClientUserId.js → getUserById.js} +0 -0
- /package/serialization/resources/link/client/{getProviders.js → getAllProviders.js} +0 -0
- /package/serialization/resources/providers/client/{getListOfProviders.js → getAll.js} +0 -0
- /package/serialization/resources/team/client/{getSvixWebhookUrl.js → getLinkConfig.js} +0 -0
- /package/serialization/resources/team/client/{getTeamConfig.js → getSvixUrl.js} +0 -0
- /package/serialization/resources/team/client/{searchTeamUsersByUuidOrClientUserId.js → getUserById.js} +0 -0
package/dist/Client.js
CHANGED
|
@@ -12,14 +12,13 @@ const Client_5 = require("./api/resources/workouts/client/Client");
|
|
|
12
12
|
const Client_6 = require("./api/resources/sleep/client/Client");
|
|
13
13
|
const Client_7 = require("./api/resources/body/client/Client");
|
|
14
14
|
const Client_8 = require("./api/resources/meal/client/Client");
|
|
15
|
-
const Client_9 = require("./api/resources/
|
|
16
|
-
const Client_10 = require("./api/resources/
|
|
17
|
-
const Client_11 = require("./api/resources/
|
|
18
|
-
const Client_12 = require("./api/resources/
|
|
19
|
-
const Client_13 = require("./api/resources/
|
|
20
|
-
const Client_14 = require("./api/resources/
|
|
21
|
-
const Client_15 = require("./api/resources/
|
|
22
|
-
const Client_16 = require("./api/resources/insurance/client/Client");
|
|
15
|
+
const Client_9 = require("./api/resources/vitals/client/Client");
|
|
16
|
+
const Client_10 = require("./api/resources/user/client/Client");
|
|
17
|
+
const Client_11 = require("./api/resources/team/client/Client");
|
|
18
|
+
const Client_12 = require("./api/resources/providers/client/Client");
|
|
19
|
+
const Client_13 = require("./api/resources/labTests/client/Client");
|
|
20
|
+
const Client_14 = require("./api/resources/testkit/client/Client");
|
|
21
|
+
const Client_15 = require("./api/resources/insurance/client/Client");
|
|
23
22
|
class VitalClient {
|
|
24
23
|
constructor(_options) {
|
|
25
24
|
this._options = _options;
|
|
@@ -56,37 +55,33 @@ class VitalClient {
|
|
|
56
55
|
var _a;
|
|
57
56
|
return ((_a = this._meal) !== null && _a !== void 0 ? _a : (this._meal = new Client_8.Meal(this._options)));
|
|
58
57
|
}
|
|
59
|
-
get timeseries() {
|
|
60
|
-
var _a;
|
|
61
|
-
return ((_a = this._timeseries) !== null && _a !== void 0 ? _a : (this._timeseries = new Client_9.Timeseries(this._options)));
|
|
62
|
-
}
|
|
63
58
|
get vitals() {
|
|
64
59
|
var _a;
|
|
65
|
-
return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new
|
|
60
|
+
return ((_a = this._vitals) !== null && _a !== void 0 ? _a : (this._vitals = new Client_9.Vitals(this._options)));
|
|
66
61
|
}
|
|
67
62
|
get user() {
|
|
68
63
|
var _a;
|
|
69
|
-
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new
|
|
64
|
+
return ((_a = this._user) !== null && _a !== void 0 ? _a : (this._user = new Client_10.User(this._options)));
|
|
70
65
|
}
|
|
71
66
|
get team() {
|
|
72
67
|
var _a;
|
|
73
|
-
return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new
|
|
68
|
+
return ((_a = this._team) !== null && _a !== void 0 ? _a : (this._team = new Client_11.Team(this._options)));
|
|
74
69
|
}
|
|
75
70
|
get providers() {
|
|
76
71
|
var _a;
|
|
77
|
-
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new
|
|
72
|
+
return ((_a = this._providers) !== null && _a !== void 0 ? _a : (this._providers = new Client_12.Providers(this._options)));
|
|
78
73
|
}
|
|
79
74
|
get labTests() {
|
|
80
75
|
var _a;
|
|
81
|
-
return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new
|
|
76
|
+
return ((_a = this._labTests) !== null && _a !== void 0 ? _a : (this._labTests = new Client_13.LabTests(this._options)));
|
|
82
77
|
}
|
|
83
78
|
get testkit() {
|
|
84
79
|
var _a;
|
|
85
|
-
return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new
|
|
80
|
+
return ((_a = this._testkit) !== null && _a !== void 0 ? _a : (this._testkit = new Client_14.Testkit(this._options)));
|
|
86
81
|
}
|
|
87
82
|
get insurance() {
|
|
88
83
|
var _a;
|
|
89
|
-
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new
|
|
84
|
+
return ((_a = this._insurance) !== null && _a !== void 0 ? _a : (this._insurance = new Client_15.Insurance(this._options)));
|
|
90
85
|
}
|
|
91
86
|
}
|
|
92
87
|
exports.VitalClient = VitalClient;
|
|
@@ -73,7 +73,7 @@ class Activity {
|
|
|
73
73
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
76
|
-
"X-Fern-SDK-Version": "3.0.
|
|
76
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
77
77
|
},
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
@@ -141,7 +141,7 @@ class Activity {
|
|
|
141
141
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
142
142
|
"X-Fern-Language": "JavaScript",
|
|
143
143
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
144
|
-
"X-Fern-SDK-Version": "3.0.
|
|
144
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
145
145
|
},
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
queryParameters: _queryParams,
|
|
@@ -73,7 +73,7 @@ class Body {
|
|
|
73
73
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
76
|
-
"X-Fern-SDK-Version": "3.0.
|
|
76
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
77
77
|
},
|
|
78
78
|
contentType: "application/json",
|
|
79
79
|
queryParameters: _queryParams,
|
|
@@ -141,7 +141,7 @@ class Body {
|
|
|
141
141
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
142
142
|
"X-Fern-Language": "JavaScript",
|
|
143
143
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
144
|
-
"X-Fern-SDK-Version": "3.0.
|
|
144
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
145
145
|
},
|
|
146
146
|
contentType: "application/json",
|
|
147
147
|
queryParameters: _queryParams,
|
|
@@ -69,7 +69,7 @@ class Devices {
|
|
|
69
69
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
70
70
|
"X-Fern-Language": "JavaScript",
|
|
71
71
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
72
|
-
"X-Fern-SDK-Version": "3.0.
|
|
72
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
73
73
|
},
|
|
74
74
|
contentType: "application/json",
|
|
75
75
|
queryParameters: _queryParams,
|
|
@@ -6,7 +6,6 @@ export * as workouts from "./workouts";
|
|
|
6
6
|
export * as sleep from "./sleep";
|
|
7
7
|
export * as body from "./body";
|
|
8
8
|
export * as meal from "./meal";
|
|
9
|
-
export * as timeseries from "./timeseries";
|
|
10
9
|
export * as vitals from "./vitals";
|
|
11
10
|
export * as user from "./user";
|
|
12
11
|
export * as team from "./team";
|
|
@@ -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.labTests = exports.providers = exports.team = exports.user = exports.vitals = exports.
|
|
29
|
+
exports.insurance = exports.testkit = exports.labTests = exports.providers = exports.team = exports.user = exports.vitals = exports.meal = exports.body = exports.sleep = exports.workouts = exports.activity = exports.devices = exports.profile = exports.link = void 0;
|
|
30
30
|
exports.link = __importStar(require("./link"));
|
|
31
31
|
exports.profile = __importStar(require("./profile"));
|
|
32
32
|
exports.devices = __importStar(require("./devices"));
|
|
@@ -35,7 +35,6 @@ exports.workouts = __importStar(require("./workouts"));
|
|
|
35
35
|
exports.sleep = __importStar(require("./sleep"));
|
|
36
36
|
exports.body = __importStar(require("./body"));
|
|
37
37
|
exports.meal = __importStar(require("./meal"));
|
|
38
|
-
exports.timeseries = __importStar(require("./timeseries"));
|
|
39
38
|
exports.vitals = __importStar(require("./vitals"));
|
|
40
39
|
exports.user = __importStar(require("./user"));
|
|
41
40
|
exports.team = __importStar(require("./team"));
|
|
@@ -63,7 +63,7 @@ class Insurance {
|
|
|
63
63
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
64
64
|
"X-Fern-Language": "JavaScript",
|
|
65
65
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
66
|
-
"X-Fern-SDK-Version": "3.0.
|
|
66
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
67
67
|
},
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
body: yield serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -124,7 +124,7 @@ class Insurance {
|
|
|
124
124
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
125
125
|
"X-Fern-Language": "JavaScript",
|
|
126
126
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
127
|
-
"X-Fern-SDK-Version": "3.0.
|
|
127
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
128
128
|
},
|
|
129
129
|
contentType: "application/json",
|
|
130
130
|
queryParameters: _queryParams,
|
|
@@ -29,15 +29,24 @@ export declare class LabTests {
|
|
|
29
29
|
* @throws {@link Vital.UnprocessableEntityError}
|
|
30
30
|
*/
|
|
31
31
|
getMarkers(request?: Vital.LabTestsGetMarkersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
|
|
32
|
+
/**
|
|
33
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
|
34
|
+
*/
|
|
35
|
+
getMarkersForLabTest(labTestId: string, request?: Vital.LabTestsGetMarkersForLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
|
|
32
36
|
/**
|
|
33
37
|
* GET a specific marker for the given lab and provider_id
|
|
34
38
|
* @throws {@link Vital.UnprocessableEntityError}
|
|
35
39
|
*/
|
|
36
|
-
|
|
40
|
+
getMarkersByLabAndProviderId(providerId: string, labId: number, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingMarker>;
|
|
37
41
|
/**
|
|
38
42
|
* GET all the labs.
|
|
39
43
|
*/
|
|
40
44
|
getLabs(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLab[]>;
|
|
45
|
+
/**
|
|
46
|
+
* GET all the lab tests the team has access to.
|
|
47
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
|
48
|
+
*/
|
|
49
|
+
getById(labTestId: string, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest>;
|
|
41
50
|
/**
|
|
42
51
|
* Return the available time slots to book an appointment with a phlebotomist
|
|
43
52
|
* for the given address and order.
|
|
@@ -63,7 +63,7 @@ class LabTests {
|
|
|
63
63
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
64
64
|
"X-Fern-Language": "JavaScript",
|
|
65
65
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
66
|
-
"X-Fern-SDK-Version": "3.0.
|
|
66
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
67
67
|
},
|
|
68
68
|
contentType: "application/json",
|
|
69
69
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -110,7 +110,7 @@ class LabTests {
|
|
|
110
110
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
111
111
|
"X-Fern-Language": "JavaScript",
|
|
112
112
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
113
|
-
"X-Fern-SDK-Version": "3.0.
|
|
113
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
114
114
|
},
|
|
115
115
|
contentType: "application/json",
|
|
116
116
|
body: yield serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -183,7 +183,73 @@ class LabTests {
|
|
|
183
183
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
184
184
|
"X-Fern-Language": "JavaScript",
|
|
185
185
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
186
|
-
"X-Fern-SDK-Version": "3.0.
|
|
186
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
187
|
+
},
|
|
188
|
+
contentType: "application/json",
|
|
189
|
+
queryParameters: _queryParams,
|
|
190
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
191
|
+
});
|
|
192
|
+
if (_response.ok) {
|
|
193
|
+
return yield serializers.GetMarkersResponse.parseOrThrow(_response.body, {
|
|
194
|
+
unrecognizedObjectKeys: "passthrough",
|
|
195
|
+
allowUnrecognizedUnionMembers: true,
|
|
196
|
+
allowUnrecognizedEnumValues: true,
|
|
197
|
+
breadcrumbsPrefix: ["response"],
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
if (_response.error.reason === "status-code") {
|
|
201
|
+
switch (_response.error.statusCode) {
|
|
202
|
+
case 422:
|
|
203
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
204
|
+
unrecognizedObjectKeys: "passthrough",
|
|
205
|
+
allowUnrecognizedUnionMembers: true,
|
|
206
|
+
allowUnrecognizedEnumValues: true,
|
|
207
|
+
breadcrumbsPrefix: ["response"],
|
|
208
|
+
}));
|
|
209
|
+
default:
|
|
210
|
+
throw new errors.VitalError({
|
|
211
|
+
statusCode: _response.error.statusCode,
|
|
212
|
+
body: _response.error.body,
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
switch (_response.error.reason) {
|
|
217
|
+
case "non-json":
|
|
218
|
+
throw new errors.VitalError({
|
|
219
|
+
statusCode: _response.error.statusCode,
|
|
220
|
+
body: _response.error.rawBody,
|
|
221
|
+
});
|
|
222
|
+
case "timeout":
|
|
223
|
+
throw new errors.VitalTimeoutError();
|
|
224
|
+
case "unknown":
|
|
225
|
+
throw new errors.VitalError({
|
|
226
|
+
message: _response.error.errorMessage,
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
|
233
|
+
*/
|
|
234
|
+
getMarkersForLabTest(labTestId, request = {}, requestOptions) {
|
|
235
|
+
var _a;
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
const { page, size } = request;
|
|
238
|
+
const _queryParams = new url_search_params_1.default();
|
|
239
|
+
if (page != null) {
|
|
240
|
+
_queryParams.append("page", page.toString());
|
|
241
|
+
}
|
|
242
|
+
if (size != null) {
|
|
243
|
+
_queryParams.append("size", size.toString());
|
|
244
|
+
}
|
|
245
|
+
const _response = yield core.fetcher({
|
|
246
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labTestId}/markers`),
|
|
247
|
+
method: "GET",
|
|
248
|
+
headers: {
|
|
249
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
250
|
+
"X-Fern-Language": "JavaScript",
|
|
251
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
252
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
187
253
|
},
|
|
188
254
|
contentType: "application/json",
|
|
189
255
|
queryParameters: _queryParams,
|
|
@@ -232,7 +298,7 @@ class LabTests {
|
|
|
232
298
|
* GET a specific marker for the given lab and provider_id
|
|
233
299
|
* @throws {@link Vital.UnprocessableEntityError}
|
|
234
300
|
*/
|
|
235
|
-
|
|
301
|
+
getMarkersByLabAndProviderId(providerId, labId, requestOptions) {
|
|
236
302
|
var _a;
|
|
237
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
238
304
|
const _response = yield core.fetcher({
|
|
@@ -242,7 +308,7 @@ class LabTests {
|
|
|
242
308
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
243
309
|
"X-Fern-Language": "JavaScript",
|
|
244
310
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
245
|
-
"X-Fern-SDK-Version": "3.0.
|
|
311
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
246
312
|
},
|
|
247
313
|
contentType: "application/json",
|
|
248
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -299,7 +365,7 @@ class LabTests {
|
|
|
299
365
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
300
366
|
"X-Fern-Language": "JavaScript",
|
|
301
367
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
302
|
-
"X-Fern-SDK-Version": "3.0.
|
|
368
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
303
369
|
},
|
|
304
370
|
contentType: "application/json",
|
|
305
371
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -333,6 +399,64 @@ class LabTests {
|
|
|
333
399
|
}
|
|
334
400
|
});
|
|
335
401
|
}
|
|
402
|
+
/**
|
|
403
|
+
* GET all the lab tests the team has access to.
|
|
404
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
|
405
|
+
*/
|
|
406
|
+
getById(labTestId, requestOptions) {
|
|
407
|
+
var _a;
|
|
408
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
409
|
+
const _response = yield core.fetcher({
|
|
410
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labTestId}`),
|
|
411
|
+
method: "GET",
|
|
412
|
+
headers: {
|
|
413
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
414
|
+
"X-Fern-Language": "JavaScript",
|
|
415
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
416
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
417
|
+
},
|
|
418
|
+
contentType: "application/json",
|
|
419
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
420
|
+
});
|
|
421
|
+
if (_response.ok) {
|
|
422
|
+
return yield serializers.ClientFacingLabTest.parseOrThrow(_response.body, {
|
|
423
|
+
unrecognizedObjectKeys: "passthrough",
|
|
424
|
+
allowUnrecognizedUnionMembers: true,
|
|
425
|
+
allowUnrecognizedEnumValues: true,
|
|
426
|
+
breadcrumbsPrefix: ["response"],
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
if (_response.error.reason === "status-code") {
|
|
430
|
+
switch (_response.error.statusCode) {
|
|
431
|
+
case 422:
|
|
432
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
|
433
|
+
unrecognizedObjectKeys: "passthrough",
|
|
434
|
+
allowUnrecognizedUnionMembers: true,
|
|
435
|
+
allowUnrecognizedEnumValues: true,
|
|
436
|
+
breadcrumbsPrefix: ["response"],
|
|
437
|
+
}));
|
|
438
|
+
default:
|
|
439
|
+
throw new errors.VitalError({
|
|
440
|
+
statusCode: _response.error.statusCode,
|
|
441
|
+
body: _response.error.body,
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
switch (_response.error.reason) {
|
|
446
|
+
case "non-json":
|
|
447
|
+
throw new errors.VitalError({
|
|
448
|
+
statusCode: _response.error.statusCode,
|
|
449
|
+
body: _response.error.rawBody,
|
|
450
|
+
});
|
|
451
|
+
case "timeout":
|
|
452
|
+
throw new errors.VitalTimeoutError();
|
|
453
|
+
case "unknown":
|
|
454
|
+
throw new errors.VitalError({
|
|
455
|
+
message: _response.error.errorMessage,
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
}
|
|
336
460
|
/**
|
|
337
461
|
* Return the available time slots to book an appointment with a phlebotomist
|
|
338
462
|
* for the given address and order.
|
|
@@ -348,7 +472,7 @@ class LabTests {
|
|
|
348
472
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
349
473
|
"X-Fern-Language": "JavaScript",
|
|
350
474
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
351
|
-
"X-Fern-SDK-Version": "3.0.
|
|
475
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
352
476
|
},
|
|
353
477
|
contentType: "application/json",
|
|
354
478
|
body: yield serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -407,7 +531,7 @@ class LabTests {
|
|
|
407
531
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
408
532
|
"X-Fern-Language": "JavaScript",
|
|
409
533
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
410
|
-
"X-Fern-SDK-Version": "3.0.
|
|
534
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
411
535
|
},
|
|
412
536
|
contentType: "application/json",
|
|
413
537
|
body: yield serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -466,7 +590,7 @@ class LabTests {
|
|
|
466
590
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
467
591
|
"X-Fern-Language": "JavaScript",
|
|
468
592
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
469
|
-
"X-Fern-SDK-Version": "3.0.
|
|
593
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
470
594
|
},
|
|
471
595
|
contentType: "application/json",
|
|
472
596
|
body: yield serializers.AppointmentRescheduleRequest.jsonOrThrow(request, {
|
|
@@ -527,7 +651,7 @@ class LabTests {
|
|
|
527
651
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
528
652
|
"X-Fern-Language": "JavaScript",
|
|
529
653
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
530
|
-
"X-Fern-SDK-Version": "3.0.
|
|
654
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
531
655
|
},
|
|
532
656
|
contentType: "application/json",
|
|
533
657
|
body: yield serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
@@ -585,7 +709,7 @@ class LabTests {
|
|
|
585
709
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
586
710
|
"X-Fern-Language": "JavaScript",
|
|
587
711
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
588
|
-
"X-Fern-SDK-Version": "3.0.
|
|
712
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
589
713
|
},
|
|
590
714
|
contentType: "application/json",
|
|
591
715
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -633,7 +757,7 @@ class LabTests {
|
|
|
633
757
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
634
758
|
"X-Fern-Language": "JavaScript",
|
|
635
759
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
636
|
-
"X-Fern-SDK-Version": "3.0.
|
|
760
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
637
761
|
},
|
|
638
762
|
contentType: "application/json",
|
|
639
763
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -697,7 +821,7 @@ class LabTests {
|
|
|
697
821
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
698
822
|
"X-Fern-Language": "JavaScript",
|
|
699
823
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
700
|
-
"X-Fern-SDK-Version": "3.0.
|
|
824
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
701
825
|
},
|
|
702
826
|
contentType: "application/json",
|
|
703
827
|
queryParameters: _queryParams,
|
|
@@ -756,7 +880,7 @@ class LabTests {
|
|
|
756
880
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
757
881
|
"X-Fern-Language": "JavaScript",
|
|
758
882
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
759
|
-
"X-Fern-SDK-Version": "3.0.
|
|
883
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
760
884
|
},
|
|
761
885
|
contentType: "application/json",
|
|
762
886
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -810,7 +934,7 @@ class LabTests {
|
|
|
810
934
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
811
935
|
"X-Fern-Language": "JavaScript",
|
|
812
936
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
813
|
-
"X-Fern-SDK-Version": "3.0.
|
|
937
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
814
938
|
},
|
|
815
939
|
contentType: "application/json",
|
|
816
940
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -868,7 +992,7 @@ class LabTests {
|
|
|
868
992
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
869
993
|
"X-Fern-Language": "JavaScript",
|
|
870
994
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
871
|
-
"X-Fern-SDK-Version": "3.0.
|
|
995
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
872
996
|
},
|
|
873
997
|
contentType: "application/json",
|
|
874
998
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -926,7 +1050,7 @@ class LabTests {
|
|
|
926
1050
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
927
1051
|
"X-Fern-Language": "JavaScript",
|
|
928
1052
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
929
|
-
"X-Fern-SDK-Version": "3.0.
|
|
1053
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
930
1054
|
},
|
|
931
1055
|
contentType: "application/json",
|
|
932
1056
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -979,7 +1103,7 @@ class LabTests {
|
|
|
979
1103
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
980
1104
|
"X-Fern-Language": "JavaScript",
|
|
981
1105
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
982
|
-
"X-Fern-SDK-Version": "3.0.
|
|
1106
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
983
1107
|
},
|
|
984
1108
|
contentType: "application/json",
|
|
985
1109
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1037,7 +1161,7 @@ class LabTests {
|
|
|
1037
1161
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
1038
1162
|
"X-Fern-Language": "JavaScript",
|
|
1039
1163
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
1040
|
-
"X-Fern-SDK-Version": "3.0.
|
|
1164
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
1041
1165
|
},
|
|
1042
1166
|
contentType: "application/json",
|
|
1043
1167
|
body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
|
|
@@ -1098,7 +1222,7 @@ class LabTests {
|
|
|
1098
1222
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
1099
1223
|
"X-Fern-Language": "JavaScript",
|
|
1100
1224
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
1101
|
-
"X-Fern-SDK-Version": "3.0.
|
|
1225
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
1102
1226
|
},
|
|
1103
1227
|
contentType: "application/json",
|
|
1104
1228
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1186,7 +1310,7 @@ class LabTests {
|
|
|
1186
1310
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
|
1187
1311
|
"X-Fern-Language": "JavaScript",
|
|
1188
1312
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
|
1189
|
-
"X-Fern-SDK-Version": "3.0.
|
|
1313
|
+
"X-Fern-SDK-Version": "3.0.2",
|
|
1190
1314
|
},
|
|
1191
1315
|
contentType: "application/json",
|
|
1192
1316
|
queryParameters: _queryParams,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { CreateLabTestRequest } from "./CreateLabTestRequest";
|
|
2
2
|
export { LabTestsGetMarkersRequest } from "./LabTestsGetMarkersRequest";
|
|
3
|
+
export { LabTestsGetMarkersForLabTestRequest } from "./LabTestsGetMarkersForLabTestRequest";
|
|
3
4
|
export { AppointmentBookingRequest } from "./AppointmentBookingRequest";
|
|
4
5
|
export { AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest";
|
|
5
6
|
export { AppointmentCancelRequest } from "./AppointmentCancelRequest";
|
|
@@ -85,7 +85,7 @@ export declare class Link {
|
|
|
85
85
|
/**
|
|
86
86
|
* GET List of all available providers given the generated link token.
|
|
87
87
|
*/
|
|
88
|
-
|
|
88
|
+
getAllProviders(requestOptions?: Link.RequestOptions): Promise<Vital.SourceLink[]>;
|
|
89
89
|
/**
|
|
90
90
|
* REQUEST_SOURCE: CUSTOMER
|
|
91
91
|
* PROVIDER_TYPE: MANUAL-PROVIDER
|