@tryvital/vital-node 2.1.22 → 3.0.1
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 +63 -0
- package/Client.js +87 -0
- package/README.md +79 -9
- package/api/errors/BadRequestError.d.ts +8 -0
- package/api/errors/BadRequestError.js +40 -0
- package/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/api/errors/UnprocessableEntityError.js +40 -0
- package/api/errors/index.d.ts +2 -0
- package/api/errors/index.js +18 -0
- package/api/index.d.ts +3 -0
- package/api/index.js +19 -0
- package/api/resources/activity/client/Client.d.ts +29 -0
- package/api/resources/activity/client/Client.js +190 -0
- package/api/resources/activity/client/index.d.ts +1 -0
- package/api/resources/activity/client/index.js +17 -0
- package/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +17 -0
- package/api/resources/activity/client/requests/ActivityGetRawRequest.js +5 -0
- package/api/resources/activity/client/requests/ActivityGetRequest.d.ts +17 -0
- package/api/resources/activity/client/requests/ActivityGetRequest.js +5 -0
- package/api/resources/activity/client/requests/index.d.ts +2 -0
- package/api/resources/activity/index.d.ts +1 -0
- package/api/resources/activity/index.js +17 -0
- package/api/resources/body/client/Client.d.ts +29 -0
- package/api/resources/body/client/Client.js +190 -0
- package/api/resources/body/client/index.d.ts +1 -0
- package/api/resources/body/client/index.js +17 -0
- package/api/resources/body/client/requests/BodyGetRawRequest.d.ts +17 -0
- package/api/resources/body/client/requests/BodyGetRawRequest.js +5 -0
- package/api/resources/body/client/requests/BodyGetRequest.d.ts +17 -0
- package/api/resources/body/client/requests/BodyGetRequest.js +5 -0
- package/api/resources/body/client/requests/index.d.ts +2 -0
- package/api/resources/body/index.d.ts +1 -0
- package/api/resources/body/index.js +17 -0
- package/api/resources/devices/client/Client.d.ts +24 -0
- package/api/resources/devices/client/Client.js +118 -0
- package/api/resources/devices/client/index.d.ts +1 -0
- package/api/resources/devices/client/index.js +17 -0
- package/api/resources/devices/client/requests/DevicesGetRawRequest.d.ts +9 -0
- package/api/resources/devices/client/requests/DevicesGetRawRequest.js +5 -0
- package/api/resources/devices/client/requests/index.d.ts +1 -0
- package/api/resources/devices/index.d.ts +1 -0
- package/api/resources/devices/index.js +17 -0
- package/api/resources/index.d.ts +29 -0
- package/api/resources/index.js +58 -0
- package/api/resources/insurance/client/Client.d.ts +27 -0
- package/api/resources/insurance/client/Client.js +173 -0
- package/api/resources/insurance/client/index.d.ts +1 -0
- package/api/resources/insurance/client/index.js +17 -0
- package/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +6 -0
- package/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.js +5 -0
- package/api/resources/insurance/client/requests/PayorSearchRequest.d.ts +7 -0
- package/api/resources/insurance/client/requests/PayorSearchRequest.js +5 -0
- package/api/resources/insurance/client/requests/index.d.ts +2 -0
- package/api/resources/insurance/index.d.ts +1 -0
- package/api/resources/insurance/index.js +17 -0
- package/api/resources/labTests/client/Client.d.ts +129 -0
- package/api/resources/labTests/client/Client.js +1350 -0
- package/api/resources/labTests/client/index.d.ts +1 -0
- package/api/resources/labTests/client/index.js +17 -0
- package/api/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +6 -0
- package/api/resources/labTests/client/requests/AppointmentBookingRequest.js +5 -0
- package/api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +7 -0
- package/api/resources/labTests/client/requests/AppointmentCancelRequest.js +5 -0
- package/api/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +6 -0
- package/api/resources/labTests/client/requests/AppointmentRescheduleRequest.js +5 -0
- package/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +13 -0
- package/api/resources/labTests/client/requests/CreateLabTestRequest.js +5 -0
- package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +15 -0
- package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.js +5 -0
- package/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +9 -0
- package/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.js +5 -0
- package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +15 -0
- package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.js +5 -0
- package/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +27 -0
- package/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.js +5 -0
- package/api/resources/labTests/client/requests/index.d.ts +8 -0
- package/api/resources/labTests/index.d.ts +1 -0
- package/api/resources/labTests/index.js +17 -0
- package/api/resources/link/client/Client.d.ts +101 -0
- package/api/resources/link/client/Client.js +893 -0
- package/api/resources/link/client/index.d.ts +1 -0
- package/api/resources/link/client/index.js +17 -0
- package/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +8 -0
- package/api/resources/link/client/requests/BeginLinkTokenRequest.js +5 -0
- package/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +10 -0
- package/api/resources/link/client/requests/DemoConnectionCreationPayload.js +5 -0
- package/api/resources/link/client/requests/EmailAuthLink.d.ts +10 -0
- package/api/resources/link/client/requests/EmailAuthLink.js +5 -0
- package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +9 -0
- package/api/resources/link/client/requests/EmailProviderAuthLink.js +5 -0
- package/api/resources/link/client/requests/IndividualProviderData.d.ts +10 -0
- package/api/resources/link/client/requests/IndividualProviderData.js +5 -0
- package/api/resources/link/client/requests/LinkCodeCreateRequest.d.ts +7 -0
- package/api/resources/link/client/requests/LinkCodeCreateRequest.js +5 -0
- package/api/resources/link/client/requests/LinkConnectOauthProviderRequest.d.ts +6 -0
- package/api/resources/link/client/requests/LinkConnectOauthProviderRequest.js +5 -0
- package/api/resources/link/client/requests/LinkTokenBase.d.ts +8 -0
- package/api/resources/link/client/requests/LinkTokenBase.js +5 -0
- package/api/resources/link/client/requests/LinkTokenExchange.d.ts +11 -0
- package/api/resources/link/client/requests/LinkTokenExchange.js +5 -0
- package/api/resources/link/client/requests/ManualConnectionData.d.ts +7 -0
- package/api/resources/link/client/requests/ManualConnectionData.js +5 -0
- package/api/resources/link/client/requests/PasswordAuthLink.d.ts +11 -0
- package/api/resources/link/client/requests/PasswordAuthLink.js +5 -0
- package/api/resources/link/client/requests/index.d.ts +11 -0
- package/api/resources/link/index.d.ts +1 -0
- package/api/resources/link/index.js +17 -0
- package/api/resources/meal/client/Client.d.ts +24 -0
- package/api/resources/meal/client/Client.js +122 -0
- package/api/resources/meal/client/index.d.ts +1 -0
- package/api/resources/meal/client/index.js +17 -0
- package/api/resources/meal/client/requests/MealGetRequest.d.ts +17 -0
- package/api/resources/meal/client/requests/MealGetRequest.js +5 -0
- package/api/resources/meal/client/requests/index.d.ts +1 -0
- package/api/resources/meal/index.d.ts +1 -0
- package/api/resources/meal/index.js +17 -0
- package/api/resources/profile/client/Client.d.ts +29 -0
- package/api/resources/profile/client/Client.js +182 -0
- package/api/resources/profile/client/index.d.ts +1 -0
- package/api/resources/profile/client/index.js +17 -0
- package/api/resources/profile/client/requests/ProfileGetRawRequest.d.ts +9 -0
- package/api/resources/profile/client/requests/ProfileGetRawRequest.js +5 -0
- package/api/resources/profile/client/requests/ProfileGetRequest.d.ts +9 -0
- package/api/resources/profile/client/requests/ProfileGetRequest.js +5 -0
- package/api/resources/profile/client/requests/index.d.ts +2 -0
- package/api/resources/profile/index.d.ts +1 -0
- package/api/resources/profile/index.js +17 -0
- package/api/resources/providers/client/Client.d.ts +23 -0
- package/api/resources/providers/client/Client.js +99 -0
- package/api/resources/providers/client/index.d.ts +1 -0
- package/api/resources/providers/index.d.ts +1 -0
- package/api/resources/providers/index.js +17 -0
- package/api/resources/sleep/client/Client.d.ts +39 -0
- package/api/resources/sleep/client/Client.js +316 -0
- package/api/resources/sleep/client/index.d.ts +1 -0
- package/api/resources/sleep/client/index.js +17 -0
- package/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +17 -0
- package/api/resources/sleep/client/requests/SleepGetRawRequest.js +5 -0
- package/api/resources/sleep/client/requests/SleepGetRequest.d.ts +17 -0
- package/api/resources/sleep/client/requests/SleepGetRequest.js +5 -0
- package/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +17 -0
- package/api/resources/sleep/client/requests/SleepGetStreamRequest.js +5 -0
- package/api/resources/sleep/client/requests/index.d.ts +3 -0
- package/api/resources/sleep/index.d.ts +1 -0
- package/api/resources/sleep/index.js +17 -0
- package/api/resources/team/client/Client.d.ts +44 -0
- package/api/resources/team/client/Client.js +393 -0
- package/api/resources/team/client/index.d.ts +1 -0
- package/api/resources/team/client/index.js +17 -0
- package/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.d.ts +6 -0
- package/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.js +5 -0
- package/api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts +6 -0
- package/api/resources/team/client/requests/TeamGetUserByIdRequest.js +5 -0
- package/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +6 -0
- package/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.js +5 -0
- package/api/resources/team/client/requests/index.d.ts +3 -0
- package/api/resources/team/index.d.ts +1 -0
- package/api/resources/team/index.js +17 -0
- package/api/resources/testkit/client/Client.d.ts +28 -0
- package/api/resources/testkit/client/Client.js +172 -0
- package/api/resources/testkit/client/index.d.ts +1 -0
- package/api/resources/testkit/client/index.js +17 -0
- package/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +9 -0
- package/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +5 -0
- package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +12 -0
- package/api/resources/testkit/client/requests/RegisterTestkitRequest.js +5 -0
- package/api/resources/testkit/client/requests/index.d.ts +2 -0
- package/api/resources/testkit/index.d.ts +1 -0
- package/api/resources/testkit/index.js +17 -0
- package/api/resources/user/client/Client.d.ts +70 -0
- package/api/resources/user/client/Client.js +691 -0
- package/api/resources/user/client/index.d.ts +1 -0
- package/api/resources/user/client/index.js +17 -0
- package/api/resources/user/client/requests/UserCreateBody.d.ts +13 -0
- package/api/resources/user/client/requests/UserCreateBody.js +5 -0
- package/api/resources/user/client/requests/UserGetAllRequest.d.ts +7 -0
- package/api/resources/user/client/requests/UserGetAllRequest.js +5 -0
- package/api/resources/user/client/requests/UserPatchBody.d.ts +11 -0
- package/api/resources/user/client/requests/UserPatchBody.js +5 -0
- package/api/resources/user/client/requests/index.d.ts +3 -0
- package/api/resources/user/client/requests/index.js +2 -0
- package/api/resources/user/index.d.ts +1 -0
- package/api/resources/user/index.js +17 -0
- package/api/resources/vitals/client/Client.d.ts +134 -0
- package/api/resources/vitals/client/Client.js +1618 -0
- package/api/resources/vitals/client/index.d.ts +1 -0
- package/api/resources/vitals/client/index.js +17 -0
- package/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsBloodPressureRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsCaffeineRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsDistanceRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsGlucoseRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsHeartrateRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsHrvRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsHypnogramRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsIgeRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsIggRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsStepsRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsTriglyceridesRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsTriglyceridesRequest.js +5 -0
- package/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +17 -0
- package/api/resources/vitals/client/requests/VitalsWaterRequest.js +5 -0
- package/api/resources/vitals/client/requests/index.d.ts +23 -0
- package/api/resources/vitals/client/requests/index.js +2 -0
- package/api/resources/vitals/index.d.ts +1 -0
- package/api/resources/vitals/index.js +17 -0
- package/api/resources/workouts/client/Client.d.ts +33 -0
- package/api/resources/workouts/client/Client.js +247 -0
- package/api/resources/workouts/client/index.d.ts +1 -0
- package/api/resources/workouts/client/index.js +17 -0
- package/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +17 -0
- package/api/resources/workouts/client/requests/WorkoutsGetRawRequest.js +5 -0
- package/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +17 -0
- package/api/resources/workouts/client/requests/WorkoutsGetRequest.js +5 -0
- package/api/resources/workouts/client/requests/index.d.ts +2 -0
- package/api/resources/workouts/client/requests/index.js +2 -0
- package/api/resources/workouts/index.d.ts +1 -0
- package/api/resources/workouts/index.js +17 -0
- package/api/types/ActivityV2InDb.d.ts +14 -0
- package/api/types/ActivityV2InDb.js +5 -0
- package/api/types/Address.d.ts +11 -0
- package/api/types/Address.js +5 -0
- package/api/types/AppointmentAvailabilitySlots.d.ts +8 -0
- package/api/types/AppointmentAvailabilitySlots.js +5 -0
- package/api/types/AppointmentEventStatus.d.ts +13 -0
- package/api/types/AppointmentEventStatus.js +12 -0
- package/api/types/AppointmentProvider.d.ts +11 -0
- package/api/types/AppointmentProvider.js +10 -0
- package/api/types/AppointmentStatus.d.ts +14 -0
- package/api/types/AppointmentStatus.js +13 -0
- package/api/types/AppointmentType.d.ts +4 -0
- package/api/types/AppointmentType.js +5 -0
- package/api/types/AreaInfo.d.ts +8 -0
- package/api/types/AreaInfo.js +5 -0
- package/api/types/AuthType.d.ts +12 -0
- package/api/types/AuthType.js +11 -0
- package/api/types/BiomarkerResult.d.ts +24 -0
- package/api/types/BiomarkerResult.js +5 -0
- package/api/types/BodyV2InDb.d.ts +15 -0
- package/api/types/BodyV2InDb.js +5 -0
- package/api/types/ClientActivityResponse.d.ts +7 -0
- package/api/types/ClientActivityResponse.js +5 -0
- package/api/types/ClientBodyResponse.d.ts +7 -0
- package/api/types/ClientBodyResponse.js +5 -0
- package/api/types/ClientFacingActivity.d.ts +39 -0
- package/api/types/ClientFacingActivity.js +5 -0
- package/api/types/ClientFacingApiKey.d.ts +11 -0
- package/api/types/ClientFacingApiKey.js +5 -0
- package/api/types/ClientFacingAppointment.d.ts +24 -0
- package/api/types/ClientFacingAppointment.js +5 -0
- package/api/types/ClientFacingAppointmentCancellationReason.d.ts +8 -0
- package/api/types/ClientFacingAppointmentCancellationReason.js +5 -0
- package/api/types/ClientFacingAppointmentEvent.d.ts +9 -0
- package/api/types/ClientFacingAppointmentEvent.js +5 -0
- package/api/types/ClientFacingAtHomePhlebotomyOrder.d.ts +15 -0
- package/api/types/ClientFacingAtHomePhlebotomyOrder.js +5 -0
- package/api/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +7 -0
- package/api/types/ClientFacingAtHomePhlebotomyOrderDetails.js +5 -0
- package/api/types/ClientFacingBloodOxygenTimeseries.d.ts +17 -0
- package/api/types/ClientFacingBloodOxygenTimeseries.js +5 -0
- package/api/types/ClientFacingBloodPressureTimeseries.d.ts +16 -0
- package/api/types/ClientFacingBloodPressureTimeseries.js +5 -0
- package/api/types/ClientFacingBody.d.ts +18 -0
- package/api/types/ClientFacingBody.js +5 -0
- package/api/types/ClientFacingCaffeineTimeseries.d.ts +21 -0
- package/api/types/ClientFacingCaffeineTimeseries.js +5 -0
- package/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +20 -0
- package/api/types/ClientFacingCaloriesActiveTimeseries.js +5 -0
- package/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +16 -0
- package/api/types/ClientFacingCaloriesBasalTimeseries.js +5 -0
- package/api/types/ClientFacingCholesterolTimeseries.d.ts +17 -0
- package/api/types/ClientFacingCholesterolTimeseries.js +5 -0
- package/api/types/ClientFacingDiagnosisInformation.d.ts +9 -0
- package/api/types/ClientFacingDiagnosisInformation.js +5 -0
- package/api/types/ClientFacingDistanceTimeseries.d.ts +20 -0
- package/api/types/ClientFacingDistanceTimeseries.js +5 -0
- package/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/api/types/ClientFacingElectrocardiogramVoltageTimeseries.js +5 -0
- package/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +16 -0
- package/api/types/ClientFacingFloorsClimbedTimeseries.js +5 -0
- package/api/types/ClientFacingFood.d.ts +9 -0
- package/api/types/ClientFacingFood.js +5 -0
- package/api/types/ClientFacingGlucoseTimeseries.d.ts +17 -0
- package/api/types/ClientFacingGlucoseTimeseries.js +5 -0
- package/api/types/ClientFacingHeartRate.d.ts +13 -0
- package/api/types/ClientFacingHeartRate.js +5 -0
- package/api/types/ClientFacingHeartRateTimeseries.d.ts +17 -0
- package/api/types/ClientFacingHeartRateTimeseries.js +5 -0
- package/api/types/ClientFacingHrvTimeseries.d.ts +17 -0
- package/api/types/ClientFacingHrvTimeseries.js +5 -0
- package/api/types/ClientFacingHypnogramTimeseries.d.ts +21 -0
- package/api/types/ClientFacingHypnogramTimeseries.js +5 -0
- package/api/types/ClientFacingIgeTimeseries.d.ts +17 -0
- package/api/types/ClientFacingIgeTimeseries.js +5 -0
- package/api/types/ClientFacingIggTimeseries.d.ts +17 -0
- package/api/types/ClientFacingIggTimeseries.js +5 -0
- package/api/types/ClientFacingLab.d.ts +14 -0
- package/api/types/ClientFacingLab.js +5 -0
- package/api/types/ClientFacingLabTest.d.ts +19 -0
- package/api/types/ClientFacingLabTest.js +5 -0
- package/api/types/ClientFacingLoinc.d.ts +10 -0
- package/api/types/ClientFacingLoinc.js +5 -0
- package/api/types/ClientFacingMarker.d.ts +15 -0
- package/api/types/ClientFacingMarker.js +5 -0
- package/api/types/ClientFacingMarkerComplete.d.ts +16 -0
- package/api/types/ClientFacingMarkerComplete.js +5 -0
- package/api/types/ClientFacingMealResponse.d.ts +7 -0
- package/api/types/ClientFacingMealResponse.js +5 -0
- package/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +21 -0
- package/api/types/ClientFacingMindfulnessMinutesTimeseries.js +5 -0
- package/api/types/ClientFacingOrder.d.ts +38 -0
- package/api/types/ClientFacingOrder.js +5 -0
- package/api/types/ClientFacingOrderDetails.d.ts +16 -0
- package/api/types/ClientFacingOrderDetails.js +5 -0
- package/api/types/ClientFacingOrderEvent.d.ts +9 -0
- package/api/types/ClientFacingOrderEvent.js +5 -0
- package/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
- package/api/types/ClientFacingPatientDetailsCompatible.js +5 -0
- package/api/types/ClientFacingPayorSearchResponse.d.ts +12 -0
- package/api/types/ClientFacingPayorSearchResponse.js +5 -0
- package/api/types/ClientFacingProfile.d.ts +11 -0
- package/api/types/ClientFacingProfile.js +5 -0
- package/api/types/ClientFacingProvider.d.ts +14 -0
- package/api/types/ClientFacingProvider.js +5 -0
- package/api/types/ClientFacingProviderDetailed.d.ts +16 -0
- package/api/types/ClientFacingProviderDetailed.js +5 -0
- package/api/types/ClientFacingProviderWithStatus.d.ts +13 -0
- package/api/types/ClientFacingProviderWithStatus.js +5 -0
- package/api/types/ClientFacingResource.d.ts +45 -0
- package/api/types/ClientFacingResource.js +44 -0
- package/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +17 -0
- package/api/types/ClientFacingRespiratoryRateTimeseries.js +5 -0
- package/api/types/ClientFacingResult.d.ts +12 -0
- package/api/types/ClientFacingResult.js +5 -0
- package/api/types/ClientFacingShipment.d.ts +26 -0
- package/api/types/ClientFacingShipment.js +5 -0
- package/api/types/ClientFacingSleep.d.ts +54 -0
- package/api/types/ClientFacingSleep.js +5 -0
- package/api/types/ClientFacingSleepStream.d.ts +10 -0
- package/api/types/ClientFacingSleepStream.js +5 -0
- package/api/types/ClientFacingSource.d.ts +21 -0
- package/api/types/ClientFacingSource.js +5 -0
- package/api/types/ClientFacingSport.d.ts +10 -0
- package/api/types/ClientFacingSport.js +5 -0
- package/api/types/ClientFacingStepsTimeseries.d.ts +20 -0
- package/api/types/ClientFacingStepsTimeseries.js +5 -0
- package/api/types/ClientFacingStream.d.ts +16 -0
- package/api/types/ClientFacingStream.js +5 -0
- package/api/types/ClientFacingTeam.d.ts +22 -0
- package/api/types/ClientFacingTeam.js +5 -0
- package/api/types/ClientFacingTestKitOrderDetails.d.ts +7 -0
- package/api/types/ClientFacingTestKitOrderDetails.js +5 -0
- package/api/types/ClientFacingTestkitOrder.d.ts +17 -0
- package/api/types/ClientFacingTestkitOrder.js +5 -0
- package/api/types/ClientFacingUser.d.ts +22 -0
- package/api/types/ClientFacingUser.js +5 -0
- package/api/types/ClientFacingUserKey.d.ts +9 -0
- package/api/types/ClientFacingUserKey.js +5 -0
- package/api/types/ClientFacingWalkInOrderDetails.d.ts +7 -0
- package/api/types/ClientFacingWalkInOrderDetails.js +5 -0
- package/api/types/ClientFacingWalkInTestOrder.d.ts +14 -0
- package/api/types/ClientFacingWalkInTestOrder.js +5 -0
- package/api/types/ClientFacingWaterTimeseries.d.ts +17 -0
- package/api/types/ClientFacingWaterTimeseries.js +5 -0
- package/api/types/ClientFacingWorkout.d.ts +57 -0
- package/api/types/ClientFacingWorkout.js +5 -0
- package/api/types/ClientSleepResponse.d.ts +7 -0
- package/api/types/ClientSleepResponse.js +5 -0
- package/api/types/ClientWorkoutResponse.d.ts +7 -0
- package/api/types/ClientWorkoutResponse.js +5 -0
- package/api/types/ConnectedSourceClientFacing.d.ts +12 -0
- package/api/types/ConnectedSourceClientFacing.js +5 -0
- package/api/types/ConnectionStatus.d.ts +7 -0
- package/api/types/ConnectionStatus.js +5 -0
- package/api/types/Consent.d.ts +9 -0
- package/api/types/Consent.js +5 -0
- package/api/types/ConsentType.d.ts +15 -0
- package/api/types/ConsentType.js +14 -0
- package/api/types/DaySlots.d.ts +8 -0
- package/api/types/DaySlots.js +5 -0
- package/api/types/DemoConnectionStatus.d.ts +7 -0
- package/api/types/DemoConnectionStatus.js +5 -0
- package/api/types/DemoProviders.d.ts +13 -0
- package/api/types/DemoProviders.js +12 -0
- package/api/types/DeviceV2InDb.d.ts +12 -0
- package/api/types/DeviceV2InDb.js +5 -0
- package/api/types/EmailProviders.d.ts +4 -0
- package/api/types/EmailProviders.js +5 -0
- package/api/types/Energy.d.ts +7 -0
- package/api/types/Energy.js +5 -0
- package/api/types/FallbackTimeZone.d.ts +14 -0
- package/api/types/FallbackTimeZone.js +5 -0
- package/api/types/Fats.d.ts +17 -0
- package/api/types/Fats.js +5 -0
- package/api/types/Gender.d.ts +13 -0
- package/api/types/Gender.js +12 -0
- package/api/types/GetMarkersResponse.d.ts +10 -0
- package/api/types/GetMarkersResponse.js +5 -0
- package/api/types/GetOrdersResponse.d.ts +10 -0
- package/api/types/GetOrdersResponse.js +5 -0
- package/api/types/HealthInsuranceCreateRequest.d.ts +26 -0
- package/api/types/HealthInsuranceCreateRequest.js +5 -0
- package/api/types/HealthInsuranceCreateRequestBackImage.d.ts +16 -0
- package/api/types/HealthInsuranceCreateRequestBackImage.js +5 -0
- package/api/types/HealthInsuranceCreateRequestFrontImage.d.ts +16 -0
- package/api/types/HealthInsuranceCreateRequestFrontImage.js +5 -0
- package/api/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +16 -0
- package/api/types/HealthInsuranceCreateRequestPatientSignatureImage.js +5 -0
- package/api/types/HttpValidationError.d.ts +7 -0
- package/api/types/HttpValidationError.js +5 -0
- package/api/types/Jpeg.d.ts +6 -0
- package/api/types/Jpeg.js +5 -0
- package/api/types/LabResultsMetadata.d.ts +17 -0
- package/api/types/LabResultsMetadata.js +5 -0
- package/api/types/LabResultsRaw.d.ts +8 -0
- package/api/types/LabResultsRaw.js +5 -0
- package/api/types/LabResultsRawResults.d.ts +5 -0
- package/api/types/LabResultsRawResults.js +5 -0
- package/api/types/LabTestCollectionMethod.d.ts +12 -0
- package/api/types/LabTestCollectionMethod.js +11 -0
- package/api/types/LabTestSampleType.d.ts +13 -0
- package/api/types/LabTestSampleType.js +12 -0
- package/api/types/LibreConfig.d.ts +6 -0
- package/api/types/LibreConfig.js +5 -0
- package/api/types/LinkTokenExchangeResponse.d.ts +7 -0
- package/api/types/LinkTokenExchangeResponse.js +5 -0
- package/api/types/LngLat.d.ts +7 -0
- package/api/types/LngLat.js +5 -0
- package/api/types/Macros.d.ts +20 -0
- package/api/types/Macros.js +5 -0
- package/api/types/ManualProviders.d.ts +18 -0
- package/api/types/ManualProviders.js +17 -0
- package/api/types/MarkerType.d.ts +11 -0
- package/api/types/MarkerType.js +10 -0
- package/api/types/MealInDbBaseClientFacingSource.d.ts +20 -0
- package/api/types/MealInDbBaseClientFacingSource.js +5 -0
- package/api/types/MetricsResult.d.ts +12 -0
- package/api/types/MetricsResult.js +5 -0
- package/api/types/Micros.d.ts +11 -0
- package/api/types/Micros.js +5 -0
- package/api/types/OAuthProviders.d.ts +21 -0
- package/api/types/OAuthProviders.js +20 -0
- package/api/types/OrderStatus.d.ts +39 -0
- package/api/types/OrderStatus.js +38 -0
- package/api/types/OrderTopLevelStatus.d.ts +15 -0
- package/api/types/OrderTopLevelStatus.js +14 -0
- package/api/types/PaginatedUsersResponse.d.ts +10 -0
- package/api/types/PaginatedUsersResponse.js +5 -0
- package/api/types/PasswordProviders.d.ts +19 -0
- package/api/types/PasswordProviders.js +18 -0
- package/api/types/PatientAddressCompatible.d.ts +13 -0
- package/api/types/PatientAddressCompatible.js +5 -0
- package/api/types/PatientDetails.d.ts +12 -0
- package/api/types/PatientDetails.js +5 -0
- package/api/types/PersonDetails.d.ts +11 -0
- package/api/types/PersonDetails.js +5 -0
- package/api/types/PhlebotomyAreaInfo.d.ts +6 -0
- package/api/types/PhlebotomyAreaInfo.js +5 -0
- package/api/types/PhysicianClientFacing.d.ts +8 -0
- package/api/types/PhysicianClientFacing.js +5 -0
- package/api/types/PhysicianCreateRequest.d.ts +13 -0
- package/api/types/PhysicianCreateRequest.js +5 -0
- package/api/types/PhysicianCreateRequestBase.d.ts +10 -0
- package/api/types/PhysicianCreateRequestBase.js +5 -0
- package/api/types/PhysicianCreateRequestSignatureImage.d.ts +16 -0
- package/api/types/PhysicianCreateRequestSignatureImage.js +5 -0
- package/api/types/Png.d.ts +6 -0
- package/api/types/Png.js +5 -0
- package/api/types/PostOrderResponse.d.ts +9 -0
- package/api/types/PostOrderResponse.js +5 -0
- package/api/types/ProfileInDb.d.ts +13 -0
- package/api/types/ProfileInDb.js +5 -0
- package/api/types/ProviderLinkResponse.d.ts +9 -0
- package/api/types/ProviderLinkResponse.js +5 -0
- package/api/types/Providers.d.ts +41 -0
- package/api/types/Providers.js +40 -0
- package/api/types/RawActivity.d.ts +7 -0
- package/api/types/RawActivity.js +5 -0
- package/api/types/RawBody.d.ts +7 -0
- package/api/types/RawBody.js +5 -0
- package/api/types/RawDevices.d.ts +7 -0
- package/api/types/RawDevices.js +5 -0
- package/api/types/RawProfile.d.ts +7 -0
- package/api/types/RawProfile.js +5 -0
- package/api/types/RawSleep.d.ts +7 -0
- package/api/types/RawSleep.js +5 -0
- package/api/types/RawWorkout.d.ts +7 -0
- package/api/types/RawWorkout.js +5 -0
- package/api/types/Region.d.ts +18 -0
- package/api/types/Region.js +17 -0
- package/api/types/ResponsibleRelationship.d.ts +12 -0
- package/api/types/ResponsibleRelationship.js +11 -0
- package/api/types/ResultType.d.ts +12 -0
- package/api/types/ResultType.js +11 -0
- package/api/types/ShippingAddress.d.ts +13 -0
- package/api/types/ShippingAddress.js +5 -0
- package/api/types/SleepV2InDb.d.ts +15 -0
- package/api/types/SleepV2InDb.js +5 -0
- package/api/types/Source.d.ts +17 -0
- package/api/types/Source.js +5 -0
- package/api/types/SourceAuthType.d.ts +16 -0
- package/api/types/SourceAuthType.js +15 -0
- package/api/types/SourceLink.d.ts +14 -0
- package/api/types/SourceLink.js +5 -0
- package/api/types/SourceType.d.ts +14 -0
- package/api/types/SourceType.js +13 -0
- package/api/types/TeamConfig.d.ts +8 -0
- package/api/types/TeamConfig.js +5 -0
- package/api/types/TimeSlot.d.ts +14 -0
- package/api/types/TimeSlot.js +5 -0
- package/api/types/TimeseriesMetricPoint.d.ts +7 -0
- package/api/types/TimeseriesMetricPoint.js +5 -0
- package/api/types/TimeseriesResource.d.ts +37 -0
- package/api/types/TimeseriesResource.js +36 -0
- package/api/types/UsAddress.d.ts +12 -0
- package/api/types/UsAddress.js +5 -0
- package/api/types/UserRefreshErrorResponse.d.ts +11 -0
- package/api/types/UserRefreshErrorResponse.js +5 -0
- package/api/types/UserRefreshSuccessResponse.d.ts +11 -0
- package/api/types/UserRefreshSuccessResponse.js +5 -0
- package/api/types/UserSignInToken.d.ts +7 -0
- package/api/types/UserSignInToken.js +5 -0
- package/api/types/UserSignInTokenResponse.d.ts +8 -0
- package/api/types/UserSignInTokenResponse.js +5 -0
- package/api/types/UserSignInTokenResponseSignInToken.d.ts +5 -0
- package/api/types/UserSignInTokenResponseSignInToken.js +5 -0
- package/api/types/UserSuccessResponse.d.ts +7 -0
- package/api/types/UserSuccessResponse.js +5 -0
- package/api/types/ValidationError.d.ts +9 -0
- package/api/types/ValidationError.js +5 -0
- package/api/types/ValidationErrorLocItem.d.ts +4 -0
- package/api/types/ValidationErrorLocItem.js +5 -0
- package/api/types/VitalTokenCreatedResponse.d.ts +7 -0
- package/api/types/VitalTokenCreatedResponse.js +5 -0
- package/api/types/WorkoutV2InDb.d.ts +16 -0
- package/api/types/WorkoutV2InDb.js +5 -0
- package/api/types/index.d.ts +159 -0
- package/api/types/index.js +175 -0
- package/core/fetcher/APIResponse.d.ts +9 -0
- package/core/fetcher/APIResponse.js +2 -0
- package/core/fetcher/Fetcher.d.ts +38 -0
- package/core/fetcher/Fetcher.js +106 -0
- package/core/fetcher/Supplier.d.ts +4 -0
- package/core/fetcher/Supplier.js +22 -0
- package/core/fetcher/index.d.ts +4 -0
- package/core/fetcher/index.js +7 -0
- package/core/index.d.ts +2 -0
- package/core/index.js +31 -0
- package/core/schemas/Schema.d.ts +80 -0
- package/core/schemas/Schema.js +20 -0
- package/core/schemas/builders/date/date.d.ts +2 -0
- package/core/schemas/builders/date/date.js +63 -0
- package/core/schemas/builders/date/index.d.ts +1 -0
- package/core/schemas/builders/date/index.js +5 -0
- package/core/schemas/builders/enum/enum.d.ts +2 -0
- package/core/schemas/builders/enum/enum.js +39 -0
- package/core/schemas/builders/enum/index.d.ts +1 -0
- package/core/schemas/builders/enum/index.js +5 -0
- package/core/schemas/builders/index.d.ts +13 -0
- package/core/schemas/builders/index.js +29 -0
- package/core/schemas/builders/lazy/index.d.ts +3 -0
- package/core/schemas/builders/lazy/index.js +7 -0
- package/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/core/schemas/builders/lazy/lazy.js +36 -0
- package/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/core/schemas/builders/list/index.d.ts +1 -0
- package/core/schemas/builders/list/index.js +5 -0
- package/core/schemas/builders/list/list.d.ts +2 -0
- package/core/schemas/builders/list/list.js +68 -0
- package/core/schemas/builders/literals/index.d.ts +1 -0
- package/core/schemas/builders/literals/index.js +5 -0
- package/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/core/schemas/builders/object/index.d.ts +4 -0
- package/core/schemas/builders/object/index.js +9 -0
- package/core/schemas/builders/object/object.d.ts +3 -0
- package/core/schemas/builders/object/object.js +258 -0
- package/core/schemas/builders/object/property.d.ts +8 -0
- package/core/schemas/builders/object/property.js +16 -0
- package/core/schemas/builders/object/types.d.ts +26 -0
- package/core/schemas/builders/object/types.js +2 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
- package/core/schemas/builders/object-like/index.d.ts +2 -0
- package/core/schemas/builders/object-like/index.js +6 -0
- package/core/schemas/builders/object-like/types.d.ts +7 -0
- package/core/schemas/builders/object-like/types.js +2 -0
- package/core/schemas/builders/primitives/any.d.ts +1 -0
- package/core/schemas/builders/primitives/any.js +6 -0
- package/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/core/schemas/builders/primitives/boolean.js +25 -0
- package/core/schemas/builders/primitives/index.d.ts +5 -0
- package/core/schemas/builders/primitives/index.js +13 -0
- package/core/schemas/builders/primitives/number.d.ts +1 -0
- package/core/schemas/builders/primitives/number.js +25 -0
- package/core/schemas/builders/primitives/string.d.ts +1 -0
- package/core/schemas/builders/primitives/string.js +25 -0
- package/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/core/schemas/builders/primitives/unknown.js +6 -0
- package/core/schemas/builders/record/index.d.ts +2 -0
- package/core/schemas/builders/record/index.js +5 -0
- package/core/schemas/builders/record/record.d.ts +3 -0
- package/core/schemas/builders/record/record.js +106 -0
- package/core/schemas/builders/record/types.d.ts +4 -0
- package/core/schemas/builders/record/types.js +2 -0
- package/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
- package/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/core/schemas/builders/schema-utils/index.js +11 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/core/schemas/builders/set/index.d.ts +1 -0
- package/core/schemas/builders/set/index.js +5 -0
- package/core/schemas/builders/set/set.d.ts +2 -0
- package/core/schemas/builders/set/set.js +53 -0
- package/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -0
- package/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/core/schemas/builders/union/discriminant.js +10 -0
- package/core/schemas/builders/union/index.d.ts +4 -0
- package/core/schemas/builders/union/index.js +7 -0
- package/core/schemas/builders/union/types.d.ts +13 -0
- package/core/schemas/builders/union/types.js +2 -0
- package/core/schemas/builders/union/union.d.ts +4 -0
- package/core/schemas/builders/union/union.js +141 -0
- package/core/schemas/index.d.ts +2 -0
- package/core/schemas/index.js +17 -0
- package/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/core/schemas/utils/MaybePromise.js +2 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/core/schemas/utils/entries.d.ts +1 -0
- package/core/schemas/utils/entries.js +7 -0
- package/core/schemas/utils/filterObject.d.ts +1 -0
- package/core/schemas/utils/filterObject.js +14 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/core/schemas/utils/isPlainObject.js +18 -0
- package/core/schemas/utils/keys.d.ts +1 -0
- package/core/schemas/utils/keys.js +7 -0
- package/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/core/schemas/utils/maybeSkipValidation.js +37 -0
- package/core/schemas/utils/partition.d.ts +1 -0
- package/core/schemas/utils/partition.js +16 -0
- package/dist/Client.d.ts +63 -0
- package/dist/Client.js +87 -0
- package/dist/api/errors/BadRequestError.d.ts +8 -0
- package/dist/api/errors/BadRequestError.js +40 -0
- package/dist/api/errors/UnprocessableEntityError.d.ts +8 -0
- package/dist/api/errors/UnprocessableEntityError.js +40 -0
- package/dist/api/errors/index.d.ts +2 -0
- package/dist/api/errors/index.js +18 -0
- package/dist/api/index.d.ts +3 -0
- package/dist/api/index.js +19 -0
- package/dist/api/resources/activity/client/Client.d.ts +29 -0
- package/dist/api/resources/activity/client/Client.js +190 -0
- package/dist/api/resources/activity/client/index.d.ts +1 -0
- package/dist/api/resources/activity/client/index.js +17 -0
- package/dist/api/resources/activity/client/requests/ActivityGetRawRequest.d.ts +17 -0
- package/dist/api/resources/activity/client/requests/ActivityGetRawRequest.js +5 -0
- package/dist/api/resources/activity/client/requests/ActivityGetRequest.d.ts +17 -0
- package/dist/api/resources/activity/client/requests/ActivityGetRequest.js +5 -0
- package/dist/api/resources/activity/client/requests/index.d.ts +2 -0
- package/dist/api/resources/activity/client/requests/index.js +2 -0
- package/dist/api/resources/activity/index.d.ts +1 -0
- package/dist/api/resources/activity/index.js +17 -0
- package/dist/api/resources/body/client/Client.d.ts +29 -0
- package/dist/api/resources/body/client/Client.js +190 -0
- package/dist/api/resources/body/client/index.d.ts +1 -0
- package/dist/api/resources/body/client/index.js +17 -0
- package/dist/api/resources/body/client/requests/BodyGetRawRequest.d.ts +17 -0
- package/dist/api/resources/body/client/requests/BodyGetRawRequest.js +5 -0
- package/dist/api/resources/body/client/requests/BodyGetRequest.d.ts +17 -0
- package/dist/api/resources/body/client/requests/BodyGetRequest.js +5 -0
- package/dist/api/resources/body/client/requests/index.d.ts +2 -0
- package/dist/api/resources/body/client/requests/index.js +2 -0
- package/dist/api/resources/body/index.d.ts +1 -0
- package/dist/api/resources/body/index.js +17 -0
- package/dist/api/resources/devices/client/Client.d.ts +24 -0
- package/dist/api/resources/devices/client/Client.js +118 -0
- package/dist/api/resources/devices/client/index.d.ts +1 -0
- package/dist/api/resources/devices/client/index.js +17 -0
- package/dist/api/resources/devices/client/requests/DevicesGetRawRequest.d.ts +9 -0
- package/dist/api/resources/devices/client/requests/DevicesGetRawRequest.js +5 -0
- package/dist/api/resources/devices/client/requests/index.d.ts +1 -0
- package/dist/api/resources/devices/client/requests/index.js +2 -0
- package/dist/api/resources/devices/index.d.ts +1 -0
- package/dist/api/resources/devices/index.js +17 -0
- package/dist/api/resources/index.d.ts +29 -0
- package/dist/api/resources/index.js +58 -0
- package/dist/api/resources/insurance/client/Client.d.ts +27 -0
- package/dist/api/resources/insurance/client/Client.js +173 -0
- package/dist/api/resources/insurance/client/index.d.ts +1 -0
- package/dist/api/resources/insurance/client/index.js +17 -0
- package/dist/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.d.ts +6 -0
- package/dist/api/resources/insurance/client/requests/InsuranceSearchDiagnosisRequest.js +5 -0
- package/dist/api/resources/insurance/client/requests/PayorSearchRequest.d.ts +7 -0
- package/dist/api/resources/insurance/client/requests/PayorSearchRequest.js +5 -0
- package/dist/api/resources/insurance/client/requests/index.d.ts +2 -0
- package/dist/api/resources/insurance/client/requests/index.js +2 -0
- package/dist/api/resources/insurance/index.d.ts +1 -0
- package/dist/api/resources/insurance/index.js +17 -0
- package/dist/api/resources/labTests/client/Client.d.ts +129 -0
- package/dist/api/resources/labTests/client/Client.js +1350 -0
- package/dist/api/resources/labTests/client/index.d.ts +1 -0
- package/dist/api/resources/labTests/client/index.js +17 -0
- package/dist/api/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +6 -0
- package/dist/api/resources/labTests/client/requests/AppointmentBookingRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +7 -0
- package/dist/api/resources/labTests/client/requests/AppointmentCancelRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +6 -0
- package/dist/api/resources/labTests/client/requests/AppointmentRescheduleRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +13 -0
- package/dist/api/resources/labTests/client/requests/CreateLabTestRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +15 -0
- package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.js +5 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +9 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +15 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +27 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.js +5 -0
- package/dist/api/resources/labTests/client/requests/index.d.ts +8 -0
- package/dist/api/resources/labTests/client/requests/index.js +2 -0
- package/dist/api/resources/labTests/index.d.ts +1 -0
- package/dist/api/resources/labTests/index.js +17 -0
- package/dist/api/resources/link/client/Client.d.ts +101 -0
- package/dist/api/resources/link/client/Client.js +893 -0
- package/dist/api/resources/link/client/index.d.ts +1 -0
- package/dist/api/resources/link/client/index.js +17 -0
- package/dist/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +8 -0
- package/dist/api/resources/link/client/requests/BeginLinkTokenRequest.js +5 -0
- package/dist/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +10 -0
- package/dist/api/resources/link/client/requests/DemoConnectionCreationPayload.js +5 -0
- package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +10 -0
- package/dist/api/resources/link/client/requests/EmailAuthLink.js +5 -0
- package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +9 -0
- package/dist/api/resources/link/client/requests/EmailProviderAuthLink.js +5 -0
- package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +10 -0
- package/dist/api/resources/link/client/requests/IndividualProviderData.js +5 -0
- package/dist/api/resources/link/client/requests/LinkCodeCreateRequest.d.ts +7 -0
- package/dist/api/resources/link/client/requests/LinkCodeCreateRequest.js +5 -0
- package/dist/api/resources/link/client/requests/LinkConnectOauthProviderRequest.d.ts +6 -0
- package/dist/api/resources/link/client/requests/LinkConnectOauthProviderRequest.js +5 -0
- package/dist/api/resources/link/client/requests/LinkTokenBase.d.ts +8 -0
- package/dist/api/resources/link/client/requests/LinkTokenBase.js +5 -0
- package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +11 -0
- package/dist/api/resources/link/client/requests/LinkTokenExchange.js +5 -0
- package/dist/api/resources/link/client/requests/ManualConnectionData.d.ts +7 -0
- package/dist/api/resources/link/client/requests/ManualConnectionData.js +5 -0
- package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +11 -0
- package/dist/api/resources/link/client/requests/PasswordAuthLink.js +5 -0
- package/dist/api/resources/link/client/requests/index.d.ts +11 -0
- package/dist/api/resources/link/client/requests/index.js +2 -0
- package/dist/api/resources/link/index.d.ts +1 -0
- package/dist/api/resources/link/index.js +17 -0
- package/dist/api/resources/meal/client/Client.d.ts +24 -0
- package/dist/api/resources/meal/client/Client.js +122 -0
- package/dist/api/resources/meal/client/index.d.ts +1 -0
- package/dist/api/resources/meal/client/index.js +17 -0
- package/dist/api/resources/meal/client/requests/MealGetRequest.d.ts +17 -0
- package/dist/api/resources/meal/client/requests/MealGetRequest.js +5 -0
- package/dist/api/resources/meal/client/requests/index.d.ts +1 -0
- package/dist/api/resources/meal/client/requests/index.js +2 -0
- package/dist/api/resources/meal/index.d.ts +1 -0
- package/dist/api/resources/meal/index.js +17 -0
- package/dist/api/resources/profile/client/Client.d.ts +29 -0
- package/dist/api/resources/profile/client/Client.js +182 -0
- package/dist/api/resources/profile/client/index.d.ts +1 -0
- package/dist/api/resources/profile/client/index.js +17 -0
- package/dist/api/resources/profile/client/requests/ProfileGetRawRequest.d.ts +9 -0
- package/dist/api/resources/profile/client/requests/ProfileGetRawRequest.js +5 -0
- package/dist/api/resources/profile/client/requests/ProfileGetRequest.d.ts +9 -0
- package/dist/api/resources/profile/client/requests/ProfileGetRequest.js +5 -0
- package/dist/api/resources/profile/client/requests/index.d.ts +2 -0
- package/dist/api/resources/profile/client/requests/index.js +2 -0
- package/dist/api/resources/profile/index.d.ts +1 -0
- package/dist/api/resources/profile/index.js +17 -0
- package/dist/api/resources/providers/client/Client.d.ts +23 -0
- package/dist/api/resources/providers/client/Client.js +99 -0
- package/dist/api/resources/providers/client/index.d.ts +1 -0
- package/dist/api/resources/providers/client/index.js +2 -0
- package/dist/api/resources/providers/index.d.ts +1 -0
- package/dist/api/resources/providers/index.js +17 -0
- package/dist/api/resources/sleep/client/Client.d.ts +39 -0
- package/dist/api/resources/sleep/client/Client.js +316 -0
- package/dist/api/resources/sleep/client/index.d.ts +1 -0
- package/dist/api/resources/sleep/client/index.js +17 -0
- package/dist/api/resources/sleep/client/requests/SleepGetRawRequest.d.ts +17 -0
- package/dist/api/resources/sleep/client/requests/SleepGetRawRequest.js +5 -0
- package/dist/api/resources/sleep/client/requests/SleepGetRequest.d.ts +17 -0
- package/dist/api/resources/sleep/client/requests/SleepGetRequest.js +5 -0
- package/dist/api/resources/sleep/client/requests/SleepGetStreamRequest.d.ts +17 -0
- package/dist/api/resources/sleep/client/requests/SleepGetStreamRequest.js +5 -0
- package/dist/api/resources/sleep/client/requests/index.d.ts +3 -0
- package/dist/api/resources/sleep/client/requests/index.js +2 -0
- package/dist/api/resources/sleep/index.d.ts +1 -0
- package/dist/api/resources/sleep/index.js +17 -0
- package/dist/api/resources/team/client/Client.d.ts +44 -0
- package/dist/api/resources/team/client/Client.js +393 -0
- package/dist/api/resources/team/client/index.d.ts +1 -0
- package/dist/api/resources/team/client/index.js +17 -0
- package/dist/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.d.ts +6 -0
- package/dist/api/resources/team/client/requests/TeamGetSourcePrioritiesRequest.js +5 -0
- package/dist/api/resources/team/client/requests/TeamGetUserByIdRequest.d.ts +6 -0
- package/dist/api/resources/team/client/requests/TeamGetUserByIdRequest.js +5 -0
- package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.d.ts +6 -0
- package/dist/api/resources/team/client/requests/TeamUpdateSourcePrioritiesRequest.js +5 -0
- package/dist/api/resources/team/client/requests/index.d.ts +3 -0
- package/dist/api/resources/team/client/requests/index.js +2 -0
- package/dist/api/resources/team/index.d.ts +1 -0
- package/dist/api/resources/team/index.js +17 -0
- package/dist/api/resources/testkit/client/Client.d.ts +28 -0
- package/dist/api/resources/testkit/client/Client.js +172 -0
- package/dist/api/resources/testkit/client/index.d.ts +1 -0
- package/dist/api/resources/testkit/client/index.js +17 -0
- package/dist/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +9 -0
- package/dist/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +5 -0
- package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +12 -0
- package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.js +5 -0
- package/dist/api/resources/testkit/client/requests/index.d.ts +2 -0
- package/dist/api/resources/testkit/client/requests/index.js +2 -0
- package/dist/api/resources/testkit/index.d.ts +1 -0
- package/dist/api/resources/testkit/index.js +17 -0
- package/dist/api/resources/user/client/Client.d.ts +70 -0
- package/dist/api/resources/user/client/Client.js +691 -0
- package/dist/api/resources/user/client/index.d.ts +1 -0
- package/dist/api/resources/user/client/index.js +17 -0
- package/dist/api/resources/user/client/requests/UserCreateBody.d.ts +13 -0
- package/dist/api/resources/user/client/requests/UserCreateBody.js +5 -0
- package/dist/api/resources/user/client/requests/UserGetAllRequest.d.ts +7 -0
- package/dist/api/resources/user/client/requests/UserGetAllRequest.js +5 -0
- package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +11 -0
- package/dist/api/resources/user/client/requests/UserPatchBody.js +5 -0
- package/dist/api/resources/user/client/requests/index.d.ts +3 -0
- package/dist/api/resources/user/client/requests/index.js +2 -0
- package/dist/api/resources/user/index.d.ts +1 -0
- package/dist/api/resources/user/index.js +17 -0
- package/dist/api/resources/vitals/client/Client.d.ts +134 -0
- package/dist/api/resources/vitals/client/Client.js +1618 -0
- package/dist/api/resources/vitals/client/index.d.ts +1 -0
- package/dist/api/resources/vitals/client/index.js +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsBloodOxygenRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsBloodPressureRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsBloodPressureRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsCaffeineRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsCaffeineRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesActiveRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsCaloriesBasalRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolHdlRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolLdlRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsCholesterolTotalRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsDistanceRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsDistanceRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsElectrocardiogramVoltageRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsFloorsClimbedRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsGlucoseRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsGlucoseRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsHeartrateRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsHeartrateRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsHrvRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsHrvRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsHypnogramRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsHypnogramRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsIgeRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsIgeRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsIggRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsIggRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsMindfulnessMinutesRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsRespiratoryRateRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsStepsRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsStepsRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsTriglyceridesRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsTriglyceridesRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/VitalsWaterRequest.d.ts +17 -0
- package/dist/api/resources/vitals/client/requests/VitalsWaterRequest.js +5 -0
- package/dist/api/resources/vitals/client/requests/index.d.ts +23 -0
- package/dist/api/resources/vitals/client/requests/index.js +2 -0
- package/dist/api/resources/vitals/index.d.ts +1 -0
- package/dist/api/resources/vitals/index.js +17 -0
- package/dist/api/resources/workouts/client/Client.d.ts +33 -0
- package/dist/api/resources/workouts/client/Client.js +247 -0
- package/dist/api/resources/workouts/client/index.d.ts +1 -0
- package/dist/api/resources/workouts/client/index.js +17 -0
- package/dist/api/resources/workouts/client/requests/WorkoutsGetRawRequest.d.ts +17 -0
- package/dist/api/resources/workouts/client/requests/WorkoutsGetRawRequest.js +5 -0
- package/dist/api/resources/workouts/client/requests/WorkoutsGetRequest.d.ts +17 -0
- package/dist/api/resources/workouts/client/requests/WorkoutsGetRequest.js +5 -0
- package/dist/api/resources/workouts/client/requests/index.d.ts +2 -0
- package/dist/api/resources/workouts/client/requests/index.js +2 -0
- package/dist/api/resources/workouts/index.d.ts +1 -0
- package/dist/api/resources/workouts/index.js +17 -0
- package/dist/api/types/ActivityV2InDb.d.ts +14 -0
- package/dist/api/types/ActivityV2InDb.js +5 -0
- package/dist/api/types/Address.d.ts +11 -0
- package/dist/api/types/Address.js +5 -0
- package/dist/api/types/AppointmentAvailabilitySlots.d.ts +8 -0
- package/dist/api/types/AppointmentAvailabilitySlots.js +5 -0
- package/dist/api/types/AppointmentEventStatus.d.ts +13 -0
- package/dist/api/types/AppointmentEventStatus.js +12 -0
- package/dist/api/types/AppointmentProvider.d.ts +11 -0
- package/dist/api/types/AppointmentProvider.js +10 -0
- package/dist/api/types/AppointmentStatus.d.ts +14 -0
- package/dist/api/types/AppointmentStatus.js +13 -0
- package/dist/api/types/AppointmentType.d.ts +4 -0
- package/dist/api/types/AppointmentType.js +5 -0
- package/dist/api/types/AreaInfo.d.ts +8 -0
- package/dist/api/types/AreaInfo.js +5 -0
- package/dist/api/types/AuthType.d.ts +12 -0
- package/dist/api/types/AuthType.js +11 -0
- package/dist/api/types/BiomarkerResult.d.ts +24 -0
- package/dist/api/types/BiomarkerResult.js +5 -0
- package/dist/api/types/BodyV2InDb.d.ts +15 -0
- package/dist/api/types/BodyV2InDb.js +5 -0
- package/dist/api/types/ClientActivityResponse.d.ts +7 -0
- package/dist/api/types/ClientActivityResponse.js +5 -0
- package/dist/api/types/ClientBodyResponse.d.ts +7 -0
- package/dist/api/types/ClientBodyResponse.js +5 -0
- package/dist/api/types/ClientFacingActivity.d.ts +39 -0
- package/dist/api/types/ClientFacingActivity.js +5 -0
- package/dist/api/types/ClientFacingApiKey.d.ts +11 -0
- package/dist/api/types/ClientFacingApiKey.js +5 -0
- package/dist/api/types/ClientFacingAppointment.d.ts +24 -0
- package/dist/api/types/ClientFacingAppointment.js +5 -0
- package/dist/api/types/ClientFacingAppointmentCancellationReason.d.ts +8 -0
- package/dist/api/types/ClientFacingAppointmentCancellationReason.js +5 -0
- package/dist/api/types/ClientFacingAppointmentEvent.d.ts +9 -0
- package/dist/api/types/ClientFacingAppointmentEvent.js +5 -0
- package/dist/api/types/ClientFacingAtHomePhlebotomyOrder.d.ts +15 -0
- package/dist/api/types/ClientFacingAtHomePhlebotomyOrder.js +5 -0
- package/dist/api/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +7 -0
- package/dist/api/types/ClientFacingAtHomePhlebotomyOrderDetails.js +5 -0
- package/dist/api/types/ClientFacingBloodOxygenTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingBloodOxygenTimeseries.js +5 -0
- package/dist/api/types/ClientFacingBloodPressureTimeseries.d.ts +16 -0
- package/dist/api/types/ClientFacingBloodPressureTimeseries.js +5 -0
- package/dist/api/types/ClientFacingBody.d.ts +18 -0
- package/dist/api/types/ClientFacingBody.js +5 -0
- package/dist/api/types/ClientFacingCaffeineTimeseries.d.ts +21 -0
- package/dist/api/types/ClientFacingCaffeineTimeseries.js +5 -0
- package/dist/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +20 -0
- package/dist/api/types/ClientFacingCaloriesActiveTimeseries.js +5 -0
- package/dist/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +16 -0
- package/dist/api/types/ClientFacingCaloriesBasalTimeseries.js +5 -0
- package/dist/api/types/ClientFacingCholesterolTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingCholesterolTimeseries.js +5 -0
- package/dist/api/types/ClientFacingDiagnosisInformation.d.ts +9 -0
- package/dist/api/types/ClientFacingDiagnosisInformation.js +5 -0
- package/dist/api/types/ClientFacingDistanceTimeseries.d.ts +20 -0
- package/dist/api/types/ClientFacingDistanceTimeseries.js +5 -0
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.js +5 -0
- package/dist/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +16 -0
- package/dist/api/types/ClientFacingFloorsClimbedTimeseries.js +5 -0
- package/dist/api/types/ClientFacingFood.d.ts +9 -0
- package/dist/api/types/ClientFacingFood.js +5 -0
- package/dist/api/types/ClientFacingGlucoseTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingGlucoseTimeseries.js +5 -0
- package/dist/api/types/ClientFacingHeartRate.d.ts +13 -0
- package/dist/api/types/ClientFacingHeartRate.js +5 -0
- package/dist/api/types/ClientFacingHeartRateTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingHeartRateTimeseries.js +5 -0
- package/dist/api/types/ClientFacingHrvTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingHrvTimeseries.js +5 -0
- package/dist/api/types/ClientFacingHypnogramTimeseries.d.ts +21 -0
- package/dist/api/types/ClientFacingHypnogramTimeseries.js +5 -0
- package/dist/api/types/ClientFacingIgeTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingIgeTimeseries.js +5 -0
- package/dist/api/types/ClientFacingIggTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingIggTimeseries.js +5 -0
- package/dist/api/types/ClientFacingLab.d.ts +14 -0
- package/dist/api/types/ClientFacingLab.js +5 -0
- package/dist/api/types/ClientFacingLabTest.d.ts +19 -0
- package/dist/api/types/ClientFacingLabTest.js +5 -0
- package/dist/api/types/ClientFacingLoinc.d.ts +10 -0
- package/dist/api/types/ClientFacingLoinc.js +5 -0
- package/dist/api/types/ClientFacingMarker.d.ts +15 -0
- package/dist/api/types/ClientFacingMarker.js +5 -0
- package/dist/api/types/ClientFacingMarkerComplete.d.ts +16 -0
- package/dist/api/types/ClientFacingMarkerComplete.js +5 -0
- package/dist/api/types/ClientFacingMealResponse.d.ts +7 -0
- package/dist/api/types/ClientFacingMealResponse.js +5 -0
- package/dist/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +21 -0
- package/dist/api/types/ClientFacingMindfulnessMinutesTimeseries.js +5 -0
- package/dist/api/types/ClientFacingOrder.d.ts +38 -0
- package/dist/api/types/ClientFacingOrder.js +5 -0
- package/dist/api/types/ClientFacingOrderDetails.d.ts +16 -0
- package/dist/api/types/ClientFacingOrderDetails.js +5 -0
- package/dist/api/types/ClientFacingOrderEvent.d.ts +9 -0
- package/dist/api/types/ClientFacingOrderEvent.js +5 -0
- package/dist/api/types/ClientFacingPatientDetailsCompatible.d.ts +11 -0
- package/dist/api/types/ClientFacingPatientDetailsCompatible.js +5 -0
- package/dist/api/types/ClientFacingPayorSearchResponse.d.ts +12 -0
- package/dist/api/types/ClientFacingPayorSearchResponse.js +5 -0
- package/dist/api/types/ClientFacingProfile.d.ts +11 -0
- package/dist/api/types/ClientFacingProfile.js +5 -0
- package/dist/api/types/ClientFacingProvider.d.ts +14 -0
- package/dist/api/types/ClientFacingProvider.js +5 -0
- package/dist/api/types/ClientFacingProviderDetailed.d.ts +16 -0
- package/dist/api/types/ClientFacingProviderDetailed.js +5 -0
- package/dist/api/types/ClientFacingProviderWithStatus.d.ts +13 -0
- package/dist/api/types/ClientFacingProviderWithStatus.js +5 -0
- package/dist/api/types/ClientFacingResource.d.ts +45 -0
- package/dist/api/types/ClientFacingResource.js +44 -0
- package/dist/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingRespiratoryRateTimeseries.js +5 -0
- package/dist/api/types/ClientFacingResult.d.ts +12 -0
- package/dist/api/types/ClientFacingResult.js +5 -0
- package/dist/api/types/ClientFacingShipment.d.ts +26 -0
- package/dist/api/types/ClientFacingShipment.js +5 -0
- package/dist/api/types/ClientFacingSleep.d.ts +54 -0
- package/dist/api/types/ClientFacingSleep.js +5 -0
- package/dist/api/types/ClientFacingSleepStream.d.ts +10 -0
- package/dist/api/types/ClientFacingSleepStream.js +5 -0
- package/dist/api/types/ClientFacingSource.d.ts +21 -0
- package/dist/api/types/ClientFacingSource.js +5 -0
- package/dist/api/types/ClientFacingSport.d.ts +10 -0
- package/dist/api/types/ClientFacingSport.js +5 -0
- package/dist/api/types/ClientFacingStepsTimeseries.d.ts +20 -0
- package/dist/api/types/ClientFacingStepsTimeseries.js +5 -0
- package/dist/api/types/ClientFacingStream.d.ts +16 -0
- package/dist/api/types/ClientFacingStream.js +5 -0
- package/dist/api/types/ClientFacingTeam.d.ts +22 -0
- package/dist/api/types/ClientFacingTeam.js +5 -0
- package/dist/api/types/ClientFacingTestKitOrderDetails.d.ts +7 -0
- package/dist/api/types/ClientFacingTestKitOrderDetails.js +5 -0
- package/dist/api/types/ClientFacingTestkitOrder.d.ts +17 -0
- package/dist/api/types/ClientFacingTestkitOrder.js +5 -0
- package/dist/api/types/ClientFacingUser.d.ts +22 -0
- package/dist/api/types/ClientFacingUser.js +5 -0
- package/dist/api/types/ClientFacingUserKey.d.ts +9 -0
- package/dist/api/types/ClientFacingUserKey.js +5 -0
- package/dist/api/types/ClientFacingWalkInOrderDetails.d.ts +7 -0
- package/dist/api/types/ClientFacingWalkInOrderDetails.js +5 -0
- package/dist/api/types/ClientFacingWalkInTestOrder.d.ts +14 -0
- package/dist/api/types/ClientFacingWalkInTestOrder.js +5 -0
- package/dist/api/types/ClientFacingWaterTimeseries.d.ts +17 -0
- package/dist/api/types/ClientFacingWaterTimeseries.js +5 -0
- package/dist/api/types/ClientFacingWorkout.d.ts +57 -0
- package/dist/api/types/ClientFacingWorkout.js +5 -0
- package/dist/api/types/ClientSleepResponse.d.ts +7 -0
- package/dist/api/types/ClientSleepResponse.js +5 -0
- package/dist/api/types/ClientWorkoutResponse.d.ts +7 -0
- package/dist/api/types/ClientWorkoutResponse.js +5 -0
- package/dist/api/types/ConnectedSourceClientFacing.d.ts +12 -0
- package/dist/api/types/ConnectedSourceClientFacing.js +5 -0
- package/dist/api/types/ConnectionStatus.d.ts +7 -0
- package/dist/api/types/ConnectionStatus.js +5 -0
- package/dist/api/types/Consent.d.ts +9 -0
- package/dist/api/types/Consent.js +5 -0
- package/dist/api/types/ConsentType.d.ts +15 -0
- package/dist/api/types/ConsentType.js +14 -0
- package/dist/api/types/DaySlots.d.ts +8 -0
- package/dist/api/types/DaySlots.js +5 -0
- package/dist/api/types/DemoConnectionStatus.d.ts +7 -0
- package/dist/api/types/DemoConnectionStatus.js +5 -0
- package/dist/api/types/DemoProviders.d.ts +13 -0
- package/dist/api/types/DemoProviders.js +12 -0
- package/dist/api/types/DeviceV2InDb.d.ts +12 -0
- package/dist/api/types/DeviceV2InDb.js +5 -0
- package/dist/api/types/EmailProviders.d.ts +4 -0
- package/dist/api/types/EmailProviders.js +5 -0
- package/dist/api/types/Energy.d.ts +7 -0
- package/dist/api/types/Energy.js +5 -0
- package/dist/api/types/FallbackTimeZone.d.ts +14 -0
- package/dist/api/types/FallbackTimeZone.js +5 -0
- package/dist/api/types/Fats.d.ts +17 -0
- package/dist/api/types/Fats.js +5 -0
- package/dist/api/types/Gender.d.ts +13 -0
- package/dist/api/types/Gender.js +12 -0
- package/dist/api/types/GetMarkersResponse.d.ts +10 -0
- package/dist/api/types/GetMarkersResponse.js +5 -0
- package/dist/api/types/GetOrdersResponse.d.ts +10 -0
- package/dist/api/types/GetOrdersResponse.js +5 -0
- package/dist/api/types/HealthInsuranceCreateRequest.d.ts +26 -0
- package/dist/api/types/HealthInsuranceCreateRequest.js +5 -0
- package/dist/api/types/HealthInsuranceCreateRequestBackImage.d.ts +16 -0
- package/dist/api/types/HealthInsuranceCreateRequestBackImage.js +5 -0
- package/dist/api/types/HealthInsuranceCreateRequestFrontImage.d.ts +16 -0
- package/dist/api/types/HealthInsuranceCreateRequestFrontImage.js +5 -0
- package/dist/api/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +16 -0
- package/dist/api/types/HealthInsuranceCreateRequestPatientSignatureImage.js +5 -0
- package/dist/api/types/HttpValidationError.d.ts +7 -0
- package/dist/api/types/HttpValidationError.js +5 -0
- package/dist/api/types/Jpeg.d.ts +6 -0
- package/dist/api/types/Jpeg.js +5 -0
- package/dist/api/types/LabResultsMetadata.d.ts +17 -0
- package/dist/api/types/LabResultsMetadata.js +5 -0
- package/dist/api/types/LabResultsRaw.d.ts +8 -0
- package/dist/api/types/LabResultsRaw.js +5 -0
- package/dist/api/types/LabResultsRawResults.d.ts +5 -0
- package/dist/api/types/LabResultsRawResults.js +5 -0
- package/dist/api/types/LabTestCollectionMethod.d.ts +12 -0
- package/dist/api/types/LabTestCollectionMethod.js +11 -0
- package/dist/api/types/LabTestSampleType.d.ts +13 -0
- package/dist/api/types/LabTestSampleType.js +12 -0
- package/dist/api/types/LibreConfig.d.ts +6 -0
- package/dist/api/types/LibreConfig.js +5 -0
- package/dist/api/types/LinkTokenExchangeResponse.d.ts +7 -0
- package/dist/api/types/LinkTokenExchangeResponse.js +5 -0
- package/dist/api/types/LngLat.d.ts +7 -0
- package/dist/api/types/LngLat.js +5 -0
- package/dist/api/types/Macros.d.ts +20 -0
- package/dist/api/types/Macros.js +5 -0
- package/dist/api/types/ManualProviders.d.ts +18 -0
- package/dist/api/types/ManualProviders.js +17 -0
- package/dist/api/types/MarkerType.d.ts +11 -0
- package/dist/api/types/MarkerType.js +10 -0
- package/dist/api/types/MealInDbBaseClientFacingSource.d.ts +20 -0
- package/dist/api/types/MealInDbBaseClientFacingSource.js +5 -0
- package/dist/api/types/MetricsResult.d.ts +12 -0
- package/dist/api/types/MetricsResult.js +5 -0
- package/dist/api/types/Micros.d.ts +11 -0
- package/dist/api/types/Micros.js +5 -0
- package/dist/api/types/OAuthProviders.d.ts +21 -0
- package/dist/api/types/OAuthProviders.js +20 -0
- package/dist/api/types/OrderStatus.d.ts +39 -0
- package/dist/api/types/OrderStatus.js +38 -0
- package/dist/api/types/OrderTopLevelStatus.d.ts +15 -0
- package/dist/api/types/OrderTopLevelStatus.js +14 -0
- package/dist/api/types/PaginatedUsersResponse.d.ts +10 -0
- package/dist/api/types/PaginatedUsersResponse.js +5 -0
- package/dist/api/types/PasswordProviders.d.ts +19 -0
- package/dist/api/types/PasswordProviders.js +18 -0
- package/dist/api/types/PatientAddressCompatible.d.ts +13 -0
- package/dist/api/types/PatientAddressCompatible.js +5 -0
- package/dist/api/types/PatientDetails.d.ts +12 -0
- package/dist/api/types/PatientDetails.js +5 -0
- package/dist/api/types/PersonDetails.d.ts +11 -0
- package/dist/api/types/PersonDetails.js +5 -0
- package/dist/api/types/PhlebotomyAreaInfo.d.ts +6 -0
- package/dist/api/types/PhlebotomyAreaInfo.js +5 -0
- package/dist/api/types/PhysicianClientFacing.d.ts +8 -0
- package/dist/api/types/PhysicianClientFacing.js +5 -0
- package/dist/api/types/PhysicianCreateRequest.d.ts +13 -0
- package/dist/api/types/PhysicianCreateRequest.js +5 -0
- package/dist/api/types/PhysicianCreateRequestBase.d.ts +10 -0
- package/dist/api/types/PhysicianCreateRequestBase.js +5 -0
- package/dist/api/types/PhysicianCreateRequestSignatureImage.d.ts +16 -0
- package/dist/api/types/PhysicianCreateRequestSignatureImage.js +5 -0
- package/dist/api/types/Png.d.ts +6 -0
- package/dist/api/types/Png.js +5 -0
- package/dist/api/types/PostOrderResponse.d.ts +9 -0
- package/dist/api/types/PostOrderResponse.js +5 -0
- package/dist/api/types/ProfileInDb.d.ts +13 -0
- package/dist/api/types/ProfileInDb.js +5 -0
- package/dist/api/types/ProviderLinkResponse.d.ts +9 -0
- package/dist/api/types/ProviderLinkResponse.js +5 -0
- package/dist/api/types/Providers.d.ts +41 -0
- package/dist/api/types/Providers.js +40 -0
- package/dist/api/types/RawActivity.d.ts +7 -0
- package/dist/api/types/RawActivity.js +5 -0
- package/dist/api/types/RawBody.d.ts +7 -0
- package/dist/api/types/RawBody.js +5 -0
- package/dist/api/types/RawDevices.d.ts +7 -0
- package/dist/api/types/RawDevices.js +5 -0
- package/dist/api/types/RawProfile.d.ts +7 -0
- package/dist/api/types/RawProfile.js +5 -0
- package/dist/api/types/RawSleep.d.ts +7 -0
- package/dist/api/types/RawSleep.js +5 -0
- package/dist/api/types/RawWorkout.d.ts +7 -0
- package/dist/api/types/RawWorkout.js +5 -0
- package/dist/api/types/Region.d.ts +18 -0
- package/dist/api/types/Region.js +17 -0
- package/dist/api/types/ResponsibleRelationship.d.ts +12 -0
- package/dist/api/types/ResponsibleRelationship.js +11 -0
- package/dist/api/types/ResultType.d.ts +12 -0
- package/dist/api/types/ResultType.js +11 -0
- package/dist/api/types/ShippingAddress.d.ts +13 -0
- package/dist/api/types/ShippingAddress.js +5 -0
- package/dist/api/types/SleepV2InDb.d.ts +15 -0
- package/dist/api/types/SleepV2InDb.js +5 -0
- package/dist/api/types/Source.d.ts +17 -0
- package/dist/api/types/Source.js +5 -0
- package/dist/api/types/SourceAuthType.d.ts +16 -0
- package/dist/api/types/SourceAuthType.js +15 -0
- package/dist/api/types/SourceLink.d.ts +14 -0
- package/dist/api/types/SourceLink.js +5 -0
- package/dist/api/types/SourceType.d.ts +14 -0
- package/dist/api/types/SourceType.js +13 -0
- package/dist/api/types/TeamConfig.d.ts +8 -0
- package/dist/api/types/TeamConfig.js +5 -0
- package/dist/api/types/TimeSlot.d.ts +14 -0
- package/dist/api/types/TimeSlot.js +5 -0
- package/dist/api/types/TimeseriesMetricPoint.d.ts +7 -0
- package/dist/api/types/TimeseriesMetricPoint.js +5 -0
- package/dist/api/types/TimeseriesResource.d.ts +37 -0
- package/dist/api/types/TimeseriesResource.js +36 -0
- package/dist/api/types/UsAddress.d.ts +12 -0
- package/dist/api/types/UsAddress.js +5 -0
- package/dist/api/types/UserRefreshErrorResponse.d.ts +11 -0
- package/dist/api/types/UserRefreshErrorResponse.js +5 -0
- package/dist/api/types/UserRefreshSuccessResponse.d.ts +11 -0
- package/dist/api/types/UserRefreshSuccessResponse.js +5 -0
- package/dist/api/types/UserSignInToken.d.ts +7 -0
- package/dist/api/types/UserSignInToken.js +5 -0
- package/dist/api/types/UserSignInTokenResponse.d.ts +8 -0
- package/dist/api/types/UserSignInTokenResponse.js +5 -0
- package/dist/api/types/UserSignInTokenResponseSignInToken.d.ts +5 -0
- package/dist/api/types/UserSignInTokenResponseSignInToken.js +5 -0
- package/dist/api/types/UserSuccessResponse.d.ts +7 -0
- package/dist/api/types/UserSuccessResponse.js +5 -0
- package/dist/api/types/ValidationError.d.ts +9 -0
- package/dist/api/types/ValidationError.js +5 -0
- package/dist/api/types/ValidationErrorLocItem.d.ts +4 -0
- package/dist/api/types/ValidationErrorLocItem.js +5 -0
- package/dist/api/types/VitalTokenCreatedResponse.d.ts +7 -0
- package/dist/api/types/VitalTokenCreatedResponse.js +5 -0
- package/dist/api/types/WorkoutV2InDb.d.ts +16 -0
- package/dist/api/types/WorkoutV2InDb.js +5 -0
- package/dist/api/types/index.d.ts +159 -0
- package/dist/api/types/index.js +175 -0
- package/dist/core/fetcher/APIResponse.d.ts +9 -0
- package/dist/core/fetcher/APIResponse.js +2 -0
- package/dist/core/fetcher/Fetcher.d.ts +38 -0
- package/dist/core/fetcher/Fetcher.js +106 -0
- package/dist/core/fetcher/Supplier.d.ts +4 -0
- package/dist/core/fetcher/Supplier.js +22 -0
- package/dist/core/fetcher/index.d.ts +4 -0
- package/dist/core/fetcher/index.js +7 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +31 -0
- package/dist/core/schemas/Schema.d.ts +80 -0
- package/dist/core/schemas/Schema.js +20 -0
- package/dist/core/schemas/builders/date/date.d.ts +2 -0
- package/dist/core/schemas/builders/date/date.js +63 -0
- package/dist/core/schemas/builders/date/index.d.ts +1 -0
- package/dist/core/schemas/builders/date/index.js +5 -0
- package/dist/core/schemas/builders/enum/enum.d.ts +2 -0
- package/dist/core/schemas/builders/enum/enum.js +39 -0
- package/dist/core/schemas/builders/enum/index.d.ts +1 -0
- package/dist/core/schemas/builders/enum/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +13 -0
- package/dist/core/schemas/builders/index.js +29 -0
- package/dist/core/schemas/builders/lazy/index.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/index.js +7 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +5 -0
- package/dist/core/schemas/builders/lazy/lazy.js +36 -0
- package/dist/core/schemas/builders/lazy/lazyObject.d.ts +3 -0
- package/dist/core/schemas/builders/lazy/lazyObject.js +21 -0
- package/dist/core/schemas/builders/list/index.d.ts +1 -0
- package/dist/core/schemas/builders/list/index.js +5 -0
- package/dist/core/schemas/builders/list/list.d.ts +2 -0
- package/dist/core/schemas/builders/list/list.js +68 -0
- package/dist/core/schemas/builders/literals/index.d.ts +1 -0
- package/dist/core/schemas/builders/literals/index.js +5 -0
- package/dist/core/schemas/builders/literals/stringLiteral.d.ts +2 -0
- package/dist/core/schemas/builders/literals/stringLiteral.js +29 -0
- package/dist/core/schemas/builders/object/index.d.ts +4 -0
- package/dist/core/schemas/builders/object/index.js +9 -0
- package/dist/core/schemas/builders/object/object.d.ts +3 -0
- package/dist/core/schemas/builders/object/object.js +258 -0
- package/dist/core/schemas/builders/object/property.d.ts +8 -0
- package/dist/core/schemas/builders/object/property.js +16 -0
- package/dist/core/schemas/builders/object/types.d.ts +26 -0
- package/dist/core/schemas/builders/object/types.js +2 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.d.ts +9 -0
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +63 -0
- package/dist/core/schemas/builders/object-like/index.d.ts +2 -0
- package/dist/core/schemas/builders/object-like/index.js +6 -0
- package/dist/core/schemas/builders/object-like/types.d.ts +7 -0
- package/dist/core/schemas/builders/object-like/types.js +2 -0
- package/dist/core/schemas/builders/primitives/any.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/any.js +6 -0
- package/dist/core/schemas/builders/primitives/boolean.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/boolean.js +25 -0
- package/dist/core/schemas/builders/primitives/index.d.ts +5 -0
- package/dist/core/schemas/builders/primitives/index.js +13 -0
- package/dist/core/schemas/builders/primitives/number.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/number.js +25 -0
- package/dist/core/schemas/builders/primitives/string.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/string.js +25 -0
- package/dist/core/schemas/builders/primitives/unknown.d.ts +1 -0
- package/dist/core/schemas/builders/primitives/unknown.js +6 -0
- package/dist/core/schemas/builders/record/index.d.ts +2 -0
- package/dist/core/schemas/builders/record/index.js +5 -0
- package/dist/core/schemas/builders/record/record.d.ts +3 -0
- package/dist/core/schemas/builders/record/record.js +106 -0
- package/dist/core/schemas/builders/record/types.d.ts +4 -0
- package/dist/core/schemas/builders/record/types.js +2 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/JsonError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.d.ts +5 -0
- package/dist/core/schemas/builders/schema-utils/ParseError.js +12 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +17 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +85 -0
- package/dist/core/schemas/builders/schema-utils/index.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/index.js +11 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.d.ts +2 -0
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +10 -0
- package/dist/core/schemas/builders/set/index.d.ts +1 -0
- package/dist/core/schemas/builders/set/index.js +5 -0
- package/dist/core/schemas/builders/set/set.d.ts +2 -0
- package/dist/core/schemas/builders/set/set.js +53 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.d.ts +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/index.js +5 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -0
- package/dist/core/schemas/builders/undiscriminated-union/types.js +2 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.d.ts +3 -0
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +51 -0
- package/dist/core/schemas/builders/union/discriminant.d.ts +5 -0
- package/dist/core/schemas/builders/union/discriminant.js +10 -0
- package/dist/core/schemas/builders/union/index.d.ts +4 -0
- package/dist/core/schemas/builders/union/index.js +7 -0
- package/dist/core/schemas/builders/union/types.d.ts +13 -0
- package/dist/core/schemas/builders/union/types.js +2 -0
- package/dist/core/schemas/builders/union/union.d.ts +4 -0
- package/dist/core/schemas/builders/union/union.js +141 -0
- package/dist/core/schemas/index.d.ts +2 -0
- package/dist/core/schemas/index.js +17 -0
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -0
- package/dist/core/schemas/utils/MaybePromise.js +2 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +7 -0
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.js +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.d.ts +2 -0
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +16 -0
- package/dist/core/schemas/utils/entries.d.ts +1 -0
- package/dist/core/schemas/utils/entries.js +7 -0
- package/dist/core/schemas/utils/filterObject.d.ts +1 -0
- package/dist/core/schemas/utils/filterObject.js +14 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.d.ts +1 -0
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +24 -0
- package/dist/core/schemas/utils/isPlainObject.d.ts +1 -0
- package/dist/core/schemas/utils/isPlainObject.js +18 -0
- package/dist/core/schemas/utils/keys.d.ts +1 -0
- package/dist/core/schemas/utils/keys.js +7 -0
- package/dist/core/schemas/utils/maybeSkipValidation.d.ts +2 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +37 -0
- package/dist/core/schemas/utils/partition.d.ts +1 -0
- package/dist/core/schemas/utils/partition.js +16 -0
- package/dist/environments.d.ts +10 -0
- package/dist/environments.js +12 -0
- package/dist/errors/VitalError.d.ts +12 -0
- package/dist/errors/VitalError.js +32 -0
- package/dist/errors/VitalTimeoutError.d.ts +6 -0
- package/dist/errors/VitalTimeoutError.js +13 -0
- package/dist/errors/index.d.ts +2 -0
- package/dist/errors/index.js +7 -0
- package/dist/index.d.ts +4 -23
- package/dist/index.js +30 -102
- package/dist/serialization/index.d.ts +2 -0
- package/dist/serialization/index.js +18 -0
- package/dist/serialization/resources/index.d.ts +13 -0
- package/dist/serialization/resources/index.js +42 -0
- package/dist/serialization/resources/insurance/client/index.d.ts +3 -0
- package/dist/serialization/resources/insurance/client/index.js +32 -0
- package/dist/serialization/resources/insurance/client/requests/PayorSearchRequest.d.ts +13 -0
- package/dist/serialization/resources/insurance/client/requests/PayorSearchRequest.js +34 -0
- package/dist/serialization/resources/insurance/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/insurance/client/requests/index.js +5 -0
- package/dist/serialization/resources/insurance/client/searchDiagnosis.d.ts +10 -0
- package/dist/serialization/resources/insurance/client/searchDiagnosis.js +40 -0
- package/dist/serialization/resources/insurance/client/searchPayorInfo.d.ts +10 -0
- package/dist/serialization/resources/insurance/client/searchPayorInfo.js +40 -0
- package/dist/serialization/resources/insurance/index.d.ts +1 -0
- package/dist/serialization/resources/insurance/index.js +17 -0
- package/dist/serialization/resources/labTests/client/get.d.ts +10 -0
- package/dist/serialization/resources/labTests/client/get.js +40 -0
- package/dist/serialization/resources/labTests/client/getLabs.d.ts +10 -0
- package/dist/serialization/resources/labTests/client/getLabs.js +40 -0
- package/dist/serialization/resources/labTests/client/getMarkersForLabTest.d.ts +10 -0
- package/dist/serialization/resources/labTests/client/getMarkersForLabTest.js +40 -0
- package/dist/serialization/resources/labTests/client/getPhlebotomyAppointmentCancellationReason.d.ts +10 -0
- package/dist/serialization/resources/labTests/client/getPhlebotomyAppointmentCancellationReason.js +40 -0
- package/dist/serialization/resources/labTests/client/index.d.ts +5 -0
- package/dist/serialization/resources/labTests/client/index.js +34 -0
- package/dist/serialization/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +12 -0
- package/dist/serialization/resources/labTests/client/requests/AppointmentBookingRequest.js +33 -0
- package/dist/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +13 -0
- package/dist/serialization/resources/labTests/client/requests/AppointmentCancelRequest.js +34 -0
- package/dist/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +12 -0
- package/dist/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.js +33 -0
- package/dist/serialization/resources/labTests/client/requests/CreateLabTestRequest.d.ts +18 -0
- package/dist/serialization/resources/labTests/client/requests/CreateLabTestRequest.js +48 -0
- package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +19 -0
- package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +53 -0
- package/dist/serialization/resources/labTests/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/labTests/client/requests/index.js +13 -0
- package/dist/serialization/resources/labTests/index.d.ts +1 -0
- package/dist/serialization/resources/labTests/index.js +17 -0
- package/dist/serialization/resources/link/client/connectManualProvider.d.ts +9 -0
- package/dist/serialization/resources/link/client/connectManualProvider.js +31 -0
- package/dist/serialization/resources/link/client/connectOauthProvider.d.ts +9 -0
- package/dist/serialization/resources/link/client/connectOauthProvider.js +31 -0
- package/dist/serialization/resources/link/client/getAllProviders.d.ts +10 -0
- package/dist/serialization/resources/link/client/getAllProviders.js +40 -0
- package/dist/serialization/resources/link/client/index.d.ts +7 -0
- package/dist/serialization/resources/link/client/index.js +36 -0
- package/dist/serialization/resources/link/client/isTokenValid.d.ts +9 -0
- package/dist/serialization/resources/link/client/isTokenValid.js +31 -0
- package/dist/serialization/resources/link/client/requests/BeginLinkTokenRequest.d.ts +13 -0
- package/dist/serialization/resources/link/client/requests/BeginLinkTokenRequest.js +43 -0
- package/dist/serialization/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +13 -0
- package/dist/serialization/resources/link/client/requests/DemoConnectionCreationPayload.js +43 -0
- package/dist/serialization/resources/link/client/requests/EmailAuthLink.d.ts +15 -0
- package/dist/serialization/resources/link/client/requests/EmailAuthLink.js +45 -0
- package/dist/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +14 -0
- package/dist/serialization/resources/link/client/requests/EmailProviderAuthLink.js +44 -0
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +13 -0
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.js +34 -0
- package/dist/serialization/resources/link/client/requests/LinkTokenBase.d.ts +14 -0
- package/dist/serialization/resources/link/client/requests/LinkTokenBase.js +35 -0
- package/dist/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +15 -0
- package/dist/serialization/resources/link/client/requests/LinkTokenExchange.js +47 -0
- package/dist/serialization/resources/link/client/requests/ManualConnectionData.d.ts +13 -0
- package/dist/serialization/resources/link/client/requests/ManualConnectionData.js +34 -0
- package/dist/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +15 -0
- package/dist/serialization/resources/link/client/requests/PasswordAuthLink.js +45 -0
- package/dist/serialization/resources/link/client/requests/index.d.ts +9 -0
- package/dist/serialization/resources/link/client/requests/index.js +21 -0
- package/dist/serialization/resources/link/client/startConnect.d.ts +9 -0
- package/dist/serialization/resources/link/client/startConnect.js +31 -0
- package/dist/serialization/resources/link/client/tokenState.d.ts +9 -0
- package/dist/serialization/resources/link/client/tokenState.js +31 -0
- package/dist/serialization/resources/link/index.d.ts +1 -0
- package/dist/serialization/resources/link/index.js +17 -0
- package/dist/serialization/resources/providers/client/getAll.d.ts +10 -0
- package/dist/serialization/resources/providers/client/getAll.js +40 -0
- package/dist/serialization/resources/providers/client/index.d.ts +1 -0
- package/dist/serialization/resources/providers/client/index.js +27 -0
- package/dist/serialization/resources/providers/index.d.ts +1 -0
- package/dist/serialization/resources/providers/index.js +17 -0
- package/dist/serialization/resources/team/client/getLinkConfig.d.ts +9 -0
- package/dist/serialization/resources/team/client/getLinkConfig.js +31 -0
- package/dist/serialization/resources/team/client/getSourcePriorities.d.ts +9 -0
- package/dist/serialization/resources/team/client/getSourcePriorities.js +31 -0
- package/dist/serialization/resources/team/client/getSvixUrl.d.ts +9 -0
- package/dist/serialization/resources/team/client/getSvixUrl.js +31 -0
- package/dist/serialization/resources/team/client/getUserById.d.ts +10 -0
- package/dist/serialization/resources/team/client/getUserById.js +40 -0
- package/dist/serialization/resources/team/client/index.d.ts +5 -0
- package/dist/serialization/resources/team/client/index.js +31 -0
- package/dist/serialization/resources/team/client/updateSourcePriorities.d.ts +9 -0
- package/dist/serialization/resources/team/client/updateSourcePriorities.js +31 -0
- package/dist/serialization/resources/team/index.d.ts +1 -0
- package/dist/serialization/resources/team/index.js +17 -0
- package/dist/serialization/resources/testkit/client/index.d.ts +1 -0
- package/dist/serialization/resources/testkit/client/index.js +17 -0
- package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +14 -0
- package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +44 -0
- package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +17 -0
- package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +51 -0
- package/dist/serialization/resources/testkit/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/testkit/client/requests/index.js +7 -0
- package/dist/serialization/resources/testkit/index.d.ts +1 -0
- package/dist/serialization/resources/testkit/index.js +17 -0
- package/dist/serialization/resources/user/client/getConnectedProviders.d.ts +10 -0
- package/dist/serialization/resources/user/client/getConnectedProviders.js +40 -0
- package/dist/serialization/resources/user/client/index.d.ts +2 -0
- package/dist/serialization/resources/user/client/index.js +31 -0
- package/dist/serialization/resources/user/client/requests/UserCreateBody.d.ts +13 -0
- package/dist/serialization/resources/user/client/requests/UserCreateBody.js +34 -0
- package/dist/serialization/resources/user/client/requests/UserPatchBody.d.ts +12 -0
- package/dist/serialization/resources/user/client/requests/UserPatchBody.js +33 -0
- package/dist/serialization/resources/user/client/requests/index.d.ts +2 -0
- package/dist/serialization/resources/user/client/requests/index.js +7 -0
- package/dist/serialization/resources/user/index.d.ts +1 -0
- package/dist/serialization/resources/user/index.js +17 -0
- package/dist/serialization/resources/vitals/client/bloodOxygen.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/bloodOxygen.js +40 -0
- package/dist/serialization/resources/vitals/client/bloodPressure.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/bloodPressure.js +40 -0
- package/dist/serialization/resources/vitals/client/caffeine.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/caffeine.js +40 -0
- package/dist/serialization/resources/vitals/client/caloriesActive.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/caloriesActive.js +40 -0
- package/dist/serialization/resources/vitals/client/caloriesBasal.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/caloriesBasal.js +40 -0
- package/dist/serialization/resources/vitals/client/cholesterol.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/cholesterol.js +40 -0
- package/dist/serialization/resources/vitals/client/cholesterolHdl.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/cholesterolHdl.js +40 -0
- package/dist/serialization/resources/vitals/client/cholesterolLdl.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/cholesterolLdl.js +40 -0
- package/dist/serialization/resources/vitals/client/cholesterolTotal.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/cholesterolTotal.js +40 -0
- package/dist/serialization/resources/vitals/client/distance.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/distance.js +40 -0
- package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.js +40 -0
- package/dist/serialization/resources/vitals/client/floorsClimbed.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/floorsClimbed.js +40 -0
- package/dist/serialization/resources/vitals/client/glucose.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/glucose.js +40 -0
- package/dist/serialization/resources/vitals/client/heartrate.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/heartrate.js +40 -0
- package/dist/serialization/resources/vitals/client/hrv.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/hrv.js +40 -0
- package/dist/serialization/resources/vitals/client/hypnogram.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/hypnogram.js +40 -0
- package/dist/serialization/resources/vitals/client/ige.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/ige.js +40 -0
- package/dist/serialization/resources/vitals/client/igg.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/igg.js +40 -0
- package/dist/serialization/resources/vitals/client/index.d.ts +23 -0
- package/dist/serialization/resources/vitals/client/index.js +49 -0
- package/dist/serialization/resources/vitals/client/mindfulnessMinutes.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/mindfulnessMinutes.js +40 -0
- package/dist/serialization/resources/vitals/client/respiratoryRate.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/respiratoryRate.js +40 -0
- package/dist/serialization/resources/vitals/client/steps.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/steps.js +40 -0
- package/dist/serialization/resources/vitals/client/triglycerides.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/triglycerides.js +40 -0
- package/dist/serialization/resources/vitals/client/water.d.ts +10 -0
- package/dist/serialization/resources/vitals/client/water.js +40 -0
- package/dist/serialization/resources/vitals/index.d.ts +1 -0
- package/dist/serialization/resources/vitals/index.js +17 -0
- package/dist/serialization/types/ActivityV2InDb.d.ts +19 -0
- package/dist/serialization/types/ActivityV2InDb.js +49 -0
- package/dist/serialization/types/Address.d.ts +17 -0
- package/dist/serialization/types/Address.js +38 -0
- package/dist/serialization/types/AppointmentAvailabilitySlots.d.ts +13 -0
- package/dist/serialization/types/AppointmentAvailabilitySlots.js +43 -0
- package/dist/serialization/types/AppointmentEventStatus.d.ts +10 -0
- package/dist/serialization/types/AppointmentEventStatus.js +31 -0
- package/dist/serialization/types/AppointmentProvider.d.ts +10 -0
- package/dist/serialization/types/AppointmentProvider.js +31 -0
- package/dist/serialization/types/AppointmentStatus.d.ts +10 -0
- package/dist/serialization/types/AppointmentStatus.js +31 -0
- package/dist/serialization/types/AppointmentType.d.ts +10 -0
- package/dist/serialization/types/AppointmentType.js +31 -0
- package/dist/serialization/types/AreaInfo.d.ts +13 -0
- package/dist/serialization/types/AreaInfo.js +43 -0
- package/dist/serialization/types/AuthType.d.ts +10 -0
- package/dist/serialization/types/AuthType.js +35 -0
- package/dist/serialization/types/BiomarkerResult.d.ts +26 -0
- package/dist/serialization/types/BiomarkerResult.js +56 -0
- package/dist/serialization/types/BodyV2InDb.d.ts +20 -0
- package/dist/serialization/types/BodyV2InDb.js +50 -0
- package/dist/serialization/types/ClientActivityResponse.d.ts +12 -0
- package/dist/serialization/types/ClientActivityResponse.js +42 -0
- package/dist/serialization/types/ClientBodyResponse.d.ts +12 -0
- package/dist/serialization/types/ClientBodyResponse.js +42 -0
- package/dist/serialization/types/ClientFacingActivity.d.ts +28 -0
- package/dist/serialization/types/ClientFacingActivity.js +58 -0
- package/dist/serialization/types/ClientFacingApiKey.d.ts +17 -0
- package/dist/serialization/types/ClientFacingApiKey.js +38 -0
- package/dist/serialization/types/ClientFacingAppointment.d.ts +27 -0
- package/dist/serialization/types/ClientFacingAppointment.js +57 -0
- package/dist/serialization/types/ClientFacingAppointmentCancellationReason.d.ts +14 -0
- package/dist/serialization/types/ClientFacingAppointmentCancellationReason.js +35 -0
- package/dist/serialization/types/ClientFacingAppointmentEvent.d.ts +14 -0
- package/dist/serialization/types/ClientFacingAppointmentEvent.js +44 -0
- package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrder.d.ts +15 -0
- package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrder.js +36 -0
- package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +12 -0
- package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrderDetails.js +42 -0
- package/dist/serialization/types/ClientFacingBloodOxygenTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingBloodOxygenTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingBloodPressureTimeseries.d.ts +18 -0
- package/dist/serialization/types/ClientFacingBloodPressureTimeseries.js +39 -0
- package/dist/serialization/types/ClientFacingBody.d.ts +18 -0
- package/dist/serialization/types/ClientFacingBody.js +48 -0
- package/dist/serialization/types/ClientFacingCaffeineTimeseries.d.ts +19 -0
- package/dist/serialization/types/ClientFacingCaffeineTimeseries.js +40 -0
- package/dist/serialization/types/ClientFacingCaloriesActiveTimeseries.d.ts +19 -0
- package/dist/serialization/types/ClientFacingCaloriesActiveTimeseries.js +40 -0
- package/dist/serialization/types/ClientFacingCaloriesBasalTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingCaloriesBasalTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingCholesterolTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingCholesterolTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingDiagnosisInformation.d.ts +13 -0
- package/dist/serialization/types/ClientFacingDiagnosisInformation.js +34 -0
- package/dist/serialization/types/ClientFacingDistanceTimeseries.d.ts +19 -0
- package/dist/serialization/types/ClientFacingDistanceTimeseries.js +40 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingFloorsClimbedTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingFloorsClimbedTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingFood.d.ts +14 -0
- package/dist/serialization/types/ClientFacingFood.js +44 -0
- package/dist/serialization/types/ClientFacingGlucoseTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingGlucoseTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingHeartRate.d.ts +15 -0
- package/dist/serialization/types/ClientFacingHeartRate.js +36 -0
- package/dist/serialization/types/ClientFacingHeartRateTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingHeartRateTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingHrvTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingHrvTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingHypnogramTimeseries.d.ts +19 -0
- package/dist/serialization/types/ClientFacingHypnogramTimeseries.js +40 -0
- package/dist/serialization/types/ClientFacingIgeTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingIgeTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingIggTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingIggTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingLab.d.ts +19 -0
- package/dist/serialization/types/ClientFacingLab.js +49 -0
- package/dist/serialization/types/ClientFacingLabTest.d.ts +22 -0
- package/dist/serialization/types/ClientFacingLabTest.js +54 -0
- package/dist/serialization/types/ClientFacingLoinc.d.ts +16 -0
- package/dist/serialization/types/ClientFacingLoinc.js +37 -0
- package/dist/serialization/types/ClientFacingMarker.d.ts +20 -0
- package/dist/serialization/types/ClientFacingMarker.js +50 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +21 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.js +51 -0
- package/dist/serialization/types/ClientFacingMealResponse.d.ts +12 -0
- package/dist/serialization/types/ClientFacingMealResponse.js +42 -0
- package/dist/serialization/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +19 -0
- package/dist/serialization/types/ClientFacingMindfulnessMinutesTimeseries.js +40 -0
- package/dist/serialization/types/ClientFacingOrder.d.ts +29 -0
- package/dist/serialization/types/ClientFacingOrder.js +59 -0
- package/dist/serialization/types/ClientFacingOrderDetails.d.ts +19 -0
- package/dist/serialization/types/ClientFacingOrderDetails.js +49 -0
- package/dist/serialization/types/ClientFacingOrderEvent.d.ts +14 -0
- package/dist/serialization/types/ClientFacingOrderEvent.js +44 -0
- package/dist/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +17 -0
- package/dist/serialization/types/ClientFacingPatientDetailsCompatible.js +38 -0
- package/dist/serialization/types/ClientFacingPayorSearchResponse.d.ts +14 -0
- package/dist/serialization/types/ClientFacingPayorSearchResponse.js +44 -0
- package/dist/serialization/types/ClientFacingProfile.d.ts +15 -0
- package/dist/serialization/types/ClientFacingProfile.js +45 -0
- package/dist/serialization/types/ClientFacingProvider.d.ts +14 -0
- package/dist/serialization/types/ClientFacingProvider.js +35 -0
- package/dist/serialization/types/ClientFacingProviderDetailed.d.ts +17 -0
- package/dist/serialization/types/ClientFacingProviderDetailed.js +49 -0
- package/dist/serialization/types/ClientFacingProviderWithStatus.d.ts +15 -0
- package/dist/serialization/types/ClientFacingProviderWithStatus.js +36 -0
- package/dist/serialization/types/ClientFacingResource.d.ts +10 -0
- package/dist/serialization/types/ClientFacingResource.js +68 -0
- package/dist/serialization/types/ClientFacingRespiratoryRateTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingRespiratoryRateTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingResult.d.ts +17 -0
- package/dist/serialization/types/ClientFacingResult.js +47 -0
- package/dist/serialization/types/ClientFacingShipment.d.ts +19 -0
- package/dist/serialization/types/ClientFacingShipment.js +40 -0
- package/dist/serialization/types/ClientFacingSleep.d.ts +36 -0
- package/dist/serialization/types/ClientFacingSleep.js +66 -0
- package/dist/serialization/types/ClientFacingSleepStream.d.ts +15 -0
- package/dist/serialization/types/ClientFacingSleepStream.js +53 -0
- package/dist/serialization/types/ClientFacingSource.d.ts +17 -0
- package/dist/serialization/types/ClientFacingSource.js +38 -0
- package/dist/serialization/types/ClientFacingSport.d.ts +14 -0
- package/dist/serialization/types/ClientFacingSport.js +35 -0
- package/dist/serialization/types/ClientFacingStepsTimeseries.d.ts +19 -0
- package/dist/serialization/types/ClientFacingStepsTimeseries.js +40 -0
- package/dist/serialization/types/ClientFacingStream.d.ts +21 -0
- package/dist/serialization/types/ClientFacingStream.js +42 -0
- package/dist/serialization/types/ClientFacingTeam.d.ts +27 -0
- package/dist/serialization/types/ClientFacingTeam.js +59 -0
- package/dist/serialization/types/ClientFacingTestKitOrderDetails.d.ts +12 -0
- package/dist/serialization/types/ClientFacingTestKitOrderDetails.js +42 -0
- package/dist/serialization/types/ClientFacingTestkitOrder.d.ts +15 -0
- package/dist/serialization/types/ClientFacingTestkitOrder.js +45 -0
- package/dist/serialization/types/ClientFacingUser.d.ts +17 -0
- package/dist/serialization/types/ClientFacingUser.js +47 -0
- package/dist/serialization/types/ClientFacingUserKey.d.ts +13 -0
- package/dist/serialization/types/ClientFacingUserKey.js +34 -0
- package/dist/serialization/types/ClientFacingWalkInOrderDetails.d.ts +12 -0
- package/dist/serialization/types/ClientFacingWalkInOrderDetails.js +42 -0
- package/dist/serialization/types/ClientFacingWalkInTestOrder.d.ts +14 -0
- package/dist/serialization/types/ClientFacingWalkInTestOrder.js +35 -0
- package/dist/serialization/types/ClientFacingWaterTimeseries.d.ts +17 -0
- package/dist/serialization/types/ClientFacingWaterTimeseries.js +38 -0
- package/dist/serialization/types/ClientFacingWorkout.d.ts +37 -0
- package/dist/serialization/types/ClientFacingWorkout.js +67 -0
- package/dist/serialization/types/ClientSleepResponse.d.ts +12 -0
- package/dist/serialization/types/ClientSleepResponse.js +42 -0
- package/dist/serialization/types/ClientWorkoutResponse.d.ts +12 -0
- package/dist/serialization/types/ClientWorkoutResponse.js +42 -0
- package/dist/serialization/types/ConnectedSourceClientFacing.d.ts +14 -0
- package/dist/serialization/types/ConnectedSourceClientFacing.js +44 -0
- package/dist/serialization/types/ConnectionStatus.d.ts +13 -0
- package/dist/serialization/types/ConnectionStatus.js +34 -0
- package/dist/serialization/types/Consent.d.ts +14 -0
- package/dist/serialization/types/Consent.js +44 -0
- package/dist/serialization/types/ConsentType.d.ts +10 -0
- package/dist/serialization/types/ConsentType.js +38 -0
- package/dist/serialization/types/DaySlots.d.ts +13 -0
- package/dist/serialization/types/DaySlots.js +43 -0
- package/dist/serialization/types/DemoConnectionStatus.d.ts +13 -0
- package/dist/serialization/types/DemoConnectionStatus.js +34 -0
- package/dist/serialization/types/DemoProviders.d.ts +10 -0
- package/dist/serialization/types/DemoProviders.js +31 -0
- package/dist/serialization/types/DeviceV2InDb.d.ts +17 -0
- package/dist/serialization/types/DeviceV2InDb.js +47 -0
- package/dist/serialization/types/EmailProviders.d.ts +10 -0
- package/dist/serialization/types/EmailProviders.js +31 -0
- package/dist/serialization/types/Energy.d.ts +13 -0
- package/dist/serialization/types/Energy.js +34 -0
- package/dist/serialization/types/FallbackTimeZone.d.ts +14 -0
- package/dist/serialization/types/FallbackTimeZone.js +35 -0
- package/dist/serialization/types/Fats.d.ts +17 -0
- package/dist/serialization/types/Fats.js +38 -0
- package/dist/serialization/types/Gender.d.ts +10 -0
- package/dist/serialization/types/Gender.js +36 -0
- package/dist/serialization/types/GetMarkersResponse.d.ts +15 -0
- package/dist/serialization/types/GetMarkersResponse.js +45 -0
- package/dist/serialization/types/GetOrdersResponse.d.ts +15 -0
- package/dist/serialization/types/GetOrdersResponse.js +45 -0
- package/dist/serialization/types/HealthInsuranceCreateRequest.d.ts +21 -0
- package/dist/serialization/types/HealthInsuranceCreateRequest.js +53 -0
- package/dist/serialization/types/HealthInsuranceCreateRequestBackImage.d.ts +16 -0
- package/dist/serialization/types/HealthInsuranceCreateRequestBackImage.js +48 -0
- package/dist/serialization/types/HealthInsuranceCreateRequestFrontImage.d.ts +16 -0
- package/dist/serialization/types/HealthInsuranceCreateRequestFrontImage.js +48 -0
- package/dist/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +16 -0
- package/dist/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.js +48 -0
- package/dist/serialization/types/HttpValidationError.d.ts +12 -0
- package/dist/serialization/types/HttpValidationError.js +44 -0
- package/dist/serialization/types/Jpeg.d.ts +12 -0
- package/dist/serialization/types/Jpeg.js +33 -0
- package/dist/serialization/types/LabResultsMetadata.d.ts +23 -0
- package/dist/serialization/types/LabResultsMetadata.js +44 -0
- package/dist/serialization/types/LabResultsRaw.d.ts +13 -0
- package/dist/serialization/types/LabResultsRaw.js +43 -0
- package/dist/serialization/types/LabResultsRawResults.d.ts +10 -0
- package/dist/serialization/types/LabResultsRawResults.js +43 -0
- package/dist/serialization/types/LabTestCollectionMethod.d.ts +10 -0
- package/dist/serialization/types/LabTestCollectionMethod.js +31 -0
- package/dist/serialization/types/LabTestSampleType.d.ts +10 -0
- package/dist/serialization/types/LabTestSampleType.js +31 -0
- package/dist/serialization/types/LibreConfig.d.ts +12 -0
- package/dist/serialization/types/LibreConfig.js +33 -0
- package/dist/serialization/types/LinkTokenExchangeResponse.d.ts +12 -0
- package/dist/serialization/types/LinkTokenExchangeResponse.js +33 -0
- package/dist/serialization/types/LngLat.d.ts +13 -0
- package/dist/serialization/types/LngLat.js +34 -0
- package/dist/serialization/types/Macros.d.ts +18 -0
- package/dist/serialization/types/Macros.js +48 -0
- package/dist/serialization/types/ManualProviders.d.ts +10 -0
- package/dist/serialization/types/ManualProviders.js +41 -0
- package/dist/serialization/types/MarkerType.d.ts +10 -0
- package/dist/serialization/types/MarkerType.js +31 -0
- package/dist/serialization/types/MealInDbBaseClientFacingSource.d.ts +25 -0
- package/dist/serialization/types/MealInDbBaseClientFacingSource.js +57 -0
- package/dist/serialization/types/MetricsResult.d.ts +17 -0
- package/dist/serialization/types/MetricsResult.js +49 -0
- package/dist/serialization/types/Micros.d.ts +14 -0
- package/dist/serialization/types/Micros.js +35 -0
- package/dist/serialization/types/OAuthProviders.d.ts +10 -0
- package/dist/serialization/types/OAuthProviders.js +44 -0
- package/dist/serialization/types/OrderStatus.d.ts +10 -0
- package/dist/serialization/types/OrderStatus.js +62 -0
- package/dist/serialization/types/OrderTopLevelStatus.d.ts +10 -0
- package/dist/serialization/types/OrderTopLevelStatus.js +31 -0
- package/dist/serialization/types/PaginatedUsersResponse.d.ts +15 -0
- package/dist/serialization/types/PaginatedUsersResponse.js +45 -0
- package/dist/serialization/types/PasswordProviders.d.ts +10 -0
- package/dist/serialization/types/PasswordProviders.js +42 -0
- package/dist/serialization/types/PatientAddressCompatible.d.ts +19 -0
- package/dist/serialization/types/PatientAddressCompatible.js +40 -0
- package/dist/serialization/types/PatientDetails.d.ts +17 -0
- package/dist/serialization/types/PatientDetails.js +47 -0
- package/dist/serialization/types/PersonDetails.d.ts +16 -0
- package/dist/serialization/types/PersonDetails.js +46 -0
- package/dist/serialization/types/PhlebotomyAreaInfo.d.ts +12 -0
- package/dist/serialization/types/PhlebotomyAreaInfo.js +33 -0
- package/dist/serialization/types/PhysicianClientFacing.d.ts +14 -0
- package/dist/serialization/types/PhysicianClientFacing.js +35 -0
- package/dist/serialization/types/PhysicianCreateRequest.d.ts +17 -0
- package/dist/serialization/types/PhysicianCreateRequest.js +47 -0
- package/dist/serialization/types/PhysicianCreateRequestBase.d.ts +16 -0
- package/dist/serialization/types/PhysicianCreateRequestBase.js +37 -0
- package/dist/serialization/types/PhysicianCreateRequestSignatureImage.d.ts +16 -0
- package/dist/serialization/types/PhysicianCreateRequestSignatureImage.js +48 -0
- package/dist/serialization/types/Png.d.ts +12 -0
- package/dist/serialization/types/Png.js +33 -0
- package/dist/serialization/types/PostOrderResponse.d.ts +14 -0
- package/dist/serialization/types/PostOrderResponse.js +44 -0
- package/dist/serialization/types/ProfileInDb.d.ts +18 -0
- package/dist/serialization/types/ProfileInDb.js +48 -0
- package/dist/serialization/types/ProviderLinkResponse.d.ts +14 -0
- package/dist/serialization/types/ProviderLinkResponse.js +44 -0
- package/dist/serialization/types/Providers.d.ts +10 -0
- package/dist/serialization/types/Providers.js +64 -0
- package/dist/serialization/types/RawActivity.d.ts +12 -0
- package/dist/serialization/types/RawActivity.js +42 -0
- package/dist/serialization/types/RawBody.d.ts +12 -0
- package/dist/serialization/types/RawBody.js +42 -0
- package/dist/serialization/types/RawDevices.d.ts +12 -0
- package/dist/serialization/types/RawDevices.js +42 -0
- package/dist/serialization/types/RawProfile.d.ts +12 -0
- package/dist/serialization/types/RawProfile.js +42 -0
- package/dist/serialization/types/RawSleep.d.ts +12 -0
- package/dist/serialization/types/RawSleep.js +42 -0
- package/dist/serialization/types/RawWorkout.d.ts +12 -0
- package/dist/serialization/types/RawWorkout.js +42 -0
- package/dist/serialization/types/Region.d.ts +10 -0
- package/dist/serialization/types/Region.js +41 -0
- package/dist/serialization/types/ResponsibleRelationship.d.ts +10 -0
- package/dist/serialization/types/ResponsibleRelationship.js +31 -0
- package/dist/serialization/types/ResultType.d.ts +10 -0
- package/dist/serialization/types/ResultType.js +31 -0
- package/dist/serialization/types/ShippingAddress.d.ts +19 -0
- package/dist/serialization/types/ShippingAddress.js +40 -0
- package/dist/serialization/types/SleepV2InDb.d.ts +20 -0
- package/dist/serialization/types/SleepV2InDb.js +50 -0
- package/dist/serialization/types/Source.d.ts +22 -0
- package/dist/serialization/types/Source.js +52 -0
- package/dist/serialization/types/SourceAuthType.d.ts +10 -0
- package/dist/serialization/types/SourceAuthType.js +31 -0
- package/dist/serialization/types/SourceLink.d.ts +19 -0
- package/dist/serialization/types/SourceLink.js +49 -0
- package/dist/serialization/types/SourceType.d.ts +10 -0
- package/dist/serialization/types/SourceType.js +31 -0
- package/dist/serialization/types/TeamConfig.d.ts +13 -0
- package/dist/serialization/types/TeamConfig.js +43 -0
- package/dist/serialization/types/TimeSlot.d.ts +18 -0
- package/dist/serialization/types/TimeSlot.js +39 -0
- package/dist/serialization/types/TimeseriesMetricPoint.d.ts +13 -0
- package/dist/serialization/types/TimeseriesMetricPoint.js +34 -0
- package/dist/serialization/types/TimeseriesResource.d.ts +10 -0
- package/dist/serialization/types/TimeseriesResource.js +60 -0
- package/dist/serialization/types/UsAddress.d.ts +17 -0
- package/dist/serialization/types/UsAddress.js +38 -0
- package/dist/serialization/types/UserRefreshErrorResponse.d.ts +15 -0
- package/dist/serialization/types/UserRefreshErrorResponse.js +36 -0
- package/dist/serialization/types/UserRefreshSuccessResponse.d.ts +15 -0
- package/dist/serialization/types/UserRefreshSuccessResponse.js +36 -0
- package/dist/serialization/types/UserSignInToken.d.ts +13 -0
- package/dist/serialization/types/UserSignInToken.js +34 -0
- package/dist/serialization/types/UserSignInTokenResponse.d.ts +13 -0
- package/dist/serialization/types/UserSignInTokenResponse.js +43 -0
- package/dist/serialization/types/UserSignInTokenResponseSignInToken.d.ts +10 -0
- package/dist/serialization/types/UserSignInTokenResponseSignInToken.js +43 -0
- package/dist/serialization/types/UserSuccessResponse.d.ts +12 -0
- package/dist/serialization/types/UserSuccessResponse.js +33 -0
- package/dist/serialization/types/ValidationError.d.ts +14 -0
- package/dist/serialization/types/ValidationError.js +44 -0
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +10 -0
- package/dist/serialization/types/ValidationErrorLocItem.js +31 -0
- package/dist/serialization/types/VitalTokenCreatedResponse.d.ts +13 -0
- package/dist/serialization/types/VitalTokenCreatedResponse.js +34 -0
- package/dist/serialization/types/WorkoutV2InDb.d.ts +21 -0
- package/dist/serialization/types/WorkoutV2InDb.js +51 -0
- package/dist/serialization/types/index.d.ts +159 -0
- package/dist/serialization/types/index.js +175 -0
- package/environments.d.ts +10 -0
- package/environments.js +12 -0
- package/errors/VitalError.d.ts +12 -0
- package/errors/VitalError.js +32 -0
- package/errors/VitalTimeoutError.d.ts +6 -0
- package/errors/VitalTimeoutError.js +13 -0
- package/errors/index.d.ts +2 -0
- package/errors/index.js +7 -0
- package/index.d.ts +4 -0
- package/index.js +34 -0
- package/package.json +23 -59
- package/serialization/index.d.ts +2 -0
- package/serialization/index.js +18 -0
- package/serialization/resources/index.d.ts +13 -0
- package/serialization/resources/index.js +42 -0
- package/serialization/resources/insurance/client/index.d.ts +3 -0
- package/serialization/resources/insurance/client/index.js +32 -0
- package/serialization/resources/insurance/client/requests/PayorSearchRequest.d.ts +13 -0
- package/serialization/resources/insurance/client/requests/PayorSearchRequest.js +34 -0
- package/serialization/resources/insurance/client/requests/index.d.ts +1 -0
- package/serialization/resources/insurance/client/requests/index.js +5 -0
- package/serialization/resources/insurance/client/searchDiagnosis.d.ts +10 -0
- package/serialization/resources/insurance/client/searchDiagnosis.js +40 -0
- package/serialization/resources/insurance/client/searchPayorInfo.d.ts +10 -0
- package/serialization/resources/insurance/client/searchPayorInfo.js +40 -0
- package/serialization/resources/insurance/index.d.ts +1 -0
- package/serialization/resources/insurance/index.js +17 -0
- package/serialization/resources/labTests/client/get.d.ts +10 -0
- package/serialization/resources/labTests/client/get.js +40 -0
- package/serialization/resources/labTests/client/getLabs.d.ts +10 -0
- package/serialization/resources/labTests/client/getLabs.js +40 -0
- package/serialization/resources/labTests/client/getMarkersForLabTest.d.ts +10 -0
- package/serialization/resources/labTests/client/getMarkersForLabTest.js +40 -0
- package/serialization/resources/labTests/client/getPhlebotomyAppointmentCancellationReason.d.ts +10 -0
- package/serialization/resources/labTests/client/getPhlebotomyAppointmentCancellationReason.js +40 -0
- package/serialization/resources/labTests/client/index.d.ts +5 -0
- package/serialization/resources/labTests/client/index.js +34 -0
- package/serialization/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +12 -0
- package/serialization/resources/labTests/client/requests/AppointmentBookingRequest.js +33 -0
- package/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +13 -0
- package/serialization/resources/labTests/client/requests/AppointmentCancelRequest.js +34 -0
- package/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +12 -0
- package/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.js +33 -0
- package/serialization/resources/labTests/client/requests/CreateLabTestRequest.d.ts +18 -0
- package/serialization/resources/labTests/client/requests/CreateLabTestRequest.js +48 -0
- package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +19 -0
- package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +53 -0
- package/serialization/resources/labTests/client/requests/index.d.ts +5 -0
- package/serialization/resources/labTests/client/requests/index.js +13 -0
- package/serialization/resources/labTests/index.d.ts +1 -0
- package/serialization/resources/labTests/index.js +17 -0
- package/serialization/resources/link/client/connectManualProvider.d.ts +9 -0
- package/serialization/resources/link/client/connectManualProvider.js +31 -0
- package/serialization/resources/link/client/connectOauthProvider.d.ts +9 -0
- package/serialization/resources/link/client/connectOauthProvider.js +31 -0
- package/serialization/resources/link/client/getAllProviders.d.ts +10 -0
- package/serialization/resources/link/client/getAllProviders.js +40 -0
- package/serialization/resources/link/client/index.d.ts +7 -0
- package/serialization/resources/link/client/index.js +36 -0
- package/serialization/resources/link/client/isTokenValid.d.ts +9 -0
- package/serialization/resources/link/client/isTokenValid.js +31 -0
- package/serialization/resources/link/client/requests/BeginLinkTokenRequest.d.ts +13 -0
- package/serialization/resources/link/client/requests/BeginLinkTokenRequest.js +43 -0
- package/serialization/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +13 -0
- package/serialization/resources/link/client/requests/DemoConnectionCreationPayload.js +43 -0
- package/serialization/resources/link/client/requests/EmailAuthLink.d.ts +15 -0
- package/serialization/resources/link/client/requests/EmailAuthLink.js +45 -0
- package/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +14 -0
- package/serialization/resources/link/client/requests/EmailProviderAuthLink.js +44 -0
- package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +13 -0
- package/serialization/resources/link/client/requests/IndividualProviderData.js +34 -0
- package/serialization/resources/link/client/requests/LinkTokenBase.d.ts +14 -0
- package/serialization/resources/link/client/requests/LinkTokenBase.js +35 -0
- package/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +15 -0
- package/serialization/resources/link/client/requests/LinkTokenExchange.js +47 -0
- package/serialization/resources/link/client/requests/ManualConnectionData.d.ts +13 -0
- package/serialization/resources/link/client/requests/ManualConnectionData.js +34 -0
- package/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +15 -0
- package/serialization/resources/link/client/requests/PasswordAuthLink.js +45 -0
- package/serialization/resources/link/client/requests/index.d.ts +9 -0
- package/serialization/resources/link/client/requests/index.js +21 -0
- package/serialization/resources/link/client/startConnect.d.ts +9 -0
- package/serialization/resources/link/client/startConnect.js +31 -0
- package/serialization/resources/link/client/tokenState.d.ts +9 -0
- package/serialization/resources/link/client/tokenState.js +31 -0
- package/serialization/resources/link/index.d.ts +1 -0
- package/serialization/resources/link/index.js +17 -0
- package/serialization/resources/providers/client/getAll.d.ts +10 -0
- package/serialization/resources/providers/client/getAll.js +40 -0
- package/serialization/resources/providers/client/index.d.ts +1 -0
- package/serialization/resources/providers/client/index.js +27 -0
- package/serialization/resources/providers/index.d.ts +1 -0
- package/serialization/resources/providers/index.js +17 -0
- package/serialization/resources/team/client/getLinkConfig.d.ts +9 -0
- package/serialization/resources/team/client/getLinkConfig.js +31 -0
- package/serialization/resources/team/client/getSourcePriorities.d.ts +9 -0
- package/serialization/resources/team/client/getSourcePriorities.js +31 -0
- package/serialization/resources/team/client/getSvixUrl.d.ts +9 -0
- package/serialization/resources/team/client/getSvixUrl.js +31 -0
- package/serialization/resources/team/client/getUserById.d.ts +10 -0
- package/serialization/resources/team/client/getUserById.js +40 -0
- package/serialization/resources/team/client/index.d.ts +5 -0
- package/serialization/resources/team/client/index.js +31 -0
- package/serialization/resources/team/client/updateSourcePriorities.d.ts +9 -0
- package/serialization/resources/team/client/updateSourcePriorities.js +31 -0
- package/serialization/resources/team/index.d.ts +1 -0
- package/serialization/resources/team/index.js +17 -0
- package/serialization/resources/testkit/client/index.d.ts +1 -0
- package/serialization/resources/testkit/client/index.js +17 -0
- package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +14 -0
- package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.js +44 -0
- package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +17 -0
- package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.js +51 -0
- package/serialization/resources/testkit/client/requests/index.d.ts +2 -0
- package/serialization/resources/testkit/client/requests/index.js +7 -0
- package/serialization/resources/testkit/index.d.ts +1 -0
- package/serialization/resources/testkit/index.js +17 -0
- package/serialization/resources/user/client/getConnectedProviders.d.ts +10 -0
- package/serialization/resources/user/client/getConnectedProviders.js +40 -0
- package/serialization/resources/user/client/index.d.ts +2 -0
- package/serialization/resources/user/client/index.js +31 -0
- package/serialization/resources/user/client/requests/UserCreateBody.d.ts +13 -0
- package/serialization/resources/user/client/requests/UserCreateBody.js +34 -0
- package/serialization/resources/user/client/requests/UserPatchBody.d.ts +12 -0
- package/serialization/resources/user/client/requests/UserPatchBody.js +33 -0
- package/serialization/resources/user/client/requests/index.d.ts +2 -0
- package/serialization/resources/user/client/requests/index.js +7 -0
- package/serialization/resources/user/index.d.ts +1 -0
- package/serialization/resources/user/index.js +17 -0
- package/serialization/resources/vitals/client/bloodOxygen.d.ts +10 -0
- package/serialization/resources/vitals/client/bloodOxygen.js +40 -0
- package/serialization/resources/vitals/client/bloodPressure.d.ts +10 -0
- package/serialization/resources/vitals/client/bloodPressure.js +40 -0
- package/serialization/resources/vitals/client/caffeine.d.ts +10 -0
- package/serialization/resources/vitals/client/caffeine.js +40 -0
- package/serialization/resources/vitals/client/caloriesActive.d.ts +10 -0
- package/serialization/resources/vitals/client/caloriesActive.js +40 -0
- package/serialization/resources/vitals/client/caloriesBasal.d.ts +10 -0
- package/serialization/resources/vitals/client/caloriesBasal.js +40 -0
- package/serialization/resources/vitals/client/cholesterol.d.ts +10 -0
- package/serialization/resources/vitals/client/cholesterol.js +40 -0
- package/serialization/resources/vitals/client/cholesterolHdl.d.ts +10 -0
- package/serialization/resources/vitals/client/cholesterolHdl.js +40 -0
- package/serialization/resources/vitals/client/cholesterolLdl.d.ts +10 -0
- package/serialization/resources/vitals/client/cholesterolLdl.js +40 -0
- package/serialization/resources/vitals/client/cholesterolTotal.d.ts +10 -0
- package/serialization/resources/vitals/client/cholesterolTotal.js +40 -0
- package/serialization/resources/vitals/client/distance.d.ts +10 -0
- package/serialization/resources/vitals/client/distance.js +40 -0
- package/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +10 -0
- package/serialization/resources/vitals/client/electrocardiogramVoltage.js +40 -0
- package/serialization/resources/vitals/client/floorsClimbed.d.ts +10 -0
- package/serialization/resources/vitals/client/floorsClimbed.js +40 -0
- package/serialization/resources/vitals/client/glucose.d.ts +10 -0
- package/serialization/resources/vitals/client/glucose.js +40 -0
- package/serialization/resources/vitals/client/heartrate.d.ts +10 -0
- package/serialization/resources/vitals/client/heartrate.js +40 -0
- package/serialization/resources/vitals/client/hrv.d.ts +10 -0
- package/serialization/resources/vitals/client/hrv.js +40 -0
- package/serialization/resources/vitals/client/hypnogram.d.ts +10 -0
- package/serialization/resources/vitals/client/hypnogram.js +40 -0
- package/serialization/resources/vitals/client/ige.d.ts +10 -0
- package/serialization/resources/vitals/client/ige.js +40 -0
- package/serialization/resources/vitals/client/igg.d.ts +10 -0
- package/serialization/resources/vitals/client/igg.js +40 -0
- package/serialization/resources/vitals/client/index.d.ts +23 -0
- package/serialization/resources/vitals/client/index.js +49 -0
- package/serialization/resources/vitals/client/mindfulnessMinutes.d.ts +10 -0
- package/serialization/resources/vitals/client/mindfulnessMinutes.js +40 -0
- package/serialization/resources/vitals/client/respiratoryRate.d.ts +10 -0
- package/serialization/resources/vitals/client/respiratoryRate.js +40 -0
- package/serialization/resources/vitals/client/steps.d.ts +10 -0
- package/serialization/resources/vitals/client/steps.js +40 -0
- package/serialization/resources/vitals/client/triglycerides.d.ts +10 -0
- package/serialization/resources/vitals/client/triglycerides.js +40 -0
- package/serialization/resources/vitals/client/water.d.ts +10 -0
- package/serialization/resources/vitals/client/water.js +40 -0
- package/serialization/resources/vitals/index.d.ts +1 -0
- package/serialization/resources/vitals/index.js +17 -0
- package/serialization/types/ActivityV2InDb.d.ts +19 -0
- package/serialization/types/ActivityV2InDb.js +49 -0
- package/serialization/types/Address.d.ts +17 -0
- package/serialization/types/Address.js +38 -0
- package/serialization/types/AppointmentAvailabilitySlots.d.ts +13 -0
- package/serialization/types/AppointmentAvailabilitySlots.js +43 -0
- package/serialization/types/AppointmentEventStatus.d.ts +10 -0
- package/serialization/types/AppointmentEventStatus.js +31 -0
- package/serialization/types/AppointmentProvider.d.ts +10 -0
- package/serialization/types/AppointmentProvider.js +31 -0
- package/serialization/types/AppointmentStatus.d.ts +10 -0
- package/serialization/types/AppointmentStatus.js +31 -0
- package/serialization/types/AppointmentType.d.ts +10 -0
- package/serialization/types/AppointmentType.js +31 -0
- package/serialization/types/AreaInfo.d.ts +13 -0
- package/serialization/types/AreaInfo.js +43 -0
- package/serialization/types/AuthType.d.ts +10 -0
- package/serialization/types/AuthType.js +35 -0
- package/serialization/types/BiomarkerResult.d.ts +26 -0
- package/serialization/types/BiomarkerResult.js +56 -0
- package/serialization/types/BodyV2InDb.d.ts +20 -0
- package/serialization/types/BodyV2InDb.js +50 -0
- package/serialization/types/ClientActivityResponse.d.ts +12 -0
- package/serialization/types/ClientActivityResponse.js +42 -0
- package/serialization/types/ClientBodyResponse.d.ts +12 -0
- package/serialization/types/ClientBodyResponse.js +42 -0
- package/serialization/types/ClientFacingActivity.d.ts +28 -0
- package/serialization/types/ClientFacingActivity.js +58 -0
- package/serialization/types/ClientFacingApiKey.d.ts +17 -0
- package/serialization/types/ClientFacingApiKey.js +38 -0
- package/serialization/types/ClientFacingAppointment.d.ts +27 -0
- package/serialization/types/ClientFacingAppointment.js +57 -0
- package/serialization/types/ClientFacingAppointmentCancellationReason.d.ts +14 -0
- package/serialization/types/ClientFacingAppointmentCancellationReason.js +35 -0
- package/serialization/types/ClientFacingAppointmentEvent.d.ts +14 -0
- package/serialization/types/ClientFacingAppointmentEvent.js +44 -0
- package/serialization/types/ClientFacingAtHomePhlebotomyOrder.d.ts +15 -0
- package/serialization/types/ClientFacingAtHomePhlebotomyOrder.js +36 -0
- package/serialization/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +12 -0
- package/serialization/types/ClientFacingAtHomePhlebotomyOrderDetails.js +42 -0
- package/serialization/types/ClientFacingBloodOxygenTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingBloodOxygenTimeseries.js +38 -0
- package/serialization/types/ClientFacingBloodPressureTimeseries.d.ts +18 -0
- package/serialization/types/ClientFacingBloodPressureTimeseries.js +39 -0
- package/serialization/types/ClientFacingBody.d.ts +18 -0
- package/serialization/types/ClientFacingBody.js +48 -0
- package/serialization/types/ClientFacingCaffeineTimeseries.d.ts +19 -0
- package/serialization/types/ClientFacingCaffeineTimeseries.js +40 -0
- package/serialization/types/ClientFacingCaloriesActiveTimeseries.d.ts +19 -0
- package/serialization/types/ClientFacingCaloriesActiveTimeseries.js +40 -0
- package/serialization/types/ClientFacingCaloriesBasalTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingCaloriesBasalTimeseries.js +38 -0
- package/serialization/types/ClientFacingCholesterolTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingCholesterolTimeseries.js +38 -0
- package/serialization/types/ClientFacingDiagnosisInformation.d.ts +13 -0
- package/serialization/types/ClientFacingDiagnosisInformation.js +34 -0
- package/serialization/types/ClientFacingDistanceTimeseries.d.ts +19 -0
- package/serialization/types/ClientFacingDistanceTimeseries.js +40 -0
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.js +38 -0
- package/serialization/types/ClientFacingFloorsClimbedTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingFloorsClimbedTimeseries.js +38 -0
- package/serialization/types/ClientFacingFood.d.ts +14 -0
- package/serialization/types/ClientFacingFood.js +44 -0
- package/serialization/types/ClientFacingGlucoseTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingGlucoseTimeseries.js +38 -0
- package/serialization/types/ClientFacingHeartRate.d.ts +15 -0
- package/serialization/types/ClientFacingHeartRate.js +36 -0
- package/serialization/types/ClientFacingHeartRateTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingHeartRateTimeseries.js +38 -0
- package/serialization/types/ClientFacingHrvTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingHrvTimeseries.js +38 -0
- package/serialization/types/ClientFacingHypnogramTimeseries.d.ts +19 -0
- package/serialization/types/ClientFacingHypnogramTimeseries.js +40 -0
- package/serialization/types/ClientFacingIgeTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingIgeTimeseries.js +38 -0
- package/serialization/types/ClientFacingIggTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingIggTimeseries.js +38 -0
- package/serialization/types/ClientFacingLab.d.ts +19 -0
- package/serialization/types/ClientFacingLab.js +49 -0
- package/serialization/types/ClientFacingLabTest.d.ts +22 -0
- package/serialization/types/ClientFacingLabTest.js +54 -0
- package/serialization/types/ClientFacingLoinc.d.ts +16 -0
- package/serialization/types/ClientFacingLoinc.js +37 -0
- package/serialization/types/ClientFacingMarker.d.ts +20 -0
- package/serialization/types/ClientFacingMarker.js +50 -0
- package/serialization/types/ClientFacingMarkerComplete.d.ts +21 -0
- package/serialization/types/ClientFacingMarkerComplete.js +51 -0
- package/serialization/types/ClientFacingMealResponse.d.ts +12 -0
- package/serialization/types/ClientFacingMealResponse.js +42 -0
- package/serialization/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +19 -0
- package/serialization/types/ClientFacingMindfulnessMinutesTimeseries.js +40 -0
- package/serialization/types/ClientFacingOrder.d.ts +29 -0
- package/serialization/types/ClientFacingOrder.js +59 -0
- package/serialization/types/ClientFacingOrderDetails.d.ts +19 -0
- package/serialization/types/ClientFacingOrderDetails.js +49 -0
- package/serialization/types/ClientFacingOrderEvent.d.ts +14 -0
- package/serialization/types/ClientFacingOrderEvent.js +44 -0
- package/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +17 -0
- package/serialization/types/ClientFacingPatientDetailsCompatible.js +38 -0
- package/serialization/types/ClientFacingPayorSearchResponse.d.ts +14 -0
- package/serialization/types/ClientFacingPayorSearchResponse.js +44 -0
- package/serialization/types/ClientFacingProfile.d.ts +15 -0
- package/serialization/types/ClientFacingProfile.js +45 -0
- package/serialization/types/ClientFacingProvider.d.ts +14 -0
- package/serialization/types/ClientFacingProvider.js +35 -0
- package/serialization/types/ClientFacingProviderDetailed.d.ts +17 -0
- package/serialization/types/ClientFacingProviderDetailed.js +49 -0
- package/serialization/types/ClientFacingProviderWithStatus.d.ts +15 -0
- package/serialization/types/ClientFacingProviderWithStatus.js +36 -0
- package/serialization/types/ClientFacingResource.d.ts +10 -0
- package/serialization/types/ClientFacingResource.js +68 -0
- package/serialization/types/ClientFacingRespiratoryRateTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingRespiratoryRateTimeseries.js +38 -0
- package/serialization/types/ClientFacingResult.d.ts +17 -0
- package/serialization/types/ClientFacingResult.js +47 -0
- package/serialization/types/ClientFacingShipment.d.ts +19 -0
- package/serialization/types/ClientFacingShipment.js +40 -0
- package/serialization/types/ClientFacingSleep.d.ts +36 -0
- package/serialization/types/ClientFacingSleep.js +66 -0
- package/serialization/types/ClientFacingSleepStream.d.ts +15 -0
- package/serialization/types/ClientFacingSleepStream.js +53 -0
- package/serialization/types/ClientFacingSource.d.ts +17 -0
- package/serialization/types/ClientFacingSource.js +38 -0
- package/serialization/types/ClientFacingSport.d.ts +14 -0
- package/serialization/types/ClientFacingSport.js +35 -0
- package/serialization/types/ClientFacingStepsTimeseries.d.ts +19 -0
- package/serialization/types/ClientFacingStepsTimeseries.js +40 -0
- package/serialization/types/ClientFacingStream.d.ts +21 -0
- package/serialization/types/ClientFacingStream.js +42 -0
- package/serialization/types/ClientFacingTeam.d.ts +27 -0
- package/serialization/types/ClientFacingTeam.js +59 -0
- package/serialization/types/ClientFacingTestKitOrderDetails.d.ts +12 -0
- package/serialization/types/ClientFacingTestKitOrderDetails.js +42 -0
- package/serialization/types/ClientFacingTestkitOrder.d.ts +15 -0
- package/serialization/types/ClientFacingTestkitOrder.js +45 -0
- package/serialization/types/ClientFacingUser.d.ts +17 -0
- package/serialization/types/ClientFacingUser.js +47 -0
- package/serialization/types/ClientFacingUserKey.d.ts +13 -0
- package/serialization/types/ClientFacingUserKey.js +34 -0
- package/serialization/types/ClientFacingWalkInOrderDetails.d.ts +12 -0
- package/serialization/types/ClientFacingWalkInOrderDetails.js +42 -0
- package/serialization/types/ClientFacingWalkInTestOrder.d.ts +14 -0
- package/serialization/types/ClientFacingWalkInTestOrder.js +35 -0
- package/serialization/types/ClientFacingWaterTimeseries.d.ts +17 -0
- package/serialization/types/ClientFacingWaterTimeseries.js +38 -0
- package/serialization/types/ClientFacingWorkout.d.ts +37 -0
- package/serialization/types/ClientFacingWorkout.js +67 -0
- package/serialization/types/ClientSleepResponse.d.ts +12 -0
- package/serialization/types/ClientSleepResponse.js +42 -0
- package/serialization/types/ClientWorkoutResponse.d.ts +12 -0
- package/serialization/types/ClientWorkoutResponse.js +42 -0
- package/serialization/types/ConnectedSourceClientFacing.d.ts +14 -0
- package/serialization/types/ConnectedSourceClientFacing.js +44 -0
- package/serialization/types/ConnectionStatus.d.ts +13 -0
- package/serialization/types/ConnectionStatus.js +34 -0
- package/serialization/types/Consent.d.ts +14 -0
- package/serialization/types/Consent.js +44 -0
- package/serialization/types/ConsentType.d.ts +10 -0
- package/serialization/types/ConsentType.js +38 -0
- package/serialization/types/DaySlots.d.ts +13 -0
- package/serialization/types/DaySlots.js +43 -0
- package/serialization/types/DemoConnectionStatus.d.ts +13 -0
- package/serialization/types/DemoConnectionStatus.js +34 -0
- package/serialization/types/DemoProviders.d.ts +10 -0
- package/serialization/types/DemoProviders.js +31 -0
- package/serialization/types/DeviceV2InDb.d.ts +17 -0
- package/serialization/types/DeviceV2InDb.js +47 -0
- package/serialization/types/EmailProviders.d.ts +10 -0
- package/serialization/types/EmailProviders.js +31 -0
- package/serialization/types/Energy.d.ts +13 -0
- package/serialization/types/Energy.js +34 -0
- package/serialization/types/FallbackTimeZone.d.ts +14 -0
- package/serialization/types/FallbackTimeZone.js +35 -0
- package/serialization/types/Fats.d.ts +17 -0
- package/serialization/types/Fats.js +38 -0
- package/serialization/types/Gender.d.ts +10 -0
- package/serialization/types/Gender.js +36 -0
- package/serialization/types/GetMarkersResponse.d.ts +15 -0
- package/serialization/types/GetMarkersResponse.js +45 -0
- package/serialization/types/GetOrdersResponse.d.ts +15 -0
- package/serialization/types/GetOrdersResponse.js +45 -0
- package/serialization/types/HealthInsuranceCreateRequest.d.ts +21 -0
- package/serialization/types/HealthInsuranceCreateRequest.js +53 -0
- package/serialization/types/HealthInsuranceCreateRequestBackImage.d.ts +16 -0
- package/serialization/types/HealthInsuranceCreateRequestBackImage.js +48 -0
- package/serialization/types/HealthInsuranceCreateRequestFrontImage.d.ts +16 -0
- package/serialization/types/HealthInsuranceCreateRequestFrontImage.js +48 -0
- package/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +16 -0
- package/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.js +48 -0
- package/serialization/types/HttpValidationError.d.ts +12 -0
- package/serialization/types/HttpValidationError.js +44 -0
- package/serialization/types/Jpeg.d.ts +12 -0
- package/serialization/types/Jpeg.js +33 -0
- package/serialization/types/LabResultsMetadata.d.ts +23 -0
- package/serialization/types/LabResultsMetadata.js +44 -0
- package/serialization/types/LabResultsRaw.d.ts +13 -0
- package/serialization/types/LabResultsRaw.js +43 -0
- package/serialization/types/LabResultsRawResults.d.ts +10 -0
- package/serialization/types/LabResultsRawResults.js +43 -0
- package/serialization/types/LabTestCollectionMethod.d.ts +10 -0
- package/serialization/types/LabTestCollectionMethod.js +31 -0
- package/serialization/types/LabTestSampleType.d.ts +10 -0
- package/serialization/types/LabTestSampleType.js +31 -0
- package/serialization/types/LibreConfig.d.ts +12 -0
- package/serialization/types/LibreConfig.js +33 -0
- package/serialization/types/LinkTokenExchangeResponse.d.ts +12 -0
- package/serialization/types/LinkTokenExchangeResponse.js +33 -0
- package/serialization/types/LngLat.d.ts +13 -0
- package/serialization/types/LngLat.js +34 -0
- package/serialization/types/Macros.d.ts +18 -0
- package/serialization/types/Macros.js +48 -0
- package/serialization/types/ManualProviders.d.ts +10 -0
- package/serialization/types/ManualProviders.js +41 -0
- package/serialization/types/MarkerType.d.ts +10 -0
- package/serialization/types/MarkerType.js +31 -0
- package/serialization/types/MealInDbBaseClientFacingSource.d.ts +25 -0
- package/serialization/types/MealInDbBaseClientFacingSource.js +57 -0
- package/serialization/types/MetricsResult.d.ts +17 -0
- package/serialization/types/MetricsResult.js +49 -0
- package/serialization/types/Micros.d.ts +14 -0
- package/serialization/types/Micros.js +35 -0
- package/serialization/types/OAuthProviders.d.ts +10 -0
- package/serialization/types/OAuthProviders.js +44 -0
- package/serialization/types/OrderStatus.d.ts +10 -0
- package/serialization/types/OrderStatus.js +62 -0
- package/serialization/types/OrderTopLevelStatus.d.ts +10 -0
- package/serialization/types/OrderTopLevelStatus.js +31 -0
- package/serialization/types/PaginatedUsersResponse.d.ts +15 -0
- package/serialization/types/PaginatedUsersResponse.js +45 -0
- package/serialization/types/PasswordProviders.d.ts +10 -0
- package/serialization/types/PasswordProviders.js +42 -0
- package/serialization/types/PatientAddressCompatible.d.ts +19 -0
- package/serialization/types/PatientAddressCompatible.js +40 -0
- package/serialization/types/PatientDetails.d.ts +17 -0
- package/serialization/types/PatientDetails.js +47 -0
- package/serialization/types/PersonDetails.d.ts +16 -0
- package/serialization/types/PersonDetails.js +46 -0
- package/serialization/types/PhlebotomyAreaInfo.d.ts +12 -0
- package/serialization/types/PhlebotomyAreaInfo.js +33 -0
- package/serialization/types/PhysicianClientFacing.d.ts +14 -0
- package/serialization/types/PhysicianClientFacing.js +35 -0
- package/serialization/types/PhysicianCreateRequest.d.ts +17 -0
- package/serialization/types/PhysicianCreateRequest.js +47 -0
- package/serialization/types/PhysicianCreateRequestBase.d.ts +16 -0
- package/serialization/types/PhysicianCreateRequestBase.js +37 -0
- package/serialization/types/PhysicianCreateRequestSignatureImage.d.ts +16 -0
- package/serialization/types/PhysicianCreateRequestSignatureImage.js +48 -0
- package/serialization/types/Png.d.ts +12 -0
- package/serialization/types/Png.js +33 -0
- package/serialization/types/PostOrderResponse.d.ts +14 -0
- package/serialization/types/PostOrderResponse.js +44 -0
- package/serialization/types/ProfileInDb.d.ts +18 -0
- package/serialization/types/ProfileInDb.js +48 -0
- package/serialization/types/ProviderLinkResponse.d.ts +14 -0
- package/serialization/types/ProviderLinkResponse.js +44 -0
- package/serialization/types/Providers.d.ts +10 -0
- package/serialization/types/Providers.js +64 -0
- package/serialization/types/RawActivity.d.ts +12 -0
- package/serialization/types/RawActivity.js +42 -0
- package/serialization/types/RawBody.d.ts +12 -0
- package/serialization/types/RawBody.js +42 -0
- package/serialization/types/RawDevices.d.ts +12 -0
- package/serialization/types/RawDevices.js +42 -0
- package/serialization/types/RawProfile.d.ts +12 -0
- package/serialization/types/RawProfile.js +42 -0
- package/serialization/types/RawSleep.d.ts +12 -0
- package/serialization/types/RawSleep.js +42 -0
- package/serialization/types/RawWorkout.d.ts +12 -0
- package/serialization/types/RawWorkout.js +42 -0
- package/serialization/types/Region.d.ts +10 -0
- package/serialization/types/Region.js +41 -0
- package/serialization/types/ResponsibleRelationship.d.ts +10 -0
- package/serialization/types/ResponsibleRelationship.js +31 -0
- package/serialization/types/ResultType.d.ts +10 -0
- package/serialization/types/ResultType.js +31 -0
- package/serialization/types/ShippingAddress.d.ts +19 -0
- package/serialization/types/ShippingAddress.js +40 -0
- package/serialization/types/SleepV2InDb.d.ts +20 -0
- package/serialization/types/SleepV2InDb.js +50 -0
- package/serialization/types/Source.d.ts +22 -0
- package/serialization/types/Source.js +52 -0
- package/serialization/types/SourceAuthType.d.ts +10 -0
- package/serialization/types/SourceAuthType.js +31 -0
- package/serialization/types/SourceLink.d.ts +19 -0
- package/serialization/types/SourceLink.js +49 -0
- package/serialization/types/SourceType.d.ts +10 -0
- package/serialization/types/SourceType.js +31 -0
- package/serialization/types/TeamConfig.d.ts +13 -0
- package/serialization/types/TeamConfig.js +43 -0
- package/serialization/types/TimeSlot.d.ts +18 -0
- package/serialization/types/TimeSlot.js +39 -0
- package/serialization/types/TimeseriesMetricPoint.d.ts +13 -0
- package/serialization/types/TimeseriesMetricPoint.js +34 -0
- package/serialization/types/TimeseriesResource.d.ts +10 -0
- package/serialization/types/TimeseriesResource.js +60 -0
- package/serialization/types/UsAddress.d.ts +17 -0
- package/serialization/types/UsAddress.js +38 -0
- package/serialization/types/UserRefreshErrorResponse.d.ts +15 -0
- package/serialization/types/UserRefreshErrorResponse.js +36 -0
- package/serialization/types/UserRefreshSuccessResponse.d.ts +15 -0
- package/serialization/types/UserRefreshSuccessResponse.js +36 -0
- package/serialization/types/UserSignInToken.d.ts +13 -0
- package/serialization/types/UserSignInToken.js +34 -0
- package/serialization/types/UserSignInTokenResponse.d.ts +13 -0
- package/serialization/types/UserSignInTokenResponse.js +43 -0
- package/serialization/types/UserSignInTokenResponseSignInToken.d.ts +10 -0
- package/serialization/types/UserSignInTokenResponseSignInToken.js +43 -0
- package/serialization/types/UserSuccessResponse.d.ts +12 -0
- package/serialization/types/UserSuccessResponse.js +33 -0
- package/serialization/types/ValidationError.d.ts +14 -0
- package/serialization/types/ValidationError.js +44 -0
- package/serialization/types/ValidationErrorLocItem.d.ts +10 -0
- package/serialization/types/ValidationErrorLocItem.js +31 -0
- package/serialization/types/VitalTokenCreatedResponse.d.ts +13 -0
- package/serialization/types/VitalTokenCreatedResponse.js +34 -0
- package/serialization/types/WorkoutV2InDb.d.ts +21 -0
- package/serialization/types/WorkoutV2InDb.js +51 -0
- package/serialization/types/index.d.ts +159 -0
- package/serialization/types/index.js +175 -0
- package/.eslintignore +0 -4
- package/.eslintrc.js +0 -70
- package/.github/workflows/deploy.yaml +0 -18
- package/.github/workflows/test-build.yaml +0 -32
- package/.prettierrc.js +0 -6
- package/.vscode/launch.json +0 -19
- package/.vscode/settings.json +0 -3
- package/LICENSE +0 -21
- package/__tests__/activity.test.ts +0 -18
- package/__tests__/arrange.ts +0 -35
- package/__tests__/body.test.ts +0 -17
- package/__tests__/link.test.ts +0 -15
- package/__tests__/profile.test.ts +0 -15
- package/__tests__/providers.test.ts +0 -6
- package/__tests__/sleep.test.ts +0 -31
- package/__tests__/user.test.ts +0 -45
- package/__tests__/vitals.test.ts +0 -17
- package/__tests__/workouts.test.ts +0 -17
- package/client/Activity.ts +0 -42
- package/client/AtHomePhlebotomy.ts +0 -107
- package/client/Body.ts +0 -43
- package/client/Devices.ts +0 -25
- package/client/LabTests.ts +0 -206
- package/client/Link.ts +0 -106
- package/client/Meals.ts +0 -27
- package/client/Profile.ts +0 -41
- package/client/Provider.ts +0 -17
- package/client/Sleep.ts +0 -82
- package/client/Testkits.ts +0 -107
- package/client/User.ts +0 -88
- package/client/Vitals.ts +0 -226
- package/client/Webhooks.ts +0 -20
- package/client/Workouts.ts +0 -54
- package/client/index.ts +0 -14
- package/client/lib/Error.ts +0 -47
- package/client/lib/WebhookVerification.ts +0 -156
- package/client/lib/utils.ts +0 -47
- package/client/models/activity.ts +0 -315
- package/client/models/athome_phlebotomy_models.ts +0 -58
- package/client/models/body_model.ts +0 -59
- package/client/models/lab_tests_model.ts +0 -217
- package/client/models/link_models.ts +0 -46
- package/client/models/meal_model.ts +0 -61
- package/client/models/profile_model.ts +0 -34
- package/client/models/provider_models.ts +0 -19
- package/client/models/provider_specific.ts +0 -46
- package/client/models/raw_response.ts +0 -44
- package/client/models/sleep_models.ts +0 -171
- package/client/models/testkit_models.ts +0 -102
- package/client/models/user_models.ts +0 -81
- package/client/models/webhook_models.ts +0 -18
- package/client/models/workout_models.ts +0 -196
- package/dist/client/Activity.d.ts +0 -10
- package/dist/client/Activity.js +0 -77
- package/dist/client/AtHomePhlebotomy.d.ts +0 -13
- package/dist/client/AtHomePhlebotomy.js +0 -146
- package/dist/client/Body.d.ts +0 -10
- package/dist/client/Body.js +0 -77
- package/dist/client/Devices.d.ts +0 -8
- package/dist/client/Devices.js +0 -62
- package/dist/client/LabTests.d.ts +0 -34
- package/dist/client/LabTests.js +0 -286
- package/dist/client/Link.d.ts +0 -14
- package/dist/client/Link.js +0 -148
- package/dist/client/Meals.d.ts +0 -8
- package/dist/client/Meals.js +0 -62
- package/dist/client/Profile.d.ts +0 -10
- package/dist/client/Profile.js +0 -77
- package/dist/client/Provider.d.ts +0 -8
- package/dist/client/Provider.js +0 -60
- package/dist/client/Sleep.d.ts +0 -12
- package/dist/client/Sleep.js +0 -124
- package/dist/client/Testkits.d.ts +0 -15
- package/dist/client/Testkits.js +0 -171
- package/dist/client/User.d.ts +0 -16
- package/dist/client/User.js +0 -171
- package/dist/client/Vitals.d.ts +0 -22
- package/dist/client/Vitals.js +0 -160
- package/dist/client/Webhooks.d.ts +0 -7
- package/dist/client/Webhooks.js +0 -16
- package/dist/client/Workouts.d.ts +0 -11
- package/dist/client/Workouts.js +0 -90
- package/dist/client/index.d.ts +0 -14
- package/dist/client/index.js +0 -31
- package/dist/client/lib/Error.d.ts +0 -34
- package/dist/client/lib/Error.js +0 -52
- package/dist/client/lib/WebhookVerification.d.ts +0 -17
- package/dist/client/lib/WebhookVerification.js +0 -106
- package/dist/client/lib/utils.d.ts +0 -8
- package/dist/client/lib/utils.js +0 -37
- package/dist/client/models/activity.d.ts +0 -299
- package/dist/client/models/activity.js +0 -144
- package/dist/client/models/athome_phlebotomy_models.d.ts +0 -48
- package/dist/client/models/body_model.d.ts +0 -57
- package/dist/client/models/lab_tests_model.d.ts +0 -170
- package/dist/client/models/lab_tests_model.js +0 -15
- package/dist/client/models/link_models.d.ts +0 -20
- package/dist/client/models/meal_model.d.ts +0 -55
- package/dist/client/models/profile_model.d.ts +0 -33
- package/dist/client/models/provider_models.d.ts +0 -18
- package/dist/client/models/provider_models.js +0 -15
- package/dist/client/models/provider_specific.d.ts +0 -45
- package/dist/client/models/raw_response.d.ts +0 -38
- package/dist/client/models/sleep_models.d.ts +0 -168
- package/dist/client/models/testkit_models.d.ts +0 -79
- package/dist/client/models/user_models.d.ts +0 -71
- package/dist/client/models/user_models.js +0 -27
- package/dist/client/models/webhook_models.d.ts +0 -10
- package/dist/client/models/workout_models.d.ts +0 -187
- package/dist/lib/config.d.ts +0 -27
- package/dist/lib/config.js +0 -28
- package/dist/lib/models.d.ts +0 -11
- package/index.ts +0 -93
- package/jest.config.js +0 -6
- package/lib/config.ts +0 -26
- package/lib/models.ts +0 -12
- package/tsconfig.json +0 -23
- package/tsconfig.testing.json +0 -13
- /package/{dist/client/models/athome_phlebotomy_models.js → api/resources/activity/client/requests/index.js} +0 -0
- /package/{dist/client/models/body_model.js → api/resources/body/client/requests/index.js} +0 -0
- /package/{dist/client/models/link_models.js → api/resources/devices/client/requests/index.js} +0 -0
- /package/{dist/client/models/meal_model.js → api/resources/insurance/client/requests/index.js} +0 -0
- /package/{dist/client/models/profile_model.js → api/resources/labTests/client/requests/index.js} +0 -0
- /package/{dist/client/models/provider_specific.js → api/resources/link/client/requests/index.js} +0 -0
- /package/{dist/client/models/raw_response.js → api/resources/meal/client/requests/index.js} +0 -0
- /package/{dist/client/models/sleep_models.js → api/resources/profile/client/requests/index.js} +0 -0
- /package/{dist/client/models/testkit_models.js → api/resources/providers/client/index.js} +0 -0
- /package/{dist/client/models/webhook_models.js → api/resources/sleep/client/requests/index.js} +0 -0
- /package/{dist/client/models/workout_models.js → api/resources/team/client/requests/index.js} +0 -0
- /package/{dist/lib/models.js → api/resources/testkit/client/requests/index.js} +0 -0
@@ -0,0 +1,1618 @@
|
|
1
|
+
"use strict";
|
2
|
+
/**
|
3
|
+
* This file was auto-generated by Fern from our API Definition.
|
4
|
+
*/
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
6
|
+
if (k2 === undefined) k2 = k;
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
10
|
+
}
|
11
|
+
Object.defineProperty(o, k2, desc);
|
12
|
+
}) : (function(o, m, k, k2) {
|
13
|
+
if (k2 === undefined) k2 = k;
|
14
|
+
o[k2] = m[k];
|
15
|
+
}));
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
18
|
+
}) : function(o, v) {
|
19
|
+
o["default"] = v;
|
20
|
+
});
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
22
|
+
if (mod && mod.__esModule) return mod;
|
23
|
+
var result = {};
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
25
|
+
__setModuleDefault(result, mod);
|
26
|
+
return result;
|
27
|
+
};
|
28
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
29
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
30
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
31
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
32
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
33
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
34
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
35
|
+
});
|
36
|
+
};
|
37
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
38
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
39
|
+
};
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
41
|
+
exports.Vitals = void 0;
|
42
|
+
const environments = __importStar(require("../../../../environments"));
|
43
|
+
const core = __importStar(require("../../../../core"));
|
44
|
+
const Vital = __importStar(require("../../.."));
|
45
|
+
const url_search_params_1 = __importDefault(require("@ungap/url-search-params"));
|
46
|
+
const url_join_1 = __importDefault(require("url-join"));
|
47
|
+
const serializers = __importStar(require("../../../../serialization"));
|
48
|
+
const errors = __importStar(require("../../../../errors"));
|
49
|
+
class Vitals {
|
50
|
+
constructor(_options) {
|
51
|
+
this._options = _options;
|
52
|
+
}
|
53
|
+
/**
|
54
|
+
* Get timeseries data for user
|
55
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
56
|
+
*/
|
57
|
+
mindfulnessMinutes(userId, request, requestOptions) {
|
58
|
+
var _a;
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
60
|
+
const { provider, startDate, endDate } = request;
|
61
|
+
const _queryParams = new url_search_params_1.default();
|
62
|
+
if (provider != null) {
|
63
|
+
_queryParams.append("provider", provider);
|
64
|
+
}
|
65
|
+
_queryParams.append("start_date", startDate);
|
66
|
+
if (endDate != null) {
|
67
|
+
_queryParams.append("end_date", endDate);
|
68
|
+
}
|
69
|
+
const _response = yield core.fetcher({
|
70
|
+
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`),
|
71
|
+
method: "GET",
|
72
|
+
headers: {
|
73
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
74
|
+
"X-Fern-Language": "JavaScript",
|
75
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
76
|
+
"X-Fern-SDK-Version": "3.0.1",
|
77
|
+
},
|
78
|
+
contentType: "application/json",
|
79
|
+
queryParameters: _queryParams,
|
80
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
81
|
+
});
|
82
|
+
if (_response.ok) {
|
83
|
+
return yield serializers.vitals.mindfulnessMinutes.Response.parseOrThrow(_response.body, {
|
84
|
+
unrecognizedObjectKeys: "passthrough",
|
85
|
+
allowUnrecognizedUnionMembers: true,
|
86
|
+
allowUnrecognizedEnumValues: true,
|
87
|
+
breadcrumbsPrefix: ["response"],
|
88
|
+
});
|
89
|
+
}
|
90
|
+
if (_response.error.reason === "status-code") {
|
91
|
+
switch (_response.error.statusCode) {
|
92
|
+
case 422:
|
93
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
94
|
+
unrecognizedObjectKeys: "passthrough",
|
95
|
+
allowUnrecognizedUnionMembers: true,
|
96
|
+
allowUnrecognizedEnumValues: true,
|
97
|
+
breadcrumbsPrefix: ["response"],
|
98
|
+
}));
|
99
|
+
default:
|
100
|
+
throw new errors.VitalError({
|
101
|
+
statusCode: _response.error.statusCode,
|
102
|
+
body: _response.error.body,
|
103
|
+
});
|
104
|
+
}
|
105
|
+
}
|
106
|
+
switch (_response.error.reason) {
|
107
|
+
case "non-json":
|
108
|
+
throw new errors.VitalError({
|
109
|
+
statusCode: _response.error.statusCode,
|
110
|
+
body: _response.error.rawBody,
|
111
|
+
});
|
112
|
+
case "timeout":
|
113
|
+
throw new errors.VitalTimeoutError();
|
114
|
+
case "unknown":
|
115
|
+
throw new errors.VitalError({
|
116
|
+
message: _response.error.errorMessage,
|
117
|
+
});
|
118
|
+
}
|
119
|
+
});
|
120
|
+
}
|
121
|
+
/**
|
122
|
+
* Get timeseries data for user
|
123
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
124
|
+
*/
|
125
|
+
caffeine(userId, request, requestOptions) {
|
126
|
+
var _a;
|
127
|
+
return __awaiter(this, void 0, void 0, function* () {
|
128
|
+
const { provider, startDate, endDate } = request;
|
129
|
+
const _queryParams = new url_search_params_1.default();
|
130
|
+
if (provider != null) {
|
131
|
+
_queryParams.append("provider", provider);
|
132
|
+
}
|
133
|
+
_queryParams.append("start_date", startDate);
|
134
|
+
if (endDate != null) {
|
135
|
+
_queryParams.append("end_date", endDate);
|
136
|
+
}
|
137
|
+
const _response = yield core.fetcher({
|
138
|
+
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`),
|
139
|
+
method: "GET",
|
140
|
+
headers: {
|
141
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
142
|
+
"X-Fern-Language": "JavaScript",
|
143
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
144
|
+
"X-Fern-SDK-Version": "3.0.1",
|
145
|
+
},
|
146
|
+
contentType: "application/json",
|
147
|
+
queryParameters: _queryParams,
|
148
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
149
|
+
});
|
150
|
+
if (_response.ok) {
|
151
|
+
return yield serializers.vitals.caffeine.Response.parseOrThrow(_response.body, {
|
152
|
+
unrecognizedObjectKeys: "passthrough",
|
153
|
+
allowUnrecognizedUnionMembers: true,
|
154
|
+
allowUnrecognizedEnumValues: true,
|
155
|
+
breadcrumbsPrefix: ["response"],
|
156
|
+
});
|
157
|
+
}
|
158
|
+
if (_response.error.reason === "status-code") {
|
159
|
+
switch (_response.error.statusCode) {
|
160
|
+
case 422:
|
161
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
162
|
+
unrecognizedObjectKeys: "passthrough",
|
163
|
+
allowUnrecognizedUnionMembers: true,
|
164
|
+
allowUnrecognizedEnumValues: true,
|
165
|
+
breadcrumbsPrefix: ["response"],
|
166
|
+
}));
|
167
|
+
default:
|
168
|
+
throw new errors.VitalError({
|
169
|
+
statusCode: _response.error.statusCode,
|
170
|
+
body: _response.error.body,
|
171
|
+
});
|
172
|
+
}
|
173
|
+
}
|
174
|
+
switch (_response.error.reason) {
|
175
|
+
case "non-json":
|
176
|
+
throw new errors.VitalError({
|
177
|
+
statusCode: _response.error.statusCode,
|
178
|
+
body: _response.error.rawBody,
|
179
|
+
});
|
180
|
+
case "timeout":
|
181
|
+
throw new errors.VitalTimeoutError();
|
182
|
+
case "unknown":
|
183
|
+
throw new errors.VitalError({
|
184
|
+
message: _response.error.errorMessage,
|
185
|
+
});
|
186
|
+
}
|
187
|
+
});
|
188
|
+
}
|
189
|
+
/**
|
190
|
+
* Get timeseries data for user
|
191
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
192
|
+
*/
|
193
|
+
water(userId, request, requestOptions) {
|
194
|
+
var _a;
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
196
|
+
const { provider, startDate, endDate } = request;
|
197
|
+
const _queryParams = new url_search_params_1.default();
|
198
|
+
if (provider != null) {
|
199
|
+
_queryParams.append("provider", provider);
|
200
|
+
}
|
201
|
+
_queryParams.append("start_date", startDate);
|
202
|
+
if (endDate != null) {
|
203
|
+
_queryParams.append("end_date", endDate);
|
204
|
+
}
|
205
|
+
const _response = yield core.fetcher({
|
206
|
+
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`),
|
207
|
+
method: "GET",
|
208
|
+
headers: {
|
209
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
210
|
+
"X-Fern-Language": "JavaScript",
|
211
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
212
|
+
"X-Fern-SDK-Version": "3.0.1",
|
213
|
+
},
|
214
|
+
contentType: "application/json",
|
215
|
+
queryParameters: _queryParams,
|
216
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
217
|
+
});
|
218
|
+
if (_response.ok) {
|
219
|
+
return yield serializers.vitals.water.Response.parseOrThrow(_response.body, {
|
220
|
+
unrecognizedObjectKeys: "passthrough",
|
221
|
+
allowUnrecognizedUnionMembers: true,
|
222
|
+
allowUnrecognizedEnumValues: true,
|
223
|
+
breadcrumbsPrefix: ["response"],
|
224
|
+
});
|
225
|
+
}
|
226
|
+
if (_response.error.reason === "status-code") {
|
227
|
+
switch (_response.error.statusCode) {
|
228
|
+
case 422:
|
229
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
230
|
+
unrecognizedObjectKeys: "passthrough",
|
231
|
+
allowUnrecognizedUnionMembers: true,
|
232
|
+
allowUnrecognizedEnumValues: true,
|
233
|
+
breadcrumbsPrefix: ["response"],
|
234
|
+
}));
|
235
|
+
default:
|
236
|
+
throw new errors.VitalError({
|
237
|
+
statusCode: _response.error.statusCode,
|
238
|
+
body: _response.error.body,
|
239
|
+
});
|
240
|
+
}
|
241
|
+
}
|
242
|
+
switch (_response.error.reason) {
|
243
|
+
case "non-json":
|
244
|
+
throw new errors.VitalError({
|
245
|
+
statusCode: _response.error.statusCode,
|
246
|
+
body: _response.error.rawBody,
|
247
|
+
});
|
248
|
+
case "timeout":
|
249
|
+
throw new errors.VitalTimeoutError();
|
250
|
+
case "unknown":
|
251
|
+
throw new errors.VitalError({
|
252
|
+
message: _response.error.errorMessage,
|
253
|
+
});
|
254
|
+
}
|
255
|
+
});
|
256
|
+
}
|
257
|
+
/**
|
258
|
+
* Get timeseries data for user
|
259
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
260
|
+
*/
|
261
|
+
steps(userId, request, requestOptions) {
|
262
|
+
var _a;
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
264
|
+
const { provider, startDate, endDate } = request;
|
265
|
+
const _queryParams = new url_search_params_1.default();
|
266
|
+
if (provider != null) {
|
267
|
+
_queryParams.append("provider", provider);
|
268
|
+
}
|
269
|
+
_queryParams.append("start_date", startDate);
|
270
|
+
if (endDate != null) {
|
271
|
+
_queryParams.append("end_date", endDate);
|
272
|
+
}
|
273
|
+
const _response = yield core.fetcher({
|
274
|
+
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`),
|
275
|
+
method: "GET",
|
276
|
+
headers: {
|
277
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
278
|
+
"X-Fern-Language": "JavaScript",
|
279
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
280
|
+
"X-Fern-SDK-Version": "3.0.1",
|
281
|
+
},
|
282
|
+
contentType: "application/json",
|
283
|
+
queryParameters: _queryParams,
|
284
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
285
|
+
});
|
286
|
+
if (_response.ok) {
|
287
|
+
return yield serializers.vitals.steps.Response.parseOrThrow(_response.body, {
|
288
|
+
unrecognizedObjectKeys: "passthrough",
|
289
|
+
allowUnrecognizedUnionMembers: true,
|
290
|
+
allowUnrecognizedEnumValues: true,
|
291
|
+
breadcrumbsPrefix: ["response"],
|
292
|
+
});
|
293
|
+
}
|
294
|
+
if (_response.error.reason === "status-code") {
|
295
|
+
switch (_response.error.statusCode) {
|
296
|
+
case 422:
|
297
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
298
|
+
unrecognizedObjectKeys: "passthrough",
|
299
|
+
allowUnrecognizedUnionMembers: true,
|
300
|
+
allowUnrecognizedEnumValues: true,
|
301
|
+
breadcrumbsPrefix: ["response"],
|
302
|
+
}));
|
303
|
+
default:
|
304
|
+
throw new errors.VitalError({
|
305
|
+
statusCode: _response.error.statusCode,
|
306
|
+
body: _response.error.body,
|
307
|
+
});
|
308
|
+
}
|
309
|
+
}
|
310
|
+
switch (_response.error.reason) {
|
311
|
+
case "non-json":
|
312
|
+
throw new errors.VitalError({
|
313
|
+
statusCode: _response.error.statusCode,
|
314
|
+
body: _response.error.rawBody,
|
315
|
+
});
|
316
|
+
case "timeout":
|
317
|
+
throw new errors.VitalTimeoutError();
|
318
|
+
case "unknown":
|
319
|
+
throw new errors.VitalError({
|
320
|
+
message: _response.error.errorMessage,
|
321
|
+
});
|
322
|
+
}
|
323
|
+
});
|
324
|
+
}
|
325
|
+
/**
|
326
|
+
* Get timeseries data for user
|
327
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
328
|
+
*/
|
329
|
+
floorsClimbed(userId, request, requestOptions) {
|
330
|
+
var _a;
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
332
|
+
const { provider, startDate, endDate } = request;
|
333
|
+
const _queryParams = new url_search_params_1.default();
|
334
|
+
if (provider != null) {
|
335
|
+
_queryParams.append("provider", provider);
|
336
|
+
}
|
337
|
+
_queryParams.append("start_date", startDate);
|
338
|
+
if (endDate != null) {
|
339
|
+
_queryParams.append("end_date", endDate);
|
340
|
+
}
|
341
|
+
const _response = yield core.fetcher({
|
342
|
+
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`),
|
343
|
+
method: "GET",
|
344
|
+
headers: {
|
345
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
346
|
+
"X-Fern-Language": "JavaScript",
|
347
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
348
|
+
"X-Fern-SDK-Version": "3.0.1",
|
349
|
+
},
|
350
|
+
contentType: "application/json",
|
351
|
+
queryParameters: _queryParams,
|
352
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
353
|
+
});
|
354
|
+
if (_response.ok) {
|
355
|
+
return yield serializers.vitals.floorsClimbed.Response.parseOrThrow(_response.body, {
|
356
|
+
unrecognizedObjectKeys: "passthrough",
|
357
|
+
allowUnrecognizedUnionMembers: true,
|
358
|
+
allowUnrecognizedEnumValues: true,
|
359
|
+
breadcrumbsPrefix: ["response"],
|
360
|
+
});
|
361
|
+
}
|
362
|
+
if (_response.error.reason === "status-code") {
|
363
|
+
switch (_response.error.statusCode) {
|
364
|
+
case 422:
|
365
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
366
|
+
unrecognizedObjectKeys: "passthrough",
|
367
|
+
allowUnrecognizedUnionMembers: true,
|
368
|
+
allowUnrecognizedEnumValues: true,
|
369
|
+
breadcrumbsPrefix: ["response"],
|
370
|
+
}));
|
371
|
+
default:
|
372
|
+
throw new errors.VitalError({
|
373
|
+
statusCode: _response.error.statusCode,
|
374
|
+
body: _response.error.body,
|
375
|
+
});
|
376
|
+
}
|
377
|
+
}
|
378
|
+
switch (_response.error.reason) {
|
379
|
+
case "non-json":
|
380
|
+
throw new errors.VitalError({
|
381
|
+
statusCode: _response.error.statusCode,
|
382
|
+
body: _response.error.rawBody,
|
383
|
+
});
|
384
|
+
case "timeout":
|
385
|
+
throw new errors.VitalTimeoutError();
|
386
|
+
case "unknown":
|
387
|
+
throw new errors.VitalError({
|
388
|
+
message: _response.error.errorMessage,
|
389
|
+
});
|
390
|
+
}
|
391
|
+
});
|
392
|
+
}
|
393
|
+
/**
|
394
|
+
* Get timeseries data for user
|
395
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
396
|
+
*/
|
397
|
+
distance(userId, request, requestOptions) {
|
398
|
+
var _a;
|
399
|
+
return __awaiter(this, void 0, void 0, function* () {
|
400
|
+
const { provider, startDate, endDate } = request;
|
401
|
+
const _queryParams = new url_search_params_1.default();
|
402
|
+
if (provider != null) {
|
403
|
+
_queryParams.append("provider", provider);
|
404
|
+
}
|
405
|
+
_queryParams.append("start_date", startDate);
|
406
|
+
if (endDate != null) {
|
407
|
+
_queryParams.append("end_date", endDate);
|
408
|
+
}
|
409
|
+
const _response = yield core.fetcher({
|
410
|
+
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`),
|
411
|
+
method: "GET",
|
412
|
+
headers: {
|
413
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
414
|
+
"X-Fern-Language": "JavaScript",
|
415
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
416
|
+
"X-Fern-SDK-Version": "3.0.1",
|
417
|
+
},
|
418
|
+
contentType: "application/json",
|
419
|
+
queryParameters: _queryParams,
|
420
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
421
|
+
});
|
422
|
+
if (_response.ok) {
|
423
|
+
return yield serializers.vitals.distance.Response.parseOrThrow(_response.body, {
|
424
|
+
unrecognizedObjectKeys: "passthrough",
|
425
|
+
allowUnrecognizedUnionMembers: true,
|
426
|
+
allowUnrecognizedEnumValues: true,
|
427
|
+
breadcrumbsPrefix: ["response"],
|
428
|
+
});
|
429
|
+
}
|
430
|
+
if (_response.error.reason === "status-code") {
|
431
|
+
switch (_response.error.statusCode) {
|
432
|
+
case 422:
|
433
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
434
|
+
unrecognizedObjectKeys: "passthrough",
|
435
|
+
allowUnrecognizedUnionMembers: true,
|
436
|
+
allowUnrecognizedEnumValues: true,
|
437
|
+
breadcrumbsPrefix: ["response"],
|
438
|
+
}));
|
439
|
+
default:
|
440
|
+
throw new errors.VitalError({
|
441
|
+
statusCode: _response.error.statusCode,
|
442
|
+
body: _response.error.body,
|
443
|
+
});
|
444
|
+
}
|
445
|
+
}
|
446
|
+
switch (_response.error.reason) {
|
447
|
+
case "non-json":
|
448
|
+
throw new errors.VitalError({
|
449
|
+
statusCode: _response.error.statusCode,
|
450
|
+
body: _response.error.rawBody,
|
451
|
+
});
|
452
|
+
case "timeout":
|
453
|
+
throw new errors.VitalTimeoutError();
|
454
|
+
case "unknown":
|
455
|
+
throw new errors.VitalError({
|
456
|
+
message: _response.error.errorMessage,
|
457
|
+
});
|
458
|
+
}
|
459
|
+
});
|
460
|
+
}
|
461
|
+
/**
|
462
|
+
* Get timeseries data for user
|
463
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
464
|
+
*/
|
465
|
+
caloriesBasal(userId, request, requestOptions) {
|
466
|
+
var _a;
|
467
|
+
return __awaiter(this, void 0, void 0, function* () {
|
468
|
+
const { provider, startDate, endDate } = request;
|
469
|
+
const _queryParams = new url_search_params_1.default();
|
470
|
+
if (provider != null) {
|
471
|
+
_queryParams.append("provider", provider);
|
472
|
+
}
|
473
|
+
_queryParams.append("start_date", startDate);
|
474
|
+
if (endDate != null) {
|
475
|
+
_queryParams.append("end_date", endDate);
|
476
|
+
}
|
477
|
+
const _response = yield core.fetcher({
|
478
|
+
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`),
|
479
|
+
method: "GET",
|
480
|
+
headers: {
|
481
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
482
|
+
"X-Fern-Language": "JavaScript",
|
483
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
484
|
+
"X-Fern-SDK-Version": "3.0.1",
|
485
|
+
},
|
486
|
+
contentType: "application/json",
|
487
|
+
queryParameters: _queryParams,
|
488
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
489
|
+
});
|
490
|
+
if (_response.ok) {
|
491
|
+
return yield serializers.vitals.caloriesBasal.Response.parseOrThrow(_response.body, {
|
492
|
+
unrecognizedObjectKeys: "passthrough",
|
493
|
+
allowUnrecognizedUnionMembers: true,
|
494
|
+
allowUnrecognizedEnumValues: true,
|
495
|
+
breadcrumbsPrefix: ["response"],
|
496
|
+
});
|
497
|
+
}
|
498
|
+
if (_response.error.reason === "status-code") {
|
499
|
+
switch (_response.error.statusCode) {
|
500
|
+
case 422:
|
501
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
502
|
+
unrecognizedObjectKeys: "passthrough",
|
503
|
+
allowUnrecognizedUnionMembers: true,
|
504
|
+
allowUnrecognizedEnumValues: true,
|
505
|
+
breadcrumbsPrefix: ["response"],
|
506
|
+
}));
|
507
|
+
default:
|
508
|
+
throw new errors.VitalError({
|
509
|
+
statusCode: _response.error.statusCode,
|
510
|
+
body: _response.error.body,
|
511
|
+
});
|
512
|
+
}
|
513
|
+
}
|
514
|
+
switch (_response.error.reason) {
|
515
|
+
case "non-json":
|
516
|
+
throw new errors.VitalError({
|
517
|
+
statusCode: _response.error.statusCode,
|
518
|
+
body: _response.error.rawBody,
|
519
|
+
});
|
520
|
+
case "timeout":
|
521
|
+
throw new errors.VitalTimeoutError();
|
522
|
+
case "unknown":
|
523
|
+
throw new errors.VitalError({
|
524
|
+
message: _response.error.errorMessage,
|
525
|
+
});
|
526
|
+
}
|
527
|
+
});
|
528
|
+
}
|
529
|
+
/**
|
530
|
+
* Get timeseries data for user
|
531
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
532
|
+
*/
|
533
|
+
caloriesActive(userId, request, requestOptions) {
|
534
|
+
var _a;
|
535
|
+
return __awaiter(this, void 0, void 0, function* () {
|
536
|
+
const { provider, startDate, endDate } = request;
|
537
|
+
const _queryParams = new url_search_params_1.default();
|
538
|
+
if (provider != null) {
|
539
|
+
_queryParams.append("provider", provider);
|
540
|
+
}
|
541
|
+
_queryParams.append("start_date", startDate);
|
542
|
+
if (endDate != null) {
|
543
|
+
_queryParams.append("end_date", endDate);
|
544
|
+
}
|
545
|
+
const _response = yield core.fetcher({
|
546
|
+
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`),
|
547
|
+
method: "GET",
|
548
|
+
headers: {
|
549
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
550
|
+
"X-Fern-Language": "JavaScript",
|
551
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
552
|
+
"X-Fern-SDK-Version": "3.0.1",
|
553
|
+
},
|
554
|
+
contentType: "application/json",
|
555
|
+
queryParameters: _queryParams,
|
556
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
557
|
+
});
|
558
|
+
if (_response.ok) {
|
559
|
+
return yield serializers.vitals.caloriesActive.Response.parseOrThrow(_response.body, {
|
560
|
+
unrecognizedObjectKeys: "passthrough",
|
561
|
+
allowUnrecognizedUnionMembers: true,
|
562
|
+
allowUnrecognizedEnumValues: true,
|
563
|
+
breadcrumbsPrefix: ["response"],
|
564
|
+
});
|
565
|
+
}
|
566
|
+
if (_response.error.reason === "status-code") {
|
567
|
+
switch (_response.error.statusCode) {
|
568
|
+
case 422:
|
569
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
570
|
+
unrecognizedObjectKeys: "passthrough",
|
571
|
+
allowUnrecognizedUnionMembers: true,
|
572
|
+
allowUnrecognizedEnumValues: true,
|
573
|
+
breadcrumbsPrefix: ["response"],
|
574
|
+
}));
|
575
|
+
default:
|
576
|
+
throw new errors.VitalError({
|
577
|
+
statusCode: _response.error.statusCode,
|
578
|
+
body: _response.error.body,
|
579
|
+
});
|
580
|
+
}
|
581
|
+
}
|
582
|
+
switch (_response.error.reason) {
|
583
|
+
case "non-json":
|
584
|
+
throw new errors.VitalError({
|
585
|
+
statusCode: _response.error.statusCode,
|
586
|
+
body: _response.error.rawBody,
|
587
|
+
});
|
588
|
+
case "timeout":
|
589
|
+
throw new errors.VitalTimeoutError();
|
590
|
+
case "unknown":
|
591
|
+
throw new errors.VitalError({
|
592
|
+
message: _response.error.errorMessage,
|
593
|
+
});
|
594
|
+
}
|
595
|
+
});
|
596
|
+
}
|
597
|
+
/**
|
598
|
+
* Get timeseries data for user
|
599
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
600
|
+
*/
|
601
|
+
respiratoryRate(userId, request, requestOptions) {
|
602
|
+
var _a;
|
603
|
+
return __awaiter(this, void 0, void 0, function* () {
|
604
|
+
const { provider, startDate, endDate } = request;
|
605
|
+
const _queryParams = new url_search_params_1.default();
|
606
|
+
if (provider != null) {
|
607
|
+
_queryParams.append("provider", provider);
|
608
|
+
}
|
609
|
+
_queryParams.append("start_date", startDate);
|
610
|
+
if (endDate != null) {
|
611
|
+
_queryParams.append("end_date", endDate);
|
612
|
+
}
|
613
|
+
const _response = yield core.fetcher({
|
614
|
+
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`),
|
615
|
+
method: "GET",
|
616
|
+
headers: {
|
617
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
618
|
+
"X-Fern-Language": "JavaScript",
|
619
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
620
|
+
"X-Fern-SDK-Version": "3.0.1",
|
621
|
+
},
|
622
|
+
contentType: "application/json",
|
623
|
+
queryParameters: _queryParams,
|
624
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
625
|
+
});
|
626
|
+
if (_response.ok) {
|
627
|
+
return yield serializers.vitals.respiratoryRate.Response.parseOrThrow(_response.body, {
|
628
|
+
unrecognizedObjectKeys: "passthrough",
|
629
|
+
allowUnrecognizedUnionMembers: true,
|
630
|
+
allowUnrecognizedEnumValues: true,
|
631
|
+
breadcrumbsPrefix: ["response"],
|
632
|
+
});
|
633
|
+
}
|
634
|
+
if (_response.error.reason === "status-code") {
|
635
|
+
switch (_response.error.statusCode) {
|
636
|
+
case 422:
|
637
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
638
|
+
unrecognizedObjectKeys: "passthrough",
|
639
|
+
allowUnrecognizedUnionMembers: true,
|
640
|
+
allowUnrecognizedEnumValues: true,
|
641
|
+
breadcrumbsPrefix: ["response"],
|
642
|
+
}));
|
643
|
+
default:
|
644
|
+
throw new errors.VitalError({
|
645
|
+
statusCode: _response.error.statusCode,
|
646
|
+
body: _response.error.body,
|
647
|
+
});
|
648
|
+
}
|
649
|
+
}
|
650
|
+
switch (_response.error.reason) {
|
651
|
+
case "non-json":
|
652
|
+
throw new errors.VitalError({
|
653
|
+
statusCode: _response.error.statusCode,
|
654
|
+
body: _response.error.rawBody,
|
655
|
+
});
|
656
|
+
case "timeout":
|
657
|
+
throw new errors.VitalTimeoutError();
|
658
|
+
case "unknown":
|
659
|
+
throw new errors.VitalError({
|
660
|
+
message: _response.error.errorMessage,
|
661
|
+
});
|
662
|
+
}
|
663
|
+
});
|
664
|
+
}
|
665
|
+
/**
|
666
|
+
* Get timeseries data for user
|
667
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
668
|
+
*/
|
669
|
+
ige(userId, request, requestOptions) {
|
670
|
+
var _a;
|
671
|
+
return __awaiter(this, void 0, void 0, function* () {
|
672
|
+
const { provider, startDate, endDate } = request;
|
673
|
+
const _queryParams = new url_search_params_1.default();
|
674
|
+
if (provider != null) {
|
675
|
+
_queryParams.append("provider", provider);
|
676
|
+
}
|
677
|
+
_queryParams.append("start_date", startDate);
|
678
|
+
if (endDate != null) {
|
679
|
+
_queryParams.append("end_date", endDate);
|
680
|
+
}
|
681
|
+
const _response = yield core.fetcher({
|
682
|
+
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`),
|
683
|
+
method: "GET",
|
684
|
+
headers: {
|
685
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
686
|
+
"X-Fern-Language": "JavaScript",
|
687
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
688
|
+
"X-Fern-SDK-Version": "3.0.1",
|
689
|
+
},
|
690
|
+
contentType: "application/json",
|
691
|
+
queryParameters: _queryParams,
|
692
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
693
|
+
});
|
694
|
+
if (_response.ok) {
|
695
|
+
return yield serializers.vitals.ige.Response.parseOrThrow(_response.body, {
|
696
|
+
unrecognizedObjectKeys: "passthrough",
|
697
|
+
allowUnrecognizedUnionMembers: true,
|
698
|
+
allowUnrecognizedEnumValues: true,
|
699
|
+
breadcrumbsPrefix: ["response"],
|
700
|
+
});
|
701
|
+
}
|
702
|
+
if (_response.error.reason === "status-code") {
|
703
|
+
switch (_response.error.statusCode) {
|
704
|
+
case 422:
|
705
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
706
|
+
unrecognizedObjectKeys: "passthrough",
|
707
|
+
allowUnrecognizedUnionMembers: true,
|
708
|
+
allowUnrecognizedEnumValues: true,
|
709
|
+
breadcrumbsPrefix: ["response"],
|
710
|
+
}));
|
711
|
+
default:
|
712
|
+
throw new errors.VitalError({
|
713
|
+
statusCode: _response.error.statusCode,
|
714
|
+
body: _response.error.body,
|
715
|
+
});
|
716
|
+
}
|
717
|
+
}
|
718
|
+
switch (_response.error.reason) {
|
719
|
+
case "non-json":
|
720
|
+
throw new errors.VitalError({
|
721
|
+
statusCode: _response.error.statusCode,
|
722
|
+
body: _response.error.rawBody,
|
723
|
+
});
|
724
|
+
case "timeout":
|
725
|
+
throw new errors.VitalTimeoutError();
|
726
|
+
case "unknown":
|
727
|
+
throw new errors.VitalError({
|
728
|
+
message: _response.error.errorMessage,
|
729
|
+
});
|
730
|
+
}
|
731
|
+
});
|
732
|
+
}
|
733
|
+
/**
|
734
|
+
* Get timeseries data for user
|
735
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
736
|
+
*/
|
737
|
+
igg(userId, request, requestOptions) {
|
738
|
+
var _a;
|
739
|
+
return __awaiter(this, void 0, void 0, function* () {
|
740
|
+
const { provider, startDate, endDate } = request;
|
741
|
+
const _queryParams = new url_search_params_1.default();
|
742
|
+
if (provider != null) {
|
743
|
+
_queryParams.append("provider", provider);
|
744
|
+
}
|
745
|
+
_queryParams.append("start_date", startDate);
|
746
|
+
if (endDate != null) {
|
747
|
+
_queryParams.append("end_date", endDate);
|
748
|
+
}
|
749
|
+
const _response = yield core.fetcher({
|
750
|
+
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`),
|
751
|
+
method: "GET",
|
752
|
+
headers: {
|
753
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
754
|
+
"X-Fern-Language": "JavaScript",
|
755
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
756
|
+
"X-Fern-SDK-Version": "3.0.1",
|
757
|
+
},
|
758
|
+
contentType: "application/json",
|
759
|
+
queryParameters: _queryParams,
|
760
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
761
|
+
});
|
762
|
+
if (_response.ok) {
|
763
|
+
return yield serializers.vitals.igg.Response.parseOrThrow(_response.body, {
|
764
|
+
unrecognizedObjectKeys: "passthrough",
|
765
|
+
allowUnrecognizedUnionMembers: true,
|
766
|
+
allowUnrecognizedEnumValues: true,
|
767
|
+
breadcrumbsPrefix: ["response"],
|
768
|
+
});
|
769
|
+
}
|
770
|
+
if (_response.error.reason === "status-code") {
|
771
|
+
switch (_response.error.statusCode) {
|
772
|
+
case 422:
|
773
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
774
|
+
unrecognizedObjectKeys: "passthrough",
|
775
|
+
allowUnrecognizedUnionMembers: true,
|
776
|
+
allowUnrecognizedEnumValues: true,
|
777
|
+
breadcrumbsPrefix: ["response"],
|
778
|
+
}));
|
779
|
+
default:
|
780
|
+
throw new errors.VitalError({
|
781
|
+
statusCode: _response.error.statusCode,
|
782
|
+
body: _response.error.body,
|
783
|
+
});
|
784
|
+
}
|
785
|
+
}
|
786
|
+
switch (_response.error.reason) {
|
787
|
+
case "non-json":
|
788
|
+
throw new errors.VitalError({
|
789
|
+
statusCode: _response.error.statusCode,
|
790
|
+
body: _response.error.rawBody,
|
791
|
+
});
|
792
|
+
case "timeout":
|
793
|
+
throw new errors.VitalTimeoutError();
|
794
|
+
case "unknown":
|
795
|
+
throw new errors.VitalError({
|
796
|
+
message: _response.error.errorMessage,
|
797
|
+
});
|
798
|
+
}
|
799
|
+
});
|
800
|
+
}
|
801
|
+
/**
|
802
|
+
* Get timeseries data for user
|
803
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
804
|
+
*/
|
805
|
+
hypnogram(userId, request, requestOptions) {
|
806
|
+
var _a;
|
807
|
+
return __awaiter(this, void 0, void 0, function* () {
|
808
|
+
const { provider, startDate, endDate } = request;
|
809
|
+
const _queryParams = new url_search_params_1.default();
|
810
|
+
if (provider != null) {
|
811
|
+
_queryParams.append("provider", provider);
|
812
|
+
}
|
813
|
+
_queryParams.append("start_date", startDate);
|
814
|
+
if (endDate != null) {
|
815
|
+
_queryParams.append("end_date", endDate);
|
816
|
+
}
|
817
|
+
const _response = yield core.fetcher({
|
818
|
+
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`),
|
819
|
+
method: "GET",
|
820
|
+
headers: {
|
821
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
822
|
+
"X-Fern-Language": "JavaScript",
|
823
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
824
|
+
"X-Fern-SDK-Version": "3.0.1",
|
825
|
+
},
|
826
|
+
contentType: "application/json",
|
827
|
+
queryParameters: _queryParams,
|
828
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
829
|
+
});
|
830
|
+
if (_response.ok) {
|
831
|
+
return yield serializers.vitals.hypnogram.Response.parseOrThrow(_response.body, {
|
832
|
+
unrecognizedObjectKeys: "passthrough",
|
833
|
+
allowUnrecognizedUnionMembers: true,
|
834
|
+
allowUnrecognizedEnumValues: true,
|
835
|
+
breadcrumbsPrefix: ["response"],
|
836
|
+
});
|
837
|
+
}
|
838
|
+
if (_response.error.reason === "status-code") {
|
839
|
+
switch (_response.error.statusCode) {
|
840
|
+
case 422:
|
841
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
842
|
+
unrecognizedObjectKeys: "passthrough",
|
843
|
+
allowUnrecognizedUnionMembers: true,
|
844
|
+
allowUnrecognizedEnumValues: true,
|
845
|
+
breadcrumbsPrefix: ["response"],
|
846
|
+
}));
|
847
|
+
default:
|
848
|
+
throw new errors.VitalError({
|
849
|
+
statusCode: _response.error.statusCode,
|
850
|
+
body: _response.error.body,
|
851
|
+
});
|
852
|
+
}
|
853
|
+
}
|
854
|
+
switch (_response.error.reason) {
|
855
|
+
case "non-json":
|
856
|
+
throw new errors.VitalError({
|
857
|
+
statusCode: _response.error.statusCode,
|
858
|
+
body: _response.error.rawBody,
|
859
|
+
});
|
860
|
+
case "timeout":
|
861
|
+
throw new errors.VitalTimeoutError();
|
862
|
+
case "unknown":
|
863
|
+
throw new errors.VitalError({
|
864
|
+
message: _response.error.errorMessage,
|
865
|
+
});
|
866
|
+
}
|
867
|
+
});
|
868
|
+
}
|
869
|
+
/**
|
870
|
+
* Get timeseries data for user
|
871
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
872
|
+
*/
|
873
|
+
hrv(userId, request, requestOptions) {
|
874
|
+
var _a;
|
875
|
+
return __awaiter(this, void 0, void 0, function* () {
|
876
|
+
const { provider, startDate, endDate } = request;
|
877
|
+
const _queryParams = new url_search_params_1.default();
|
878
|
+
if (provider != null) {
|
879
|
+
_queryParams.append("provider", provider);
|
880
|
+
}
|
881
|
+
_queryParams.append("start_date", startDate);
|
882
|
+
if (endDate != null) {
|
883
|
+
_queryParams.append("end_date", endDate);
|
884
|
+
}
|
885
|
+
const _response = yield core.fetcher({
|
886
|
+
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`),
|
887
|
+
method: "GET",
|
888
|
+
headers: {
|
889
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
890
|
+
"X-Fern-Language": "JavaScript",
|
891
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
892
|
+
"X-Fern-SDK-Version": "3.0.1",
|
893
|
+
},
|
894
|
+
contentType: "application/json",
|
895
|
+
queryParameters: _queryParams,
|
896
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
897
|
+
});
|
898
|
+
if (_response.ok) {
|
899
|
+
return yield serializers.vitals.hrv.Response.parseOrThrow(_response.body, {
|
900
|
+
unrecognizedObjectKeys: "passthrough",
|
901
|
+
allowUnrecognizedUnionMembers: true,
|
902
|
+
allowUnrecognizedEnumValues: true,
|
903
|
+
breadcrumbsPrefix: ["response"],
|
904
|
+
});
|
905
|
+
}
|
906
|
+
if (_response.error.reason === "status-code") {
|
907
|
+
switch (_response.error.statusCode) {
|
908
|
+
case 422:
|
909
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
910
|
+
unrecognizedObjectKeys: "passthrough",
|
911
|
+
allowUnrecognizedUnionMembers: true,
|
912
|
+
allowUnrecognizedEnumValues: true,
|
913
|
+
breadcrumbsPrefix: ["response"],
|
914
|
+
}));
|
915
|
+
default:
|
916
|
+
throw new errors.VitalError({
|
917
|
+
statusCode: _response.error.statusCode,
|
918
|
+
body: _response.error.body,
|
919
|
+
});
|
920
|
+
}
|
921
|
+
}
|
922
|
+
switch (_response.error.reason) {
|
923
|
+
case "non-json":
|
924
|
+
throw new errors.VitalError({
|
925
|
+
statusCode: _response.error.statusCode,
|
926
|
+
body: _response.error.rawBody,
|
927
|
+
});
|
928
|
+
case "timeout":
|
929
|
+
throw new errors.VitalTimeoutError();
|
930
|
+
case "unknown":
|
931
|
+
throw new errors.VitalError({
|
932
|
+
message: _response.error.errorMessage,
|
933
|
+
});
|
934
|
+
}
|
935
|
+
});
|
936
|
+
}
|
937
|
+
/**
|
938
|
+
* Get timeseries data for user
|
939
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
940
|
+
*/
|
941
|
+
heartrate(userId, request, requestOptions) {
|
942
|
+
var _a;
|
943
|
+
return __awaiter(this, void 0, void 0, function* () {
|
944
|
+
const { provider, startDate, endDate } = request;
|
945
|
+
const _queryParams = new url_search_params_1.default();
|
946
|
+
if (provider != null) {
|
947
|
+
_queryParams.append("provider", provider);
|
948
|
+
}
|
949
|
+
_queryParams.append("start_date", startDate);
|
950
|
+
if (endDate != null) {
|
951
|
+
_queryParams.append("end_date", endDate);
|
952
|
+
}
|
953
|
+
const _response = yield core.fetcher({
|
954
|
+
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`),
|
955
|
+
method: "GET",
|
956
|
+
headers: {
|
957
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
958
|
+
"X-Fern-Language": "JavaScript",
|
959
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
960
|
+
"X-Fern-SDK-Version": "3.0.1",
|
961
|
+
},
|
962
|
+
contentType: "application/json",
|
963
|
+
queryParameters: _queryParams,
|
964
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
965
|
+
});
|
966
|
+
if (_response.ok) {
|
967
|
+
return yield serializers.vitals.heartrate.Response.parseOrThrow(_response.body, {
|
968
|
+
unrecognizedObjectKeys: "passthrough",
|
969
|
+
allowUnrecognizedUnionMembers: true,
|
970
|
+
allowUnrecognizedEnumValues: true,
|
971
|
+
breadcrumbsPrefix: ["response"],
|
972
|
+
});
|
973
|
+
}
|
974
|
+
if (_response.error.reason === "status-code") {
|
975
|
+
switch (_response.error.statusCode) {
|
976
|
+
case 422:
|
977
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
978
|
+
unrecognizedObjectKeys: "passthrough",
|
979
|
+
allowUnrecognizedUnionMembers: true,
|
980
|
+
allowUnrecognizedEnumValues: true,
|
981
|
+
breadcrumbsPrefix: ["response"],
|
982
|
+
}));
|
983
|
+
default:
|
984
|
+
throw new errors.VitalError({
|
985
|
+
statusCode: _response.error.statusCode,
|
986
|
+
body: _response.error.body,
|
987
|
+
});
|
988
|
+
}
|
989
|
+
}
|
990
|
+
switch (_response.error.reason) {
|
991
|
+
case "non-json":
|
992
|
+
throw new errors.VitalError({
|
993
|
+
statusCode: _response.error.statusCode,
|
994
|
+
body: _response.error.rawBody,
|
995
|
+
});
|
996
|
+
case "timeout":
|
997
|
+
throw new errors.VitalTimeoutError();
|
998
|
+
case "unknown":
|
999
|
+
throw new errors.VitalError({
|
1000
|
+
message: _response.error.errorMessage,
|
1001
|
+
});
|
1002
|
+
}
|
1003
|
+
});
|
1004
|
+
}
|
1005
|
+
/**
|
1006
|
+
* Get timeseries data for user
|
1007
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1008
|
+
*/
|
1009
|
+
glucose(userId, request, requestOptions) {
|
1010
|
+
var _a;
|
1011
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1012
|
+
const { provider, startDate, endDate } = request;
|
1013
|
+
const _queryParams = new url_search_params_1.default();
|
1014
|
+
if (provider != null) {
|
1015
|
+
_queryParams.append("provider", provider);
|
1016
|
+
}
|
1017
|
+
_queryParams.append("start_date", startDate);
|
1018
|
+
if (endDate != null) {
|
1019
|
+
_queryParams.append("end_date", endDate);
|
1020
|
+
}
|
1021
|
+
const _response = yield core.fetcher({
|
1022
|
+
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`),
|
1023
|
+
method: "GET",
|
1024
|
+
headers: {
|
1025
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1026
|
+
"X-Fern-Language": "JavaScript",
|
1027
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1028
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1029
|
+
},
|
1030
|
+
contentType: "application/json",
|
1031
|
+
queryParameters: _queryParams,
|
1032
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1033
|
+
});
|
1034
|
+
if (_response.ok) {
|
1035
|
+
return yield serializers.vitals.glucose.Response.parseOrThrow(_response.body, {
|
1036
|
+
unrecognizedObjectKeys: "passthrough",
|
1037
|
+
allowUnrecognizedUnionMembers: true,
|
1038
|
+
allowUnrecognizedEnumValues: true,
|
1039
|
+
breadcrumbsPrefix: ["response"],
|
1040
|
+
});
|
1041
|
+
}
|
1042
|
+
if (_response.error.reason === "status-code") {
|
1043
|
+
switch (_response.error.statusCode) {
|
1044
|
+
case 422:
|
1045
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1046
|
+
unrecognizedObjectKeys: "passthrough",
|
1047
|
+
allowUnrecognizedUnionMembers: true,
|
1048
|
+
allowUnrecognizedEnumValues: true,
|
1049
|
+
breadcrumbsPrefix: ["response"],
|
1050
|
+
}));
|
1051
|
+
default:
|
1052
|
+
throw new errors.VitalError({
|
1053
|
+
statusCode: _response.error.statusCode,
|
1054
|
+
body: _response.error.body,
|
1055
|
+
});
|
1056
|
+
}
|
1057
|
+
}
|
1058
|
+
switch (_response.error.reason) {
|
1059
|
+
case "non-json":
|
1060
|
+
throw new errors.VitalError({
|
1061
|
+
statusCode: _response.error.statusCode,
|
1062
|
+
body: _response.error.rawBody,
|
1063
|
+
});
|
1064
|
+
case "timeout":
|
1065
|
+
throw new errors.VitalTimeoutError();
|
1066
|
+
case "unknown":
|
1067
|
+
throw new errors.VitalError({
|
1068
|
+
message: _response.error.errorMessage,
|
1069
|
+
});
|
1070
|
+
}
|
1071
|
+
});
|
1072
|
+
}
|
1073
|
+
/**
|
1074
|
+
* Get timeseries data for user
|
1075
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1076
|
+
*/
|
1077
|
+
triglycerides(userId, request, requestOptions) {
|
1078
|
+
var _a;
|
1079
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1080
|
+
const { provider, startDate, endDate } = request;
|
1081
|
+
const _queryParams = new url_search_params_1.default();
|
1082
|
+
if (provider != null) {
|
1083
|
+
_queryParams.append("provider", provider);
|
1084
|
+
}
|
1085
|
+
_queryParams.append("start_date", startDate);
|
1086
|
+
if (endDate != null) {
|
1087
|
+
_queryParams.append("end_date", endDate);
|
1088
|
+
}
|
1089
|
+
const _response = yield core.fetcher({
|
1090
|
+
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`),
|
1091
|
+
method: "GET",
|
1092
|
+
headers: {
|
1093
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1094
|
+
"X-Fern-Language": "JavaScript",
|
1095
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1096
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1097
|
+
},
|
1098
|
+
contentType: "application/json",
|
1099
|
+
queryParameters: _queryParams,
|
1100
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1101
|
+
});
|
1102
|
+
if (_response.ok) {
|
1103
|
+
return yield serializers.vitals.triglycerides.Response.parseOrThrow(_response.body, {
|
1104
|
+
unrecognizedObjectKeys: "passthrough",
|
1105
|
+
allowUnrecognizedUnionMembers: true,
|
1106
|
+
allowUnrecognizedEnumValues: true,
|
1107
|
+
breadcrumbsPrefix: ["response"],
|
1108
|
+
});
|
1109
|
+
}
|
1110
|
+
if (_response.error.reason === "status-code") {
|
1111
|
+
switch (_response.error.statusCode) {
|
1112
|
+
case 422:
|
1113
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1114
|
+
unrecognizedObjectKeys: "passthrough",
|
1115
|
+
allowUnrecognizedUnionMembers: true,
|
1116
|
+
allowUnrecognizedEnumValues: true,
|
1117
|
+
breadcrumbsPrefix: ["response"],
|
1118
|
+
}));
|
1119
|
+
default:
|
1120
|
+
throw new errors.VitalError({
|
1121
|
+
statusCode: _response.error.statusCode,
|
1122
|
+
body: _response.error.body,
|
1123
|
+
});
|
1124
|
+
}
|
1125
|
+
}
|
1126
|
+
switch (_response.error.reason) {
|
1127
|
+
case "non-json":
|
1128
|
+
throw new errors.VitalError({
|
1129
|
+
statusCode: _response.error.statusCode,
|
1130
|
+
body: _response.error.rawBody,
|
1131
|
+
});
|
1132
|
+
case "timeout":
|
1133
|
+
throw new errors.VitalTimeoutError();
|
1134
|
+
case "unknown":
|
1135
|
+
throw new errors.VitalError({
|
1136
|
+
message: _response.error.errorMessage,
|
1137
|
+
});
|
1138
|
+
}
|
1139
|
+
});
|
1140
|
+
}
|
1141
|
+
/**
|
1142
|
+
* Get timeseries data for user
|
1143
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1144
|
+
*/
|
1145
|
+
cholesterolTotal(userId, request, requestOptions) {
|
1146
|
+
var _a;
|
1147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1148
|
+
const { provider, startDate, endDate } = request;
|
1149
|
+
const _queryParams = new url_search_params_1.default();
|
1150
|
+
if (provider != null) {
|
1151
|
+
_queryParams.append("provider", provider);
|
1152
|
+
}
|
1153
|
+
_queryParams.append("start_date", startDate);
|
1154
|
+
if (endDate != null) {
|
1155
|
+
_queryParams.append("end_date", endDate);
|
1156
|
+
}
|
1157
|
+
const _response = yield core.fetcher({
|
1158
|
+
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`),
|
1159
|
+
method: "GET",
|
1160
|
+
headers: {
|
1161
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1162
|
+
"X-Fern-Language": "JavaScript",
|
1163
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1164
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1165
|
+
},
|
1166
|
+
contentType: "application/json",
|
1167
|
+
queryParameters: _queryParams,
|
1168
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1169
|
+
});
|
1170
|
+
if (_response.ok) {
|
1171
|
+
return yield serializers.vitals.cholesterolTotal.Response.parseOrThrow(_response.body, {
|
1172
|
+
unrecognizedObjectKeys: "passthrough",
|
1173
|
+
allowUnrecognizedUnionMembers: true,
|
1174
|
+
allowUnrecognizedEnumValues: true,
|
1175
|
+
breadcrumbsPrefix: ["response"],
|
1176
|
+
});
|
1177
|
+
}
|
1178
|
+
if (_response.error.reason === "status-code") {
|
1179
|
+
switch (_response.error.statusCode) {
|
1180
|
+
case 422:
|
1181
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1182
|
+
unrecognizedObjectKeys: "passthrough",
|
1183
|
+
allowUnrecognizedUnionMembers: true,
|
1184
|
+
allowUnrecognizedEnumValues: true,
|
1185
|
+
breadcrumbsPrefix: ["response"],
|
1186
|
+
}));
|
1187
|
+
default:
|
1188
|
+
throw new errors.VitalError({
|
1189
|
+
statusCode: _response.error.statusCode,
|
1190
|
+
body: _response.error.body,
|
1191
|
+
});
|
1192
|
+
}
|
1193
|
+
}
|
1194
|
+
switch (_response.error.reason) {
|
1195
|
+
case "non-json":
|
1196
|
+
throw new errors.VitalError({
|
1197
|
+
statusCode: _response.error.statusCode,
|
1198
|
+
body: _response.error.rawBody,
|
1199
|
+
});
|
1200
|
+
case "timeout":
|
1201
|
+
throw new errors.VitalTimeoutError();
|
1202
|
+
case "unknown":
|
1203
|
+
throw new errors.VitalError({
|
1204
|
+
message: _response.error.errorMessage,
|
1205
|
+
});
|
1206
|
+
}
|
1207
|
+
});
|
1208
|
+
}
|
1209
|
+
/**
|
1210
|
+
* Get timeseries data for user
|
1211
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1212
|
+
*/
|
1213
|
+
cholesterolHdl(userId, request, requestOptions) {
|
1214
|
+
var _a;
|
1215
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1216
|
+
const { provider, startDate, endDate } = request;
|
1217
|
+
const _queryParams = new url_search_params_1.default();
|
1218
|
+
if (provider != null) {
|
1219
|
+
_queryParams.append("provider", provider);
|
1220
|
+
}
|
1221
|
+
_queryParams.append("start_date", startDate);
|
1222
|
+
if (endDate != null) {
|
1223
|
+
_queryParams.append("end_date", endDate);
|
1224
|
+
}
|
1225
|
+
const _response = yield core.fetcher({
|
1226
|
+
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`),
|
1227
|
+
method: "GET",
|
1228
|
+
headers: {
|
1229
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1230
|
+
"X-Fern-Language": "JavaScript",
|
1231
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1232
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1233
|
+
},
|
1234
|
+
contentType: "application/json",
|
1235
|
+
queryParameters: _queryParams,
|
1236
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1237
|
+
});
|
1238
|
+
if (_response.ok) {
|
1239
|
+
return yield serializers.vitals.cholesterolHdl.Response.parseOrThrow(_response.body, {
|
1240
|
+
unrecognizedObjectKeys: "passthrough",
|
1241
|
+
allowUnrecognizedUnionMembers: true,
|
1242
|
+
allowUnrecognizedEnumValues: true,
|
1243
|
+
breadcrumbsPrefix: ["response"],
|
1244
|
+
});
|
1245
|
+
}
|
1246
|
+
if (_response.error.reason === "status-code") {
|
1247
|
+
switch (_response.error.statusCode) {
|
1248
|
+
case 422:
|
1249
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1250
|
+
unrecognizedObjectKeys: "passthrough",
|
1251
|
+
allowUnrecognizedUnionMembers: true,
|
1252
|
+
allowUnrecognizedEnumValues: true,
|
1253
|
+
breadcrumbsPrefix: ["response"],
|
1254
|
+
}));
|
1255
|
+
default:
|
1256
|
+
throw new errors.VitalError({
|
1257
|
+
statusCode: _response.error.statusCode,
|
1258
|
+
body: _response.error.body,
|
1259
|
+
});
|
1260
|
+
}
|
1261
|
+
}
|
1262
|
+
switch (_response.error.reason) {
|
1263
|
+
case "non-json":
|
1264
|
+
throw new errors.VitalError({
|
1265
|
+
statusCode: _response.error.statusCode,
|
1266
|
+
body: _response.error.rawBody,
|
1267
|
+
});
|
1268
|
+
case "timeout":
|
1269
|
+
throw new errors.VitalTimeoutError();
|
1270
|
+
case "unknown":
|
1271
|
+
throw new errors.VitalError({
|
1272
|
+
message: _response.error.errorMessage,
|
1273
|
+
});
|
1274
|
+
}
|
1275
|
+
});
|
1276
|
+
}
|
1277
|
+
/**
|
1278
|
+
* Get timeseries data for user
|
1279
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1280
|
+
*/
|
1281
|
+
cholesterolLdl(userId, request, requestOptions) {
|
1282
|
+
var _a;
|
1283
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1284
|
+
const { provider, startDate, endDate } = request;
|
1285
|
+
const _queryParams = new url_search_params_1.default();
|
1286
|
+
if (provider != null) {
|
1287
|
+
_queryParams.append("provider", provider);
|
1288
|
+
}
|
1289
|
+
_queryParams.append("start_date", startDate);
|
1290
|
+
if (endDate != null) {
|
1291
|
+
_queryParams.append("end_date", endDate);
|
1292
|
+
}
|
1293
|
+
const _response = yield core.fetcher({
|
1294
|
+
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`),
|
1295
|
+
method: "GET",
|
1296
|
+
headers: {
|
1297
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1298
|
+
"X-Fern-Language": "JavaScript",
|
1299
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1300
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1301
|
+
},
|
1302
|
+
contentType: "application/json",
|
1303
|
+
queryParameters: _queryParams,
|
1304
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1305
|
+
});
|
1306
|
+
if (_response.ok) {
|
1307
|
+
return yield serializers.vitals.cholesterolLdl.Response.parseOrThrow(_response.body, {
|
1308
|
+
unrecognizedObjectKeys: "passthrough",
|
1309
|
+
allowUnrecognizedUnionMembers: true,
|
1310
|
+
allowUnrecognizedEnumValues: true,
|
1311
|
+
breadcrumbsPrefix: ["response"],
|
1312
|
+
});
|
1313
|
+
}
|
1314
|
+
if (_response.error.reason === "status-code") {
|
1315
|
+
switch (_response.error.statusCode) {
|
1316
|
+
case 422:
|
1317
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1318
|
+
unrecognizedObjectKeys: "passthrough",
|
1319
|
+
allowUnrecognizedUnionMembers: true,
|
1320
|
+
allowUnrecognizedEnumValues: true,
|
1321
|
+
breadcrumbsPrefix: ["response"],
|
1322
|
+
}));
|
1323
|
+
default:
|
1324
|
+
throw new errors.VitalError({
|
1325
|
+
statusCode: _response.error.statusCode,
|
1326
|
+
body: _response.error.body,
|
1327
|
+
});
|
1328
|
+
}
|
1329
|
+
}
|
1330
|
+
switch (_response.error.reason) {
|
1331
|
+
case "non-json":
|
1332
|
+
throw new errors.VitalError({
|
1333
|
+
statusCode: _response.error.statusCode,
|
1334
|
+
body: _response.error.rawBody,
|
1335
|
+
});
|
1336
|
+
case "timeout":
|
1337
|
+
throw new errors.VitalTimeoutError();
|
1338
|
+
case "unknown":
|
1339
|
+
throw new errors.VitalError({
|
1340
|
+
message: _response.error.errorMessage,
|
1341
|
+
});
|
1342
|
+
}
|
1343
|
+
});
|
1344
|
+
}
|
1345
|
+
/**
|
1346
|
+
* Get timeseries data for user
|
1347
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1348
|
+
*/
|
1349
|
+
cholesterol(userId, request, requestOptions) {
|
1350
|
+
var _a;
|
1351
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1352
|
+
const { provider, startDate, endDate } = request;
|
1353
|
+
const _queryParams = new url_search_params_1.default();
|
1354
|
+
if (provider != null) {
|
1355
|
+
_queryParams.append("provider", provider);
|
1356
|
+
}
|
1357
|
+
_queryParams.append("start_date", startDate);
|
1358
|
+
if (endDate != null) {
|
1359
|
+
_queryParams.append("end_date", endDate);
|
1360
|
+
}
|
1361
|
+
const _response = yield core.fetcher({
|
1362
|
+
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`),
|
1363
|
+
method: "GET",
|
1364
|
+
headers: {
|
1365
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1366
|
+
"X-Fern-Language": "JavaScript",
|
1367
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1368
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1369
|
+
},
|
1370
|
+
contentType: "application/json",
|
1371
|
+
queryParameters: _queryParams,
|
1372
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1373
|
+
});
|
1374
|
+
if (_response.ok) {
|
1375
|
+
return yield serializers.vitals.cholesterol.Response.parseOrThrow(_response.body, {
|
1376
|
+
unrecognizedObjectKeys: "passthrough",
|
1377
|
+
allowUnrecognizedUnionMembers: true,
|
1378
|
+
allowUnrecognizedEnumValues: true,
|
1379
|
+
breadcrumbsPrefix: ["response"],
|
1380
|
+
});
|
1381
|
+
}
|
1382
|
+
if (_response.error.reason === "status-code") {
|
1383
|
+
switch (_response.error.statusCode) {
|
1384
|
+
case 422:
|
1385
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1386
|
+
unrecognizedObjectKeys: "passthrough",
|
1387
|
+
allowUnrecognizedUnionMembers: true,
|
1388
|
+
allowUnrecognizedEnumValues: true,
|
1389
|
+
breadcrumbsPrefix: ["response"],
|
1390
|
+
}));
|
1391
|
+
default:
|
1392
|
+
throw new errors.VitalError({
|
1393
|
+
statusCode: _response.error.statusCode,
|
1394
|
+
body: _response.error.body,
|
1395
|
+
});
|
1396
|
+
}
|
1397
|
+
}
|
1398
|
+
switch (_response.error.reason) {
|
1399
|
+
case "non-json":
|
1400
|
+
throw new errors.VitalError({
|
1401
|
+
statusCode: _response.error.statusCode,
|
1402
|
+
body: _response.error.rawBody,
|
1403
|
+
});
|
1404
|
+
case "timeout":
|
1405
|
+
throw new errors.VitalTimeoutError();
|
1406
|
+
case "unknown":
|
1407
|
+
throw new errors.VitalError({
|
1408
|
+
message: _response.error.errorMessage,
|
1409
|
+
});
|
1410
|
+
}
|
1411
|
+
});
|
1412
|
+
}
|
1413
|
+
/**
|
1414
|
+
* Get timeseries data for user
|
1415
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1416
|
+
*/
|
1417
|
+
bloodOxygen(userId, request, requestOptions) {
|
1418
|
+
var _a;
|
1419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1420
|
+
const { provider, startDate, endDate } = request;
|
1421
|
+
const _queryParams = new url_search_params_1.default();
|
1422
|
+
if (provider != null) {
|
1423
|
+
_queryParams.append("provider", provider);
|
1424
|
+
}
|
1425
|
+
_queryParams.append("start_date", startDate);
|
1426
|
+
if (endDate != null) {
|
1427
|
+
_queryParams.append("end_date", endDate);
|
1428
|
+
}
|
1429
|
+
const _response = yield core.fetcher({
|
1430
|
+
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`),
|
1431
|
+
method: "GET",
|
1432
|
+
headers: {
|
1433
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1434
|
+
"X-Fern-Language": "JavaScript",
|
1435
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1436
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1437
|
+
},
|
1438
|
+
contentType: "application/json",
|
1439
|
+
queryParameters: _queryParams,
|
1440
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1441
|
+
});
|
1442
|
+
if (_response.ok) {
|
1443
|
+
return yield serializers.vitals.bloodOxygen.Response.parseOrThrow(_response.body, {
|
1444
|
+
unrecognizedObjectKeys: "passthrough",
|
1445
|
+
allowUnrecognizedUnionMembers: true,
|
1446
|
+
allowUnrecognizedEnumValues: true,
|
1447
|
+
breadcrumbsPrefix: ["response"],
|
1448
|
+
});
|
1449
|
+
}
|
1450
|
+
if (_response.error.reason === "status-code") {
|
1451
|
+
switch (_response.error.statusCode) {
|
1452
|
+
case 422:
|
1453
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1454
|
+
unrecognizedObjectKeys: "passthrough",
|
1455
|
+
allowUnrecognizedUnionMembers: true,
|
1456
|
+
allowUnrecognizedEnumValues: true,
|
1457
|
+
breadcrumbsPrefix: ["response"],
|
1458
|
+
}));
|
1459
|
+
default:
|
1460
|
+
throw new errors.VitalError({
|
1461
|
+
statusCode: _response.error.statusCode,
|
1462
|
+
body: _response.error.body,
|
1463
|
+
});
|
1464
|
+
}
|
1465
|
+
}
|
1466
|
+
switch (_response.error.reason) {
|
1467
|
+
case "non-json":
|
1468
|
+
throw new errors.VitalError({
|
1469
|
+
statusCode: _response.error.statusCode,
|
1470
|
+
body: _response.error.rawBody,
|
1471
|
+
});
|
1472
|
+
case "timeout":
|
1473
|
+
throw new errors.VitalTimeoutError();
|
1474
|
+
case "unknown":
|
1475
|
+
throw new errors.VitalError({
|
1476
|
+
message: _response.error.errorMessage,
|
1477
|
+
});
|
1478
|
+
}
|
1479
|
+
});
|
1480
|
+
}
|
1481
|
+
/**
|
1482
|
+
* Get timeseries data for user
|
1483
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1484
|
+
*/
|
1485
|
+
electrocardiogramVoltage(userId, request, requestOptions) {
|
1486
|
+
var _a;
|
1487
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1488
|
+
const { provider, startDate, endDate } = request;
|
1489
|
+
const _queryParams = new url_search_params_1.default();
|
1490
|
+
if (provider != null) {
|
1491
|
+
_queryParams.append("provider", provider);
|
1492
|
+
}
|
1493
|
+
_queryParams.append("start_date", startDate);
|
1494
|
+
if (endDate != null) {
|
1495
|
+
_queryParams.append("end_date", endDate);
|
1496
|
+
}
|
1497
|
+
const _response = yield core.fetcher({
|
1498
|
+
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`),
|
1499
|
+
method: "GET",
|
1500
|
+
headers: {
|
1501
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1502
|
+
"X-Fern-Language": "JavaScript",
|
1503
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1504
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1505
|
+
},
|
1506
|
+
contentType: "application/json",
|
1507
|
+
queryParameters: _queryParams,
|
1508
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1509
|
+
});
|
1510
|
+
if (_response.ok) {
|
1511
|
+
return yield serializers.vitals.electrocardiogramVoltage.Response.parseOrThrow(_response.body, {
|
1512
|
+
unrecognizedObjectKeys: "passthrough",
|
1513
|
+
allowUnrecognizedUnionMembers: true,
|
1514
|
+
allowUnrecognizedEnumValues: true,
|
1515
|
+
breadcrumbsPrefix: ["response"],
|
1516
|
+
});
|
1517
|
+
}
|
1518
|
+
if (_response.error.reason === "status-code") {
|
1519
|
+
switch (_response.error.statusCode) {
|
1520
|
+
case 422:
|
1521
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1522
|
+
unrecognizedObjectKeys: "passthrough",
|
1523
|
+
allowUnrecognizedUnionMembers: true,
|
1524
|
+
allowUnrecognizedEnumValues: true,
|
1525
|
+
breadcrumbsPrefix: ["response"],
|
1526
|
+
}));
|
1527
|
+
default:
|
1528
|
+
throw new errors.VitalError({
|
1529
|
+
statusCode: _response.error.statusCode,
|
1530
|
+
body: _response.error.body,
|
1531
|
+
});
|
1532
|
+
}
|
1533
|
+
}
|
1534
|
+
switch (_response.error.reason) {
|
1535
|
+
case "non-json":
|
1536
|
+
throw new errors.VitalError({
|
1537
|
+
statusCode: _response.error.statusCode,
|
1538
|
+
body: _response.error.rawBody,
|
1539
|
+
});
|
1540
|
+
case "timeout":
|
1541
|
+
throw new errors.VitalTimeoutError();
|
1542
|
+
case "unknown":
|
1543
|
+
throw new errors.VitalError({
|
1544
|
+
message: _response.error.errorMessage,
|
1545
|
+
});
|
1546
|
+
}
|
1547
|
+
});
|
1548
|
+
}
|
1549
|
+
/**
|
1550
|
+
* Get timeseries data for user
|
1551
|
+
* @throws {@link Vital.UnprocessableEntityError}
|
1552
|
+
*/
|
1553
|
+
bloodPressure(userId, request, requestOptions) {
|
1554
|
+
var _a;
|
1555
|
+
return __awaiter(this, void 0, void 0, function* () {
|
1556
|
+
const { provider, startDate, endDate } = request;
|
1557
|
+
const _queryParams = new url_search_params_1.default();
|
1558
|
+
if (provider != null) {
|
1559
|
+
_queryParams.append("provider", provider);
|
1560
|
+
}
|
1561
|
+
_queryParams.append("start_date", startDate);
|
1562
|
+
if (endDate != null) {
|
1563
|
+
_queryParams.append("end_date", endDate);
|
1564
|
+
}
|
1565
|
+
const _response = yield core.fetcher({
|
1566
|
+
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`),
|
1567
|
+
method: "GET",
|
1568
|
+
headers: {
|
1569
|
+
"x-vital-api-key": yield core.Supplier.get(this._options.apiKey),
|
1570
|
+
"X-Fern-Language": "JavaScript",
|
1571
|
+
"X-Fern-SDK-Name": "@tryvital/vital-node",
|
1572
|
+
"X-Fern-SDK-Version": "3.0.1",
|
1573
|
+
},
|
1574
|
+
contentType: "application/json",
|
1575
|
+
queryParameters: _queryParams,
|
1576
|
+
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1577
|
+
});
|
1578
|
+
if (_response.ok) {
|
1579
|
+
return yield serializers.vitals.bloodPressure.Response.parseOrThrow(_response.body, {
|
1580
|
+
unrecognizedObjectKeys: "passthrough",
|
1581
|
+
allowUnrecognizedUnionMembers: true,
|
1582
|
+
allowUnrecognizedEnumValues: true,
|
1583
|
+
breadcrumbsPrefix: ["response"],
|
1584
|
+
});
|
1585
|
+
}
|
1586
|
+
if (_response.error.reason === "status-code") {
|
1587
|
+
switch (_response.error.statusCode) {
|
1588
|
+
case 422:
|
1589
|
+
throw new Vital.UnprocessableEntityError(yield serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1590
|
+
unrecognizedObjectKeys: "passthrough",
|
1591
|
+
allowUnrecognizedUnionMembers: true,
|
1592
|
+
allowUnrecognizedEnumValues: true,
|
1593
|
+
breadcrumbsPrefix: ["response"],
|
1594
|
+
}));
|
1595
|
+
default:
|
1596
|
+
throw new errors.VitalError({
|
1597
|
+
statusCode: _response.error.statusCode,
|
1598
|
+
body: _response.error.body,
|
1599
|
+
});
|
1600
|
+
}
|
1601
|
+
}
|
1602
|
+
switch (_response.error.reason) {
|
1603
|
+
case "non-json":
|
1604
|
+
throw new errors.VitalError({
|
1605
|
+
statusCode: _response.error.statusCode,
|
1606
|
+
body: _response.error.rawBody,
|
1607
|
+
});
|
1608
|
+
case "timeout":
|
1609
|
+
throw new errors.VitalTimeoutError();
|
1610
|
+
case "unknown":
|
1611
|
+
throw new errors.VitalError({
|
1612
|
+
message: _response.error.errorMessage,
|
1613
|
+
});
|
1614
|
+
}
|
1615
|
+
});
|
1616
|
+
}
|
1617
|
+
}
|
1618
|
+
exports.Vitals = Vitals;
|