@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
@@ -1,13 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
exports.getObjectUtils = exports.object = void 0;
|
13
4
|
const Schema_1 = require("../../Schema");
|
@@ -23,9 +14,9 @@ const schema_utils_1 = require("../schema-utils");
|
|
23
14
|
const property_1 = require("./property");
|
24
15
|
function object(schemas) {
|
25
16
|
const baseSchema = {
|
26
|
-
_getRawProperties: () =>
|
27
|
-
_getParsedProperties: () =>
|
28
|
-
parse: (raw, opts) =>
|
17
|
+
_getRawProperties: () => Object.entries(schemas).map(([parsedKey, propertySchema]) => (0, property_1.isProperty)(propertySchema) ? propertySchema.rawKey : parsedKey),
|
18
|
+
_getParsedProperties: () => (0, keys_1.keys)(schemas),
|
19
|
+
parse: (raw, opts) => {
|
29
20
|
const rawKeyToProperty = {};
|
30
21
|
const requiredKeys = [];
|
31
22
|
for (const [parsedKey, schemaOrObjectProperty] of (0, entries_1.entries)(schemas)) {
|
@@ -62,9 +53,10 @@ function object(schemas) {
|
|
62
53
|
unrecognizedObjectKeys: opts === null || opts === void 0 ? void 0 : opts.unrecognizedObjectKeys,
|
63
54
|
skipValidation: opts === null || opts === void 0 ? void 0 : opts.skipValidation,
|
64
55
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
56
|
+
omitUndefined: opts === null || opts === void 0 ? void 0 : opts.omitUndefined,
|
65
57
|
});
|
66
|
-
}
|
67
|
-
json: (parsed, opts) =>
|
58
|
+
},
|
59
|
+
json: (parsed, opts) => {
|
68
60
|
const requiredKeys = [];
|
69
61
|
for (const [parsedKey, schemaOrObjectProperty] of (0, entries_1.entries)(schemas)) {
|
70
62
|
const valueSchema = (0, property_1.isProperty)(schemaOrObjectProperty)
|
@@ -105,110 +97,99 @@ function object(schemas) {
|
|
105
97
|
unrecognizedObjectKeys: opts === null || opts === void 0 ? void 0 : opts.unrecognizedObjectKeys,
|
106
98
|
skipValidation: opts === null || opts === void 0 ? void 0 : opts.skipValidation,
|
107
99
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
100
|
+
omitUndefined: opts === null || opts === void 0 ? void 0 : opts.omitUndefined,
|
108
101
|
});
|
109
|
-
}
|
102
|
+
},
|
110
103
|
getType: () => Schema_1.SchemaType.OBJECT,
|
111
104
|
};
|
112
105
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
113
106
|
}
|
114
107
|
exports.object = object;
|
115
108
|
function validateAndTransformObject({ value, requiredKeys, getProperty, unrecognizedObjectKeys = "fail", skipValidation = false, breadcrumbsPrefix = [], }) {
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
transformed[property.transformedKey] = value.value;
|
138
|
-
}
|
139
|
-
else {
|
140
|
-
transformed[preTransformedKey] = preTransformedItemValue;
|
141
|
-
errors.push(...value.errors);
|
142
|
-
}
|
109
|
+
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
110
|
+
return {
|
111
|
+
ok: false,
|
112
|
+
errors: [
|
113
|
+
{
|
114
|
+
path: breadcrumbsPrefix,
|
115
|
+
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
|
116
|
+
},
|
117
|
+
],
|
118
|
+
};
|
119
|
+
}
|
120
|
+
const missingRequiredKeys = new Set(requiredKeys);
|
121
|
+
const errors = [];
|
122
|
+
const transformed = {};
|
123
|
+
for (const [preTransformedKey, preTransformedItemValue] of Object.entries(value)) {
|
124
|
+
const property = getProperty(preTransformedKey);
|
125
|
+
if (property != null) {
|
126
|
+
missingRequiredKeys.delete(preTransformedKey);
|
127
|
+
const value = property.transform(preTransformedItemValue);
|
128
|
+
if (value.ok) {
|
129
|
+
transformed[property.transformedKey] = value.value;
|
143
130
|
}
|
144
131
|
else {
|
145
|
-
|
146
|
-
|
147
|
-
errors.push({
|
148
|
-
path: [...breadcrumbsPrefix, preTransformedKey],
|
149
|
-
message: `Unexpected key "${preTransformedKey}"`,
|
150
|
-
});
|
151
|
-
break;
|
152
|
-
case "strip":
|
153
|
-
break;
|
154
|
-
case "passthrough":
|
155
|
-
transformed[preTransformedKey] = preTransformedItemValue;
|
156
|
-
break;
|
157
|
-
}
|
132
|
+
transformed[preTransformedKey] = preTransformedItemValue;
|
133
|
+
errors.push(...value.errors);
|
158
134
|
}
|
159
135
|
}
|
160
|
-
errors.push(...requiredKeys
|
161
|
-
.filter((key) => missingRequiredKeys.has(key))
|
162
|
-
.map((key) => ({
|
163
|
-
path: breadcrumbsPrefix,
|
164
|
-
message: `Missing required key "${key}"`,
|
165
|
-
})));
|
166
|
-
if (errors.length === 0 || skipValidation) {
|
167
|
-
return {
|
168
|
-
ok: true,
|
169
|
-
value: transformed,
|
170
|
-
};
|
171
|
-
}
|
172
136
|
else {
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
137
|
+
switch (unrecognizedObjectKeys) {
|
138
|
+
case "fail":
|
139
|
+
errors.push({
|
140
|
+
path: [...breadcrumbsPrefix, preTransformedKey],
|
141
|
+
message: `Unexpected key "${preTransformedKey}"`,
|
142
|
+
});
|
143
|
+
break;
|
144
|
+
case "strip":
|
145
|
+
break;
|
146
|
+
case "passthrough":
|
147
|
+
transformed[preTransformedKey] = preTransformedItemValue;
|
148
|
+
break;
|
149
|
+
}
|
177
150
|
}
|
178
|
-
}
|
151
|
+
}
|
152
|
+
errors.push(...requiredKeys
|
153
|
+
.filter((key) => missingRequiredKeys.has(key))
|
154
|
+
.map((key) => ({
|
155
|
+
path: breadcrumbsPrefix,
|
156
|
+
message: `Missing required key "${key}"`,
|
157
|
+
})));
|
158
|
+
if (errors.length === 0 || skipValidation) {
|
159
|
+
return {
|
160
|
+
ok: true,
|
161
|
+
value: transformed,
|
162
|
+
};
|
163
|
+
}
|
164
|
+
else {
|
165
|
+
return {
|
166
|
+
ok: false,
|
167
|
+
errors,
|
168
|
+
};
|
169
|
+
}
|
179
170
|
}
|
180
171
|
function getObjectUtils(schema) {
|
181
172
|
return {
|
182
173
|
extend: (extension) => {
|
183
174
|
const baseSchema = {
|
184
|
-
_getParsedProperties: () =>
|
185
|
-
|
186
|
-
|
187
|
-
...(yield extension._getParsedProperties()),
|
188
|
-
];
|
189
|
-
}),
|
190
|
-
_getRawProperties: () => __awaiter(this, void 0, void 0, function* () {
|
191
|
-
return [
|
192
|
-
...(yield schema._getRawProperties()),
|
193
|
-
...(yield extension._getRawProperties()),
|
194
|
-
];
|
195
|
-
}),
|
196
|
-
parse: (raw, opts) => __awaiter(this, void 0, void 0, function* () {
|
175
|
+
_getParsedProperties: () => [...schema._getParsedProperties(), ...extension._getParsedProperties()],
|
176
|
+
_getRawProperties: () => [...schema._getRawProperties(), ...extension._getRawProperties()],
|
177
|
+
parse: (raw, opts) => {
|
197
178
|
return validateAndTransformExtendedObject({
|
198
|
-
extensionKeys:
|
179
|
+
extensionKeys: extension._getRawProperties(),
|
199
180
|
value: raw,
|
200
181
|
transformBase: (rawBase) => schema.parse(rawBase, opts),
|
201
182
|
transformExtension: (rawExtension) => extension.parse(rawExtension, opts),
|
202
183
|
});
|
203
|
-
}
|
204
|
-
json: (parsed, opts) =>
|
184
|
+
},
|
185
|
+
json: (parsed, opts) => {
|
205
186
|
return validateAndTransformExtendedObject({
|
206
|
-
extensionKeys:
|
187
|
+
extensionKeys: extension._getParsedProperties(),
|
207
188
|
value: parsed,
|
208
189
|
transformBase: (parsedBase) => schema.json(parsedBase, opts),
|
209
190
|
transformExtension: (parsedExtension) => extension.json(parsedExtension, opts),
|
210
191
|
});
|
211
|
-
}
|
192
|
+
},
|
212
193
|
getType: () => Schema_1.SchemaType.OBJECT,
|
213
194
|
};
|
214
195
|
return Object.assign(Object.assign(Object.assign(Object.assign({}, baseSchema), (0, schema_utils_1.getSchemaUtils)(baseSchema)), (0, object_like_1.getObjectLikeUtils)(baseSchema)), getObjectUtils(baseSchema));
|
@@ -217,27 +198,25 @@ function getObjectUtils(schema) {
|
|
217
198
|
}
|
218
199
|
exports.getObjectUtils = getObjectUtils;
|
219
200
|
function validateAndTransformExtendedObject({ extensionKeys, value, transformBase, transformExtension, }) {
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
}
|
240
|
-
});
|
201
|
+
const extensionPropertiesSet = new Set(extensionKeys);
|
202
|
+
const [extensionProperties, baseProperties] = (0, partition_1.partition)((0, keys_1.keys)(value), (key) => extensionPropertiesSet.has(key));
|
203
|
+
const transformedBase = transformBase((0, filterObject_1.filterObject)(value, baseProperties));
|
204
|
+
const transformedExtension = transformExtension((0, filterObject_1.filterObject)(value, extensionProperties));
|
205
|
+
if (transformedBase.ok && transformedExtension.ok) {
|
206
|
+
return {
|
207
|
+
ok: true,
|
208
|
+
value: Object.assign(Object.assign({}, transformedBase.value), transformedExtension.value),
|
209
|
+
};
|
210
|
+
}
|
211
|
+
else {
|
212
|
+
return {
|
213
|
+
ok: false,
|
214
|
+
errors: [
|
215
|
+
...(transformedBase.ok ? [] : transformedBase.errors),
|
216
|
+
...(transformedExtension.ok ? [] : transformedExtension.errors),
|
217
|
+
],
|
218
|
+
};
|
219
|
+
}
|
241
220
|
}
|
242
221
|
function isSchemaRequired(schema) {
|
243
222
|
return !isSchemaOptional(schema);
|
@@ -5,8 +5,8 @@ import { SchemaUtils } from "../schema-utils";
|
|
5
5
|
import { Property } from "./property";
|
6
6
|
export declare type ObjectSchema<Raw, Parsed> = BaseObjectSchema<Raw, Parsed> & ObjectLikeUtils<Raw, Parsed> & ObjectUtils<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
|
7
7
|
export interface BaseObjectSchema<Raw, Parsed> extends BaseSchema<Raw, Parsed> {
|
8
|
-
_getRawProperties: () =>
|
9
|
-
_getParsedProperties: () =>
|
8
|
+
_getRawProperties: () => (keyof Raw)[];
|
9
|
+
_getParsedProperties: () => (keyof Parsed)[];
|
10
10
|
}
|
11
11
|
export interface ObjectUtils<Raw, Parsed> {
|
12
12
|
extend: <RawExtension, ParsedExtension>(schemas: ObjectSchema<RawExtension, ParsedExtension>) => ObjectSchema<Raw & RawExtension, Parsed & ParsedExtension>;
|
@@ -1,13 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
exports.withParsedProperties = exports.getObjectLikeUtils = void 0;
|
13
4
|
const filterObject_1 = require("../../utils/filterObject");
|
@@ -25,8 +16,8 @@ exports.getObjectLikeUtils = getObjectLikeUtils;
|
|
25
16
|
*/
|
26
17
|
function withParsedProperties(objectLike, properties) {
|
27
18
|
const objectSchema = {
|
28
|
-
parse: (raw, opts) =>
|
29
|
-
const parsedObject =
|
19
|
+
parse: (raw, opts) => {
|
20
|
+
const parsedObject = objectLike.parse(raw, opts);
|
30
21
|
if (!parsedObject.ok) {
|
31
22
|
return parsedObject;
|
32
23
|
}
|
@@ -37,7 +28,7 @@ function withParsedProperties(objectLike, properties) {
|
|
37
28
|
ok: true,
|
38
29
|
value: Object.assign(Object.assign({}, parsedObject.value), additionalProperties),
|
39
30
|
};
|
40
|
-
}
|
31
|
+
},
|
41
32
|
json: (parsed, opts) => {
|
42
33
|
var _a;
|
43
34
|
if (!(0, isPlainObject_1.isPlainObject)(parsed)) {
|
@@ -1,13 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
exports.record = void 0;
|
13
4
|
const Schema_1 = require("../../Schema");
|
@@ -18,10 +9,10 @@ const maybeSkipValidation_1 = require("../../utils/maybeSkipValidation");
|
|
18
9
|
const schema_utils_1 = require("../schema-utils");
|
19
10
|
function record(keySchema, valueSchema) {
|
20
11
|
const baseSchema = {
|
21
|
-
parse: (raw, opts) =>
|
12
|
+
parse: (raw, opts) => {
|
22
13
|
return validateAndTransformRecord({
|
23
14
|
value: raw,
|
24
|
-
isKeyNumeric:
|
15
|
+
isKeyNumeric: keySchema.getType() === Schema_1.SchemaType.NUMBER,
|
25
16
|
transformKey: (key) => {
|
26
17
|
var _a;
|
27
18
|
return keySchema.parse(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key} (key)`] }));
|
@@ -32,11 +23,11 @@ function record(keySchema, valueSchema) {
|
|
32
23
|
},
|
33
24
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
34
25
|
});
|
35
|
-
}
|
36
|
-
json: (parsed, opts) =>
|
26
|
+
},
|
27
|
+
json: (parsed, opts) => {
|
37
28
|
return validateAndTransformRecord({
|
38
29
|
value: parsed,
|
39
|
-
isKeyNumeric:
|
30
|
+
isKeyNumeric: keySchema.getType() === Schema_1.SchemaType.NUMBER,
|
40
31
|
transformKey: (key) => {
|
41
32
|
var _a;
|
42
33
|
return keySchema.json(key, Object.assign(Object.assign({}, opts), { breadcrumbsPrefix: [...((_a = opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix) !== null && _a !== void 0 ? _a : []), `${key} (key)`] }));
|
@@ -47,60 +38,58 @@ function record(keySchema, valueSchema) {
|
|
47
38
|
},
|
48
39
|
breadcrumbsPrefix: opts === null || opts === void 0 ? void 0 : opts.breadcrumbsPrefix,
|
49
40
|
});
|
50
|
-
}
|
41
|
+
},
|
51
42
|
getType: () => Schema_1.SchemaType.RECORD,
|
52
43
|
};
|
53
44
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|
54
45
|
}
|
55
46
|
exports.record = record;
|
56
47
|
function validateAndTransformRecord({ value, isKeyNumeric, transformKey, transformValue, breadcrumbsPrefix = [], }) {
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
48
|
+
if (!(0, isPlainObject_1.isPlainObject)(value)) {
|
49
|
+
return {
|
50
|
+
ok: false,
|
51
|
+
errors: [
|
52
|
+
{
|
53
|
+
path: breadcrumbsPrefix,
|
54
|
+
message: (0, getErrorMessageForIncorrectType_1.getErrorMessageForIncorrectType)(value, "object"),
|
55
|
+
},
|
56
|
+
],
|
57
|
+
};
|
58
|
+
}
|
59
|
+
return (0, entries_1.entries)(value).reduce((accPromise, [stringKey, value]) => {
|
60
|
+
// skip nullish keys
|
61
|
+
if (value == null) {
|
62
|
+
return accPromise;
|
68
63
|
}
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
let key = stringKey;
|
76
|
-
if (isKeyNumeric) {
|
77
|
-
const numberKey = stringKey.length > 0 ? Number(stringKey) : NaN;
|
78
|
-
if (!isNaN(numberKey)) {
|
79
|
-
key = numberKey;
|
80
|
-
}
|
81
|
-
}
|
82
|
-
const transformedKey = yield transformKey(key);
|
83
|
-
const transformedValue = yield transformValue(value, key);
|
84
|
-
if (acc.ok && transformedKey.ok && transformedValue.ok) {
|
85
|
-
return {
|
86
|
-
ok: true,
|
87
|
-
value: Object.assign(Object.assign({}, acc.value), { [transformedKey.value]: transformedValue.value }),
|
88
|
-
};
|
89
|
-
}
|
90
|
-
const errors = [];
|
91
|
-
if (!acc.ok) {
|
92
|
-
errors.push(...acc.errors);
|
93
|
-
}
|
94
|
-
if (!transformedKey.ok) {
|
95
|
-
errors.push(...transformedKey.errors);
|
96
|
-
}
|
97
|
-
if (!transformedValue.ok) {
|
98
|
-
errors.push(...transformedValue.errors);
|
64
|
+
const acc = accPromise;
|
65
|
+
let key = stringKey;
|
66
|
+
if (isKeyNumeric) {
|
67
|
+
const numberKey = stringKey.length > 0 ? Number(stringKey) : NaN;
|
68
|
+
if (!isNaN(numberKey)) {
|
69
|
+
key = numberKey;
|
99
70
|
}
|
71
|
+
}
|
72
|
+
const transformedKey = transformKey(key);
|
73
|
+
const transformedValue = transformValue(value, key);
|
74
|
+
if (acc.ok && transformedKey.ok && transformedValue.ok) {
|
100
75
|
return {
|
101
|
-
ok:
|
102
|
-
|
76
|
+
ok: true,
|
77
|
+
value: Object.assign(Object.assign({}, acc.value), { [transformedKey.value]: transformedValue.value }),
|
103
78
|
};
|
104
|
-
}
|
105
|
-
|
79
|
+
}
|
80
|
+
const errors = [];
|
81
|
+
if (!acc.ok) {
|
82
|
+
errors.push(...acc.errors);
|
83
|
+
}
|
84
|
+
if (!transformedKey.ok) {
|
85
|
+
errors.push(...transformedKey.errors);
|
86
|
+
}
|
87
|
+
if (!transformedValue.ok) {
|
88
|
+
errors.push(...transformedValue.errors);
|
89
|
+
}
|
90
|
+
return {
|
91
|
+
ok: false,
|
92
|
+
errors,
|
93
|
+
};
|
94
|
+
}, { ok: true, value: {} });
|
106
95
|
}
|
@@ -2,8 +2,8 @@ import { BaseSchema, Schema, SchemaOptions } from "../../Schema";
|
|
2
2
|
export interface SchemaUtils<Raw, Parsed> {
|
3
3
|
optional: () => Schema<Raw | null | undefined, Parsed | undefined>;
|
4
4
|
transform: <Transformed>(transformer: SchemaTransformer<Parsed, Transformed>) => Schema<Raw, Transformed>;
|
5
|
-
parseOrThrow: (raw: unknown, opts?: SchemaOptions) =>
|
6
|
-
jsonOrThrow: (raw: unknown, opts?: SchemaOptions) =>
|
5
|
+
parseOrThrow: (raw: unknown, opts?: SchemaOptions) => Parsed;
|
6
|
+
jsonOrThrow: (raw: unknown, opts?: SchemaOptions) => Raw;
|
7
7
|
}
|
8
8
|
export interface SchemaTransformer<Parsed, Transformed> {
|
9
9
|
transform: (parsed: Parsed) => Transformed;
|
@@ -1,13 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
exports.transform = exports.optional = exports.getSchemaUtils = void 0;
|
13
4
|
const Schema_1 = require("../../Schema");
|
@@ -17,20 +8,20 @@ function getSchemaUtils(schema) {
|
|
17
8
|
return {
|
18
9
|
optional: () => optional(schema),
|
19
10
|
transform: (transformer) => transform(schema, transformer),
|
20
|
-
parseOrThrow: (raw, opts) =>
|
21
|
-
const parsed =
|
11
|
+
parseOrThrow: (raw, opts) => {
|
12
|
+
const parsed = schema.parse(raw, opts);
|
22
13
|
if (parsed.ok) {
|
23
14
|
return parsed.value;
|
24
15
|
}
|
25
16
|
throw new ParseError_1.ParseError(parsed.errors);
|
26
|
-
}
|
27
|
-
jsonOrThrow: (parsed, opts) =>
|
28
|
-
const raw =
|
17
|
+
},
|
18
|
+
jsonOrThrow: (parsed, opts) => {
|
19
|
+
const raw = schema.json(parsed, opts);
|
29
20
|
if (raw.ok) {
|
30
21
|
return raw.value;
|
31
22
|
}
|
32
23
|
throw new JsonError_1.JsonError(raw.errors);
|
33
|
-
}
|
24
|
+
},
|
34
25
|
};
|
35
26
|
}
|
36
27
|
exports.getSchemaUtils = getSchemaUtils;
|
@@ -49,6 +40,12 @@ function optional(schema) {
|
|
49
40
|
return schema.parse(raw, opts);
|
50
41
|
},
|
51
42
|
json: (parsed, opts) => {
|
43
|
+
if ((opts === null || opts === void 0 ? void 0 : opts.omitUndefined) && parsed === undefined) {
|
44
|
+
return {
|
45
|
+
ok: true,
|
46
|
+
value: undefined,
|
47
|
+
};
|
48
|
+
}
|
52
49
|
if (parsed == null) {
|
53
50
|
return {
|
54
51
|
ok: true,
|
@@ -64,8 +61,8 @@ function optional(schema) {
|
|
64
61
|
exports.optional = optional;
|
65
62
|
function transform(schema, transformer) {
|
66
63
|
const baseSchema = {
|
67
|
-
parse: (raw, opts) =>
|
68
|
-
const parsed =
|
64
|
+
parse: (raw, opts) => {
|
65
|
+
const parsed = schema.parse(raw, opts);
|
69
66
|
if (!parsed.ok) {
|
70
67
|
return parsed;
|
71
68
|
}
|
@@ -73,11 +70,11 @@ function transform(schema, transformer) {
|
|
73
70
|
ok: true,
|
74
71
|
value: transformer.transform(parsed.value),
|
75
72
|
};
|
76
|
-
}
|
77
|
-
json: (transformed, opts) =>
|
78
|
-
const parsed =
|
73
|
+
},
|
74
|
+
json: (transformed, opts) => {
|
75
|
+
const parsed = transformer.untransform(transformed);
|
79
76
|
return schema.json(parsed, opts);
|
80
|
-
}
|
77
|
+
},
|
81
78
|
getType: () => schema.getType(),
|
82
79
|
};
|
83
80
|
return Object.assign(Object.assign({}, baseSchema), getSchemaUtils(baseSchema));
|
@@ -1,13 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
exports.set = void 0;
|
13
4
|
const Schema_1 = require("../../Schema");
|
@@ -18,8 +9,8 @@ const schema_utils_1 = require("../schema-utils");
|
|
18
9
|
function set(schema) {
|
19
10
|
const listSchema = (0, list_1.list)(schema);
|
20
11
|
const baseSchema = {
|
21
|
-
parse: (raw, opts) =>
|
22
|
-
const parsedList =
|
12
|
+
parse: (raw, opts) => {
|
13
|
+
const parsedList = listSchema.parse(raw, opts);
|
23
14
|
if (parsedList.ok) {
|
24
15
|
return {
|
25
16
|
ok: true,
|
@@ -29,8 +20,8 @@ function set(schema) {
|
|
29
20
|
else {
|
30
21
|
return parsedList;
|
31
22
|
}
|
32
|
-
}
|
33
|
-
json: (parsed, opts) =>
|
23
|
+
},
|
24
|
+
json: (parsed, opts) => {
|
34
25
|
var _a;
|
35
26
|
if (!(parsed instanceof Set)) {
|
36
27
|
return {
|
@@ -43,9 +34,9 @@ function set(schema) {
|
|
43
34
|
],
|
44
35
|
};
|
45
36
|
}
|
46
|
-
const jsonList =
|
37
|
+
const jsonList = listSchema.json([...parsed], opts);
|
47
38
|
return jsonList;
|
48
|
-
}
|
39
|
+
},
|
49
40
|
getType: () => Schema_1.SchemaType.SET,
|
50
41
|
};
|
51
42
|
return Object.assign(Object.assign({}, (0, maybeSkipValidation_1.maybeSkipValidation)(baseSchema)), (0, schema_utils_1.getSchemaUtils)(baseSchema));
|