@tryvital/vital-node 3.0.0-beta.0 → 3.0.1
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 +136 -21
- 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/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 +136 -21
- 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/labTests/client/getMarkersForLabTest.d.ts +10 -0
- package/dist/serialization/resources/labTests/client/getMarkersForLabTest.js +40 -0
- package/dist/serialization/resources/labTests/client/index.d.ts +1 -0
- package/dist/serialization/resources/labTests/client/index.js +2 -1
- 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/labTests/client/getMarkersForLabTest.d.ts +10 -0
- package/serialization/resources/labTests/client/getMarkersForLabTest.js +40 -0
- package/serialization/resources/labTests/client/index.d.ts +1 -0
- package/serialization/resources/labTests/client/index.js +2 -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 → TeamGetSourcePrioritiesRequest.js} +0 -0
- /package/api/resources/team/client/requests/{SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.js → TeamGetUserByIdRequest.js} +0 -0
- /package/api/resources/team/client/requests/{UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.js → TeamUpdateSourcePrioritiesRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/GetSourcePrioritiesV2TeamSourcePrioritiesGetRequest.js → api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.js} +0 -0
- /package/{dist/api/resources/team/client/requests/SearchTeamUsersByUuidOrClientUserIdV2TeamUsersSearchGetRequest.js → api/types/ClientFacingElectrocardiogramVoltageTimeseries.js} +0 -0
- /package/{dist/api/resources/team/client/requests/UpdateSourcePrioritiesV2TeamSourcePrioritiesPatchRequest.js → api/types/ClientFacingLoinc.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/Client.d.ts
CHANGED
@@ -11,7 +11,6 @@ import { Workouts } from "./api/resources/workouts/client/Client";
|
|
11
11
|
import { Sleep } from "./api/resources/sleep/client/Client";
|
12
12
|
import { Body } from "./api/resources/body/client/Client";
|
13
13
|
import { Meal } from "./api/resources/meal/client/Client";
|
14
|
-
import { Timeseries } from "./api/resources/timeseries/client/Client";
|
15
14
|
import { Vitals } from "./api/resources/vitals/client/Client";
|
16
15
|
import { User } from "./api/resources/user/client/Client";
|
17
16
|
import { Team } from "./api/resources/team/client/Client";
|
@@ -47,8 +46,6 @@ export declare class VitalClient {
|
|
47
46
|
get body(): Body;
|
48
47
|
protected _meal: Meal | undefined;
|
49
48
|
get meal(): Meal;
|
50
|
-
protected _timeseries: Timeseries | undefined;
|
51
|
-
get timeseries(): Timeseries;
|
52
49
|
protected _vitals: Vitals | undefined;
|
53
50
|
get vitals(): Vitals;
|
54
51
|
protected _user: User | undefined;
|
package/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;
|
package/README.md
ADDED
@@ -0,0 +1,91 @@
|
|
1
|
+
# Vital Node Library
|
2
|
+
|
3
|
+
[](https://www.npmjs.com/package/@tryvital/vital-node)
|
4
|
+
[](https://github.com/fern-api/fern)
|
5
|
+
|
6
|
+
The Vital Node.js library provides access to the Vital API from JavaScript/TypeScript.
|
7
|
+
|
8
|
+
## Documentation
|
9
|
+
|
10
|
+
API reference documentation is available [here](https://docs.tryvital.io/home/welcome).
|
11
|
+
|
12
|
+
## Installation
|
13
|
+
|
14
|
+
```
|
15
|
+
npm install --save @tryvital/vital-node
|
16
|
+
# or
|
17
|
+
yarn add @tryvital/vital-node
|
18
|
+
```
|
19
|
+
|
20
|
+
## Usage
|
21
|
+
```typescript
|
22
|
+
import { VitalClient, VitalEnvironment } from '@tryvital/vital-node';
|
23
|
+
|
24
|
+
const vital = new VitalClient({
|
25
|
+
apiKey: 'YOUR_API_KEY',
|
26
|
+
});
|
27
|
+
|
28
|
+
const labTest = await vital.labTests.get('order-id');
|
29
|
+
|
30
|
+
console.log('Received lab test', labTest);
|
31
|
+
```
|
32
|
+
|
33
|
+
## Handling Errors
|
34
|
+
|
35
|
+
When the API returns a non-success status code (4xx or 5xx response), a subclass of [VitalError](./src/errors/VitalError.ts) will be thrown:
|
36
|
+
|
37
|
+
```ts
|
38
|
+
try {
|
39
|
+
await vital.labTests.get('order-id');
|
40
|
+
} catch (err) {
|
41
|
+
if (err instanceof VitalError) {
|
42
|
+
console.log(err.statusCode);
|
43
|
+
console.log(err.message);
|
44
|
+
console.log(err.body);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
```
|
48
|
+
|
49
|
+
## Environments
|
50
|
+
|
51
|
+
When you sign up to Vital you get access to two environments, Sandbox and Production.
|
52
|
+
|
53
|
+
| Environment URLs | |
|
54
|
+
| ---------------- | ---------------------------------- |
|
55
|
+
| `production` | api.tryvital.io |
|
56
|
+
| `production-eu` | api.eu.tryvital.io |
|
57
|
+
| `sandbox` | api.sandbox.tryvital.io |
|
58
|
+
| `sandbox-eu` | api.sandbox.eu.tryvital.io |
|
59
|
+
|
60
|
+
By default, the SDK uses the `production` environment. See the snippet below
|
61
|
+
for an example on how ot change the environment.
|
62
|
+
|
63
|
+
```ts
|
64
|
+
import { VitalClient, VitalEnvironment } from '@tryvital/vital-node';
|
65
|
+
|
66
|
+
const vital = new VitalClient({
|
67
|
+
apiKey: 'YOUR_API_KEY',
|
68
|
+
environmment: VitalEnvironment.Sandbox,
|
69
|
+
});
|
70
|
+
```
|
71
|
+
|
72
|
+
## Request Options
|
73
|
+
|
74
|
+
Each method in the SDK accepts an additional optional parameter where
|
75
|
+
you can specify request options such as a timeout.
|
76
|
+
|
77
|
+
```ts
|
78
|
+
const labTest = await vital.labTests.get('order-id', {
|
79
|
+
timeoutInSeconds: 40 // wait 40 seconds for this call
|
80
|
+
});
|
81
|
+
```
|
82
|
+
|
83
|
+
## Beta status
|
84
|
+
|
85
|
+
This SDK is in beta, and there may be breaking changes between versions without a major version update. Therefore, we recommend pinning the package version to a specific version in your package.json file. This way, you can install the same version each time without breaking changes unless you are intentionally looking for the latest version.
|
86
|
+
|
87
|
+
## Contributing
|
88
|
+
|
89
|
+
While we value open-source contributions to this SDK, this library is generated programmatically. Additions made directly to this library would have to be moved over to our generation code, otherwise they would be overwritten upon the next generated release. Feel free to open a PR as a proof of concept, but know that we will not be able to merge it as-is. We suggest opening an issue first to discuss with us!
|
90
|
+
|
91
|
+
On the other hand, contributions to the README are always very welcome!
|
@@ -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.1",
|
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.1",
|
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.1",
|
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.1",
|
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.1",
|
73
73
|
},
|
74
74
|
contentType: "application/json",
|
75
75
|
queryParameters: _queryParams,
|
package/api/resources/index.d.ts
CHANGED
@@ -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";
|
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.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.1",
|
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.1",
|
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, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingMarkerComplete[]>;
|
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.1",
|
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.1",
|
114
114
|
},
|
115
115
|
contentType: "application/json",
|
116
116
|
body: yield serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -183,7 +183,7 @@ 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.1",
|
187
187
|
},
|
188
188
|
contentType: "application/json",
|
189
189
|
queryParameters: _queryParams,
|
@@ -228,11 +228,68 @@ class LabTests {
|
|
228
228
|
}
|
229
229
|
});
|
230
230
|
}
|
231
|
+
/**
|
232
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
233
|
+
*/
|
234
|
+
getMarkersForLabTest(labTestId, requestOptions) {
|
235
|
+
var _a;
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
237
|
+
const _response = yield core.fetcher({
|
238
|
+
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`),
|
239
|
+
method: "GET",
|
240
|
+
headers: {
|
241
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
242
|
+
"X-Fern-Language": "JavaScript",
|
243
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
244
|
+
"X-Fern-SDK-Version": "3.0.1",
|
245
|
+
},
|
246
|
+
contentType: "application/json",
|
247
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
248
|
+
});
|
249
|
+
if (_response.ok) {
|
250
|
+
return yield serializers.labTests.getMarkersForLabTest.Response.parseOrThrow(_response.body, {
|
251
|
+
unrecognizedObjectKeys: "passthrough",
|
252
|
+
allowUnrecognizedUnionMembers: true,
|
253
|
+
allowUnrecognizedEnumValues: true,
|
254
|
+
breadcrumbsPrefix: ["response"],
|
255
|
+
});
|
256
|
+
}
|
257
|
+
if (_response.error.reason === "status-code") {
|
258
|
+
switch (_response.error.statusCode) {
|
259
|
+
case 422:
|
260
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
261
|
+
unrecognizedObjectKeys: "passthrough",
|
262
|
+
allowUnrecognizedUnionMembers: true,
|
263
|
+
allowUnrecognizedEnumValues: true,
|
264
|
+
breadcrumbsPrefix: ["response"],
|
265
|
+
}));
|
266
|
+
default:
|
267
|
+
throw new errors.VitalError({
|
268
|
+
statusCode: _response.error.statusCode,
|
269
|
+
body: _response.error.body,
|
270
|
+
});
|
271
|
+
}
|
272
|
+
}
|
273
|
+
switch (_response.error.reason) {
|
274
|
+
case "non-json":
|
275
|
+
throw new errors.VitalError({
|
276
|
+
statusCode: _response.error.statusCode,
|
277
|
+
body: _response.error.rawBody,
|
278
|
+
});
|
279
|
+
case "timeout":
|
280
|
+
throw new errors.VitalTimeoutError();
|
281
|
+
case "unknown":
|
282
|
+
throw new errors.VitalError({
|
283
|
+
message: _response.error.errorMessage,
|
284
|
+
});
|
285
|
+
}
|
286
|
+
});
|
287
|
+
}
|
231
288
|
/**
|
232
289
|
* GET a specific marker for the given lab and provider_id
|
233
290
|
* @throws {@link Vital.UnprocessableEntityError}
|
234
291
|
*/
|
235
|
-
|
292
|
+
getMarkersByLabAndProviderId(providerId, labId, requestOptions) {
|
236
293
|
var _a;
|
237
294
|
return __awaiter(this, void 0, void 0, function* () {
|
238
295
|
const _response = yield core.fetcher({
|
@@ -242,7 +299,7 @@ class LabTests {
|
|
242
299
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
243
300
|
"X-Fern-Language": "JavaScript",
|
244
301
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
245
|
-
"X-Fern-SDK-Version": "3.0.
|
302
|
+
"X-Fern-SDK-Version": "3.0.1",
|
246
303
|
},
|
247
304
|
contentType: "application/json",
|
248
305
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -299,7 +356,7 @@ class LabTests {
|
|
299
356
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
300
357
|
"X-Fern-Language": "JavaScript",
|
301
358
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
302
|
-
"X-Fern-SDK-Version": "3.0.
|
359
|
+
"X-Fern-SDK-Version": "3.0.1",
|
303
360
|
},
|
304
361
|
contentType: "application/json",
|
305
362
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -333,6 +390,64 @@ class LabTests {
|
|
333
390
|
}
|
334
391
|
});
|
335
392
|
}
|
393
|
+
/**
|
394
|
+
* GET all the lab tests the team has access to.
|
395
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
396
|
+
*/
|
397
|
+
getById(labTestId, requestOptions) {
|
398
|
+
var _a;
|
399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
400
|
+
const _response = yield core.fetcher({
|
401
|
+
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}`),
|
402
|
+
method: "GET",
|
403
|
+
headers: {
|
404
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
405
|
+
"X-Fern-Language": "JavaScript",
|
406
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
407
|
+
"X-Fern-SDK-Version": "3.0.1",
|
408
|
+
},
|
409
|
+
contentType: "application/json",
|
410
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
411
|
+
});
|
412
|
+
if (_response.ok) {
|
413
|
+
return yield serializers.ClientFacingLabTest.parseOrThrow(_response.body, {
|
414
|
+
unrecognizedObjectKeys: "passthrough",
|
415
|
+
allowUnrecognizedUnionMembers: true,
|
416
|
+
allowUnrecognizedEnumValues: true,
|
417
|
+
breadcrumbsPrefix: ["response"],
|
418
|
+
});
|
419
|
+
}
|
420
|
+
if (_response.error.reason === "status-code") {
|
421
|
+
switch (_response.error.statusCode) {
|
422
|
+
case 422:
|
423
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
424
|
+
unrecognizedObjectKeys: "passthrough",
|
425
|
+
allowUnrecognizedUnionMembers: true,
|
426
|
+
allowUnrecognizedEnumValues: true,
|
427
|
+
breadcrumbsPrefix: ["response"],
|
428
|
+
}));
|
429
|
+
default:
|
430
|
+
throw new errors.VitalError({
|
431
|
+
statusCode: _response.error.statusCode,
|
432
|
+
body: _response.error.body,
|
433
|
+
});
|
434
|
+
}
|
435
|
+
}
|
436
|
+
switch (_response.error.reason) {
|
437
|
+
case "non-json":
|
438
|
+
throw new errors.VitalError({
|
439
|
+
statusCode: _response.error.statusCode,
|
440
|
+
body: _response.error.rawBody,
|
441
|
+
});
|
442
|
+
case "timeout":
|
443
|
+
throw new errors.VitalTimeoutError();
|
444
|
+
case "unknown":
|
445
|
+
throw new errors.VitalError({
|
446
|
+
message: _response.error.errorMessage,
|
447
|
+
});
|
448
|
+
}
|
449
|
+
});
|
450
|
+
}
|
336
451
|
/**
|
337
452
|
* Return the available time slots to book an appointment with a phlebotomist
|
338
453
|
* for the given address and order.
|
@@ -348,7 +463,7 @@ class LabTests {
|
|
348
463
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
349
464
|
"X-Fern-Language": "JavaScript",
|
350
465
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
351
|
-
"X-Fern-SDK-Version": "3.0.
|
466
|
+
"X-Fern-SDK-Version": "3.0.1",
|
352
467
|
},
|
353
468
|
contentType: "application/json",
|
354
469
|
body: yield serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -407,7 +522,7 @@ class LabTests {
|
|
407
522
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
408
523
|
"X-Fern-Language": "JavaScript",
|
409
524
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
410
|
-
"X-Fern-SDK-Version": "3.0.
|
525
|
+
"X-Fern-SDK-Version": "3.0.1",
|
411
526
|
},
|
412
527
|
contentType: "application/json",
|
413
528
|
body: yield serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -466,7 +581,7 @@ class LabTests {
|
|
466
581
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
467
582
|
"X-Fern-Language": "JavaScript",
|
468
583
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
469
|
-
"X-Fern-SDK-Version": "3.0.
|
584
|
+
"X-Fern-SDK-Version": "3.0.1",
|
470
585
|
},
|
471
586
|
contentType: "application/json",
|
472
587
|
body: yield serializers.AppointmentRescheduleRequest.jsonOrThrow(request, {
|
@@ -527,7 +642,7 @@ class LabTests {
|
|
527
642
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
528
643
|
"X-Fern-Language": "JavaScript",
|
529
644
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
530
|
-
"X-Fern-SDK-Version": "3.0.
|
645
|
+
"X-Fern-SDK-Version": "3.0.1",
|
531
646
|
},
|
532
647
|
contentType: "application/json",
|
533
648
|
body: yield serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -585,7 +700,7 @@ class LabTests {
|
|
585
700
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
586
701
|
"X-Fern-Language": "JavaScript",
|
587
702
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
588
|
-
"X-Fern-SDK-Version": "3.0.
|
703
|
+
"X-Fern-SDK-Version": "3.0.1",
|
589
704
|
},
|
590
705
|
contentType: "application/json",
|
591
706
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -633,7 +748,7 @@ class LabTests {
|
|
633
748
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
634
749
|
"X-Fern-Language": "JavaScript",
|
635
750
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
636
|
-
"X-Fern-SDK-Version": "3.0.
|
751
|
+
"X-Fern-SDK-Version": "3.0.1",
|
637
752
|
},
|
638
753
|
contentType: "application/json",
|
639
754
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -697,7 +812,7 @@ class LabTests {
|
|
697
812
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
698
813
|
"X-Fern-Language": "JavaScript",
|
699
814
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
700
|
-
"X-Fern-SDK-Version": "3.0.
|
815
|
+
"X-Fern-SDK-Version": "3.0.1",
|
701
816
|
},
|
702
817
|
contentType: "application/json",
|
703
818
|
queryParameters: _queryParams,
|
@@ -756,7 +871,7 @@ class LabTests {
|
|
756
871
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
757
872
|
"X-Fern-Language": "JavaScript",
|
758
873
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
759
|
-
"X-Fern-SDK-Version": "3.0.
|
874
|
+
"X-Fern-SDK-Version": "3.0.1",
|
760
875
|
},
|
761
876
|
contentType: "application/json",
|
762
877
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -810,7 +925,7 @@ class LabTests {
|
|
810
925
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
811
926
|
"X-Fern-Language": "JavaScript",
|
812
927
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
813
|
-
"X-Fern-SDK-Version": "3.0.
|
928
|
+
"X-Fern-SDK-Version": "3.0.1",
|
814
929
|
},
|
815
930
|
contentType: "application/json",
|
816
931
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -868,7 +983,7 @@ class LabTests {
|
|
868
983
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
869
984
|
"X-Fern-Language": "JavaScript",
|
870
985
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
871
|
-
"X-Fern-SDK-Version": "3.0.
|
986
|
+
"X-Fern-SDK-Version": "3.0.1",
|
872
987
|
},
|
873
988
|
contentType: "application/json",
|
874
989
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -926,7 +1041,7 @@ class LabTests {
|
|
926
1041
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
927
1042
|
"X-Fern-Language": "JavaScript",
|
928
1043
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
929
|
-
"X-Fern-SDK-Version": "3.0.
|
1044
|
+
"X-Fern-SDK-Version": "3.0.1",
|
930
1045
|
},
|
931
1046
|
contentType: "application/json",
|
932
1047
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -979,7 +1094,7 @@ class LabTests {
|
|
979
1094
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
980
1095
|
"X-Fern-Language": "JavaScript",
|
981
1096
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
982
|
-
"X-Fern-SDK-Version": "3.0.
|
1097
|
+
"X-Fern-SDK-Version": "3.0.1",
|
983
1098
|
},
|
984
1099
|
contentType: "application/json",
|
985
1100
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1037,7 +1152,7 @@ class LabTests {
|
|
1037
1152
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1038
1153
|
"X-Fern-Language": "JavaScript",
|
1039
1154
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1040
|
-
"X-Fern-SDK-Version": "3.0.
|
1155
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1041
1156
|
},
|
1042
1157
|
contentType: "application/json",
|
1043
1158
|
body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
|
@@ -1098,7 +1213,7 @@ class LabTests {
|
|
1098
1213
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1099
1214
|
"X-Fern-Language": "JavaScript",
|
1100
1215
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1101
|
-
"X-Fern-SDK-Version": "3.0.
|
1216
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1102
1217
|
},
|
1103
1218
|
contentType: "application/json",
|
1104
1219
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1186,7 +1301,7 @@ class LabTests {
|
|
1186
1301
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1187
1302
|
"X-Fern-Language": "JavaScript",
|
1188
1303
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1189
|
-
"X-Fern-SDK-Version": "3.0.
|
1304
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1190
1305
|
},
|
1191
1306
|
contentType: "application/json",
|
1192
1307
|
queryParameters: _queryParams,
|
@@ -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
|