@tryvital/vital-node 3.0.5 → 3.0.7
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/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/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.d.ts +4 -0
- package/api/resources/introspect/client/Client.js +73 -1
- package/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +10 -0
- package/api/resources/introspect/client/requests/index.d.ts +1 -0
- package/api/resources/labTests/client/Client.d.ts +8 -2
- package/api/resources/labTests/client/Client.js +88 -57
- package/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +9 -0
- package/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/api/resources/link/client/Client.d.ts +3 -3
- package/api/resources/link/client/Client.js +23 -51
- package/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +1 -1
- package/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +1 -1
- package/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +1 -1
- package/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
- package/api/resources/meal/client/Client.js +1 -1
- package/api/resources/profile/client/Client.js +2 -2
- package/api/resources/providers/client/Client.js +1 -1
- package/api/resources/sleep/client/Client.js +4 -4
- package/api/resources/team/client/Client.d.ts +1 -1
- package/api/resources/team/client/Client.js +9 -13
- package/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +1 -1
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.d.ts +1 -1
- package/api/resources/user/client/Client.js +18 -12
- package/api/resources/user/client/requests/UserRefreshRequest.d.ts +6 -0
- package/api/resources/user/client/requests/index.d.ts +1 -0
- package/api/resources/vitals/client/Client.js +23 -23
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/AppointmentEventStatus.d.ts +2 -1
- package/api/types/AppointmentEventStatus.js +1 -0
- package/api/types/AppointmentProvider.d.ts +2 -1
- package/api/types/AppointmentProvider.js +1 -0
- package/api/types/AppointmentServiceType.d.ts +11 -0
- package/api/types/AppointmentServiceType.js +10 -0
- package/api/types/ClientFacingAppointment.d.ts +3 -3
- package/api/types/HistoricalPullStatus.d.ts +12 -0
- package/api/types/HistoricalPullStatus.js +11 -0
- package/api/types/OrderStatus.d.ts +2 -1
- package/api/types/OrderStatus.js +1 -0
- package/api/types/PhlebotomyAreaInfo.d.ts +2 -0
- package/api/types/PhlebotomyProviderInfo.d.ts +8 -0
- package/api/types/SingleHistoricalPullStatistics.d.ts +12 -0
- package/api/types/SingleHistoricalPullStatistics.js +5 -0
- package/api/types/SingleProviderHistoricalPullResponse.d.ts +8 -0
- package/api/types/SingleProviderHistoricalPullResponse.js +5 -0
- package/api/types/SingleUserHistoricalPullResponse.d.ts +8 -0
- package/api/types/SingleUserHistoricalPullResponse.js +5 -0
- package/api/types/SingleUserResourceResponse.d.ts +2 -0
- package/api/types/UserHistoricalPullsResponse.d.ts +8 -0
- package/api/types/UserHistoricalPullsResponse.js +5 -0
- package/api/types/UserRefreshSuccessResponse.d.ts +1 -0
- package/api/types/UserSignInTokenResponse.d.ts +1 -2
- package/api/types/index.d.ts +7 -2
- package/api/types/index.js +7 -2
- package/core/index.d.ts +1 -0
- package/core/index.js +1 -0
- package/core/streaming-fetcher/StreamingFetcher.d.ts +30 -0
- package/core/streaming-fetcher/StreamingFetcher.js +79 -0
- package/core/streaming-fetcher/getHeader.d.ts +2 -0
- package/core/streaming-fetcher/getHeader.js +12 -0
- package/core/streaming-fetcher/index.d.ts +3 -0
- package/core/streaming-fetcher/index.js +7 -0
- 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/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.d.ts +4 -0
- package/dist/api/resources/introspect/client/Client.js +73 -1
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +10 -0
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.js +5 -0
- package/dist/api/resources/introspect/client/requests/index.d.ts +1 -0
- package/dist/api/resources/labTests/client/Client.d.ts +8 -2
- package/dist/api/resources/labTests/client/Client.js +88 -57
- package/dist/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +9 -0
- package/dist/api/resources/labTests/client/requests/RequestAppointmentRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/link/client/Client.d.ts +3 -3
- package/dist/api/resources/link/client/Client.js +23 -51
- package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/dist/api/resources/link/client/requests/LinkGenerateOauthLinkRequest.d.ts +1 -1
- package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +1 -1
- package/dist/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +1 -1
- package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
- 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.js +1 -1
- package/dist/api/resources/sleep/client/Client.js +4 -4
- package/dist/api/resources/team/client/Client.d.ts +1 -1
- package/dist/api/resources/team/client/Client.js +9 -13
- package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +1 -1
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.d.ts +1 -1
- package/dist/api/resources/user/client/Client.js +18 -12
- package/dist/api/resources/user/client/requests/UserRefreshRequest.d.ts +6 -0
- package/dist/api/resources/user/client/requests/UserRefreshRequest.js +5 -0
- package/dist/api/resources/user/client/requests/index.d.ts +1 -0
- package/dist/api/resources/vitals/client/Client.js +23 -23
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/AppointmentEventStatus.d.ts +2 -1
- package/dist/api/types/AppointmentEventStatus.js +1 -0
- package/dist/api/types/AppointmentProvider.d.ts +2 -1
- package/dist/api/types/AppointmentProvider.js +1 -0
- package/dist/api/types/AppointmentServiceType.d.ts +11 -0
- package/dist/api/types/AppointmentServiceType.js +10 -0
- package/dist/api/types/ClientFacingAppointment.d.ts +3 -3
- package/dist/api/types/HistoricalPullStatus.d.ts +12 -0
- package/dist/api/types/HistoricalPullStatus.js +11 -0
- package/dist/api/types/OrderStatus.d.ts +2 -1
- package/dist/api/types/OrderStatus.js +1 -0
- package/dist/api/types/PhlebotomyAreaInfo.d.ts +2 -0
- package/dist/api/types/PhlebotomyProviderInfo.d.ts +8 -0
- package/dist/api/types/PhlebotomyProviderInfo.js +5 -0
- package/dist/api/types/SingleHistoricalPullStatistics.d.ts +12 -0
- package/dist/api/types/SingleHistoricalPullStatistics.js +5 -0
- package/dist/api/types/SingleProviderHistoricalPullResponse.d.ts +8 -0
- package/dist/api/types/SingleProviderHistoricalPullResponse.js +5 -0
- package/dist/api/types/SingleUserHistoricalPullResponse.d.ts +8 -0
- package/dist/api/types/SingleUserHistoricalPullResponse.js +5 -0
- package/dist/api/types/SingleUserResourceResponse.d.ts +2 -0
- package/dist/api/types/UserHistoricalPullsResponse.d.ts +8 -0
- package/dist/api/types/UserHistoricalPullsResponse.js +5 -0
- package/dist/api/types/UserRefreshSuccessResponse.d.ts +1 -0
- package/dist/api/types/UserSignInTokenResponse.d.ts +1 -2
- package/dist/api/types/index.d.ts +7 -2
- package/dist/api/types/index.js +7 -2
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/streaming-fetcher/StreamingFetcher.d.ts +30 -0
- package/dist/core/streaming-fetcher/StreamingFetcher.js +79 -0
- package/dist/core/streaming-fetcher/getHeader.d.ts +2 -0
- package/dist/core/streaming-fetcher/getHeader.js +12 -0
- package/dist/core/streaming-fetcher/index.d.ts +3 -0
- package/dist/core/streaming-fetcher/index.js +7 -0
- package/dist/serialization/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +13 -0
- package/dist/serialization/resources/labTests/client/requests/RequestAppointmentRequest.js +43 -0
- package/dist/serialization/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/labTests/client/requests/index.js +3 -1
- package/dist/serialization/types/AppointmentEventStatus.d.ts +1 -1
- package/dist/serialization/types/AppointmentEventStatus.js +1 -1
- package/dist/serialization/types/AppointmentProvider.d.ts +1 -1
- package/dist/serialization/types/AppointmentProvider.js +1 -1
- package/dist/serialization/types/AppointmentServiceType.d.ts +10 -0
- package/dist/serialization/types/{UserSignInToken.js → AppointmentServiceType.js} +2 -5
- package/dist/serialization/types/ClientFacingAppointment.d.ts +3 -3
- package/dist/serialization/types/ClientFacingAppointment.js +3 -3
- package/dist/serialization/types/HistoricalPullStatus.d.ts +10 -0
- package/{serialization/types/UserSignInToken.js → dist/serialization/types/HistoricalPullStatus.js} +2 -5
- package/dist/serialization/types/OrderStatus.d.ts +1 -1
- package/dist/serialization/types/OrderStatus.js +1 -0
- package/dist/serialization/types/PhlebotomyAreaInfo.d.ts +1 -0
- package/dist/serialization/types/PhlebotomyAreaInfo.js +10 -0
- package/dist/serialization/types/PhlebotomyProviderInfo.d.ts +13 -0
- package/dist/serialization/types/PhlebotomyProviderInfo.js +43 -0
- package/dist/serialization/types/SingleHistoricalPullStatistics.d.ts +17 -0
- package/dist/serialization/types/SingleHistoricalPullStatistics.js +47 -0
- package/dist/serialization/types/SingleProviderHistoricalPullResponse.d.ts +13 -0
- package/dist/serialization/types/SingleProviderHistoricalPullResponse.js +43 -0
- package/dist/serialization/types/SingleUserHistoricalPullResponse.d.ts +13 -0
- package/dist/serialization/types/SingleUserHistoricalPullResponse.js +43 -0
- package/dist/serialization/types/SingleUserResourceResponse.d.ts +1 -0
- package/dist/serialization/types/SingleUserResourceResponse.js +10 -0
- package/dist/serialization/types/UserHistoricalPullsResponse.d.ts +13 -0
- package/dist/serialization/types/{UserSignInTokenResponseSignInToken.js → UserHistoricalPullsResponse.js} +5 -5
- package/dist/serialization/types/UserRefreshSuccessResponse.d.ts +1 -0
- package/dist/serialization/types/UserRefreshSuccessResponse.js +1 -0
- package/dist/serialization/types/UserSignInTokenResponse.d.ts +1 -1
- package/dist/serialization/types/UserSignInTokenResponse.js +1 -10
- package/dist/serialization/types/index.d.ts +7 -2
- package/dist/serialization/types/index.js +7 -2
- package/package.json +1 -1
- package/serialization/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +13 -0
- package/serialization/resources/labTests/client/requests/RequestAppointmentRequest.js +43 -0
- package/serialization/resources/labTests/client/requests/index.d.ts +1 -0
- package/serialization/resources/labTests/client/requests/index.js +3 -1
- package/serialization/types/AppointmentEventStatus.d.ts +1 -1
- package/serialization/types/AppointmentEventStatus.js +1 -1
- package/serialization/types/AppointmentProvider.d.ts +1 -1
- package/serialization/types/AppointmentProvider.js +1 -1
- package/serialization/types/AppointmentServiceType.d.ts +10 -0
- package/serialization/types/AppointmentServiceType.js +31 -0
- package/serialization/types/ClientFacingAppointment.d.ts +3 -3
- package/serialization/types/ClientFacingAppointment.js +3 -3
- package/serialization/types/HistoricalPullStatus.d.ts +10 -0
- package/serialization/types/HistoricalPullStatus.js +31 -0
- package/serialization/types/OrderStatus.d.ts +1 -1
- package/serialization/types/OrderStatus.js +1 -0
- package/serialization/types/PhlebotomyAreaInfo.d.ts +1 -0
- package/serialization/types/PhlebotomyAreaInfo.js +10 -0
- package/serialization/types/PhlebotomyProviderInfo.d.ts +13 -0
- package/serialization/types/PhlebotomyProviderInfo.js +43 -0
- package/serialization/types/SingleHistoricalPullStatistics.d.ts +17 -0
- package/serialization/types/SingleHistoricalPullStatistics.js +47 -0
- package/serialization/types/SingleProviderHistoricalPullResponse.d.ts +13 -0
- package/serialization/types/SingleProviderHistoricalPullResponse.js +43 -0
- package/serialization/types/SingleUserHistoricalPullResponse.d.ts +13 -0
- package/serialization/types/SingleUserHistoricalPullResponse.js +43 -0
- package/serialization/types/SingleUserResourceResponse.d.ts +1 -0
- package/serialization/types/SingleUserResourceResponse.js +10 -0
- package/serialization/types/UserHistoricalPullsResponse.d.ts +13 -0
- package/serialization/types/{UserSignInTokenResponseSignInToken.js → UserHistoricalPullsResponse.js} +5 -5
- package/serialization/types/UserRefreshSuccessResponse.d.ts +1 -0
- package/serialization/types/UserRefreshSuccessResponse.js +1 -0
- package/serialization/types/UserSignInTokenResponse.d.ts +1 -1
- package/serialization/types/UserSignInTokenResponse.js +1 -10
- package/serialization/types/index.d.ts +7 -2
- package/serialization/types/index.js +7 -2
- package/api/types/UserSignInToken.d.ts +0 -7
- package/api/types/UserSignInTokenResponseSignInToken.d.ts +0 -5
- package/dist/api/types/UserSignInToken.d.ts +0 -7
- package/dist/api/types/UserSignInTokenResponseSignInToken.d.ts +0 -5
- package/dist/serialization/types/UserSignInToken.d.ts +0 -13
- package/dist/serialization/types/UserSignInTokenResponseSignInToken.d.ts +0 -10
- package/serialization/types/UserSignInToken.d.ts +0 -13
- package/serialization/types/UserSignInTokenResponseSignInToken.d.ts +0 -10
- /package/api/{types/UserSignInToken.js → resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.js} +0 -0
- /package/api/{types/UserSignInTokenResponseSignInToken.js → resources/labTests/client/requests/RequestAppointmentRequest.js} +0 -0
- /package/{dist/api/types/UserSignInToken.js → api/resources/user/client/requests/UserRefreshRequest.js} +0 -0
- /package/{dist/api/types/UserSignInTokenResponseSignInToken.js → api/types/PhlebotomyProviderInfo.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.7",
|
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.7",
|
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.7",
|
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.7",
|
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.7",
|
73
73
|
},
|
74
74
|
contentType: "application/json",
|
75
75
|
queryParameters: _queryParams,
|
@@ -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.7",
|
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.7",
|
128
128
|
},
|
129
129
|
contentType: "application/json",
|
130
130
|
queryParameters: _queryParams,
|
@@ -20,4 +20,8 @@ export declare class Introspect {
|
|
20
20
|
* @throws {@link Vital.UnprocessableEntityError}
|
21
21
|
*/
|
22
22
|
getUserResources(request?: Vital.IntrospectGetUserResourcesRequest, requestOptions?: Introspect.RequestOptions): Promise<Vital.UserResourcesResponse>;
|
23
|
+
/**
|
24
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
25
|
+
*/
|
26
|
+
getUserHistoricalPulls(request?: Vital.IntrospectGetUserHistoricalPullsRequest, requestOptions?: Introspect.RequestOptions): Promise<Vital.UserHistoricalPullsResponse>;
|
23
27
|
}
|
@@ -77,7 +77,7 @@ class Introspect {
|
|
77
77
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
78
78
|
"X-Fern-Language": "JavaScript",
|
79
79
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
80
|
-
"X-Fern-SDK-Version": "3.0.
|
80
|
+
"X-Fern-SDK-Version": "3.0.7",
|
81
81
|
},
|
82
82
|
contentType: "application/json",
|
83
83
|
queryParameters: _queryParams,
|
@@ -122,5 +122,77 @@ class Introspect {
|
|
122
122
|
}
|
123
123
|
});
|
124
124
|
}
|
125
|
+
/**
|
126
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
127
|
+
*/
|
128
|
+
getUserHistoricalPulls(request = {}, requestOptions) {
|
129
|
+
var _a;
|
130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
131
|
+
const { userId, provider, userLimit, cursor } = request;
|
132
|
+
const _queryParams = new url_search_params_1.default();
|
133
|
+
if (userId != null) {
|
134
|
+
_queryParams.append("user_id", userId);
|
135
|
+
}
|
136
|
+
if (provider != null) {
|
137
|
+
_queryParams.append("provider", provider);
|
138
|
+
}
|
139
|
+
if (userLimit != null) {
|
140
|
+
_queryParams.append("user_limit", userLimit.toString());
|
141
|
+
}
|
142
|
+
if (cursor != null) {
|
143
|
+
_queryParams.append("cursor", cursor);
|
144
|
+
}
|
145
|
+
const _response = yield core.fetcher({
|
146
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/historical_pull"),
|
147
|
+
method: "GET",
|
148
|
+
headers: {
|
149
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
150
|
+
"X-Fern-Language": "JavaScript",
|
151
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
152
|
+
"X-Fern-SDK-Version": "3.0.7",
|
153
|
+
},
|
154
|
+
contentType: "application/json",
|
155
|
+
queryParameters: _queryParams,
|
156
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
157
|
+
});
|
158
|
+
if (_response.ok) {
|
159
|
+
return yield serializers.UserHistoricalPullsResponse.parseOrThrow(_response.body, {
|
160
|
+
unrecognizedObjectKeys: "passthrough",
|
161
|
+
allowUnrecognizedUnionMembers: true,
|
162
|
+
allowUnrecognizedEnumValues: true,
|
163
|
+
breadcrumbsPrefix: ["response"],
|
164
|
+
});
|
165
|
+
}
|
166
|
+
if (_response.error.reason === "status-code") {
|
167
|
+
switch (_response.error.statusCode) {
|
168
|
+
case 422:
|
169
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
170
|
+
unrecognizedObjectKeys: "passthrough",
|
171
|
+
allowUnrecognizedUnionMembers: true,
|
172
|
+
allowUnrecognizedEnumValues: true,
|
173
|
+
breadcrumbsPrefix: ["response"],
|
174
|
+
}));
|
175
|
+
default:
|
176
|
+
throw new errors.VitalError({
|
177
|
+
statusCode: _response.error.statusCode,
|
178
|
+
body: _response.error.body,
|
179
|
+
});
|
180
|
+
}
|
181
|
+
}
|
182
|
+
switch (_response.error.reason) {
|
183
|
+
case "non-json":
|
184
|
+
throw new errors.VitalError({
|
185
|
+
statusCode: _response.error.statusCode,
|
186
|
+
body: _response.error.rawBody,
|
187
|
+
});
|
188
|
+
case "timeout":
|
189
|
+
throw new errors.VitalTimeoutError();
|
190
|
+
case "unknown":
|
191
|
+
throw new errors.VitalError({
|
192
|
+
message: _response.error.errorMessage,
|
193
|
+
});
|
194
|
+
}
|
195
|
+
});
|
196
|
+
}
|
125
197
|
}
|
126
198
|
exports.Introspect = Introspect;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../../../..";
|
5
|
+
export interface IntrospectGetUserHistoricalPullsRequest {
|
6
|
+
userId?: string;
|
7
|
+
provider?: Vital.Providers;
|
8
|
+
userLimit?: number;
|
9
|
+
cursor?: string;
|
10
|
+
}
|
@@ -1,9 +1,11 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/// <reference types="node" />
|
4
5
|
import * as environments from "../../../../environments";
|
5
6
|
import * as core from "../../../../core";
|
6
7
|
import * as Vital from "../../..";
|
8
|
+
import * as stream from "stream";
|
7
9
|
export declare namespace LabTests {
|
8
10
|
interface Options {
|
9
11
|
environment?: core.Supplier<environments.VitalEnvironment | string>;
|
@@ -58,6 +60,11 @@ export declare class LabTests {
|
|
58
60
|
* @throws {@link Vital.UnprocessableEntityError}
|
59
61
|
*/
|
60
62
|
bookPhlebotomyAppointment(orderId: string, request: Vital.AppointmentBookingRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
63
|
+
/**
|
64
|
+
* Request an at-home phlebotomy appointment.
|
65
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
66
|
+
*/
|
67
|
+
requestPhlebotomyAppointment(orderId: string, request: Vital.RequestAppointmentRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
61
68
|
/**
|
62
69
|
* Reschedule a previously booked at-home phlebotomy appointment.
|
63
70
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -87,9 +94,8 @@ export declare class LabTests {
|
|
87
94
|
getAreaInfo(request: Vital.LabTestsGetAreaInfoRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.AreaInfo>;
|
88
95
|
/**
|
89
96
|
* This endpoint returns the lab results for the order.
|
90
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
91
97
|
*/
|
92
|
-
getResultPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<
|
98
|
+
getResultPdf(orderId: string, requestOptions?: LabTests.RequestOptions): Promise<stream.Readable>;
|
93
99
|
/**
|
94
100
|
* Return metadata related to order results, such as lab metadata,
|
95
101
|
* provider and sample dates.
|
@@ -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.7",
|
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.7",
|
114
114
|
},
|
115
115
|
contentType: "application/json",
|
116
116
|
body: yield serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -190,7 +190,7 @@ class LabTests {
|
|
190
190
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
191
191
|
"X-Fern-Language": "JavaScript",
|
192
192
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
193
|
-
"X-Fern-SDK-Version": "3.0.
|
193
|
+
"X-Fern-SDK-Version": "3.0.7",
|
194
194
|
},
|
195
195
|
contentType: "application/json",
|
196
196
|
queryParameters: _queryParams,
|
@@ -256,7 +256,7 @@ class LabTests {
|
|
256
256
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
257
257
|
"X-Fern-Language": "JavaScript",
|
258
258
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
259
|
-
"X-Fern-SDK-Version": "3.0.
|
259
|
+
"X-Fern-SDK-Version": "3.0.7",
|
260
260
|
},
|
261
261
|
contentType: "application/json",
|
262
262
|
queryParameters: _queryParams,
|
@@ -315,7 +315,7 @@ class LabTests {
|
|
315
315
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
316
316
|
"X-Fern-Language": "JavaScript",
|
317
317
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
318
|
-
"X-Fern-SDK-Version": "3.0.
|
318
|
+
"X-Fern-SDK-Version": "3.0.7",
|
319
319
|
},
|
320
320
|
contentType: "application/json",
|
321
321
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -372,7 +372,7 @@ class LabTests {
|
|
372
372
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
373
373
|
"X-Fern-Language": "JavaScript",
|
374
374
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
375
|
-
"X-Fern-SDK-Version": "3.0.
|
375
|
+
"X-Fern-SDK-Version": "3.0.7",
|
376
376
|
},
|
377
377
|
contentType: "application/json",
|
378
378
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -420,7 +420,7 @@ class LabTests {
|
|
420
420
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
421
421
|
"X-Fern-Language": "JavaScript",
|
422
422
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
423
|
-
"X-Fern-SDK-Version": "3.0.
|
423
|
+
"X-Fern-SDK-Version": "3.0.7",
|
424
424
|
},
|
425
425
|
contentType: "application/json",
|
426
426
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -479,7 +479,7 @@ class LabTests {
|
|
479
479
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
480
480
|
"X-Fern-Language": "JavaScript",
|
481
481
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
482
|
-
"X-Fern-SDK-Version": "3.0.
|
482
|
+
"X-Fern-SDK-Version": "3.0.7",
|
483
483
|
},
|
484
484
|
contentType: "application/json",
|
485
485
|
body: yield serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -538,7 +538,7 @@ class LabTests {
|
|
538
538
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
539
539
|
"X-Fern-Language": "JavaScript",
|
540
540
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
541
|
-
"X-Fern-SDK-Version": "3.0.
|
541
|
+
"X-Fern-SDK-Version": "3.0.7",
|
542
542
|
},
|
543
543
|
contentType: "application/json",
|
544
544
|
body: yield serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -583,6 +583,65 @@ class LabTests {
|
|
583
583
|
}
|
584
584
|
});
|
585
585
|
}
|
586
|
+
/**
|
587
|
+
* Request an at-home phlebotomy appointment.
|
588
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
589
|
+
*/
|
590
|
+
requestPhlebotomyAppointment(orderId, request, requestOptions) {
|
591
|
+
var _a;
|
592
|
+
return __awaiter(this, void 0, void 0, function* () {
|
593
|
+
const _response = yield core.fetcher({
|
594
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/request`),
|
595
|
+
method: "POST",
|
596
|
+
headers: {
|
597
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
598
|
+
"X-Fern-Language": "JavaScript",
|
599
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
600
|
+
"X-Fern-SDK-Version": "3.0.7",
|
601
|
+
},
|
602
|
+
contentType: "application/json",
|
603
|
+
body: yield serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
604
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
605
|
+
});
|
606
|
+
if (_response.ok) {
|
607
|
+
return yield serializers.ClientFacingAppointment.parseOrThrow(_response.body, {
|
608
|
+
unrecognizedObjectKeys: "passthrough",
|
609
|
+
allowUnrecognizedUnionMembers: true,
|
610
|
+
allowUnrecognizedEnumValues: true,
|
611
|
+
breadcrumbsPrefix: ["response"],
|
612
|
+
});
|
613
|
+
}
|
614
|
+
if (_response.error.reason === "status-code") {
|
615
|
+
switch (_response.error.statusCode) {
|
616
|
+
case 422:
|
617
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
618
|
+
unrecognizedObjectKeys: "passthrough",
|
619
|
+
allowUnrecognizedUnionMembers: true,
|
620
|
+
allowUnrecognizedEnumValues: true,
|
621
|
+
breadcrumbsPrefix: ["response"],
|
622
|
+
}));
|
623
|
+
default:
|
624
|
+
throw new errors.VitalError({
|
625
|
+
statusCode: _response.error.statusCode,
|
626
|
+
body: _response.error.body,
|
627
|
+
});
|
628
|
+
}
|
629
|
+
}
|
630
|
+
switch (_response.error.reason) {
|
631
|
+
case "non-json":
|
632
|
+
throw new errors.VitalError({
|
633
|
+
statusCode: _response.error.statusCode,
|
634
|
+
body: _response.error.rawBody,
|
635
|
+
});
|
636
|
+
case "timeout":
|
637
|
+
throw new errors.VitalTimeoutError();
|
638
|
+
case "unknown":
|
639
|
+
throw new errors.VitalError({
|
640
|
+
message: _response.error.errorMessage,
|
641
|
+
});
|
642
|
+
}
|
643
|
+
});
|
644
|
+
}
|
586
645
|
/**
|
587
646
|
* Reschedule a previously booked at-home phlebotomy appointment.
|
588
647
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -597,7 +656,7 @@ class LabTests {
|
|
597
656
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
598
657
|
"X-Fern-Language": "JavaScript",
|
599
658
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
600
|
-
"X-Fern-SDK-Version": "3.0.
|
659
|
+
"X-Fern-SDK-Version": "3.0.7",
|
601
660
|
},
|
602
661
|
contentType: "application/json",
|
603
662
|
body: yield serializers.AppointmentRescheduleRequest.jsonOrThrow(request, {
|
@@ -658,7 +717,7 @@ class LabTests {
|
|
658
717
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
659
718
|
"X-Fern-Language": "JavaScript",
|
660
719
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
661
|
-
"X-Fern-SDK-Version": "3.0.
|
720
|
+
"X-Fern-SDK-Version": "3.0.7",
|
662
721
|
},
|
663
722
|
contentType: "application/json",
|
664
723
|
body: yield serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -716,7 +775,7 @@ class LabTests {
|
|
716
775
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
717
776
|
"X-Fern-Language": "JavaScript",
|
718
777
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
719
|
-
"X-Fern-SDK-Version": "3.0.
|
778
|
+
"X-Fern-SDK-Version": "3.0.7",
|
720
779
|
},
|
721
780
|
contentType: "application/json",
|
722
781
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -764,7 +823,7 @@ class LabTests {
|
|
764
823
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
765
824
|
"X-Fern-Language": "JavaScript",
|
766
825
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
767
|
-
"X-Fern-SDK-Version": "3.0.
|
826
|
+
"X-Fern-SDK-Version": "3.0.7",
|
768
827
|
},
|
769
828
|
contentType: "application/json",
|
770
829
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -828,7 +887,7 @@ class LabTests {
|
|
828
887
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
829
888
|
"X-Fern-Language": "JavaScript",
|
830
889
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
831
|
-
"X-Fern-SDK-Version": "3.0.
|
890
|
+
"X-Fern-SDK-Version": "3.0.7",
|
832
891
|
},
|
833
892
|
contentType: "application/json",
|
834
893
|
queryParameters: _queryParams,
|
@@ -875,55 +934,27 @@ class LabTests {
|
|
875
934
|
}
|
876
935
|
/**
|
877
936
|
* This endpoint returns the lab results for the order.
|
878
|
-
* @throws {@link Vital.UnprocessableEntityError}
|
879
937
|
*/
|
880
938
|
getResultPdf(orderId, requestOptions) {
|
881
939
|
var _a;
|
882
940
|
return __awaiter(this, void 0, void 0, function* () {
|
883
|
-
const _response = yield core.
|
941
|
+
const _response = yield core.streamingFetcher({
|
884
942
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/pdf`),
|
885
943
|
method: "GET",
|
886
944
|
headers: {
|
887
945
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
888
946
|
"X-Fern-Language": "JavaScript",
|
889
947
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
890
|
-
"X-Fern-SDK-Version": "3.0.
|
948
|
+
"X-Fern-SDK-Version": "3.0.7",
|
891
949
|
},
|
892
|
-
contentType: "application/json",
|
893
950
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
894
|
-
|
895
|
-
if (_response.ok) {
|
896
|
-
return _response.body;
|
897
|
-
}
|
898
|
-
if (_response.error.reason === "status-code") {
|
899
|
-
switch (_response.error.statusCode) {
|
900
|
-
case 422:
|
901
|
-
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
902
|
-
unrecognizedObjectKeys: "passthrough",
|
903
|
-
allowUnrecognizedUnionMembers: true,
|
904
|
-
allowUnrecognizedEnumValues: true,
|
905
|
-
breadcrumbsPrefix: ["response"],
|
906
|
-
}));
|
907
|
-
default:
|
908
|
-
throw new errors.VitalError({
|
909
|
-
statusCode: _response.error.statusCode,
|
910
|
-
body: _response.error.body,
|
911
|
-
});
|
912
|
-
}
|
913
|
-
}
|
914
|
-
switch (_response.error.reason) {
|
915
|
-
case "non-json":
|
951
|
+
onError: (error) => {
|
916
952
|
throw new errors.VitalError({
|
917
|
-
|
918
|
-
body: _response.error.rawBody,
|
953
|
+
message: error === null || error === void 0 ? void 0 : error.message,
|
919
954
|
});
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
throw new errors.VitalError({
|
924
|
-
message: _response.error.errorMessage,
|
925
|
-
});
|
926
|
-
}
|
955
|
+
},
|
956
|
+
});
|
957
|
+
return _response.data;
|
927
958
|
});
|
928
959
|
}
|
929
960
|
/**
|
@@ -941,7 +972,7 @@ class LabTests {
|
|
941
972
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
942
973
|
"X-Fern-Language": "JavaScript",
|
943
974
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
944
|
-
"X-Fern-SDK-Version": "3.0.
|
975
|
+
"X-Fern-SDK-Version": "3.0.7",
|
945
976
|
},
|
946
977
|
contentType: "application/json",
|
947
978
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -999,7 +1030,7 @@ class LabTests {
|
|
999
1030
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1000
1031
|
"X-Fern-Language": "JavaScript",
|
1001
1032
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1002
|
-
"X-Fern-SDK-Version": "3.0.
|
1033
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1003
1034
|
},
|
1004
1035
|
contentType: "application/json",
|
1005
1036
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1057,7 +1088,7 @@ class LabTests {
|
|
1057
1088
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1058
1089
|
"X-Fern-Language": "JavaScript",
|
1059
1090
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1060
|
-
"X-Fern-SDK-Version": "3.0.
|
1091
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1061
1092
|
},
|
1062
1093
|
contentType: "application/json",
|
1063
1094
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1110,7 +1141,7 @@ class LabTests {
|
|
1110
1141
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1111
1142
|
"X-Fern-Language": "JavaScript",
|
1112
1143
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1113
|
-
"X-Fern-SDK-Version": "3.0.
|
1144
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1114
1145
|
},
|
1115
1146
|
contentType: "application/json",
|
1116
1147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1168,7 +1199,7 @@ class LabTests {
|
|
1168
1199
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1169
1200
|
"X-Fern-Language": "JavaScript",
|
1170
1201
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1171
|
-
"X-Fern-SDK-Version": "3.0.
|
1202
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1172
1203
|
},
|
1173
1204
|
contentType: "application/json",
|
1174
1205
|
body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
|
@@ -1229,7 +1260,7 @@ class LabTests {
|
|
1229
1260
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1230
1261
|
"X-Fern-Language": "JavaScript",
|
1231
1262
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1232
|
-
"X-Fern-SDK-Version": "3.0.
|
1263
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1233
1264
|
},
|
1234
1265
|
contentType: "application/json",
|
1235
1266
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1295,7 +1326,7 @@ class LabTests {
|
|
1295
1326
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1296
1327
|
"X-Fern-Language": "JavaScript",
|
1297
1328
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1298
|
-
"X-Fern-SDK-Version": "3.0.
|
1329
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1299
1330
|
},
|
1300
1331
|
contentType: "application/json",
|
1301
1332
|
queryParameters: _queryParams,
|
@@ -1379,7 +1410,7 @@ class LabTests {
|
|
1379
1410
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1380
1411
|
"X-Fern-Language": "JavaScript",
|
1381
1412
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1382
|
-
"X-Fern-SDK-Version": "3.0.
|
1413
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1383
1414
|
},
|
1384
1415
|
contentType: "application/json",
|
1385
1416
|
queryParameters: _queryParams,
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/**
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
3
|
+
*/
|
4
|
+
import * as Vital from "../../../..";
|
5
|
+
export interface RequestAppointmentRequest {
|
6
|
+
/** At-home phlebotomy appointment address. */
|
7
|
+
address: Vital.UsAddress;
|
8
|
+
provider: Vital.AppointmentProvider;
|
9
|
+
}
|
@@ -2,6 +2,7 @@ export { CreateLabTestRequest } from "./CreateLabTestRequest";
|
|
2
2
|
export { LabTestsGetMarkersRequest } from "./LabTestsGetMarkersRequest";
|
3
3
|
export { LabTestsGetMarkersForLabTestRequest } from "./LabTestsGetMarkersForLabTestRequest";
|
4
4
|
export { AppointmentBookingRequest } from "./AppointmentBookingRequest";
|
5
|
+
export { RequestAppointmentRequest } from "./RequestAppointmentRequest";
|
5
6
|
export { AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest";
|
6
7
|
export { AppointmentCancelRequest } from "./AppointmentCancelRequest";
|
7
8
|
export { LabTestsGetAreaInfoRequest } from "./LabTestsGetAreaInfoRequest";
|
@@ -46,7 +46,7 @@ export declare class Link {
|
|
46
46
|
* Check link token state - can be hit continuously used as heartbeat
|
47
47
|
* @throws {@link Vital.UnprocessableEntityError}
|
48
48
|
*/
|
49
|
-
tokenState(request
|
49
|
+
tokenState(request?: Vital.LinkTokenStateRequest, requestOptions?: Link.RequestOptions): Promise<Record<string, unknown>>;
|
50
50
|
/**
|
51
51
|
* REQUEST_SOURCE: VITAL-LINK
|
52
52
|
* PROVIDER_TYPE: EMAIL-AUTH
|
@@ -65,7 +65,7 @@ export declare class Link {
|
|
65
65
|
* This endpoint generates an OAuth link for oauth provider
|
66
66
|
* @throws {@link Vital.UnprocessableEntityError}
|
67
67
|
*/
|
68
|
-
generateOauthLink(oauthProvider: Vital.OAuthProviders, request
|
68
|
+
generateOauthLink(oauthProvider: Vital.OAuthProviders, request?: Vital.LinkGenerateOauthLinkRequest, requestOptions?: Link.RequestOptions): Promise<Vital.Source>;
|
69
69
|
/**
|
70
70
|
* This connects auth providers that are password based.
|
71
71
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -80,7 +80,7 @@ export declare class Link {
|
|
80
80
|
* GET List of all available providers given the generated link token.
|
81
81
|
* @throws {@link Vital.UnprocessableEntityError}
|
82
82
|
*/
|
83
|
-
getAllProviders(request
|
83
|
+
getAllProviders(request?: Vital.LinkGetAllProvidersRequest, requestOptions?: Link.RequestOptions): Promise<Vital.SourceLink[]>;
|
84
84
|
/**
|
85
85
|
* REQUEST_SOURCE: CUSTOMER
|
86
86
|
* PROVIDER_TYPE: MANUAL-PROVIDER
|