@tryvital/vital-node 3.0.6 → 3.0.8
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 +26 -1
- package/api/resources/labTests/client/Client.js +173 -58
- 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/labTests/client/requests/RequestAppointmentRequest.d.ts +9 -0
- package/api/resources/labTests/client/requests/index.d.ts +1 -0
- package/api/resources/link/client/Client.d.ts +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 +8 -1
- package/api/resources/user/client/Client.js +38 -16
- package/api/resources/user/client/requests/UserPatchBody.d.ts +4 -0
- 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.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/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/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/ClientFacingUser.d.ts +0 -1
- package/api/types/FallbackTimeZone.d.ts +0 -1
- 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 +9 -9
- package/api/types/index.js +9 -9
- 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/core/{streaming-fetcher → 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 +26 -1
- package/dist/api/resources/labTests/client/Client.js +173 -58
- 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/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.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 +8 -1
- package/dist/api/resources/user/client/Client.js +38 -16
- package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +4 -0
- 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.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/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/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/ClientFacingUser.d.ts +0 -1
- package/dist/api/types/FallbackTimeZone.d.ts +0 -1
- 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 +9 -9
- package/dist/api/types/index.js +9 -9
- 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/dist/core/{streaming-fetcher → 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/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/{serialization/types/UserSignInToken.js → dist/serialization/types/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/{serialization/types/UserSignInTokenResponseSignInToken.js → dist/serialization/types/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 +9 -9
- package/dist/serialization/types/index.js +9 -9
- package/package.json +7 -4
- 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/{dist/serialization/types/UserSignInToken.js → serialization/types/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/{dist/serialization/types/UserSignInTokenResponseSignInToken.js → serialization/types/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 +9 -9
- package/serialization/types/index.js +9 -9
- package/api/types/UserSignInToken.d.ts +0 -7
- package/api/types/UserSignInTokenResponseSignInToken.d.ts +0 -5
- 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/api/types/UserSignInToken.d.ts +0 -7
- package/dist/api/types/UserSignInTokenResponseSignInToken.d.ts +0 -5
- 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
- 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
@@ -42,7 +42,6 @@ exports.User = 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"));
|
@@ -58,12 +57,12 @@ class User {
|
|
58
57
|
var _a;
|
59
58
|
return __awaiter(this, void 0, void 0, function* () {
|
60
59
|
const { offset, limit } = request;
|
61
|
-
const _queryParams =
|
60
|
+
const _queryParams = {};
|
62
61
|
if (offset != null) {
|
63
|
-
_queryParams
|
62
|
+
_queryParams["offset"] = offset.toString();
|
64
63
|
}
|
65
64
|
if (limit != null) {
|
66
|
-
_queryParams
|
65
|
+
_queryParams["limit"] = limit.toString();
|
67
66
|
}
|
68
67
|
const _response = yield core.fetcher({
|
69
68
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v2/user"),
|
@@ -72,11 +71,12 @@ class User {
|
|
72
71
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
73
72
|
"X-Fern-Language": "JavaScript",
|
74
73
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
75
|
-
"X-Fern-SDK-Version": "3.0.
|
74
|
+
"X-Fern-SDK-Version": "3.0.8",
|
76
75
|
},
|
77
76
|
contentType: "application/json",
|
78
77
|
queryParameters: _queryParams,
|
79
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,
|
80
80
|
});
|
81
81
|
if (_response.ok) {
|
82
82
|
return yield serializers.PaginatedUsersResponse.parseOrThrow(_response.body, {
|
@@ -131,11 +131,12 @@ class User {
|
|
131
131
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
132
132
|
"X-Fern-Language": "JavaScript",
|
133
133
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
134
|
-
"X-Fern-SDK-Version": "3.0.
|
134
|
+
"X-Fern-SDK-Version": "3.0.8",
|
135
135
|
},
|
136
136
|
contentType: "application/json",
|
137
137
|
body: yield serializers.UserCreateBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
138
138
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
139
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
139
140
|
});
|
140
141
|
if (_response.ok) {
|
141
142
|
return yield serializers.ClientFacingUserKey.parseOrThrow(_response.body, {
|
@@ -189,10 +190,11 @@ class User {
|
|
189
190
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
190
191
|
"X-Fern-Language": "JavaScript",
|
191
192
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
192
|
-
"X-Fern-SDK-Version": "3.0.
|
193
|
+
"X-Fern-SDK-Version": "3.0.8",
|
193
194
|
},
|
194
195
|
contentType: "application/json",
|
195
196
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
197
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
196
198
|
});
|
197
199
|
if (_response.ok) {
|
198
200
|
return yield serializers.MetricsResult.parseOrThrow(_response.body, {
|
@@ -236,10 +238,11 @@ class User {
|
|
236
238
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
237
239
|
"X-Fern-Language": "JavaScript",
|
238
240
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
239
|
-
"X-Fern-SDK-Version": "3.0.
|
241
|
+
"X-Fern-SDK-Version": "3.0.8",
|
240
242
|
},
|
241
243
|
contentType: "application/json",
|
242
244
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
245
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
243
246
|
});
|
244
247
|
if (_response.ok) {
|
245
248
|
return yield serializers.UserSignInTokenResponse.parseOrThrow(_response.body, {
|
@@ -283,6 +286,9 @@ class User {
|
|
283
286
|
/**
|
284
287
|
* GET Users connected providers
|
285
288
|
* @throws {@link Vital.UnprocessableEntityError}
|
289
|
+
*
|
290
|
+
* @example
|
291
|
+
* await vital.user.getConnectedProviders("user-id")
|
286
292
|
*/
|
287
293
|
getConnectedProviders(userId, requestOptions) {
|
288
294
|
var _a;
|
@@ -294,10 +300,11 @@ class User {
|
|
294
300
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
295
301
|
"X-Fern-Language": "JavaScript",
|
296
302
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
297
|
-
"X-Fern-SDK-Version": "3.0.
|
303
|
+
"X-Fern-SDK-Version": "3.0.8",
|
298
304
|
},
|
299
305
|
contentType: "application/json",
|
300
306
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
307
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
301
308
|
});
|
302
309
|
if (_response.ok) {
|
303
310
|
return yield serializers.user.getConnectedProviders.Response.parseOrThrow(_response.body, {
|
@@ -352,10 +359,11 @@ class User {
|
|
352
359
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
353
360
|
"X-Fern-Language": "JavaScript",
|
354
361
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
355
|
-
"X-Fern-SDK-Version": "3.0.
|
362
|
+
"X-Fern-SDK-Version": "3.0.8",
|
356
363
|
},
|
357
364
|
contentType: "application/json",
|
358
365
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
366
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
359
367
|
});
|
360
368
|
if (_response.ok) {
|
361
369
|
return yield serializers.ClientFacingUser.parseOrThrow(_response.body, {
|
@@ -409,10 +417,11 @@ class User {
|
|
409
417
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
410
418
|
"X-Fern-Language": "JavaScript",
|
411
419
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
412
|
-
"X-Fern-SDK-Version": "3.0.
|
420
|
+
"X-Fern-SDK-Version": "3.0.8",
|
413
421
|
},
|
414
422
|
contentType: "application/json",
|
415
423
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
424
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
416
425
|
});
|
417
426
|
if (_response.ok) {
|
418
427
|
return yield serializers.UserSuccessResponse.parseOrThrow(_response.body, {
|
@@ -455,6 +464,9 @@ class User {
|
|
455
464
|
}
|
456
465
|
/**
|
457
466
|
* @throws {@link Vital.UnprocessableEntityError}
|
467
|
+
*
|
468
|
+
* @example
|
469
|
+
* await vital.user.patch("user-id", {})
|
458
470
|
*/
|
459
471
|
patch(userId, request = {}, requestOptions) {
|
460
472
|
var _a;
|
@@ -466,11 +478,12 @@ class User {
|
|
466
478
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
467
479
|
"X-Fern-Language": "JavaScript",
|
468
480
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
469
|
-
"X-Fern-SDK-Version": "3.0.
|
481
|
+
"X-Fern-SDK-Version": "3.0.8",
|
470
482
|
},
|
471
483
|
contentType: "application/json",
|
472
484
|
body: yield serializers.UserPatchBody.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
473
485
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
486
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
474
487
|
});
|
475
488
|
if (_response.ok) {
|
476
489
|
return;
|
@@ -520,10 +533,11 @@ class User {
|
|
520
533
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
521
534
|
"X-Fern-Language": "JavaScript",
|
522
535
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
523
|
-
"X-Fern-SDK-Version": "3.0.
|
536
|
+
"X-Fern-SDK-Version": "3.0.8",
|
524
537
|
},
|
525
538
|
contentType: "application/json",
|
526
539
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
540
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
527
541
|
});
|
528
542
|
if (_response.ok) {
|
529
543
|
return yield serializers.ClientFacingUser.parseOrThrow(_response.body, {
|
@@ -577,10 +591,11 @@ class User {
|
|
577
591
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
578
592
|
"X-Fern-Language": "JavaScript",
|
579
593
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
580
|
-
"X-Fern-SDK-Version": "3.0.
|
594
|
+
"X-Fern-SDK-Version": "3.0.8",
|
581
595
|
},
|
582
596
|
contentType: "application/json",
|
583
597
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
598
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
584
599
|
});
|
585
600
|
if (_response.ok) {
|
586
601
|
return yield serializers.UserSuccessResponse.parseOrThrow(_response.body, {
|
@@ -626,9 +641,14 @@ class User {
|
|
626
641
|
* @throws {@link Vital.BadRequestError}
|
627
642
|
* @throws {@link Vital.UnprocessableEntityError}
|
628
643
|
*/
|
629
|
-
refresh(userId, requestOptions) {
|
644
|
+
refresh(userId, request = {}, requestOptions) {
|
630
645
|
var _a;
|
631
646
|
return __awaiter(this, void 0, void 0, function* () {
|
647
|
+
const { timeout } = request;
|
648
|
+
const _queryParams = {};
|
649
|
+
if (timeout != null) {
|
650
|
+
_queryParams["timeout"] = timeout.toString();
|
651
|
+
}
|
632
652
|
const _response = yield core.fetcher({
|
633
653
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/user/refresh/${userId}`),
|
634
654
|
method: "POST",
|
@@ -636,10 +656,12 @@ class User {
|
|
636
656
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
637
657
|
"X-Fern-Language": "JavaScript",
|
638
658
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
639
|
-
"X-Fern-SDK-Version": "3.0.
|
659
|
+
"X-Fern-SDK-Version": "3.0.8",
|
640
660
|
},
|
641
661
|
contentType: "application/json",
|
662
|
+
queryParameters: _queryParams,
|
642
663
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
664
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
643
665
|
});
|
644
666
|
if (_response.ok) {
|
645
667
|
return yield serializers.UserRefreshSuccessResponse.parseOrThrow(_response.body, {
|
@@ -1,6 +1,10 @@
|
|
1
1
|
/**
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
3
3
|
*/
|
4
|
+
/**
|
5
|
+
* @example
|
6
|
+
* {}
|
7
|
+
*/
|
4
8
|
export interface UserPatchBody {
|
5
9
|
/**
|
6
10
|
* Fallback time zone of the user, in the form of a valid IANA tzdatabase identifier (e.g., `Europe/London` or `America/Los_Angeles`).
|
@@ -11,6 +11,7 @@ export declare namespace Vitals {
|
|
11
11
|
}
|
12
12
|
interface RequestOptions {
|
13
13
|
timeoutInSeconds?: number;
|
14
|
+
maxRetries?: number;
|
14
15
|
}
|
15
16
|
}
|
16
17
|
export declare class Vitals {
|
@@ -19,116 +20,231 @@ export declare class Vitals {
|
|
19
20
|
/**
|
20
21
|
* Get timeseries data for user
|
21
22
|
* @throws {@link Vital.UnprocessableEntityError}
|
23
|
+
*
|
24
|
+
* @example
|
25
|
+
* await vital.vitals.mindfulnessMinutes("user-id", {
|
26
|
+
* startDate: "start-date"
|
27
|
+
* })
|
22
28
|
*/
|
23
29
|
mindfulnessMinutes(userId: string, request: Vital.VitalsMindfulnessMinutesRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingMindfulnessMinutesTimeseries[]>;
|
24
30
|
/**
|
25
31
|
* Get timeseries data for user
|
26
32
|
* @throws {@link Vital.UnprocessableEntityError}
|
33
|
+
*
|
34
|
+
* @example
|
35
|
+
* await vital.vitals.caffeine("user-id", {
|
36
|
+
* startDate: "start-date"
|
37
|
+
* })
|
27
38
|
*/
|
28
39
|
caffeine(userId: string, request: Vital.VitalsCaffeineRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingCaffeineTimeseries[]>;
|
29
40
|
/**
|
30
41
|
* Get timeseries data for user
|
31
42
|
* @throws {@link Vital.UnprocessableEntityError}
|
43
|
+
*
|
44
|
+
* @example
|
45
|
+
* await vital.vitals.water("user-id", {
|
46
|
+
* startDate: "start-date"
|
47
|
+
* })
|
32
48
|
*/
|
33
49
|
water(userId: string, request: Vital.VitalsWaterRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingWaterTimeseries[]>;
|
34
50
|
/**
|
35
51
|
* Get timeseries data for user
|
36
52
|
* @throws {@link Vital.UnprocessableEntityError}
|
53
|
+
*
|
54
|
+
* @example
|
55
|
+
* await vital.vitals.steps("user-id", {
|
56
|
+
* startDate: "start-date"
|
57
|
+
* })
|
37
58
|
*/
|
38
59
|
steps(userId: string, request: Vital.VitalsStepsRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingStepsTimeseries[]>;
|
39
60
|
/**
|
40
61
|
* Get timeseries data for user
|
41
62
|
* @throws {@link Vital.UnprocessableEntityError}
|
63
|
+
*
|
64
|
+
* @example
|
65
|
+
* await vital.vitals.floorsClimbed("user-id", {
|
66
|
+
* startDate: "start-date"
|
67
|
+
* })
|
42
68
|
*/
|
43
69
|
floorsClimbed(userId: string, request: Vital.VitalsFloorsClimbedRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingFloorsClimbedTimeseries[]>;
|
44
70
|
/**
|
45
71
|
* Get timeseries data for user
|
46
72
|
* @throws {@link Vital.UnprocessableEntityError}
|
73
|
+
*
|
74
|
+
* @example
|
75
|
+
* await vital.vitals.distance("user-id", {
|
76
|
+
* startDate: "start-date"
|
77
|
+
* })
|
47
78
|
*/
|
48
79
|
distance(userId: string, request: Vital.VitalsDistanceRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingDistanceTimeseries[]>;
|
49
80
|
/**
|
50
81
|
* Get timeseries data for user
|
51
82
|
* @throws {@link Vital.UnprocessableEntityError}
|
83
|
+
*
|
84
|
+
* @example
|
85
|
+
* await vital.vitals.caloriesBasal("user-id", {
|
86
|
+
* startDate: "start-date"
|
87
|
+
* })
|
52
88
|
*/
|
53
89
|
caloriesBasal(userId: string, request: Vital.VitalsCaloriesBasalRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingCaloriesBasalTimeseries[]>;
|
54
90
|
/**
|
55
91
|
* Get timeseries data for user
|
56
92
|
* @throws {@link Vital.UnprocessableEntityError}
|
93
|
+
*
|
94
|
+
* @example
|
95
|
+
* await vital.vitals.caloriesActive("user-id", {
|
96
|
+
* startDate: "start-date"
|
97
|
+
* })
|
57
98
|
*/
|
58
99
|
caloriesActive(userId: string, request: Vital.VitalsCaloriesActiveRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingCaloriesActiveTimeseries[]>;
|
59
100
|
/**
|
60
101
|
* Get timeseries data for user
|
61
102
|
* @throws {@link Vital.UnprocessableEntityError}
|
103
|
+
*
|
104
|
+
* @example
|
105
|
+
* await vital.vitals.respiratoryRate("user-id", {
|
106
|
+
* startDate: "start-date"
|
107
|
+
* })
|
62
108
|
*/
|
63
109
|
respiratoryRate(userId: string, request: Vital.VitalsRespiratoryRateRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingRespiratoryRateTimeseries[]>;
|
64
110
|
/**
|
65
111
|
* Get timeseries data for user
|
66
112
|
* @throws {@link Vital.UnprocessableEntityError}
|
113
|
+
*
|
114
|
+
* @example
|
115
|
+
* await vital.vitals.ige("user-id", {
|
116
|
+
* startDate: "start-date"
|
117
|
+
* })
|
67
118
|
*/
|
68
119
|
ige(userId: string, request: Vital.VitalsIgeRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingIgeTimeseries[]>;
|
69
120
|
/**
|
70
121
|
* Get timeseries data for user
|
71
122
|
* @throws {@link Vital.UnprocessableEntityError}
|
123
|
+
*
|
124
|
+
* @example
|
125
|
+
* await vital.vitals.igg("user-id", {
|
126
|
+
* startDate: "start-date"
|
127
|
+
* })
|
72
128
|
*/
|
73
129
|
igg(userId: string, request: Vital.VitalsIggRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingIggTimeseries[]>;
|
74
130
|
/**
|
75
131
|
* Get timeseries data for user
|
76
132
|
* @throws {@link Vital.UnprocessableEntityError}
|
133
|
+
*
|
134
|
+
* @example
|
135
|
+
* await vital.vitals.hypnogram("user-id", {
|
136
|
+
* startDate: "start-date"
|
137
|
+
* })
|
77
138
|
*/
|
78
139
|
hypnogram(userId: string, request: Vital.VitalsHypnogramRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingHypnogramTimeseries[]>;
|
79
140
|
/**
|
80
141
|
* Get timeseries data for user
|
81
142
|
* @throws {@link Vital.UnprocessableEntityError}
|
143
|
+
*
|
144
|
+
* @example
|
145
|
+
* await vital.vitals.hrv("user-id", {
|
146
|
+
* startDate: "start-date"
|
147
|
+
* })
|
82
148
|
*/
|
83
149
|
hrv(userId: string, request: Vital.VitalsHrvRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingHrvTimeseries[]>;
|
84
150
|
/**
|
85
151
|
* Get timeseries data for user
|
86
152
|
* @throws {@link Vital.UnprocessableEntityError}
|
153
|
+
*
|
154
|
+
* @example
|
155
|
+
* await vital.vitals.heartrate("user-id", {
|
156
|
+
* startDate: "start-date"
|
157
|
+
* })
|
87
158
|
*/
|
88
159
|
heartrate(userId: string, request: Vital.VitalsHeartrateRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingHeartRateTimeseries[]>;
|
89
160
|
/**
|
90
161
|
* Get timeseries data for user
|
91
162
|
* @throws {@link Vital.UnprocessableEntityError}
|
163
|
+
*
|
164
|
+
* @example
|
165
|
+
* await vital.vitals.glucose("user-id", {
|
166
|
+
* startDate: "start-date"
|
167
|
+
* })
|
92
168
|
*/
|
93
169
|
glucose(userId: string, request: Vital.VitalsGlucoseRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingGlucoseTimeseries[]>;
|
94
170
|
/**
|
95
171
|
* Get timeseries data for user
|
96
172
|
* @throws {@link Vital.UnprocessableEntityError}
|
173
|
+
*
|
174
|
+
* @example
|
175
|
+
* await vital.vitals.triglycerides("user-id", {
|
176
|
+
* startDate: "start-date"
|
177
|
+
* })
|
97
178
|
*/
|
98
179
|
triglycerides(userId: string, request: Vital.VitalsTriglyceridesRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingCholesterolTimeseries[]>;
|
99
180
|
/**
|
100
181
|
* Get timeseries data for user
|
101
182
|
* @throws {@link Vital.UnprocessableEntityError}
|
183
|
+
*
|
184
|
+
* @example
|
185
|
+
* await vital.vitals.cholesterolTotal("user-id", {
|
186
|
+
* startDate: "start-date"
|
187
|
+
* })
|
102
188
|
*/
|
103
189
|
cholesterolTotal(userId: string, request: Vital.VitalsCholesterolTotalRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingCholesterolTimeseries[]>;
|
104
190
|
/**
|
105
191
|
* Get timeseries data for user
|
106
192
|
* @throws {@link Vital.UnprocessableEntityError}
|
193
|
+
*
|
194
|
+
* @example
|
195
|
+
* await vital.vitals.cholesterolHdl("user-id", {
|
196
|
+
* startDate: "start-date"
|
197
|
+
* })
|
107
198
|
*/
|
108
199
|
cholesterolHdl(userId: string, request: Vital.VitalsCholesterolHdlRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingCholesterolTimeseries[]>;
|
109
200
|
/**
|
110
201
|
* Get timeseries data for user
|
111
202
|
* @throws {@link Vital.UnprocessableEntityError}
|
203
|
+
*
|
204
|
+
* @example
|
205
|
+
* await vital.vitals.cholesterolLdl("user-id", {
|
206
|
+
* startDate: "start-date"
|
207
|
+
* })
|
112
208
|
*/
|
113
209
|
cholesterolLdl(userId: string, request: Vital.VitalsCholesterolLdlRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingCholesterolTimeseries[]>;
|
114
210
|
/**
|
115
211
|
* Get timeseries data for user
|
116
212
|
* @throws {@link Vital.UnprocessableEntityError}
|
213
|
+
*
|
214
|
+
* @example
|
215
|
+
* await vital.vitals.cholesterol("user-id", {
|
216
|
+
* startDate: "start-date"
|
217
|
+
* })
|
117
218
|
*/
|
118
219
|
cholesterol(userId: string, request: Vital.VitalsCholesterolRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingCholesterolTimeseries[]>;
|
119
220
|
/**
|
120
221
|
* Get timeseries data for user
|
121
222
|
* @throws {@link Vital.UnprocessableEntityError}
|
223
|
+
*
|
224
|
+
* @example
|
225
|
+
* await vital.vitals.bloodOxygen("user-id", {
|
226
|
+
* startDate: "start-date"
|
227
|
+
* })
|
122
228
|
*/
|
123
229
|
bloodOxygen(userId: string, request: Vital.VitalsBloodOxygenRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingBloodOxygenTimeseries[]>;
|
124
230
|
/**
|
125
231
|
* Get timeseries data for user
|
126
232
|
* @throws {@link Vital.UnprocessableEntityError}
|
233
|
+
*
|
234
|
+
* @example
|
235
|
+
* await vital.vitals.electrocardiogramVoltage("user-id", {
|
236
|
+
* startDate: "start-date"
|
237
|
+
* })
|
127
238
|
*/
|
128
239
|
electrocardiogramVoltage(userId: string, request: Vital.VitalsElectrocardiogramVoltageRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingElectrocardiogramVoltageTimeseries[]>;
|
129
240
|
/**
|
130
241
|
* Get timeseries data for user
|
131
242
|
* @throws {@link Vital.UnprocessableEntityError}
|
243
|
+
*
|
244
|
+
* @example
|
245
|
+
* await vital.vitals.bloodPressure("user-id", {
|
246
|
+
* startDate: "start-date"
|
247
|
+
* })
|
132
248
|
*/
|
133
249
|
bloodPressure(userId: string, request: Vital.VitalsBloodPressureRequest, requestOptions?: Vitals.RequestOptions): Promise<Vital.ClientFacingBloodPressureTimeseries[]>;
|
134
250
|
}
|