@tryvital/vital-node 3.1.69 → 3.1.71
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 +9 -2
- package/Client.js +6 -1
- package/api/errors/BadRequestError.d.ts +1 -1
- package/api/errors/BadRequestError.js +1 -1
- package/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/api/errors/UnprocessableEntityError.js +1 -1
- package/api/resources/activity/client/Client.d.ts +20 -6
- package/api/resources/activity/client/Client.js +28 -14
- package/api/resources/activity/client/requests/index.d.ts +2 -2
- package/api/resources/aggregate/client/Client.d.ts +57 -0
- package/api/resources/aggregate/client/Client.js +136 -0
- package/api/resources/aggregate/client/index.d.ts +1 -0
- package/api/resources/aggregate/client/index.js +17 -0
- package/api/resources/aggregate/client/requests/Query.d.ts +32 -0
- package/api/resources/aggregate/client/requests/Query.js +5 -0
- package/api/resources/aggregate/client/requests/index.d.ts +1 -0
- package/api/resources/aggregate/client/requests/index.js +2 -0
- package/api/resources/aggregate/index.d.ts +2 -0
- package/api/resources/aggregate/index.js +18 -0
- package/api/resources/aggregate/types/QueryTimeframe.d.ts +5 -0
- package/api/resources/aggregate/types/QueryTimeframe.js +5 -0
- package/api/resources/aggregate/types/index.d.ts +1 -0
- package/api/resources/aggregate/types/index.js +17 -0
- package/api/resources/body/client/Client.d.ts +20 -6
- package/api/resources/body/client/Client.js +28 -14
- package/api/resources/body/client/requests/index.d.ts +2 -2
- package/api/resources/devices/client/Client.d.ts +14 -5
- package/api/resources/devices/client/Client.js +16 -9
- package/api/resources/devices/client/requests/index.d.ts +1 -1
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/insurance/client/Client.d.ts +16 -6
- package/api/resources/insurance/client/Client.js +23 -13
- package/api/resources/insurance/client/requests/index.d.ts +2 -2
- package/api/resources/introspect/client/Client.d.ts +16 -6
- package/api/resources/introspect/client/Client.js +22 -12
- package/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +1 -1
- package/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +1 -1
- package/api/resources/introspect/client/requests/index.d.ts +2 -2
- package/api/resources/labTests/client/Client.d.ts +149 -25
- package/api/resources/labTests/client/Client.js +301 -128
- package/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +26 -2
- package/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.d.ts +7 -0
- package/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -0
- package/api/resources/labTests/client/requests/LabTestsGetOrderPscInfoRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +1 -1
- package/api/resources/labTests/client/requests/index.d.ts +14 -14
- package/api/resources/link/client/Client.d.ts +81 -18
- package/api/resources/link/client/Client.js +162 -79
- package/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +1 -1
- package/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +1 -1
- package/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/api/resources/link/client/requests/LinkTokenExchange.d.ts +1 -1
- package/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
- package/api/resources/link/client/requests/index.d.ts +14 -14
- package/api/resources/meal/client/Client.d.ts +14 -5
- package/api/resources/meal/client/Client.js +16 -9
- package/api/resources/meal/client/requests/index.d.ts +1 -1
- package/api/resources/menstrualCycle/client/Client.d.ts +13 -5
- package/api/resources/menstrualCycle/client/Client.js +15 -9
- package/api/resources/menstrualCycle/client/requests/index.d.ts +1 -1
- package/api/resources/profile/client/Client.d.ts +20 -6
- package/api/resources/profile/client/Client.js +28 -14
- package/api/resources/profile/client/requests/index.d.ts +2 -2
- package/api/resources/providers/client/Client.d.ts +13 -5
- package/api/resources/providers/client/Client.js +14 -8
- package/api/resources/providers/client/requests/index.d.ts +1 -1
- package/api/resources/sleep/client/Client.d.ts +31 -8
- package/api/resources/sleep/client/Client.js +51 -24
- package/api/resources/sleep/client/requests/index.d.ts +3 -3
- package/api/resources/team/client/Client.d.ts +41 -10
- package/api/resources/team/client/Client.js +72 -31
- package/api/resources/team/client/requests/index.d.ts +3 -3
- package/api/resources/testkit/client/Client.d.ts +51 -4
- package/api/resources/testkit/client/Client.js +59 -12
- package/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +17 -1
- package/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +23 -1
- package/api/resources/testkit/client/requests/index.d.ts +2 -2
- package/api/resources/user/client/Client.d.ts +82 -20
- package/api/resources/user/client/Client.js +172 -82
- package/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -1
- package/api/resources/user/client/requests/UserCreateBody.d.ts +8 -0
- package/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +1 -1
- package/api/resources/user/client/requests/UserPatchBody.d.ts +8 -0
- package/api/resources/user/client/requests/index.d.ts +7 -7
- package/api/resources/vitals/client/Client.d.ts +288 -60
- package/api/resources/vitals/client/Client.js +620 -284
- package/api/resources/vitals/client/requests/index.d.ts +56 -56
- package/api/resources/workouts/client/Client.d.ts +24 -7
- package/api/resources/workouts/client/Client.js +38 -19
- package/api/resources/workouts/client/requests/index.d.ts +2 -2
- package/api/types/ActivitySelector.d.ts +7 -0
- package/api/types/ActivitySelector.js +5 -0
- package/api/types/ActivitySelectorActivity.d.ts +24 -0
- package/api/types/ActivitySelectorActivity.js +26 -0
- package/api/types/ActivityV2InDb.d.ts +1 -1
- package/api/types/AddOnOrder.d.ts +7 -0
- package/api/types/AddOnOrder.js +5 -0
- package/api/types/AoE.d.ts +1 -1
- package/api/types/AppointmentAvailabilitySlots.d.ts +1 -1
- package/api/types/AreaInfo.d.ts +1 -1
- package/api/types/BiomarkerResult.d.ts +3 -2
- package/api/types/BodyV2InDb.d.ts +1 -1
- package/api/types/CervicalMucusEntry.d.ts +1 -1
- package/api/types/ClientActivityResponse.d.ts +1 -1
- package/api/types/ClientBodyResponse.d.ts +1 -1
- package/api/types/ClientFacingActivity.d.ts +14 -2
- package/api/types/ClientFacingApiKey.d.ts +2 -2
- package/api/types/ClientFacingAppointment.d.ts +5 -3
- package/api/types/ClientFacingAppointmentEvent.d.ts +2 -2
- package/api/types/ClientFacingAtHomePhlebotomyOrder.d.ts +2 -2
- package/api/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +1 -1
- package/api/types/ClientFacingBloodOxygenTimeseries.d.ts +4 -1
- package/api/types/ClientFacingBloodPressureTimeseries.d.ts +4 -1
- package/api/types/ClientFacingBody.d.ts +4 -2
- package/api/types/ClientFacingBodyFatTimeseries.d.ts +4 -1
- package/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +8 -4
- package/api/types/ClientFacingBodyTemperatureSample.d.ts +8 -4
- package/api/types/ClientFacingBodyWeightTimeseries.d.ts +4 -1
- package/api/types/ClientFacingCaffeineTimeseries.d.ts +6 -3
- package/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +6 -3
- package/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +4 -1
- package/api/types/ClientFacingCarbohydratesSample.d.ts +6 -3
- package/api/types/ClientFacingCholesterolTimeseries.d.ts +4 -1
- package/api/types/ClientFacingDistanceTimeseries.d.ts +6 -3
- package/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -0
- package/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +4 -1
- package/api/types/ClientFacingFood.d.ts +1 -1
- package/api/types/ClientFacingGlucoseTimeseries.d.ts +4 -1
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +3 -1
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +3 -1
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +3 -1
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +3 -1
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +3 -1
- package/api/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +3 -1
- package/api/types/ClientFacingHeartRate.d.ts +4 -0
- package/api/types/ClientFacingHeartRateTimeseries.d.ts +4 -1
- package/api/types/ClientFacingHrvTimeseries.d.ts +4 -1
- package/api/types/ClientFacingHypnogramTimeseries.d.ts +6 -3
- package/api/types/ClientFacingIgeTimeseries.d.ts +4 -1
- package/api/types/ClientFacingIggTimeseries.d.ts +4 -1
- package/api/types/ClientFacingInsulinInjectionSample.d.ts +6 -4
- package/api/types/ClientFacingInsurance.d.ts +1 -1
- package/api/types/ClientFacingLab.d.ts +1 -1
- package/api/types/ClientFacingLabLocation.d.ts +1 -1
- package/api/types/ClientFacingLabTest.d.ts +5 -1
- package/api/types/ClientFacingMarker.d.ts +2 -1
- package/api/types/ClientFacingMarkerComplete.d.ts +2 -1
- package/api/types/ClientFacingMealResponse.d.ts +1 -1
- package/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +6 -3
- package/api/types/ClientFacingNoteSample.d.ts +8 -4
- package/api/types/ClientFacingOrder.d.ts +11 -3
- package/api/types/ClientFacingOrderDetails.d.ts +1 -1
- package/api/types/ClientFacingOrderEvent.d.ts +2 -2
- package/api/types/ClientFacingPatientDetailsCompatible.d.ts +1 -1
- package/api/types/ClientFacingPayorSearchResponse.d.ts +1 -1
- package/api/types/ClientFacingProfile.d.ts +1 -1
- package/api/types/ClientFacingProviderDetailed.d.ts +2 -1
- package/api/types/ClientFacingProviderWithStatus.d.ts +1 -1
- package/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +4 -1
- package/api/types/ClientFacingResult.d.ts +1 -1
- package/api/types/ClientFacingShipment.d.ts +7 -0
- package/api/types/ClientFacingSleep.d.ts +16 -4
- package/api/types/ClientFacingSleepStream.d.ts +1 -1
- package/api/types/ClientFacingSource.d.ts +1 -0
- package/api/types/ClientFacingStepsTimeseries.d.ts +6 -3
- package/api/types/ClientFacingStream.d.ts +2 -1
- package/api/types/ClientFacingStressLevelTimeseries.d.ts +4 -1
- package/api/types/ClientFacingTeam.d.ts +1 -1
- package/api/types/ClientFacingTestKitOrderDetails.d.ts +1 -1
- package/api/types/ClientFacingTestkitOrder.d.ts +4 -3
- package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
- package/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +1 -1
- package/api/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +1 -1
- package/api/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +1 -1
- package/api/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +1 -1
- package/api/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +1 -1
- package/api/types/ClientFacingUser.d.ts +9 -2
- package/api/types/ClientFacingVo2MaxTimeseries.d.ts +6 -3
- package/api/types/ClientFacingWalkInOrderDetails.d.ts +1 -1
- package/api/types/ClientFacingWalkInTestOrder.d.ts +2 -2
- package/api/types/ClientFacingWaterTimeseries.d.ts +4 -1
- package/api/types/ClientFacingWorkout.d.ts +22 -3
- package/api/types/ClientFacingWorkoutDurationSample.d.ts +8 -4
- package/api/types/ClientSleepResponse.d.ts +1 -1
- package/api/types/ClientWorkoutResponse.d.ts +1 -1
- package/api/types/CompanyDetails.d.ts +1 -1
- package/api/types/ConnectedSourceClientFacing.d.ts +2 -2
- package/api/types/ConnectionStatus.d.ts +1 -1
- package/api/types/Consent.d.ts +1 -1
- package/api/types/ContraceptiveEntry.d.ts +1 -1
- package/api/types/DaySlots.d.ts +1 -1
- package/api/types/DetectedDeviationEntry.d.ts +1 -1
- package/api/types/DeviceV2InDb.d.ts +1 -1
- package/api/types/EventDestinationPreferences.d.ts +1 -1
- package/api/types/FallbackBirthDate.d.ts +1 -1
- package/api/types/FallbackTimeZone.d.ts +1 -1
- package/api/types/Fats.d.ts +6 -0
- package/api/types/GetMarkersResponse.d.ts +1 -1
- package/api/types/GetOrdersResponse.d.ts +1 -1
- package/api/types/GroupedBloodOxygen.d.ts +1 -1
- package/api/types/GroupedBloodOxygenResponse.d.ts +3 -1
- package/api/types/GroupedBloodPressure.d.ts +1 -1
- package/api/types/GroupedBloodPressureResponse.d.ts +3 -1
- package/api/types/GroupedBodyFat.d.ts +1 -1
- package/api/types/GroupedBodyFatResponse.d.ts +3 -1
- package/api/types/GroupedBodyWeight.d.ts +1 -1
- package/api/types/GroupedBodyWeightResponse.d.ts +3 -1
- package/api/types/GroupedCaffeine.d.ts +1 -1
- package/api/types/GroupedCaffeineResponse.d.ts +3 -1
- package/api/types/GroupedCaloriesActive.d.ts +1 -1
- package/api/types/GroupedCaloriesActiveResponse.d.ts +3 -1
- package/api/types/GroupedCaloriesBasal.d.ts +1 -1
- package/api/types/GroupedCaloriesBasalResponse.d.ts +3 -1
- package/api/types/GroupedCholesterol.d.ts +1 -1
- package/api/types/GroupedCholesterolResponse.d.ts +3 -1
- package/api/types/GroupedDistance.d.ts +1 -1
- package/api/types/GroupedDistanceResponse.d.ts +3 -1
- package/api/types/GroupedElectrocardiogramVoltage.d.ts +1 -1
- package/api/types/GroupedElectrocardiogramVoltageResponse.d.ts +3 -1
- package/api/types/GroupedFloorsClimbed.d.ts +1 -1
- package/api/types/GroupedFloorsClimbedResponse.d.ts +3 -1
- package/api/types/GroupedGlucose.d.ts +1 -1
- package/api/types/GroupedGlucoseResponse.d.ts +3 -1
- package/api/types/GroupedHeartRate.d.ts +1 -1
- package/api/types/GroupedHeartRateResponse.d.ts +3 -1
- package/api/types/GroupedHrv.d.ts +1 -1
- package/api/types/GroupedHrvResponse.d.ts +3 -1
- package/api/types/GroupedHypnogram.d.ts +1 -1
- package/api/types/GroupedHypnogramResponse.d.ts +3 -1
- package/api/types/GroupedIge.d.ts +1 -1
- package/api/types/GroupedIgeResponse.d.ts +3 -1
- package/api/types/GroupedIgg.d.ts +1 -1
- package/api/types/GroupedIggResponse.d.ts +3 -1
- package/api/types/GroupedMindfulnessMinutes.d.ts +1 -1
- package/api/types/GroupedMindfulnessMinutesResponse.d.ts +3 -1
- package/api/types/GroupedRespiratoryRate.d.ts +1 -1
- package/api/types/GroupedRespiratoryRateResponse.d.ts +3 -1
- package/api/types/GroupedSteps.d.ts +1 -1
- package/api/types/GroupedStepsResponse.d.ts +3 -1
- package/api/types/GroupedStressLevel.d.ts +1 -1
- package/api/types/GroupedStressLevelResponse.d.ts +3 -1
- package/api/types/GroupedVo2Max.d.ts +1 -1
- package/api/types/GroupedVo2MaxResponse.d.ts +3 -1
- package/api/types/GroupedWater.d.ts +1 -1
- package/api/types/GroupedWaterResponse.d.ts +3 -1
- package/api/types/HealthInsuranceCreateRequest.d.ts +8 -1
- package/api/types/HealthInsuranceCreateRequestBackImage.d.ts +1 -1
- package/api/types/HealthInsuranceCreateRequestFrontImage.d.ts +1 -1
- package/api/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +1 -1
- package/api/types/HistoricalPullTimeline.d.ts +3 -3
- package/api/types/HomePregnancyTestEntry.d.ts +1 -1
- package/api/types/HomeProgesteroneTestEntry.d.ts +1 -1
- package/api/types/HttpValidationError.d.ts +1 -1
- package/api/types/LabResultsRaw.d.ts +1 -1
- package/api/types/LabResultsRawResults.d.ts +1 -1
- package/api/types/LastAttempt.d.ts +2 -2
- package/api/types/Macros.d.ts +9 -1
- package/api/types/MealInDbBaseClientFacingSource.d.ts +5 -4
- package/api/types/MenstrualCycle.d.ts +1 -1
- package/api/types/MenstrualCycleResponse.d.ts +1 -1
- package/api/types/MenstrualFlowEntry.d.ts +1 -1
- package/api/types/MetricsResult.d.ts +1 -1
- package/api/types/Micros.d.ts +3 -0
- package/api/types/Minerals.d.ts +44 -0
- package/api/types/Minerals.js +46 -0
- package/api/types/OrderSetRequest.d.ts +8 -0
- package/api/types/OrderSetRequest.js +5 -0
- package/api/types/OvulationTestEntry.d.ts +1 -1
- package/api/types/PaginatedUsersResponse.d.ts +1 -1
- package/api/types/PatientDetails.d.ts +1 -1
- package/api/types/Period.d.ts +8 -0
- package/api/types/Period.js +5 -0
- package/api/types/PeriodUnit.d.ts +12 -0
- package/api/types/PeriodUnit.js +14 -0
- package/api/types/PersonDetailsOutput.d.ts +1 -1
- package/api/types/PhlebotomyAreaInfo.d.ts +1 -1
- package/api/types/PhlebotomyProviderInfo.d.ts +1 -1
- package/api/types/PhysicianCreateRequest.d.ts +1 -1
- package/api/types/PhysicianCreateRequestSignatureImage.d.ts +1 -1
- package/api/types/Placeholder.d.ts +6 -0
- package/api/types/Placeholder.js +5 -0
- package/api/types/PostOrderResponse.d.ts +1 -1
- package/api/types/ProfileInDb.d.ts +1 -1
- package/api/types/ProviderLinkResponse.d.ts +1 -1
- package/api/types/ProviderMfaRequest.d.ts +1 -1
- package/api/types/Providers.d.ts +2 -1
- package/api/types/Providers.js +1 -0
- package/api/types/PscAreaInfo.d.ts +1 -1
- package/api/types/PscInfo.d.ts +1 -1
- package/api/types/QueryConfig.d.ts +8 -0
- package/api/types/QueryConfig.js +5 -0
- package/api/types/QueryConfigProviderPriorityOverridesItem.d.ts +5 -0
- package/api/types/QueryConfigProviderPriorityOverridesItem.js +5 -0
- package/api/types/QueryConfigWeekStartsOn.d.ts +8 -0
- package/api/types/QueryConfigWeekStartsOn.js +10 -0
- package/api/types/QueryInstruction.d.ts +11 -0
- package/api/types/QueryInstruction.js +5 -0
- package/api/types/QueryInstructionPartitionBy.d.ts +5 -0
- package/api/types/QueryInstructionPartitionBy.js +5 -0
- package/api/types/QueryInstructionSelect.d.ts +5 -0
- package/api/types/QueryInstructionSelect.js +5 -0
- package/api/types/Question.d.ts +1 -1
- package/api/types/RawActivity.d.ts +1 -1
- package/api/types/RawBody.d.ts +1 -1
- package/api/types/RawDevices.d.ts +1 -1
- package/api/types/RawProfile.d.ts +1 -1
- package/api/types/RawSleep.d.ts +1 -1
- package/api/types/RawWorkout.d.ts +1 -1
- package/api/types/Reducer.d.ts +7 -0
- package/api/types/Reducer.js +5 -0
- package/api/types/ReducerFunction.d.ts +15 -0
- package/api/types/ReducerFunction.js +17 -0
- package/api/types/RelativeTimeframe.d.ts +9 -0
- package/api/types/RelativeTimeframe.js +5 -0
- package/api/types/ResourceAvailability.d.ts +1 -1
- package/api/types/ScopeRequirementsGrants.d.ts +1 -1
- package/api/types/SingleHistoricalPullStatistics.d.ts +3 -3
- package/api/types/SingleProviderHistoricalPullResponse.d.ts +1 -1
- package/api/types/SingleResourceStatistics.d.ts +3 -3
- package/api/types/SingleUserHistoricalPullResponse.d.ts +1 -1
- package/api/types/SingleUserResourceResponse.d.ts +1 -1
- package/api/types/SleepSelector.d.ts +7 -0
- package/api/types/SleepSelector.js +5 -0
- package/api/types/SleepSelectorSleep.d.ts +30 -0
- package/api/types/SleepSelectorSleep.js +32 -0
- package/api/types/SleepV2InDb.d.ts +1 -1
- package/api/types/Source.d.ts +1 -1
- package/api/types/SourceLink.d.ts +1 -1
- package/api/types/Swizzling.d.ts +36 -0
- package/api/types/Swizzling.js +5 -0
- package/api/types/SwizzlingBinGranularity.d.ts +11 -0
- package/api/types/SwizzlingBinGranularity.js +13 -0
- package/api/types/TeamConfig.d.ts +1 -1
- package/api/types/TimeSlot.d.ts +3 -3
- package/api/types/TimeseriesMetricPoint.d.ts +1 -1
- package/api/types/TraceElements.d.ts +12 -0
- package/api/types/TraceElements.js +14 -0
- package/api/types/UsAddress.d.ts +1 -0
- package/api/types/UserHistoricalPullsResponse.d.ts +2 -1
- package/api/types/UserInfo.d.ts +1 -1
- package/api/types/UserResourcesResponse.d.ts +2 -1
- package/api/types/ValidationError.d.ts +1 -1
- package/api/types/VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails.d.ts +1 -1
- package/api/types/VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.d.ts +1 -1
- package/api/types/Vitamins.d.ts +19 -0
- package/api/types/Vitamins.js +21 -0
- package/api/types/WorkoutV2InDb.d.ts +1 -1
- package/api/types/index.d.ts +23 -0
- package/api/types/index.js +23 -0
- package/core/fetcher/Fetcher.d.ts +5 -1
- package/core/fetcher/Fetcher.js +29 -94
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +52 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/core/runtime/runtime.d.ts +2 -1
- package/core/runtime/runtime.js +12 -1
- package/core/schemas/Schema.d.ts +7 -4
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/Client.d.ts +9 -2
- package/dist/Client.js +6 -1
- package/dist/api/errors/BadRequestError.d.ts +1 -1
- package/dist/api/errors/BadRequestError.js +1 -1
- package/dist/api/errors/UnprocessableEntityError.d.ts +2 -2
- package/dist/api/errors/UnprocessableEntityError.js +1 -1
- package/dist/api/resources/activity/client/Client.d.ts +20 -6
- package/dist/api/resources/activity/client/Client.js +28 -14
- package/dist/api/resources/activity/client/requests/index.d.ts +2 -2
- package/dist/api/resources/aggregate/client/Client.d.ts +57 -0
- package/dist/api/resources/aggregate/client/Client.js +136 -0
- package/dist/api/resources/aggregate/client/index.d.ts +1 -0
- package/dist/api/resources/aggregate/client/index.js +17 -0
- package/dist/api/resources/aggregate/client/requests/Query.d.ts +32 -0
- package/dist/api/resources/aggregate/client/requests/Query.js +5 -0
- package/dist/api/resources/aggregate/client/requests/index.d.ts +1 -0
- package/dist/api/resources/aggregate/client/requests/index.js +2 -0
- package/dist/api/resources/aggregate/index.d.ts +2 -0
- package/dist/api/resources/aggregate/index.js +18 -0
- package/dist/api/resources/aggregate/types/QueryTimeframe.d.ts +5 -0
- package/dist/api/resources/aggregate/types/QueryTimeframe.js +5 -0
- package/dist/api/resources/aggregate/types/index.d.ts +1 -0
- package/dist/api/resources/aggregate/types/index.js +17 -0
- package/dist/api/resources/body/client/Client.d.ts +20 -6
- package/dist/api/resources/body/client/Client.js +28 -14
- package/dist/api/resources/body/client/requests/index.d.ts +2 -2
- package/dist/api/resources/devices/client/Client.d.ts +14 -5
- package/dist/api/resources/devices/client/Client.js +16 -9
- package/dist/api/resources/devices/client/requests/index.d.ts +1 -1
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/insurance/client/Client.d.ts +16 -6
- package/dist/api/resources/insurance/client/Client.js +23 -13
- package/dist/api/resources/insurance/client/requests/index.d.ts +2 -2
- package/dist/api/resources/introspect/client/Client.d.ts +16 -6
- package/dist/api/resources/introspect/client/Client.js +22 -12
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserHistoricalPullsRequest.d.ts +1 -1
- package/dist/api/resources/introspect/client/requests/IntrospectGetUserResourcesRequest.d.ts +1 -1
- package/dist/api/resources/introspect/client/requests/index.d.ts +2 -2
- package/dist/api/resources/labTests/client/Client.d.ts +149 -25
- package/dist/api/resources/labTests/client/Client.js +301 -128
- package/dist/api/resources/labTests/client/requests/CreateLabTestRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +26 -2
- package/dist/api/resources/labTests/client/requests/LabTestsGetAreaInfoRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/LabTestsGetLabelsPdfRequest.d.ts +7 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetMarkersRequest.d.ts +1 -0
- package/dist/api/resources/labTests/client/requests/LabTestsGetOrderPscInfoRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/LabTestsGetOrdersRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/LabTestsGetPscInfoRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/LabTestsSimulateOrderProcessRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +1 -1
- package/dist/api/resources/labTests/client/requests/index.d.ts +14 -14
- package/dist/api/resources/link/client/Client.d.ts +81 -18
- package/dist/api/resources/link/client/Client.js +162 -79
- package/dist/api/resources/link/client/requests/BeginLinkTokenRequest.d.ts +1 -1
- package/dist/api/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +1 -1
- package/dist/api/resources/link/client/requests/EmailAuthLink.d.ts +1 -1
- package/dist/api/resources/link/client/requests/EmailProviderAuthLink.d.ts +1 -1
- package/dist/api/resources/link/client/requests/IndividualProviderData.d.ts +1 -1
- package/dist/api/resources/link/client/requests/LinkTokenExchange.d.ts +1 -1
- package/dist/api/resources/link/client/requests/PasswordAuthLink.d.ts +1 -1
- package/dist/api/resources/link/client/requests/index.d.ts +14 -14
- package/dist/api/resources/meal/client/Client.d.ts +14 -5
- package/dist/api/resources/meal/client/Client.js +16 -9
- package/dist/api/resources/meal/client/requests/index.d.ts +1 -1
- package/dist/api/resources/menstrualCycle/client/Client.d.ts +13 -5
- package/dist/api/resources/menstrualCycle/client/Client.js +15 -9
- package/dist/api/resources/menstrualCycle/client/requests/index.d.ts +1 -1
- package/dist/api/resources/profile/client/Client.d.ts +20 -6
- package/dist/api/resources/profile/client/Client.js +28 -14
- package/dist/api/resources/profile/client/requests/index.d.ts +2 -2
- package/dist/api/resources/providers/client/Client.d.ts +13 -5
- package/dist/api/resources/providers/client/Client.js +14 -8
- package/dist/api/resources/providers/client/requests/index.d.ts +1 -1
- package/dist/api/resources/sleep/client/Client.d.ts +31 -8
- package/dist/api/resources/sleep/client/Client.js +51 -24
- package/dist/api/resources/sleep/client/requests/index.d.ts +3 -3
- package/dist/api/resources/team/client/Client.d.ts +41 -10
- package/dist/api/resources/team/client/Client.js +72 -31
- package/dist/api/resources/team/client/requests/index.d.ts +3 -3
- package/dist/api/resources/testkit/client/Client.d.ts +51 -4
- package/dist/api/resources/testkit/client/Client.js +59 -12
- package/dist/api/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +17 -1
- package/dist/api/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +23 -1
- package/dist/api/resources/testkit/client/requests/index.d.ts +2 -2
- package/dist/api/resources/user/client/Client.d.ts +82 -20
- package/dist/api/resources/user/client/Client.js +172 -82
- package/dist/api/resources/user/client/requests/CreateInsuranceRequest.d.ts +1 -1
- package/dist/api/resources/user/client/requests/UserCreateBody.d.ts +8 -0
- package/dist/api/resources/user/client/requests/UserInfoCreateRequest.d.ts +1 -1
- package/dist/api/resources/user/client/requests/UserPatchBody.d.ts +8 -0
- package/dist/api/resources/user/client/requests/index.d.ts +7 -7
- package/dist/api/resources/vitals/client/Client.d.ts +288 -60
- package/dist/api/resources/vitals/client/Client.js +620 -284
- package/dist/api/resources/vitals/client/requests/index.d.ts +56 -56
- package/dist/api/resources/workouts/client/Client.d.ts +24 -7
- package/dist/api/resources/workouts/client/Client.js +38 -19
- package/dist/api/resources/workouts/client/requests/index.d.ts +2 -2
- package/dist/api/types/ActivitySelector.d.ts +7 -0
- package/dist/api/types/ActivitySelector.js +5 -0
- package/dist/api/types/ActivitySelectorActivity.d.ts +24 -0
- package/dist/api/types/ActivitySelectorActivity.js +26 -0
- package/dist/api/types/ActivityV2InDb.d.ts +1 -1
- package/dist/api/types/AddOnOrder.d.ts +7 -0
- package/dist/api/types/AddOnOrder.js +5 -0
- package/dist/api/types/AoE.d.ts +1 -1
- package/dist/api/types/AppointmentAvailabilitySlots.d.ts +1 -1
- package/dist/api/types/AreaInfo.d.ts +1 -1
- package/dist/api/types/BiomarkerResult.d.ts +3 -2
- package/dist/api/types/BodyV2InDb.d.ts +1 -1
- package/dist/api/types/CervicalMucusEntry.d.ts +1 -1
- package/dist/api/types/ClientActivityResponse.d.ts +1 -1
- package/dist/api/types/ClientBodyResponse.d.ts +1 -1
- package/dist/api/types/ClientFacingActivity.d.ts +14 -2
- package/dist/api/types/ClientFacingApiKey.d.ts +2 -2
- package/dist/api/types/ClientFacingAppointment.d.ts +5 -3
- package/dist/api/types/ClientFacingAppointmentEvent.d.ts +2 -2
- package/dist/api/types/ClientFacingAtHomePhlebotomyOrder.d.ts +2 -2
- package/dist/api/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +1 -1
- package/dist/api/types/ClientFacingBloodOxygenTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingBloodPressureTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingBody.d.ts +4 -2
- package/dist/api/types/ClientFacingBodyFatTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingBodyTemperatureDeltaSample.d.ts +8 -4
- package/dist/api/types/ClientFacingBodyTemperatureSample.d.ts +8 -4
- package/dist/api/types/ClientFacingBodyWeightTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingCaffeineTimeseries.d.ts +6 -3
- package/dist/api/types/ClientFacingCaloriesActiveTimeseries.d.ts +6 -3
- package/dist/api/types/ClientFacingCaloriesBasalTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingCarbohydratesSample.d.ts +6 -3
- package/dist/api/types/ClientFacingCholesterolTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingDistanceTimeseries.d.ts +6 -3
- package/dist/api/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -0
- package/dist/api/types/ClientFacingFloorsClimbedTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingFood.d.ts +1 -1
- package/dist/api/types/ClientFacingGlucoseTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +3 -1
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +3 -1
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +3 -1
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +3 -1
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +3 -1
- package/dist/api/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +3 -1
- package/dist/api/types/ClientFacingHeartRate.d.ts +4 -0
- package/dist/api/types/ClientFacingHeartRateTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingHrvTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingHypnogramTimeseries.d.ts +6 -3
- package/dist/api/types/ClientFacingIgeTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingIggTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingInsulinInjectionSample.d.ts +6 -4
- package/dist/api/types/ClientFacingInsurance.d.ts +1 -1
- package/dist/api/types/ClientFacingLab.d.ts +1 -1
- package/dist/api/types/ClientFacingLabLocation.d.ts +1 -1
- package/dist/api/types/ClientFacingLabTest.d.ts +5 -1
- package/dist/api/types/ClientFacingMarker.d.ts +2 -1
- package/dist/api/types/ClientFacingMarkerComplete.d.ts +2 -1
- package/dist/api/types/ClientFacingMealResponse.d.ts +1 -1
- package/dist/api/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +6 -3
- package/dist/api/types/ClientFacingNoteSample.d.ts +8 -4
- package/dist/api/types/ClientFacingOrder.d.ts +11 -3
- package/dist/api/types/ClientFacingOrderDetails.d.ts +1 -1
- package/dist/api/types/ClientFacingOrderEvent.d.ts +2 -2
- package/dist/api/types/ClientFacingPatientDetailsCompatible.d.ts +1 -1
- package/dist/api/types/ClientFacingPayorSearchResponse.d.ts +1 -1
- package/dist/api/types/ClientFacingProfile.d.ts +1 -1
- package/dist/api/types/ClientFacingProviderDetailed.d.ts +2 -1
- package/dist/api/types/ClientFacingProviderWithStatus.d.ts +1 -1
- package/dist/api/types/ClientFacingRespiratoryRateTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingResult.d.ts +1 -1
- package/dist/api/types/ClientFacingShipment.d.ts +7 -0
- package/dist/api/types/ClientFacingSleep.d.ts +16 -4
- package/dist/api/types/ClientFacingSleepStream.d.ts +1 -1
- package/dist/api/types/ClientFacingSource.d.ts +1 -0
- package/dist/api/types/ClientFacingStepsTimeseries.d.ts +6 -3
- package/dist/api/types/ClientFacingStream.d.ts +2 -1
- package/dist/api/types/ClientFacingStressLevelTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingTeam.d.ts +1 -1
- package/dist/api/types/ClientFacingTestKitOrderDetails.d.ts +1 -1
- package/dist/api/types/ClientFacingTestkitOrder.d.ts +4 -3
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +1 -1
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +1 -1
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +1 -1
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +1 -1
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +1 -1
- package/dist/api/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +1 -1
- package/dist/api/types/ClientFacingUser.d.ts +9 -2
- package/dist/api/types/ClientFacingVo2MaxTimeseries.d.ts +6 -3
- package/dist/api/types/ClientFacingWalkInOrderDetails.d.ts +1 -1
- package/dist/api/types/ClientFacingWalkInTestOrder.d.ts +2 -2
- package/dist/api/types/ClientFacingWaterTimeseries.d.ts +4 -1
- package/dist/api/types/ClientFacingWorkout.d.ts +22 -3
- package/dist/api/types/ClientFacingWorkoutDurationSample.d.ts +8 -4
- package/dist/api/types/ClientSleepResponse.d.ts +1 -1
- package/dist/api/types/ClientWorkoutResponse.d.ts +1 -1
- package/dist/api/types/CompanyDetails.d.ts +1 -1
- package/dist/api/types/ConnectedSourceClientFacing.d.ts +2 -2
- package/dist/api/types/ConnectionStatus.d.ts +1 -1
- package/dist/api/types/Consent.d.ts +1 -1
- package/dist/api/types/ContraceptiveEntry.d.ts +1 -1
- package/dist/api/types/DaySlots.d.ts +1 -1
- package/dist/api/types/DetectedDeviationEntry.d.ts +1 -1
- package/dist/api/types/DeviceV2InDb.d.ts +1 -1
- package/dist/api/types/EventDestinationPreferences.d.ts +1 -1
- package/dist/api/types/FallbackBirthDate.d.ts +1 -1
- package/dist/api/types/FallbackTimeZone.d.ts +1 -1
- package/dist/api/types/Fats.d.ts +6 -0
- package/dist/api/types/GetMarkersResponse.d.ts +1 -1
- package/dist/api/types/GetOrdersResponse.d.ts +1 -1
- package/dist/api/types/GroupedBloodOxygen.d.ts +1 -1
- package/dist/api/types/GroupedBloodOxygenResponse.d.ts +3 -1
- package/dist/api/types/GroupedBloodPressure.d.ts +1 -1
- package/dist/api/types/GroupedBloodPressureResponse.d.ts +3 -1
- package/dist/api/types/GroupedBodyFat.d.ts +1 -1
- package/dist/api/types/GroupedBodyFatResponse.d.ts +3 -1
- package/dist/api/types/GroupedBodyWeight.d.ts +1 -1
- package/dist/api/types/GroupedBodyWeightResponse.d.ts +3 -1
- package/dist/api/types/GroupedCaffeine.d.ts +1 -1
- package/dist/api/types/GroupedCaffeineResponse.d.ts +3 -1
- package/dist/api/types/GroupedCaloriesActive.d.ts +1 -1
- package/dist/api/types/GroupedCaloriesActiveResponse.d.ts +3 -1
- package/dist/api/types/GroupedCaloriesBasal.d.ts +1 -1
- package/dist/api/types/GroupedCaloriesBasalResponse.d.ts +3 -1
- package/dist/api/types/GroupedCholesterol.d.ts +1 -1
- package/dist/api/types/GroupedCholesterolResponse.d.ts +3 -1
- package/dist/api/types/GroupedDistance.d.ts +1 -1
- package/dist/api/types/GroupedDistanceResponse.d.ts +3 -1
- package/dist/api/types/GroupedElectrocardiogramVoltage.d.ts +1 -1
- package/dist/api/types/GroupedElectrocardiogramVoltageResponse.d.ts +3 -1
- package/dist/api/types/GroupedFloorsClimbed.d.ts +1 -1
- package/dist/api/types/GroupedFloorsClimbedResponse.d.ts +3 -1
- package/dist/api/types/GroupedGlucose.d.ts +1 -1
- package/dist/api/types/GroupedGlucoseResponse.d.ts +3 -1
- package/dist/api/types/GroupedHeartRate.d.ts +1 -1
- package/dist/api/types/GroupedHeartRateResponse.d.ts +3 -1
- package/dist/api/types/GroupedHrv.d.ts +1 -1
- package/dist/api/types/GroupedHrvResponse.d.ts +3 -1
- package/dist/api/types/GroupedHypnogram.d.ts +1 -1
- package/dist/api/types/GroupedHypnogramResponse.d.ts +3 -1
- package/dist/api/types/GroupedIge.d.ts +1 -1
- package/dist/api/types/GroupedIgeResponse.d.ts +3 -1
- package/dist/api/types/GroupedIgg.d.ts +1 -1
- package/dist/api/types/GroupedIggResponse.d.ts +3 -1
- package/dist/api/types/GroupedMindfulnessMinutes.d.ts +1 -1
- package/dist/api/types/GroupedMindfulnessMinutesResponse.d.ts +3 -1
- package/dist/api/types/GroupedRespiratoryRate.d.ts +1 -1
- package/dist/api/types/GroupedRespiratoryRateResponse.d.ts +3 -1
- package/dist/api/types/GroupedSteps.d.ts +1 -1
- package/dist/api/types/GroupedStepsResponse.d.ts +3 -1
- package/dist/api/types/GroupedStressLevel.d.ts +1 -1
- package/dist/api/types/GroupedStressLevelResponse.d.ts +3 -1
- package/dist/api/types/GroupedVo2Max.d.ts +1 -1
- package/dist/api/types/GroupedVo2MaxResponse.d.ts +3 -1
- package/dist/api/types/GroupedWater.d.ts +1 -1
- package/dist/api/types/GroupedWaterResponse.d.ts +3 -1
- package/dist/api/types/HealthInsuranceCreateRequest.d.ts +8 -1
- package/dist/api/types/HealthInsuranceCreateRequestBackImage.d.ts +1 -1
- package/dist/api/types/HealthInsuranceCreateRequestFrontImage.d.ts +1 -1
- package/dist/api/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +1 -1
- package/dist/api/types/HistoricalPullTimeline.d.ts +3 -3
- package/dist/api/types/HomePregnancyTestEntry.d.ts +1 -1
- package/dist/api/types/HomeProgesteroneTestEntry.d.ts +1 -1
- package/dist/api/types/HttpValidationError.d.ts +1 -1
- package/dist/api/types/LabResultsRaw.d.ts +1 -1
- package/dist/api/types/LabResultsRawResults.d.ts +1 -1
- package/dist/api/types/LastAttempt.d.ts +2 -2
- package/dist/api/types/Macros.d.ts +9 -1
- package/dist/api/types/MealInDbBaseClientFacingSource.d.ts +5 -4
- package/dist/api/types/MenstrualCycle.d.ts +1 -1
- package/dist/api/types/MenstrualCycleResponse.d.ts +1 -1
- package/dist/api/types/MenstrualFlowEntry.d.ts +1 -1
- package/dist/api/types/MetricsResult.d.ts +1 -1
- package/dist/api/types/Micros.d.ts +3 -0
- package/dist/api/types/Minerals.d.ts +44 -0
- package/dist/api/types/Minerals.js +46 -0
- package/dist/api/types/OrderSetRequest.d.ts +8 -0
- package/dist/api/types/OrderSetRequest.js +5 -0
- package/dist/api/types/OvulationTestEntry.d.ts +1 -1
- package/dist/api/types/PaginatedUsersResponse.d.ts +1 -1
- package/dist/api/types/PatientDetails.d.ts +1 -1
- package/dist/api/types/Period.d.ts +8 -0
- package/dist/api/types/Period.js +5 -0
- package/dist/api/types/PeriodUnit.d.ts +12 -0
- package/dist/api/types/PeriodUnit.js +14 -0
- package/dist/api/types/PersonDetailsOutput.d.ts +1 -1
- package/dist/api/types/PhlebotomyAreaInfo.d.ts +1 -1
- package/dist/api/types/PhlebotomyProviderInfo.d.ts +1 -1
- package/dist/api/types/PhysicianCreateRequest.d.ts +1 -1
- package/dist/api/types/PhysicianCreateRequestSignatureImage.d.ts +1 -1
- package/dist/api/types/Placeholder.d.ts +6 -0
- package/dist/api/types/Placeholder.js +5 -0
- package/dist/api/types/PostOrderResponse.d.ts +1 -1
- package/dist/api/types/ProfileInDb.d.ts +1 -1
- package/dist/api/types/ProviderLinkResponse.d.ts +1 -1
- package/dist/api/types/ProviderMfaRequest.d.ts +1 -1
- package/dist/api/types/Providers.d.ts +2 -1
- package/dist/api/types/Providers.js +1 -0
- package/dist/api/types/PscAreaInfo.d.ts +1 -1
- package/dist/api/types/PscInfo.d.ts +1 -1
- package/dist/api/types/QueryConfig.d.ts +8 -0
- package/dist/api/types/QueryConfig.js +5 -0
- package/dist/api/types/QueryConfigProviderPriorityOverridesItem.d.ts +5 -0
- package/dist/api/types/QueryConfigProviderPriorityOverridesItem.js +5 -0
- package/dist/api/types/QueryConfigWeekStartsOn.d.ts +8 -0
- package/dist/api/types/QueryConfigWeekStartsOn.js +10 -0
- package/dist/api/types/QueryInstruction.d.ts +11 -0
- package/dist/api/types/QueryInstruction.js +5 -0
- package/dist/api/types/QueryInstructionPartitionBy.d.ts +5 -0
- package/dist/api/types/QueryInstructionPartitionBy.js +5 -0
- package/dist/api/types/QueryInstructionSelect.d.ts +5 -0
- package/dist/api/types/QueryInstructionSelect.js +5 -0
- package/dist/api/types/Question.d.ts +1 -1
- package/dist/api/types/RawActivity.d.ts +1 -1
- package/dist/api/types/RawBody.d.ts +1 -1
- package/dist/api/types/RawDevices.d.ts +1 -1
- package/dist/api/types/RawProfile.d.ts +1 -1
- package/dist/api/types/RawSleep.d.ts +1 -1
- package/dist/api/types/RawWorkout.d.ts +1 -1
- package/dist/api/types/Reducer.d.ts +7 -0
- package/dist/api/types/Reducer.js +5 -0
- package/dist/api/types/ReducerFunction.d.ts +15 -0
- package/dist/api/types/ReducerFunction.js +17 -0
- package/dist/api/types/RelativeTimeframe.d.ts +9 -0
- package/dist/api/types/RelativeTimeframe.js +5 -0
- package/dist/api/types/ResourceAvailability.d.ts +1 -1
- package/dist/api/types/ScopeRequirementsGrants.d.ts +1 -1
- package/dist/api/types/SingleHistoricalPullStatistics.d.ts +3 -3
- package/dist/api/types/SingleProviderHistoricalPullResponse.d.ts +1 -1
- package/dist/api/types/SingleResourceStatistics.d.ts +3 -3
- package/dist/api/types/SingleUserHistoricalPullResponse.d.ts +1 -1
- package/dist/api/types/SingleUserResourceResponse.d.ts +1 -1
- package/dist/api/types/SleepSelector.d.ts +7 -0
- package/dist/api/types/SleepSelector.js +5 -0
- package/dist/api/types/SleepSelectorSleep.d.ts +30 -0
- package/dist/api/types/SleepSelectorSleep.js +32 -0
- package/dist/api/types/SleepV2InDb.d.ts +1 -1
- package/dist/api/types/Source.d.ts +1 -1
- package/dist/api/types/SourceLink.d.ts +1 -1
- package/dist/api/types/Swizzling.d.ts +36 -0
- package/dist/api/types/Swizzling.js +5 -0
- package/dist/api/types/SwizzlingBinGranularity.d.ts +11 -0
- package/dist/api/types/SwizzlingBinGranularity.js +13 -0
- package/dist/api/types/TeamConfig.d.ts +1 -1
- package/dist/api/types/TimeSlot.d.ts +3 -3
- package/dist/api/types/TimeseriesMetricPoint.d.ts +1 -1
- package/dist/api/types/TraceElements.d.ts +12 -0
- package/dist/api/types/TraceElements.js +14 -0
- package/dist/api/types/UsAddress.d.ts +1 -0
- package/dist/api/types/UserHistoricalPullsResponse.d.ts +2 -1
- package/dist/api/types/UserInfo.d.ts +1 -1
- package/dist/api/types/UserResourcesResponse.d.ts +2 -1
- package/dist/api/types/ValidationError.d.ts +1 -1
- package/dist/api/types/VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails.d.ts +1 -1
- package/dist/api/types/VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.d.ts +1 -1
- package/dist/api/types/Vitamins.d.ts +19 -0
- package/dist/api/types/Vitamins.js +21 -0
- package/dist/api/types/WorkoutV2InDb.d.ts +1 -1
- package/dist/api/types/index.d.ts +23 -0
- package/dist/api/types/index.js +23 -0
- package/dist/core/fetcher/Fetcher.d.ts +5 -1
- package/dist/core/fetcher/Fetcher.js +29 -94
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +52 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/dist/core/runtime/runtime.d.ts +2 -1
- package/dist/core/runtime/runtime.js +12 -1
- package/dist/core/schemas/Schema.d.ts +7 -4
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/serialization/resources/aggregate/client/index.d.ts +1 -0
- package/dist/serialization/resources/aggregate/client/index.js +17 -0
- package/dist/serialization/resources/aggregate/client/requests/Query.d.ts +17 -0
- package/dist/serialization/resources/aggregate/client/requests/Query.js +38 -0
- package/dist/serialization/resources/aggregate/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/aggregate/client/requests/index.js +5 -0
- package/dist/serialization/resources/aggregate/index.d.ts +2 -0
- package/dist/serialization/resources/aggregate/index.js +18 -0
- package/dist/serialization/resources/aggregate/types/QueryTimeframe.d.ts +12 -0
- package/dist/serialization/resources/aggregate/types/QueryTimeframe.js +33 -0
- package/dist/serialization/resources/aggregate/types/index.d.ts +1 -0
- package/dist/serialization/resources/aggregate/types/index.js +17 -0
- package/dist/serialization/resources/index.d.ts +3 -0
- package/dist/serialization/resources/index.js +4 -1
- package/dist/serialization/resources/insurance/client/requests/PayorSearchRequest.d.ts +2 -2
- package/dist/serialization/resources/insurance/client/searchDiagnosis.d.ts +2 -2
- package/dist/serialization/resources/insurance/client/searchPayorInfo.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/get.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/getLabs.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/getPhlebotomyAppointmentCancellationReason.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/requests/CreateLabTestRequest.d.ts +2 -2
- package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +7 -3
- package/dist/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +5 -1
- package/dist/serialization/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +2 -2
- package/dist/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.d.ts +2 -2
- package/dist/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.d.ts +2 -2
- package/dist/serialization/resources/link/client/connectManualProvider.d.ts +1 -1
- package/dist/serialization/resources/link/client/getAllProviders.d.ts +2 -2
- package/dist/serialization/resources/link/client/isTokenValid.d.ts +1 -1
- package/dist/serialization/resources/link/client/requests/BeginLinkTokenRequest.d.ts +2 -2
- package/dist/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +2 -2
- package/dist/serialization/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +2 -2
- package/dist/serialization/resources/link/client/requests/EmailAuthLink.d.ts +2 -2
- package/dist/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +2 -2
- package/dist/serialization/resources/link/client/requests/IndividualProviderData.d.ts +2 -2
- package/dist/serialization/resources/link/client/requests/LinkTokenBase.d.ts +2 -2
- package/dist/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +2 -2
- package/dist/serialization/resources/link/client/requests/ManualConnectionData.d.ts +2 -2
- package/dist/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +2 -2
- package/dist/serialization/resources/link/client/startConnect.d.ts +1 -1
- package/dist/serialization/resources/link/client/tokenState.d.ts +1 -1
- package/dist/serialization/resources/providers/client/getAll.d.ts +2 -2
- package/dist/serialization/resources/team/client/getLinkConfig.d.ts +1 -1
- package/dist/serialization/resources/team/client/getPhysicians.d.ts +2 -2
- package/dist/serialization/resources/team/client/getSourcePriorities.d.ts +1 -1
- package/dist/serialization/resources/team/client/getSvixUrl.d.ts +1 -1
- package/dist/serialization/resources/team/client/getUserById.d.ts +2 -2
- package/dist/serialization/resources/team/client/updateSourcePriorities.d.ts +1 -1
- package/dist/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
- package/dist/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
- package/dist/serialization/resources/user/client/getConnectedProviders.d.ts +2 -2
- package/dist/serialization/resources/user/client/requests/CreateInsuranceRequest.d.ts +2 -2
- package/dist/serialization/resources/user/client/requests/UserCreateBody.d.ts +2 -2
- package/dist/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +2 -2
- package/dist/serialization/resources/user/client/requests/UserPatchBody.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/bloodOxygen.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/bloodPressure.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/bodyFat.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/bodyWeight.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/caffeine.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/caloriesActive.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/caloriesBasal.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/cholesterol.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/cholesterolHdl.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/cholesterolLdl.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/cholesterolTotal.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/cholesterolTriglycerides.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/distance.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/floorsClimbed.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/glucose.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/heartrate.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/hrv.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/hypnogram.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/ige.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/igg.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/mindfulnessMinutes.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/respiratoryRate.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/steps.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/stressLevel.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/vo2Max.d.ts +2 -2
- package/dist/serialization/resources/vitals/client/water.d.ts +2 -2
- package/dist/serialization/types/ActivitySelector.d.ts +13 -0
- package/dist/serialization/types/ActivitySelector.js +34 -0
- package/dist/serialization/types/ActivitySelectorActivity.d.ts +10 -0
- package/dist/serialization/types/ActivitySelectorActivity.js +50 -0
- package/dist/serialization/types/ActivityV2InDb.d.ts +2 -2
- package/dist/serialization/types/AddOnOrder.d.ts +13 -0
- package/dist/serialization/types/AddOnOrder.js +34 -0
- package/dist/serialization/types/Address.d.ts +2 -2
- package/dist/serialization/types/AllowedRadius.d.ts +2 -2
- package/dist/serialization/types/Answer.d.ts +2 -2
- package/dist/serialization/types/AoE.d.ts +2 -2
- package/dist/serialization/types/AoEAnswer.d.ts +2 -2
- package/dist/serialization/types/AppointmentAvailabilitySlots.d.ts +2 -2
- package/dist/serialization/types/AppointmentEventStatus.d.ts +2 -2
- package/dist/serialization/types/AppointmentProvider.d.ts +2 -2
- package/dist/serialization/types/AppointmentServiceType.d.ts +2 -2
- package/dist/serialization/types/AppointmentStatus.d.ts +2 -2
- package/dist/serialization/types/AppointmentType.d.ts +2 -2
- package/dist/serialization/types/AreaInfo.d.ts +2 -2
- package/dist/serialization/types/AttemptStatus.d.ts +2 -2
- package/dist/serialization/types/AuthType.d.ts +2 -2
- package/dist/serialization/types/Availability.d.ts +2 -2
- package/dist/serialization/types/BasalBodyTemperatureEntry.d.ts +2 -2
- package/dist/serialization/types/Billing.d.ts +2 -2
- package/dist/serialization/types/BiomarkerResult.d.ts +3 -2
- package/dist/serialization/types/BiomarkerResult.js +2 -1
- package/dist/serialization/types/BodyV2InDb.d.ts +2 -2
- package/dist/serialization/types/CervicalMucusEntry.d.ts +2 -2
- package/dist/serialization/types/CervicalMucusEntryQuality.d.ts +2 -2
- package/dist/serialization/types/ClientActivityResponse.d.ts +2 -2
- package/dist/serialization/types/ClientBodyResponse.d.ts +2 -2
- package/dist/serialization/types/ClientFacingActivity.d.ts +2 -2
- package/dist/serialization/types/ClientFacingActivity.js +1 -1
- package/dist/serialization/types/ClientFacingApiKey.d.ts +2 -2
- package/dist/serialization/types/ClientFacingApiKey.js +2 -2
- package/dist/serialization/types/ClientFacingAppointment.d.ts +2 -2
- package/dist/serialization/types/ClientFacingAppointment.js +2 -2
- package/dist/serialization/types/ClientFacingAppointmentCancellationReason.d.ts +2 -2
- package/dist/serialization/types/ClientFacingAppointmentEvent.d.ts +2 -2
- package/dist/serialization/types/ClientFacingAppointmentEvent.js +1 -1
- package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrder.d.ts +2 -2
- package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrder.js +2 -2
- package/dist/serialization/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBloodOxygenTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBloodOxygenTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingBloodPressureTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBloodPressureTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingBody.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBody.js +1 -1
- package/dist/serialization/types/ClientFacingBodyFatTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBodyFatTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSample.js +3 -3
- package/dist/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBodyTemperatureSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBodyTemperatureSample.js +3 -3
- package/dist/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBodyWeightTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingBodyWeightTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingCaffeineTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingCaffeineTimeseries.js +3 -3
- package/dist/serialization/types/ClientFacingCaloriesActiveTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingCaloriesActiveTimeseries.js +3 -3
- package/dist/serialization/types/ClientFacingCaloriesBasalTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingCaloriesBasalTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingCarbohydratesSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingCarbohydratesSample.js +3 -3
- package/dist/serialization/types/ClientFacingCholesterolTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingCholesterolTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingDiagnosisInformation.d.ts +2 -2
- package/dist/serialization/types/ClientFacingDistanceTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingDistanceTimeseries.js +3 -3
- package/dist/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingFloorsClimbedTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingFloorsClimbedTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingFood.d.ts +2 -2
- package/dist/serialization/types/ClientFacingGlucoseTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingGlucoseTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingHeartRate.d.ts +2 -2
- package/dist/serialization/types/ClientFacingHeartRateTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingHeartRateTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingHrvTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingHrvTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingHypnogramTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingHypnogramTimeseries.js +3 -3
- package/dist/serialization/types/ClientFacingIgeTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingIgeTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingIggTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingIggTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingInsulinInjectionSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingInsulinInjectionSample.js +3 -3
- package/dist/serialization/types/ClientFacingInsulinInjectionSampleType.d.ts +2 -2
- package/dist/serialization/types/ClientFacingInsurance.d.ts +2 -2
- package/dist/serialization/types/ClientFacingLab.d.ts +2 -2
- package/dist/serialization/types/ClientFacingLabLocation.d.ts +2 -2
- package/dist/serialization/types/ClientFacingLabTest.d.ts +3 -2
- package/dist/serialization/types/ClientFacingLabTest.js +1 -0
- package/dist/serialization/types/ClientFacingLabs.d.ts +2 -2
- package/dist/serialization/types/ClientFacingLoinc.d.ts +2 -2
- package/dist/serialization/types/ClientFacingMarker.d.ts +3 -2
- package/dist/serialization/types/ClientFacingMarker.js +1 -0
- package/dist/serialization/types/ClientFacingMarkerComplete.d.ts +3 -2
- package/dist/serialization/types/ClientFacingMarkerComplete.js +1 -0
- package/dist/serialization/types/ClientFacingMealResponse.d.ts +2 -2
- package/dist/serialization/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingMindfulnessMinutesTimeseries.js +3 -3
- package/dist/serialization/types/ClientFacingNoteSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingNoteSample.js +3 -3
- package/dist/serialization/types/ClientFacingNoteSampleTagsItem.d.ts +2 -2
- package/dist/serialization/types/ClientFacingOrder.d.ts +2 -2
- package/dist/serialization/types/ClientFacingOrder.js +2 -2
- package/dist/serialization/types/ClientFacingOrderDetails.d.ts +2 -2
- package/dist/serialization/types/ClientFacingOrderEvent.d.ts +2 -2
- package/dist/serialization/types/ClientFacingOrderEvent.js +1 -1
- package/dist/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +2 -2
- package/dist/serialization/types/ClientFacingPatientDetailsCompatible.js +1 -1
- package/dist/serialization/types/ClientFacingPayorSearchResponse.d.ts +2 -2
- package/dist/serialization/types/ClientFacingPhysician.d.ts +2 -2
- package/dist/serialization/types/ClientFacingProfile.d.ts +2 -2
- package/dist/serialization/types/ClientFacingProvider.d.ts +2 -2
- package/dist/serialization/types/ClientFacingProviderDetailed.d.ts +2 -2
- package/dist/serialization/types/ClientFacingProviderWithStatus.d.ts +2 -2
- package/dist/serialization/types/ClientFacingResource.d.ts +2 -2
- package/dist/serialization/types/ClientFacingRespiratoryRateTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingRespiratoryRateTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingResult.d.ts +2 -2
- package/dist/serialization/types/ClientFacingSampleGroupingKeys.d.ts +2 -2
- package/dist/serialization/types/ClientFacingShipment.d.ts +2 -2
- package/dist/serialization/types/ClientFacingSleep.d.ts +2 -2
- package/dist/serialization/types/ClientFacingSleep.js +3 -3
- package/dist/serialization/types/ClientFacingSleepStream.d.ts +2 -2
- package/dist/serialization/types/ClientFacingSource.d.ts +2 -2
- package/dist/serialization/types/ClientFacingSport.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStepsTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStepsTimeseries.js +3 -3
- package/dist/serialization/types/ClientFacingStream.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamAltitude.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamCadence.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamDistance.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamHeartrate.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamLat.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamLng.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamPower.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamResistance.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamTemperature.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStreamVelocitySmooth.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStressLevelTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingStressLevelTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingTeam.d.ts +2 -2
- package/dist/serialization/types/ClientFacingTestKitOrderDetails.d.ts +2 -2
- package/dist/serialization/types/ClientFacingTestkitOrder.d.ts +2 -2
- package/dist/serialization/types/ClientFacingTestkitOrder.js +2 -2
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingUser.d.ts +2 -2
- package/dist/serialization/types/ClientFacingUser.js +1 -1
- package/dist/serialization/types/ClientFacingUserKey.d.ts +2 -2
- package/dist/serialization/types/ClientFacingVo2MaxTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingVo2MaxTimeseries.js +3 -3
- package/dist/serialization/types/ClientFacingWalkInOrderDetails.d.ts +2 -2
- package/dist/serialization/types/ClientFacingWalkInTestOrder.d.ts +2 -2
- package/dist/serialization/types/ClientFacingWalkInTestOrder.js +2 -2
- package/dist/serialization/types/ClientFacingWaterTimeseries.d.ts +2 -2
- package/dist/serialization/types/ClientFacingWaterTimeseries.js +1 -1
- package/dist/serialization/types/ClientFacingWorkout.d.ts +2 -2
- package/dist/serialization/types/ClientFacingWorkout.js +2 -2
- package/dist/serialization/types/ClientFacingWorkoutDurationSample.d.ts +2 -2
- package/dist/serialization/types/ClientFacingWorkoutDurationSample.js +3 -3
- package/dist/serialization/types/ClientFacingWorkoutDurationSampleIntensity.d.ts +2 -2
- package/dist/serialization/types/ClientSleepResponse.d.ts +2 -2
- package/dist/serialization/types/ClientUserIdConflict.d.ts +2 -2
- package/dist/serialization/types/ClientWorkoutResponse.d.ts +2 -2
- package/dist/serialization/types/CompanyDetails.d.ts +2 -2
- package/dist/serialization/types/ConnectedSourceClientFacing.d.ts +2 -2
- package/dist/serialization/types/ConnectedSourceClientFacing.js +1 -1
- package/dist/serialization/types/ConnectionStatus.d.ts +2 -2
- package/dist/serialization/types/ConnectionStatusState.d.ts +2 -2
- package/dist/serialization/types/Consent.d.ts +2 -2
- package/dist/serialization/types/ConsentType.d.ts +2 -2
- package/dist/serialization/types/ContraceptiveEntry.d.ts +2 -2
- package/dist/serialization/types/ContraceptiveEntryType.d.ts +2 -2
- package/dist/serialization/types/DaySlots.d.ts +2 -2
- package/dist/serialization/types/DelegatedFlowType.d.ts +2 -2
- package/dist/serialization/types/DemoConnectionStatus.d.ts +2 -2
- package/dist/serialization/types/DemoProviders.d.ts +2 -2
- package/dist/serialization/types/DetectedDeviationEntry.d.ts +2 -2
- package/dist/serialization/types/DetectedDeviationEntryDeviation.d.ts +2 -2
- package/dist/serialization/types/DeviceV2InDb.d.ts +2 -2
- package/dist/serialization/types/EmailProviders.d.ts +2 -2
- package/dist/serialization/types/Energy.d.ts +2 -2
- package/dist/serialization/types/EventDestinationPreferences.d.ts +2 -2
- package/dist/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +2 -2
- package/dist/serialization/types/EventDestinationPreferencesPreferred.d.ts +2 -2
- package/dist/serialization/types/FallbackBirthDate.d.ts +2 -2
- package/dist/serialization/types/FallbackBirthDate.js +1 -1
- package/dist/serialization/types/FallbackTimeZone.d.ts +2 -2
- package/dist/serialization/types/FallbackTimeZone.js +1 -1
- package/dist/serialization/types/Fats.d.ts +2 -2
- package/dist/serialization/types/Gender.d.ts +2 -2
- package/dist/serialization/types/GetMarkersResponse.d.ts +2 -2
- package/dist/serialization/types/GetOrdersResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedBloodOxygen.d.ts +2 -2
- package/dist/serialization/types/GroupedBloodOxygenResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedBloodPressure.d.ts +2 -2
- package/dist/serialization/types/GroupedBloodPressureResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedBodyFat.d.ts +2 -2
- package/dist/serialization/types/GroupedBodyFatResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedBodyWeight.d.ts +2 -2
- package/dist/serialization/types/GroupedBodyWeightResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedCaffeine.d.ts +2 -2
- package/dist/serialization/types/GroupedCaffeineResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedCaloriesActive.d.ts +2 -2
- package/dist/serialization/types/GroupedCaloriesActiveResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedCaloriesBasal.d.ts +2 -2
- package/dist/serialization/types/GroupedCaloriesBasalResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedCholesterol.d.ts +2 -2
- package/dist/serialization/types/GroupedCholesterolResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedDistance.d.ts +2 -2
- package/dist/serialization/types/GroupedDistanceResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedElectrocardiogramVoltage.d.ts +2 -2
- package/dist/serialization/types/GroupedElectrocardiogramVoltageResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedFloorsClimbed.d.ts +2 -2
- package/dist/serialization/types/GroupedFloorsClimbedResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedGlucose.d.ts +2 -2
- package/dist/serialization/types/GroupedGlucoseResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedHeartRate.d.ts +2 -2
- package/dist/serialization/types/GroupedHeartRateResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedHrv.d.ts +2 -2
- package/dist/serialization/types/GroupedHrvResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedHypnogram.d.ts +2 -2
- package/dist/serialization/types/GroupedHypnogramResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedIge.d.ts +2 -2
- package/dist/serialization/types/GroupedIgeResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedIgg.d.ts +2 -2
- package/dist/serialization/types/GroupedIggResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedMindfulnessMinutes.d.ts +2 -2
- package/dist/serialization/types/GroupedMindfulnessMinutesResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedRespiratoryRate.d.ts +2 -2
- package/dist/serialization/types/GroupedRespiratoryRateResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedSteps.d.ts +2 -2
- package/dist/serialization/types/GroupedStepsResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedStressLevel.d.ts +2 -2
- package/dist/serialization/types/GroupedStressLevelResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedVo2Max.d.ts +2 -2
- package/dist/serialization/types/GroupedVo2MaxResponse.d.ts +2 -2
- package/dist/serialization/types/GroupedWater.d.ts +2 -2
- package/dist/serialization/types/GroupedWaterResponse.d.ts +2 -2
- package/dist/serialization/types/HealthInsuranceCreateRequest.d.ts +2 -2
- package/dist/serialization/types/HealthInsuranceCreateRequestBackImage.d.ts +2 -2
- package/dist/serialization/types/HealthInsuranceCreateRequestFrontImage.d.ts +2 -2
- package/dist/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +2 -2
- package/dist/serialization/types/HistoricalPullStatus.d.ts +2 -2
- package/dist/serialization/types/HistoricalPullTimeline.d.ts +2 -2
- package/dist/serialization/types/HistoricalPullTimeline.js +3 -3
- package/dist/serialization/types/HomePregnancyTestEntry.d.ts +2 -2
- package/dist/serialization/types/HomePregnancyTestEntryTestResult.d.ts +2 -2
- package/dist/serialization/types/HomeProgesteroneTestEntry.d.ts +2 -2
- package/dist/serialization/types/HomeProgesteroneTestEntryTestResult.d.ts +2 -2
- package/dist/serialization/types/HttpValidationError.d.ts +2 -2
- package/dist/serialization/types/IntermenstrualBleedingEntry.d.ts +2 -2
- package/dist/serialization/types/Jpeg.d.ts +2 -2
- package/dist/serialization/types/LabLocationMetadata.d.ts +2 -2
- package/dist/serialization/types/LabResultsMetadata.d.ts +2 -2
- package/dist/serialization/types/LabResultsRaw.d.ts +2 -2
- package/dist/serialization/types/LabResultsRawResults.d.ts +2 -2
- package/dist/serialization/types/LabTestCollectionMethod.d.ts +2 -2
- package/dist/serialization/types/LabTestSampleType.d.ts +2 -2
- package/dist/serialization/types/LabTestStatus.d.ts +2 -2
- package/dist/serialization/types/Labs.d.ts +2 -2
- package/dist/serialization/types/LastAttempt.d.ts +2 -2
- package/dist/serialization/types/LastAttempt.js +1 -1
- package/dist/serialization/types/LibreConfig.d.ts +2 -2
- package/dist/serialization/types/LinkTokenExchangeResponse.d.ts +2 -2
- package/dist/serialization/types/LngLat.d.ts +2 -2
- package/dist/serialization/types/Macros.d.ts +3 -2
- package/dist/serialization/types/Macros.js +1 -0
- package/dist/serialization/types/ManualProviders.d.ts +2 -2
- package/dist/serialization/types/MarkerType.d.ts +2 -2
- package/dist/serialization/types/MealInDbBaseClientFacingSource.d.ts +3 -2
- package/dist/serialization/types/MealInDbBaseClientFacingSource.js +4 -3
- package/dist/serialization/types/MenstrualCycle.d.ts +2 -2
- package/dist/serialization/types/MenstrualCycleResponse.d.ts +2 -2
- package/dist/serialization/types/MenstrualFlowEntry.d.ts +2 -2
- package/dist/serialization/types/MenstrualFlowEntryFlow.d.ts +2 -2
- package/dist/serialization/types/MetricsResult.d.ts +2 -2
- package/dist/serialization/types/Micros.d.ts +2 -2
- package/dist/serialization/types/Minerals.d.ts +10 -0
- package/dist/serialization/types/Minerals.js +70 -0
- package/dist/serialization/types/OAuthProviders.d.ts +2 -2
- package/dist/serialization/types/OrderSetRequest.d.ts +14 -0
- package/dist/serialization/types/OrderSetRequest.js +35 -0
- package/dist/serialization/types/OrderStatus.d.ts +2 -2
- package/dist/serialization/types/OrderTopLevelStatus.d.ts +2 -2
- package/dist/serialization/types/OvulationTestEntry.d.ts +2 -2
- package/dist/serialization/types/OvulationTestEntryTestResult.d.ts +2 -2
- package/dist/serialization/types/PaginatedUsersResponse.d.ts +2 -2
- package/dist/serialization/types/PasswordProviders.d.ts +2 -2
- package/dist/serialization/types/PatientAddressCompatible.d.ts +2 -2
- package/dist/serialization/types/PatientDetails.d.ts +2 -2
- package/dist/serialization/types/Period.d.ts +14 -0
- package/dist/serialization/types/Period.js +35 -0
- package/dist/serialization/types/PeriodUnit.d.ts +10 -0
- package/dist/serialization/types/PeriodUnit.js +31 -0
- package/dist/serialization/types/PersonDetailsOutput.d.ts +2 -2
- package/dist/serialization/types/PhlebotomyAreaInfo.d.ts +2 -2
- package/dist/serialization/types/PhlebotomyProviderInfo.d.ts +2 -2
- package/dist/serialization/types/PhysicianCreateRequest.d.ts +2 -2
- package/dist/serialization/types/PhysicianCreateRequestBase.d.ts +2 -2
- package/dist/serialization/types/PhysicianCreateRequestSignatureImage.d.ts +2 -2
- package/dist/serialization/types/Placeholder.d.ts +12 -0
- package/dist/serialization/types/Placeholder.js +33 -0
- package/dist/serialization/types/Png.d.ts +2 -2
- package/dist/serialization/types/PostOrderResponse.d.ts +2 -2
- package/dist/serialization/types/ProfileInDb.d.ts +2 -2
- package/dist/serialization/types/ProviderLinkResponse.d.ts +2 -2
- package/dist/serialization/types/ProviderLinkResponseState.d.ts +2 -2
- package/dist/serialization/types/ProviderMfaRequest.d.ts +2 -2
- package/dist/serialization/types/ProviderMfaRequestMethod.d.ts +2 -2
- package/dist/serialization/types/Providers.d.ts +3 -3
- package/dist/serialization/types/Providers.js +1 -0
- package/dist/serialization/types/PscAreaInfo.d.ts +2 -2
- package/dist/serialization/types/PscAreaInfoDetails.d.ts +2 -2
- package/dist/serialization/types/PscInfo.d.ts +2 -2
- package/dist/serialization/types/QueryConfig.d.ts +15 -0
- package/dist/serialization/types/QueryConfig.js +36 -0
- package/dist/serialization/types/QueryConfigProviderPriorityOverridesItem.d.ts +12 -0
- package/dist/serialization/types/QueryConfigProviderPriorityOverridesItem.js +33 -0
- package/dist/serialization/types/QueryConfigWeekStartsOn.d.ts +10 -0
- package/dist/serialization/types/QueryConfigWeekStartsOn.js +31 -0
- package/dist/serialization/types/QueryInstruction.d.ts +20 -0
- package/dist/serialization/types/QueryInstruction.js +41 -0
- package/dist/serialization/types/QueryInstructionPartitionBy.d.ts +12 -0
- package/dist/serialization/types/QueryInstructionPartitionBy.js +33 -0
- package/dist/serialization/types/QueryInstructionSelect.d.ts +12 -0
- package/dist/serialization/types/QueryInstructionSelect.js +33 -0
- package/dist/serialization/types/Question.d.ts +2 -2
- package/dist/serialization/types/QuestionType.d.ts +2 -2
- package/dist/serialization/types/RawActivity.d.ts +2 -2
- package/dist/serialization/types/RawBody.d.ts +2 -2
- package/dist/serialization/types/RawDevices.d.ts +2 -2
- package/dist/serialization/types/RawProfile.d.ts +2 -2
- package/dist/serialization/types/RawSleep.d.ts +2 -2
- package/dist/serialization/types/RawWorkout.d.ts +2 -2
- package/dist/serialization/types/Reducer.d.ts +13 -0
- package/dist/serialization/types/Reducer.js +34 -0
- package/dist/serialization/types/ReducerFunction.d.ts +10 -0
- package/dist/serialization/types/ReducerFunction.js +31 -0
- package/dist/serialization/types/Region.d.ts +2 -2
- package/dist/serialization/types/RelativeTimeframe.d.ts +15 -0
- package/dist/serialization/types/RelativeTimeframe.js +36 -0
- package/dist/serialization/types/ResourceAvailability.d.ts +2 -2
- package/dist/serialization/types/ResponsibleRelationship.d.ts +2 -2
- package/dist/serialization/types/ResultType.d.ts +2 -2
- package/dist/serialization/types/ScopeRequirementsGrants.d.ts +2 -2
- package/dist/serialization/types/ScopeRequirementsStr.d.ts +2 -2
- package/dist/serialization/types/SexualActivityEntry.d.ts +2 -2
- package/dist/serialization/types/ShippingAddress.d.ts +2 -2
- package/dist/serialization/types/SingleHistoricalPullStatistics.d.ts +2 -2
- package/dist/serialization/types/SingleHistoricalPullStatistics.js +2 -2
- package/dist/serialization/types/SingleProviderHistoricalPullResponse.d.ts +2 -2
- package/dist/serialization/types/SingleResourceStatistics.d.ts +2 -2
- package/dist/serialization/types/SingleResourceStatistics.js +2 -2
- package/dist/serialization/types/SingleUserHistoricalPullResponse.d.ts +2 -2
- package/dist/serialization/types/SingleUserResourceResponse.d.ts +2 -2
- package/dist/serialization/types/SleepSelector.d.ts +13 -0
- package/dist/serialization/types/SleepSelector.js +34 -0
- package/dist/serialization/types/SleepSelectorSleep.d.ts +10 -0
- package/dist/serialization/types/SleepSelectorSleep.js +56 -0
- package/dist/serialization/types/SleepSummaryState.d.ts +2 -2
- package/dist/serialization/types/SleepV2InDb.d.ts +2 -2
- package/dist/serialization/types/Source.d.ts +2 -2
- package/dist/serialization/types/SourceAuthType.d.ts +2 -2
- package/dist/serialization/types/SourceLink.d.ts +2 -2
- package/dist/serialization/types/SourceType.d.ts +2 -2
- package/dist/serialization/types/Swizzling.d.ts +16 -0
- package/dist/serialization/types/Swizzling.js +37 -0
- package/dist/serialization/types/SwizzlingBinGranularity.d.ts +10 -0
- package/dist/serialization/types/SwizzlingBinGranularity.js +31 -0
- package/dist/serialization/types/TeamConfig.d.ts +2 -2
- package/dist/serialization/types/TimeSlot.d.ts +2 -2
- package/dist/serialization/types/TimeSlot.js +3 -3
- package/dist/serialization/types/TimeseriesMetricPoint.d.ts +2 -2
- package/dist/serialization/types/TimeseriesMetricPoint.js +1 -1
- package/dist/serialization/types/TimeseriesResource.d.ts +2 -2
- package/dist/serialization/types/TraceElements.d.ts +10 -0
- package/dist/serialization/types/TraceElements.js +31 -0
- package/dist/serialization/types/UsAddress.d.ts +2 -2
- package/dist/serialization/types/UserHistoricalPullsResponse.d.ts +2 -2
- package/dist/serialization/types/UserInfo.d.ts +2 -2
- package/dist/serialization/types/UserRefreshErrorResponse.d.ts +2 -2
- package/dist/serialization/types/UserRefreshSuccessResponse.d.ts +2 -2
- package/dist/serialization/types/UserResourcesResponse.d.ts +2 -2
- package/dist/serialization/types/UserSignInTokenResponse.d.ts +2 -2
- package/dist/serialization/types/UserSuccessResponse.d.ts +2 -2
- package/dist/serialization/types/ValidationError.d.ts +2 -2
- package/dist/serialization/types/ValidationErrorLocItem.d.ts +2 -2
- package/dist/serialization/types/VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails.d.ts +2 -2
- package/dist/serialization/types/VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.d.ts +2 -2
- package/dist/serialization/types/VitalTokenCreatedResponse.d.ts +2 -2
- package/dist/serialization/types/Vitamins.d.ts +10 -0
- package/dist/serialization/types/Vitamins.js +45 -0
- package/dist/serialization/types/WorkoutV2InDb.d.ts +2 -2
- package/dist/serialization/types/index.d.ts +23 -0
- package/dist/serialization/types/index.js +23 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/jest.config.js +2 -2
- package/package.json +20 -8
- package/reference.md +8883 -0
- package/serialization/resources/aggregate/client/index.d.ts +1 -0
- package/serialization/resources/aggregate/client/index.js +17 -0
- package/serialization/resources/aggregate/client/requests/Query.d.ts +17 -0
- package/serialization/resources/aggregate/client/requests/Query.js +38 -0
- package/serialization/resources/aggregate/client/requests/index.d.ts +1 -0
- package/serialization/resources/aggregate/client/requests/index.js +5 -0
- package/serialization/resources/aggregate/index.d.ts +2 -0
- package/serialization/resources/aggregate/index.js +18 -0
- package/serialization/resources/aggregate/types/QueryTimeframe.d.ts +12 -0
- package/serialization/resources/aggregate/types/QueryTimeframe.js +33 -0
- package/serialization/resources/aggregate/types/index.d.ts +1 -0
- package/serialization/resources/aggregate/types/index.js +17 -0
- package/serialization/resources/index.d.ts +3 -0
- package/serialization/resources/index.js +4 -1
- package/serialization/resources/insurance/client/requests/PayorSearchRequest.d.ts +2 -2
- package/serialization/resources/insurance/client/searchDiagnosis.d.ts +2 -2
- package/serialization/resources/insurance/client/searchPayorInfo.d.ts +2 -2
- package/serialization/resources/labTests/client/get.d.ts +2 -2
- package/serialization/resources/labTests/client/getLabs.d.ts +2 -2
- package/serialization/resources/labTests/client/getPhlebotomyAppointmentCancellationReason.d.ts +2 -2
- package/serialization/resources/labTests/client/requests/AppointmentBookingRequest.d.ts +2 -2
- package/serialization/resources/labTests/client/requests/AppointmentCancelRequest.d.ts +2 -2
- package/serialization/resources/labTests/client/requests/AppointmentRescheduleRequest.d.ts +2 -2
- package/serialization/resources/labTests/client/requests/CreateLabTestRequest.d.ts +2 -2
- package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.d.ts +7 -3
- package/serialization/resources/labTests/client/requests/CreateOrderRequestCompatible.js +5 -1
- package/serialization/resources/labTests/client/requests/RequestAppointmentRequest.d.ts +2 -2
- package/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderDirection.d.ts +2 -2
- package/serialization/resources/labTests/types/LabTestsGetOrdersRequestOrderKey.d.ts +2 -2
- package/serialization/resources/link/client/connectManualProvider.d.ts +1 -1
- package/serialization/resources/link/client/getAllProviders.d.ts +2 -2
- package/serialization/resources/link/client/isTokenValid.d.ts +1 -1
- package/serialization/resources/link/client/requests/BeginLinkTokenRequest.d.ts +2 -2
- package/serialization/resources/link/client/requests/CompletePasswordProviderMfaBody.d.ts +2 -2
- package/serialization/resources/link/client/requests/DemoConnectionCreationPayload.d.ts +2 -2
- package/serialization/resources/link/client/requests/EmailAuthLink.d.ts +2 -2
- package/serialization/resources/link/client/requests/EmailProviderAuthLink.d.ts +2 -2
- package/serialization/resources/link/client/requests/IndividualProviderData.d.ts +2 -2
- package/serialization/resources/link/client/requests/LinkTokenBase.d.ts +2 -2
- package/serialization/resources/link/client/requests/LinkTokenExchange.d.ts +2 -2
- package/serialization/resources/link/client/requests/ManualConnectionData.d.ts +2 -2
- package/serialization/resources/link/client/requests/PasswordAuthLink.d.ts +2 -2
- package/serialization/resources/link/client/startConnect.d.ts +1 -1
- package/serialization/resources/link/client/tokenState.d.ts +1 -1
- package/serialization/resources/providers/client/getAll.d.ts +2 -2
- package/serialization/resources/team/client/getLinkConfig.d.ts +1 -1
- package/serialization/resources/team/client/getPhysicians.d.ts +2 -2
- package/serialization/resources/team/client/getSourcePriorities.d.ts +1 -1
- package/serialization/resources/team/client/getSvixUrl.d.ts +1 -1
- package/serialization/resources/team/client/getUserById.d.ts +2 -2
- package/serialization/resources/team/client/updateSourcePriorities.d.ts +1 -1
- package/serialization/resources/testkit/client/requests/CreateRegistrableTestkitOrderRequest.d.ts +2 -2
- package/serialization/resources/testkit/client/requests/RegisterTestkitRequest.d.ts +2 -2
- package/serialization/resources/user/client/getConnectedProviders.d.ts +2 -2
- package/serialization/resources/user/client/requests/CreateInsuranceRequest.d.ts +2 -2
- package/serialization/resources/user/client/requests/UserCreateBody.d.ts +2 -2
- package/serialization/resources/user/client/requests/UserInfoCreateRequest.d.ts +2 -2
- package/serialization/resources/user/client/requests/UserPatchBody.d.ts +2 -2
- package/serialization/resources/vitals/client/bloodOxygen.d.ts +2 -2
- package/serialization/resources/vitals/client/bloodPressure.d.ts +2 -2
- package/serialization/resources/vitals/client/bodyFat.d.ts +2 -2
- package/serialization/resources/vitals/client/bodyWeight.d.ts +2 -2
- package/serialization/resources/vitals/client/caffeine.d.ts +2 -2
- package/serialization/resources/vitals/client/caloriesActive.d.ts +2 -2
- package/serialization/resources/vitals/client/caloriesBasal.d.ts +2 -2
- package/serialization/resources/vitals/client/cholesterol.d.ts +2 -2
- package/serialization/resources/vitals/client/cholesterolHdl.d.ts +2 -2
- package/serialization/resources/vitals/client/cholesterolLdl.d.ts +2 -2
- package/serialization/resources/vitals/client/cholesterolTotal.d.ts +2 -2
- package/serialization/resources/vitals/client/cholesterolTriglycerides.d.ts +2 -2
- package/serialization/resources/vitals/client/distance.d.ts +2 -2
- package/serialization/resources/vitals/client/electrocardiogramVoltage.d.ts +2 -2
- package/serialization/resources/vitals/client/floorsClimbed.d.ts +2 -2
- package/serialization/resources/vitals/client/glucose.d.ts +2 -2
- package/serialization/resources/vitals/client/heartrate.d.ts +2 -2
- package/serialization/resources/vitals/client/hrv.d.ts +2 -2
- package/serialization/resources/vitals/client/hypnogram.d.ts +2 -2
- package/serialization/resources/vitals/client/ige.d.ts +2 -2
- package/serialization/resources/vitals/client/igg.d.ts +2 -2
- package/serialization/resources/vitals/client/mindfulnessMinutes.d.ts +2 -2
- package/serialization/resources/vitals/client/respiratoryRate.d.ts +2 -2
- package/serialization/resources/vitals/client/steps.d.ts +2 -2
- package/serialization/resources/vitals/client/stressLevel.d.ts +2 -2
- package/serialization/resources/vitals/client/vo2Max.d.ts +2 -2
- package/serialization/resources/vitals/client/water.d.ts +2 -2
- package/serialization/types/ActivitySelector.d.ts +13 -0
- package/serialization/types/ActivitySelector.js +34 -0
- package/serialization/types/ActivitySelectorActivity.d.ts +10 -0
- package/serialization/types/ActivitySelectorActivity.js +50 -0
- package/serialization/types/ActivityV2InDb.d.ts +2 -2
- package/serialization/types/AddOnOrder.d.ts +13 -0
- package/serialization/types/AddOnOrder.js +34 -0
- package/serialization/types/Address.d.ts +2 -2
- package/serialization/types/AllowedRadius.d.ts +2 -2
- package/serialization/types/Answer.d.ts +2 -2
- package/serialization/types/AoE.d.ts +2 -2
- package/serialization/types/AoEAnswer.d.ts +2 -2
- package/serialization/types/AppointmentAvailabilitySlots.d.ts +2 -2
- package/serialization/types/AppointmentEventStatus.d.ts +2 -2
- package/serialization/types/AppointmentProvider.d.ts +2 -2
- package/serialization/types/AppointmentServiceType.d.ts +2 -2
- package/serialization/types/AppointmentStatus.d.ts +2 -2
- package/serialization/types/AppointmentType.d.ts +2 -2
- package/serialization/types/AreaInfo.d.ts +2 -2
- package/serialization/types/AttemptStatus.d.ts +2 -2
- package/serialization/types/AuthType.d.ts +2 -2
- package/serialization/types/Availability.d.ts +2 -2
- package/serialization/types/BasalBodyTemperatureEntry.d.ts +2 -2
- package/serialization/types/Billing.d.ts +2 -2
- package/serialization/types/BiomarkerResult.d.ts +3 -2
- package/serialization/types/BiomarkerResult.js +2 -1
- package/serialization/types/BodyV2InDb.d.ts +2 -2
- package/serialization/types/CervicalMucusEntry.d.ts +2 -2
- package/serialization/types/CervicalMucusEntryQuality.d.ts +2 -2
- package/serialization/types/ClientActivityResponse.d.ts +2 -2
- package/serialization/types/ClientBodyResponse.d.ts +2 -2
- package/serialization/types/ClientFacingActivity.d.ts +2 -2
- package/serialization/types/ClientFacingActivity.js +1 -1
- package/serialization/types/ClientFacingApiKey.d.ts +2 -2
- package/serialization/types/ClientFacingApiKey.js +2 -2
- package/serialization/types/ClientFacingAppointment.d.ts +2 -2
- package/serialization/types/ClientFacingAppointment.js +2 -2
- package/serialization/types/ClientFacingAppointmentCancellationReason.d.ts +2 -2
- package/serialization/types/ClientFacingAppointmentEvent.d.ts +2 -2
- package/serialization/types/ClientFacingAppointmentEvent.js +1 -1
- package/serialization/types/ClientFacingAtHomePhlebotomyOrder.d.ts +2 -2
- package/serialization/types/ClientFacingAtHomePhlebotomyOrder.js +2 -2
- package/serialization/types/ClientFacingAtHomePhlebotomyOrderDetails.d.ts +2 -2
- package/serialization/types/ClientFacingBloodOxygenTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingBloodOxygenTimeseries.js +1 -1
- package/serialization/types/ClientFacingBloodPressureTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingBloodPressureTimeseries.js +1 -1
- package/serialization/types/ClientFacingBody.d.ts +2 -2
- package/serialization/types/ClientFacingBody.js +1 -1
- package/serialization/types/ClientFacingBodyFatTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingBodyFatTimeseries.js +1 -1
- package/serialization/types/ClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
- package/serialization/types/ClientFacingBodyTemperatureDeltaSample.js +3 -3
- package/serialization/types/ClientFacingBodyTemperatureDeltaSampleSensorLocation.d.ts +2 -2
- package/serialization/types/ClientFacingBodyTemperatureSample.d.ts +2 -2
- package/serialization/types/ClientFacingBodyTemperatureSample.js +3 -3
- package/serialization/types/ClientFacingBodyTemperatureSampleSensorLocation.d.ts +2 -2
- package/serialization/types/ClientFacingBodyWeightTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingBodyWeightTimeseries.js +1 -1
- package/serialization/types/ClientFacingCaffeineTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingCaffeineTimeseries.js +3 -3
- package/serialization/types/ClientFacingCaloriesActiveTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingCaloriesActiveTimeseries.js +3 -3
- package/serialization/types/ClientFacingCaloriesBasalTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingCaloriesBasalTimeseries.js +1 -1
- package/serialization/types/ClientFacingCarbohydratesSample.d.ts +2 -2
- package/serialization/types/ClientFacingCarbohydratesSample.js +3 -3
- package/serialization/types/ClientFacingCholesterolTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingCholesterolTimeseries.js +1 -1
- package/serialization/types/ClientFacingDiagnosisInformation.d.ts +2 -2
- package/serialization/types/ClientFacingDistanceTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingDistanceTimeseries.js +3 -3
- package/serialization/types/ClientFacingElectrocardiogramVoltageTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingFloorsClimbedTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingFloorsClimbedTimeseries.js +1 -1
- package/serialization/types/ClientFacingFood.d.ts +2 -2
- package/serialization/types/ClientFacingGlucoseTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingGlucoseTimeseries.js +1 -1
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.d.ts +2 -2
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.d.ts +2 -2
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.d.ts +2 -2
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.d.ts +2 -2
- package/serialization/types/ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.d.ts +2 -2
- package/serialization/types/ClientFacingHeartRate.d.ts +2 -2
- package/serialization/types/ClientFacingHeartRateTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingHeartRateTimeseries.js +1 -1
- package/serialization/types/ClientFacingHrvTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingHrvTimeseries.js +1 -1
- package/serialization/types/ClientFacingHypnogramTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingHypnogramTimeseries.js +3 -3
- package/serialization/types/ClientFacingIgeTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingIgeTimeseries.js +1 -1
- package/serialization/types/ClientFacingIggTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingIggTimeseries.js +1 -1
- package/serialization/types/ClientFacingInsulinInjectionSample.d.ts +2 -2
- package/serialization/types/ClientFacingInsulinInjectionSample.js +3 -3
- package/serialization/types/ClientFacingInsulinInjectionSampleType.d.ts +2 -2
- package/serialization/types/ClientFacingInsurance.d.ts +2 -2
- package/serialization/types/ClientFacingLab.d.ts +2 -2
- package/serialization/types/ClientFacingLabLocation.d.ts +2 -2
- package/serialization/types/ClientFacingLabTest.d.ts +3 -2
- package/serialization/types/ClientFacingLabTest.js +1 -0
- package/serialization/types/ClientFacingLabs.d.ts +2 -2
- package/serialization/types/ClientFacingLoinc.d.ts +2 -2
- package/serialization/types/ClientFacingMarker.d.ts +3 -2
- package/serialization/types/ClientFacingMarker.js +1 -0
- package/serialization/types/ClientFacingMarkerComplete.d.ts +3 -2
- package/serialization/types/ClientFacingMarkerComplete.js +1 -0
- package/serialization/types/ClientFacingMealResponse.d.ts +2 -2
- package/serialization/types/ClientFacingMindfulnessMinutesTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingMindfulnessMinutesTimeseries.js +3 -3
- package/serialization/types/ClientFacingNoteSample.d.ts +2 -2
- package/serialization/types/ClientFacingNoteSample.js +3 -3
- package/serialization/types/ClientFacingNoteSampleTagsItem.d.ts +2 -2
- package/serialization/types/ClientFacingOrder.d.ts +2 -2
- package/serialization/types/ClientFacingOrder.js +2 -2
- package/serialization/types/ClientFacingOrderDetails.d.ts +2 -2
- package/serialization/types/ClientFacingOrderEvent.d.ts +2 -2
- package/serialization/types/ClientFacingOrderEvent.js +1 -1
- package/serialization/types/ClientFacingPatientDetailsCompatible.d.ts +2 -2
- package/serialization/types/ClientFacingPatientDetailsCompatible.js +1 -1
- package/serialization/types/ClientFacingPayorSearchResponse.d.ts +2 -2
- package/serialization/types/ClientFacingPhysician.d.ts +2 -2
- package/serialization/types/ClientFacingProfile.d.ts +2 -2
- package/serialization/types/ClientFacingProvider.d.ts +2 -2
- package/serialization/types/ClientFacingProviderDetailed.d.ts +2 -2
- package/serialization/types/ClientFacingProviderWithStatus.d.ts +2 -2
- package/serialization/types/ClientFacingResource.d.ts +2 -2
- package/serialization/types/ClientFacingRespiratoryRateTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingRespiratoryRateTimeseries.js +1 -1
- package/serialization/types/ClientFacingResult.d.ts +2 -2
- package/serialization/types/ClientFacingSampleGroupingKeys.d.ts +2 -2
- package/serialization/types/ClientFacingShipment.d.ts +2 -2
- package/serialization/types/ClientFacingSleep.d.ts +2 -2
- package/serialization/types/ClientFacingSleep.js +3 -3
- package/serialization/types/ClientFacingSleepStream.d.ts +2 -2
- package/serialization/types/ClientFacingSource.d.ts +2 -2
- package/serialization/types/ClientFacingSport.d.ts +2 -2
- package/serialization/types/ClientFacingStepsTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingStepsTimeseries.js +3 -3
- package/serialization/types/ClientFacingStream.d.ts +2 -2
- package/serialization/types/ClientFacingStreamAltitude.d.ts +2 -2
- package/serialization/types/ClientFacingStreamCadence.d.ts +2 -2
- package/serialization/types/ClientFacingStreamDistance.d.ts +2 -2
- package/serialization/types/ClientFacingStreamHeartrate.d.ts +2 -2
- package/serialization/types/ClientFacingStreamLat.d.ts +2 -2
- package/serialization/types/ClientFacingStreamLng.d.ts +2 -2
- package/serialization/types/ClientFacingStreamPower.d.ts +2 -2
- package/serialization/types/ClientFacingStreamResistance.d.ts +2 -2
- package/serialization/types/ClientFacingStreamTemperature.d.ts +2 -2
- package/serialization/types/ClientFacingStreamVelocitySmooth.d.ts +2 -2
- package/serialization/types/ClientFacingStressLevelTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingStressLevelTimeseries.js +1 -1
- package/serialization/types/ClientFacingTeam.d.ts +2 -2
- package/serialization/types/ClientFacingTestKitOrderDetails.d.ts +2 -2
- package/serialization/types/ClientFacingTestkitOrder.d.ts +2 -2
- package/serialization/types/ClientFacingTestkitOrder.js +2 -2
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureDeltaSample.d.ts +2 -2
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingBodyTemperatureSample.d.ts +2 -2
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingCarbohydratesSample.d.ts +2 -2
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingInsulinInjectionSample.d.ts +2 -2
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingNoteSample.d.ts +2 -2
- package/serialization/types/ClientFacingTimeseriesGroupClientFacingWorkoutDurationSample.d.ts +2 -2
- package/serialization/types/ClientFacingUser.d.ts +2 -2
- package/serialization/types/ClientFacingUser.js +1 -1
- package/serialization/types/ClientFacingUserKey.d.ts +2 -2
- package/serialization/types/ClientFacingVo2MaxTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingVo2MaxTimeseries.js +3 -3
- package/serialization/types/ClientFacingWalkInOrderDetails.d.ts +2 -2
- package/serialization/types/ClientFacingWalkInTestOrder.d.ts +2 -2
- package/serialization/types/ClientFacingWalkInTestOrder.js +2 -2
- package/serialization/types/ClientFacingWaterTimeseries.d.ts +2 -2
- package/serialization/types/ClientFacingWaterTimeseries.js +1 -1
- package/serialization/types/ClientFacingWorkout.d.ts +2 -2
- package/serialization/types/ClientFacingWorkout.js +2 -2
- package/serialization/types/ClientFacingWorkoutDurationSample.d.ts +2 -2
- package/serialization/types/ClientFacingWorkoutDurationSample.js +3 -3
- package/serialization/types/ClientFacingWorkoutDurationSampleIntensity.d.ts +2 -2
- package/serialization/types/ClientSleepResponse.d.ts +2 -2
- package/serialization/types/ClientUserIdConflict.d.ts +2 -2
- package/serialization/types/ClientWorkoutResponse.d.ts +2 -2
- package/serialization/types/CompanyDetails.d.ts +2 -2
- package/serialization/types/ConnectedSourceClientFacing.d.ts +2 -2
- package/serialization/types/ConnectedSourceClientFacing.js +1 -1
- package/serialization/types/ConnectionStatus.d.ts +2 -2
- package/serialization/types/ConnectionStatusState.d.ts +2 -2
- package/serialization/types/Consent.d.ts +2 -2
- package/serialization/types/ConsentType.d.ts +2 -2
- package/serialization/types/ContraceptiveEntry.d.ts +2 -2
- package/serialization/types/ContraceptiveEntryType.d.ts +2 -2
- package/serialization/types/DaySlots.d.ts +2 -2
- package/serialization/types/DelegatedFlowType.d.ts +2 -2
- package/serialization/types/DemoConnectionStatus.d.ts +2 -2
- package/serialization/types/DemoProviders.d.ts +2 -2
- package/serialization/types/DetectedDeviationEntry.d.ts +2 -2
- package/serialization/types/DetectedDeviationEntryDeviation.d.ts +2 -2
- package/serialization/types/DeviceV2InDb.d.ts +2 -2
- package/serialization/types/EmailProviders.d.ts +2 -2
- package/serialization/types/Energy.d.ts +2 -2
- package/serialization/types/EventDestinationPreferences.d.ts +2 -2
- package/serialization/types/EventDestinationPreferencesEnabledItem.d.ts +2 -2
- package/serialization/types/EventDestinationPreferencesPreferred.d.ts +2 -2
- package/serialization/types/FallbackBirthDate.d.ts +2 -2
- package/serialization/types/FallbackBirthDate.js +1 -1
- package/serialization/types/FallbackTimeZone.d.ts +2 -2
- package/serialization/types/FallbackTimeZone.js +1 -1
- package/serialization/types/Fats.d.ts +2 -2
- package/serialization/types/Gender.d.ts +2 -2
- package/serialization/types/GetMarkersResponse.d.ts +2 -2
- package/serialization/types/GetOrdersResponse.d.ts +2 -2
- package/serialization/types/GroupedBloodOxygen.d.ts +2 -2
- package/serialization/types/GroupedBloodOxygenResponse.d.ts +2 -2
- package/serialization/types/GroupedBloodPressure.d.ts +2 -2
- package/serialization/types/GroupedBloodPressureResponse.d.ts +2 -2
- package/serialization/types/GroupedBodyFat.d.ts +2 -2
- package/serialization/types/GroupedBodyFatResponse.d.ts +2 -2
- package/serialization/types/GroupedBodyWeight.d.ts +2 -2
- package/serialization/types/GroupedBodyWeightResponse.d.ts +2 -2
- package/serialization/types/GroupedCaffeine.d.ts +2 -2
- package/serialization/types/GroupedCaffeineResponse.d.ts +2 -2
- package/serialization/types/GroupedCaloriesActive.d.ts +2 -2
- package/serialization/types/GroupedCaloriesActiveResponse.d.ts +2 -2
- package/serialization/types/GroupedCaloriesBasal.d.ts +2 -2
- package/serialization/types/GroupedCaloriesBasalResponse.d.ts +2 -2
- package/serialization/types/GroupedCholesterol.d.ts +2 -2
- package/serialization/types/GroupedCholesterolResponse.d.ts +2 -2
- package/serialization/types/GroupedDistance.d.ts +2 -2
- package/serialization/types/GroupedDistanceResponse.d.ts +2 -2
- package/serialization/types/GroupedElectrocardiogramVoltage.d.ts +2 -2
- package/serialization/types/GroupedElectrocardiogramVoltageResponse.d.ts +2 -2
- package/serialization/types/GroupedFloorsClimbed.d.ts +2 -2
- package/serialization/types/GroupedFloorsClimbedResponse.d.ts +2 -2
- package/serialization/types/GroupedGlucose.d.ts +2 -2
- package/serialization/types/GroupedGlucoseResponse.d.ts +2 -2
- package/serialization/types/GroupedHeartRate.d.ts +2 -2
- package/serialization/types/GroupedHeartRateResponse.d.ts +2 -2
- package/serialization/types/GroupedHrv.d.ts +2 -2
- package/serialization/types/GroupedHrvResponse.d.ts +2 -2
- package/serialization/types/GroupedHypnogram.d.ts +2 -2
- package/serialization/types/GroupedHypnogramResponse.d.ts +2 -2
- package/serialization/types/GroupedIge.d.ts +2 -2
- package/serialization/types/GroupedIgeResponse.d.ts +2 -2
- package/serialization/types/GroupedIgg.d.ts +2 -2
- package/serialization/types/GroupedIggResponse.d.ts +2 -2
- package/serialization/types/GroupedMindfulnessMinutes.d.ts +2 -2
- package/serialization/types/GroupedMindfulnessMinutesResponse.d.ts +2 -2
- package/serialization/types/GroupedRespiratoryRate.d.ts +2 -2
- package/serialization/types/GroupedRespiratoryRateResponse.d.ts +2 -2
- package/serialization/types/GroupedSteps.d.ts +2 -2
- package/serialization/types/GroupedStepsResponse.d.ts +2 -2
- package/serialization/types/GroupedStressLevel.d.ts +2 -2
- package/serialization/types/GroupedStressLevelResponse.d.ts +2 -2
- package/serialization/types/GroupedVo2Max.d.ts +2 -2
- package/serialization/types/GroupedVo2MaxResponse.d.ts +2 -2
- package/serialization/types/GroupedWater.d.ts +2 -2
- package/serialization/types/GroupedWaterResponse.d.ts +2 -2
- package/serialization/types/HealthInsuranceCreateRequest.d.ts +2 -2
- package/serialization/types/HealthInsuranceCreateRequestBackImage.d.ts +2 -2
- package/serialization/types/HealthInsuranceCreateRequestFrontImage.d.ts +2 -2
- package/serialization/types/HealthInsuranceCreateRequestPatientSignatureImage.d.ts +2 -2
- package/serialization/types/HistoricalPullStatus.d.ts +2 -2
- package/serialization/types/HistoricalPullTimeline.d.ts +2 -2
- package/serialization/types/HistoricalPullTimeline.js +3 -3
- package/serialization/types/HomePregnancyTestEntry.d.ts +2 -2
- package/serialization/types/HomePregnancyTestEntryTestResult.d.ts +2 -2
- package/serialization/types/HomeProgesteroneTestEntry.d.ts +2 -2
- package/serialization/types/HomeProgesteroneTestEntryTestResult.d.ts +2 -2
- package/serialization/types/HttpValidationError.d.ts +2 -2
- package/serialization/types/IntermenstrualBleedingEntry.d.ts +2 -2
- package/serialization/types/Jpeg.d.ts +2 -2
- package/serialization/types/LabLocationMetadata.d.ts +2 -2
- package/serialization/types/LabResultsMetadata.d.ts +2 -2
- package/serialization/types/LabResultsRaw.d.ts +2 -2
- package/serialization/types/LabResultsRawResults.d.ts +2 -2
- package/serialization/types/LabTestCollectionMethod.d.ts +2 -2
- package/serialization/types/LabTestSampleType.d.ts +2 -2
- package/serialization/types/LabTestStatus.d.ts +2 -2
- package/serialization/types/Labs.d.ts +2 -2
- package/serialization/types/LastAttempt.d.ts +2 -2
- package/serialization/types/LastAttempt.js +1 -1
- package/serialization/types/LibreConfig.d.ts +2 -2
- package/serialization/types/LinkTokenExchangeResponse.d.ts +2 -2
- package/serialization/types/LngLat.d.ts +2 -2
- package/serialization/types/Macros.d.ts +3 -2
- package/serialization/types/Macros.js +1 -0
- package/serialization/types/ManualProviders.d.ts +2 -2
- package/serialization/types/MarkerType.d.ts +2 -2
- package/serialization/types/MealInDbBaseClientFacingSource.d.ts +3 -2
- package/serialization/types/MealInDbBaseClientFacingSource.js +4 -3
- package/serialization/types/MenstrualCycle.d.ts +2 -2
- package/serialization/types/MenstrualCycleResponse.d.ts +2 -2
- package/serialization/types/MenstrualFlowEntry.d.ts +2 -2
- package/serialization/types/MenstrualFlowEntryFlow.d.ts +2 -2
- package/serialization/types/MetricsResult.d.ts +2 -2
- package/serialization/types/Micros.d.ts +2 -2
- package/serialization/types/Minerals.d.ts +10 -0
- package/serialization/types/Minerals.js +70 -0
- package/serialization/types/OAuthProviders.d.ts +2 -2
- package/serialization/types/OrderSetRequest.d.ts +14 -0
- package/serialization/types/OrderSetRequest.js +35 -0
- package/serialization/types/OrderStatus.d.ts +2 -2
- package/serialization/types/OrderTopLevelStatus.d.ts +2 -2
- package/serialization/types/OvulationTestEntry.d.ts +2 -2
- package/serialization/types/OvulationTestEntryTestResult.d.ts +2 -2
- package/serialization/types/PaginatedUsersResponse.d.ts +2 -2
- package/serialization/types/PasswordProviders.d.ts +2 -2
- package/serialization/types/PatientAddressCompatible.d.ts +2 -2
- package/serialization/types/PatientDetails.d.ts +2 -2
- package/serialization/types/Period.d.ts +14 -0
- package/serialization/types/Period.js +35 -0
- package/serialization/types/PeriodUnit.d.ts +10 -0
- package/serialization/types/PeriodUnit.js +31 -0
- package/serialization/types/PersonDetailsOutput.d.ts +2 -2
- package/serialization/types/PhlebotomyAreaInfo.d.ts +2 -2
- package/serialization/types/PhlebotomyProviderInfo.d.ts +2 -2
- package/serialization/types/PhysicianCreateRequest.d.ts +2 -2
- package/serialization/types/PhysicianCreateRequestBase.d.ts +2 -2
- package/serialization/types/PhysicianCreateRequestSignatureImage.d.ts +2 -2
- package/serialization/types/Placeholder.d.ts +12 -0
- package/serialization/types/Placeholder.js +33 -0
- package/serialization/types/Png.d.ts +2 -2
- package/serialization/types/PostOrderResponse.d.ts +2 -2
- package/serialization/types/ProfileInDb.d.ts +2 -2
- package/serialization/types/ProviderLinkResponse.d.ts +2 -2
- package/serialization/types/ProviderLinkResponseState.d.ts +2 -2
- package/serialization/types/ProviderMfaRequest.d.ts +2 -2
- package/serialization/types/ProviderMfaRequestMethod.d.ts +2 -2
- package/serialization/types/Providers.d.ts +3 -3
- package/serialization/types/Providers.js +1 -0
- package/serialization/types/PscAreaInfo.d.ts +2 -2
- package/serialization/types/PscAreaInfoDetails.d.ts +2 -2
- package/serialization/types/PscInfo.d.ts +2 -2
- package/serialization/types/QueryConfig.d.ts +15 -0
- package/serialization/types/QueryConfig.js +36 -0
- package/serialization/types/QueryConfigProviderPriorityOverridesItem.d.ts +12 -0
- package/serialization/types/QueryConfigProviderPriorityOverridesItem.js +33 -0
- package/serialization/types/QueryConfigWeekStartsOn.d.ts +10 -0
- package/serialization/types/QueryConfigWeekStartsOn.js +31 -0
- package/serialization/types/QueryInstruction.d.ts +20 -0
- package/serialization/types/QueryInstruction.js +41 -0
- package/serialization/types/QueryInstructionPartitionBy.d.ts +12 -0
- package/serialization/types/QueryInstructionPartitionBy.js +33 -0
- package/serialization/types/QueryInstructionSelect.d.ts +12 -0
- package/serialization/types/QueryInstructionSelect.js +33 -0
- package/serialization/types/Question.d.ts +2 -2
- package/serialization/types/QuestionType.d.ts +2 -2
- package/serialization/types/RawActivity.d.ts +2 -2
- package/serialization/types/RawBody.d.ts +2 -2
- package/serialization/types/RawDevices.d.ts +2 -2
- package/serialization/types/RawProfile.d.ts +2 -2
- package/serialization/types/RawSleep.d.ts +2 -2
- package/serialization/types/RawWorkout.d.ts +2 -2
- package/serialization/types/Reducer.d.ts +13 -0
- package/serialization/types/Reducer.js +34 -0
- package/serialization/types/ReducerFunction.d.ts +10 -0
- package/serialization/types/ReducerFunction.js +31 -0
- package/serialization/types/Region.d.ts +2 -2
- package/serialization/types/RelativeTimeframe.d.ts +15 -0
- package/serialization/types/RelativeTimeframe.js +36 -0
- package/serialization/types/ResourceAvailability.d.ts +2 -2
- package/serialization/types/ResponsibleRelationship.d.ts +2 -2
- package/serialization/types/ResultType.d.ts +2 -2
- package/serialization/types/ScopeRequirementsGrants.d.ts +2 -2
- package/serialization/types/ScopeRequirementsStr.d.ts +2 -2
- package/serialization/types/SexualActivityEntry.d.ts +2 -2
- package/serialization/types/ShippingAddress.d.ts +2 -2
- package/serialization/types/SingleHistoricalPullStatistics.d.ts +2 -2
- package/serialization/types/SingleHistoricalPullStatistics.js +2 -2
- package/serialization/types/SingleProviderHistoricalPullResponse.d.ts +2 -2
- package/serialization/types/SingleResourceStatistics.d.ts +2 -2
- package/serialization/types/SingleResourceStatistics.js +2 -2
- package/serialization/types/SingleUserHistoricalPullResponse.d.ts +2 -2
- package/serialization/types/SingleUserResourceResponse.d.ts +2 -2
- package/serialization/types/SleepSelector.d.ts +13 -0
- package/serialization/types/SleepSelector.js +34 -0
- package/serialization/types/SleepSelectorSleep.d.ts +10 -0
- package/serialization/types/SleepSelectorSleep.js +56 -0
- package/serialization/types/SleepSummaryState.d.ts +2 -2
- package/serialization/types/SleepV2InDb.d.ts +2 -2
- package/serialization/types/Source.d.ts +2 -2
- package/serialization/types/SourceAuthType.d.ts +2 -2
- package/serialization/types/SourceLink.d.ts +2 -2
- package/serialization/types/SourceType.d.ts +2 -2
- package/serialization/types/Swizzling.d.ts +16 -0
- package/serialization/types/Swizzling.js +37 -0
- package/serialization/types/SwizzlingBinGranularity.d.ts +10 -0
- package/serialization/types/SwizzlingBinGranularity.js +31 -0
- package/serialization/types/TeamConfig.d.ts +2 -2
- package/serialization/types/TimeSlot.d.ts +2 -2
- package/serialization/types/TimeSlot.js +3 -3
- package/serialization/types/TimeseriesMetricPoint.d.ts +2 -2
- package/serialization/types/TimeseriesMetricPoint.js +1 -1
- package/serialization/types/TimeseriesResource.d.ts +2 -2
- package/serialization/types/TraceElements.d.ts +10 -0
- package/serialization/types/TraceElements.js +31 -0
- package/serialization/types/UsAddress.d.ts +2 -2
- package/serialization/types/UserHistoricalPullsResponse.d.ts +2 -2
- package/serialization/types/UserInfo.d.ts +2 -2
- package/serialization/types/UserRefreshErrorResponse.d.ts +2 -2
- package/serialization/types/UserRefreshSuccessResponse.d.ts +2 -2
- package/serialization/types/UserResourcesResponse.d.ts +2 -2
- package/serialization/types/UserSignInTokenResponse.d.ts +2 -2
- package/serialization/types/UserSuccessResponse.d.ts +2 -2
- package/serialization/types/ValidationError.d.ts +2 -2
- package/serialization/types/ValidationErrorLocItem.d.ts +2 -2
- package/serialization/types/VitalCoreSchemasDbSchemasLabTestHealthInsurancePersonDetails.d.ts +2 -2
- package/serialization/types/VitalCoreSchemasDbSchemasLabTestInsurancePersonDetails.d.ts +2 -2
- package/serialization/types/VitalTokenCreatedResponse.d.ts +2 -2
- package/serialization/types/Vitamins.d.ts +10 -0
- package/serialization/types/Vitamins.js +45 -0
- package/serialization/types/WorkoutV2InDb.d.ts +2 -2
- package/serialization/types/index.d.ts +23 -0
- package/serialization/types/index.js +23 -0
- package/version.d.ts +1 -0
- package/version.js +4 -0
- package/tests/client.test.ts +0 -11
@@ -41,19 +41,23 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.Vitals = void 0;
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
43
43
|
const core = __importStar(require("../../../../core"));
|
44
|
-
const Vital = __importStar(require("
|
44
|
+
const Vital = __importStar(require("../../../index"));
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
46
|
-
const serializers = __importStar(require("../../../../serialization"));
|
47
|
-
const errors = __importStar(require("../../../../errors"));
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
48
48
|
class Vitals {
|
49
|
-
constructor(_options) {
|
49
|
+
constructor(_options = {}) {
|
50
50
|
this._options = _options;
|
51
51
|
}
|
52
52
|
/**
|
53
|
+
* @param {string} userId
|
54
|
+
* @param {Vital.VitalsWorkoutDurationGroupedRequest} request
|
55
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
56
|
+
*
|
53
57
|
* @throws {@link Vital.UnprocessableEntityError}
|
54
58
|
*
|
55
59
|
* @example
|
56
|
-
* await
|
60
|
+
* await client.vitals.workoutDurationGrouped("user_id", {
|
57
61
|
* startDate: "start_date"
|
58
62
|
* })
|
59
63
|
*/
|
@@ -76,16 +80,18 @@ class Vitals {
|
|
76
80
|
_queryParams["end_date"] = endDate;
|
77
81
|
}
|
78
82
|
const _response = yield core.fetcher({
|
79
|
-
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}/workout_duration/grouped`),
|
83
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/workout_duration/grouped`),
|
80
84
|
method: "GET",
|
81
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
85
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
82
86
|
contentType: "application/json",
|
83
87
|
queryParameters: _queryParams,
|
88
|
+
requestType: "json",
|
84
89
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
85
90
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
91
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
86
92
|
});
|
87
93
|
if (_response.ok) {
|
88
|
-
return
|
94
|
+
return serializers.ClientFacingGroupedTimeseriesResponseClientFacingWorkoutDurationSample.parseOrThrow(_response.body, {
|
89
95
|
unrecognizedObjectKeys: "passthrough",
|
90
96
|
allowUnrecognizedUnionMembers: true,
|
91
97
|
allowUnrecognizedEnumValues: true,
|
@@ -95,7 +101,7 @@ class Vitals {
|
|
95
101
|
if (_response.error.reason === "status-code") {
|
96
102
|
switch (_response.error.statusCode) {
|
97
103
|
case 422:
|
98
|
-
throw new Vital.UnprocessableEntityError(
|
104
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
99
105
|
unrecognizedObjectKeys: "passthrough",
|
100
106
|
allowUnrecognizedUnionMembers: true,
|
101
107
|
allowUnrecognizedEnumValues: true,
|
@@ -124,10 +130,14 @@ class Vitals {
|
|
124
130
|
});
|
125
131
|
}
|
126
132
|
/**
|
133
|
+
* @param {string} userId
|
134
|
+
* @param {Vital.VitalsVo2MaxGroupedRequest} request
|
135
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
136
|
+
*
|
127
137
|
* @throws {@link Vital.UnprocessableEntityError}
|
128
138
|
*
|
129
139
|
* @example
|
130
|
-
* await
|
140
|
+
* await client.vitals.vo2MaxGrouped("user_id", {
|
131
141
|
* startDate: "start_date"
|
132
142
|
* })
|
133
143
|
*/
|
@@ -150,16 +160,18 @@ class Vitals {
|
|
150
160
|
_queryParams["end_date"] = endDate;
|
151
161
|
}
|
152
162
|
const _response = yield core.fetcher({
|
153
|
-
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}/vo2_max/grouped`),
|
163
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/vo2_max/grouped`),
|
154
164
|
method: "GET",
|
155
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
165
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
156
166
|
contentType: "application/json",
|
157
167
|
queryParameters: _queryParams,
|
168
|
+
requestType: "json",
|
158
169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
159
170
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
171
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
160
172
|
});
|
161
173
|
if (_response.ok) {
|
162
|
-
return
|
174
|
+
return serializers.GroupedVo2MaxResponse.parseOrThrow(_response.body, {
|
163
175
|
unrecognizedObjectKeys: "passthrough",
|
164
176
|
allowUnrecognizedUnionMembers: true,
|
165
177
|
allowUnrecognizedEnumValues: true,
|
@@ -169,7 +181,7 @@ class Vitals {
|
|
169
181
|
if (_response.error.reason === "status-code") {
|
170
182
|
switch (_response.error.statusCode) {
|
171
183
|
case 422:
|
172
|
-
throw new Vital.UnprocessableEntityError(
|
184
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
173
185
|
unrecognizedObjectKeys: "passthrough",
|
174
186
|
allowUnrecognizedUnionMembers: true,
|
175
187
|
allowUnrecognizedEnumValues: true,
|
@@ -198,10 +210,14 @@ class Vitals {
|
|
198
210
|
});
|
199
211
|
}
|
200
212
|
/**
|
213
|
+
* @param {string} userId
|
214
|
+
* @param {Vital.VitalsStressLevelGroupedRequest} request
|
215
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
216
|
+
*
|
201
217
|
* @throws {@link Vital.UnprocessableEntityError}
|
202
218
|
*
|
203
219
|
* @example
|
204
|
-
* await
|
220
|
+
* await client.vitals.stressLevelGrouped("user_id", {
|
205
221
|
* startDate: "start_date"
|
206
222
|
* })
|
207
223
|
*/
|
@@ -224,16 +240,18 @@ class Vitals {
|
|
224
240
|
_queryParams["end_date"] = endDate;
|
225
241
|
}
|
226
242
|
const _response = yield core.fetcher({
|
227
|
-
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}/stress_level/grouped`),
|
243
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/stress_level/grouped`),
|
228
244
|
method: "GET",
|
229
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
245
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
230
246
|
contentType: "application/json",
|
231
247
|
queryParameters: _queryParams,
|
248
|
+
requestType: "json",
|
232
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
233
250
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
251
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
234
252
|
});
|
235
253
|
if (_response.ok) {
|
236
|
-
return
|
254
|
+
return serializers.GroupedStressLevelResponse.parseOrThrow(_response.body, {
|
237
255
|
unrecognizedObjectKeys: "passthrough",
|
238
256
|
allowUnrecognizedUnionMembers: true,
|
239
257
|
allowUnrecognizedEnumValues: true,
|
@@ -243,7 +261,7 @@ class Vitals {
|
|
243
261
|
if (_response.error.reason === "status-code") {
|
244
262
|
switch (_response.error.statusCode) {
|
245
263
|
case 422:
|
246
|
-
throw new Vital.UnprocessableEntityError(
|
264
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
247
265
|
unrecognizedObjectKeys: "passthrough",
|
248
266
|
allowUnrecognizedUnionMembers: true,
|
249
267
|
allowUnrecognizedEnumValues: true,
|
@@ -272,10 +290,14 @@ class Vitals {
|
|
272
290
|
});
|
273
291
|
}
|
274
292
|
/**
|
293
|
+
* @param {string} userId
|
294
|
+
* @param {Vital.VitalsMindfulnessMinutesGroupedRequest} request
|
295
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
296
|
+
*
|
275
297
|
* @throws {@link Vital.UnprocessableEntityError}
|
276
298
|
*
|
277
299
|
* @example
|
278
|
-
* await
|
300
|
+
* await client.vitals.mindfulnessMinutesGrouped("user_id", {
|
279
301
|
* startDate: "start_date"
|
280
302
|
* })
|
281
303
|
*/
|
@@ -298,16 +320,18 @@ class Vitals {
|
|
298
320
|
_queryParams["end_date"] = endDate;
|
299
321
|
}
|
300
322
|
const _response = yield core.fetcher({
|
301
|
-
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/grouped`),
|
323
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/mindfulness_minutes/grouped`),
|
302
324
|
method: "GET",
|
303
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
325
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
304
326
|
contentType: "application/json",
|
305
327
|
queryParameters: _queryParams,
|
328
|
+
requestType: "json",
|
306
329
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
307
330
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
331
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
308
332
|
});
|
309
333
|
if (_response.ok) {
|
310
|
-
return
|
334
|
+
return serializers.GroupedMindfulnessMinutesResponse.parseOrThrow(_response.body, {
|
311
335
|
unrecognizedObjectKeys: "passthrough",
|
312
336
|
allowUnrecognizedUnionMembers: true,
|
313
337
|
allowUnrecognizedEnumValues: true,
|
@@ -317,7 +341,7 @@ class Vitals {
|
|
317
341
|
if (_response.error.reason === "status-code") {
|
318
342
|
switch (_response.error.statusCode) {
|
319
343
|
case 422:
|
320
|
-
throw new Vital.UnprocessableEntityError(
|
344
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
321
345
|
unrecognizedObjectKeys: "passthrough",
|
322
346
|
allowUnrecognizedUnionMembers: true,
|
323
347
|
allowUnrecognizedEnumValues: true,
|
@@ -346,10 +370,14 @@ class Vitals {
|
|
346
370
|
});
|
347
371
|
}
|
348
372
|
/**
|
373
|
+
* @param {string} userId
|
374
|
+
* @param {Vital.VitalsCaffeineGroupedRequest} request
|
375
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
376
|
+
*
|
349
377
|
* @throws {@link Vital.UnprocessableEntityError}
|
350
378
|
*
|
351
379
|
* @example
|
352
|
-
* await
|
380
|
+
* await client.vitals.caffeineGrouped("user_id", {
|
353
381
|
* startDate: "start_date"
|
354
382
|
* })
|
355
383
|
*/
|
@@ -372,16 +400,18 @@ class Vitals {
|
|
372
400
|
_queryParams["end_date"] = endDate;
|
373
401
|
}
|
374
402
|
const _response = yield core.fetcher({
|
375
|
-
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/grouped`),
|
403
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/caffeine/grouped`),
|
376
404
|
method: "GET",
|
377
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
405
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
378
406
|
contentType: "application/json",
|
379
407
|
queryParameters: _queryParams,
|
408
|
+
requestType: "json",
|
380
409
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
381
410
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
411
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
382
412
|
});
|
383
413
|
if (_response.ok) {
|
384
|
-
return
|
414
|
+
return serializers.GroupedCaffeineResponse.parseOrThrow(_response.body, {
|
385
415
|
unrecognizedObjectKeys: "passthrough",
|
386
416
|
allowUnrecognizedUnionMembers: true,
|
387
417
|
allowUnrecognizedEnumValues: true,
|
@@ -391,7 +421,7 @@ class Vitals {
|
|
391
421
|
if (_response.error.reason === "status-code") {
|
392
422
|
switch (_response.error.statusCode) {
|
393
423
|
case 422:
|
394
|
-
throw new Vital.UnprocessableEntityError(
|
424
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
395
425
|
unrecognizedObjectKeys: "passthrough",
|
396
426
|
allowUnrecognizedUnionMembers: true,
|
397
427
|
allowUnrecognizedEnumValues: true,
|
@@ -420,10 +450,14 @@ class Vitals {
|
|
420
450
|
});
|
421
451
|
}
|
422
452
|
/**
|
453
|
+
* @param {string} userId
|
454
|
+
* @param {Vital.VitalsWaterGroupedRequest} request
|
455
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
456
|
+
*
|
423
457
|
* @throws {@link Vital.UnprocessableEntityError}
|
424
458
|
*
|
425
459
|
* @example
|
426
|
-
* await
|
460
|
+
* await client.vitals.waterGrouped("user_id", {
|
427
461
|
* startDate: "start_date"
|
428
462
|
* })
|
429
463
|
*/
|
@@ -446,16 +480,18 @@ class Vitals {
|
|
446
480
|
_queryParams["end_date"] = endDate;
|
447
481
|
}
|
448
482
|
const _response = yield core.fetcher({
|
449
|
-
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/grouped`),
|
483
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/water/grouped`),
|
450
484
|
method: "GET",
|
451
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
485
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
452
486
|
contentType: "application/json",
|
453
487
|
queryParameters: _queryParams,
|
488
|
+
requestType: "json",
|
454
489
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
455
490
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
491
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
456
492
|
});
|
457
493
|
if (_response.ok) {
|
458
|
-
return
|
494
|
+
return serializers.GroupedWaterResponse.parseOrThrow(_response.body, {
|
459
495
|
unrecognizedObjectKeys: "passthrough",
|
460
496
|
allowUnrecognizedUnionMembers: true,
|
461
497
|
allowUnrecognizedEnumValues: true,
|
@@ -465,7 +501,7 @@ class Vitals {
|
|
465
501
|
if (_response.error.reason === "status-code") {
|
466
502
|
switch (_response.error.statusCode) {
|
467
503
|
case 422:
|
468
|
-
throw new Vital.UnprocessableEntityError(
|
504
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
469
505
|
unrecognizedObjectKeys: "passthrough",
|
470
506
|
allowUnrecognizedUnionMembers: true,
|
471
507
|
allowUnrecognizedEnumValues: true,
|
@@ -494,10 +530,14 @@ class Vitals {
|
|
494
530
|
});
|
495
531
|
}
|
496
532
|
/**
|
533
|
+
* @param {string} userId
|
534
|
+
* @param {Vital.VitalsStepsGroupedRequest} request
|
535
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
536
|
+
*
|
497
537
|
* @throws {@link Vital.UnprocessableEntityError}
|
498
538
|
*
|
499
539
|
* @example
|
500
|
-
* await
|
540
|
+
* await client.vitals.stepsGrouped("user_id", {
|
501
541
|
* startDate: "start_date"
|
502
542
|
* })
|
503
543
|
*/
|
@@ -520,16 +560,18 @@ class Vitals {
|
|
520
560
|
_queryParams["end_date"] = endDate;
|
521
561
|
}
|
522
562
|
const _response = yield core.fetcher({
|
523
|
-
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/grouped`),
|
563
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/steps/grouped`),
|
524
564
|
method: "GET",
|
525
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
565
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
526
566
|
contentType: "application/json",
|
527
567
|
queryParameters: _queryParams,
|
568
|
+
requestType: "json",
|
528
569
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
529
570
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
571
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
530
572
|
});
|
531
573
|
if (_response.ok) {
|
532
|
-
return
|
574
|
+
return serializers.GroupedStepsResponse.parseOrThrow(_response.body, {
|
533
575
|
unrecognizedObjectKeys: "passthrough",
|
534
576
|
allowUnrecognizedUnionMembers: true,
|
535
577
|
allowUnrecognizedEnumValues: true,
|
@@ -539,7 +581,7 @@ class Vitals {
|
|
539
581
|
if (_response.error.reason === "status-code") {
|
540
582
|
switch (_response.error.statusCode) {
|
541
583
|
case 422:
|
542
|
-
throw new Vital.UnprocessableEntityError(
|
584
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
543
585
|
unrecognizedObjectKeys: "passthrough",
|
544
586
|
allowUnrecognizedUnionMembers: true,
|
545
587
|
allowUnrecognizedEnumValues: true,
|
@@ -568,10 +610,14 @@ class Vitals {
|
|
568
610
|
});
|
569
611
|
}
|
570
612
|
/**
|
613
|
+
* @param {string} userId
|
614
|
+
* @param {Vital.VitalsFloorsClimbedGroupedRequest} request
|
615
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
616
|
+
*
|
571
617
|
* @throws {@link Vital.UnprocessableEntityError}
|
572
618
|
*
|
573
619
|
* @example
|
574
|
-
* await
|
620
|
+
* await client.vitals.floorsClimbedGrouped("user_id", {
|
575
621
|
* startDate: "start_date"
|
576
622
|
* })
|
577
623
|
*/
|
@@ -594,16 +640,18 @@ class Vitals {
|
|
594
640
|
_queryParams["end_date"] = endDate;
|
595
641
|
}
|
596
642
|
const _response = yield core.fetcher({
|
597
|
-
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/grouped`),
|
643
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/floors_climbed/grouped`),
|
598
644
|
method: "GET",
|
599
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
645
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
600
646
|
contentType: "application/json",
|
601
647
|
queryParameters: _queryParams,
|
648
|
+
requestType: "json",
|
602
649
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
603
650
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
651
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
604
652
|
});
|
605
653
|
if (_response.ok) {
|
606
|
-
return
|
654
|
+
return serializers.GroupedFloorsClimbedResponse.parseOrThrow(_response.body, {
|
607
655
|
unrecognizedObjectKeys: "passthrough",
|
608
656
|
allowUnrecognizedUnionMembers: true,
|
609
657
|
allowUnrecognizedEnumValues: true,
|
@@ -613,7 +661,7 @@ class Vitals {
|
|
613
661
|
if (_response.error.reason === "status-code") {
|
614
662
|
switch (_response.error.statusCode) {
|
615
663
|
case 422:
|
616
|
-
throw new Vital.UnprocessableEntityError(
|
664
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
617
665
|
unrecognizedObjectKeys: "passthrough",
|
618
666
|
allowUnrecognizedUnionMembers: true,
|
619
667
|
allowUnrecognizedEnumValues: true,
|
@@ -642,10 +690,14 @@ class Vitals {
|
|
642
690
|
});
|
643
691
|
}
|
644
692
|
/**
|
693
|
+
* @param {string} userId
|
694
|
+
* @param {Vital.VitalsDistanceGroupedRequest} request
|
695
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
696
|
+
*
|
645
697
|
* @throws {@link Vital.UnprocessableEntityError}
|
646
698
|
*
|
647
699
|
* @example
|
648
|
-
* await
|
700
|
+
* await client.vitals.distanceGrouped("user_id", {
|
649
701
|
* startDate: "start_date"
|
650
702
|
* })
|
651
703
|
*/
|
@@ -668,16 +720,18 @@ class Vitals {
|
|
668
720
|
_queryParams["end_date"] = endDate;
|
669
721
|
}
|
670
722
|
const _response = yield core.fetcher({
|
671
|
-
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/grouped`),
|
723
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/distance/grouped`),
|
672
724
|
method: "GET",
|
673
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
725
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
674
726
|
contentType: "application/json",
|
675
727
|
queryParameters: _queryParams,
|
728
|
+
requestType: "json",
|
676
729
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
677
730
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
731
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
678
732
|
});
|
679
733
|
if (_response.ok) {
|
680
|
-
return
|
734
|
+
return serializers.GroupedDistanceResponse.parseOrThrow(_response.body, {
|
681
735
|
unrecognizedObjectKeys: "passthrough",
|
682
736
|
allowUnrecognizedUnionMembers: true,
|
683
737
|
allowUnrecognizedEnumValues: true,
|
@@ -687,7 +741,7 @@ class Vitals {
|
|
687
741
|
if (_response.error.reason === "status-code") {
|
688
742
|
switch (_response.error.statusCode) {
|
689
743
|
case 422:
|
690
|
-
throw new Vital.UnprocessableEntityError(
|
744
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
691
745
|
unrecognizedObjectKeys: "passthrough",
|
692
746
|
allowUnrecognizedUnionMembers: true,
|
693
747
|
allowUnrecognizedEnumValues: true,
|
@@ -716,10 +770,14 @@ class Vitals {
|
|
716
770
|
});
|
717
771
|
}
|
718
772
|
/**
|
773
|
+
* @param {string} userId
|
774
|
+
* @param {Vital.VitalsCaloriesBasalGroupedRequest} request
|
775
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
776
|
+
*
|
719
777
|
* @throws {@link Vital.UnprocessableEntityError}
|
720
778
|
*
|
721
779
|
* @example
|
722
|
-
* await
|
780
|
+
* await client.vitals.caloriesBasalGrouped("user_id", {
|
723
781
|
* startDate: "start_date"
|
724
782
|
* })
|
725
783
|
*/
|
@@ -742,16 +800,18 @@ class Vitals {
|
|
742
800
|
_queryParams["end_date"] = endDate;
|
743
801
|
}
|
744
802
|
const _response = yield core.fetcher({
|
745
|
-
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/grouped`),
|
803
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/calories_basal/grouped`),
|
746
804
|
method: "GET",
|
747
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
805
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
748
806
|
contentType: "application/json",
|
749
807
|
queryParameters: _queryParams,
|
808
|
+
requestType: "json",
|
750
809
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
751
810
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
811
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
752
812
|
});
|
753
813
|
if (_response.ok) {
|
754
|
-
return
|
814
|
+
return serializers.GroupedCaloriesBasalResponse.parseOrThrow(_response.body, {
|
755
815
|
unrecognizedObjectKeys: "passthrough",
|
756
816
|
allowUnrecognizedUnionMembers: true,
|
757
817
|
allowUnrecognizedEnumValues: true,
|
@@ -761,7 +821,7 @@ class Vitals {
|
|
761
821
|
if (_response.error.reason === "status-code") {
|
762
822
|
switch (_response.error.statusCode) {
|
763
823
|
case 422:
|
764
|
-
throw new Vital.UnprocessableEntityError(
|
824
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
765
825
|
unrecognizedObjectKeys: "passthrough",
|
766
826
|
allowUnrecognizedUnionMembers: true,
|
767
827
|
allowUnrecognizedEnumValues: true,
|
@@ -790,10 +850,14 @@ class Vitals {
|
|
790
850
|
});
|
791
851
|
}
|
792
852
|
/**
|
853
|
+
* @param {string} userId
|
854
|
+
* @param {Vital.VitalsCaloriesActiveGroupedRequest} request
|
855
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
856
|
+
*
|
793
857
|
* @throws {@link Vital.UnprocessableEntityError}
|
794
858
|
*
|
795
859
|
* @example
|
796
|
-
* await
|
860
|
+
* await client.vitals.caloriesActiveGrouped("user_id", {
|
797
861
|
* startDate: "start_date"
|
798
862
|
* })
|
799
863
|
*/
|
@@ -816,16 +880,18 @@ class Vitals {
|
|
816
880
|
_queryParams["end_date"] = endDate;
|
817
881
|
}
|
818
882
|
const _response = yield core.fetcher({
|
819
|
-
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/grouped`),
|
883
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/calories_active/grouped`),
|
820
884
|
method: "GET",
|
821
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
885
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
822
886
|
contentType: "application/json",
|
823
887
|
queryParameters: _queryParams,
|
888
|
+
requestType: "json",
|
824
889
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
825
890
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
891
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
826
892
|
});
|
827
893
|
if (_response.ok) {
|
828
|
-
return
|
894
|
+
return serializers.GroupedCaloriesActiveResponse.parseOrThrow(_response.body, {
|
829
895
|
unrecognizedObjectKeys: "passthrough",
|
830
896
|
allowUnrecognizedUnionMembers: true,
|
831
897
|
allowUnrecognizedEnumValues: true,
|
@@ -835,7 +901,7 @@ class Vitals {
|
|
835
901
|
if (_response.error.reason === "status-code") {
|
836
902
|
switch (_response.error.statusCode) {
|
837
903
|
case 422:
|
838
|
-
throw new Vital.UnprocessableEntityError(
|
904
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
839
905
|
unrecognizedObjectKeys: "passthrough",
|
840
906
|
allowUnrecognizedUnionMembers: true,
|
841
907
|
allowUnrecognizedEnumValues: true,
|
@@ -864,10 +930,14 @@ class Vitals {
|
|
864
930
|
});
|
865
931
|
}
|
866
932
|
/**
|
933
|
+
* @param {string} userId
|
934
|
+
* @param {Vital.VitalsRespiratoryRateGroupedRequest} request
|
935
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
936
|
+
*
|
867
937
|
* @throws {@link Vital.UnprocessableEntityError}
|
868
938
|
*
|
869
939
|
* @example
|
870
|
-
* await
|
940
|
+
* await client.vitals.respiratoryRateGrouped("user_id", {
|
871
941
|
* startDate: "start_date"
|
872
942
|
* })
|
873
943
|
*/
|
@@ -890,16 +960,18 @@ class Vitals {
|
|
890
960
|
_queryParams["end_date"] = endDate;
|
891
961
|
}
|
892
962
|
const _response = yield core.fetcher({
|
893
|
-
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/grouped`),
|
963
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/respiratory_rate/grouped`),
|
894
964
|
method: "GET",
|
895
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
965
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
896
966
|
contentType: "application/json",
|
897
967
|
queryParameters: _queryParams,
|
968
|
+
requestType: "json",
|
898
969
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
899
970
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
971
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
900
972
|
});
|
901
973
|
if (_response.ok) {
|
902
|
-
return
|
974
|
+
return serializers.GroupedRespiratoryRateResponse.parseOrThrow(_response.body, {
|
903
975
|
unrecognizedObjectKeys: "passthrough",
|
904
976
|
allowUnrecognizedUnionMembers: true,
|
905
977
|
allowUnrecognizedEnumValues: true,
|
@@ -909,7 +981,7 @@ class Vitals {
|
|
909
981
|
if (_response.error.reason === "status-code") {
|
910
982
|
switch (_response.error.statusCode) {
|
911
983
|
case 422:
|
912
|
-
throw new Vital.UnprocessableEntityError(
|
984
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
913
985
|
unrecognizedObjectKeys: "passthrough",
|
914
986
|
allowUnrecognizedUnionMembers: true,
|
915
987
|
allowUnrecognizedEnumValues: true,
|
@@ -938,10 +1010,14 @@ class Vitals {
|
|
938
1010
|
});
|
939
1011
|
}
|
940
1012
|
/**
|
1013
|
+
* @param {string} userId
|
1014
|
+
* @param {Vital.VitalsNoteGroupedRequest} request
|
1015
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1016
|
+
*
|
941
1017
|
* @throws {@link Vital.UnprocessableEntityError}
|
942
1018
|
*
|
943
1019
|
* @example
|
944
|
-
* await
|
1020
|
+
* await client.vitals.noteGrouped("user_id", {
|
945
1021
|
* startDate: "start_date"
|
946
1022
|
* })
|
947
1023
|
*/
|
@@ -964,16 +1040,18 @@ class Vitals {
|
|
964
1040
|
_queryParams["end_date"] = endDate;
|
965
1041
|
}
|
966
1042
|
const _response = yield core.fetcher({
|
967
|
-
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}/note/grouped`),
|
1043
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/note/grouped`),
|
968
1044
|
method: "GET",
|
969
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1045
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
970
1046
|
contentType: "application/json",
|
971
1047
|
queryParameters: _queryParams,
|
1048
|
+
requestType: "json",
|
972
1049
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
973
1050
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1051
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
974
1052
|
});
|
975
1053
|
if (_response.ok) {
|
976
|
-
return
|
1054
|
+
return serializers.ClientFacingGroupedTimeseriesResponseClientFacingNoteSample.parseOrThrow(_response.body, {
|
977
1055
|
unrecognizedObjectKeys: "passthrough",
|
978
1056
|
allowUnrecognizedUnionMembers: true,
|
979
1057
|
allowUnrecognizedEnumValues: true,
|
@@ -983,7 +1061,7 @@ class Vitals {
|
|
983
1061
|
if (_response.error.reason === "status-code") {
|
984
1062
|
switch (_response.error.statusCode) {
|
985
1063
|
case 422:
|
986
|
-
throw new Vital.UnprocessableEntityError(
|
1064
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
987
1065
|
unrecognizedObjectKeys: "passthrough",
|
988
1066
|
allowUnrecognizedUnionMembers: true,
|
989
1067
|
allowUnrecognizedEnumValues: true,
|
@@ -1012,10 +1090,14 @@ class Vitals {
|
|
1012
1090
|
});
|
1013
1091
|
}
|
1014
1092
|
/**
|
1093
|
+
* @param {string} userId
|
1094
|
+
* @param {Vital.VitalsInsulinInjectionGroupedRequest} request
|
1095
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1096
|
+
*
|
1015
1097
|
* @throws {@link Vital.UnprocessableEntityError}
|
1016
1098
|
*
|
1017
1099
|
* @example
|
1018
|
-
* await
|
1100
|
+
* await client.vitals.insulinInjectionGrouped("user_id", {
|
1019
1101
|
* startDate: "start_date"
|
1020
1102
|
* })
|
1021
1103
|
*/
|
@@ -1038,16 +1120,18 @@ class Vitals {
|
|
1038
1120
|
_queryParams["end_date"] = endDate;
|
1039
1121
|
}
|
1040
1122
|
const _response = yield core.fetcher({
|
1041
|
-
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}/insulin_injection/grouped`),
|
1123
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/insulin_injection/grouped`),
|
1042
1124
|
method: "GET",
|
1043
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1125
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1044
1126
|
contentType: "application/json",
|
1045
1127
|
queryParameters: _queryParams,
|
1128
|
+
requestType: "json",
|
1046
1129
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1047
1130
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1131
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1048
1132
|
});
|
1049
1133
|
if (_response.ok) {
|
1050
|
-
return
|
1134
|
+
return serializers.ClientFacingGroupedTimeseriesResponseClientFacingInsulinInjectionSample.parseOrThrow(_response.body, {
|
1051
1135
|
unrecognizedObjectKeys: "passthrough",
|
1052
1136
|
allowUnrecognizedUnionMembers: true,
|
1053
1137
|
allowUnrecognizedEnumValues: true,
|
@@ -1057,7 +1141,7 @@ class Vitals {
|
|
1057
1141
|
if (_response.error.reason === "status-code") {
|
1058
1142
|
switch (_response.error.statusCode) {
|
1059
1143
|
case 422:
|
1060
|
-
throw new Vital.UnprocessableEntityError(
|
1144
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1061
1145
|
unrecognizedObjectKeys: "passthrough",
|
1062
1146
|
allowUnrecognizedUnionMembers: true,
|
1063
1147
|
allowUnrecognizedEnumValues: true,
|
@@ -1086,10 +1170,14 @@ class Vitals {
|
|
1086
1170
|
});
|
1087
1171
|
}
|
1088
1172
|
/**
|
1173
|
+
* @param {string} userId
|
1174
|
+
* @param {Vital.VitalsIgeGroupedRequest} request
|
1175
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1176
|
+
*
|
1089
1177
|
* @throws {@link Vital.UnprocessableEntityError}
|
1090
1178
|
*
|
1091
1179
|
* @example
|
1092
|
-
* await
|
1180
|
+
* await client.vitals.igeGrouped("user_id", {
|
1093
1181
|
* startDate: "start_date"
|
1094
1182
|
* })
|
1095
1183
|
*/
|
@@ -1112,16 +1200,18 @@ class Vitals {
|
|
1112
1200
|
_queryParams["end_date"] = endDate;
|
1113
1201
|
}
|
1114
1202
|
const _response = yield core.fetcher({
|
1115
|
-
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/grouped`),
|
1203
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/ige/grouped`),
|
1116
1204
|
method: "GET",
|
1117
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1205
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1118
1206
|
contentType: "application/json",
|
1119
1207
|
queryParameters: _queryParams,
|
1208
|
+
requestType: "json",
|
1120
1209
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1121
1210
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1211
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1122
1212
|
});
|
1123
1213
|
if (_response.ok) {
|
1124
|
-
return
|
1214
|
+
return serializers.GroupedIgeResponse.parseOrThrow(_response.body, {
|
1125
1215
|
unrecognizedObjectKeys: "passthrough",
|
1126
1216
|
allowUnrecognizedUnionMembers: true,
|
1127
1217
|
allowUnrecognizedEnumValues: true,
|
@@ -1131,7 +1221,7 @@ class Vitals {
|
|
1131
1221
|
if (_response.error.reason === "status-code") {
|
1132
1222
|
switch (_response.error.statusCode) {
|
1133
1223
|
case 422:
|
1134
|
-
throw new Vital.UnprocessableEntityError(
|
1224
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1135
1225
|
unrecognizedObjectKeys: "passthrough",
|
1136
1226
|
allowUnrecognizedUnionMembers: true,
|
1137
1227
|
allowUnrecognizedEnumValues: true,
|
@@ -1160,10 +1250,14 @@ class Vitals {
|
|
1160
1250
|
});
|
1161
1251
|
}
|
1162
1252
|
/**
|
1253
|
+
* @param {string} userId
|
1254
|
+
* @param {Vital.VitalsIggGroupedRequest} request
|
1255
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1256
|
+
*
|
1163
1257
|
* @throws {@link Vital.UnprocessableEntityError}
|
1164
1258
|
*
|
1165
1259
|
* @example
|
1166
|
-
* await
|
1260
|
+
* await client.vitals.iggGrouped("user_id", {
|
1167
1261
|
* startDate: "start_date"
|
1168
1262
|
* })
|
1169
1263
|
*/
|
@@ -1186,16 +1280,18 @@ class Vitals {
|
|
1186
1280
|
_queryParams["end_date"] = endDate;
|
1187
1281
|
}
|
1188
1282
|
const _response = yield core.fetcher({
|
1189
|
-
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/grouped`),
|
1283
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/igg/grouped`),
|
1190
1284
|
method: "GET",
|
1191
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1285
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1192
1286
|
contentType: "application/json",
|
1193
1287
|
queryParameters: _queryParams,
|
1288
|
+
requestType: "json",
|
1194
1289
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1195
1290
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1291
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1196
1292
|
});
|
1197
1293
|
if (_response.ok) {
|
1198
|
-
return
|
1294
|
+
return serializers.GroupedIggResponse.parseOrThrow(_response.body, {
|
1199
1295
|
unrecognizedObjectKeys: "passthrough",
|
1200
1296
|
allowUnrecognizedUnionMembers: true,
|
1201
1297
|
allowUnrecognizedEnumValues: true,
|
@@ -1205,7 +1301,7 @@ class Vitals {
|
|
1205
1301
|
if (_response.error.reason === "status-code") {
|
1206
1302
|
switch (_response.error.statusCode) {
|
1207
1303
|
case 422:
|
1208
|
-
throw new Vital.UnprocessableEntityError(
|
1304
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1209
1305
|
unrecognizedObjectKeys: "passthrough",
|
1210
1306
|
allowUnrecognizedUnionMembers: true,
|
1211
1307
|
allowUnrecognizedEnumValues: true,
|
@@ -1234,10 +1330,14 @@ class Vitals {
|
|
1234
1330
|
});
|
1235
1331
|
}
|
1236
1332
|
/**
|
1333
|
+
* @param {string} userId
|
1334
|
+
* @param {Vital.VitalsHypnogramGroupedRequest} request
|
1335
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1336
|
+
*
|
1237
1337
|
* @throws {@link Vital.UnprocessableEntityError}
|
1238
1338
|
*
|
1239
1339
|
* @example
|
1240
|
-
* await
|
1340
|
+
* await client.vitals.hypnogramGrouped("user_id", {
|
1241
1341
|
* startDate: "start_date"
|
1242
1342
|
* })
|
1243
1343
|
*/
|
@@ -1260,16 +1360,18 @@ class Vitals {
|
|
1260
1360
|
_queryParams["end_date"] = endDate;
|
1261
1361
|
}
|
1262
1362
|
const _response = yield core.fetcher({
|
1263
|
-
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/grouped`),
|
1363
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/hypnogram/grouped`),
|
1264
1364
|
method: "GET",
|
1265
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1365
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1266
1366
|
contentType: "application/json",
|
1267
1367
|
queryParameters: _queryParams,
|
1368
|
+
requestType: "json",
|
1268
1369
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1269
1370
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1371
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1270
1372
|
});
|
1271
1373
|
if (_response.ok) {
|
1272
|
-
return
|
1374
|
+
return serializers.GroupedHypnogramResponse.parseOrThrow(_response.body, {
|
1273
1375
|
unrecognizedObjectKeys: "passthrough",
|
1274
1376
|
allowUnrecognizedUnionMembers: true,
|
1275
1377
|
allowUnrecognizedEnumValues: true,
|
@@ -1279,7 +1381,7 @@ class Vitals {
|
|
1279
1381
|
if (_response.error.reason === "status-code") {
|
1280
1382
|
switch (_response.error.statusCode) {
|
1281
1383
|
case 422:
|
1282
|
-
throw new Vital.UnprocessableEntityError(
|
1384
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1283
1385
|
unrecognizedObjectKeys: "passthrough",
|
1284
1386
|
allowUnrecognizedUnionMembers: true,
|
1285
1387
|
allowUnrecognizedEnumValues: true,
|
@@ -1308,10 +1410,14 @@ class Vitals {
|
|
1308
1410
|
});
|
1309
1411
|
}
|
1310
1412
|
/**
|
1413
|
+
* @param {string} userId
|
1414
|
+
* @param {Vital.VitalsHrvGroupedRequest} request
|
1415
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1416
|
+
*
|
1311
1417
|
* @throws {@link Vital.UnprocessableEntityError}
|
1312
1418
|
*
|
1313
1419
|
* @example
|
1314
|
-
* await
|
1420
|
+
* await client.vitals.hrvGrouped("user_id", {
|
1315
1421
|
* startDate: "start_date"
|
1316
1422
|
* })
|
1317
1423
|
*/
|
@@ -1334,16 +1440,18 @@ class Vitals {
|
|
1334
1440
|
_queryParams["end_date"] = endDate;
|
1335
1441
|
}
|
1336
1442
|
const _response = yield core.fetcher({
|
1337
|
-
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/grouped`),
|
1443
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/hrv/grouped`),
|
1338
1444
|
method: "GET",
|
1339
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1445
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1340
1446
|
contentType: "application/json",
|
1341
1447
|
queryParameters: _queryParams,
|
1448
|
+
requestType: "json",
|
1342
1449
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1343
1450
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1451
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1344
1452
|
});
|
1345
1453
|
if (_response.ok) {
|
1346
|
-
return
|
1454
|
+
return serializers.GroupedHrvResponse.parseOrThrow(_response.body, {
|
1347
1455
|
unrecognizedObjectKeys: "passthrough",
|
1348
1456
|
allowUnrecognizedUnionMembers: true,
|
1349
1457
|
allowUnrecognizedEnumValues: true,
|
@@ -1353,7 +1461,7 @@ class Vitals {
|
|
1353
1461
|
if (_response.error.reason === "status-code") {
|
1354
1462
|
switch (_response.error.statusCode) {
|
1355
1463
|
case 422:
|
1356
|
-
throw new Vital.UnprocessableEntityError(
|
1464
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1357
1465
|
unrecognizedObjectKeys: "passthrough",
|
1358
1466
|
allowUnrecognizedUnionMembers: true,
|
1359
1467
|
allowUnrecognizedEnumValues: true,
|
@@ -1382,10 +1490,14 @@ class Vitals {
|
|
1382
1490
|
});
|
1383
1491
|
}
|
1384
1492
|
/**
|
1493
|
+
* @param {string} userId
|
1494
|
+
* @param {Vital.VitalsHeartrateGroupedRequest} request
|
1495
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1496
|
+
*
|
1385
1497
|
* @throws {@link Vital.UnprocessableEntityError}
|
1386
1498
|
*
|
1387
1499
|
* @example
|
1388
|
-
* await
|
1500
|
+
* await client.vitals.heartrateGrouped("user_id", {
|
1389
1501
|
* startDate: "start_date"
|
1390
1502
|
* })
|
1391
1503
|
*/
|
@@ -1408,16 +1520,18 @@ class Vitals {
|
|
1408
1520
|
_queryParams["end_date"] = endDate;
|
1409
1521
|
}
|
1410
1522
|
const _response = yield core.fetcher({
|
1411
|
-
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/grouped`),
|
1523
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/heartrate/grouped`),
|
1412
1524
|
method: "GET",
|
1413
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1525
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1414
1526
|
contentType: "application/json",
|
1415
1527
|
queryParameters: _queryParams,
|
1528
|
+
requestType: "json",
|
1416
1529
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1417
1530
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1531
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1418
1532
|
});
|
1419
1533
|
if (_response.ok) {
|
1420
|
-
return
|
1534
|
+
return serializers.GroupedHeartRateResponse.parseOrThrow(_response.body, {
|
1421
1535
|
unrecognizedObjectKeys: "passthrough",
|
1422
1536
|
allowUnrecognizedUnionMembers: true,
|
1423
1537
|
allowUnrecognizedEnumValues: true,
|
@@ -1427,7 +1541,7 @@ class Vitals {
|
|
1427
1541
|
if (_response.error.reason === "status-code") {
|
1428
1542
|
switch (_response.error.statusCode) {
|
1429
1543
|
case 422:
|
1430
|
-
throw new Vital.UnprocessableEntityError(
|
1544
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1431
1545
|
unrecognizedObjectKeys: "passthrough",
|
1432
1546
|
allowUnrecognizedUnionMembers: true,
|
1433
1547
|
allowUnrecognizedEnumValues: true,
|
@@ -1456,10 +1570,14 @@ class Vitals {
|
|
1456
1570
|
});
|
1457
1571
|
}
|
1458
1572
|
/**
|
1573
|
+
* @param {string} userId
|
1574
|
+
* @param {Vital.VitalsGlucoseGroupedRequest} request
|
1575
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1576
|
+
*
|
1459
1577
|
* @throws {@link Vital.UnprocessableEntityError}
|
1460
1578
|
*
|
1461
1579
|
* @example
|
1462
|
-
* await
|
1580
|
+
* await client.vitals.glucoseGrouped("user_id", {
|
1463
1581
|
* startDate: "start_date"
|
1464
1582
|
* })
|
1465
1583
|
*/
|
@@ -1482,16 +1600,18 @@ class Vitals {
|
|
1482
1600
|
_queryParams["end_date"] = endDate;
|
1483
1601
|
}
|
1484
1602
|
const _response = yield core.fetcher({
|
1485
|
-
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/grouped`),
|
1603
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/glucose/grouped`),
|
1486
1604
|
method: "GET",
|
1487
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1605
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1488
1606
|
contentType: "application/json",
|
1489
1607
|
queryParameters: _queryParams,
|
1608
|
+
requestType: "json",
|
1490
1609
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1491
1610
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1611
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1492
1612
|
});
|
1493
1613
|
if (_response.ok) {
|
1494
|
-
return
|
1614
|
+
return serializers.GroupedGlucoseResponse.parseOrThrow(_response.body, {
|
1495
1615
|
unrecognizedObjectKeys: "passthrough",
|
1496
1616
|
allowUnrecognizedUnionMembers: true,
|
1497
1617
|
allowUnrecognizedEnumValues: true,
|
@@ -1501,7 +1621,7 @@ class Vitals {
|
|
1501
1621
|
if (_response.error.reason === "status-code") {
|
1502
1622
|
switch (_response.error.statusCode) {
|
1503
1623
|
case 422:
|
1504
|
-
throw new Vital.UnprocessableEntityError(
|
1624
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1505
1625
|
unrecognizedObjectKeys: "passthrough",
|
1506
1626
|
allowUnrecognizedUnionMembers: true,
|
1507
1627
|
allowUnrecognizedEnumValues: true,
|
@@ -1530,10 +1650,14 @@ class Vitals {
|
|
1530
1650
|
});
|
1531
1651
|
}
|
1532
1652
|
/**
|
1653
|
+
* @param {string} userId
|
1654
|
+
* @param {Vital.VitalsCholesterolGroupedRequest} request
|
1655
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1656
|
+
*
|
1533
1657
|
* @throws {@link Vital.UnprocessableEntityError}
|
1534
1658
|
*
|
1535
1659
|
* @example
|
1536
|
-
* await
|
1660
|
+
* await client.vitals.cholesterolGrouped("user_id", {
|
1537
1661
|
* startDate: "start_date"
|
1538
1662
|
* })
|
1539
1663
|
*/
|
@@ -1556,16 +1680,18 @@ class Vitals {
|
|
1556
1680
|
_queryParams["end_date"] = endDate;
|
1557
1681
|
}
|
1558
1682
|
const _response = yield core.fetcher({
|
1559
|
-
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/grouped`),
|
1683
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/grouped`),
|
1560
1684
|
method: "GET",
|
1561
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1685
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1562
1686
|
contentType: "application/json",
|
1563
1687
|
queryParameters: _queryParams,
|
1688
|
+
requestType: "json",
|
1564
1689
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1565
1690
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1691
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1566
1692
|
});
|
1567
1693
|
if (_response.ok) {
|
1568
|
-
return
|
1694
|
+
return serializers.GroupedCholesterolResponse.parseOrThrow(_response.body, {
|
1569
1695
|
unrecognizedObjectKeys: "passthrough",
|
1570
1696
|
allowUnrecognizedUnionMembers: true,
|
1571
1697
|
allowUnrecognizedEnumValues: true,
|
@@ -1575,7 +1701,7 @@ class Vitals {
|
|
1575
1701
|
if (_response.error.reason === "status-code") {
|
1576
1702
|
switch (_response.error.statusCode) {
|
1577
1703
|
case 422:
|
1578
|
-
throw new Vital.UnprocessableEntityError(
|
1704
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1579
1705
|
unrecognizedObjectKeys: "passthrough",
|
1580
1706
|
allowUnrecognizedUnionMembers: true,
|
1581
1707
|
allowUnrecognizedEnumValues: true,
|
@@ -1604,10 +1730,14 @@ class Vitals {
|
|
1604
1730
|
});
|
1605
1731
|
}
|
1606
1732
|
/**
|
1733
|
+
* @param {string} userId
|
1734
|
+
* @param {Vital.VitalsCarbohydratesGroupedRequest} request
|
1735
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1736
|
+
*
|
1607
1737
|
* @throws {@link Vital.UnprocessableEntityError}
|
1608
1738
|
*
|
1609
1739
|
* @example
|
1610
|
-
* await
|
1740
|
+
* await client.vitals.carbohydratesGrouped("user_id", {
|
1611
1741
|
* startDate: "start_date"
|
1612
1742
|
* })
|
1613
1743
|
*/
|
@@ -1630,16 +1760,18 @@ class Vitals {
|
|
1630
1760
|
_queryParams["end_date"] = endDate;
|
1631
1761
|
}
|
1632
1762
|
const _response = yield core.fetcher({
|
1633
|
-
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}/carbohydrates/grouped`),
|
1763
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/carbohydrates/grouped`),
|
1634
1764
|
method: "GET",
|
1635
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1765
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1636
1766
|
contentType: "application/json",
|
1637
1767
|
queryParameters: _queryParams,
|
1768
|
+
requestType: "json",
|
1638
1769
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1639
1770
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1771
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1640
1772
|
});
|
1641
1773
|
if (_response.ok) {
|
1642
|
-
return
|
1774
|
+
return serializers.ClientFacingGroupedTimeseriesResponseClientFacingCarbohydratesSample.parseOrThrow(_response.body, {
|
1643
1775
|
unrecognizedObjectKeys: "passthrough",
|
1644
1776
|
allowUnrecognizedUnionMembers: true,
|
1645
1777
|
allowUnrecognizedEnumValues: true,
|
@@ -1649,7 +1781,7 @@ class Vitals {
|
|
1649
1781
|
if (_response.error.reason === "status-code") {
|
1650
1782
|
switch (_response.error.statusCode) {
|
1651
1783
|
case 422:
|
1652
|
-
throw new Vital.UnprocessableEntityError(
|
1784
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1653
1785
|
unrecognizedObjectKeys: "passthrough",
|
1654
1786
|
allowUnrecognizedUnionMembers: true,
|
1655
1787
|
allowUnrecognizedEnumValues: true,
|
@@ -1678,10 +1810,14 @@ class Vitals {
|
|
1678
1810
|
});
|
1679
1811
|
}
|
1680
1812
|
/**
|
1813
|
+
* @param {string} userId
|
1814
|
+
* @param {Vital.VitalsBodyTemperatureDeltaGroupedRequest} request
|
1815
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1816
|
+
*
|
1681
1817
|
* @throws {@link Vital.UnprocessableEntityError}
|
1682
1818
|
*
|
1683
1819
|
* @example
|
1684
|
-
* await
|
1820
|
+
* await client.vitals.bodyTemperatureDeltaGrouped("user_id", {
|
1685
1821
|
* startDate: "start_date"
|
1686
1822
|
* })
|
1687
1823
|
*/
|
@@ -1704,16 +1840,18 @@ class Vitals {
|
|
1704
1840
|
_queryParams["end_date"] = endDate;
|
1705
1841
|
}
|
1706
1842
|
const _response = yield core.fetcher({
|
1707
|
-
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}/body_temperature_delta/grouped`),
|
1843
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_temperature_delta/grouped`),
|
1708
1844
|
method: "GET",
|
1709
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1845
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1710
1846
|
contentType: "application/json",
|
1711
1847
|
queryParameters: _queryParams,
|
1848
|
+
requestType: "json",
|
1712
1849
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1713
1850
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1851
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1714
1852
|
});
|
1715
1853
|
if (_response.ok) {
|
1716
|
-
return
|
1854
|
+
return serializers.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureDeltaSample.parseOrThrow(_response.body, {
|
1717
1855
|
unrecognizedObjectKeys: "passthrough",
|
1718
1856
|
allowUnrecognizedUnionMembers: true,
|
1719
1857
|
allowUnrecognizedEnumValues: true,
|
@@ -1723,7 +1861,7 @@ class Vitals {
|
|
1723
1861
|
if (_response.error.reason === "status-code") {
|
1724
1862
|
switch (_response.error.statusCode) {
|
1725
1863
|
case 422:
|
1726
|
-
throw new Vital.UnprocessableEntityError(
|
1864
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1727
1865
|
unrecognizedObjectKeys: "passthrough",
|
1728
1866
|
allowUnrecognizedUnionMembers: true,
|
1729
1867
|
allowUnrecognizedEnumValues: true,
|
@@ -1752,10 +1890,14 @@ class Vitals {
|
|
1752
1890
|
});
|
1753
1891
|
}
|
1754
1892
|
/**
|
1893
|
+
* @param {string} userId
|
1894
|
+
* @param {Vital.VitalsBodyTemperatureGroupedRequest} request
|
1895
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1896
|
+
*
|
1755
1897
|
* @throws {@link Vital.UnprocessableEntityError}
|
1756
1898
|
*
|
1757
1899
|
* @example
|
1758
|
-
* await
|
1900
|
+
* await client.vitals.bodyTemperatureGrouped("user_id", {
|
1759
1901
|
* startDate: "start_date"
|
1760
1902
|
* })
|
1761
1903
|
*/
|
@@ -1778,16 +1920,18 @@ class Vitals {
|
|
1778
1920
|
_queryParams["end_date"] = endDate;
|
1779
1921
|
}
|
1780
1922
|
const _response = yield core.fetcher({
|
1781
|
-
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}/body_temperature/grouped`),
|
1923
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_temperature/grouped`),
|
1782
1924
|
method: "GET",
|
1783
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1925
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1784
1926
|
contentType: "application/json",
|
1785
1927
|
queryParameters: _queryParams,
|
1928
|
+
requestType: "json",
|
1786
1929
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1787
1930
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1931
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1788
1932
|
});
|
1789
1933
|
if (_response.ok) {
|
1790
|
-
return
|
1934
|
+
return serializers.ClientFacingGroupedTimeseriesResponseClientFacingBodyTemperatureSample.parseOrThrow(_response.body, {
|
1791
1935
|
unrecognizedObjectKeys: "passthrough",
|
1792
1936
|
allowUnrecognizedUnionMembers: true,
|
1793
1937
|
allowUnrecognizedEnumValues: true,
|
@@ -1797,7 +1941,7 @@ class Vitals {
|
|
1797
1941
|
if (_response.error.reason === "status-code") {
|
1798
1942
|
switch (_response.error.statusCode) {
|
1799
1943
|
case 422:
|
1800
|
-
throw new Vital.UnprocessableEntityError(
|
1944
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1801
1945
|
unrecognizedObjectKeys: "passthrough",
|
1802
1946
|
allowUnrecognizedUnionMembers: true,
|
1803
1947
|
allowUnrecognizedEnumValues: true,
|
@@ -1826,10 +1970,14 @@ class Vitals {
|
|
1826
1970
|
});
|
1827
1971
|
}
|
1828
1972
|
/**
|
1973
|
+
* @param {string} userId
|
1974
|
+
* @param {Vital.VitalsBodyWeightGroupedRequest} request
|
1975
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
1976
|
+
*
|
1829
1977
|
* @throws {@link Vital.UnprocessableEntityError}
|
1830
1978
|
*
|
1831
1979
|
* @example
|
1832
|
-
* await
|
1980
|
+
* await client.vitals.bodyWeightGrouped("user_id", {
|
1833
1981
|
* startDate: "start_date"
|
1834
1982
|
* })
|
1835
1983
|
*/
|
@@ -1852,16 +2000,18 @@ class Vitals {
|
|
1852
2000
|
_queryParams["end_date"] = endDate;
|
1853
2001
|
}
|
1854
2002
|
const _response = yield core.fetcher({
|
1855
|
-
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}/body_weight/grouped`),
|
2003
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_weight/grouped`),
|
1856
2004
|
method: "GET",
|
1857
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2005
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1858
2006
|
contentType: "application/json",
|
1859
2007
|
queryParameters: _queryParams,
|
2008
|
+
requestType: "json",
|
1860
2009
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1861
2010
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2011
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1862
2012
|
});
|
1863
2013
|
if (_response.ok) {
|
1864
|
-
return
|
2014
|
+
return serializers.GroupedBodyWeightResponse.parseOrThrow(_response.body, {
|
1865
2015
|
unrecognizedObjectKeys: "passthrough",
|
1866
2016
|
allowUnrecognizedUnionMembers: true,
|
1867
2017
|
allowUnrecognizedEnumValues: true,
|
@@ -1871,7 +2021,7 @@ class Vitals {
|
|
1871
2021
|
if (_response.error.reason === "status-code") {
|
1872
2022
|
switch (_response.error.statusCode) {
|
1873
2023
|
case 422:
|
1874
|
-
throw new Vital.UnprocessableEntityError(
|
2024
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1875
2025
|
unrecognizedObjectKeys: "passthrough",
|
1876
2026
|
allowUnrecognizedUnionMembers: true,
|
1877
2027
|
allowUnrecognizedEnumValues: true,
|
@@ -1900,10 +2050,14 @@ class Vitals {
|
|
1900
2050
|
});
|
1901
2051
|
}
|
1902
2052
|
/**
|
2053
|
+
* @param {string} userId
|
2054
|
+
* @param {Vital.VitalsBodyFatGroupedRequest} request
|
2055
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2056
|
+
*
|
1903
2057
|
* @throws {@link Vital.UnprocessableEntityError}
|
1904
2058
|
*
|
1905
2059
|
* @example
|
1906
|
-
* await
|
2060
|
+
* await client.vitals.bodyFatGrouped("user_id", {
|
1907
2061
|
* startDate: "start_date"
|
1908
2062
|
* })
|
1909
2063
|
*/
|
@@ -1926,16 +2080,18 @@ class Vitals {
|
|
1926
2080
|
_queryParams["end_date"] = endDate;
|
1927
2081
|
}
|
1928
2082
|
const _response = yield core.fetcher({
|
1929
|
-
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}/body_fat/grouped`),
|
2083
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_fat/grouped`),
|
1930
2084
|
method: "GET",
|
1931
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2085
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1932
2086
|
contentType: "application/json",
|
1933
2087
|
queryParameters: _queryParams,
|
2088
|
+
requestType: "json",
|
1934
2089
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1935
2090
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2091
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1936
2092
|
});
|
1937
2093
|
if (_response.ok) {
|
1938
|
-
return
|
2094
|
+
return serializers.GroupedBodyFatResponse.parseOrThrow(_response.body, {
|
1939
2095
|
unrecognizedObjectKeys: "passthrough",
|
1940
2096
|
allowUnrecognizedUnionMembers: true,
|
1941
2097
|
allowUnrecognizedEnumValues: true,
|
@@ -1945,7 +2101,7 @@ class Vitals {
|
|
1945
2101
|
if (_response.error.reason === "status-code") {
|
1946
2102
|
switch (_response.error.statusCode) {
|
1947
2103
|
case 422:
|
1948
|
-
throw new Vital.UnprocessableEntityError(
|
2104
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1949
2105
|
unrecognizedObjectKeys: "passthrough",
|
1950
2106
|
allowUnrecognizedUnionMembers: true,
|
1951
2107
|
allowUnrecognizedEnumValues: true,
|
@@ -1974,10 +2130,14 @@ class Vitals {
|
|
1974
2130
|
});
|
1975
2131
|
}
|
1976
2132
|
/**
|
2133
|
+
* @param {string} userId
|
2134
|
+
* @param {Vital.VitalsBloodOxygenGroupedRequest} request
|
2135
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2136
|
+
*
|
1977
2137
|
* @throws {@link Vital.UnprocessableEntityError}
|
1978
2138
|
*
|
1979
2139
|
* @example
|
1980
|
-
* await
|
2140
|
+
* await client.vitals.bloodOxygenGrouped("user_id", {
|
1981
2141
|
* startDate: "start_date"
|
1982
2142
|
* })
|
1983
2143
|
*/
|
@@ -2000,16 +2160,18 @@ class Vitals {
|
|
2000
2160
|
_queryParams["end_date"] = endDate;
|
2001
2161
|
}
|
2002
2162
|
const _response = yield core.fetcher({
|
2003
|
-
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/grouped`),
|
2163
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/blood_oxygen/grouped`),
|
2004
2164
|
method: "GET",
|
2005
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2165
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2006
2166
|
contentType: "application/json",
|
2007
2167
|
queryParameters: _queryParams,
|
2168
|
+
requestType: "json",
|
2008
2169
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2009
2170
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2171
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2010
2172
|
});
|
2011
2173
|
if (_response.ok) {
|
2012
|
-
return
|
2174
|
+
return serializers.GroupedBloodOxygenResponse.parseOrThrow(_response.body, {
|
2013
2175
|
unrecognizedObjectKeys: "passthrough",
|
2014
2176
|
allowUnrecognizedUnionMembers: true,
|
2015
2177
|
allowUnrecognizedEnumValues: true,
|
@@ -2019,7 +2181,7 @@ class Vitals {
|
|
2019
2181
|
if (_response.error.reason === "status-code") {
|
2020
2182
|
switch (_response.error.statusCode) {
|
2021
2183
|
case 422:
|
2022
|
-
throw new Vital.UnprocessableEntityError(
|
2184
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2023
2185
|
unrecognizedObjectKeys: "passthrough",
|
2024
2186
|
allowUnrecognizedUnionMembers: true,
|
2025
2187
|
allowUnrecognizedEnumValues: true,
|
@@ -2048,10 +2210,14 @@ class Vitals {
|
|
2048
2210
|
});
|
2049
2211
|
}
|
2050
2212
|
/**
|
2213
|
+
* @param {string} userId
|
2214
|
+
* @param {Vital.VitalsElectrocardiogramVoltageGroupedRequest} request
|
2215
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2216
|
+
*
|
2051
2217
|
* @throws {@link Vital.UnprocessableEntityError}
|
2052
2218
|
*
|
2053
2219
|
* @example
|
2054
|
-
* await
|
2220
|
+
* await client.vitals.electrocardiogramVoltageGrouped("user_id", {
|
2055
2221
|
* startDate: "start_date"
|
2056
2222
|
* })
|
2057
2223
|
*/
|
@@ -2074,16 +2240,18 @@ class Vitals {
|
|
2074
2240
|
_queryParams["end_date"] = endDate;
|
2075
2241
|
}
|
2076
2242
|
const _response = yield core.fetcher({
|
2077
|
-
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/grouped`),
|
2243
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/electrocardiogram_voltage/grouped`),
|
2078
2244
|
method: "GET",
|
2079
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2245
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2080
2246
|
contentType: "application/json",
|
2081
2247
|
queryParameters: _queryParams,
|
2248
|
+
requestType: "json",
|
2082
2249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2083
2250
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2251
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2084
2252
|
});
|
2085
2253
|
if (_response.ok) {
|
2086
|
-
return
|
2254
|
+
return serializers.GroupedElectrocardiogramVoltageResponse.parseOrThrow(_response.body, {
|
2087
2255
|
unrecognizedObjectKeys: "passthrough",
|
2088
2256
|
allowUnrecognizedUnionMembers: true,
|
2089
2257
|
allowUnrecognizedEnumValues: true,
|
@@ -2093,7 +2261,7 @@ class Vitals {
|
|
2093
2261
|
if (_response.error.reason === "status-code") {
|
2094
2262
|
switch (_response.error.statusCode) {
|
2095
2263
|
case 422:
|
2096
|
-
throw new Vital.UnprocessableEntityError(
|
2264
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2097
2265
|
unrecognizedObjectKeys: "passthrough",
|
2098
2266
|
allowUnrecognizedUnionMembers: true,
|
2099
2267
|
allowUnrecognizedEnumValues: true,
|
@@ -2122,10 +2290,14 @@ class Vitals {
|
|
2122
2290
|
});
|
2123
2291
|
}
|
2124
2292
|
/**
|
2293
|
+
* @param {string} userId
|
2294
|
+
* @param {Vital.VitalsBloodPressureGroupedRequest} request
|
2295
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2296
|
+
*
|
2125
2297
|
* @throws {@link Vital.UnprocessableEntityError}
|
2126
2298
|
*
|
2127
2299
|
* @example
|
2128
|
-
* await
|
2300
|
+
* await client.vitals.bloodPressureGrouped("user_id", {
|
2129
2301
|
* startDate: "start_date"
|
2130
2302
|
* })
|
2131
2303
|
*/
|
@@ -2148,16 +2320,18 @@ class Vitals {
|
|
2148
2320
|
_queryParams["end_date"] = endDate;
|
2149
2321
|
}
|
2150
2322
|
const _response = yield core.fetcher({
|
2151
|
-
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/grouped`),
|
2323
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/blood_pressure/grouped`),
|
2152
2324
|
method: "GET",
|
2153
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2325
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2154
2326
|
contentType: "application/json",
|
2155
2327
|
queryParameters: _queryParams,
|
2328
|
+
requestType: "json",
|
2156
2329
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2157
2330
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2331
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2158
2332
|
});
|
2159
2333
|
if (_response.ok) {
|
2160
|
-
return
|
2334
|
+
return serializers.GroupedBloodPressureResponse.parseOrThrow(_response.body, {
|
2161
2335
|
unrecognizedObjectKeys: "passthrough",
|
2162
2336
|
allowUnrecognizedUnionMembers: true,
|
2163
2337
|
allowUnrecognizedEnumValues: true,
|
@@ -2167,7 +2341,7 @@ class Vitals {
|
|
2167
2341
|
if (_response.error.reason === "status-code") {
|
2168
2342
|
switch (_response.error.statusCode) {
|
2169
2343
|
case 422:
|
2170
|
-
throw new Vital.UnprocessableEntityError(
|
2344
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2171
2345
|
unrecognizedObjectKeys: "passthrough",
|
2172
2346
|
allowUnrecognizedUnionMembers: true,
|
2173
2347
|
allowUnrecognizedEnumValues: true,
|
@@ -2196,10 +2370,14 @@ class Vitals {
|
|
2196
2370
|
});
|
2197
2371
|
}
|
2198
2372
|
/**
|
2373
|
+
* @param {string} userId
|
2374
|
+
* @param {Vital.VitalsVo2MaxRequest} request
|
2375
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2376
|
+
*
|
2199
2377
|
* @throws {@link Vital.UnprocessableEntityError}
|
2200
2378
|
*
|
2201
2379
|
* @example
|
2202
|
-
* await
|
2380
|
+
* await client.vitals.vo2Max("user_id", {
|
2203
2381
|
* startDate: "start_date"
|
2204
2382
|
* })
|
2205
2383
|
*/
|
@@ -2216,16 +2394,18 @@ class Vitals {
|
|
2216
2394
|
_queryParams["end_date"] = endDate;
|
2217
2395
|
}
|
2218
2396
|
const _response = yield core.fetcher({
|
2219
|
-
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}/vo2_max`),
|
2397
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/vo2_max`),
|
2220
2398
|
method: "GET",
|
2221
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2399
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2222
2400
|
contentType: "application/json",
|
2223
2401
|
queryParameters: _queryParams,
|
2402
|
+
requestType: "json",
|
2224
2403
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2225
2404
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2405
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2226
2406
|
});
|
2227
2407
|
if (_response.ok) {
|
2228
|
-
return
|
2408
|
+
return serializers.vitals.vo2Max.Response.parseOrThrow(_response.body, {
|
2229
2409
|
unrecognizedObjectKeys: "passthrough",
|
2230
2410
|
allowUnrecognizedUnionMembers: true,
|
2231
2411
|
allowUnrecognizedEnumValues: true,
|
@@ -2235,7 +2415,7 @@ class Vitals {
|
|
2235
2415
|
if (_response.error.reason === "status-code") {
|
2236
2416
|
switch (_response.error.statusCode) {
|
2237
2417
|
case 422:
|
2238
|
-
throw new Vital.UnprocessableEntityError(
|
2418
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2239
2419
|
unrecognizedObjectKeys: "passthrough",
|
2240
2420
|
allowUnrecognizedUnionMembers: true,
|
2241
2421
|
allowUnrecognizedEnumValues: true,
|
@@ -2264,10 +2444,14 @@ class Vitals {
|
|
2264
2444
|
});
|
2265
2445
|
}
|
2266
2446
|
/**
|
2447
|
+
* @param {string} userId
|
2448
|
+
* @param {Vital.VitalsStressLevelRequest} request
|
2449
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2450
|
+
*
|
2267
2451
|
* @throws {@link Vital.UnprocessableEntityError}
|
2268
2452
|
*
|
2269
2453
|
* @example
|
2270
|
-
* await
|
2454
|
+
* await client.vitals.stressLevel("user_id", {
|
2271
2455
|
* startDate: "start_date"
|
2272
2456
|
* })
|
2273
2457
|
*/
|
@@ -2284,16 +2468,18 @@ class Vitals {
|
|
2284
2468
|
_queryParams["end_date"] = endDate;
|
2285
2469
|
}
|
2286
2470
|
const _response = yield core.fetcher({
|
2287
|
-
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}/stress_level`),
|
2471
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/stress_level`),
|
2288
2472
|
method: "GET",
|
2289
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2473
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2290
2474
|
contentType: "application/json",
|
2291
2475
|
queryParameters: _queryParams,
|
2476
|
+
requestType: "json",
|
2292
2477
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2293
2478
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2479
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2294
2480
|
});
|
2295
2481
|
if (_response.ok) {
|
2296
|
-
return
|
2482
|
+
return serializers.vitals.stressLevel.Response.parseOrThrow(_response.body, {
|
2297
2483
|
unrecognizedObjectKeys: "passthrough",
|
2298
2484
|
allowUnrecognizedUnionMembers: true,
|
2299
2485
|
allowUnrecognizedEnumValues: true,
|
@@ -2303,7 +2489,7 @@ class Vitals {
|
|
2303
2489
|
if (_response.error.reason === "status-code") {
|
2304
2490
|
switch (_response.error.statusCode) {
|
2305
2491
|
case 422:
|
2306
|
-
throw new Vital.UnprocessableEntityError(
|
2492
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2307
2493
|
unrecognizedObjectKeys: "passthrough",
|
2308
2494
|
allowUnrecognizedUnionMembers: true,
|
2309
2495
|
allowUnrecognizedEnumValues: true,
|
@@ -2332,10 +2518,14 @@ class Vitals {
|
|
2332
2518
|
});
|
2333
2519
|
}
|
2334
2520
|
/**
|
2521
|
+
* @param {string} userId
|
2522
|
+
* @param {Vital.VitalsMindfulnessMinutesRequest} request
|
2523
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2524
|
+
*
|
2335
2525
|
* @throws {@link Vital.UnprocessableEntityError}
|
2336
2526
|
*
|
2337
2527
|
* @example
|
2338
|
-
* await
|
2528
|
+
* await client.vitals.mindfulnessMinutes("user_id", {
|
2339
2529
|
* startDate: "start_date"
|
2340
2530
|
* })
|
2341
2531
|
*/
|
@@ -2352,16 +2542,18 @@ class Vitals {
|
|
2352
2542
|
_queryParams["end_date"] = endDate;
|
2353
2543
|
}
|
2354
2544
|
const _response = yield core.fetcher({
|
2355
|
-
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`),
|
2545
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/mindfulness_minutes`),
|
2356
2546
|
method: "GET",
|
2357
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2547
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2358
2548
|
contentType: "application/json",
|
2359
2549
|
queryParameters: _queryParams,
|
2550
|
+
requestType: "json",
|
2360
2551
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2361
2552
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2553
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2362
2554
|
});
|
2363
2555
|
if (_response.ok) {
|
2364
|
-
return
|
2556
|
+
return serializers.vitals.mindfulnessMinutes.Response.parseOrThrow(_response.body, {
|
2365
2557
|
unrecognizedObjectKeys: "passthrough",
|
2366
2558
|
allowUnrecognizedUnionMembers: true,
|
2367
2559
|
allowUnrecognizedEnumValues: true,
|
@@ -2371,7 +2563,7 @@ class Vitals {
|
|
2371
2563
|
if (_response.error.reason === "status-code") {
|
2372
2564
|
switch (_response.error.statusCode) {
|
2373
2565
|
case 422:
|
2374
|
-
throw new Vital.UnprocessableEntityError(
|
2566
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2375
2567
|
unrecognizedObjectKeys: "passthrough",
|
2376
2568
|
allowUnrecognizedUnionMembers: true,
|
2377
2569
|
allowUnrecognizedEnumValues: true,
|
@@ -2400,10 +2592,14 @@ class Vitals {
|
|
2400
2592
|
});
|
2401
2593
|
}
|
2402
2594
|
/**
|
2595
|
+
* @param {string} userId
|
2596
|
+
* @param {Vital.VitalsCaffeineRequest} request
|
2597
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2598
|
+
*
|
2403
2599
|
* @throws {@link Vital.UnprocessableEntityError}
|
2404
2600
|
*
|
2405
2601
|
* @example
|
2406
|
-
* await
|
2602
|
+
* await client.vitals.caffeine("user_id", {
|
2407
2603
|
* startDate: "start_date"
|
2408
2604
|
* })
|
2409
2605
|
*/
|
@@ -2420,16 +2616,18 @@ class Vitals {
|
|
2420
2616
|
_queryParams["end_date"] = endDate;
|
2421
2617
|
}
|
2422
2618
|
const _response = yield core.fetcher({
|
2423
|
-
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`),
|
2619
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/caffeine`),
|
2424
2620
|
method: "GET",
|
2425
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2621
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2426
2622
|
contentType: "application/json",
|
2427
2623
|
queryParameters: _queryParams,
|
2624
|
+
requestType: "json",
|
2428
2625
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2429
2626
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2627
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2430
2628
|
});
|
2431
2629
|
if (_response.ok) {
|
2432
|
-
return
|
2630
|
+
return serializers.vitals.caffeine.Response.parseOrThrow(_response.body, {
|
2433
2631
|
unrecognizedObjectKeys: "passthrough",
|
2434
2632
|
allowUnrecognizedUnionMembers: true,
|
2435
2633
|
allowUnrecognizedEnumValues: true,
|
@@ -2439,7 +2637,7 @@ class Vitals {
|
|
2439
2637
|
if (_response.error.reason === "status-code") {
|
2440
2638
|
switch (_response.error.statusCode) {
|
2441
2639
|
case 422:
|
2442
|
-
throw new Vital.UnprocessableEntityError(
|
2640
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2443
2641
|
unrecognizedObjectKeys: "passthrough",
|
2444
2642
|
allowUnrecognizedUnionMembers: true,
|
2445
2643
|
allowUnrecognizedEnumValues: true,
|
@@ -2468,10 +2666,14 @@ class Vitals {
|
|
2468
2666
|
});
|
2469
2667
|
}
|
2470
2668
|
/**
|
2669
|
+
* @param {string} userId
|
2670
|
+
* @param {Vital.VitalsWaterRequest} request
|
2671
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2672
|
+
*
|
2471
2673
|
* @throws {@link Vital.UnprocessableEntityError}
|
2472
2674
|
*
|
2473
2675
|
* @example
|
2474
|
-
* await
|
2676
|
+
* await client.vitals.water("user_id", {
|
2475
2677
|
* startDate: "start_date"
|
2476
2678
|
* })
|
2477
2679
|
*/
|
@@ -2488,16 +2690,18 @@ class Vitals {
|
|
2488
2690
|
_queryParams["end_date"] = endDate;
|
2489
2691
|
}
|
2490
2692
|
const _response = yield core.fetcher({
|
2491
|
-
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`),
|
2693
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/water`),
|
2492
2694
|
method: "GET",
|
2493
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2695
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2494
2696
|
contentType: "application/json",
|
2495
2697
|
queryParameters: _queryParams,
|
2698
|
+
requestType: "json",
|
2496
2699
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2497
2700
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2701
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2498
2702
|
});
|
2499
2703
|
if (_response.ok) {
|
2500
|
-
return
|
2704
|
+
return serializers.vitals.water.Response.parseOrThrow(_response.body, {
|
2501
2705
|
unrecognizedObjectKeys: "passthrough",
|
2502
2706
|
allowUnrecognizedUnionMembers: true,
|
2503
2707
|
allowUnrecognizedEnumValues: true,
|
@@ -2507,7 +2711,7 @@ class Vitals {
|
|
2507
2711
|
if (_response.error.reason === "status-code") {
|
2508
2712
|
switch (_response.error.statusCode) {
|
2509
2713
|
case 422:
|
2510
|
-
throw new Vital.UnprocessableEntityError(
|
2714
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2511
2715
|
unrecognizedObjectKeys: "passthrough",
|
2512
2716
|
allowUnrecognizedUnionMembers: true,
|
2513
2717
|
allowUnrecognizedEnumValues: true,
|
@@ -2536,10 +2740,14 @@ class Vitals {
|
|
2536
2740
|
});
|
2537
2741
|
}
|
2538
2742
|
/**
|
2743
|
+
* @param {string} userId
|
2744
|
+
* @param {Vital.VitalsStepsRequest} request
|
2745
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2746
|
+
*
|
2539
2747
|
* @throws {@link Vital.UnprocessableEntityError}
|
2540
2748
|
*
|
2541
2749
|
* @example
|
2542
|
-
* await
|
2750
|
+
* await client.vitals.steps("user_id", {
|
2543
2751
|
* startDate: "start_date"
|
2544
2752
|
* })
|
2545
2753
|
*/
|
@@ -2556,16 +2764,18 @@ class Vitals {
|
|
2556
2764
|
_queryParams["end_date"] = endDate;
|
2557
2765
|
}
|
2558
2766
|
const _response = yield core.fetcher({
|
2559
|
-
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`),
|
2767
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/steps`),
|
2560
2768
|
method: "GET",
|
2561
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2769
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2562
2770
|
contentType: "application/json",
|
2563
2771
|
queryParameters: _queryParams,
|
2772
|
+
requestType: "json",
|
2564
2773
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2565
2774
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2775
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2566
2776
|
});
|
2567
2777
|
if (_response.ok) {
|
2568
|
-
return
|
2778
|
+
return serializers.vitals.steps.Response.parseOrThrow(_response.body, {
|
2569
2779
|
unrecognizedObjectKeys: "passthrough",
|
2570
2780
|
allowUnrecognizedUnionMembers: true,
|
2571
2781
|
allowUnrecognizedEnumValues: true,
|
@@ -2575,7 +2785,7 @@ class Vitals {
|
|
2575
2785
|
if (_response.error.reason === "status-code") {
|
2576
2786
|
switch (_response.error.statusCode) {
|
2577
2787
|
case 422:
|
2578
|
-
throw new Vital.UnprocessableEntityError(
|
2788
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2579
2789
|
unrecognizedObjectKeys: "passthrough",
|
2580
2790
|
allowUnrecognizedUnionMembers: true,
|
2581
2791
|
allowUnrecognizedEnumValues: true,
|
@@ -2604,10 +2814,14 @@ class Vitals {
|
|
2604
2814
|
});
|
2605
2815
|
}
|
2606
2816
|
/**
|
2817
|
+
* @param {string} userId
|
2818
|
+
* @param {Vital.VitalsFloorsClimbedRequest} request
|
2819
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2820
|
+
*
|
2607
2821
|
* @throws {@link Vital.UnprocessableEntityError}
|
2608
2822
|
*
|
2609
2823
|
* @example
|
2610
|
-
* await
|
2824
|
+
* await client.vitals.floorsClimbed("user_id", {
|
2611
2825
|
* startDate: "start_date"
|
2612
2826
|
* })
|
2613
2827
|
*/
|
@@ -2624,16 +2838,18 @@ class Vitals {
|
|
2624
2838
|
_queryParams["end_date"] = endDate;
|
2625
2839
|
}
|
2626
2840
|
const _response = yield core.fetcher({
|
2627
|
-
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`),
|
2841
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/floors_climbed`),
|
2628
2842
|
method: "GET",
|
2629
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2843
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2630
2844
|
contentType: "application/json",
|
2631
2845
|
queryParameters: _queryParams,
|
2846
|
+
requestType: "json",
|
2632
2847
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2633
2848
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2849
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2634
2850
|
});
|
2635
2851
|
if (_response.ok) {
|
2636
|
-
return
|
2852
|
+
return serializers.vitals.floorsClimbed.Response.parseOrThrow(_response.body, {
|
2637
2853
|
unrecognizedObjectKeys: "passthrough",
|
2638
2854
|
allowUnrecognizedUnionMembers: true,
|
2639
2855
|
allowUnrecognizedEnumValues: true,
|
@@ -2643,7 +2859,7 @@ class Vitals {
|
|
2643
2859
|
if (_response.error.reason === "status-code") {
|
2644
2860
|
switch (_response.error.statusCode) {
|
2645
2861
|
case 422:
|
2646
|
-
throw new Vital.UnprocessableEntityError(
|
2862
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2647
2863
|
unrecognizedObjectKeys: "passthrough",
|
2648
2864
|
allowUnrecognizedUnionMembers: true,
|
2649
2865
|
allowUnrecognizedEnumValues: true,
|
@@ -2672,10 +2888,14 @@ class Vitals {
|
|
2672
2888
|
});
|
2673
2889
|
}
|
2674
2890
|
/**
|
2891
|
+
* @param {string} userId
|
2892
|
+
* @param {Vital.VitalsDistanceRequest} request
|
2893
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2894
|
+
*
|
2675
2895
|
* @throws {@link Vital.UnprocessableEntityError}
|
2676
2896
|
*
|
2677
2897
|
* @example
|
2678
|
-
* await
|
2898
|
+
* await client.vitals.distance("user_id", {
|
2679
2899
|
* startDate: "start_date"
|
2680
2900
|
* })
|
2681
2901
|
*/
|
@@ -2692,16 +2912,18 @@ class Vitals {
|
|
2692
2912
|
_queryParams["end_date"] = endDate;
|
2693
2913
|
}
|
2694
2914
|
const _response = yield core.fetcher({
|
2695
|
-
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`),
|
2915
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/distance`),
|
2696
2916
|
method: "GET",
|
2697
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2917
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2698
2918
|
contentType: "application/json",
|
2699
2919
|
queryParameters: _queryParams,
|
2920
|
+
requestType: "json",
|
2700
2921
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2701
2922
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2923
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2702
2924
|
});
|
2703
2925
|
if (_response.ok) {
|
2704
|
-
return
|
2926
|
+
return serializers.vitals.distance.Response.parseOrThrow(_response.body, {
|
2705
2927
|
unrecognizedObjectKeys: "passthrough",
|
2706
2928
|
allowUnrecognizedUnionMembers: true,
|
2707
2929
|
allowUnrecognizedEnumValues: true,
|
@@ -2711,7 +2933,7 @@ class Vitals {
|
|
2711
2933
|
if (_response.error.reason === "status-code") {
|
2712
2934
|
switch (_response.error.statusCode) {
|
2713
2935
|
case 422:
|
2714
|
-
throw new Vital.UnprocessableEntityError(
|
2936
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2715
2937
|
unrecognizedObjectKeys: "passthrough",
|
2716
2938
|
allowUnrecognizedUnionMembers: true,
|
2717
2939
|
allowUnrecognizedEnumValues: true,
|
@@ -2740,10 +2962,14 @@ class Vitals {
|
|
2740
2962
|
});
|
2741
2963
|
}
|
2742
2964
|
/**
|
2965
|
+
* @param {string} userId
|
2966
|
+
* @param {Vital.VitalsCaloriesBasalRequest} request
|
2967
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
2968
|
+
*
|
2743
2969
|
* @throws {@link Vital.UnprocessableEntityError}
|
2744
2970
|
*
|
2745
2971
|
* @example
|
2746
|
-
* await
|
2972
|
+
* await client.vitals.caloriesBasal("user_id", {
|
2747
2973
|
* startDate: "start_date"
|
2748
2974
|
* })
|
2749
2975
|
*/
|
@@ -2760,16 +2986,18 @@ class Vitals {
|
|
2760
2986
|
_queryParams["end_date"] = endDate;
|
2761
2987
|
}
|
2762
2988
|
const _response = yield core.fetcher({
|
2763
|
-
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`),
|
2989
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/calories_basal`),
|
2764
2990
|
method: "GET",
|
2765
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
2991
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2766
2992
|
contentType: "application/json",
|
2767
2993
|
queryParameters: _queryParams,
|
2994
|
+
requestType: "json",
|
2768
2995
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2769
2996
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
2997
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2770
2998
|
});
|
2771
2999
|
if (_response.ok) {
|
2772
|
-
return
|
3000
|
+
return serializers.vitals.caloriesBasal.Response.parseOrThrow(_response.body, {
|
2773
3001
|
unrecognizedObjectKeys: "passthrough",
|
2774
3002
|
allowUnrecognizedUnionMembers: true,
|
2775
3003
|
allowUnrecognizedEnumValues: true,
|
@@ -2779,7 +3007,7 @@ class Vitals {
|
|
2779
3007
|
if (_response.error.reason === "status-code") {
|
2780
3008
|
switch (_response.error.statusCode) {
|
2781
3009
|
case 422:
|
2782
|
-
throw new Vital.UnprocessableEntityError(
|
3010
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2783
3011
|
unrecognizedObjectKeys: "passthrough",
|
2784
3012
|
allowUnrecognizedUnionMembers: true,
|
2785
3013
|
allowUnrecognizedEnumValues: true,
|
@@ -2808,10 +3036,14 @@ class Vitals {
|
|
2808
3036
|
});
|
2809
3037
|
}
|
2810
3038
|
/**
|
3039
|
+
* @param {string} userId
|
3040
|
+
* @param {Vital.VitalsCaloriesActiveRequest} request
|
3041
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3042
|
+
*
|
2811
3043
|
* @throws {@link Vital.UnprocessableEntityError}
|
2812
3044
|
*
|
2813
3045
|
* @example
|
2814
|
-
* await
|
3046
|
+
* await client.vitals.caloriesActive("user_id", {
|
2815
3047
|
* startDate: "start_date"
|
2816
3048
|
* })
|
2817
3049
|
*/
|
@@ -2828,16 +3060,18 @@ class Vitals {
|
|
2828
3060
|
_queryParams["end_date"] = endDate;
|
2829
3061
|
}
|
2830
3062
|
const _response = yield core.fetcher({
|
2831
|
-
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`),
|
3063
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/calories_active`),
|
2832
3064
|
method: "GET",
|
2833
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3065
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2834
3066
|
contentType: "application/json",
|
2835
3067
|
queryParameters: _queryParams,
|
3068
|
+
requestType: "json",
|
2836
3069
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2837
3070
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3071
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2838
3072
|
});
|
2839
3073
|
if (_response.ok) {
|
2840
|
-
return
|
3074
|
+
return serializers.vitals.caloriesActive.Response.parseOrThrow(_response.body, {
|
2841
3075
|
unrecognizedObjectKeys: "passthrough",
|
2842
3076
|
allowUnrecognizedUnionMembers: true,
|
2843
3077
|
allowUnrecognizedEnumValues: true,
|
@@ -2847,7 +3081,7 @@ class Vitals {
|
|
2847
3081
|
if (_response.error.reason === "status-code") {
|
2848
3082
|
switch (_response.error.statusCode) {
|
2849
3083
|
case 422:
|
2850
|
-
throw new Vital.UnprocessableEntityError(
|
3084
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2851
3085
|
unrecognizedObjectKeys: "passthrough",
|
2852
3086
|
allowUnrecognizedUnionMembers: true,
|
2853
3087
|
allowUnrecognizedEnumValues: true,
|
@@ -2876,10 +3110,14 @@ class Vitals {
|
|
2876
3110
|
});
|
2877
3111
|
}
|
2878
3112
|
/**
|
3113
|
+
* @param {string} userId
|
3114
|
+
* @param {Vital.VitalsRespiratoryRateRequest} request
|
3115
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3116
|
+
*
|
2879
3117
|
* @throws {@link Vital.UnprocessableEntityError}
|
2880
3118
|
*
|
2881
3119
|
* @example
|
2882
|
-
* await
|
3120
|
+
* await client.vitals.respiratoryRate("user_id", {
|
2883
3121
|
* startDate: "start_date"
|
2884
3122
|
* })
|
2885
3123
|
*/
|
@@ -2896,16 +3134,18 @@ class Vitals {
|
|
2896
3134
|
_queryParams["end_date"] = endDate;
|
2897
3135
|
}
|
2898
3136
|
const _response = yield core.fetcher({
|
2899
|
-
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`),
|
3137
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/respiratory_rate`),
|
2900
3138
|
method: "GET",
|
2901
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3139
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2902
3140
|
contentType: "application/json",
|
2903
3141
|
queryParameters: _queryParams,
|
3142
|
+
requestType: "json",
|
2904
3143
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2905
3144
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3145
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2906
3146
|
});
|
2907
3147
|
if (_response.ok) {
|
2908
|
-
return
|
3148
|
+
return serializers.vitals.respiratoryRate.Response.parseOrThrow(_response.body, {
|
2909
3149
|
unrecognizedObjectKeys: "passthrough",
|
2910
3150
|
allowUnrecognizedUnionMembers: true,
|
2911
3151
|
allowUnrecognizedEnumValues: true,
|
@@ -2915,7 +3155,7 @@ class Vitals {
|
|
2915
3155
|
if (_response.error.reason === "status-code") {
|
2916
3156
|
switch (_response.error.statusCode) {
|
2917
3157
|
case 422:
|
2918
|
-
throw new Vital.UnprocessableEntityError(
|
3158
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2919
3159
|
unrecognizedObjectKeys: "passthrough",
|
2920
3160
|
allowUnrecognizedUnionMembers: true,
|
2921
3161
|
allowUnrecognizedEnumValues: true,
|
@@ -2944,10 +3184,14 @@ class Vitals {
|
|
2944
3184
|
});
|
2945
3185
|
}
|
2946
3186
|
/**
|
3187
|
+
* @param {string} userId
|
3188
|
+
* @param {Vital.VitalsIgeRequest} request
|
3189
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3190
|
+
*
|
2947
3191
|
* @throws {@link Vital.UnprocessableEntityError}
|
2948
3192
|
*
|
2949
3193
|
* @example
|
2950
|
-
* await
|
3194
|
+
* await client.vitals.ige("user_id", {
|
2951
3195
|
* startDate: "start_date"
|
2952
3196
|
* })
|
2953
3197
|
*/
|
@@ -2964,16 +3208,18 @@ class Vitals {
|
|
2964
3208
|
_queryParams["end_date"] = endDate;
|
2965
3209
|
}
|
2966
3210
|
const _response = yield core.fetcher({
|
2967
|
-
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`),
|
3211
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/ige`),
|
2968
3212
|
method: "GET",
|
2969
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3213
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
2970
3214
|
contentType: "application/json",
|
2971
3215
|
queryParameters: _queryParams,
|
3216
|
+
requestType: "json",
|
2972
3217
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
2973
3218
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3219
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
2974
3220
|
});
|
2975
3221
|
if (_response.ok) {
|
2976
|
-
return
|
3222
|
+
return serializers.vitals.ige.Response.parseOrThrow(_response.body, {
|
2977
3223
|
unrecognizedObjectKeys: "passthrough",
|
2978
3224
|
allowUnrecognizedUnionMembers: true,
|
2979
3225
|
allowUnrecognizedEnumValues: true,
|
@@ -2983,7 +3229,7 @@ class Vitals {
|
|
2983
3229
|
if (_response.error.reason === "status-code") {
|
2984
3230
|
switch (_response.error.statusCode) {
|
2985
3231
|
case 422:
|
2986
|
-
throw new Vital.UnprocessableEntityError(
|
3232
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
2987
3233
|
unrecognizedObjectKeys: "passthrough",
|
2988
3234
|
allowUnrecognizedUnionMembers: true,
|
2989
3235
|
allowUnrecognizedEnumValues: true,
|
@@ -3012,10 +3258,14 @@ class Vitals {
|
|
3012
3258
|
});
|
3013
3259
|
}
|
3014
3260
|
/**
|
3261
|
+
* @param {string} userId
|
3262
|
+
* @param {Vital.VitalsIggRequest} request
|
3263
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3264
|
+
*
|
3015
3265
|
* @throws {@link Vital.UnprocessableEntityError}
|
3016
3266
|
*
|
3017
3267
|
* @example
|
3018
|
-
* await
|
3268
|
+
* await client.vitals.igg("user_id", {
|
3019
3269
|
* startDate: "start_date"
|
3020
3270
|
* })
|
3021
3271
|
*/
|
@@ -3032,16 +3282,18 @@ class Vitals {
|
|
3032
3282
|
_queryParams["end_date"] = endDate;
|
3033
3283
|
}
|
3034
3284
|
const _response = yield core.fetcher({
|
3035
|
-
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`),
|
3285
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/igg`),
|
3036
3286
|
method: "GET",
|
3037
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3287
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3038
3288
|
contentType: "application/json",
|
3039
3289
|
queryParameters: _queryParams,
|
3290
|
+
requestType: "json",
|
3040
3291
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3041
3292
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3293
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3042
3294
|
});
|
3043
3295
|
if (_response.ok) {
|
3044
|
-
return
|
3296
|
+
return serializers.vitals.igg.Response.parseOrThrow(_response.body, {
|
3045
3297
|
unrecognizedObjectKeys: "passthrough",
|
3046
3298
|
allowUnrecognizedUnionMembers: true,
|
3047
3299
|
allowUnrecognizedEnumValues: true,
|
@@ -3051,7 +3303,7 @@ class Vitals {
|
|
3051
3303
|
if (_response.error.reason === "status-code") {
|
3052
3304
|
switch (_response.error.statusCode) {
|
3053
3305
|
case 422:
|
3054
|
-
throw new Vital.UnprocessableEntityError(
|
3306
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3055
3307
|
unrecognizedObjectKeys: "passthrough",
|
3056
3308
|
allowUnrecognizedUnionMembers: true,
|
3057
3309
|
allowUnrecognizedEnumValues: true,
|
@@ -3080,10 +3332,14 @@ class Vitals {
|
|
3080
3332
|
});
|
3081
3333
|
}
|
3082
3334
|
/**
|
3335
|
+
* @param {string} userId
|
3336
|
+
* @param {Vital.VitalsHypnogramRequest} request
|
3337
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3338
|
+
*
|
3083
3339
|
* @throws {@link Vital.UnprocessableEntityError}
|
3084
3340
|
*
|
3085
3341
|
* @example
|
3086
|
-
* await
|
3342
|
+
* await client.vitals.hypnogram("user_id", {
|
3087
3343
|
* startDate: "start_date"
|
3088
3344
|
* })
|
3089
3345
|
*/
|
@@ -3100,16 +3356,18 @@ class Vitals {
|
|
3100
3356
|
_queryParams["end_date"] = endDate;
|
3101
3357
|
}
|
3102
3358
|
const _response = yield core.fetcher({
|
3103
|
-
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`),
|
3359
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/hypnogram`),
|
3104
3360
|
method: "GET",
|
3105
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3361
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3106
3362
|
contentType: "application/json",
|
3107
3363
|
queryParameters: _queryParams,
|
3364
|
+
requestType: "json",
|
3108
3365
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3109
3366
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3367
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3110
3368
|
});
|
3111
3369
|
if (_response.ok) {
|
3112
|
-
return
|
3370
|
+
return serializers.vitals.hypnogram.Response.parseOrThrow(_response.body, {
|
3113
3371
|
unrecognizedObjectKeys: "passthrough",
|
3114
3372
|
allowUnrecognizedUnionMembers: true,
|
3115
3373
|
allowUnrecognizedEnumValues: true,
|
@@ -3119,7 +3377,7 @@ class Vitals {
|
|
3119
3377
|
if (_response.error.reason === "status-code") {
|
3120
3378
|
switch (_response.error.statusCode) {
|
3121
3379
|
case 422:
|
3122
|
-
throw new Vital.UnprocessableEntityError(
|
3380
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3123
3381
|
unrecognizedObjectKeys: "passthrough",
|
3124
3382
|
allowUnrecognizedUnionMembers: true,
|
3125
3383
|
allowUnrecognizedEnumValues: true,
|
@@ -3148,10 +3406,14 @@ class Vitals {
|
|
3148
3406
|
});
|
3149
3407
|
}
|
3150
3408
|
/**
|
3409
|
+
* @param {string} userId
|
3410
|
+
* @param {Vital.VitalsHrvRequest} request
|
3411
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3412
|
+
*
|
3151
3413
|
* @throws {@link Vital.UnprocessableEntityError}
|
3152
3414
|
*
|
3153
3415
|
* @example
|
3154
|
-
* await
|
3416
|
+
* await client.vitals.hrv("user_id", {
|
3155
3417
|
* startDate: "start_date"
|
3156
3418
|
* })
|
3157
3419
|
*/
|
@@ -3168,16 +3430,18 @@ class Vitals {
|
|
3168
3430
|
_queryParams["end_date"] = endDate;
|
3169
3431
|
}
|
3170
3432
|
const _response = yield core.fetcher({
|
3171
|
-
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`),
|
3433
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/hrv`),
|
3172
3434
|
method: "GET",
|
3173
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3435
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3174
3436
|
contentType: "application/json",
|
3175
3437
|
queryParameters: _queryParams,
|
3438
|
+
requestType: "json",
|
3176
3439
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3177
3440
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3441
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3178
3442
|
});
|
3179
3443
|
if (_response.ok) {
|
3180
|
-
return
|
3444
|
+
return serializers.vitals.hrv.Response.parseOrThrow(_response.body, {
|
3181
3445
|
unrecognizedObjectKeys: "passthrough",
|
3182
3446
|
allowUnrecognizedUnionMembers: true,
|
3183
3447
|
allowUnrecognizedEnumValues: true,
|
@@ -3187,7 +3451,7 @@ class Vitals {
|
|
3187
3451
|
if (_response.error.reason === "status-code") {
|
3188
3452
|
switch (_response.error.statusCode) {
|
3189
3453
|
case 422:
|
3190
|
-
throw new Vital.UnprocessableEntityError(
|
3454
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3191
3455
|
unrecognizedObjectKeys: "passthrough",
|
3192
3456
|
allowUnrecognizedUnionMembers: true,
|
3193
3457
|
allowUnrecognizedEnumValues: true,
|
@@ -3216,10 +3480,14 @@ class Vitals {
|
|
3216
3480
|
});
|
3217
3481
|
}
|
3218
3482
|
/**
|
3483
|
+
* @param {string} userId
|
3484
|
+
* @param {Vital.VitalsHeartrateRequest} request
|
3485
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3486
|
+
*
|
3219
3487
|
* @throws {@link Vital.UnprocessableEntityError}
|
3220
3488
|
*
|
3221
3489
|
* @example
|
3222
|
-
* await
|
3490
|
+
* await client.vitals.heartrate("user_id", {
|
3223
3491
|
* startDate: "start_date"
|
3224
3492
|
* })
|
3225
3493
|
*/
|
@@ -3236,16 +3504,18 @@ class Vitals {
|
|
3236
3504
|
_queryParams["end_date"] = endDate;
|
3237
3505
|
}
|
3238
3506
|
const _response = yield core.fetcher({
|
3239
|
-
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`),
|
3507
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/heartrate`),
|
3240
3508
|
method: "GET",
|
3241
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3509
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3242
3510
|
contentType: "application/json",
|
3243
3511
|
queryParameters: _queryParams,
|
3512
|
+
requestType: "json",
|
3244
3513
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3245
3514
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3515
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3246
3516
|
});
|
3247
3517
|
if (_response.ok) {
|
3248
|
-
return
|
3518
|
+
return serializers.vitals.heartrate.Response.parseOrThrow(_response.body, {
|
3249
3519
|
unrecognizedObjectKeys: "passthrough",
|
3250
3520
|
allowUnrecognizedUnionMembers: true,
|
3251
3521
|
allowUnrecognizedEnumValues: true,
|
@@ -3255,7 +3525,7 @@ class Vitals {
|
|
3255
3525
|
if (_response.error.reason === "status-code") {
|
3256
3526
|
switch (_response.error.statusCode) {
|
3257
3527
|
case 422:
|
3258
|
-
throw new Vital.UnprocessableEntityError(
|
3528
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3259
3529
|
unrecognizedObjectKeys: "passthrough",
|
3260
3530
|
allowUnrecognizedUnionMembers: true,
|
3261
3531
|
allowUnrecognizedEnumValues: true,
|
@@ -3284,10 +3554,14 @@ class Vitals {
|
|
3284
3554
|
});
|
3285
3555
|
}
|
3286
3556
|
/**
|
3557
|
+
* @param {string} userId
|
3558
|
+
* @param {Vital.VitalsGlucoseRequest} request
|
3559
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3560
|
+
*
|
3287
3561
|
* @throws {@link Vital.UnprocessableEntityError}
|
3288
3562
|
*
|
3289
3563
|
* @example
|
3290
|
-
* await
|
3564
|
+
* await client.vitals.glucose("user_id", {
|
3291
3565
|
* startDate: "start_date"
|
3292
3566
|
* })
|
3293
3567
|
*/
|
@@ -3304,16 +3578,18 @@ class Vitals {
|
|
3304
3578
|
_queryParams["end_date"] = endDate;
|
3305
3579
|
}
|
3306
3580
|
const _response = yield core.fetcher({
|
3307
|
-
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`),
|
3581
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/glucose`),
|
3308
3582
|
method: "GET",
|
3309
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3583
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3310
3584
|
contentType: "application/json",
|
3311
3585
|
queryParameters: _queryParams,
|
3586
|
+
requestType: "json",
|
3312
3587
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3313
3588
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3589
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3314
3590
|
});
|
3315
3591
|
if (_response.ok) {
|
3316
|
-
return
|
3592
|
+
return serializers.vitals.glucose.Response.parseOrThrow(_response.body, {
|
3317
3593
|
unrecognizedObjectKeys: "passthrough",
|
3318
3594
|
allowUnrecognizedUnionMembers: true,
|
3319
3595
|
allowUnrecognizedEnumValues: true,
|
@@ -3323,7 +3599,7 @@ class Vitals {
|
|
3323
3599
|
if (_response.error.reason === "status-code") {
|
3324
3600
|
switch (_response.error.statusCode) {
|
3325
3601
|
case 422:
|
3326
|
-
throw new Vital.UnprocessableEntityError(
|
3602
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3327
3603
|
unrecognizedObjectKeys: "passthrough",
|
3328
3604
|
allowUnrecognizedUnionMembers: true,
|
3329
3605
|
allowUnrecognizedEnumValues: true,
|
@@ -3352,10 +3628,14 @@ class Vitals {
|
|
3352
3628
|
});
|
3353
3629
|
}
|
3354
3630
|
/**
|
3631
|
+
* @param {string} userId
|
3632
|
+
* @param {Vital.VitalsCholesterolTriglyceridesRequest} request
|
3633
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3634
|
+
*
|
3355
3635
|
* @throws {@link Vital.UnprocessableEntityError}
|
3356
3636
|
*
|
3357
3637
|
* @example
|
3358
|
-
* await
|
3638
|
+
* await client.vitals.cholesterolTriglycerides("user_id", {
|
3359
3639
|
* startDate: "start_date"
|
3360
3640
|
* })
|
3361
3641
|
*/
|
@@ -3372,16 +3652,18 @@ class Vitals {
|
|
3372
3652
|
_queryParams["end_date"] = endDate;
|
3373
3653
|
}
|
3374
3654
|
const _response = yield core.fetcher({
|
3375
|
-
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`),
|
3655
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/triglycerides`),
|
3376
3656
|
method: "GET",
|
3377
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3657
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3378
3658
|
contentType: "application/json",
|
3379
3659
|
queryParameters: _queryParams,
|
3660
|
+
requestType: "json",
|
3380
3661
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3381
3662
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3663
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3382
3664
|
});
|
3383
3665
|
if (_response.ok) {
|
3384
|
-
return
|
3666
|
+
return serializers.vitals.cholesterolTriglycerides.Response.parseOrThrow(_response.body, {
|
3385
3667
|
unrecognizedObjectKeys: "passthrough",
|
3386
3668
|
allowUnrecognizedUnionMembers: true,
|
3387
3669
|
allowUnrecognizedEnumValues: true,
|
@@ -3391,7 +3673,7 @@ class Vitals {
|
|
3391
3673
|
if (_response.error.reason === "status-code") {
|
3392
3674
|
switch (_response.error.statusCode) {
|
3393
3675
|
case 422:
|
3394
|
-
throw new Vital.UnprocessableEntityError(
|
3676
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3395
3677
|
unrecognizedObjectKeys: "passthrough",
|
3396
3678
|
allowUnrecognizedUnionMembers: true,
|
3397
3679
|
allowUnrecognizedEnumValues: true,
|
@@ -3420,10 +3702,14 @@ class Vitals {
|
|
3420
3702
|
});
|
3421
3703
|
}
|
3422
3704
|
/**
|
3705
|
+
* @param {string} userId
|
3706
|
+
* @param {Vital.VitalsCholesterolTotalRequest} request
|
3707
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3708
|
+
*
|
3423
3709
|
* @throws {@link Vital.UnprocessableEntityError}
|
3424
3710
|
*
|
3425
3711
|
* @example
|
3426
|
-
* await
|
3712
|
+
* await client.vitals.cholesterolTotal("user_id", {
|
3427
3713
|
* startDate: "start_date"
|
3428
3714
|
* })
|
3429
3715
|
*/
|
@@ -3440,16 +3726,18 @@ class Vitals {
|
|
3440
3726
|
_queryParams["end_date"] = endDate;
|
3441
3727
|
}
|
3442
3728
|
const _response = yield core.fetcher({
|
3443
|
-
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`),
|
3729
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/total`),
|
3444
3730
|
method: "GET",
|
3445
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3731
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3446
3732
|
contentType: "application/json",
|
3447
3733
|
queryParameters: _queryParams,
|
3734
|
+
requestType: "json",
|
3448
3735
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3449
3736
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3737
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3450
3738
|
});
|
3451
3739
|
if (_response.ok) {
|
3452
|
-
return
|
3740
|
+
return serializers.vitals.cholesterolTotal.Response.parseOrThrow(_response.body, {
|
3453
3741
|
unrecognizedObjectKeys: "passthrough",
|
3454
3742
|
allowUnrecognizedUnionMembers: true,
|
3455
3743
|
allowUnrecognizedEnumValues: true,
|
@@ -3459,7 +3747,7 @@ class Vitals {
|
|
3459
3747
|
if (_response.error.reason === "status-code") {
|
3460
3748
|
switch (_response.error.statusCode) {
|
3461
3749
|
case 422:
|
3462
|
-
throw new Vital.UnprocessableEntityError(
|
3750
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3463
3751
|
unrecognizedObjectKeys: "passthrough",
|
3464
3752
|
allowUnrecognizedUnionMembers: true,
|
3465
3753
|
allowUnrecognizedEnumValues: true,
|
@@ -3488,10 +3776,14 @@ class Vitals {
|
|
3488
3776
|
});
|
3489
3777
|
}
|
3490
3778
|
/**
|
3779
|
+
* @param {string} userId
|
3780
|
+
* @param {Vital.VitalsCholesterolLdlRequest} request
|
3781
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3782
|
+
*
|
3491
3783
|
* @throws {@link Vital.UnprocessableEntityError}
|
3492
3784
|
*
|
3493
3785
|
* @example
|
3494
|
-
* await
|
3786
|
+
* await client.vitals.cholesterolLdl("user_id", {
|
3495
3787
|
* startDate: "start_date"
|
3496
3788
|
* })
|
3497
3789
|
*/
|
@@ -3508,16 +3800,18 @@ class Vitals {
|
|
3508
3800
|
_queryParams["end_date"] = endDate;
|
3509
3801
|
}
|
3510
3802
|
const _response = yield core.fetcher({
|
3511
|
-
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`),
|
3803
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/ldl`),
|
3512
3804
|
method: "GET",
|
3513
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3805
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3514
3806
|
contentType: "application/json",
|
3515
3807
|
queryParameters: _queryParams,
|
3808
|
+
requestType: "json",
|
3516
3809
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3517
3810
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3811
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3518
3812
|
});
|
3519
3813
|
if (_response.ok) {
|
3520
|
-
return
|
3814
|
+
return serializers.vitals.cholesterolLdl.Response.parseOrThrow(_response.body, {
|
3521
3815
|
unrecognizedObjectKeys: "passthrough",
|
3522
3816
|
allowUnrecognizedUnionMembers: true,
|
3523
3817
|
allowUnrecognizedEnumValues: true,
|
@@ -3527,7 +3821,7 @@ class Vitals {
|
|
3527
3821
|
if (_response.error.reason === "status-code") {
|
3528
3822
|
switch (_response.error.statusCode) {
|
3529
3823
|
case 422:
|
3530
|
-
throw new Vital.UnprocessableEntityError(
|
3824
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3531
3825
|
unrecognizedObjectKeys: "passthrough",
|
3532
3826
|
allowUnrecognizedUnionMembers: true,
|
3533
3827
|
allowUnrecognizedEnumValues: true,
|
@@ -3556,10 +3850,14 @@ class Vitals {
|
|
3556
3850
|
});
|
3557
3851
|
}
|
3558
3852
|
/**
|
3853
|
+
* @param {string} userId
|
3854
|
+
* @param {Vital.VitalsCholesterolHdlRequest} request
|
3855
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3856
|
+
*
|
3559
3857
|
* @throws {@link Vital.UnprocessableEntityError}
|
3560
3858
|
*
|
3561
3859
|
* @example
|
3562
|
-
* await
|
3860
|
+
* await client.vitals.cholesterolHdl("user_id", {
|
3563
3861
|
* startDate: "start_date"
|
3564
3862
|
* })
|
3565
3863
|
*/
|
@@ -3576,16 +3874,18 @@ class Vitals {
|
|
3576
3874
|
_queryParams["end_date"] = endDate;
|
3577
3875
|
}
|
3578
3876
|
const _response = yield core.fetcher({
|
3579
|
-
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`),
|
3877
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol/hdl`),
|
3580
3878
|
method: "GET",
|
3581
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3879
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3582
3880
|
contentType: "application/json",
|
3583
3881
|
queryParameters: _queryParams,
|
3882
|
+
requestType: "json",
|
3584
3883
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3585
3884
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3885
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3586
3886
|
});
|
3587
3887
|
if (_response.ok) {
|
3588
|
-
return
|
3888
|
+
return serializers.vitals.cholesterolHdl.Response.parseOrThrow(_response.body, {
|
3589
3889
|
unrecognizedObjectKeys: "passthrough",
|
3590
3890
|
allowUnrecognizedUnionMembers: true,
|
3591
3891
|
allowUnrecognizedEnumValues: true,
|
@@ -3595,7 +3895,7 @@ class Vitals {
|
|
3595
3895
|
if (_response.error.reason === "status-code") {
|
3596
3896
|
switch (_response.error.statusCode) {
|
3597
3897
|
case 422:
|
3598
|
-
throw new Vital.UnprocessableEntityError(
|
3898
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3599
3899
|
unrecognizedObjectKeys: "passthrough",
|
3600
3900
|
allowUnrecognizedUnionMembers: true,
|
3601
3901
|
allowUnrecognizedEnumValues: true,
|
@@ -3624,10 +3924,14 @@ class Vitals {
|
|
3624
3924
|
});
|
3625
3925
|
}
|
3626
3926
|
/**
|
3927
|
+
* @param {string} userId
|
3928
|
+
* @param {Vital.VitalsCholesterolRequest} request
|
3929
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
3930
|
+
*
|
3627
3931
|
* @throws {@link Vital.UnprocessableEntityError}
|
3628
3932
|
*
|
3629
3933
|
* @example
|
3630
|
-
* await
|
3934
|
+
* await client.vitals.cholesterol("user_id", {
|
3631
3935
|
* startDate: "start_date"
|
3632
3936
|
* })
|
3633
3937
|
*/
|
@@ -3644,16 +3948,18 @@ class Vitals {
|
|
3644
3948
|
_queryParams["end_date"] = endDate;
|
3645
3949
|
}
|
3646
3950
|
const _response = yield core.fetcher({
|
3647
|
-
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`),
|
3951
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/cholesterol`),
|
3648
3952
|
method: "GET",
|
3649
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
3953
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3650
3954
|
contentType: "application/json",
|
3651
3955
|
queryParameters: _queryParams,
|
3956
|
+
requestType: "json",
|
3652
3957
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3653
3958
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
3959
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3654
3960
|
});
|
3655
3961
|
if (_response.ok) {
|
3656
|
-
return
|
3962
|
+
return serializers.vitals.cholesterol.Response.parseOrThrow(_response.body, {
|
3657
3963
|
unrecognizedObjectKeys: "passthrough",
|
3658
3964
|
allowUnrecognizedUnionMembers: true,
|
3659
3965
|
allowUnrecognizedEnumValues: true,
|
@@ -3663,7 +3969,7 @@ class Vitals {
|
|
3663
3969
|
if (_response.error.reason === "status-code") {
|
3664
3970
|
switch (_response.error.statusCode) {
|
3665
3971
|
case 422:
|
3666
|
-
throw new Vital.UnprocessableEntityError(
|
3972
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3667
3973
|
unrecognizedObjectKeys: "passthrough",
|
3668
3974
|
allowUnrecognizedUnionMembers: true,
|
3669
3975
|
allowUnrecognizedEnumValues: true,
|
@@ -3692,10 +3998,14 @@ class Vitals {
|
|
3692
3998
|
});
|
3693
3999
|
}
|
3694
4000
|
/**
|
4001
|
+
* @param {string} userId
|
4002
|
+
* @param {Vital.VitalsBodyWeightRequest} request
|
4003
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
4004
|
+
*
|
3695
4005
|
* @throws {@link Vital.UnprocessableEntityError}
|
3696
4006
|
*
|
3697
4007
|
* @example
|
3698
|
-
* await
|
4008
|
+
* await client.vitals.bodyWeight("user_id", {
|
3699
4009
|
* startDate: "start_date"
|
3700
4010
|
* })
|
3701
4011
|
*/
|
@@ -3712,16 +4022,18 @@ class Vitals {
|
|
3712
4022
|
_queryParams["end_date"] = endDate;
|
3713
4023
|
}
|
3714
4024
|
const _response = yield core.fetcher({
|
3715
|
-
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}/body_weight`),
|
4025
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_weight`),
|
3716
4026
|
method: "GET",
|
3717
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
4027
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3718
4028
|
contentType: "application/json",
|
3719
4029
|
queryParameters: _queryParams,
|
4030
|
+
requestType: "json",
|
3720
4031
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3721
4032
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
4033
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3722
4034
|
});
|
3723
4035
|
if (_response.ok) {
|
3724
|
-
return
|
4036
|
+
return serializers.vitals.bodyWeight.Response.parseOrThrow(_response.body, {
|
3725
4037
|
unrecognizedObjectKeys: "passthrough",
|
3726
4038
|
allowUnrecognizedUnionMembers: true,
|
3727
4039
|
allowUnrecognizedEnumValues: true,
|
@@ -3731,7 +4043,7 @@ class Vitals {
|
|
3731
4043
|
if (_response.error.reason === "status-code") {
|
3732
4044
|
switch (_response.error.statusCode) {
|
3733
4045
|
case 422:
|
3734
|
-
throw new Vital.UnprocessableEntityError(
|
4046
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3735
4047
|
unrecognizedObjectKeys: "passthrough",
|
3736
4048
|
allowUnrecognizedUnionMembers: true,
|
3737
4049
|
allowUnrecognizedEnumValues: true,
|
@@ -3760,10 +4072,14 @@ class Vitals {
|
|
3760
4072
|
});
|
3761
4073
|
}
|
3762
4074
|
/**
|
4075
|
+
* @param {string} userId
|
4076
|
+
* @param {Vital.VitalsBodyFatRequest} request
|
4077
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
4078
|
+
*
|
3763
4079
|
* @throws {@link Vital.UnprocessableEntityError}
|
3764
4080
|
*
|
3765
4081
|
* @example
|
3766
|
-
* await
|
4082
|
+
* await client.vitals.bodyFat("user_id", {
|
3767
4083
|
* startDate: "start_date"
|
3768
4084
|
* })
|
3769
4085
|
*/
|
@@ -3780,16 +4096,18 @@ class Vitals {
|
|
3780
4096
|
_queryParams["end_date"] = endDate;
|
3781
4097
|
}
|
3782
4098
|
const _response = yield core.fetcher({
|
3783
|
-
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}/body_fat`),
|
4099
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/body_fat`),
|
3784
4100
|
method: "GET",
|
3785
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
4101
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3786
4102
|
contentType: "application/json",
|
3787
4103
|
queryParameters: _queryParams,
|
4104
|
+
requestType: "json",
|
3788
4105
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3789
4106
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
4107
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3790
4108
|
});
|
3791
4109
|
if (_response.ok) {
|
3792
|
-
return
|
4110
|
+
return serializers.vitals.bodyFat.Response.parseOrThrow(_response.body, {
|
3793
4111
|
unrecognizedObjectKeys: "passthrough",
|
3794
4112
|
allowUnrecognizedUnionMembers: true,
|
3795
4113
|
allowUnrecognizedEnumValues: true,
|
@@ -3799,7 +4117,7 @@ class Vitals {
|
|
3799
4117
|
if (_response.error.reason === "status-code") {
|
3800
4118
|
switch (_response.error.statusCode) {
|
3801
4119
|
case 422:
|
3802
|
-
throw new Vital.UnprocessableEntityError(
|
4120
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3803
4121
|
unrecognizedObjectKeys: "passthrough",
|
3804
4122
|
allowUnrecognizedUnionMembers: true,
|
3805
4123
|
allowUnrecognizedEnumValues: true,
|
@@ -3828,10 +4146,14 @@ class Vitals {
|
|
3828
4146
|
});
|
3829
4147
|
}
|
3830
4148
|
/**
|
4149
|
+
* @param {string} userId
|
4150
|
+
* @param {Vital.VitalsBloodOxygenRequest} request
|
4151
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
4152
|
+
*
|
3831
4153
|
* @throws {@link Vital.UnprocessableEntityError}
|
3832
4154
|
*
|
3833
4155
|
* @example
|
3834
|
-
* await
|
4156
|
+
* await client.vitals.bloodOxygen("user_id", {
|
3835
4157
|
* startDate: "start_date"
|
3836
4158
|
* })
|
3837
4159
|
*/
|
@@ -3848,16 +4170,18 @@ class Vitals {
|
|
3848
4170
|
_queryParams["end_date"] = endDate;
|
3849
4171
|
}
|
3850
4172
|
const _response = yield core.fetcher({
|
3851
|
-
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`),
|
4173
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/blood_oxygen`),
|
3852
4174
|
method: "GET",
|
3853
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
4175
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3854
4176
|
contentType: "application/json",
|
3855
4177
|
queryParameters: _queryParams,
|
4178
|
+
requestType: "json",
|
3856
4179
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3857
4180
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
4181
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3858
4182
|
});
|
3859
4183
|
if (_response.ok) {
|
3860
|
-
return
|
4184
|
+
return serializers.vitals.bloodOxygen.Response.parseOrThrow(_response.body, {
|
3861
4185
|
unrecognizedObjectKeys: "passthrough",
|
3862
4186
|
allowUnrecognizedUnionMembers: true,
|
3863
4187
|
allowUnrecognizedEnumValues: true,
|
@@ -3867,7 +4191,7 @@ class Vitals {
|
|
3867
4191
|
if (_response.error.reason === "status-code") {
|
3868
4192
|
switch (_response.error.statusCode) {
|
3869
4193
|
case 422:
|
3870
|
-
throw new Vital.UnprocessableEntityError(
|
4194
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3871
4195
|
unrecognizedObjectKeys: "passthrough",
|
3872
4196
|
allowUnrecognizedUnionMembers: true,
|
3873
4197
|
allowUnrecognizedEnumValues: true,
|
@@ -3896,10 +4220,14 @@ class Vitals {
|
|
3896
4220
|
});
|
3897
4221
|
}
|
3898
4222
|
/**
|
4223
|
+
* @param {string} userId
|
4224
|
+
* @param {Vital.VitalsElectrocardiogramVoltageRequest} request
|
4225
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
4226
|
+
*
|
3899
4227
|
* @throws {@link Vital.UnprocessableEntityError}
|
3900
4228
|
*
|
3901
4229
|
* @example
|
3902
|
-
* await
|
4230
|
+
* await client.vitals.electrocardiogramVoltage("user_id", {
|
3903
4231
|
* startDate: "start_date"
|
3904
4232
|
* })
|
3905
4233
|
*/
|
@@ -3916,16 +4244,18 @@ class Vitals {
|
|
3916
4244
|
_queryParams["end_date"] = endDate;
|
3917
4245
|
}
|
3918
4246
|
const _response = yield core.fetcher({
|
3919
|
-
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`),
|
4247
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/electrocardiogram_voltage`),
|
3920
4248
|
method: "GET",
|
3921
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
4249
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3922
4250
|
contentType: "application/json",
|
3923
4251
|
queryParameters: _queryParams,
|
4252
|
+
requestType: "json",
|
3924
4253
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3925
4254
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
4255
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3926
4256
|
});
|
3927
4257
|
if (_response.ok) {
|
3928
|
-
return
|
4258
|
+
return serializers.vitals.electrocardiogramVoltage.Response.parseOrThrow(_response.body, {
|
3929
4259
|
unrecognizedObjectKeys: "passthrough",
|
3930
4260
|
allowUnrecognizedUnionMembers: true,
|
3931
4261
|
allowUnrecognizedEnumValues: true,
|
@@ -3935,7 +4265,7 @@ class Vitals {
|
|
3935
4265
|
if (_response.error.reason === "status-code") {
|
3936
4266
|
switch (_response.error.statusCode) {
|
3937
4267
|
case 422:
|
3938
|
-
throw new Vital.UnprocessableEntityError(
|
4268
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
3939
4269
|
unrecognizedObjectKeys: "passthrough",
|
3940
4270
|
allowUnrecognizedUnionMembers: true,
|
3941
4271
|
allowUnrecognizedEnumValues: true,
|
@@ -3964,10 +4294,14 @@ class Vitals {
|
|
3964
4294
|
});
|
3965
4295
|
}
|
3966
4296
|
/**
|
4297
|
+
* @param {string} userId
|
4298
|
+
* @param {Vital.VitalsBloodPressureRequest} request
|
4299
|
+
* @param {Vitals.RequestOptions} requestOptions - Request-specific configuration.
|
4300
|
+
*
|
3967
4301
|
* @throws {@link Vital.UnprocessableEntityError}
|
3968
4302
|
*
|
3969
4303
|
* @example
|
3970
|
-
* await
|
4304
|
+
* await client.vitals.bloodPressure("user_id", {
|
3971
4305
|
* startDate: "start_date"
|
3972
4306
|
* })
|
3973
4307
|
*/
|
@@ -3984,16 +4318,18 @@ class Vitals {
|
|
3984
4318
|
_queryParams["end_date"] = endDate;
|
3985
4319
|
}
|
3986
4320
|
const _response = yield core.fetcher({
|
3987
|
-
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`),
|
4321
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v2/timeseries/${encodeURIComponent(userId)}/blood_pressure`),
|
3988
4322
|
method: "GET",
|
3989
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
4323
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.71", "User-Agent": "@tryvital/vital-node/3.1.71", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
3990
4324
|
contentType: "application/json",
|
3991
4325
|
queryParameters: _queryParams,
|
4326
|
+
requestType: "json",
|
3992
4327
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
3993
4328
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
4329
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
3994
4330
|
});
|
3995
4331
|
if (_response.ok) {
|
3996
|
-
return
|
4332
|
+
return serializers.vitals.bloodPressure.Response.parseOrThrow(_response.body, {
|
3997
4333
|
unrecognizedObjectKeys: "passthrough",
|
3998
4334
|
allowUnrecognizedUnionMembers: true,
|
3999
4335
|
allowUnrecognizedEnumValues: true,
|
@@ -4003,7 +4339,7 @@ class Vitals {
|
|
4003
4339
|
if (_response.error.reason === "status-code") {
|
4004
4340
|
switch (_response.error.statusCode) {
|
4005
4341
|
case 422:
|
4006
|
-
throw new Vital.UnprocessableEntityError(
|
4342
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
4007
4343
|
unrecognizedObjectKeys: "passthrough",
|
4008
4344
|
allowUnrecognizedUnionMembers: true,
|
4009
4345
|
allowUnrecognizedEnumValues: true,
|