@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.Vitals = 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 Vitals {
|
|
53
52
|
/**
|
54
53
|
* Get timeseries data for user
|
55
54
|
* @throws {@link Vital.UnprocessableEntityError}
|
55
|
+
*
|
56
|
+
* @example
|
57
|
+
* await vital.vitals.mindfulnessMinutes("user-id", {
|
58
|
+
* startDate: "start-date"
|
59
|
+
* })
|
56
60
|
*/
|
57
61
|
mindfulnessMinutes(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/timeseries/${userId}/mindfulness_minutes`),
|
@@ -73,11 +77,12 @@ class Vitals {
|
|
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.8",
|
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.vitals.mindfulnessMinutes.Response.parseOrThrow(_response.body, {
|
@@ -121,18 +126,23 @@ class Vitals {
|
|
121
126
|
/**
|
122
127
|
* Get timeseries data for user
|
123
128
|
* @throws {@link Vital.UnprocessableEntityError}
|
129
|
+
*
|
130
|
+
* @example
|
131
|
+
* await vital.vitals.caffeine("user-id", {
|
132
|
+
* startDate: "start-date"
|
133
|
+
* })
|
124
134
|
*/
|
125
135
|
caffeine(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/timeseries/${userId}/caffeine`),
|
@@ -141,11 +151,12 @@ class Vitals {
|
|
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.8",
|
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.vitals.caffeine.Response.parseOrThrow(_response.body, {
|
@@ -189,18 +200,23 @@ class Vitals {
|
|
189
200
|
/**
|
190
201
|
* Get timeseries data for user
|
191
202
|
* @throws {@link Vital.UnprocessableEntityError}
|
203
|
+
*
|
204
|
+
* @example
|
205
|
+
* await vital.vitals.water("user-id", {
|
206
|
+
* startDate: "start-date"
|
207
|
+
* })
|
192
208
|
*/
|
193
209
|
water(userId, request, requestOptions) {
|
194
210
|
var _a;
|
195
211
|
return __awaiter(this, void 0, void 0, function* () {
|
196
212
|
const { provider, startDate, endDate } = request;
|
197
|
-
const _queryParams =
|
213
|
+
const _queryParams = {};
|
198
214
|
if (provider != null) {
|
199
|
-
_queryParams
|
215
|
+
_queryParams["provider"] = provider;
|
200
216
|
}
|
201
|
-
_queryParams
|
217
|
+
_queryParams["start_date"] = startDate;
|
202
218
|
if (endDate != null) {
|
203
|
-
_queryParams
|
219
|
+
_queryParams["end_date"] = endDate;
|
204
220
|
}
|
205
221
|
const _response = yield core.fetcher({
|
206
222
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/water`),
|
@@ -209,11 +225,12 @@ class Vitals {
|
|
209
225
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
210
226
|
"X-Fern-Language": "JavaScript",
|
211
227
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
212
|
-
"X-Fern-SDK-Version": "3.0.
|
228
|
+
"X-Fern-SDK-Version": "3.0.8",
|
213
229
|
},
|
214
230
|
contentType: "application/json",
|
215
231
|
queryParameters: _queryParams,
|
216
232
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
233
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
217
234
|
});
|
218
235
|
if (_response.ok) {
|
219
236
|
return yield serializers.vitals.water.Response.parseOrThrow(_response.body, {
|
@@ -257,18 +274,23 @@ class Vitals {
|
|
257
274
|
/**
|
258
275
|
* Get timeseries data for user
|
259
276
|
* @throws {@link Vital.UnprocessableEntityError}
|
277
|
+
*
|
278
|
+
* @example
|
279
|
+
* await vital.vitals.steps("user-id", {
|
280
|
+
* startDate: "start-date"
|
281
|
+
* })
|
260
282
|
*/
|
261
283
|
steps(userId, request, requestOptions) {
|
262
284
|
var _a;
|
263
285
|
return __awaiter(this, void 0, void 0, function* () {
|
264
286
|
const { provider, startDate, endDate } = request;
|
265
|
-
const _queryParams =
|
287
|
+
const _queryParams = {};
|
266
288
|
if (provider != null) {
|
267
|
-
_queryParams
|
289
|
+
_queryParams["provider"] = provider;
|
268
290
|
}
|
269
|
-
_queryParams
|
291
|
+
_queryParams["start_date"] = startDate;
|
270
292
|
if (endDate != null) {
|
271
|
-
_queryParams
|
293
|
+
_queryParams["end_date"] = endDate;
|
272
294
|
}
|
273
295
|
const _response = yield core.fetcher({
|
274
296
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/steps`),
|
@@ -277,11 +299,12 @@ class Vitals {
|
|
277
299
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
278
300
|
"X-Fern-Language": "JavaScript",
|
279
301
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
280
|
-
"X-Fern-SDK-Version": "3.0.
|
302
|
+
"X-Fern-SDK-Version": "3.0.8",
|
281
303
|
},
|
282
304
|
contentType: "application/json",
|
283
305
|
queryParameters: _queryParams,
|
284
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,
|
285
308
|
});
|
286
309
|
if (_response.ok) {
|
287
310
|
return yield serializers.vitals.steps.Response.parseOrThrow(_response.body, {
|
@@ -325,18 +348,23 @@ class Vitals {
|
|
325
348
|
/**
|
326
349
|
* Get timeseries data for user
|
327
350
|
* @throws {@link Vital.UnprocessableEntityError}
|
351
|
+
*
|
352
|
+
* @example
|
353
|
+
* await vital.vitals.floorsClimbed("user-id", {
|
354
|
+
* startDate: "start-date"
|
355
|
+
* })
|
328
356
|
*/
|
329
357
|
floorsClimbed(userId, request, requestOptions) {
|
330
358
|
var _a;
|
331
359
|
return __awaiter(this, void 0, void 0, function* () {
|
332
360
|
const { provider, startDate, endDate } = request;
|
333
|
-
const _queryParams =
|
361
|
+
const _queryParams = {};
|
334
362
|
if (provider != null) {
|
335
|
-
_queryParams
|
363
|
+
_queryParams["provider"] = provider;
|
336
364
|
}
|
337
|
-
_queryParams
|
365
|
+
_queryParams["start_date"] = startDate;
|
338
366
|
if (endDate != null) {
|
339
|
-
_queryParams
|
367
|
+
_queryParams["end_date"] = endDate;
|
340
368
|
}
|
341
369
|
const _response = yield core.fetcher({
|
342
370
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/floors_climbed`),
|
@@ -345,11 +373,12 @@ class Vitals {
|
|
345
373
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
346
374
|
"X-Fern-Language": "JavaScript",
|
347
375
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
348
|
-
"X-Fern-SDK-Version": "3.0.
|
376
|
+
"X-Fern-SDK-Version": "3.0.8",
|
349
377
|
},
|
350
378
|
contentType: "application/json",
|
351
379
|
queryParameters: _queryParams,
|
352
380
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
381
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
353
382
|
});
|
354
383
|
if (_response.ok) {
|
355
384
|
return yield serializers.vitals.floorsClimbed.Response.parseOrThrow(_response.body, {
|
@@ -393,18 +422,23 @@ class Vitals {
|
|
393
422
|
/**
|
394
423
|
* Get timeseries data for user
|
395
424
|
* @throws {@link Vital.UnprocessableEntityError}
|
425
|
+
*
|
426
|
+
* @example
|
427
|
+
* await vital.vitals.distance("user-id", {
|
428
|
+
* startDate: "start-date"
|
429
|
+
* })
|
396
430
|
*/
|
397
431
|
distance(userId, request, requestOptions) {
|
398
432
|
var _a;
|
399
433
|
return __awaiter(this, void 0, void 0, function* () {
|
400
434
|
const { provider, startDate, endDate } = request;
|
401
|
-
const _queryParams =
|
435
|
+
const _queryParams = {};
|
402
436
|
if (provider != null) {
|
403
|
-
_queryParams
|
437
|
+
_queryParams["provider"] = provider;
|
404
438
|
}
|
405
|
-
_queryParams
|
439
|
+
_queryParams["start_date"] = startDate;
|
406
440
|
if (endDate != null) {
|
407
|
-
_queryParams
|
441
|
+
_queryParams["end_date"] = endDate;
|
408
442
|
}
|
409
443
|
const _response = yield core.fetcher({
|
410
444
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/distance`),
|
@@ -413,11 +447,12 @@ class Vitals {
|
|
413
447
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
414
448
|
"X-Fern-Language": "JavaScript",
|
415
449
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
416
|
-
"X-Fern-SDK-Version": "3.0.
|
450
|
+
"X-Fern-SDK-Version": "3.0.8",
|
417
451
|
},
|
418
452
|
contentType: "application/json",
|
419
453
|
queryParameters: _queryParams,
|
420
454
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
455
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
421
456
|
});
|
422
457
|
if (_response.ok) {
|
423
458
|
return yield serializers.vitals.distance.Response.parseOrThrow(_response.body, {
|
@@ -461,18 +496,23 @@ class Vitals {
|
|
461
496
|
/**
|
462
497
|
* Get timeseries data for user
|
463
498
|
* @throws {@link Vital.UnprocessableEntityError}
|
499
|
+
*
|
500
|
+
* @example
|
501
|
+
* await vital.vitals.caloriesBasal("user-id", {
|
502
|
+
* startDate: "start-date"
|
503
|
+
* })
|
464
504
|
*/
|
465
505
|
caloriesBasal(userId, request, requestOptions) {
|
466
506
|
var _a;
|
467
507
|
return __awaiter(this, void 0, void 0, function* () {
|
468
508
|
const { provider, startDate, endDate } = request;
|
469
|
-
const _queryParams =
|
509
|
+
const _queryParams = {};
|
470
510
|
if (provider != null) {
|
471
|
-
_queryParams
|
511
|
+
_queryParams["provider"] = provider;
|
472
512
|
}
|
473
|
-
_queryParams
|
513
|
+
_queryParams["start_date"] = startDate;
|
474
514
|
if (endDate != null) {
|
475
|
-
_queryParams
|
515
|
+
_queryParams["end_date"] = endDate;
|
476
516
|
}
|
477
517
|
const _response = yield core.fetcher({
|
478
518
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_basal`),
|
@@ -481,11 +521,12 @@ class Vitals {
|
|
481
521
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
482
522
|
"X-Fern-Language": "JavaScript",
|
483
523
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
484
|
-
"X-Fern-SDK-Version": "3.0.
|
524
|
+
"X-Fern-SDK-Version": "3.0.8",
|
485
525
|
},
|
486
526
|
contentType: "application/json",
|
487
527
|
queryParameters: _queryParams,
|
488
528
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
529
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
489
530
|
});
|
490
531
|
if (_response.ok) {
|
491
532
|
return yield serializers.vitals.caloriesBasal.Response.parseOrThrow(_response.body, {
|
@@ -529,18 +570,23 @@ class Vitals {
|
|
529
570
|
/**
|
530
571
|
* Get timeseries data for user
|
531
572
|
* @throws {@link Vital.UnprocessableEntityError}
|
573
|
+
*
|
574
|
+
* @example
|
575
|
+
* await vital.vitals.caloriesActive("user-id", {
|
576
|
+
* startDate: "start-date"
|
577
|
+
* })
|
532
578
|
*/
|
533
579
|
caloriesActive(userId, request, requestOptions) {
|
534
580
|
var _a;
|
535
581
|
return __awaiter(this, void 0, void 0, function* () {
|
536
582
|
const { provider, startDate, endDate } = request;
|
537
|
-
const _queryParams =
|
583
|
+
const _queryParams = {};
|
538
584
|
if (provider != null) {
|
539
|
-
_queryParams
|
585
|
+
_queryParams["provider"] = provider;
|
540
586
|
}
|
541
|
-
_queryParams
|
587
|
+
_queryParams["start_date"] = startDate;
|
542
588
|
if (endDate != null) {
|
543
|
-
_queryParams
|
589
|
+
_queryParams["end_date"] = endDate;
|
544
590
|
}
|
545
591
|
const _response = yield core.fetcher({
|
546
592
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/calories_active`),
|
@@ -549,11 +595,12 @@ class Vitals {
|
|
549
595
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
550
596
|
"X-Fern-Language": "JavaScript",
|
551
597
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
552
|
-
"X-Fern-SDK-Version": "3.0.
|
598
|
+
"X-Fern-SDK-Version": "3.0.8",
|
553
599
|
},
|
554
600
|
contentType: "application/json",
|
555
601
|
queryParameters: _queryParams,
|
556
602
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
603
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
557
604
|
});
|
558
605
|
if (_response.ok) {
|
559
606
|
return yield serializers.vitals.caloriesActive.Response.parseOrThrow(_response.body, {
|
@@ -597,18 +644,23 @@ class Vitals {
|
|
597
644
|
/**
|
598
645
|
* Get timeseries data for user
|
599
646
|
* @throws {@link Vital.UnprocessableEntityError}
|
647
|
+
*
|
648
|
+
* @example
|
649
|
+
* await vital.vitals.respiratoryRate("user-id", {
|
650
|
+
* startDate: "start-date"
|
651
|
+
* })
|
600
652
|
*/
|
601
653
|
respiratoryRate(userId, request, requestOptions) {
|
602
654
|
var _a;
|
603
655
|
return __awaiter(this, void 0, void 0, function* () {
|
604
656
|
const { provider, startDate, endDate } = request;
|
605
|
-
const _queryParams =
|
657
|
+
const _queryParams = {};
|
606
658
|
if (provider != null) {
|
607
|
-
_queryParams
|
659
|
+
_queryParams["provider"] = provider;
|
608
660
|
}
|
609
|
-
_queryParams
|
661
|
+
_queryParams["start_date"] = startDate;
|
610
662
|
if (endDate != null) {
|
611
|
-
_queryParams
|
663
|
+
_queryParams["end_date"] = endDate;
|
612
664
|
}
|
613
665
|
const _response = yield core.fetcher({
|
614
666
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/respiratory_rate`),
|
@@ -617,11 +669,12 @@ class Vitals {
|
|
617
669
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
618
670
|
"X-Fern-Language": "JavaScript",
|
619
671
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
620
|
-
"X-Fern-SDK-Version": "3.0.
|
672
|
+
"X-Fern-SDK-Version": "3.0.8",
|
621
673
|
},
|
622
674
|
contentType: "application/json",
|
623
675
|
queryParameters: _queryParams,
|
624
676
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
677
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
625
678
|
});
|
626
679
|
if (_response.ok) {
|
627
680
|
return yield serializers.vitals.respiratoryRate.Response.parseOrThrow(_response.body, {
|
@@ -665,18 +718,23 @@ class Vitals {
|
|
665
718
|
/**
|
666
719
|
* Get timeseries data for user
|
667
720
|
* @throws {@link Vital.UnprocessableEntityError}
|
721
|
+
*
|
722
|
+
* @example
|
723
|
+
* await vital.vitals.ige("user-id", {
|
724
|
+
* startDate: "start-date"
|
725
|
+
* })
|
668
726
|
*/
|
669
727
|
ige(userId, request, requestOptions) {
|
670
728
|
var _a;
|
671
729
|
return __awaiter(this, void 0, void 0, function* () {
|
672
730
|
const { provider, startDate, endDate } = request;
|
673
|
-
const _queryParams =
|
731
|
+
const _queryParams = {};
|
674
732
|
if (provider != null) {
|
675
|
-
_queryParams
|
733
|
+
_queryParams["provider"] = provider;
|
676
734
|
}
|
677
|
-
_queryParams
|
735
|
+
_queryParams["start_date"] = startDate;
|
678
736
|
if (endDate != null) {
|
679
|
-
_queryParams
|
737
|
+
_queryParams["end_date"] = endDate;
|
680
738
|
}
|
681
739
|
const _response = yield core.fetcher({
|
682
740
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/ige`),
|
@@ -685,11 +743,12 @@ class Vitals {
|
|
685
743
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
686
744
|
"X-Fern-Language": "JavaScript",
|
687
745
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
688
|
-
"X-Fern-SDK-Version": "3.0.
|
746
|
+
"X-Fern-SDK-Version": "3.0.8",
|
689
747
|
},
|
690
748
|
contentType: "application/json",
|
691
749
|
queryParameters: _queryParams,
|
692
750
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
751
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
693
752
|
});
|
694
753
|
if (_response.ok) {
|
695
754
|
return yield serializers.vitals.ige.Response.parseOrThrow(_response.body, {
|
@@ -733,18 +792,23 @@ class Vitals {
|
|
733
792
|
/**
|
734
793
|
* Get timeseries data for user
|
735
794
|
* @throws {@link Vital.UnprocessableEntityError}
|
795
|
+
*
|
796
|
+
* @example
|
797
|
+
* await vital.vitals.igg("user-id", {
|
798
|
+
* startDate: "start-date"
|
799
|
+
* })
|
736
800
|
*/
|
737
801
|
igg(userId, request, requestOptions) {
|
738
802
|
var _a;
|
739
803
|
return __awaiter(this, void 0, void 0, function* () {
|
740
804
|
const { provider, startDate, endDate } = request;
|
741
|
-
const _queryParams =
|
805
|
+
const _queryParams = {};
|
742
806
|
if (provider != null) {
|
743
|
-
_queryParams
|
807
|
+
_queryParams["provider"] = provider;
|
744
808
|
}
|
745
|
-
_queryParams
|
809
|
+
_queryParams["start_date"] = startDate;
|
746
810
|
if (endDate != null) {
|
747
|
-
_queryParams
|
811
|
+
_queryParams["end_date"] = endDate;
|
748
812
|
}
|
749
813
|
const _response = yield core.fetcher({
|
750
814
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/igg`),
|
@@ -753,11 +817,12 @@ class Vitals {
|
|
753
817
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
754
818
|
"X-Fern-Language": "JavaScript",
|
755
819
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
756
|
-
"X-Fern-SDK-Version": "3.0.
|
820
|
+
"X-Fern-SDK-Version": "3.0.8",
|
757
821
|
},
|
758
822
|
contentType: "application/json",
|
759
823
|
queryParameters: _queryParams,
|
760
824
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
825
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
761
826
|
});
|
762
827
|
if (_response.ok) {
|
763
828
|
return yield serializers.vitals.igg.Response.parseOrThrow(_response.body, {
|
@@ -801,18 +866,23 @@ class Vitals {
|
|
801
866
|
/**
|
802
867
|
* Get timeseries data for user
|
803
868
|
* @throws {@link Vital.UnprocessableEntityError}
|
869
|
+
*
|
870
|
+
* @example
|
871
|
+
* await vital.vitals.hypnogram("user-id", {
|
872
|
+
* startDate: "start-date"
|
873
|
+
* })
|
804
874
|
*/
|
805
875
|
hypnogram(userId, request, requestOptions) {
|
806
876
|
var _a;
|
807
877
|
return __awaiter(this, void 0, void 0, function* () {
|
808
878
|
const { provider, startDate, endDate } = request;
|
809
|
-
const _queryParams =
|
879
|
+
const _queryParams = {};
|
810
880
|
if (provider != null) {
|
811
|
-
_queryParams
|
881
|
+
_queryParams["provider"] = provider;
|
812
882
|
}
|
813
|
-
_queryParams
|
883
|
+
_queryParams["start_date"] = startDate;
|
814
884
|
if (endDate != null) {
|
815
|
-
_queryParams
|
885
|
+
_queryParams["end_date"] = endDate;
|
816
886
|
}
|
817
887
|
const _response = yield core.fetcher({
|
818
888
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hypnogram`),
|
@@ -821,11 +891,12 @@ class Vitals {
|
|
821
891
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
822
892
|
"X-Fern-Language": "JavaScript",
|
823
893
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
824
|
-
"X-Fern-SDK-Version": "3.0.
|
894
|
+
"X-Fern-SDK-Version": "3.0.8",
|
825
895
|
},
|
826
896
|
contentType: "application/json",
|
827
897
|
queryParameters: _queryParams,
|
828
898
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
899
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
829
900
|
});
|
830
901
|
if (_response.ok) {
|
831
902
|
return yield serializers.vitals.hypnogram.Response.parseOrThrow(_response.body, {
|
@@ -869,18 +940,23 @@ class Vitals {
|
|
869
940
|
/**
|
870
941
|
* Get timeseries data for user
|
871
942
|
* @throws {@link Vital.UnprocessableEntityError}
|
943
|
+
*
|
944
|
+
* @example
|
945
|
+
* await vital.vitals.hrv("user-id", {
|
946
|
+
* startDate: "start-date"
|
947
|
+
* })
|
872
948
|
*/
|
873
949
|
hrv(userId, request, requestOptions) {
|
874
950
|
var _a;
|
875
951
|
return __awaiter(this, void 0, void 0, function* () {
|
876
952
|
const { provider, startDate, endDate } = request;
|
877
|
-
const _queryParams =
|
953
|
+
const _queryParams = {};
|
878
954
|
if (provider != null) {
|
879
|
-
_queryParams
|
955
|
+
_queryParams["provider"] = provider;
|
880
956
|
}
|
881
|
-
_queryParams
|
957
|
+
_queryParams["start_date"] = startDate;
|
882
958
|
if (endDate != null) {
|
883
|
-
_queryParams
|
959
|
+
_queryParams["end_date"] = endDate;
|
884
960
|
}
|
885
961
|
const _response = yield core.fetcher({
|
886
962
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/hrv`),
|
@@ -889,11 +965,12 @@ class Vitals {
|
|
889
965
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
890
966
|
"X-Fern-Language": "JavaScript",
|
891
967
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
892
|
-
"X-Fern-SDK-Version": "3.0.
|
968
|
+
"X-Fern-SDK-Version": "3.0.8",
|
893
969
|
},
|
894
970
|
contentType: "application/json",
|
895
971
|
queryParameters: _queryParams,
|
896
972
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
973
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
897
974
|
});
|
898
975
|
if (_response.ok) {
|
899
976
|
return yield serializers.vitals.hrv.Response.parseOrThrow(_response.body, {
|
@@ -937,18 +1014,23 @@ class Vitals {
|
|
937
1014
|
/**
|
938
1015
|
* Get timeseries data for user
|
939
1016
|
* @throws {@link Vital.UnprocessableEntityError}
|
1017
|
+
*
|
1018
|
+
* @example
|
1019
|
+
* await vital.vitals.heartrate("user-id", {
|
1020
|
+
* startDate: "start-date"
|
1021
|
+
* })
|
940
1022
|
*/
|
941
1023
|
heartrate(userId, request, requestOptions) {
|
942
1024
|
var _a;
|
943
1025
|
return __awaiter(this, void 0, void 0, function* () {
|
944
1026
|
const { provider, startDate, endDate } = request;
|
945
|
-
const _queryParams =
|
1027
|
+
const _queryParams = {};
|
946
1028
|
if (provider != null) {
|
947
|
-
_queryParams
|
1029
|
+
_queryParams["provider"] = provider;
|
948
1030
|
}
|
949
|
-
_queryParams
|
1031
|
+
_queryParams["start_date"] = startDate;
|
950
1032
|
if (endDate != null) {
|
951
|
-
_queryParams
|
1033
|
+
_queryParams["end_date"] = endDate;
|
952
1034
|
}
|
953
1035
|
const _response = yield core.fetcher({
|
954
1036
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/heartrate`),
|
@@ -957,11 +1039,12 @@ class Vitals {
|
|
957
1039
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
958
1040
|
"X-Fern-Language": "JavaScript",
|
959
1041
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
960
|
-
"X-Fern-SDK-Version": "3.0.
|
1042
|
+
"X-Fern-SDK-Version": "3.0.8",
|
961
1043
|
},
|
962
1044
|
contentType: "application/json",
|
963
1045
|
queryParameters: _queryParams,
|
964
1046
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1047
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
965
1048
|
});
|
966
1049
|
if (_response.ok) {
|
967
1050
|
return yield serializers.vitals.heartrate.Response.parseOrThrow(_response.body, {
|
@@ -1005,18 +1088,23 @@ class Vitals {
|
|
1005
1088
|
/**
|
1006
1089
|
* Get timeseries data for user
|
1007
1090
|
* @throws {@link Vital.UnprocessableEntityError}
|
1091
|
+
*
|
1092
|
+
* @example
|
1093
|
+
* await vital.vitals.glucose("user-id", {
|
1094
|
+
* startDate: "start-date"
|
1095
|
+
* })
|
1008
1096
|
*/
|
1009
1097
|
glucose(userId, request, requestOptions) {
|
1010
1098
|
var _a;
|
1011
1099
|
return __awaiter(this, void 0, void 0, function* () {
|
1012
1100
|
const { provider, startDate, endDate } = request;
|
1013
|
-
const _queryParams =
|
1101
|
+
const _queryParams = {};
|
1014
1102
|
if (provider != null) {
|
1015
|
-
_queryParams
|
1103
|
+
_queryParams["provider"] = provider;
|
1016
1104
|
}
|
1017
|
-
_queryParams
|
1105
|
+
_queryParams["start_date"] = startDate;
|
1018
1106
|
if (endDate != null) {
|
1019
|
-
_queryParams
|
1107
|
+
_queryParams["end_date"] = endDate;
|
1020
1108
|
}
|
1021
1109
|
const _response = yield core.fetcher({
|
1022
1110
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/glucose`),
|
@@ -1025,11 +1113,12 @@ class Vitals {
|
|
1025
1113
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1026
1114
|
"X-Fern-Language": "JavaScript",
|
1027
1115
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1028
|
-
"X-Fern-SDK-Version": "3.0.
|
1116
|
+
"X-Fern-SDK-Version": "3.0.8",
|
1029
1117
|
},
|
1030
1118
|
contentType: "application/json",
|
1031
1119
|
queryParameters: _queryParams,
|
1032
1120
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1121
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1033
1122
|
});
|
1034
1123
|
if (_response.ok) {
|
1035
1124
|
return yield serializers.vitals.glucose.Response.parseOrThrow(_response.body, {
|
@@ -1073,18 +1162,23 @@ class Vitals {
|
|
1073
1162
|
/**
|
1074
1163
|
* Get timeseries data for user
|
1075
1164
|
* @throws {@link Vital.UnprocessableEntityError}
|
1165
|
+
*
|
1166
|
+
* @example
|
1167
|
+
* await vital.vitals.triglycerides("user-id", {
|
1168
|
+
* startDate: "start-date"
|
1169
|
+
* })
|
1076
1170
|
*/
|
1077
1171
|
triglycerides(userId, request, requestOptions) {
|
1078
1172
|
var _a;
|
1079
1173
|
return __awaiter(this, void 0, void 0, function* () {
|
1080
1174
|
const { provider, startDate, endDate } = request;
|
1081
|
-
const _queryParams =
|
1175
|
+
const _queryParams = {};
|
1082
1176
|
if (provider != null) {
|
1083
|
-
_queryParams
|
1177
|
+
_queryParams["provider"] = provider;
|
1084
1178
|
}
|
1085
|
-
_queryParams
|
1179
|
+
_queryParams["start_date"] = startDate;
|
1086
1180
|
if (endDate != null) {
|
1087
|
-
_queryParams
|
1181
|
+
_queryParams["end_date"] = endDate;
|
1088
1182
|
}
|
1089
1183
|
const _response = yield core.fetcher({
|
1090
1184
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/triglycerides`),
|
@@ -1093,11 +1187,12 @@ class Vitals {
|
|
1093
1187
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1094
1188
|
"X-Fern-Language": "JavaScript",
|
1095
1189
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1096
|
-
"X-Fern-SDK-Version": "3.0.
|
1190
|
+
"X-Fern-SDK-Version": "3.0.8",
|
1097
1191
|
},
|
1098
1192
|
contentType: "application/json",
|
1099
1193
|
queryParameters: _queryParams,
|
1100
1194
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1195
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1101
1196
|
});
|
1102
1197
|
if (_response.ok) {
|
1103
1198
|
return yield serializers.vitals.triglycerides.Response.parseOrThrow(_response.body, {
|
@@ -1141,18 +1236,23 @@ class Vitals {
|
|
1141
1236
|
/**
|
1142
1237
|
* Get timeseries data for user
|
1143
1238
|
* @throws {@link Vital.UnprocessableEntityError}
|
1239
|
+
*
|
1240
|
+
* @example
|
1241
|
+
* await vital.vitals.cholesterolTotal("user-id", {
|
1242
|
+
* startDate: "start-date"
|
1243
|
+
* })
|
1144
1244
|
*/
|
1145
1245
|
cholesterolTotal(userId, request, requestOptions) {
|
1146
1246
|
var _a;
|
1147
1247
|
return __awaiter(this, void 0, void 0, function* () {
|
1148
1248
|
const { provider, startDate, endDate } = request;
|
1149
|
-
const _queryParams =
|
1249
|
+
const _queryParams = {};
|
1150
1250
|
if (provider != null) {
|
1151
|
-
_queryParams
|
1251
|
+
_queryParams["provider"] = provider;
|
1152
1252
|
}
|
1153
|
-
_queryParams
|
1253
|
+
_queryParams["start_date"] = startDate;
|
1154
1254
|
if (endDate != null) {
|
1155
|
-
_queryParams
|
1255
|
+
_queryParams["end_date"] = endDate;
|
1156
1256
|
}
|
1157
1257
|
const _response = yield core.fetcher({
|
1158
1258
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/total`),
|
@@ -1161,11 +1261,12 @@ class Vitals {
|
|
1161
1261
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1162
1262
|
"X-Fern-Language": "JavaScript",
|
1163
1263
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1164
|
-
"X-Fern-SDK-Version": "3.0.
|
1264
|
+
"X-Fern-SDK-Version": "3.0.8",
|
1165
1265
|
},
|
1166
1266
|
contentType: "application/json",
|
1167
1267
|
queryParameters: _queryParams,
|
1168
1268
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1269
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1169
1270
|
});
|
1170
1271
|
if (_response.ok) {
|
1171
1272
|
return yield serializers.vitals.cholesterolTotal.Response.parseOrThrow(_response.body, {
|
@@ -1209,18 +1310,23 @@ class Vitals {
|
|
1209
1310
|
/**
|
1210
1311
|
* Get timeseries data for user
|
1211
1312
|
* @throws {@link Vital.UnprocessableEntityError}
|
1313
|
+
*
|
1314
|
+
* @example
|
1315
|
+
* await vital.vitals.cholesterolHdl("user-id", {
|
1316
|
+
* startDate: "start-date"
|
1317
|
+
* })
|
1212
1318
|
*/
|
1213
1319
|
cholesterolHdl(userId, request, requestOptions) {
|
1214
1320
|
var _a;
|
1215
1321
|
return __awaiter(this, void 0, void 0, function* () {
|
1216
1322
|
const { provider, startDate, endDate } = request;
|
1217
|
-
const _queryParams =
|
1323
|
+
const _queryParams = {};
|
1218
1324
|
if (provider != null) {
|
1219
|
-
_queryParams
|
1325
|
+
_queryParams["provider"] = provider;
|
1220
1326
|
}
|
1221
|
-
_queryParams
|
1327
|
+
_queryParams["start_date"] = startDate;
|
1222
1328
|
if (endDate != null) {
|
1223
|
-
_queryParams
|
1329
|
+
_queryParams["end_date"] = endDate;
|
1224
1330
|
}
|
1225
1331
|
const _response = yield core.fetcher({
|
1226
1332
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/hdl`),
|
@@ -1229,11 +1335,12 @@ class Vitals {
|
|
1229
1335
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1230
1336
|
"X-Fern-Language": "JavaScript",
|
1231
1337
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1232
|
-
"X-Fern-SDK-Version": "3.0.
|
1338
|
+
"X-Fern-SDK-Version": "3.0.8",
|
1233
1339
|
},
|
1234
1340
|
contentType: "application/json",
|
1235
1341
|
queryParameters: _queryParams,
|
1236
1342
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1343
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1237
1344
|
});
|
1238
1345
|
if (_response.ok) {
|
1239
1346
|
return yield serializers.vitals.cholesterolHdl.Response.parseOrThrow(_response.body, {
|
@@ -1277,18 +1384,23 @@ class Vitals {
|
|
1277
1384
|
/**
|
1278
1385
|
* Get timeseries data for user
|
1279
1386
|
* @throws {@link Vital.UnprocessableEntityError}
|
1387
|
+
*
|
1388
|
+
* @example
|
1389
|
+
* await vital.vitals.cholesterolLdl("user-id", {
|
1390
|
+
* startDate: "start-date"
|
1391
|
+
* })
|
1280
1392
|
*/
|
1281
1393
|
cholesterolLdl(userId, request, requestOptions) {
|
1282
1394
|
var _a;
|
1283
1395
|
return __awaiter(this, void 0, void 0, function* () {
|
1284
1396
|
const { provider, startDate, endDate } = request;
|
1285
|
-
const _queryParams =
|
1397
|
+
const _queryParams = {};
|
1286
1398
|
if (provider != null) {
|
1287
|
-
_queryParams
|
1399
|
+
_queryParams["provider"] = provider;
|
1288
1400
|
}
|
1289
|
-
_queryParams
|
1401
|
+
_queryParams["start_date"] = startDate;
|
1290
1402
|
if (endDate != null) {
|
1291
|
-
_queryParams
|
1403
|
+
_queryParams["end_date"] = endDate;
|
1292
1404
|
}
|
1293
1405
|
const _response = yield core.fetcher({
|
1294
1406
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol/ldl`),
|
@@ -1297,11 +1409,12 @@ class Vitals {
|
|
1297
1409
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1298
1410
|
"X-Fern-Language": "JavaScript",
|
1299
1411
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1300
|
-
"X-Fern-SDK-Version": "3.0.
|
1412
|
+
"X-Fern-SDK-Version": "3.0.8",
|
1301
1413
|
},
|
1302
1414
|
contentType: "application/json",
|
1303
1415
|
queryParameters: _queryParams,
|
1304
1416
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1417
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1305
1418
|
});
|
1306
1419
|
if (_response.ok) {
|
1307
1420
|
return yield serializers.vitals.cholesterolLdl.Response.parseOrThrow(_response.body, {
|
@@ -1345,18 +1458,23 @@ class Vitals {
|
|
1345
1458
|
/**
|
1346
1459
|
* Get timeseries data for user
|
1347
1460
|
* @throws {@link Vital.UnprocessableEntityError}
|
1461
|
+
*
|
1462
|
+
* @example
|
1463
|
+
* await vital.vitals.cholesterol("user-id", {
|
1464
|
+
* startDate: "start-date"
|
1465
|
+
* })
|
1348
1466
|
*/
|
1349
1467
|
cholesterol(userId, request, requestOptions) {
|
1350
1468
|
var _a;
|
1351
1469
|
return __awaiter(this, void 0, void 0, function* () {
|
1352
1470
|
const { provider, startDate, endDate } = request;
|
1353
|
-
const _queryParams =
|
1471
|
+
const _queryParams = {};
|
1354
1472
|
if (provider != null) {
|
1355
|
-
_queryParams
|
1473
|
+
_queryParams["provider"] = provider;
|
1356
1474
|
}
|
1357
|
-
_queryParams
|
1475
|
+
_queryParams["start_date"] = startDate;
|
1358
1476
|
if (endDate != null) {
|
1359
|
-
_queryParams
|
1477
|
+
_queryParams["end_date"] = endDate;
|
1360
1478
|
}
|
1361
1479
|
const _response = yield core.fetcher({
|
1362
1480
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/cholesterol`),
|
@@ -1365,11 +1483,12 @@ class Vitals {
|
|
1365
1483
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1366
1484
|
"X-Fern-Language": "JavaScript",
|
1367
1485
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1368
|
-
"X-Fern-SDK-Version": "3.0.
|
1486
|
+
"X-Fern-SDK-Version": "3.0.8",
|
1369
1487
|
},
|
1370
1488
|
contentType: "application/json",
|
1371
1489
|
queryParameters: _queryParams,
|
1372
1490
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1491
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1373
1492
|
});
|
1374
1493
|
if (_response.ok) {
|
1375
1494
|
return yield serializers.vitals.cholesterol.Response.parseOrThrow(_response.body, {
|
@@ -1413,18 +1532,23 @@ class Vitals {
|
|
1413
1532
|
/**
|
1414
1533
|
* Get timeseries data for user
|
1415
1534
|
* @throws {@link Vital.UnprocessableEntityError}
|
1535
|
+
*
|
1536
|
+
* @example
|
1537
|
+
* await vital.vitals.bloodOxygen("user-id", {
|
1538
|
+
* startDate: "start-date"
|
1539
|
+
* })
|
1416
1540
|
*/
|
1417
1541
|
bloodOxygen(userId, request, requestOptions) {
|
1418
1542
|
var _a;
|
1419
1543
|
return __awaiter(this, void 0, void 0, function* () {
|
1420
1544
|
const { provider, startDate, endDate } = request;
|
1421
|
-
const _queryParams =
|
1545
|
+
const _queryParams = {};
|
1422
1546
|
if (provider != null) {
|
1423
|
-
_queryParams
|
1547
|
+
_queryParams["provider"] = provider;
|
1424
1548
|
}
|
1425
|
-
_queryParams
|
1549
|
+
_queryParams["start_date"] = startDate;
|
1426
1550
|
if (endDate != null) {
|
1427
|
-
_queryParams
|
1551
|
+
_queryParams["end_date"] = endDate;
|
1428
1552
|
}
|
1429
1553
|
const _response = yield core.fetcher({
|
1430
1554
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_oxygen`),
|
@@ -1433,11 +1557,12 @@ class Vitals {
|
|
1433
1557
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1434
1558
|
"X-Fern-Language": "JavaScript",
|
1435
1559
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1436
|
-
"X-Fern-SDK-Version": "3.0.
|
1560
|
+
"X-Fern-SDK-Version": "3.0.8",
|
1437
1561
|
},
|
1438
1562
|
contentType: "application/json",
|
1439
1563
|
queryParameters: _queryParams,
|
1440
1564
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1565
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1441
1566
|
});
|
1442
1567
|
if (_response.ok) {
|
1443
1568
|
return yield serializers.vitals.bloodOxygen.Response.parseOrThrow(_response.body, {
|
@@ -1481,18 +1606,23 @@ class Vitals {
|
|
1481
1606
|
/**
|
1482
1607
|
* Get timeseries data for user
|
1483
1608
|
* @throws {@link Vital.UnprocessableEntityError}
|
1609
|
+
*
|
1610
|
+
* @example
|
1611
|
+
* await vital.vitals.electrocardiogramVoltage("user-id", {
|
1612
|
+
* startDate: "start-date"
|
1613
|
+
* })
|
1484
1614
|
*/
|
1485
1615
|
electrocardiogramVoltage(userId, request, requestOptions) {
|
1486
1616
|
var _a;
|
1487
1617
|
return __awaiter(this, void 0, void 0, function* () {
|
1488
1618
|
const { provider, startDate, endDate } = request;
|
1489
|
-
const _queryParams =
|
1619
|
+
const _queryParams = {};
|
1490
1620
|
if (provider != null) {
|
1491
|
-
_queryParams
|
1621
|
+
_queryParams["provider"] = provider;
|
1492
1622
|
}
|
1493
|
-
_queryParams
|
1623
|
+
_queryParams["start_date"] = startDate;
|
1494
1624
|
if (endDate != null) {
|
1495
|
-
_queryParams
|
1625
|
+
_queryParams["end_date"] = endDate;
|
1496
1626
|
}
|
1497
1627
|
const _response = yield core.fetcher({
|
1498
1628
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/electrocardiogram_voltage`),
|
@@ -1501,11 +1631,12 @@ class Vitals {
|
|
1501
1631
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1502
1632
|
"X-Fern-Language": "JavaScript",
|
1503
1633
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1504
|
-
"X-Fern-SDK-Version": "3.0.
|
1634
|
+
"X-Fern-SDK-Version": "3.0.8",
|
1505
1635
|
},
|
1506
1636
|
contentType: "application/json",
|
1507
1637
|
queryParameters: _queryParams,
|
1508
1638
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1639
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1509
1640
|
});
|
1510
1641
|
if (_response.ok) {
|
1511
1642
|
return yield serializers.vitals.electrocardiogramVoltage.Response.parseOrThrow(_response.body, {
|
@@ -1549,18 +1680,23 @@ class Vitals {
|
|
1549
1680
|
/**
|
1550
1681
|
* Get timeseries data for user
|
1551
1682
|
* @throws {@link Vital.UnprocessableEntityError}
|
1683
|
+
*
|
1684
|
+
* @example
|
1685
|
+
* await vital.vitals.bloodPressure("user-id", {
|
1686
|
+
* startDate: "start-date"
|
1687
|
+
* })
|
1552
1688
|
*/
|
1553
1689
|
bloodPressure(userId, request, requestOptions) {
|
1554
1690
|
var _a;
|
1555
1691
|
return __awaiter(this, void 0, void 0, function* () {
|
1556
1692
|
const { provider, startDate, endDate } = request;
|
1557
|
-
const _queryParams =
|
1693
|
+
const _queryParams = {};
|
1558
1694
|
if (provider != null) {
|
1559
|
-
_queryParams
|
1695
|
+
_queryParams["provider"] = provider;
|
1560
1696
|
}
|
1561
|
-
_queryParams
|
1697
|
+
_queryParams["start_date"] = startDate;
|
1562
1698
|
if (endDate != null) {
|
1563
|
-
_queryParams
|
1699
|
+
_queryParams["end_date"] = endDate;
|
1564
1700
|
}
|
1565
1701
|
const _response = yield core.fetcher({
|
1566
1702
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${userId}/blood_pressure`),
|
@@ -1569,11 +1705,12 @@ class Vitals {
|
|
1569
1705
|
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1570
1706
|
"X-Fern-Language": "JavaScript",
|
1571
1707
|
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1572
|
-
"X-Fern-SDK-Version": "3.0.
|
1708
|
+
"X-Fern-SDK-Version": "3.0.8",
|
1573
1709
|
},
|
1574
1710
|
contentType: "application/json",
|
1575
1711
|
queryParameters: _queryParams,
|
1576
1712
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1713
|
+
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1577
1714
|
});
|
1578
1715
|
if (_response.ok) {
|
1579
1716
|
return yield serializers.vitals.bloodPressure.Response.parseOrThrow(_response.body, {
|