@tryvital/vital-node 3.0.6 → 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.js +2 -2
- package/api/resources/labTests/client/Client.d.ts +5 -0
- package/api/resources/labTests/client/Client.js +82 -23
- 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.js +13 -13
- 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.js +7 -7
- 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/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/UserRefreshSuccessResponse.d.ts +1 -0
- package/api/types/UserSignInTokenResponse.d.ts +1 -2
- package/api/types/index.d.ts +2 -2
- package/api/types/index.js +2 -2
- 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.js +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +5 -0
- package/dist/api/resources/labTests/client/Client.js +82 -23
- package/dist/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +9 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/dist/api/resources/link/client/Client.js +13 -13
- 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.js +7 -7
- 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/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/UserRefreshSuccessResponse.d.ts +1 -0
- package/dist/api/types/UserSignInTokenResponse.d.ts +1 -2
- package/dist/api/types/index.d.ts +2 -2
- package/dist/api/types/index.js +2 -2
- 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/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/{UserSignInTokenResponseSignInToken.js → PhlebotomyProviderInfo.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 +2 -2
- package/dist/serialization/types/index.js +2 -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/{UserSignInToken.js → AppointmentServiceType.js} +2 -5
- package/serialization/types/ClientFacingAppointment.d.ts +3 -3
- package/serialization/types/ClientFacingAppointment.js +3 -3
- 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/{UserSignInTokenResponseSignInToken.js → PhlebotomyProviderInfo.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 +2 -2
- package/serialization/types/index.js +2 -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/labTests/client/requests/RequestAppointmentRequest.js} +0 -0
- /package/api/{types/UserSignInTokenResponseSignInToken.js → resources/user/client/requests/UserRefreshRequest.js} +0 -0
- /package/{dist/api/types/UserSignInToken.js → api/types/PhlebotomyProviderInfo.js} +0 -0
- /package/dist/api/{types/UserSignInTokenResponseSignInToken.js → resources/labTests/client/requests/RequestAppointmentRequest.js} +0 -0
@@ -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,
|
@@ -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,
|
@@ -149,7 +149,7 @@ class Introspect {
|
|
149
149
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
150
150
|
"X-Fern-Language": "JavaScript",
|
151
151
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
152
|
-
"X-Fern-SDK-Version": "3.0.
|
152
|
+
"X-Fern-SDK-Version": "3.0.7",
|
153
153
|
},
|
154
154
|
contentType: "application/json",
|
155
155
|
queryParameters: _queryParams,
|
@@ -60,6 +60,11 @@ export declare class LabTests {
|
|
60
60
|
* @throws {@link Vital.UnprocessableEntityError}
|
61
61
|
*/
|
62
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>;
|
63
68
|
/**
|
64
69
|
* Reschedule a previously booked at-home phlebotomy appointment.
|
65
70
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -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,
|
@@ -886,7 +945,7 @@ class LabTests {
|
|
886
945
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
887
946
|
"X-Fern-Language": "JavaScript",
|
888
947
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
889
|
-
"X-Fern-SDK-Version": "3.0.
|
948
|
+
"X-Fern-SDK-Version": "3.0.7",
|
890
949
|
},
|
891
950
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
892
951
|
onError: (error) => {
|
@@ -913,7 +972,7 @@ class LabTests {
|
|
913
972
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
914
973
|
"X-Fern-Language": "JavaScript",
|
915
974
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
916
|
-
"X-Fern-SDK-Version": "3.0.
|
975
|
+
"X-Fern-SDK-Version": "3.0.7",
|
917
976
|
},
|
918
977
|
contentType: "application/json",
|
919
978
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -971,7 +1030,7 @@ class LabTests {
|
|
971
1030
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
972
1031
|
"X-Fern-Language": "JavaScript",
|
973
1032
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
974
|
-
"X-Fern-SDK-Version": "3.0.
|
1033
|
+
"X-Fern-SDK-Version": "3.0.7",
|
975
1034
|
},
|
976
1035
|
contentType: "application/json",
|
977
1036
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1029,7 +1088,7 @@ class LabTests {
|
|
1029
1088
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1030
1089
|
"X-Fern-Language": "JavaScript",
|
1031
1090
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1032
|
-
"X-Fern-SDK-Version": "3.0.
|
1091
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1033
1092
|
},
|
1034
1093
|
contentType: "application/json",
|
1035
1094
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1082,7 +1141,7 @@ class LabTests {
|
|
1082
1141
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1083
1142
|
"X-Fern-Language": "JavaScript",
|
1084
1143
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1085
|
-
"X-Fern-SDK-Version": "3.0.
|
1144
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1086
1145
|
},
|
1087
1146
|
contentType: "application/json",
|
1088
1147
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1140,7 +1199,7 @@ class LabTests {
|
|
1140
1199
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1141
1200
|
"X-Fern-Language": "JavaScript",
|
1142
1201
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1143
|
-
"X-Fern-SDK-Version": "3.0.
|
1202
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1144
1203
|
},
|
1145
1204
|
contentType: "application/json",
|
1146
1205
|
body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
|
@@ -1201,7 +1260,7 @@ class LabTests {
|
|
1201
1260
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1202
1261
|
"X-Fern-Language": "JavaScript",
|
1203
1262
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1204
|
-
"X-Fern-SDK-Version": "3.0.
|
1263
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1205
1264
|
},
|
1206
1265
|
contentType: "application/json",
|
1207
1266
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1267,7 +1326,7 @@ class LabTests {
|
|
1267
1326
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1268
1327
|
"X-Fern-Language": "JavaScript",
|
1269
1328
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1270
|
-
"X-Fern-SDK-Version": "3.0.
|
1329
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1271
1330
|
},
|
1272
1331
|
contentType: "application/json",
|
1273
1332
|
queryParameters: _queryParams,
|
@@ -1351,7 +1410,7 @@ class LabTests {
|
|
1351
1410
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1352
1411
|
"X-Fern-Language": "JavaScript",
|
1353
1412
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1354
|
-
"X-Fern-SDK-Version": "3.0.
|
1413
|
+
"X-Fern-SDK-Version": "3.0.7",
|
1355
1414
|
},
|
1356
1415
|
contentType: "application/json",
|
1357
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";
|
@@ -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.7",
|
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.7",
|
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.7",
|
207
207
|
},
|
208
208
|
contentType: "application/json",
|
209
209
|
queryParameters: _queryParams,
|
@@ -263,7 +263,7 @@ class Link {
|
|
263
263
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
264
264
|
"X-Fern-Language": "JavaScript",
|
265
265
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
266
|
-
"X-Fern-SDK-Version": "3.0.
|
266
|
+
"X-Fern-SDK-Version": "3.0.7",
|
267
267
|
},
|
268
268
|
contentType: "application/json",
|
269
269
|
body: yield serializers.BeginLinkTokenRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -324,7 +324,7 @@ class Link {
|
|
324
324
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
325
325
|
"X-Fern-Language": "JavaScript",
|
326
326
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
327
|
-
"X-Fern-SDK-Version": "3.0.
|
327
|
+
"X-Fern-SDK-Version": "3.0.7",
|
328
328
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
329
329
|
},
|
330
330
|
contentType: "application/json",
|
@@ -386,7 +386,7 @@ class Link {
|
|
386
386
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
387
387
|
"X-Fern-Language": "JavaScript",
|
388
388
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
389
|
-
"X-Fern-SDK-Version": "3.0.
|
389
|
+
"X-Fern-SDK-Version": "3.0.7",
|
390
390
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
391
391
|
},
|
392
392
|
contentType: "application/json",
|
@@ -449,7 +449,7 @@ class Link {
|
|
449
449
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
450
450
|
"X-Fern-Language": "JavaScript",
|
451
451
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
452
|
-
"X-Fern-SDK-Version": "3.0.
|
452
|
+
"X-Fern-SDK-Version": "3.0.7",
|
453
453
|
"x-vital-link-client-region": vitalLinkClientRegion != null ? vitalLinkClientRegion : undefined,
|
454
454
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
455
455
|
},
|
@@ -511,7 +511,7 @@ class Link {
|
|
511
511
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
512
512
|
"X-Fern-Language": "JavaScript",
|
513
513
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
514
|
-
"X-Fern-SDK-Version": "3.0.
|
514
|
+
"X-Fern-SDK-Version": "3.0.7",
|
515
515
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
516
516
|
},
|
517
517
|
contentType: "application/json",
|
@@ -571,7 +571,7 @@ class Link {
|
|
571
571
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
572
572
|
"X-Fern-Language": "JavaScript",
|
573
573
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
574
|
-
"X-Fern-SDK-Version": "3.0.
|
574
|
+
"X-Fern-SDK-Version": "3.0.7",
|
575
575
|
"x-vital-link-client-region": vitalLinkClientRegion != null ? vitalLinkClientRegion : undefined,
|
576
576
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
577
577
|
},
|
@@ -633,7 +633,7 @@ class Link {
|
|
633
633
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
634
634
|
"X-Fern-Language": "JavaScript",
|
635
635
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
636
|
-
"X-Fern-SDK-Version": "3.0.
|
636
|
+
"X-Fern-SDK-Version": "3.0.7",
|
637
637
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
638
638
|
},
|
639
639
|
contentType: "application/json",
|
@@ -694,7 +694,7 @@ class Link {
|
|
694
694
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
695
695
|
"X-Fern-Language": "JavaScript",
|
696
696
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
697
|
-
"X-Fern-SDK-Version": "3.0.
|
697
|
+
"X-Fern-SDK-Version": "3.0.7",
|
698
698
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
699
699
|
},
|
700
700
|
contentType: "application/json",
|
@@ -755,7 +755,7 @@ class Link {
|
|
755
755
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
756
756
|
"X-Fern-Language": "JavaScript",
|
757
757
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
758
|
-
"X-Fern-SDK-Version": "3.0.
|
758
|
+
"X-Fern-SDK-Version": "3.0.7",
|
759
759
|
},
|
760
760
|
contentType: "application/json",
|
761
761
|
body: yield serializers.ManualConnectionData.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -814,7 +814,7 @@ class Link {
|
|
814
814
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
815
815
|
"X-Fern-Language": "JavaScript",
|
816
816
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
817
|
-
"X-Fern-SDK-Version": "3.0.
|
817
|
+
"X-Fern-SDK-Version": "3.0.7",
|
818
818
|
},
|
819
819
|
contentType: "application/json",
|
820
820
|
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.7",
|
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.7",
|
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.7",
|
137
137
|
},
|
138
138
|
contentType: "application/json",
|
139
139
|
queryParameters: _queryParams,
|
@@ -61,7 +61,7 @@ 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.7",
|
65
65
|
},
|
66
66
|
contentType: "application/json",
|
67
67
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -73,7 +73,7 @@ class Sleep {
|
|
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 Sleep {
|
|
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,
|
@@ -209,7 +209,7 @@ class Sleep {
|
|
209
209
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
210
210
|
"X-Fern-Language": "JavaScript",
|
211
211
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
212
|
-
"X-Fern-SDK-Version": "3.0.
|
212
|
+
"X-Fern-SDK-Version": "3.0.7",
|
213
213
|
},
|
214
214
|
contentType: "application/json",
|
215
215
|
queryParameters: _queryParams,
|
@@ -268,7 +268,7 @@ class Sleep {
|
|
268
268
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
269
269
|
"X-Fern-Language": "JavaScript",
|
270
270
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
271
|
-
"X-Fern-SDK-Version": "3.0.
|
271
|
+
"X-Fern-SDK-Version": "3.0.7",
|
272
272
|
},
|
273
273
|
contentType: "application/json",
|
274
274
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -65,7 +65,7 @@ class Team {
|
|
65
65
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
66
66
|
"X-Fern-Language": "JavaScript",
|
67
67
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
68
|
-
"X-Fern-SDK-Version": "3.0.
|
68
|
+
"X-Fern-SDK-Version": "3.0.7",
|
69
69
|
"x-vital-link-token": vitalLinkToken != null ? vitalLinkToken : undefined,
|
70
70
|
},
|
71
71
|
contentType: "application/json",
|
@@ -124,7 +124,7 @@ class Team {
|
|
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
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -187,7 +187,7 @@ class Team {
|
|
187
187
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
188
188
|
"X-Fern-Language": "JavaScript",
|
189
189
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
190
|
-
"X-Fern-SDK-Version": "3.0.
|
190
|
+
"X-Fern-SDK-Version": "3.0.7",
|
191
191
|
},
|
192
192
|
contentType: "application/json",
|
193
193
|
queryParameters: _queryParams,
|
@@ -242,7 +242,7 @@ class Team {
|
|
242
242
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
243
243
|
"X-Fern-Language": "JavaScript",
|
244
244
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
245
|
-
"X-Fern-SDK-Version": "3.0.
|
245
|
+
"X-Fern-SDK-Version": "3.0.7",
|
246
246
|
},
|
247
247
|
contentType: "application/json",
|
248
248
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -295,7 +295,7 @@ class Team {
|
|
295
295
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
296
296
|
"X-Fern-Language": "JavaScript",
|
297
297
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
298
|
-
"X-Fern-SDK-Version": "3.0.
|
298
|
+
"X-Fern-SDK-Version": "3.0.7",
|
299
299
|
},
|
300
300
|
contentType: "application/json",
|
301
301
|
queryParameters: _queryParams,
|
@@ -357,7 +357,7 @@ class Team {
|
|
357
357
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
358
358
|
"X-Fern-Language": "JavaScript",
|
359
359
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
360
|
-
"X-Fern-SDK-Version": "3.0.
|
360
|
+
"X-Fern-SDK-Version": "3.0.7",
|
361
361
|
},
|
362
362
|
contentType: "application/json",
|
363
363
|
queryParameters: _queryParams,
|
@@ -415,7 +415,7 @@ class Team {
|
|
415
415
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
416
416
|
"X-Fern-Language": "JavaScript",
|
417
417
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
418
|
-
"X-Fern-SDK-Version": "3.0.
|
418
|
+
"X-Fern-SDK-Version": "3.0.7",
|
419
419
|
},
|
420
420
|
contentType: "application/json",
|
421
421
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -62,7 +62,7 @@ class Testkit {
|
|
62
62
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
63
63
|
"X-Fern-Language": "JavaScript",
|
64
64
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
65
|
-
"X-Fern-SDK-Version": "3.0.
|
65
|
+
"X-Fern-SDK-Version": "3.0.7",
|
66
66
|
},
|
67
67
|
contentType: "application/json",
|
68
68
|
body: yield serializers.RegisterTestkitRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -121,7 +121,7 @@ class Testkit {
|
|
121
121
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
122
122
|
"X-Fern-Language": "JavaScript",
|
123
123
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
124
|
-
"X-Fern-SDK-Version": "3.0.
|
124
|
+
"X-Fern-SDK-Version": "3.0.7",
|
125
125
|
},
|
126
126
|
contentType: "application/json",
|
127
127
|
body: yield serializers.CreateRegistrableTestkitOrderRequest.jsonOrThrow(request, {
|
@@ -66,5 +66,5 @@ export declare class User {
|
|
66
66
|
* @throws {@link Vital.BadRequestError}
|
67
67
|
* @throws {@link Vital.UnprocessableEntityError}
|
68
68
|
*/
|
69
|
-
refresh(userId: string, requestOptions?: User.RequestOptions): Promise<Vital.UserRefreshSuccessResponse>;
|
69
|
+
refresh(userId: string, request?: Vital.UserRefreshRequest, requestOptions?: User.RequestOptions): Promise<Vital.UserRefreshSuccessResponse>;
|
70
70
|
}
|