@tryvital/vital-node 3.1.69 → 3.1.70
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/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/tests/client.test.ts +0 -11
@@ -41,19 +41,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
41
|
exports.LabTests = void 0;
|
42
42
|
const environments = __importStar(require("../../../../environments"));
|
43
43
|
const core = __importStar(require("../../../../core"));
|
44
|
-
const Vital = __importStar(require("
|
44
|
+
const Vital = __importStar(require("../../../index"));
|
45
45
|
const url_join_1 = __importDefault(require("url-join"));
|
46
|
-
const serializers = __importStar(require("../../../../serialization"));
|
47
|
-
const errors = __importStar(require("../../../../errors"));
|
46
|
+
const serializers = __importStar(require("../../../../serialization/index"));
|
47
|
+
const errors = __importStar(require("../../../../errors/index"));
|
48
48
|
class LabTests {
|
49
|
-
constructor(_options) {
|
49
|
+
constructor(_options = {}) {
|
50
50
|
this._options = _options;
|
51
51
|
}
|
52
52
|
/**
|
53
53
|
* GET all the lab tests the team has access to.
|
54
54
|
*
|
55
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
56
|
+
*
|
55
57
|
* @example
|
56
|
-
* await
|
58
|
+
* await client.labTests.get()
|
57
59
|
*/
|
58
60
|
get(requestOptions) {
|
59
61
|
var _a;
|
@@ -61,13 +63,15 @@ class LabTests {
|
|
61
63
|
const _response = yield core.fetcher({
|
62
64
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
|
63
65
|
method: "GET",
|
64
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
66
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
65
67
|
contentType: "application/json",
|
68
|
+
requestType: "json",
|
66
69
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
67
70
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
71
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
68
72
|
});
|
69
73
|
if (_response.ok) {
|
70
|
-
return
|
74
|
+
return serializers.labTests.get.Response.parseOrThrow(_response.body, {
|
71
75
|
unrecognizedObjectKeys: "passthrough",
|
72
76
|
allowUnrecognizedUnionMembers: true,
|
73
77
|
allowUnrecognizedEnumValues: true,
|
@@ -96,10 +100,13 @@ class LabTests {
|
|
96
100
|
});
|
97
101
|
}
|
98
102
|
/**
|
103
|
+
* @param {Vital.CreateLabTestRequest} request
|
104
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
105
|
+
*
|
99
106
|
* @throws {@link Vital.UnprocessableEntityError}
|
100
107
|
*
|
101
108
|
* @example
|
102
|
-
* await
|
109
|
+
* await client.labTests.create({
|
103
110
|
* name: "name",
|
104
111
|
* method: Vital.LabTestCollectionMethod.Testkit,
|
105
112
|
* description: "description"
|
@@ -111,14 +118,16 @@ class LabTests {
|
|
111
118
|
const _response = yield core.fetcher({
|
112
119
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests"),
|
113
120
|
method: "POST",
|
114
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
121
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
115
122
|
contentType: "application/json",
|
116
|
-
|
123
|
+
requestType: "json",
|
124
|
+
body: serializers.CreateLabTestRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
117
125
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
118
126
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
127
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
119
128
|
});
|
120
129
|
if (_response.ok) {
|
121
|
-
return
|
130
|
+
return serializers.ClientFacingLabTest.parseOrThrow(_response.body, {
|
122
131
|
unrecognizedObjectKeys: "passthrough",
|
123
132
|
allowUnrecognizedUnionMembers: true,
|
124
133
|
allowUnrecognizedEnumValues: true,
|
@@ -128,7 +137,7 @@ class LabTests {
|
|
128
137
|
if (_response.error.reason === "status-code") {
|
129
138
|
switch (_response.error.statusCode) {
|
130
139
|
case 422:
|
131
|
-
throw new Vital.UnprocessableEntityError(
|
140
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
132
141
|
unrecognizedObjectKeys: "passthrough",
|
133
142
|
allowUnrecognizedUnionMembers: true,
|
134
143
|
allowUnrecognizedEnumValues: true,
|
@@ -158,15 +167,19 @@ class LabTests {
|
|
158
167
|
}
|
159
168
|
/**
|
160
169
|
* GET all the markers for the given lab.
|
170
|
+
*
|
171
|
+
* @param {Vital.LabTestsGetMarkersRequest} request
|
172
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
173
|
+
*
|
161
174
|
* @throws {@link Vital.UnprocessableEntityError}
|
162
175
|
*
|
163
176
|
* @example
|
164
|
-
* await
|
177
|
+
* await client.labTests.getMarkers()
|
165
178
|
*/
|
166
179
|
getMarkers(request = {}, requestOptions) {
|
167
180
|
var _a;
|
168
181
|
return __awaiter(this, void 0, void 0, function* () {
|
169
|
-
const { labId, name, page, size } = request;
|
182
|
+
const { labId, name, aLaCarteEnabled, page, size } = request;
|
170
183
|
const _queryParams = {};
|
171
184
|
if (labId != null) {
|
172
185
|
if (Array.isArray(labId)) {
|
@@ -179,6 +192,9 @@ class LabTests {
|
|
179
192
|
if (name != null) {
|
180
193
|
_queryParams["name"] = name;
|
181
194
|
}
|
195
|
+
if (aLaCarteEnabled != null) {
|
196
|
+
_queryParams["a_la_carte_enabled"] = aLaCarteEnabled.toString();
|
197
|
+
}
|
182
198
|
if (page != null) {
|
183
199
|
_queryParams["page"] = page.toString();
|
184
200
|
}
|
@@ -188,14 +204,16 @@ class LabTests {
|
|
188
204
|
const _response = yield core.fetcher({
|
189
205
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/markers"),
|
190
206
|
method: "GET",
|
191
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
207
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
192
208
|
contentType: "application/json",
|
193
209
|
queryParameters: _queryParams,
|
210
|
+
requestType: "json",
|
194
211
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
195
212
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
213
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
196
214
|
});
|
197
215
|
if (_response.ok) {
|
198
|
-
return
|
216
|
+
return serializers.GetMarkersResponse.parseOrThrow(_response.body, {
|
199
217
|
unrecognizedObjectKeys: "passthrough",
|
200
218
|
allowUnrecognizedUnionMembers: true,
|
201
219
|
allowUnrecognizedEnumValues: true,
|
@@ -205,7 +223,7 @@ class LabTests {
|
|
205
223
|
if (_response.error.reason === "status-code") {
|
206
224
|
switch (_response.error.statusCode) {
|
207
225
|
case 422:
|
208
|
-
throw new Vital.UnprocessableEntityError(
|
226
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
209
227
|
unrecognizedObjectKeys: "passthrough",
|
210
228
|
allowUnrecognizedUnionMembers: true,
|
211
229
|
allowUnrecognizedEnumValues: true,
|
@@ -234,10 +252,14 @@ class LabTests {
|
|
234
252
|
});
|
235
253
|
}
|
236
254
|
/**
|
255
|
+
* @param {string} labTestId
|
256
|
+
* @param {Vital.LabTestsGetMarkersForLabTestRequest} request
|
257
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
258
|
+
*
|
237
259
|
* @throws {@link Vital.UnprocessableEntityError}
|
238
260
|
*
|
239
261
|
* @example
|
240
|
-
* await
|
262
|
+
* await client.labTests.getMarkersForLabTest("lab_test_id")
|
241
263
|
*/
|
242
264
|
getMarkersForLabTest(labTestId, request = {}, requestOptions) {
|
243
265
|
var _a;
|
@@ -251,16 +273,18 @@ class LabTests {
|
|
251
273
|
_queryParams["size"] = size.toString();
|
252
274
|
}
|
253
275
|
const _response = yield core.fetcher({
|
254
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labTestId}/markers`),
|
276
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}/markers`),
|
255
277
|
method: "GET",
|
256
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
278
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
257
279
|
contentType: "application/json",
|
258
280
|
queryParameters: _queryParams,
|
281
|
+
requestType: "json",
|
259
282
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
260
283
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
284
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
261
285
|
});
|
262
286
|
if (_response.ok) {
|
263
|
-
return
|
287
|
+
return serializers.GetMarkersResponse.parseOrThrow(_response.body, {
|
264
288
|
unrecognizedObjectKeys: "passthrough",
|
265
289
|
allowUnrecognizedUnionMembers: true,
|
266
290
|
allowUnrecognizedEnumValues: true,
|
@@ -270,7 +294,7 @@ class LabTests {
|
|
270
294
|
if (_response.error.reason === "status-code") {
|
271
295
|
switch (_response.error.statusCode) {
|
272
296
|
case 422:
|
273
|
-
throw new Vital.UnprocessableEntityError(
|
297
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
274
298
|
unrecognizedObjectKeys: "passthrough",
|
275
299
|
allowUnrecognizedUnionMembers: true,
|
276
300
|
allowUnrecognizedEnumValues: true,
|
@@ -300,24 +324,31 @@ class LabTests {
|
|
300
324
|
}
|
301
325
|
/**
|
302
326
|
* GET a specific marker for the given lab and provider_id
|
327
|
+
*
|
328
|
+
* @param {string} providerId
|
329
|
+
* @param {number} labId
|
330
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
331
|
+
*
|
303
332
|
* @throws {@link Vital.UnprocessableEntityError}
|
304
333
|
*
|
305
334
|
* @example
|
306
|
-
* await
|
335
|
+
* await client.labTests.getMarkersByLabAndProviderId("provider_id", 1)
|
307
336
|
*/
|
308
337
|
getMarkersByLabAndProviderId(providerId, labId, requestOptions) {
|
309
338
|
var _a;
|
310
339
|
return __awaiter(this, void 0, void 0, function* () {
|
311
340
|
const _response = yield core.fetcher({
|
312
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labId}/markers/${providerId}`),
|
341
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labId)}/markers/${encodeURIComponent(providerId)}`),
|
313
342
|
method: "GET",
|
314
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
343
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
315
344
|
contentType: "application/json",
|
345
|
+
requestType: "json",
|
316
346
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
317
347
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
348
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
318
349
|
});
|
319
350
|
if (_response.ok) {
|
320
|
-
return
|
351
|
+
return serializers.ClientFacingMarker.parseOrThrow(_response.body, {
|
321
352
|
unrecognizedObjectKeys: "passthrough",
|
322
353
|
allowUnrecognizedUnionMembers: true,
|
323
354
|
allowUnrecognizedEnumValues: true,
|
@@ -327,7 +358,7 @@ class LabTests {
|
|
327
358
|
if (_response.error.reason === "status-code") {
|
328
359
|
switch (_response.error.statusCode) {
|
329
360
|
case 422:
|
330
|
-
throw new Vital.UnprocessableEntityError(
|
361
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
331
362
|
unrecognizedObjectKeys: "passthrough",
|
332
363
|
allowUnrecognizedUnionMembers: true,
|
333
364
|
allowUnrecognizedEnumValues: true,
|
@@ -358,8 +389,10 @@ class LabTests {
|
|
358
389
|
/**
|
359
390
|
* GET all the labs.
|
360
391
|
*
|
392
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
393
|
+
*
|
361
394
|
* @example
|
362
|
-
* await
|
395
|
+
* await client.labTests.getLabs()
|
363
396
|
*/
|
364
397
|
getLabs(requestOptions) {
|
365
398
|
var _a;
|
@@ -367,13 +400,15 @@ class LabTests {
|
|
367
400
|
const _response = yield core.fetcher({
|
368
401
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/lab_tests/labs"),
|
369
402
|
method: "GET",
|
370
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
403
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
371
404
|
contentType: "application/json",
|
405
|
+
requestType: "json",
|
372
406
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
373
407
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
408
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
374
409
|
});
|
375
410
|
if (_response.ok) {
|
376
|
-
return
|
411
|
+
return serializers.labTests.getLabs.Response.parseOrThrow(_response.body, {
|
377
412
|
unrecognizedObjectKeys: "passthrough",
|
378
413
|
allowUnrecognizedUnionMembers: true,
|
379
414
|
allowUnrecognizedEnumValues: true,
|
@@ -403,24 +438,30 @@ class LabTests {
|
|
403
438
|
}
|
404
439
|
/**
|
405
440
|
* GET all the lab tests the team has access to.
|
441
|
+
*
|
442
|
+
* @param {string} labTestId
|
443
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
444
|
+
*
|
406
445
|
* @throws {@link Vital.UnprocessableEntityError}
|
407
446
|
*
|
408
447
|
* @example
|
409
|
-
* await
|
448
|
+
* await client.labTests.getById("lab_test_id")
|
410
449
|
*/
|
411
450
|
getById(labTestId, requestOptions) {
|
412
451
|
var _a;
|
413
452
|
return __awaiter(this, void 0, void 0, function* () {
|
414
453
|
const _response = yield core.fetcher({
|
415
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${labTestId}`),
|
454
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/lab_tests/${encodeURIComponent(labTestId)}`),
|
416
455
|
method: "GET",
|
417
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
456
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
418
457
|
contentType: "application/json",
|
458
|
+
requestType: "json",
|
419
459
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
420
460
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
461
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
421
462
|
});
|
422
463
|
if (_response.ok) {
|
423
|
-
return
|
464
|
+
return serializers.ClientFacingLabTest.parseOrThrow(_response.body, {
|
424
465
|
unrecognizedObjectKeys: "passthrough",
|
425
466
|
allowUnrecognizedUnionMembers: true,
|
426
467
|
allowUnrecognizedEnumValues: true,
|
@@ -430,7 +471,7 @@ class LabTests {
|
|
430
471
|
if (_response.error.reason === "status-code") {
|
431
472
|
switch (_response.error.statusCode) {
|
432
473
|
case 422:
|
433
|
-
throw new Vital.UnprocessableEntityError(
|
474
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
434
475
|
unrecognizedObjectKeys: "passthrough",
|
435
476
|
allowUnrecognizedUnionMembers: true,
|
436
477
|
allowUnrecognizedEnumValues: true,
|
@@ -461,10 +502,14 @@ class LabTests {
|
|
461
502
|
/**
|
462
503
|
* Return the available time slots to book an appointment with a phlebotomist
|
463
504
|
* for the given address and order.
|
505
|
+
*
|
506
|
+
* @param {Vital.UsAddress} request
|
507
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
508
|
+
*
|
464
509
|
* @throws {@link Vital.UnprocessableEntityError}
|
465
510
|
*
|
466
511
|
* @example
|
467
|
-
* await
|
512
|
+
* await client.labTests.getPhlebotomyAppointmentAvailability({
|
468
513
|
* firstLine: "first_line",
|
469
514
|
* city: "city",
|
470
515
|
* state: "state",
|
@@ -477,14 +522,16 @@ class LabTests {
|
|
477
522
|
const _response = yield core.fetcher({
|
478
523
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/availability"),
|
479
524
|
method: "POST",
|
480
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
525
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
481
526
|
contentType: "application/json",
|
482
|
-
|
527
|
+
requestType: "json",
|
528
|
+
body: serializers.UsAddress.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
483
529
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
484
530
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
531
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
485
532
|
});
|
486
533
|
if (_response.ok) {
|
487
|
-
return
|
534
|
+
return serializers.AppointmentAvailabilitySlots.parseOrThrow(_response.body, {
|
488
535
|
unrecognizedObjectKeys: "passthrough",
|
489
536
|
allowUnrecognizedUnionMembers: true,
|
490
537
|
allowUnrecognizedEnumValues: true,
|
@@ -494,7 +541,7 @@ class LabTests {
|
|
494
541
|
if (_response.error.reason === "status-code") {
|
495
542
|
switch (_response.error.statusCode) {
|
496
543
|
case 422:
|
497
|
-
throw new Vital.UnprocessableEntityError(
|
544
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
498
545
|
unrecognizedObjectKeys: "passthrough",
|
499
546
|
allowUnrecognizedUnionMembers: true,
|
500
547
|
allowUnrecognizedEnumValues: true,
|
@@ -524,10 +571,15 @@ class LabTests {
|
|
524
571
|
}
|
525
572
|
/**
|
526
573
|
* Book an at-home phlebotomy appointment.
|
574
|
+
*
|
575
|
+
* @param {string} orderId - Your Order ID.
|
576
|
+
* @param {Vital.AppointmentBookingRequest} request
|
577
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
578
|
+
*
|
527
579
|
* @throws {@link Vital.UnprocessableEntityError}
|
528
580
|
*
|
529
581
|
* @example
|
530
|
-
* await
|
582
|
+
* await client.labTests.bookPhlebotomyAppointment("order_id", {
|
531
583
|
* bookingKey: "booking_key"
|
532
584
|
* })
|
533
585
|
*/
|
@@ -535,16 +587,18 @@ class LabTests {
|
|
535
587
|
var _a;
|
536
588
|
return __awaiter(this, void 0, void 0, function* () {
|
537
589
|
const _response = yield core.fetcher({
|
538
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/book`),
|
590
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/book`),
|
539
591
|
method: "POST",
|
540
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
592
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
541
593
|
contentType: "application/json",
|
542
|
-
|
594
|
+
requestType: "json",
|
595
|
+
body: serializers.AppointmentBookingRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
543
596
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
544
597
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
598
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
545
599
|
});
|
546
600
|
if (_response.ok) {
|
547
|
-
return
|
601
|
+
return serializers.ClientFacingAppointment.parseOrThrow(_response.body, {
|
548
602
|
unrecognizedObjectKeys: "passthrough",
|
549
603
|
allowUnrecognizedUnionMembers: true,
|
550
604
|
allowUnrecognizedEnumValues: true,
|
@@ -554,7 +608,7 @@ class LabTests {
|
|
554
608
|
if (_response.error.reason === "status-code") {
|
555
609
|
switch (_response.error.statusCode) {
|
556
610
|
case 422:
|
557
|
-
throw new Vital.UnprocessableEntityError(
|
611
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
558
612
|
unrecognizedObjectKeys: "passthrough",
|
559
613
|
allowUnrecognizedUnionMembers: true,
|
560
614
|
allowUnrecognizedEnumValues: true,
|
@@ -584,10 +638,15 @@ class LabTests {
|
|
584
638
|
}
|
585
639
|
/**
|
586
640
|
* Request an at-home phlebotomy appointment.
|
641
|
+
*
|
642
|
+
* @param {string} orderId - Your Order ID.
|
643
|
+
* @param {Vital.RequestAppointmentRequest} request
|
644
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
645
|
+
*
|
587
646
|
* @throws {@link Vital.UnprocessableEntityError}
|
588
647
|
*
|
589
648
|
* @example
|
590
|
-
* await
|
649
|
+
* await client.labTests.requestPhlebotomyAppointment("order_id", {
|
591
650
|
* address: {
|
592
651
|
* firstLine: "first_line",
|
593
652
|
* city: "city",
|
@@ -601,16 +660,18 @@ class LabTests {
|
|
601
660
|
var _a;
|
602
661
|
return __awaiter(this, void 0, void 0, function* () {
|
603
662
|
const _response = yield core.fetcher({
|
604
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/request`),
|
663
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/request`),
|
605
664
|
method: "POST",
|
606
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
665
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
607
666
|
contentType: "application/json",
|
608
|
-
|
667
|
+
requestType: "json",
|
668
|
+
body: serializers.RequestAppointmentRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
609
669
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
610
670
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
671
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
611
672
|
});
|
612
673
|
if (_response.ok) {
|
613
|
-
return
|
674
|
+
return serializers.ClientFacingAppointment.parseOrThrow(_response.body, {
|
614
675
|
unrecognizedObjectKeys: "passthrough",
|
615
676
|
allowUnrecognizedUnionMembers: true,
|
616
677
|
allowUnrecognizedEnumValues: true,
|
@@ -620,7 +681,7 @@ class LabTests {
|
|
620
681
|
if (_response.error.reason === "status-code") {
|
621
682
|
switch (_response.error.statusCode) {
|
622
683
|
case 422:
|
623
|
-
throw new Vital.UnprocessableEntityError(
|
684
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
624
685
|
unrecognizedObjectKeys: "passthrough",
|
625
686
|
allowUnrecognizedUnionMembers: true,
|
626
687
|
allowUnrecognizedEnumValues: true,
|
@@ -650,10 +711,15 @@ class LabTests {
|
|
650
711
|
}
|
651
712
|
/**
|
652
713
|
* Reschedule a previously booked at-home phlebotomy appointment.
|
714
|
+
*
|
715
|
+
* @param {string} orderId - Your Order ID.
|
716
|
+
* @param {Vital.AppointmentRescheduleRequest} request
|
717
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
718
|
+
*
|
653
719
|
* @throws {@link Vital.UnprocessableEntityError}
|
654
720
|
*
|
655
721
|
* @example
|
656
|
-
* await
|
722
|
+
* await client.labTests.reschedulePhlebotomyAppointment("order_id", {
|
657
723
|
* bookingKey: "booking_key"
|
658
724
|
* })
|
659
725
|
*/
|
@@ -661,18 +727,18 @@ class LabTests {
|
|
661
727
|
var _a;
|
662
728
|
return __awaiter(this, void 0, void 0, function* () {
|
663
729
|
const _response = yield core.fetcher({
|
664
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/reschedule`),
|
730
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/reschedule`),
|
665
731
|
method: "PATCH",
|
666
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
732
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
667
733
|
contentType: "application/json",
|
668
|
-
|
669
|
-
|
670
|
-
}),
|
734
|
+
requestType: "json",
|
735
|
+
body: serializers.AppointmentRescheduleRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
671
736
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
672
737
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
738
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
673
739
|
});
|
674
740
|
if (_response.ok) {
|
675
|
-
return
|
741
|
+
return serializers.ClientFacingAppointment.parseOrThrow(_response.body, {
|
676
742
|
unrecognizedObjectKeys: "passthrough",
|
677
743
|
allowUnrecognizedUnionMembers: true,
|
678
744
|
allowUnrecognizedEnumValues: true,
|
@@ -682,7 +748,7 @@ class LabTests {
|
|
682
748
|
if (_response.error.reason === "status-code") {
|
683
749
|
switch (_response.error.statusCode) {
|
684
750
|
case 422:
|
685
|
-
throw new Vital.UnprocessableEntityError(
|
751
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
686
752
|
unrecognizedObjectKeys: "passthrough",
|
687
753
|
allowUnrecognizedUnionMembers: true,
|
688
754
|
allowUnrecognizedEnumValues: true,
|
@@ -712,10 +778,15 @@ class LabTests {
|
|
712
778
|
}
|
713
779
|
/**
|
714
780
|
* Cancel a previously booked at-home phlebotomy appointment.
|
781
|
+
*
|
782
|
+
* @param {string} orderId - Your Order ID.
|
783
|
+
* @param {Vital.AppointmentCancelRequest} request
|
784
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
785
|
+
*
|
715
786
|
* @throws {@link Vital.UnprocessableEntityError}
|
716
787
|
*
|
717
788
|
* @example
|
718
|
-
* await
|
789
|
+
* await client.labTests.cancelPhlebotomyAppointment("order_id", {
|
719
790
|
* cancellationReasonId: "cancellation_reason_id"
|
720
791
|
* })
|
721
792
|
*/
|
@@ -723,16 +794,18 @@ class LabTests {
|
|
723
794
|
var _a;
|
724
795
|
return __awaiter(this, void 0, void 0, function* () {
|
725
796
|
const _response = yield core.fetcher({
|
726
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment/cancel`),
|
797
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment/cancel`),
|
727
798
|
method: "PATCH",
|
728
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
799
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
729
800
|
contentType: "application/json",
|
730
|
-
|
801
|
+
requestType: "json",
|
802
|
+
body: serializers.AppointmentCancelRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
731
803
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
732
804
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
805
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
733
806
|
});
|
734
807
|
if (_response.ok) {
|
735
|
-
return
|
808
|
+
return serializers.ClientFacingAppointment.parseOrThrow(_response.body, {
|
736
809
|
unrecognizedObjectKeys: "passthrough",
|
737
810
|
allowUnrecognizedUnionMembers: true,
|
738
811
|
allowUnrecognizedEnumValues: true,
|
@@ -742,7 +815,7 @@ class LabTests {
|
|
742
815
|
if (_response.error.reason === "status-code") {
|
743
816
|
switch (_response.error.statusCode) {
|
744
817
|
case 422:
|
745
|
-
throw new Vital.UnprocessableEntityError(
|
818
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
746
819
|
unrecognizedObjectKeys: "passthrough",
|
747
820
|
allowUnrecognizedUnionMembers: true,
|
748
821
|
allowUnrecognizedEnumValues: true,
|
@@ -773,8 +846,10 @@ class LabTests {
|
|
773
846
|
/**
|
774
847
|
* Get the list of reasons for cancelling an at-home phlebotomy appointment.
|
775
848
|
*
|
849
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
850
|
+
*
|
776
851
|
* @example
|
777
|
-
* await
|
852
|
+
* await client.labTests.getPhlebotomyAppointmentCancellationReason()
|
778
853
|
*/
|
779
854
|
getPhlebotomyAppointmentCancellationReason(requestOptions) {
|
780
855
|
var _a;
|
@@ -782,13 +857,15 @@ class LabTests {
|
|
782
857
|
const _response = yield core.fetcher({
|
783
858
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/phlebotomy/appointment/cancellation-reasons"),
|
784
859
|
method: "GET",
|
785
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
860
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
786
861
|
contentType: "application/json",
|
862
|
+
requestType: "json",
|
787
863
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
788
864
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
865
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
789
866
|
});
|
790
867
|
if (_response.ok) {
|
791
|
-
return
|
868
|
+
return serializers.labTests.getPhlebotomyAppointmentCancellationReason.Response.parseOrThrow(_response.body, {
|
792
869
|
unrecognizedObjectKeys: "passthrough",
|
793
870
|
allowUnrecognizedUnionMembers: true,
|
794
871
|
allowUnrecognizedEnumValues: true,
|
@@ -818,24 +895,30 @@ class LabTests {
|
|
818
895
|
}
|
819
896
|
/**
|
820
897
|
* Get the appointment associated with an order.
|
898
|
+
*
|
899
|
+
* @param {string} orderId - Your Order ID.
|
900
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
901
|
+
*
|
821
902
|
* @throws {@link Vital.UnprocessableEntityError}
|
822
903
|
*
|
823
904
|
* @example
|
824
|
-
* await
|
905
|
+
* await client.labTests.getPhlebotomyAppointment("order_id")
|
825
906
|
*/
|
826
907
|
getPhlebotomyAppointment(orderId, requestOptions) {
|
827
908
|
var _a;
|
828
909
|
return __awaiter(this, void 0, void 0, function* () {
|
829
910
|
const _response = yield core.fetcher({
|
830
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/phlebotomy/appointment`),
|
911
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/phlebotomy/appointment`),
|
831
912
|
method: "GET",
|
832
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
913
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
833
914
|
contentType: "application/json",
|
915
|
+
requestType: "json",
|
834
916
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
835
917
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
918
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
836
919
|
});
|
837
920
|
if (_response.ok) {
|
838
|
-
return
|
921
|
+
return serializers.ClientFacingAppointment.parseOrThrow(_response.body, {
|
839
922
|
unrecognizedObjectKeys: "passthrough",
|
840
923
|
allowUnrecognizedUnionMembers: true,
|
841
924
|
allowUnrecognizedEnumValues: true,
|
@@ -845,7 +928,7 @@ class LabTests {
|
|
845
928
|
if (_response.error.reason === "status-code") {
|
846
929
|
switch (_response.error.statusCode) {
|
847
930
|
case 422:
|
848
|
-
throw new Vital.UnprocessableEntityError(
|
931
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
849
932
|
unrecognizedObjectKeys: "passthrough",
|
850
933
|
allowUnrecognizedUnionMembers: true,
|
851
934
|
allowUnrecognizedEnumValues: true,
|
@@ -880,10 +963,14 @@ class LabTests {
|
|
880
963
|
*
|
881
964
|
* - Whether a given zip code is served by our Phlebotomy network.
|
882
965
|
* - List of Lab locations in the area.
|
966
|
+
*
|
967
|
+
* @param {Vital.LabTestsGetAreaInfoRequest} request
|
968
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
969
|
+
*
|
883
970
|
* @throws {@link Vital.UnprocessableEntityError}
|
884
971
|
*
|
885
972
|
* @example
|
886
|
-
* await
|
973
|
+
* await client.labTests.getAreaInfo({
|
887
974
|
* zipCode: "zip_code"
|
888
975
|
* })
|
889
976
|
*/
|
@@ -902,14 +989,16 @@ class LabTests {
|
|
902
989
|
const _response = yield core.fetcher({
|
903
990
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/area/info"),
|
904
991
|
method: "GET",
|
905
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
992
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
906
993
|
contentType: "application/json",
|
907
994
|
queryParameters: _queryParams,
|
995
|
+
requestType: "json",
|
908
996
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
909
997
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
998
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
910
999
|
});
|
911
1000
|
if (_response.ok) {
|
912
|
-
return
|
1001
|
+
return serializers.AreaInfo.parseOrThrow(_response.body, {
|
913
1002
|
unrecognizedObjectKeys: "passthrough",
|
914
1003
|
allowUnrecognizedUnionMembers: true,
|
915
1004
|
allowUnrecognizedEnumValues: true,
|
@@ -919,7 +1008,7 @@ class LabTests {
|
|
919
1008
|
if (_response.error.reason === "status-code") {
|
920
1009
|
switch (_response.error.statusCode) {
|
921
1010
|
case 422:
|
922
|
-
throw new Vital.UnprocessableEntityError(
|
1011
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
923
1012
|
unrecognizedObjectKeys: "passthrough",
|
924
1013
|
allowUnrecognizedUnionMembers: true,
|
925
1014
|
allowUnrecognizedEnumValues: true,
|
@@ -948,10 +1037,13 @@ class LabTests {
|
|
948
1037
|
});
|
949
1038
|
}
|
950
1039
|
/**
|
1040
|
+
* @param {Vital.LabTestsGetPscInfoRequest} request
|
1041
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
1042
|
+
*
|
951
1043
|
* @throws {@link Vital.UnprocessableEntityError}
|
952
1044
|
*
|
953
1045
|
* @example
|
954
|
-
* await
|
1046
|
+
* await client.labTests.getPscInfo({
|
955
1047
|
* zipCode: "zip_code",
|
956
1048
|
* labId: 1
|
957
1049
|
* })
|
@@ -969,14 +1061,16 @@ class LabTests {
|
|
969
1061
|
const _response = yield core.fetcher({
|
970
1062
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order/psc/info"),
|
971
1063
|
method: "GET",
|
972
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1064
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
973
1065
|
contentType: "application/json",
|
974
1066
|
queryParameters: _queryParams,
|
1067
|
+
requestType: "json",
|
975
1068
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
976
1069
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1070
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
977
1071
|
});
|
978
1072
|
if (_response.ok) {
|
979
|
-
return
|
1073
|
+
return serializers.PscInfo.parseOrThrow(_response.body, {
|
980
1074
|
unrecognizedObjectKeys: "passthrough",
|
981
1075
|
allowUnrecognizedUnionMembers: true,
|
982
1076
|
allowUnrecognizedEnumValues: true,
|
@@ -986,7 +1080,7 @@ class LabTests {
|
|
986
1080
|
if (_response.error.reason === "status-code") {
|
987
1081
|
switch (_response.error.statusCode) {
|
988
1082
|
case 422:
|
989
|
-
throw new Vital.UnprocessableEntityError(
|
1083
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
990
1084
|
unrecognizedObjectKeys: "passthrough",
|
991
1085
|
allowUnrecognizedUnionMembers: true,
|
992
1086
|
allowUnrecognizedEnumValues: true,
|
@@ -1015,10 +1109,14 @@ class LabTests {
|
|
1015
1109
|
});
|
1016
1110
|
}
|
1017
1111
|
/**
|
1112
|
+
* @param {string} orderId - Your Order ID.
|
1113
|
+
* @param {Vital.LabTestsGetOrderPscInfoRequest} request
|
1114
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
1115
|
+
*
|
1018
1116
|
* @throws {@link Vital.UnprocessableEntityError}
|
1019
1117
|
*
|
1020
1118
|
* @example
|
1021
|
-
* await
|
1119
|
+
* await client.labTests.getOrderPscInfo("order_id")
|
1022
1120
|
*/
|
1023
1121
|
getOrderPscInfo(orderId, request = {}, requestOptions) {
|
1024
1122
|
var _a;
|
@@ -1029,16 +1127,18 @@ class LabTests {
|
|
1029
1127
|
_queryParams["radius"] = radius;
|
1030
1128
|
}
|
1031
1129
|
const _response = yield core.fetcher({
|
1032
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/psc/info`),
|
1130
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/psc/info`),
|
1033
1131
|
method: "GET",
|
1034
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1132
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1035
1133
|
contentType: "application/json",
|
1036
1134
|
queryParameters: _queryParams,
|
1135
|
+
requestType: "json",
|
1037
1136
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1038
1137
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1138
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1039
1139
|
});
|
1040
1140
|
if (_response.ok) {
|
1041
|
-
return
|
1141
|
+
return serializers.PscInfo.parseOrThrow(_response.body, {
|
1042
1142
|
unrecognizedObjectKeys: "passthrough",
|
1043
1143
|
allowUnrecognizedUnionMembers: true,
|
1044
1144
|
allowUnrecognizedEnumValues: true,
|
@@ -1048,7 +1148,7 @@ class LabTests {
|
|
1048
1148
|
if (_response.error.reason === "status-code") {
|
1049
1149
|
switch (_response.error.statusCode) {
|
1050
1150
|
case 422:
|
1051
|
-
throw new Vital.UnprocessableEntityError(
|
1151
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1052
1152
|
unrecognizedObjectKeys: "passthrough",
|
1053
1153
|
allowUnrecognizedUnionMembers: true,
|
1054
1154
|
allowUnrecognizedEnumValues: true,
|
@@ -1084,13 +1184,15 @@ class LabTests {
|
|
1084
1184
|
var _a;
|
1085
1185
|
return __awaiter(this, void 0, void 0, function* () {
|
1086
1186
|
const _response = yield core.fetcher({
|
1087
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/pdf`),
|
1187
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/pdf`),
|
1088
1188
|
method: "GET",
|
1089
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1189
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1090
1190
|
contentType: "application/json",
|
1191
|
+
requestType: "json",
|
1091
1192
|
responseType: "streaming",
|
1092
1193
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1093
1194
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1195
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1094
1196
|
});
|
1095
1197
|
if (_response.ok) {
|
1096
1198
|
return _response.body;
|
@@ -1098,7 +1200,7 @@ class LabTests {
|
|
1098
1200
|
if (_response.error.reason === "status-code") {
|
1099
1201
|
switch (_response.error.statusCode) {
|
1100
1202
|
case 422:
|
1101
|
-
throw new Vital.UnprocessableEntityError(
|
1203
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1102
1204
|
unrecognizedObjectKeys: "passthrough",
|
1103
1205
|
allowUnrecognizedUnionMembers: true,
|
1104
1206
|
allowUnrecognizedEnumValues: true,
|
@@ -1129,24 +1231,30 @@ class LabTests {
|
|
1129
1231
|
/**
|
1130
1232
|
* Return metadata related to order results, such as lab metadata,
|
1131
1233
|
* provider and sample dates.
|
1234
|
+
*
|
1235
|
+
* @param {string} orderId
|
1236
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
1237
|
+
*
|
1132
1238
|
* @throws {@link Vital.UnprocessableEntityError}
|
1133
1239
|
*
|
1134
1240
|
* @example
|
1135
|
-
* await
|
1241
|
+
* await client.labTests.getResultMetadata("order_id")
|
1136
1242
|
*/
|
1137
1243
|
getResultMetadata(orderId, requestOptions) {
|
1138
1244
|
var _a;
|
1139
1245
|
return __awaiter(this, void 0, void 0, function* () {
|
1140
1246
|
const _response = yield core.fetcher({
|
1141
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result/metadata`),
|
1247
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result/metadata`),
|
1142
1248
|
method: "GET",
|
1143
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1249
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1144
1250
|
contentType: "application/json",
|
1251
|
+
requestType: "json",
|
1145
1252
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1146
1253
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1254
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1147
1255
|
});
|
1148
1256
|
if (_response.ok) {
|
1149
|
-
return
|
1257
|
+
return serializers.LabResultsMetadata.parseOrThrow(_response.body, {
|
1150
1258
|
unrecognizedObjectKeys: "passthrough",
|
1151
1259
|
allowUnrecognizedUnionMembers: true,
|
1152
1260
|
allowUnrecognizedEnumValues: true,
|
@@ -1156,7 +1264,7 @@ class LabTests {
|
|
1156
1264
|
if (_response.error.reason === "status-code") {
|
1157
1265
|
switch (_response.error.statusCode) {
|
1158
1266
|
case 422:
|
1159
|
-
throw new Vital.UnprocessableEntityError(
|
1267
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1160
1268
|
unrecognizedObjectKeys: "passthrough",
|
1161
1269
|
allowUnrecognizedUnionMembers: true,
|
1162
1270
|
allowUnrecognizedEnumValues: true,
|
@@ -1186,24 +1294,30 @@ class LabTests {
|
|
1186
1294
|
}
|
1187
1295
|
/**
|
1188
1296
|
* Return both metadata and raw json test data
|
1297
|
+
*
|
1298
|
+
* @param {string} orderId
|
1299
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
1300
|
+
*
|
1189
1301
|
* @throws {@link Vital.UnprocessableEntityError}
|
1190
1302
|
*
|
1191
1303
|
* @example
|
1192
|
-
* await
|
1304
|
+
* await client.labTests.getResultRaw("order_id")
|
1193
1305
|
*/
|
1194
1306
|
getResultRaw(orderId, requestOptions) {
|
1195
1307
|
var _a;
|
1196
1308
|
return __awaiter(this, void 0, void 0, function* () {
|
1197
1309
|
const _response = yield core.fetcher({
|
1198
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/result`),
|
1310
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/result`),
|
1199
1311
|
method: "GET",
|
1200
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1312
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1201
1313
|
contentType: "application/json",
|
1314
|
+
requestType: "json",
|
1202
1315
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1203
1316
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1317
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1204
1318
|
});
|
1205
1319
|
if (_response.ok) {
|
1206
|
-
return
|
1320
|
+
return serializers.LabResultsRaw.parseOrThrow(_response.body, {
|
1207
1321
|
unrecognizedObjectKeys: "passthrough",
|
1208
1322
|
allowUnrecognizedUnionMembers: true,
|
1209
1323
|
allowUnrecognizedEnumValues: true,
|
@@ -1213,7 +1327,7 @@ class LabTests {
|
|
1213
1327
|
if (_response.error.reason === "status-code") {
|
1214
1328
|
switch (_response.error.statusCode) {
|
1215
1329
|
case 422:
|
1216
|
-
throw new Vital.UnprocessableEntityError(
|
1330
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1217
1331
|
unrecognizedObjectKeys: "passthrough",
|
1218
1332
|
allowUnrecognizedUnionMembers: true,
|
1219
1333
|
allowUnrecognizedEnumValues: true,
|
@@ -1255,14 +1369,16 @@ class LabTests {
|
|
1255
1369
|
}
|
1256
1370
|
_queryParams["collection_date"] = collectionDate.toISOString();
|
1257
1371
|
const _response = yield core.fetcher({
|
1258
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/labels/pdf`),
|
1372
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/labels/pdf`),
|
1259
1373
|
method: "GET",
|
1260
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1374
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1261
1375
|
contentType: "application/json",
|
1262
1376
|
queryParameters: _queryParams,
|
1377
|
+
requestType: "json",
|
1263
1378
|
responseType: "streaming",
|
1264
1379
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1265
1380
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1381
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1266
1382
|
});
|
1267
1383
|
if (_response.ok) {
|
1268
1384
|
return _response.body;
|
@@ -1270,7 +1386,7 @@ class LabTests {
|
|
1270
1386
|
if (_response.error.reason === "status-code") {
|
1271
1387
|
switch (_response.error.statusCode) {
|
1272
1388
|
case 422:
|
1273
|
-
throw new Vital.UnprocessableEntityError(
|
1389
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1274
1390
|
unrecognizedObjectKeys: "passthrough",
|
1275
1391
|
allowUnrecognizedUnionMembers: true,
|
1276
1392
|
allowUnrecognizedEnumValues: true,
|
@@ -1306,13 +1422,15 @@ class LabTests {
|
|
1306
1422
|
var _a;
|
1307
1423
|
return __awaiter(this, void 0, void 0, function* () {
|
1308
1424
|
const _response = yield core.fetcher({
|
1309
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/requisition/pdf`),
|
1425
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/requisition/pdf`),
|
1310
1426
|
method: "GET",
|
1311
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1427
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1312
1428
|
contentType: "application/json",
|
1429
|
+
requestType: "json",
|
1313
1430
|
responseType: "streaming",
|
1314
1431
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1315
1432
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1433
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1316
1434
|
});
|
1317
1435
|
if (_response.ok) {
|
1318
1436
|
return _response.body;
|
@@ -1320,7 +1438,7 @@ class LabTests {
|
|
1320
1438
|
if (_response.error.reason === "status-code") {
|
1321
1439
|
switch (_response.error.statusCode) {
|
1322
1440
|
case 422:
|
1323
|
-
throw new Vital.UnprocessableEntityError(
|
1441
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1324
1442
|
unrecognizedObjectKeys: "passthrough",
|
1325
1443
|
allowUnrecognizedUnionMembers: true,
|
1326
1444
|
allowUnrecognizedEnumValues: true,
|
@@ -1350,21 +1468,30 @@ class LabTests {
|
|
1350
1468
|
}
|
1351
1469
|
/**
|
1352
1470
|
* GET individual order by ID.
|
1471
|
+
*
|
1472
|
+
* @param {string} orderId - Your Order ID.
|
1473
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
1474
|
+
*
|
1353
1475
|
* @throws {@link Vital.UnprocessableEntityError}
|
1476
|
+
*
|
1477
|
+
* @example
|
1478
|
+
* await client.labTests.getOrder("order_id")
|
1354
1479
|
*/
|
1355
1480
|
getOrder(orderId, requestOptions) {
|
1356
1481
|
var _a;
|
1357
1482
|
return __awaiter(this, void 0, void 0, function* () {
|
1358
1483
|
const _response = yield core.fetcher({
|
1359
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}`),
|
1484
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}`),
|
1360
1485
|
method: "GET",
|
1361
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1486
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1362
1487
|
contentType: "application/json",
|
1488
|
+
requestType: "json",
|
1363
1489
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1364
1490
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1491
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1365
1492
|
});
|
1366
1493
|
if (_response.ok) {
|
1367
|
-
return
|
1494
|
+
return serializers.ClientFacingOrder.parseOrThrow(_response.body, {
|
1368
1495
|
unrecognizedObjectKeys: "passthrough",
|
1369
1496
|
allowUnrecognizedUnionMembers: true,
|
1370
1497
|
allowUnrecognizedEnumValues: true,
|
@@ -1374,7 +1501,7 @@ class LabTests {
|
|
1374
1501
|
if (_response.error.reason === "status-code") {
|
1375
1502
|
switch (_response.error.statusCode) {
|
1376
1503
|
case 422:
|
1377
|
-
throw new Vital.UnprocessableEntityError(
|
1504
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1378
1505
|
unrecognizedObjectKeys: "passthrough",
|
1379
1506
|
allowUnrecognizedUnionMembers: true,
|
1380
1507
|
allowUnrecognizedEnumValues: true,
|
@@ -1404,7 +1531,31 @@ class LabTests {
|
|
1404
1531
|
}
|
1405
1532
|
/**
|
1406
1533
|
* POST create new order
|
1534
|
+
*
|
1535
|
+
* @param {Vital.CreateOrderRequestCompatible} request
|
1536
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
1537
|
+
*
|
1407
1538
|
* @throws {@link Vital.UnprocessableEntityError}
|
1539
|
+
*
|
1540
|
+
* @example
|
1541
|
+
* await client.labTests.createOrder({
|
1542
|
+
* userId: "user_id",
|
1543
|
+
* patientDetails: {
|
1544
|
+
* firstName: "first_name",
|
1545
|
+
* lastName: "last_name",
|
1546
|
+
* dob: "2024-01-15T09:30:00Z",
|
1547
|
+
* gender: Vital.Gender.Female,
|
1548
|
+
* phoneNumber: "phone_number",
|
1549
|
+
* email: "email"
|
1550
|
+
* },
|
1551
|
+
* patientAddress: {
|
1552
|
+
* firstLine: "first_line",
|
1553
|
+
* city: "city",
|
1554
|
+
* state: "state",
|
1555
|
+
* zip: "zip",
|
1556
|
+
* country: "country"
|
1557
|
+
* }
|
1558
|
+
* })
|
1408
1559
|
*/
|
1409
1560
|
createOrder(request, requestOptions) {
|
1410
1561
|
var _a;
|
@@ -1412,16 +1563,16 @@ class LabTests {
|
|
1412
1563
|
const _response = yield core.fetcher({
|
1413
1564
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/order"),
|
1414
1565
|
method: "POST",
|
1415
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1566
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1416
1567
|
contentType: "application/json",
|
1417
|
-
|
1418
|
-
|
1419
|
-
}),
|
1568
|
+
requestType: "json",
|
1569
|
+
body: serializers.CreateOrderRequestCompatible.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
1420
1570
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1421
1571
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1572
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1422
1573
|
});
|
1423
1574
|
if (_response.ok) {
|
1424
|
-
return
|
1575
|
+
return serializers.PostOrderResponse.parseOrThrow(_response.body, {
|
1425
1576
|
unrecognizedObjectKeys: "passthrough",
|
1426
1577
|
allowUnrecognizedUnionMembers: true,
|
1427
1578
|
allowUnrecognizedEnumValues: true,
|
@@ -1431,7 +1582,7 @@ class LabTests {
|
|
1431
1582
|
if (_response.error.reason === "status-code") {
|
1432
1583
|
switch (_response.error.statusCode) {
|
1433
1584
|
case 422:
|
1434
|
-
throw new Vital.UnprocessableEntityError(
|
1585
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1435
1586
|
unrecognizedObjectKeys: "passthrough",
|
1436
1587
|
allowUnrecognizedUnionMembers: true,
|
1437
1588
|
allowUnrecognizedEnumValues: true,
|
@@ -1461,21 +1612,30 @@ class LabTests {
|
|
1461
1612
|
}
|
1462
1613
|
/**
|
1463
1614
|
* POST cancel order
|
1615
|
+
*
|
1616
|
+
* @param {string} orderId - Your Order ID.
|
1617
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
1618
|
+
*
|
1464
1619
|
* @throws {@link Vital.UnprocessableEntityError}
|
1620
|
+
*
|
1621
|
+
* @example
|
1622
|
+
* await client.labTests.cancelOrder("order_id")
|
1465
1623
|
*/
|
1466
1624
|
cancelOrder(orderId, requestOptions) {
|
1467
1625
|
var _a;
|
1468
1626
|
return __awaiter(this, void 0, void 0, function* () {
|
1469
1627
|
const _response = yield core.fetcher({
|
1470
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/cancel`),
|
1628
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/cancel`),
|
1471
1629
|
method: "POST",
|
1472
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1630
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1473
1631
|
contentType: "application/json",
|
1632
|
+
requestType: "json",
|
1474
1633
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1475
1634
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1635
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1476
1636
|
});
|
1477
1637
|
if (_response.ok) {
|
1478
|
-
return
|
1638
|
+
return serializers.PostOrderResponse.parseOrThrow(_response.body, {
|
1479
1639
|
unrecognizedObjectKeys: "passthrough",
|
1480
1640
|
allowUnrecognizedUnionMembers: true,
|
1481
1641
|
allowUnrecognizedEnumValues: true,
|
@@ -1485,7 +1645,7 @@ class LabTests {
|
|
1485
1645
|
if (_response.error.reason === "status-code") {
|
1486
1646
|
switch (_response.error.statusCode) {
|
1487
1647
|
case 422:
|
1488
|
-
throw new Vital.UnprocessableEntityError(
|
1648
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1489
1649
|
unrecognizedObjectKeys: "passthrough",
|
1490
1650
|
allowUnrecognizedUnionMembers: true,
|
1491
1651
|
allowUnrecognizedEnumValues: true,
|
@@ -1515,10 +1675,15 @@ class LabTests {
|
|
1515
1675
|
}
|
1516
1676
|
/**
|
1517
1677
|
* Get available test kits.
|
1678
|
+
*
|
1679
|
+
* @param {string} orderId
|
1680
|
+
* @param {Vital.LabTestsSimulateOrderProcessRequest} request
|
1681
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
1682
|
+
*
|
1518
1683
|
* @throws {@link Vital.UnprocessableEntityError}
|
1519
1684
|
*
|
1520
1685
|
* @example
|
1521
|
-
* await
|
1686
|
+
* await client.labTests.simulateOrderProcess("order_id")
|
1522
1687
|
*/
|
1523
1688
|
simulateOrderProcess(orderId, request = {}, requestOptions) {
|
1524
1689
|
var _a;
|
@@ -1532,13 +1697,15 @@ class LabTests {
|
|
1532
1697
|
_queryParams["delay"] = delay.toString();
|
1533
1698
|
}
|
1534
1699
|
const _response = yield core.fetcher({
|
1535
|
-
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${orderId}/test`),
|
1700
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, `v3/order/${encodeURIComponent(orderId)}/test`),
|
1536
1701
|
method: "POST",
|
1537
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1702
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1538
1703
|
contentType: "application/json",
|
1539
1704
|
queryParameters: _queryParams,
|
1705
|
+
requestType: "json",
|
1540
1706
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1541
1707
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1708
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1542
1709
|
});
|
1543
1710
|
if (_response.ok) {
|
1544
1711
|
return _response.body;
|
@@ -1546,7 +1713,7 @@ class LabTests {
|
|
1546
1713
|
if (_response.error.reason === "status-code") {
|
1547
1714
|
switch (_response.error.statusCode) {
|
1548
1715
|
case 422:
|
1549
|
-
throw new Vital.UnprocessableEntityError(
|
1716
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1550
1717
|
unrecognizedObjectKeys: "passthrough",
|
1551
1718
|
allowUnrecognizedUnionMembers: true,
|
1552
1719
|
allowUnrecognizedEnumValues: true,
|
@@ -1576,10 +1743,14 @@ class LabTests {
|
|
1576
1743
|
}
|
1577
1744
|
/**
|
1578
1745
|
* GET many orders with filters.
|
1746
|
+
*
|
1747
|
+
* @param {Vital.LabTestsGetOrdersRequest} request
|
1748
|
+
* @param {LabTests.RequestOptions} requestOptions - Request-specific configuration.
|
1749
|
+
*
|
1579
1750
|
* @throws {@link Vital.UnprocessableEntityError}
|
1580
1751
|
*
|
1581
1752
|
* @example
|
1582
|
-
* await
|
1753
|
+
* await client.labTests.getOrders()
|
1583
1754
|
*/
|
1584
1755
|
getOrders(request = {}, requestOptions) {
|
1585
1756
|
var _a;
|
@@ -1633,14 +1804,16 @@ class LabTests {
|
|
1633
1804
|
const _response = yield core.fetcher({
|
1634
1805
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.VitalEnvironment.Production, "v3/orders"),
|
1635
1806
|
method: "GET",
|
1636
|
-
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.
|
1807
|
+
headers: Object.assign({ "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@tryvital/vital-node", "X-Fern-SDK-Version": "3.1.70", "User-Agent": "@tryvital/vital-node/3.1.70", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
|
1637
1808
|
contentType: "application/json",
|
1638
1809
|
queryParameters: _queryParams,
|
1810
|
+
requestType: "json",
|
1639
1811
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
1640
1812
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
1813
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
1641
1814
|
});
|
1642
1815
|
if (_response.ok) {
|
1643
|
-
return
|
1816
|
+
return serializers.GetOrdersResponse.parseOrThrow(_response.body, {
|
1644
1817
|
unrecognizedObjectKeys: "passthrough",
|
1645
1818
|
allowUnrecognizedUnionMembers: true,
|
1646
1819
|
allowUnrecognizedEnumValues: true,
|
@@ -1650,7 +1823,7 @@ class LabTests {
|
|
1650
1823
|
if (_response.error.reason === "status-code") {
|
1651
1824
|
switch (_response.error.statusCode) {
|
1652
1825
|
case 422:
|
1653
|
-
throw new Vital.UnprocessableEntityError(
|
1826
|
+
throw new Vital.UnprocessableEntityError(serializers.HttpValidationError.parseOrThrow(_response.error.body, {
|
1654
1827
|
unrecognizedObjectKeys: "passthrough",
|
1655
1828
|
allowUnrecognizedUnionMembers: true,
|
1656
1829
|
allowUnrecognizedEnumValues: true,
|