@tryvital/vital-node 3.0.7 → 3.0.9
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 +1 -0
- package/api/errors/BadRequestError.js +1 -0
- package/api/errors/UnprocessableEntityError.js +1 -0
- package/api/resources/activity/client/Client.d.ts +11 -0
- package/api/resources/activity/client/Client.js +22 -11
- package/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +6 -0
- package/api/resources/activity/client/requests/ActivityGetRequest.d.ts +6 -0
- package/api/resources/body/client/Client.d.ts +11 -0
- package/api/resources/body/client/Client.js +22 -11
- package/api/resources/body/client/requests/BodyGetRawRequest.d.ts +6 -0
- package/api/resources/body/client/requests/BodyGetRequest.d.ts +6 -0
- package/api/resources/devices/client/Client.d.ts +4 -0
- package/api/resources/devices/client/Client.js +7 -4
- package/api/resources/devices/client/requests/DevicesGetRawRequest.d.ts +4 -0
- package/api/resources/insurance/client/Client.d.ts +6 -0
- package/api/resources/insurance/client/Client.js +11 -5
- package/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +6 -0
- package/api/resources/introspect/client/Client.d.ts +11 -0
- package/api/resources/introspect/client/Client.js +24 -13
- package/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +6 -0
- package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +6 -0
- package/api/resources/labTests/client/Client.d.ts +21 -1
- package/api/resources/labTests/client/Client.js +115 -59
- package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
- package/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +4 -0
- package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +4 -0
- package/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +4 -0
- package/api/resources/link/client/Client.d.ts +7 -0
- package/api/resources/link/client/Client.js +35 -17
- package/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +4 -0
- package/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +4 -0
- package/api/resources/meal/client/Client.d.ts +6 -0
- package/api/resources/meal/client/Client.js +11 -6
- package/api/resources/meal/client/requests/MealGetRequest.d.ts +6 -0
- package/api/resources/profile/client/Client.d.ts +1 -0
- package/api/resources/profile/client/Client.js +8 -7
- package/api/resources/providers/client/Client.d.ts +4 -0
- package/api/resources/providers/client/Client.js +5 -1
- package/api/resources/sleep/client/Client.d.ts +19 -0
- package/api/resources/sleep/client/Client.js +38 -17
- package/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +6 -0
- package/api/resources/sleep/client/requests/SleepGetRequest.d.ts +6 -0
- package/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +6 -0
- package/api/resources/team/client/Client.d.ts +18 -0
- package/api/resources/team/client/Client.js +37 -14
- package/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +4 -0
- package/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.d.ts +4 -0
- package/api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts +4 -0
- package/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +6 -0
- package/api/resources/testkit/client/Client.d.ts +1 -0
- package/api/resources/testkit/client/Client.js +4 -2
- package/api/resources/user/client/Client.d.ts +7 -0
- package/api/resources/user/client/Client.js +33 -17
- package/api/resources/user/client/requests/UserPatchBody.d.ts +4 -0
- package/api/resources/vitals/client/Client.d.ts +116 -0
- package/api/resources/vitals/client/Client.js +253 -116
- package/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsTriglyceridesRequest.d.ts +6 -0
- package/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +6 -0
- package/api/resources/workouts/client/Client.d.ts +14 -0
- package/api/resources/workouts/client/Client.js +27 -12
- package/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +6 -0
- package/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +6 -0
- package/api/types/ClientFacingDiagnosisInformation.d.ts +2 -2
- package/api/types/ClientFacingLabTest.d.ts +1 -1
- package/api/types/ClientFacingOrder.d.ts +1 -1
- package/api/types/ClientFacingPayorSearchResponse.d.ts +3 -3
- package/api/types/ClientFacingSleep.d.ts +1 -1
- package/api/types/ClientFacingTeam.d.ts +1 -0
- package/api/types/ClientFacingUser.d.ts +0 -1
- package/api/types/DeviceV2InDb.d.ts +1 -1
- package/api/types/FallbackTimeZone.d.ts +0 -1
- package/api/types/OAuthProviders.d.ts +2 -1
- package/api/types/OAuthProviders.js +1 -0
- package/api/types/Providers.d.ts +2 -1
- package/api/types/Providers.js +1 -0
- package/api/types/TeamConfig.d.ts +1 -0
- package/api/types/index.d.ts +7 -7
- package/api/types/index.js +7 -7
- package/core/fetcher/APIResponse.d.ts +1 -0
- package/core/fetcher/Fetcher.d.ts +3 -6
- package/core/fetcher/Fetcher.js +70 -26
- package/core/fetcher/getHeader.d.ts +1 -0
- package/{dist/core/streaming-fetcher → core/fetcher}/getHeader.js +2 -2
- package/core/fetcher/index.d.ts +1 -0
- package/core/fetcher/index.js +3 -1
- package/core/index.d.ts +0 -1
- package/core/index.js +0 -1
- package/core/schemas/Schema.d.ts +1 -0
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/core/schemas/builders/literals/index.d.ts +1 -0
- package/core/schemas/builders/literals/index.js +3 -1
- package/core/schemas/builders/object/index.d.ts +2 -0
- package/core/schemas/builders/object/index.js +3 -1
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/Client.d.ts +1 -0
- package/dist/api/errors/BadRequestError.js +1 -0
- package/dist/api/errors/UnprocessableEntityError.js +1 -0
- package/dist/api/resources/activity/client/Client.d.ts +11 -0
- package/dist/api/resources/activity/client/Client.js +22 -11
- package/dist/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +6 -0
- package/dist/api/resources/activity/client/requests/ActivityGetRequest.d.ts +6 -0
- package/dist/api/resources/body/client/Client.d.ts +11 -0
- package/dist/api/resources/body/client/Client.js +22 -11
- package/dist/api/resources/body/client/requests/BodyGetRawRequest.d.ts +6 -0
- package/dist/api/resources/body/client/requests/BodyGetRequest.d.ts +6 -0
- package/dist/api/resources/devices/client/Client.d.ts +4 -0
- package/dist/api/resources/devices/client/Client.js +7 -4
- package/dist/api/resources/devices/client/requests/DevicesGetRawRequest.d.ts +4 -0
- package/dist/api/resources/insurance/client/Client.d.ts +6 -0
- package/dist/api/resources/insurance/client/Client.js +11 -5
- package/dist/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +6 -0
- package/dist/api/resources/introspect/client/Client.d.ts +11 -0
- package/dist/api/resources/introspect/client/Client.js +24 -13
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +6 -0
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +6 -0
- package/dist/api/resources/labTests/client/Client.d.ts +21 -1
- package/dist/api/resources/labTests/client/Client.js +115 -59
- package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersForLabTestRequest.d.ts +4 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +4 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +4 -0
- package/dist/api/resources/link/client/Client.d.ts +7 -0
- package/dist/api/resources/link/client/Client.js +35 -17
- package/dist/api/resources/link/client/requests/LinkGetAllProvidersRequest.d.ts +4 -0
- package/dist/api/resources/link/client/requests/LinkTokenStateRequest.d.ts +4 -0
- package/dist/api/resources/meal/client/Client.d.ts +6 -0
- package/dist/api/resources/meal/client/Client.js +11 -6
- package/dist/api/resources/meal/client/requests/MealGetRequest.d.ts +6 -0
- package/dist/api/resources/profile/client/Client.d.ts +1 -0
- package/dist/api/resources/profile/client/Client.js +8 -7
- package/dist/api/resources/providers/client/Client.d.ts +4 -0
- package/dist/api/resources/providers/client/Client.js +5 -1
- package/dist/api/resources/sleep/client/Client.d.ts +19 -0
- package/dist/api/resources/sleep/client/Client.js +38 -17
- package/dist/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +6 -0
- package/dist/api/resources/sleep/client/requests/SleepGetRequest.d.ts +6 -0
- package/dist/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +6 -0
- package/dist/api/resources/team/client/Client.d.ts +18 -0
- package/dist/api/resources/team/client/Client.js +37 -14
- package/dist/api/resources/team/client/requests/TeamGetLinkConfigRequest.d.ts +4 -0
- package/dist/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.d.ts +4 -0
- package/dist/api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts +4 -0
- package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +6 -0
- package/dist/api/resources/testkit/client/Client.d.ts +1 -0
- package/dist/api/resources/testkit/client/Client.js +4 -2
- package/dist/api/resources/user/client/Client.d.ts +7 -0
- package/dist/api/resources/user/client/Client.js +33 -17
- package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +4 -0
- package/dist/api/resources/vitals/client/Client.d.ts +116 -0
- package/dist/api/resources/vitals/client/Client.js +253 -116
- package/dist/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsTriglyceridesRequest.d.ts +6 -0
- package/dist/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +6 -0
- package/dist/api/resources/workouts/client/Client.d.ts +14 -0
- package/dist/api/resources/workouts/client/Client.js +27 -12
- package/dist/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +6 -0
- package/dist/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +6 -0
- package/dist/api/types/ClientFacingDiagnosisInformation.d.ts +2 -2
- package/dist/api/types/ClientFacingLabTest.d.ts +1 -1
- package/dist/api/types/ClientFacingOrder.d.ts +1 -1
- package/dist/api/types/ClientFacingPayorSearchResponse.d.ts +3 -3
- package/dist/api/types/ClientFacingSleep.d.ts +1 -1
- package/dist/api/types/ClientFacingTeam.d.ts +1 -0
- package/dist/api/types/ClientFacingUser.d.ts +0 -1
- package/dist/api/types/DeviceV2InDb.d.ts +1 -1
- package/dist/api/types/FallbackTimeZone.d.ts +0 -1
- package/dist/api/types/OAuthProviders.d.ts +2 -1
- package/dist/api/types/OAuthProviders.js +1 -0
- package/dist/api/types/Providers.d.ts +2 -1
- package/dist/api/types/Providers.js +1 -0
- package/dist/api/types/TeamConfig.d.ts +1 -0
- package/dist/api/types/index.d.ts +7 -7
- package/dist/api/types/index.js +7 -7
- package/dist/core/fetcher/APIResponse.d.ts +1 -0
- package/dist/core/fetcher/Fetcher.d.ts +3 -6
- package/dist/core/fetcher/Fetcher.js +70 -26
- package/dist/core/fetcher/getHeader.d.ts +1 -0
- package/{core/streaming-fetcher → dist/core/fetcher}/getHeader.js +2 -2
- package/dist/core/fetcher/index.d.ts +1 -0
- package/dist/core/fetcher/index.js +3 -1
- package/dist/core/index.d.ts +0 -1
- package/dist/core/index.js +0 -1
- package/dist/core/schemas/Schema.d.ts +1 -0
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/booleanLiteral.js +29 -0
- package/dist/core/schemas/builders/literals/index.d.ts +1 -0
- package/dist/core/schemas/builders/literals/index.js +3 -1
- package/dist/core/schemas/builders/object/index.d.ts +2 -0
- package/dist/core/schemas/builders/object/index.js +3 -1
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +6 -0
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +8 -0
- package/dist/serialization/types/ClientFacingTeam.d.ts +1 -0
- package/dist/serialization/types/ClientFacingTeam.js +1 -0
- package/dist/serialization/types/DeviceV2InDb.d.ts +1 -1
- package/dist/serialization/types/DeviceV2InDb.js +1 -1
- package/dist/serialization/types/OAuthProviders.d.ts +1 -1
- package/dist/serialization/types/OAuthProviders.js +1 -0
- package/dist/serialization/types/Providers.d.ts +1 -1
- package/dist/serialization/types/Providers.js +1 -0
- package/dist/serialization/types/TeamConfig.d.ts +1 -0
- package/dist/serialization/types/TeamConfig.js +1 -0
- package/dist/serialization/types/index.d.ts +7 -7
- package/dist/serialization/types/index.js +7 -7
- package/package.json +7 -4
- package/serialization/types/ClientFacingTeam.d.ts +1 -0
- package/serialization/types/ClientFacingTeam.js +1 -0
- package/serialization/types/DeviceV2InDb.d.ts +1 -1
- package/serialization/types/DeviceV2InDb.js +1 -1
- package/serialization/types/OAuthProviders.d.ts +1 -1
- package/serialization/types/OAuthProviders.js +1 -0
- package/serialization/types/Providers.d.ts +1 -1
- package/serialization/types/Providers.js +1 -0
- package/serialization/types/TeamConfig.d.ts +1 -0
- package/serialization/types/TeamConfig.js +1 -0
- package/serialization/types/index.d.ts +7 -7
- package/serialization/types/index.js +7 -7
- package/core/streaming-fetcher/StreamingFetcher.d.ts +0 -30
- package/core/streaming-fetcher/StreamingFetcher.js +0 -79
- package/core/streaming-fetcher/getHeader.d.ts +0 -2
- package/core/streaming-fetcher/index.d.ts +0 -3
- package/core/streaming-fetcher/index.js +0 -7
- package/dist/core/streaming-fetcher/StreamingFetcher.d.ts +0 -30
- package/dist/core/streaming-fetcher/StreamingFetcher.js +0 -79
- package/dist/core/streaming-fetcher/getHeader.d.ts +0 -2
- package/dist/core/streaming-fetcher/index.d.ts +0 -3
- package/dist/core/streaming-fetcher/index.js +0 -7
@@ -11,6 +11,7 @@ export declare namespace Body {
|
|
11
11
|
}
|
12
12
|
interface RequestOptions {
|
13
13
|
timeoutInSeconds?: number;
|
14
|
+
maxRetries?: number;
|
14
15
|
}
|
15
16
|
}
|
16
17
|
export declare class Body {
|
@@ -19,11 +20,21 @@ export declare class Body {
|
|
19
20
|
/**
|
20
21
|
* Get Daily Body data for user_id
|
21
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
|
+
*
|
24
|
+
* @example
|
25
|
+
* await vital.body.get("user-id", {
|
26
|
+
* startDate: "start-date"
|
27
|
+
* })
|
22
28
|
*/
|
23
29
|
get(userId: string, request: Vital.BodyGetRequest, requestOptions?: Body.RequestOptions): Promise<Vital.ClientBodyResponse>;
|
24
30
|
/**
|
25
31
|
* Get Daily Body data for user_id
|
26
32
|
* @throws {@link Vital.UnprocessableEntityError}
|
33
|
+
*
|
34
|
+
* @example
|
35
|
+
* await vital.body.getRaw("user-id", {
|
36
|
+
* startDate: "start-date"
|
37
|
+
* })
|
27
38
|
*/
|
28
39
|
getRaw(userId: string, request: Vital.BodyGetRawRequest, requestOptions?: Body.RequestOptions): Promise<Vital.RawBody>;
|
29
40
|
}
|
@@ -42,7 +42,6 @@ exports.Body = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
43
43
|
const core = __importStar(require("../../../../core"));
|
44
44
|
const Vital = __importStar(require("../../.."));
|
45
|
-
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
46
45
|
const url_join_1 = __importDefault(require("url-join"));
|
47
46
|
const serializers = __importStar(require("../../../../serialization"));
|
48
47
|
const errors = __importStar(require("../../../../errors"));
|
@@ -53,18 +52,23 @@ class Body {
|
|
53
52
|
/**
|
54
53
|
* Get Daily Body data for user_id
|
55
54
|
* @throws {@link Vital.UnprocessableEntityError}
|
55
|
+
*
|
56
|
+
* @example
|
57
|
+
* await vital.body.get("user-id", {
|
58
|
+
* startDate: "start-date"
|
59
|
+
* })
|
56
60
|
*/
|
57
61
|
get(userId, request, requestOptions) {
|
58
62
|
var _a;
|
59
63
|
return __awaiter(this, void 0, void 0, function* () {
|
60
64
|
const { provider, startDate, endDate } = request;
|
61
|
-
const _queryParams =
|
65
|
+
const _queryParams = {};
|
62
66
|
if (provider != null) {
|
63
|
-
_queryParams
|
67
|
+
_queryParams["provider"] = provider;
|
64
68
|
}
|
65
|
-
_queryParams
|
69
|
+
_queryParams["start_date"] = startDate;
|
66
70
|
if (endDate != null) {
|
67
|
-
_queryParams
|
71
|
+
_queryParams["end_date"] = endDate;
|
68
72
|
}
|
69
73
|
const _response = yield core.fetcher({
|
70
74
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${userId}`),
|
@@ -73,11 +77,12 @@ class Body {
|
|
73
77
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
74
78
|
"X-Fern-Language": "JavaScript",
|
75
79
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
76
|
-
"X-Fern-SDK-Version": "3.0.
|
80
|
+
"X-Fern-SDK-Version": "3.0.9",
|
77
81
|
},
|
78
82
|
contentType: "application/json",
|
79
83
|
queryParameters: _queryParams,
|
80
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
85
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
81
86
|
});
|
82
87
|
if (_response.ok) {
|
83
88
|
return yield serializers.ClientBodyResponse.parseOrThrow(_response.body, {
|
@@ -121,18 +126,23 @@ class Body {
|
|
121
126
|
/**
|
122
127
|
* Get Daily Body data for user_id
|
123
128
|
* @throws {@link Vital.UnprocessableEntityError}
|
129
|
+
*
|
130
|
+
* @example
|
131
|
+
* await vital.body.getRaw("user-id", {
|
132
|
+
* startDate: "start-date"
|
133
|
+
* })
|
124
134
|
*/
|
125
135
|
getRaw(userId, request, requestOptions) {
|
126
136
|
var _a;
|
127
137
|
return __awaiter(this, void 0, void 0, function* () {
|
128
138
|
const { provider, startDate, endDate } = request;
|
129
|
-
const _queryParams =
|
139
|
+
const _queryParams = {};
|
130
140
|
if (provider != null) {
|
131
|
-
_queryParams
|
141
|
+
_queryParams["provider"] = provider;
|
132
142
|
}
|
133
|
-
_queryParams
|
143
|
+
_queryParams["start_date"] = startDate;
|
134
144
|
if (endDate != null) {
|
135
|
-
_queryParams
|
145
|
+
_queryParams["end_date"] = endDate;
|
136
146
|
}
|
137
147
|
const _response = yield core.fetcher({
|
138
148
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/body/${userId}/raw`),
|
@@ -141,11 +151,12 @@ class Body {
|
|
141
151
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
142
152
|
"X-Fern-Language": "JavaScript",
|
143
153
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
144
|
-
"X-Fern-SDK-Version": "3.0.
|
154
|
+
"X-Fern-SDK-Version": "3.0.9",
|
145
155
|
},
|
146
156
|
contentType: "application/json",
|
147
157
|
queryParameters: _queryParams,
|
148
158
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
159
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
149
160
|
});
|
150
161
|
if (_response.ok) {
|
151
162
|
return yield serializers.RawBody.parseOrThrow(_response.body, {
|
@@ -11,6 +11,7 @@ export declare namespace Devices {
|
|
11
11
|
}
|
12
12
|
interface RequestOptions {
|
13
13
|
timeoutInSeconds?: number;
|
14
|
+
maxRetries?: number;
|
14
15
|
}
|
15
16
|
}
|
16
17
|
export declare class Devices {
|
@@ -19,6 +20,9 @@ export declare class Devices {
|
|
19
20
|
/**
|
20
21
|
* Get Devices for user_id
|
21
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
|
+
*
|
24
|
+
* @example
|
25
|
+
* await vital.devices.getRaw("user-id", {})
|
22
26
|
*/
|
23
27
|
getRaw(userId: string, request?: Vital.DevicesGetRawRequest, requestOptions?: Devices.RequestOptions): Promise<Vital.RawDevices>;
|
24
28
|
}
|
@@ -42,7 +42,6 @@ exports.Devices = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
43
43
|
const core = __importStar(require("../../../../core"));
|
44
44
|
const Vital = __importStar(require("../../.."));
|
45
|
-
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
46
45
|
const url_join_1 = __importDefault(require("url-join"));
|
47
46
|
const serializers = __importStar(require("../../../../serialization"));
|
48
47
|
const errors = __importStar(require("../../../../errors"));
|
@@ -53,14 +52,17 @@ class Devices {
|
|
53
52
|
/**
|
54
53
|
* Get Devices for user_id
|
55
54
|
* @throws {@link Vital.UnprocessableEntityError}
|
55
|
+
*
|
56
|
+
* @example
|
57
|
+
* await vital.devices.getRaw("user-id", {})
|
56
58
|
*/
|
57
59
|
getRaw(userId, request = {}, requestOptions) {
|
58
60
|
var _a;
|
59
61
|
return __awaiter(this, void 0, void 0, function* () {
|
60
62
|
const { provider } = request;
|
61
|
-
const _queryParams =
|
63
|
+
const _queryParams = {};
|
62
64
|
if (provider != null) {
|
63
|
-
_queryParams
|
65
|
+
_queryParams["provider"] = provider;
|
64
66
|
}
|
65
67
|
const _response = yield core.fetcher({
|
66
68
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/summary/devices/${userId}/raw`),
|
@@ -69,11 +71,12 @@ class Devices {
|
|
69
71
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
70
72
|
"X-Fern-Language": "JavaScript",
|
71
73
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
72
|
-
"X-Fern-SDK-Version": "3.0.
|
74
|
+
"X-Fern-SDK-Version": "3.0.9",
|
73
75
|
},
|
74
76
|
contentType: "application/json",
|
75
77
|
queryParameters: _queryParams,
|
76
78
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
79
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
77
80
|
});
|
78
81
|
if (_response.ok) {
|
79
82
|
return yield serializers.RawDevices.parseOrThrow(_response.body, {
|
@@ -11,6 +11,7 @@ export declare namespace Insurance {
|
|
11
11
|
}
|
12
12
|
interface RequestOptions {
|
13
13
|
timeoutInSeconds?: number;
|
14
|
+
maxRetries?: number;
|
14
15
|
}
|
15
16
|
}
|
16
17
|
export declare class Insurance {
|
@@ -22,6 +23,11 @@ export declare class Insurance {
|
|
22
23
|
searchPayorInfo(request: Vital.PayorSearchRequest, requestOptions?: Insurance.RequestOptions): Promise<Vital.ClientFacingPayorSearchResponse[]>;
|
23
24
|
/**
|
24
25
|
* @throws {@link Vital.UnprocessableEntityError}
|
26
|
+
*
|
27
|
+
* @example
|
28
|
+
* await vital.insurance.searchDiagnosis({
|
29
|
+
* diagnosisQuery: "diagnosis-query"
|
30
|
+
* })
|
25
31
|
*/
|
26
32
|
searchDiagnosis(request: Vital.InsuranceSearchDiagnosisRequest, requestOptions?: Insurance.RequestOptions): Promise<Vital.ClientFacingDiagnosisInformation[]>;
|
27
33
|
}
|
@@ -45,7 +45,6 @@ const Vital = __importStar(require("../../.."));
|
|
45
45
|
const serializers = __importStar(require("../../../../serialization"));
|
46
46
|
const url_join_1 = __importDefault(require("url-join"));
|
47
47
|
const errors = __importStar(require("../../../../errors"));
|
48
|
-
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
49
48
|
class Insurance {
|
50
49
|
constructor(_options) {
|
51
50
|
this._options = _options;
|
@@ -63,11 +62,12 @@ class Insurance {
|
|
63
62
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
64
63
|
"X-Fern-Language": "JavaScript",
|
65
64
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
66
|
-
"X-Fern-SDK-Version": "3.0.
|
65
|
+
"X-Fern-SDK-Version": "3.0.9",
|
67
66
|
},
|
68
67
|
contentType: "application/json",
|
69
68
|
body: yield serializers.PayorSearchRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
70
69
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
70
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
71
71
|
});
|
72
72
|
if (_response.ok) {
|
73
73
|
return yield serializers.insurance.searchPayorInfo.Response.parseOrThrow(_response.body, {
|
@@ -110,13 +110,18 @@ class Insurance {
|
|
110
110
|
}
|
111
111
|
/**
|
112
112
|
* @throws {@link Vital.UnprocessableEntityError}
|
113
|
+
*
|
114
|
+
* @example
|
115
|
+
* await vital.insurance.searchDiagnosis({
|
116
|
+
* diagnosisQuery: "diagnosis-query"
|
117
|
+
* })
|
113
118
|
*/
|
114
119
|
searchDiagnosis(request, requestOptions) {
|
115
120
|
var _a;
|
116
121
|
return __awaiter(this, void 0, void 0, function* () {
|
117
122
|
const { diagnosisQuery } = request;
|
118
|
-
const _queryParams =
|
119
|
-
_queryParams
|
123
|
+
const _queryParams = {};
|
124
|
+
_queryParams["diagnosis_query"] = diagnosisQuery;
|
120
125
|
const _response = yield core.fetcher({
|
121
126
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/insurance/search/diagnosis"),
|
122
127
|
method: "GET",
|
@@ -124,11 +129,12 @@ class Insurance {
|
|
124
129
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
125
130
|
"X-Fern-Language": "JavaScript",
|
126
131
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
127
|
-
"X-Fern-SDK-Version": "3.0.
|
132
|
+
"X-Fern-SDK-Version": "3.0.9",
|
128
133
|
},
|
129
134
|
contentType: "application/json",
|
130
135
|
queryParameters: _queryParams,
|
131
136
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
137
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
132
138
|
});
|
133
139
|
if (_response.ok) {
|
134
140
|
return yield serializers.insurance.searchDiagnosis.Response.parseOrThrow(_response.body, {
|
@@ -11,6 +11,7 @@ export declare namespace Introspect {
|
|
11
11
|
}
|
12
12
|
interface RequestOptions {
|
13
13
|
timeoutInSeconds?: number;
|
14
|
+
maxRetries?: number;
|
14
15
|
}
|
15
16
|
}
|
16
17
|
export declare class Introspect {
|
@@ -18,10 +19,20 @@ export declare class Introspect {
|
|
18
19
|
constructor(_options: Introspect.Options);
|
19
20
|
/**
|
20
21
|
* @throws {@link Vital.UnprocessableEntityError}
|
22
|
+
*
|
23
|
+
* @example
|
24
|
+
* await vital.introspect.getUserResources({
|
25
|
+
* provider: Vital.Providers.Oura
|
26
|
+
* })
|
21
27
|
*/
|
22
28
|
getUserResources(request?: Vital.IntrospectGetUserResourcesRequest, requestOptions?: Introspect.RequestOptions): Promise<Vital.UserResourcesResponse>;
|
23
29
|
/**
|
24
30
|
* @throws {@link Vital.UnprocessableEntityError}
|
31
|
+
*
|
32
|
+
* @example
|
33
|
+
* await vital.introspect.getUserHistoricalPulls({
|
34
|
+
* provider: Vital.Providers.Oura
|
35
|
+
* })
|
25
36
|
*/
|
26
37
|
getUserHistoricalPulls(request?: Vital.IntrospectGetUserHistoricalPullsRequest, requestOptions?: Introspect.RequestOptions): Promise<Vital.UserHistoricalPullsResponse>;
|
27
38
|
}
|
@@ -42,7 +42,6 @@ exports.Introspect = void 0;
|
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
43
43
|
const core = __importStar(require("../../../../core"));
|
44
44
|
const Vital = __importStar(require("../../.."));
|
45
|
-
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
46
45
|
const url_join_1 = __importDefault(require("url-join"));
|
47
46
|
const serializers = __importStar(require("../../../../serialization"));
|
48
47
|
const errors = __importStar(require("../../../../errors"));
|
@@ -52,23 +51,28 @@ class Introspect {
|
|
52
51
|
}
|
53
52
|
/**
|
54
53
|
* @throws {@link Vital.UnprocessableEntityError}
|
54
|
+
*
|
55
|
+
* @example
|
56
|
+
* await vital.introspect.getUserResources({
|
57
|
+
* provider: Vital.Providers.Oura
|
58
|
+
* })
|
55
59
|
*/
|
56
60
|
getUserResources(request = {}, requestOptions) {
|
57
61
|
var _a;
|
58
62
|
return __awaiter(this, void 0, void 0, function* () {
|
59
63
|
const { userId, provider, userLimit, cursor } = request;
|
60
|
-
const _queryParams =
|
64
|
+
const _queryParams = {};
|
61
65
|
if (userId != null) {
|
62
|
-
_queryParams
|
66
|
+
_queryParams["user_id"] = userId;
|
63
67
|
}
|
64
68
|
if (provider != null) {
|
65
|
-
_queryParams
|
69
|
+
_queryParams["provider"] = provider;
|
66
70
|
}
|
67
71
|
if (userLimit != null) {
|
68
|
-
_queryParams
|
72
|
+
_queryParams["user_limit"] = userLimit.toString();
|
69
73
|
}
|
70
74
|
if (cursor != null) {
|
71
|
-
_queryParams
|
75
|
+
_queryParams["cursor"] = cursor;
|
72
76
|
}
|
73
77
|
const _response = yield core.fetcher({
|
74
78
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/introspect/resources"),
|
@@ -77,11 +81,12 @@ class Introspect {
|
|
77
81
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
78
82
|
"X-Fern-Language": "JavaScript",
|
79
83
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
80
|
-
"X-Fern-SDK-Version": "3.0.
|
84
|
+
"X-Fern-SDK-Version": "3.0.9",
|
81
85
|
},
|
82
86
|
contentType: "application/json",
|
83
87
|
queryParameters: _queryParams,
|
84
88
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
89
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
85
90
|
});
|
86
91
|
if (_response.ok) {
|
87
92
|
return yield serializers.UserResourcesResponse.parseOrThrow(_response.body, {
|
@@ -124,23 +129,28 @@ class Introspect {
|
|
124
129
|
}
|
125
130
|
/**
|
126
131
|
* @throws {@link Vital.UnprocessableEntityError}
|
132
|
+
*
|
133
|
+
* @example
|
134
|
+
* await vital.introspect.getUserHistoricalPulls({
|
135
|
+
* provider: Vital.Providers.Oura
|
136
|
+
* })
|
127
137
|
*/
|
128
138
|
getUserHistoricalPulls(request = {}, requestOptions) {
|
129
139
|
var _a;
|
130
140
|
return __awaiter(this, void 0, void 0, function* () {
|
131
141
|
const { userId, provider, userLimit, cursor } = request;
|
132
|
-
const _queryParams =
|
142
|
+
const _queryParams = {};
|
133
143
|
if (userId != null) {
|
134
|
-
_queryParams
|
144
|
+
_queryParams["user_id"] = userId;
|
135
145
|
}
|
136
146
|
if (provider != null) {
|
137
|
-
_queryParams
|
147
|
+
_queryParams["provider"] = provider;
|
138
148
|
}
|
139
149
|
if (userLimit != null) {
|
140
|
-
_queryParams
|
150
|
+
_queryParams["user_limit"] = userLimit.toString();
|
141
151
|
}
|
142
152
|
if (cursor != null) {
|
143
|
-
_queryParams
|
153
|
+
_queryParams["cursor"] = cursor;
|
144
154
|
}
|
145
155
|
const _response = yield core.fetcher({
|
146
156
|
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"),
|
@@ -149,11 +159,12 @@ class Introspect {
|
|
149
159
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
150
160
|
"X-Fern-Language": "JavaScript",
|
151
161
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
152
|
-
"X-Fern-SDK-Version": "3.0.
|
162
|
+
"X-Fern-SDK-Version": "3.0.9",
|
153
163
|
},
|
154
164
|
contentType: "application/json",
|
155
165
|
queryParameters: _queryParams,
|
156
166
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
167
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
157
168
|
});
|
158
169
|
if (_response.ok) {
|
159
170
|
return yield serializers.UserHistoricalPullsResponse.parseOrThrow(_response.body, {
|
package/dist/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
import * as Vital from "../../../..";
|
5
|
+
/**
|
6
|
+
* @example
|
7
|
+
* {
|
8
|
+
* provider: Vital.Providers.Oura
|
9
|
+
* }
|
10
|
+
*/
|
5
11
|
export interface IntrospectGetUserHistoricalPullsRequest {
|
6
12
|
userId?: string;
|
7
13
|
provider?: Vital.Providers;
|
package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
4
|
import * as Vital from "../../../..";
|
5
|
+
/**
|
6
|
+
* @example
|
7
|
+
* {
|
8
|
+
* provider: Vital.Providers.Oura
|
9
|
+
* }
|
10
|
+
*/
|
5
11
|
export interface IntrospectGetUserResourcesRequest {
|
6
12
|
userId?: string;
|
7
13
|
provider?: Vital.Providers;
|
@@ -13,6 +13,7 @@ export declare namespace LabTests {
|
|
13
13
|
}
|
14
14
|
interface RequestOptions {
|
15
15
|
timeoutInSeconds?: number;
|
16
|
+
maxRetries?: number;
|
16
17
|
}
|
17
18
|
}
|
18
19
|
export declare class LabTests {
|
@@ -20,6 +21,9 @@ export declare class LabTests {
|
|
20
21
|
constructor(_options: LabTests.Options);
|
21
22
|
/**
|
22
23
|
* GET all the lab tests the team has access to.
|
24
|
+
*
|
25
|
+
* @example
|
26
|
+
* await vital.labTests.get()
|
23
27
|
*/
|
24
28
|
get(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLabTest[]>;
|
25
29
|
/**
|
@@ -29,10 +33,16 @@ export declare class LabTests {
|
|
29
33
|
/**
|
30
34
|
* GET all the markers for the given lab.
|
31
35
|
* @throws {@link Vital.UnprocessableEntityError}
|
36
|
+
*
|
37
|
+
* @example
|
38
|
+
* await vital.labTests.getMarkers({})
|
32
39
|
*/
|
33
40
|
getMarkers(request?: Vital.LabTestsGetMarkersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
|
34
41
|
/**
|
35
42
|
* @throws {@link Vital.UnprocessableEntityError}
|
43
|
+
*
|
44
|
+
* @example
|
45
|
+
* await vital.labTests.getMarkersForLabTest("lab-test-id", {})
|
36
46
|
*/
|
37
47
|
getMarkersForLabTest(labTestId: string, request?: Vital.LabTestsGetMarkersForLabTestRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetMarkersResponse>;
|
38
48
|
/**
|
@@ -42,6 +52,9 @@ export declare class LabTests {
|
|
42
52
|
getMarkersByLabAndProviderId(providerId: string, labId: number, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingMarker>;
|
43
53
|
/**
|
44
54
|
* GET all the labs.
|
55
|
+
*
|
56
|
+
* @example
|
57
|
+
* await vital.labTests.getLabs()
|
45
58
|
*/
|
46
59
|
getLabs(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingLab[]>;
|
47
60
|
/**
|
@@ -77,6 +90,9 @@ export declare class LabTests {
|
|
77
90
|
cancelPhlebotomyAppointment(orderId: string, request: Vital.AppointmentCancelRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointment>;
|
78
91
|
/**
|
79
92
|
* Get the list of reasons for cancelling an at-home phlebotomy appointment.
|
93
|
+
*
|
94
|
+
* @example
|
95
|
+
* await vital.labTests.getPhlebotomyAppointmentCancellationReason()
|
80
96
|
*/
|
81
97
|
getPhlebotomyAppointmentCancellationReason(requestOptions?: LabTests.RequestOptions): Promise<Vital.ClientFacingAppointmentCancellationReason[]>;
|
82
98
|
/**
|
@@ -88,7 +104,8 @@ export declare class LabTests {
|
|
88
104
|
* GET information about an area with respect to lab-testing.
|
89
105
|
*
|
90
106
|
* Information returned:
|
91
|
-
*
|
107
|
+
*
|
108
|
+
* - Whether a given zip code is served by our Phlebotomy network.
|
92
109
|
* @throws {@link Vital.UnprocessableEntityError}
|
93
110
|
*/
|
94
111
|
getAreaInfo(request: Vital.LabTestsGetAreaInfoRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.AreaInfo>;
|
@@ -135,6 +152,9 @@ export declare class LabTests {
|
|
135
152
|
/**
|
136
153
|
* GET many orders with filters.
|
137
154
|
* @throws {@link Vital.UnprocessableEntityError}
|
155
|
+
*
|
156
|
+
* @example
|
157
|
+
* await vital.labTests.getOrders({})
|
138
158
|
*/
|
139
159
|
getOrders(request?: Vital.LabTestsGetOrdersRequest, requestOptions?: LabTests.RequestOptions): Promise<Vital.GetOrdersResponse>;
|
140
160
|
}
|