@tryvital/vital-node 3.0.1 → 3.0.3
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 +3 -0
- package/Client.js +11 -6
- 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 +2 -0
- package/api/resources/index.js +3 -1
- package/api/resources/insurance/client/Client.js +2 -2
- package/api/resources/introspect/client/Client.d.ts +23 -0
- package/api/resources/introspect/client/Client.js +126 -0
- package/api/resources/introspect/client/index.d.ts +1 -0
- package/api/resources/introspect/client/index.js +17 -0
- package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +10 -0
- package/api/resources/introspect/client/requests/index.d.ts +1 -0
- package/api/resources/introspect/client/requests/index.js +2 -0
- package/api/resources/introspect/index.d.ts +1 -0
- package/api/resources/introspect/index.js +17 -0
- package/api/resources/labTests/client/Client.d.ts +7 -2
- package/api/resources/labTests/client/Client.js +96 -25
- package/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +7 -0
- package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +8 -0
- package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.js +5 -0
- package/api/resources/labTests/client/requests/index.d.ts +2 -0
- package/api/resources/link/client/Client.js +14 -14
- 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 +4 -0
- package/api/resources/team/client/Client.js +63 -6
- package/api/resources/testkit/client/Client.js +2 -2
- package/api/resources/user/client/Client.d.ts +2 -2
- package/api/resources/user/client/Client.js +23 -23
- package/api/resources/vitals/client/Client.js +23 -23
- package/api/resources/workouts/client/Client.js +3 -3
- package/api/types/ActivityV2InDb.d.ts +1 -1
- package/api/types/AttemptStatus.d.ts +11 -0
- package/api/types/AttemptStatus.js +10 -0
- package/api/types/BodyV2InDb.d.ts +1 -1
- package/api/types/ClientFacingLabTest.d.ts +2 -0
- package/api/types/ClientFacingOrder.d.ts +1 -1
- package/api/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +1 -1
- package/api/types/ClientFacingPhysician.js +5 -0
- package/api/types/ClientFacingTeam.d.ts +1 -0
- package/api/types/DelegatedFlowType.d.ts +12 -0
- package/api/types/DelegatedFlowType.js +11 -0
- package/api/types/GetMarkersResponse.d.ts +4 -3
- package/api/types/GetOrdersResponse.d.ts +3 -3
- package/api/types/LabTestStatus.d.ts +12 -0
- package/api/types/LabTestStatus.js +11 -0
- package/api/types/LastAttempt.d.ts +8 -0
- package/api/types/LastAttempt.js +5 -0
- package/api/types/SingleResourceStatistics.d.ts +10 -0
- package/api/types/SingleResourceStatistics.js +5 -0
- package/api/types/SingleUserResourceResponse.d.ts +6 -0
- package/api/types/SingleUserResourceResponse.js +5 -0
- package/api/types/SleepV2InDb.d.ts +1 -1
- package/api/types/UserResourcesResponse.d.ts +8 -0
- package/api/types/UserResourcesResponse.js +5 -0
- package/api/types/WorkoutV2InDb.d.ts +1 -1
- package/api/types/index.d.ts +8 -1
- package/api/types/index.js +8 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +11 -6
- 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 +2 -0
- package/dist/api/resources/index.js +3 -1
- package/dist/api/resources/insurance/client/Client.js +2 -2
- package/dist/api/resources/introspect/client/Client.d.ts +23 -0
- package/dist/api/resources/introspect/client/Client.js +126 -0
- package/dist/api/resources/introspect/client/index.d.ts +1 -0
- package/dist/api/resources/introspect/client/index.js +17 -0
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +10 -0
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.js +5 -0
- package/dist/api/resources/introspect/client/requests/index.d.ts +1 -0
- package/dist/api/resources/introspect/client/requests/index.js +2 -0
- package/dist/api/resources/introspect/index.d.ts +1 -0
- package/dist/api/resources/introspect/index.js +17 -0
- package/dist/api/resources/labTests/client/Client.d.ts +7 -2
- package/dist/api/resources/labTests/client/Client.js +96 -25
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +7 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +8 -0
- package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +2 -0
- package/dist/api/resources/link/client/Client.js +14 -14
- 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 +4 -0
- package/dist/api/resources/team/client/Client.js +63 -6
- package/dist/api/resources/testkit/client/Client.js +2 -2
- package/dist/api/resources/user/client/Client.d.ts +2 -2
- package/dist/api/resources/user/client/Client.js +23 -23
- package/dist/api/resources/vitals/client/Client.js +23 -23
- package/dist/api/resources/workouts/client/Client.js +3 -3
- package/dist/api/types/ActivityV2InDb.d.ts +1 -1
- package/dist/api/types/AttemptStatus.d.ts +11 -0
- package/dist/api/types/AttemptStatus.js +10 -0
- package/dist/api/types/BodyV2InDb.d.ts +1 -1
- package/dist/api/types/ClientFacingLabTest.d.ts +2 -0
- package/dist/api/types/ClientFacingOrder.d.ts +1 -1
- package/dist/api/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +1 -1
- package/dist/api/types/ClientFacingPhysician.js +5 -0
- package/dist/api/types/ClientFacingTeam.d.ts +1 -0
- package/dist/api/types/DelegatedFlowType.d.ts +12 -0
- package/dist/api/types/DelegatedFlowType.js +11 -0
- package/dist/api/types/GetMarkersResponse.d.ts +4 -3
- package/dist/api/types/GetOrdersResponse.d.ts +3 -3
- package/dist/api/types/LabTestStatus.d.ts +12 -0
- package/dist/api/types/LabTestStatus.js +11 -0
- package/dist/api/types/LastAttempt.d.ts +8 -0
- package/dist/api/types/LastAttempt.js +5 -0
- package/dist/api/types/SingleResourceStatistics.d.ts +10 -0
- package/dist/api/types/SingleResourceStatistics.js +5 -0
- package/dist/api/types/SingleUserResourceResponse.d.ts +6 -0
- package/dist/api/types/SingleUserResourceResponse.js +5 -0
- package/dist/api/types/SleepV2InDb.d.ts +1 -1
- package/dist/api/types/UserResourcesResponse.d.ts +8 -0
- package/dist/api/types/UserResourcesResponse.js +5 -0
- package/dist/api/types/WorkoutV2InDb.d.ts +1 -1
- package/dist/api/types/index.d.ts +8 -1
- package/dist/api/types/index.js +8 -1
- package/dist/serialization/resources/labTests/client/index.d.ts +0 -1
- package/dist/serialization/resources/labTests/client/index.js +1 -2
- package/dist/serialization/resources/{labTests/client/getMarkersForLabTest.d.ts → team/client/getPhysicians.d.ts} +2 -2
- package/dist/serialization/resources/{labTests/client/getMarkersForLabTest.js → team/client/getPhysicians.js} +1 -1
- package/dist/serialization/resources/team/client/index.d.ts +1 -0
- package/dist/serialization/resources/team/client/index.js +2 -1
- package/dist/serialization/types/ActivityV2InDb.d.ts +1 -1
- package/dist/serialization/types/ActivityV2InDb.js +1 -1
- package/dist/serialization/types/AttemptStatus.d.ts +10 -0
- package/dist/serialization/types/AttemptStatus.js +31 -0
- package/dist/serialization/types/BodyV2InDb.d.ts +1 -1
- package/dist/serialization/types/BodyV2InDb.js +1 -1
- package/dist/serialization/types/ClientFacingLabTest.d.ts +1 -0
- package/dist/serialization/types/ClientFacingLabTest.js +1 -0
- package/dist/serialization/types/ClientFacingOrder.d.ts +1 -1
- package/dist/serialization/types/ClientFacingOrder.js +1 -1
- package/dist/serialization/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +2 -2
- package/dist/serialization/types/{PhysicianClientFacing.js → ClientFacingPhysician.js} +2 -2
- package/dist/serialization/types/ClientFacingTeam.d.ts +1 -0
- package/dist/serialization/types/ClientFacingTeam.js +1 -0
- package/dist/serialization/types/DelegatedFlowType.d.ts +10 -0
- package/dist/serialization/types/DelegatedFlowType.js +35 -0
- package/dist/serialization/types/GetMarkersResponse.d.ts +4 -3
- package/dist/serialization/types/GetMarkersResponse.js +4 -3
- package/dist/serialization/types/GetOrdersResponse.d.ts +3 -3
- package/dist/serialization/types/GetOrdersResponse.js +3 -3
- package/dist/serialization/types/LabTestStatus.d.ts +10 -0
- package/dist/serialization/types/LabTestStatus.js +31 -0
- package/dist/serialization/types/LastAttempt.d.ts +13 -0
- package/dist/serialization/types/LastAttempt.js +43 -0
- package/dist/serialization/types/SingleResourceStatistics.d.ts +15 -0
- package/dist/serialization/types/SingleResourceStatistics.js +45 -0
- package/dist/serialization/types/SingleUserResourceResponse.d.ts +12 -0
- package/dist/serialization/types/SingleUserResourceResponse.js +33 -0
- package/dist/serialization/types/SleepV2InDb.d.ts +1 -1
- package/dist/serialization/types/SleepV2InDb.js +1 -1
- package/dist/serialization/types/UserResourcesResponse.d.ts +13 -0
- package/dist/serialization/types/UserResourcesResponse.js +43 -0
- package/dist/serialization/types/WorkoutV2InDb.d.ts +1 -1
- package/dist/serialization/types/WorkoutV2InDb.js +1 -1
- package/dist/serialization/types/index.d.ts +8 -1
- package/dist/serialization/types/index.js +8 -1
- package/package.json +1 -1
- package/serialization/resources/labTests/client/index.d.ts +0 -1
- package/serialization/resources/labTests/client/index.js +1 -2
- package/serialization/resources/{labTests/client/getMarkersForLabTest.d.ts → team/client/getPhysicians.d.ts} +2 -2
- package/serialization/resources/{labTests/client/getMarkersForLabTest.js → team/client/getPhysicians.js} +1 -1
- package/serialization/resources/team/client/index.d.ts +1 -0
- package/serialization/resources/team/client/index.js +2 -1
- package/serialization/types/ActivityV2InDb.d.ts +1 -1
- package/serialization/types/ActivityV2InDb.js +1 -1
- package/serialization/types/AttemptStatus.d.ts +10 -0
- package/serialization/types/AttemptStatus.js +31 -0
- package/serialization/types/BodyV2InDb.d.ts +1 -1
- package/serialization/types/BodyV2InDb.js +1 -1
- package/serialization/types/ClientFacingLabTest.d.ts +1 -0
- package/serialization/types/ClientFacingLabTest.js +1 -0
- package/serialization/types/ClientFacingOrder.d.ts +1 -1
- package/serialization/types/ClientFacingOrder.js +1 -1
- package/serialization/types/{PhysicianClientFacing.d.ts → ClientFacingPhysician.d.ts} +2 -2
- package/serialization/types/{PhysicianClientFacing.js → ClientFacingPhysician.js} +2 -2
- package/serialization/types/ClientFacingTeam.d.ts +1 -0
- package/serialization/types/ClientFacingTeam.js +1 -0
- package/serialization/types/DelegatedFlowType.d.ts +10 -0
- package/serialization/types/DelegatedFlowType.js +35 -0
- package/serialization/types/GetMarkersResponse.d.ts +4 -3
- package/serialization/types/GetMarkersResponse.js +4 -3
- package/serialization/types/GetOrdersResponse.d.ts +3 -3
- package/serialization/types/GetOrdersResponse.js +3 -3
- package/serialization/types/LabTestStatus.d.ts +10 -0
- package/serialization/types/LabTestStatus.js +31 -0
- package/serialization/types/LastAttempt.d.ts +13 -0
- package/serialization/types/LastAttempt.js +43 -0
- package/serialization/types/SingleResourceStatistics.d.ts +15 -0
- package/serialization/types/SingleResourceStatistics.js +45 -0
- package/serialization/types/SingleUserResourceResponse.d.ts +12 -0
- package/serialization/types/SingleUserResourceResponse.js +33 -0
- package/serialization/types/SleepV2InDb.d.ts +1 -1
- package/serialization/types/SleepV2InDb.js +1 -1
- package/serialization/types/UserResourcesResponse.d.ts +13 -0
- package/serialization/types/UserResourcesResponse.js +43 -0
- package/serialization/types/WorkoutV2InDb.d.ts +1 -1
- package/serialization/types/WorkoutV2InDb.js +1 -1
- package/serialization/types/index.d.ts +8 -1
- package/serialization/types/index.js +8 -1
- /package/api/{types/PhysicianClientFacing.js → resources/introspect/client/requests/IntrospectGetUserResourcesRequest.js} +0 -0
- /package/{dist/api/types/PhysicianClientFacing.js → api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.js} +0 -0
@@ -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.3",
|
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.3",
|
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.3",
|
187
187
|
},
|
188
188
|
contentType: "application/json",
|
189
189
|
queryParameters: _queryParams,
|
@@ -231,9 +231,17 @@ class LabTests {
|
|
231
231
|
/**
|
232
232
|
* @throws {@link Vital.UnprocessableEntityError}
|
233
233
|
*/
|
234
|
-
getMarkersForLabTest(labTestId, requestOptions) {
|
234
|
+
getMarkersForLabTest(labTestId, request = {}, requestOptions) {
|
235
235
|
var _a;
|
236
236
|
return __awaiter(this, void 0, void 0, function* () {
|
237
|
+
const { page, size } = request;
|
238
|
+
const _queryParams = new url_search_params_1.default();
|
239
|
+
if (page != null) {
|
240
|
+
_queryParams.append("page", page.toString());
|
241
|
+
}
|
242
|
+
if (size != null) {
|
243
|
+
_queryParams.append("size", size.toString());
|
244
|
+
}
|
237
245
|
const _response = yield core.fetcher({
|
238
246
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labTestId}/markers`),
|
239
247
|
method: "GET",
|
@@ -241,13 +249,14 @@ class LabTests {
|
|
241
249
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
242
250
|
"X-Fern-Language": "JavaScript",
|
243
251
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
244
|
-
"X-Fern-SDK-Version": "3.0.
|
252
|
+
"X-Fern-SDK-Version": "3.0.3",
|
245
253
|
},
|
246
254
|
contentType: "application/json",
|
255
|
+
queryParameters: _queryParams,
|
247
256
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
248
257
|
});
|
249
258
|
if (_response.ok) {
|
250
|
-
return yield serializers.
|
259
|
+
return yield serializers.GetMarkersResponse.parseOrThrow(_response.body, {
|
251
260
|
unrecognizedObjectKeys: "passthrough",
|
252
261
|
allowUnrecognizedUnionMembers: true,
|
253
262
|
allowUnrecognizedEnumValues: true,
|
@@ -299,7 +308,7 @@ class LabTests {
|
|
299
308
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
300
309
|
"X-Fern-Language": "JavaScript",
|
301
310
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
302
|
-
"X-Fern-SDK-Version": "3.0.
|
311
|
+
"X-Fern-SDK-Version": "3.0.3",
|
303
312
|
},
|
304
313
|
contentType: "application/json",
|
305
314
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -356,7 +365,7 @@ class LabTests {
|
|
356
365
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
357
366
|
"X-Fern-Language": "JavaScript",
|
358
367
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
359
|
-
"X-Fern-SDK-Version": "3.0.
|
368
|
+
"X-Fern-SDK-Version": "3.0.3",
|
360
369
|
},
|
361
370
|
contentType: "application/json",
|
362
371
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -404,7 +413,7 @@ class LabTests {
|
|
404
413
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
405
414
|
"X-Fern-Language": "JavaScript",
|
406
415
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
407
|
-
"X-Fern-SDK-Version": "3.0.
|
416
|
+
"X-Fern-SDK-Version": "3.0.3",
|
408
417
|
},
|
409
418
|
contentType: "application/json",
|
410
419
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -463,7 +472,7 @@ class LabTests {
|
|
463
472
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
464
473
|
"X-Fern-Language": "JavaScript",
|
465
474
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
466
|
-
"X-Fern-SDK-Version": "3.0.
|
475
|
+
"X-Fern-SDK-Version": "3.0.3",
|
467
476
|
},
|
468
477
|
contentType: "application/json",
|
469
478
|
body: yield serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -522,7 +531,7 @@ class LabTests {
|
|
522
531
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
523
532
|
"X-Fern-Language": "JavaScript",
|
524
533
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
525
|
-
"X-Fern-SDK-Version": "3.0.
|
534
|
+
"X-Fern-SDK-Version": "3.0.3",
|
526
535
|
},
|
527
536
|
contentType: "application/json",
|
528
537
|
body: yield serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -581,7 +590,7 @@ class LabTests {
|
|
581
590
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
582
591
|
"X-Fern-Language": "JavaScript",
|
583
592
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
584
|
-
"X-Fern-SDK-Version": "3.0.
|
593
|
+
"X-Fern-SDK-Version": "3.0.3",
|
585
594
|
},
|
586
595
|
contentType: "application/json",
|
587
596
|
body: yield serializers.AppointmentRescheduleRequest.jsonOrThrow(request, {
|
@@ -632,7 +641,7 @@ class LabTests {
|
|
632
641
|
* Cancel a previously booked at-home phlebotomy appointment.
|
633
642
|
* @throws {@link Vital.UnprocessableEntityError}
|
634
643
|
*/
|
635
|
-
|
644
|
+
cancelPhlebotomyAppointment(orderId, request, requestOptions) {
|
636
645
|
var _a;
|
637
646
|
return __awaiter(this, void 0, void 0, function* () {
|
638
647
|
const _response = yield core.fetcher({
|
@@ -642,7 +651,7 @@ class LabTests {
|
|
642
651
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
643
652
|
"X-Fern-Language": "JavaScript",
|
644
653
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
645
|
-
"X-Fern-SDK-Version": "3.0.
|
654
|
+
"X-Fern-SDK-Version": "3.0.3",
|
646
655
|
},
|
647
656
|
contentType: "application/json",
|
648
657
|
body: yield serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -700,7 +709,7 @@ class LabTests {
|
|
700
709
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
701
710
|
"X-Fern-Language": "JavaScript",
|
702
711
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
703
|
-
"X-Fern-SDK-Version": "3.0.
|
712
|
+
"X-Fern-SDK-Version": "3.0.3",
|
704
713
|
},
|
705
714
|
contentType: "application/json",
|
706
715
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -748,7 +757,7 @@ class LabTests {
|
|
748
757
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
749
758
|
"X-Fern-Language": "JavaScript",
|
750
759
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
751
|
-
"X-Fern-SDK-Version": "3.0.
|
760
|
+
"X-Fern-SDK-Version": "3.0.3",
|
752
761
|
},
|
753
762
|
contentType: "application/json",
|
754
763
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -812,7 +821,7 @@ class LabTests {
|
|
812
821
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
813
822
|
"X-Fern-Language": "JavaScript",
|
814
823
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
815
|
-
"X-Fern-SDK-Version": "3.0.
|
824
|
+
"X-Fern-SDK-Version": "3.0.3",
|
816
825
|
},
|
817
826
|
contentType: "application/json",
|
818
827
|
queryParameters: _queryParams,
|
@@ -871,7 +880,7 @@ class LabTests {
|
|
871
880
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
872
881
|
"X-Fern-Language": "JavaScript",
|
873
882
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
874
|
-
"X-Fern-SDK-Version": "3.0.
|
883
|
+
"X-Fern-SDK-Version": "3.0.3",
|
875
884
|
},
|
876
885
|
contentType: "application/json",
|
877
886
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -925,7 +934,7 @@ class LabTests {
|
|
925
934
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
926
935
|
"X-Fern-Language": "JavaScript",
|
927
936
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
928
|
-
"X-Fern-SDK-Version": "3.0.
|
937
|
+
"X-Fern-SDK-Version": "3.0.3",
|
929
938
|
},
|
930
939
|
contentType: "application/json",
|
931
940
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -983,7 +992,7 @@ class LabTests {
|
|
983
992
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
984
993
|
"X-Fern-Language": "JavaScript",
|
985
994
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
986
|
-
"X-Fern-SDK-Version": "3.0.
|
995
|
+
"X-Fern-SDK-Version": "3.0.3",
|
987
996
|
},
|
988
997
|
contentType: "application/json",
|
989
998
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1041,7 +1050,7 @@ class LabTests {
|
|
1041
1050
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1042
1051
|
"X-Fern-Language": "JavaScript",
|
1043
1052
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1044
|
-
"X-Fern-SDK-Version": "3.0.
|
1053
|
+
"X-Fern-SDK-Version": "3.0.3",
|
1045
1054
|
},
|
1046
1055
|
contentType: "application/json",
|
1047
1056
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1094,7 +1103,7 @@ class LabTests {
|
|
1094
1103
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1095
1104
|
"X-Fern-Language": "JavaScript",
|
1096
1105
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1097
|
-
"X-Fern-SDK-Version": "3.0.
|
1106
|
+
"X-Fern-SDK-Version": "3.0.3",
|
1098
1107
|
},
|
1099
1108
|
contentType: "application/json",
|
1100
1109
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1152,7 +1161,7 @@ class LabTests {
|
|
1152
1161
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1153
1162
|
"X-Fern-Language": "JavaScript",
|
1154
1163
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1155
|
-
"X-Fern-SDK-Version": "3.0.
|
1164
|
+
"X-Fern-SDK-Version": "3.0.3",
|
1156
1165
|
},
|
1157
1166
|
contentType: "application/json",
|
1158
1167
|
body: yield serializers.CreateOrderRequestCompatible.jsonOrThrow(request, {
|
@@ -1213,7 +1222,7 @@ class LabTests {
|
|
1213
1222
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1214
1223
|
"X-Fern-Language": "JavaScript",
|
1215
1224
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1216
|
-
"X-Fern-SDK-Version": "3.0.
|
1225
|
+
"X-Fern-SDK-Version": "3.0.3",
|
1217
1226
|
},
|
1218
1227
|
contentType: "application/json",
|
1219
1228
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -1257,6 +1266,68 @@ class LabTests {
|
|
1257
1266
|
}
|
1258
1267
|
});
|
1259
1268
|
}
|
1269
|
+
/**
|
1270
|
+
* Get available test kits.
|
1271
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1272
|
+
*/
|
1273
|
+
simulateOrderProcess(orderId, request = {}, requestOptions) {
|
1274
|
+
var _a;
|
1275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1276
|
+
const { finalStatus, delay } = request;
|
1277
|
+
const _queryParams = new url_search_params_1.default();
|
1278
|
+
if (finalStatus != null) {
|
1279
|
+
_queryParams.append("final_status", finalStatus);
|
1280
|
+
}
|
1281
|
+
if (delay != null) {
|
1282
|
+
_queryParams.append("delay", delay.toString());
|
1283
|
+
}
|
1284
|
+
const _response = yield core.fetcher({
|
1285
|
+
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}/test`),
|
1286
|
+
method: "POST",
|
1287
|
+
headers: {
|
1288
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1289
|
+
"X-Fern-Language": "JavaScript",
|
1290
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1291
|
+
"X-Fern-SDK-Version": "3.0.3",
|
1292
|
+
},
|
1293
|
+
contentType: "application/json",
|
1294
|
+
queryParameters: _queryParams,
|
1295
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1296
|
+
});
|
1297
|
+
if (_response.ok) {
|
1298
|
+
return _response.body;
|
1299
|
+
}
|
1300
|
+
if (_response.error.reason === "status-code") {
|
1301
|
+
switch (_response.error.statusCode) {
|
1302
|
+
case 422:
|
1303
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1304
|
+
unrecognizedObjectKeys: "passthrough",
|
1305
|
+
allowUnrecognizedUnionMembers: true,
|
1306
|
+
allowUnrecognizedEnumValues: true,
|
1307
|
+
breadcrumbsPrefix: ["response"],
|
1308
|
+
}));
|
1309
|
+
default:
|
1310
|
+
throw new errors.VitalError({
|
1311
|
+
statusCode: _response.error.statusCode,
|
1312
|
+
body: _response.error.body,
|
1313
|
+
});
|
1314
|
+
}
|
1315
|
+
}
|
1316
|
+
switch (_response.error.reason) {
|
1317
|
+
case "non-json":
|
1318
|
+
throw new errors.VitalError({
|
1319
|
+
statusCode: _response.error.statusCode,
|
1320
|
+
body: _response.error.rawBody,
|
1321
|
+
});
|
1322
|
+
case "timeout":
|
1323
|
+
throw new errors.VitalTimeoutError();
|
1324
|
+
case "unknown":
|
1325
|
+
throw new errors.VitalError({
|
1326
|
+
message: _response.error.errorMessage,
|
1327
|
+
});
|
1328
|
+
}
|
1329
|
+
});
|
1330
|
+
}
|
1260
1331
|
/**
|
1261
1332
|
* GET many orders with filters.
|
1262
1333
|
* @throws {@link Vital.UnprocessableEntityError}
|
@@ -1301,7 +1372,7 @@ class LabTests {
|
|
1301
1372
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1302
1373
|
"X-Fern-Language": "JavaScript",
|
1303
1374
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1304
|
-
"X-Fern-SDK-Version": "3.0.
|
1375
|
+
"X-Fern-SDK-Version": "3.0.3",
|
1305
1376
|
},
|
1306
1377
|
contentType: "application/json",
|
1307
1378
|
queryParameters: _queryParams,
|
@@ -1,8 +1,10 @@
|
|
1
1
|
export { CreateLabTestRequest } from "./CreateLabTestRequest";
|
2
2
|
export { LabTestsGetMarkersRequest } from "./LabTestsGetMarkersRequest";
|
3
|
+
export { LabTestsGetMarkersForLabTestRequest } from "./LabTestsGetMarkersForLabTestRequest";
|
3
4
|
export { AppointmentBookingRequest } from "./AppointmentBookingRequest";
|
4
5
|
export { AppointmentRescheduleRequest } from "./AppointmentRescheduleRequest";
|
5
6
|
export { AppointmentCancelRequest } from "./AppointmentCancelRequest";
|
6
7
|
export { LabTestsGetAreaInfoRequest } from "./LabTestsGetAreaInfoRequest";
|
7
8
|
export { CreateOrderRequestCompatible } from "./CreateOrderRequestCompatible";
|
9
|
+
export { LabTestsSimulateOrderProcessRequest } from "./LabTestsSimulateOrderProcessRequest";
|
8
10
|
export { LabTestsGetOrdersRequest } from "./LabTestsGetOrdersRequest";
|
@@ -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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
679
679
|
},
|
680
680
|
contentType: "application/json",
|
681
681
|
body: yield serializers.EmailProviderAuthLink.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
@@ -733,7 +733,7 @@ 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.3",
|
737
737
|
},
|
738
738
|
contentType: "application/json",
|
739
739
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
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.3",
|
272
272
|
},
|
273
273
|
contentType: "application/json",
|
274
274
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
@@ -41,4 +41,8 @@ export declare class Team {
|
|
41
41
|
* @throws {@link Vital.UnprocessableEntityError}
|
42
42
|
*/
|
43
43
|
updateSourcePriorities(request: Vital.TeamUpdateSourcePrioritiesRequest, requestOptions?: Team.RequestOptions): Promise<Record<string, unknown>[]>;
|
44
|
+
/**
|
45
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
46
|
+
*/
|
47
|
+
getPhysicians(teamId: string, requestOptions?: Team.RequestOptions): Promise<Vital.ClientFacingPhysician[]>;
|
44
48
|
}
|