@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
@@ -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,
|
@@ -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.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
|
@@ -80,7 +80,7 @@ class Link {
|
|
80
80
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
81
81
|
"X-Fern-Language": "JavaScript",
|
82
82
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
83
|
-
"X-Fern-SDK-Version": "3.0.
|
83
|
+
"X-Fern-SDK-Version": "3.0.1",
|
84
84
|
},
|
85
85
|
contentType: "application/json",
|
86
86
|
body: yield serializers.LinkTokenExchange.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -138,7 +138,7 @@ class Link {
|
|
138
138
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
139
139
|
"X-Fern-Language": "JavaScript",
|
140
140
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
141
|
-
"X-Fern-SDK-Version": "3.0.
|
141
|
+
"X-Fern-SDK-Version": "3.0.1",
|
142
142
|
},
|
143
143
|
contentType: "application/json",
|
144
144
|
body: yield serializers.LinkTokenBase.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -203,7 +203,7 @@ class Link {
|
|
203
203
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
204
204
|
"X-Fern-Language": "JavaScript",
|
205
205
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
206
|
-
"X-Fern-SDK-Version": "3.0.
|
206
|
+
"X-Fern-SDK-Version": "3.0.1",
|
207
207
|
},
|
208
208
|
contentType: "application/json",
|
209
209
|
queryParameters: _queryParams,
|
@@ -265,7 +265,7 @@ class Link {
|
|
265
265
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
266
266
|
"X-Fern-Language": "JavaScript",
|
267
267
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
268
|
-
"X-Fern-SDK-Version": "3.0.
|
268
|
+
"X-Fern-SDK-Version": "3.0.1",
|
269
269
|
"x-vital-sdk-no-redirect": vitalSdkNoRedirect != null ? vitalSdkNoRedirect : undefined,
|
270
270
|
},
|
271
271
|
contentType: "application/json",
|
@@ -325,7 +325,7 @@ class Link {
|
|
325
325
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
326
326
|
"X-Fern-Language": "JavaScript",
|
327
327
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
328
|
-
"X-Fern-SDK-Version": "3.0.
|
328
|
+
"X-Fern-SDK-Version": "3.0.1",
|
329
329
|
},
|
330
330
|
contentType: "application/json",
|
331
331
|
body: yield serializers.BeginLinkTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -384,7 +384,7 @@ class Link {
|
|
384
384
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
385
385
|
"X-Fern-Language": "JavaScript",
|
386
386
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
387
|
-
"X-Fern-SDK-Version": "3.0.
|
387
|
+
"X-Fern-SDK-Version": "3.0.1",
|
388
388
|
},
|
389
389
|
contentType: "application/json",
|
390
390
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -434,7 +434,7 @@ class Link {
|
|
434
434
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
435
435
|
"X-Fern-Language": "JavaScript",
|
436
436
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
437
|
-
"X-Fern-SDK-Version": "3.0.
|
437
|
+
"X-Fern-SDK-Version": "3.0.1",
|
438
438
|
},
|
439
439
|
contentType: "application/json",
|
440
440
|
body: yield serializers.EmailAuthLink.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -496,7 +496,7 @@ class Link {
|
|
496
496
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
497
497
|
"X-Fern-Language": "JavaScript",
|
498
498
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
499
|
-
"X-Fern-SDK-Version": "3.0.
|
499
|
+
"X-Fern-SDK-Version": "3.0.1",
|
500
500
|
"x-vital-link-client-region": vitalLinkClientRegion != null ? vitalLinkClientRegion : undefined,
|
501
501
|
},
|
502
502
|
contentType: "application/json",
|
@@ -556,7 +556,7 @@ class Link {
|
|
556
556
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
557
557
|
"X-Fern-Language": "JavaScript",
|
558
558
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
559
|
-
"X-Fern-SDK-Version": "3.0.
|
559
|
+
"X-Fern-SDK-Version": "3.0.1",
|
560
560
|
},
|
561
561
|
contentType: "application/json",
|
562
562
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -615,7 +615,7 @@ class Link {
|
|
615
615
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
616
616
|
"X-Fern-Language": "JavaScript",
|
617
617
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
618
|
-
"X-Fern-SDK-Version": "3.0.
|
618
|
+
"X-Fern-SDK-Version": "3.0.1",
|
619
619
|
"x-vital-link-client-region": vitalLinkClientRegion != null ? vitalLinkClientRegion : undefined,
|
620
620
|
},
|
621
621
|
contentType: "application/json",
|
@@ -675,7 +675,7 @@ class Link {
|
|
675
675
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
676
676
|
"X-Fern-Language": "JavaScript",
|
677
677
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
678
|
-
"X-Fern-SDK-Version": "3.0.
|
678
|
+
"X-Fern-SDK-Version": "3.0.1",
|
679
679
|
},
|
680
680
|
contentType: "application/json",
|
681
681
|
body: yield serializers.EmailProviderAuthLink.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -723,7 +723,7 @@ class Link {
|
|
723
723
|
/**
|
724
724
|
* GET List of all available providers given the generated link token.
|
725
725
|
*/
|
726
|
-
|
726
|
+
getAllProviders(requestOptions) {
|
727
727
|
var _a;
|
728
728
|
return __awaiter(this, void 0, void 0, function* () {
|
729
729
|
const _response = yield core.fetcher({
|
@@ -733,13 +733,13 @@ class Link {
|
|
733
733
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
734
734
|
"X-Fern-Language": "JavaScript",
|
735
735
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
736
|
-
"X-Fern-SDK-Version": "3.0.
|
736
|
+
"X-Fern-SDK-Version": "3.0.1",
|
737
737
|
},
|
738
738
|
contentType: "application/json",
|
739
739
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
740
740
|
});
|
741
741
|
if (_response.ok) {
|
742
|
-
return yield serializers.link.
|
742
|
+
return yield serializers.link.getAllProviders.Response.parseOrThrow(_response.body, {
|
743
743
|
unrecognizedObjectKeys: "passthrough",
|
744
744
|
allowUnrecognizedUnionMembers: true,
|
745
745
|
allowUnrecognizedEnumValues: true,
|
@@ -783,7 +783,7 @@ class Link {
|
|
783
783
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
784
784
|
"X-Fern-Language": "JavaScript",
|
785
785
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
786
|
-
"X-Fern-SDK-Version": "3.0.
|
786
|
+
"X-Fern-SDK-Version": "3.0.1",
|
787
787
|
},
|
788
788
|
contentType: "application/json",
|
789
789
|
body: yield serializers.ManualConnectionData.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -842,7 +842,7 @@ class Link {
|
|
842
842
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
843
843
|
"X-Fern-Language": "JavaScript",
|
844
844
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
845
|
-
"X-Fern-SDK-Version": "3.0.
|
845
|
+
"X-Fern-SDK-Version": "3.0.1",
|
846
846
|
},
|
847
847
|
contentType: "application/json",
|
848
848
|
body: yield serializers.DemoConnectionCreationPayload.jsonOrThrow(request, {
|
@@ -73,7 +73,7 @@ class Meal {
|
|
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,
|
@@ -69,7 +69,7 @@ class Profile {
|
|
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,
|
@@ -133,7 +133,7 @@ class Profile {
|
|
133
133
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
134
134
|
"X-Fern-Language": "JavaScript",
|
135
135
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
136
|
-
"X-Fern-SDK-Version": "3.0.
|
136
|
+
"X-Fern-SDK-Version": "3.0.1",
|
137
137
|
},
|
138
138
|
contentType: "application/json",
|
139
139
|
queryParameters: _queryParams,
|
@@ -19,5 +19,5 @@ export declare class Providers {
|
|
19
19
|
/**
|
20
20
|
* Get Provider list
|
21
21
|
*/
|
22
|
-
|
22
|
+
getAll(requestOptions?: Providers.RequestOptions): Promise<Vital.ClientFacingProviderDetailed[]>;
|
23
23
|
}
|
@@ -51,7 +51,7 @@ class Providers {
|
|
51
51
|
/**
|
52
52
|
* Get Provider list
|
53
53
|
*/
|
54
|
-
|
54
|
+
getAll(requestOptions) {
|
55
55
|
var _a;
|
56
56
|
return __awaiter(this, void 0, void 0, function* () {
|
57
57
|
const _response = yield core.fetcher({
|
@@ -61,13 +61,13 @@ class Providers {
|
|
61
61
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
62
62
|
"X-Fern-Language": "JavaScript",
|
63
63
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
64
|
-
"X-Fern-SDK-Version": "3.0.
|
64
|
+
"X-Fern-SDK-Version": "3.0.1",
|
65
65
|
},
|
66
66
|
contentType: "application/json",
|
67
67
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
68
68
|
});
|
69
69
|
if (_response.ok) {
|
70
|
-
return yield serializers.providers.
|
70
|
+
return yield serializers.providers.getAll.Response.parseOrThrow(_response.body, {
|
71
71
|
unrecognizedObjectKeys: "passthrough",
|
72
72
|
allowUnrecognizedUnionMembers: true,
|
73
73
|
allowUnrecognizedEnumValues: true,
|