diff --git a/lib/commonjs/native-types.js.map b/lib/commonjs/native-types.js.map index 4577da3..bc4d14d 100644 --- a/lib/commonjs/native-types.js.map +++ b/lib/commonjs/native-types.js.map @@ -1 +1 @@ -{"version":3,"names":["_reactNative","require","HKWorkoutTypeIdentifier","exports","HKActivitySummaryTypeIdentifier","HKAudiogramTypeIdentifier","HKWorkoutRouteTypeIdentifier","HKQuantityTypeIdentifier","HKCategoryValueLowCardioFitnessEvent","HKHeartRateMotionContext","HKCorrelationTypeIdentifier","HKCategoryTypeIdentifier","HKCategoryValueAppleStandHour","HKWorkoutActivityType","HKWeatherCondition","HKIndoorWorkout","HKAuthorizationRequestStatus","HKAuthorizationStatus","HKBloodType","HKBiologicalSex","HKFitzpatrickSkinType","HKStatisticsOptions","HKCategoryValueCervicalMucusQuality","HKCategoryValueMenstrualFlow","HKCategoryValueOvulationTestResult","HKCategoryValueSleepAnalysis","HKCategoryValueAppetiteChanges","HKCategoryValuePresence","HKCategoryValueSeverity","HKCategoryValueNotApplicable","HKInsulinDeliveryReason","HKCategoryValuePregnancyTestResult","HKWheelchairUse","HKMetricPrefix","HKUnitMetric","HKUnits","UnitOfLength","UnitOfVolume","UnitOfMass","UnitOfPressure","UnitOfTime","TemperatureUnit","UnitOfEnergy","BloodGlucoseUnit","HKWorkoutEventType","HKCharacteristicTypeIdentifier","HKUpdateFrequency","Native","NativeModules","ReactNativeHealthkit","EventEmitter","NativeEventEmitter","_default","default"],"sources":["native-types.ts"],"sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native'\n\nimport type { EmitterSubscription, NativeModule } from 'react-native'\n\n/**\n * Represents a workout type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkworkouttypeidentifier Apple Docs HKWorkoutTypeIdentifier}\n */\nexport const HKWorkoutTypeIdentifier = 'HKWorkoutTypeIdentifier' as const\n\n/**\n * Represents a type that identifies activity summary objects.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}\n */\nexport const HKActivitySummaryTypeIdentifier = 'HKActivitySummaryTypeIdentifier' as const\n\n/**\n * Represents an audiogram type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}\n */\nexport const HKAudiogramTypeIdentifier = 'HKAudiogramSampleType' as const\n\n/**\n * Represents a workout route type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutroutetypeidentifier Apple Docs HKWorkoutRouteTypeIdentifier}\n */\nexport const HKWorkoutRouteTypeIdentifier = 'HKWorkoutRouteTypeIdentifier' as const\n\n/**\n * Represents a series sample containing heartbeat data..\n * @see {@link https://developer.apple.com/documentation/healthkit/HKDataTypeIdentifierHeartbeatSeries Apple Docs HKDataTypeIdentifierHeartbeatSeries}\n */\nexport declare const HKDataTypeIdentifierHeartbeatSeries: 'HKDataTypeIdentifierHeartbeatSeries'\n\n/**\n * Represents a quantity type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier Apple Docs HKQuantityTypeIdentifier}\n */\nexport enum HKQuantityTypeIdentifier {\n /**\n * Body Mass Index\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymassindex Apple Docs HKQuantityTypeIdentifierBodyMassIndex}\n */\n bodyMassIndex = 'HKQuantityTypeIdentifierBodyMassIndex',\n\n /**\n * Body Fat Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodyfatpercentage Apple Docs HKQuantityTypeIdentifierBodyFatPercentage}\n */\n bodyFatPercentage = 'HKQuantityTypeIdentifierBodyFatPercentage',\n\n /**\n * Height\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheight Apple Docs HKQuantityTypeIdentifierHeight}\n */\n height = 'HKQuantityTypeIdentifierHeight',\n\n /**\n * Body Mass\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymass Apple Docs HKQuantityTypeIdentifierBodyMass}\n */\n bodyMass = 'HKQuantityTypeIdentifierBodyMass',\n\n /**\n * Lean Body Mass\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierleanbodymass Apple Docs HKQuantityTypeIdentifierLeanBodyMass}\n */\n leanBodyMass = 'HKQuantityTypeIdentifierLeanBodyMass',\n\n /**\n * Waist Circumference\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwaistcircumference Apple Docs HKQuantityTypeIdentifierWaistCircumference}\n */\n waistCircumference = 'HKQuantityTypeIdentifierWaistCircumference',\n\n /**\n * Step Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstepcount Apple Docs HKQuantityTypeIdentifierStepCount}\n */\n stepCount = 'HKQuantityTypeIdentifierStepCount',\n\n /**\n * Distance Walking Running\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewalkingrunning Apple Docs HKQuantityTypeIdentifierDistanceWalkingRunning}\n */\n distanceWalkingRunning = 'HKQuantityTypeIdentifierDistanceWalkingRunning',\n\n /**\n * Distance Cycling\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancecycling Apple Docs HKQuantityTypeIdentifierDistanceCycling}\n */\n distanceCycling = 'HKQuantityTypeIdentifierDistanceCycling',\n\n /**\n * Distance Wheelchair\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewheelchair Apple Docs HKQuantityTypeIdentifierDistanceWheelchair}\n */\n distanceWheelchair = 'HKQuantityTypeIdentifierDistanceWheelchair',\n /**\n * Basal Energy Burned\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalenergyburned Apple Docs HKQuantityTypeIdentifierBasalEnergyBurned}\n */\n basalEnergyBurned = 'HKQuantityTypeIdentifierBasalEnergyBurned', // Energy, Cumulative\n /**\n * Active Energy Burned\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieractiveenergyburned Apple Docs HKQuantityTypeIdentifierActiveEnergyBurned}\n */\n activeEnergyBurned = 'HKQuantityTypeIdentifierActiveEnergyBurned', // Energy, Cumulative\n /**\n * Flights Climbed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierflightsclimbed Apple Docs HKQuantityTypeIdentifierFlightsClimbed}\n */\n flightsClimbed = 'HKQuantityTypeIdentifierFlightsClimbed', // Scalar(Count), Cumulative\n /**\n * Nike Fuel\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernikefuel Apple Docs HKQuantityTypeIdentifierNikeFuel}\n */\n nikeFuel = 'HKQuantityTypeIdentifierNikeFuel', // Scalar(Count), Cumulative\n /**\n * Apple Exercise Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierappleexercisetime Apple Docs HKQuantityTypeIdentifierAppleExerciseTime}\n */\n appleExerciseTime = 'HKQuantityTypeIdentifierAppleExerciseTime', // Time Cumulative\n /**\n * Push Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpushcount Apple Docs HKQuantityTypeIdentifierPushCount}\n */\n pushCount = 'HKQuantityTypeIdentifierPushCount', // Scalar(Count), Cumulative\n /**\n * Distance Swimming\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistanceswimming Apple Docs HKQuantityTypeIdentifierDistanceSwimming}\n */\n distanceSwimming = 'HKQuantityTypeIdentifierDistanceSwimming', // Length, Cumulative\n /**\n * Swimming Stroke Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierswimmingstrokecount Apple Docs HKQuantityTypeIdentifierSwimmingStrokeCount}\n */\n swimmingStrokeCount = 'HKQuantityTypeIdentifierSwimmingStrokeCount', // Scalar(Count), Cumulative\n /**\n * VO2 Max\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiervo2max Apple Docs HKQuantityTypeIdentifierVO2Max}\n */\n vo2Max = 'HKQuantityTypeIdentifierVO2Max', // ml/(kg*min) Discrete\n /**\n * Distance Downhill Snow Sports\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancedownhillsnowsports Apple Docs HKQuantityTypeIdentifierDistanceDownhillSnowSports}\n */\n distanceDownhillSnowSports = 'HKQuantityTypeIdentifierDistanceDownhillSnowSports', // Length, Cumulative\n\n /**\n * Apple Stand Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplestandtime Apple Docs HKQuantityTypeIdentifierAppleStandTime}\n */\n appleStandTime = 'HKQuantityTypeIdentifierAppleStandTime', // Time, Cumulative\n // Vitals\n /**\n * Heart Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartrate Apple Docs HKQuantityTypeIdentifierHeartRate}\n */\n heartRate = 'HKQuantityTypeIdentifierHeartRate', // Scalar(Count)/Time, Discrete\n /**\n * Body Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodytemperature Apple Docs HKQuantityTypeIdentifierBodyTemperature}\n */\n bodyTemperature = 'HKQuantityTypeIdentifierBodyTemperature', // Temperature, Discrete\n /**\n * Basal Body Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalbodytemperature Apple Docs HKQuantityTypeIdentifierBasalBodyTemperature}\n */\n basalBodyTemperature = 'HKQuantityTypeIdentifierBasalBodyTemperature', // Basal Body Temperature, Discrete\n /**\n * Blood Pressure Systolic\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressuresystolic Apple Docs HKQuantityTypeIdentifierBloodPressureSystolic}\n */\n bloodPressureSystolic = 'HKQuantityTypeIdentifierBloodPressureSystolic', // Pressure, Discrete\n /**\n * Blood Pressure Diastolic\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressurediastolic Apple Docs HKQuantityTypeIdentifierBloodPressureDiastolic}\n */\n bloodPressureDiastolic = 'HKQuantityTypeIdentifierBloodPressureDiastolic', // Pressure, Discrete\n /**\n * Respiratory Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrespiratoryrate Apple Docs HKQuantityTypeIdentifierRespiratoryRate}\n */\n respiratoryRate = 'HKQuantityTypeIdentifierRespiratoryRate', // Scalar(Count)/Time, Discrete\n /**\n * Resting Heart Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrestingheartrate Apple Docs HKQuantityTypeIdentifierRestingHeartRate}\n */\n restingHeartRate = 'HKQuantityTypeIdentifierRestingHeartRate', // Scalar(Count)/Time, Discrete\n /**\n * Walking Heart Rate Average\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingheartrateaverage Apple Docs HKQuantityTypeIdentifierWalkingHeartRateAverage}\n * @since iOS 11.0\n */\n walkingHeartRateAverage = 'HKQuantityTypeIdentifierWalkingHeartRateAverage', // Scalar(Count)/Time, Discrete\n /**\n * Heart Rate Variability SDNN\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartratevariabilitysdnn Apple Docs HKQuantityTypeIdentifierHeartRateVariabilitySDNN}\n * @since iOS 11.0\n */\n heartRateVariabilitySDNN = 'HKQuantityTypeIdentifierHeartRateVariabilitySDNN', // Time (ms), Discrete\n /**\n * Oxygen Saturation\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieroxygensaturation Apple Docs HKQuantityTypeIdentifierOxygenSaturation}\n * @since iOS 8.0\n */\n oxygenSaturation = 'HKQuantityTypeIdentifierOxygenSaturation',\n /**\n * Peripheral Perfusion Index\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierperipheralperfusionindex Apple Docs HKQuantityTypeIdentifierPeripheralPerfusionIndex}\n * @since iOS 8.0\n */\n peripheralPerfusionIndex = 'HKQuantityTypeIdentifierPeripheralPerfusionIndex', // Scalar(Percent, 0.0 - 1.0), Discrete\n /**\n * Blood Glucose\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodglucose Apple Docs HKQuantityTypeIdentifierBloodGlucose}\n */\n bloodGlucose = 'HKQuantityTypeIdentifierBloodGlucose',\n\n /**\n * Number Of Times Fallen\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberoftimesfallen Apple Docs HKQuantityTypeIdentifierNumberOfTimesFallen}\n */\n numberOfTimesFallen = 'HKQuantityTypeIdentifierNumberOfTimesFallen',\n\n /**\n * Electrodermal Activity\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierelectrodermalactivity Apple Docs HKQuantityTypeIdentifierElectrodermalActivity}\n */\n electrodermalActivity = 'HKQuantityTypeIdentifierElectrodermalActivity',\n\n /**\n * Inhaler Usage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinhalerusage Apple Docs HKQuantityTypeIdentifierInhalerUsage}\n * @since iOS 8\n */\n inhalerUsage = 'HKQuantityTypeIdentifierInhalerUsage',\n\n /**\n * Insulin Delivery\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinsulindelivery Apple Docs HKQuantityTypeIdentifierInsulinDelivery}\n * @since iOS 11\n */\n insulinDelivery = 'HKQuantityTypeIdentifierInsulinDelivery',\n\n /**\n * Blood Alcohol Content\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodalcoholcontent Apple Docs HKQuantityTypeIdentifierBloodAlcoholContent}\n * @since iOS 8\n */\n bloodAlcoholContent = 'HKQuantityTypeIdentifierBloodAlcoholContent',\n\n /**\n * Forced Vital Capacity\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedvitalcapacity Apple Docs HKQuantityTypeIdentifierForcedVitalCapacity}\n */\n forcedVitalCapacity = 'HKQuantityTypeIdentifierForcedVitalCapacity',\n\n /**\n * Forced Expiratory Volume1\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedexpiratoryvolume1 Apple Docs HKQuantityTypeIdentifierForcedExpiratoryVolume1}\n * @since iOS 8\n */\n forcedExpiratoryVolume1 = 'HKQuantityTypeIdentifierForcedExpiratoryVolume1',\n\n /**\n * Peak Expiratory Flow Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpeakexpiratoryflowrate Apple Docs HKQuantityTypeIdentifierPeakExpiratoryFlowRate}\n * @since iOS 8\n */\n peakExpiratoryFlowRate = 'HKQuantityTypeIdentifierPeakExpiratoryFlowRate',\n\n /**\n * Environmental Audio Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalaudioexposure Apple Docs HKQuantityTypeIdentifierEnvironmentalAudioExposure}\n * @since iOS 13\n */\n environmentalAudioExposure = 'HKQuantityTypeIdentifierEnvironmentalAudioExposure',\n\n /**\n * Headphone Audio Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheadphoneaudioexposure Apple Docs HKQuantityTypeIdentifierHeadphoneAudioExposure}\n * @since iOS 13\n */\n headphoneAudioExposure = 'HKQuantityTypeIdentifierHeadphoneAudioExposure', // Pressure, Cumulative\n\n // Nutrition\n /**\n * Dietary Fat Total\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfattotal Apple Docs HKQuantityTypeIdentifierDietaryFatTotal}\n * @since iOS 8\n */\n dietaryFatTotal = 'HKQuantityTypeIdentifierDietaryFatTotal', // Mass, Cumulative\n\n /**\n * Dietary Fat Polyunsaturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatpolyunsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatPolyunsaturated}\n */\n dietaryFatPolyunsaturated = 'HKQuantityTypeIdentifierDietaryFatPolyunsaturated', // Mass, Cumulative\n\n /**\n * Dietary Fat Monounsaturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatmonounsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatMonounsaturated}\n */\n dietaryFatMonounsaturated = 'HKQuantityTypeIdentifierDietaryFatMonounsaturated', // Mass, Cumulative\n /**\n * Dietary Fat Saturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatSaturated}\n */\n dietaryFatSaturated = 'HKQuantityTypeIdentifierDietaryFatSaturated', // Mass, Cumulative\n\n /**\n * Dietary Cholesterol\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycholesterol Apple Docs HKQuantityTypeIdentifierDietaryCholesterol}\n */\n dietaryCholesterol = 'HKQuantityTypeIdentifierDietaryCholesterol', // Mass, Cumulative\n\n /**\n * Dietary Sodium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysodium Apple Docs HKQuantityTypeIdentifierDietarySodium}\n */\n dietarySodium = 'HKQuantityTypeIdentifierDietarySodium', // Mass, Cumulative\n\n /**\n * Dietary Carbohydrates\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycarbohydrates Apple Docs HKQuantityTypeIdentifierDietaryCarbohydrates}\n */\n dietaryCarbohydrates = 'HKQuantityTypeIdentifierDietaryCarbohydrates', // Mass, Cumulative\n\n /**\n * Dietary Fiber\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfiber Apple Docs HKQuantityTypeIdentifierDietaryFiber}\n */\n dietaryFiber = 'HKQuantityTypeIdentifierDietaryFiber', // Mass, Cumulative\n /**\n * Dietary Sugar\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysugar Apple Docs HKQuantityTypeIdentifierDietarySugar}\n */\n dietarySugar = 'HKQuantityTypeIdentifierDietarySugar', // Mass, Cumulative\n\n /**\n * Dietary Energy Consumed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryenergyconsumed Apple Docs HKQuantityTypeIdentifierDietaryEnergyConsumed}\n */\n dietaryEnergyConsumed = 'HKQuantityTypeIdentifierDietaryEnergyConsumed', // Energy, Cumulative\n\n /**\n * Dietary Protein\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryprotein Apple Docs HKQuantityTypeIdentifierDietaryProtein}\n */\n dietaryProtein = 'HKQuantityTypeIdentifierDietaryProtein', // Mass, Cumulative\n\n /**\n * Dietary Vitamin A\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamina Apple Docs HKQuantityTypeIdentifierDietaryVitaminA}\n */\n dietaryVitaminA = 'HKQuantityTypeIdentifierDietaryVitaminA', // Mass, Cumulative\n\n /**\n * Dietary Vitamin B6\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb6 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB6}\n */\n dietaryVitaminB6 = 'HKQuantityTypeIdentifierDietaryVitaminB6', // Mass, Cumulative\n\n /**\n * Dietary Vitamin B12\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb12 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB12}\n */\n dietaryVitaminB12 = 'HKQuantityTypeIdentifierDietaryVitaminB12', // Mass, Cumulative\n\n /**\n * Dietary Vitamin C\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminc Apple Docs HKQuantityTypeIdentifierDietaryVitaminC}\n */\n dietaryVitaminC = 'HKQuantityTypeIdentifierDietaryVitaminC', // Mass, Cumulative\n\n /**\n * Dietary Vitamin D\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamind Apple Docs HKQuantityTypeIdentifierDietaryVitaminD}\n */\n dietaryVitaminD = 'HKQuantityTypeIdentifierDietaryVitaminD', // Mass, Cumulative\n\n /**\n * Dietary Vitamin E\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamine Apple Docs HKQuantityTypeIdentifierDietaryVitaminE}\n */\n dietaryVitaminE = 'HKQuantityTypeIdentifierDietaryVitaminE', // Mass, Cumulative\n\n /**\n * Dietary Vitamin K\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamink Apple Docs HKQuantityTypeIdentifierDietaryVitaminK}\n */\n dietaryVitaminK = 'HKQuantityTypeIdentifierDietaryVitaminK', // Mass, Cumulative\n /**\n * Dietary Calcium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycalcium Apple Docs HKQuantityTypeIdentifierDietaryCalcium}\n */\n dietaryCalcium = 'HKQuantityTypeIdentifierDietaryCalcium', // Mass, Cumulative\n\n /**\n * Dietary Iron\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiron Apple Docs HKQuantityTypeIdentifierDietaryIron}\n */\n dietaryIron = 'HKQuantityTypeIdentifierDietaryIron', // Mass, Cumulative\n\n /**\n * Dietary Thiamin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarythiamin Apple Docs HKQuantityTypeIdentifierDietaryThiamin}\n */\n dietaryThiamin = 'HKQuantityTypeIdentifierDietaryThiamin', // Mass, Cumulative\n\n /**\n * Dietary Riboflavin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryriboflavin Apple Docs HKQuantityTypeIdentifierDietaryRiboflavin}\n */\n dietaryRiboflavin = 'HKQuantityTypeIdentifierDietaryRiboflavin', // Mass, Cumulative\n\n /**\n * Dietary Niacin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryniacin Apple Docs HKQuantityTypeIdentifierDietaryNiacin}\n */\n dietaryNiacin = 'HKQuantityTypeIdentifierDietaryNiacin', // Mass, Cumulative\n\n /**\n * Dietary Folate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfolate Apple Docs HKQuantityTypeIdentifierDietaryFolate}\n */\n dietaryFolate = 'HKQuantityTypeIdentifierDietaryFolate', // Mass, Cumulative\n\n /**\n * Dietary Biotin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarybiotin Apple Docs HKQuantityTypeIdentifierDietaryBiotin}\n */\n dietaryBiotin = 'HKQuantityTypeIdentifierDietaryBiotin', // Mass, Cumulative\n\n /**\n * Dietary Pantothenic Acid\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypantothenicacid Apple Docs HKQuantityTypeIdentifierDietaryPantothenicAcid}\n */\n dietaryPantothenicAcid = 'HKQuantityTypeIdentifierDietaryPantothenicAcid', // Mass, Cumulative\n\n /**\n * Dietary Phosphorus\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryphosphorus Apple Docs HKQuantityTypeIdentifierDietaryPhosphorus}\n */\n dietaryPhosphorus = 'HKQuantityTypeIdentifierDietaryPhosphorus', // Mass, Cumulative\n\n /**\n * Dietary Iodine\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiodine Apple Docs HKQuantityTypeIdentifierDietaryIodine}\n */\n dietaryIodine = 'HKQuantityTypeIdentifierDietaryIodine', // Mass, Cumulative\n /**\n * Dietary Magnesium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymagnesium Apple Docs HKQuantityTypeIdentifierDietaryMagnesium}\n */\n dietaryMagnesium = 'HKQuantityTypeIdentifierDietaryMagnesium', // Mass, Cumulative\n\n /**\n * Dietary Zinc\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryzinc Apple Docs HKQuantityTypeIdentifierDietaryZinc}\n */\n dietaryZinc = 'HKQuantityTypeIdentifierDietaryZinc', // Mass, Cumulative\n\n /**\n * Dietary Selenium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryselenium Apple Docs HKQuantityTypeIdentifierDietarySelenium}\n */\n dietarySelenium = 'HKQuantityTypeIdentifierDietarySelenium', // Mass, Cumulative\n\n /**\n * Dietary Copper\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycopper Apple Docs HKQuantityTypeIdentifierDietaryCopper}\n */\n dietaryCopper = 'HKQuantityTypeIdentifierDietaryCopper', // Mass, Cumulative\n\n /**\n * Dietary Manganese\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymanganese Apple Docs HKQuantityTypeIdentifierDietaryManganese}\n */\n dietaryManganese = 'HKQuantityTypeIdentifierDietaryManganese', // Mass, Cumulative\n\n /**\n * Dietary Chromium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychromium Apple Docs HKQuantityTypeIdentifierDietaryChromium}\n */\n dietaryChromium = 'HKQuantityTypeIdentifierDietaryChromium', // Mass, Cumulative\n\n /**\n * Dietary Molybdenum\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymolybdenum Apple Docs HKQuantityTypeIdentifierDietaryMolybdenum}\n */\n dietaryMolybdenum = 'HKQuantityTypeIdentifierDietaryMolybdenum', // Mass, Cumulative\n\n /**\n * Dietary Chloride\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychloride Apple Docs HKQuantityTypeIdentifierDietaryChloride}\n * @since iOS 8\n */\n dietaryChloride = 'HKQuantityTypeIdentifierDietaryChloride', // Mass, Cumulative\n\n /**\n * Dietary Potassium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypotassium Apple Docs HKQuantityTypeIdentifierDietaryPotassium}\n * @since iOS 8\n */\n dietaryPotassium = 'HKQuantityTypeIdentifierDietaryPotassium', // Mass, Cumulative\n\n /**\n * Dietary Caffeine\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycaffeine Apple Docs HKQuantityTypeIdentifierDietaryCaffeine}\n * @since iOS 8\n */\n dietaryCaffeine = 'HKQuantityTypeIdentifierDietaryCaffeine', // Mass, Cumulative\n\n /**\n * Dietary Water\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarywater Apple Docs HKQuantityTypeIdentifierDietaryWater}\n * @since iOS 9\n */\n dietaryWater = 'HKQuantityTypeIdentifierDietaryWater', // Volume, Cumulative\n\n // Mobility\n /**\n * Six Minute Walk Test Distance\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiersixminutewalktestdistance Apple Docs HKQuantityTypeIdentifierSixMinuteWalkTestDistance}\n * @since iOS 14\n */\n sixMinuteWalkTestDistance = 'HKQuantityTypeIdentifierSixMinuteWalkTestDistance',\n\n /**\n * Walking Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingspeed Apple Docs HKQuantityTypeIdentifierWalkingSpeed}\n * @since iOS 14\n */\n walkingSpeed = 'HKQuantityTypeIdentifierWalkingSpeed',\n\n /**\n * Walking Step Length\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingsteplength Apple Docs HKQuantityTypeIdentifierWalkingStepLength}\n * @since iOS 14\n */\n walkingStepLength = 'HKQuantityTypeIdentifierWalkingStepLength',\n\n /**\n * Walking Asymmetry Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingasymmetrypercentage Apple Docs HKQuantityTypeIdentifierWalkingAsymmetryPercentage}\n * @since iOS 14\n */\n walkingAsymmetryPercentage = 'HKQuantityTypeIdentifierWalkingAsymmetryPercentage',\n\n /**\n * Walking Double Support Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingdoublesupportpercentage Apple Docs HKQuantityTypeIdentifierWalkingDoubleSupportPercentage}\n * @since iOS 14\n */\n walkingDoubleSupportPercentage = 'HKQuantityTypeIdentifierWalkingDoubleSupportPercentage',\n\n /**\n * Stair Ascent Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairascentspeed Apple Docs HKQuantityTypeIdentifierStairAscentSpeed}\n * @since iOS 14\n */\n stairAscentSpeed = 'HKQuantityTypeIdentifierStairAscentSpeed',\n\n /**\n * Stair Descent Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairdescentspeed Apple Docs HKQuantityTypeIdentifierStairDescentSpeed}\n * @since iOS 14\n */\n stairDescentSpeed = 'HKQuantityTypeIdentifierStairDescentSpeed',\n\n /**\n * UV Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieruvexposure Apple Docs HKQuantityTypeIdentifierUVExposure}\n * @since iOS 9\n */\n uvExposure = 'HKQuantityTypeIdentifierUVExposure', // Scalar (Count), Discrete\n\n /**\n * Apple Move Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplemovetime Apple Docs HKQuantityTypeIdentifierAppleMoveTime}\n * @since iOS 14.5\n */\n appleMoveTime = 'HKQuantityTypeIdentifierAppleMoveTime', // Time, Cumulative\n\n /**\n * Apple Walking Steadiness\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplewalkingsteadiness Apple Docs HKQuantityTypeIdentifierAppleWalkingSteadiness}\n * @since iOS 15\n */\n appleWalkingSteadiness = 'HKQuantityTypeIdentifierAppleWalkingSteadiness', // Scalar(Percent, 0.0 - 1.0), Discrete\n\n /**\n * Number Of Alcoholic Beverages\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberofalcoholicbeverages Apple Docs HKQuantityTypeIdentifierNumberOfAlcoholicBeverages}\n * @since iOS 15\n */\n numberOfAlcoholicBeverages = 'HKQuantityTypeIdentifierNumberOfAlcoholicBeverages', // Scalar(Count), Cumulative\n\n /**\n * Atrial Fibrillation Burden\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieratrialfibrillationburden Apple Docs HKQuantityTypeIdentifierAtrialFibrillationBurden}\n * @since iOS 16\n */\n atrialFibrillationBurden = 'HKQuantityTypeIdentifierAtrialFibrillationBurden', // Scalar(Percent, 0.0 - 1.0), Discrete\n\n /**\n * Underwater Depth\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierunderwaterdepth Apple Docs HKQuantityTypeIdentifierUnderwaterDepth}\n * @since iOS 16\n */\n underwaterDepth = 'HKQuantityTypeIdentifierUnderwaterDepth', // Length, Discrete\n\n /**\n * Water Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwatertemperature Apple Docs HKQuantityTypeIdentifierWaterTemperature}\n * @since iOS 16\n */\n waterTemperature = 'HKQuantityTypeIdentifierWaterTemperature', // Temperature, Discrete\n\n /**\n * Apple Sleeping Wrist Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplesleepingwristtemperature Apple Docs HKQuantityTypeIdentifierAppleSleepingWristTemperature}\n * @since iOS 17\n */\n appleSleepingWristTemperature = 'HKQuantityTypeIdentifierAppleSleepingWristTemperature', // Temperature, Discrete\n\n /**\n * Time In Daylight\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiertimeindaylight Apple Docs HKQuantityTypeIdentifierTimeInDaylight}\n * @since iOS 17\n */\n timeInDaylight = 'HKQuantityTypeIdentifierTimeInDaylight', // Time, Cumulative\n\n /**\n * Physical Effort\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierphysicaleffort Apple Docs HKQuantityTypeIdentifierPhysicalEffort}\n * @since iOS 17\n */\n physicalEffort = 'HKQuantityTypeIdentifierPhysicalEffort', // Scalar (Percent, 0.0 - 1.0), Discrete\n\n /**\n * Cycling Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingspeed Apple Docs HKQuantityTypeIdentifierCyclingSpeed}\n * @since iOS 17\n */\n cyclingSpeed = 'HKQuantityTypeIdentifierCyclingSpeed',\n\n /**\n * Cycling Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingpower Apple Docs HKQuantityTypeIdentifierCyclingPower}\n * @since iOS 17\n */\n cyclingPower = 'HKQuantityTypeIdentifierCyclingPower',\n\n /**\n * Cycling Functional Threshold Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingfunctionalthresholdpower Apple Docs HKQuantityTypeIdentifierCyclingFunctionalThresholdPower}\n * @since iOS 17\n */\n cyclingFunctionalThresholdPower = 'HKQuantityTypeIdentifierCyclingFunctionalThresholdPower',\n\n /**\n * Cycling Cadence\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingcadence Apple Docs HKQuantityTypeIdentifierCyclingCadence}\n * @since iOS 17\n */\n cyclingCadence = 'HKQuantityTypeIdentifierCyclingCadence',\n\n /**\n * Environmental Sound Reduction\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalsoundreduction Apple Docs HKQuantityTypeIdentifierEnvironmentalSoundReduction}\n * @since iOS 16\n */\n environmentalSoundReduction = 'HKQuantityTypeIdentifierEnvironmentalSoundReduction',\n\n /**\n * Heart Rate Recovery One Minute\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartraterecoveryoneminute Apple Docs HKQuantityTypeIdentifierHeartRateRecoveryOneMinute}\n * @since iOS 16\n */\n heartRateRecoveryOneMinute = 'HKQuantityTypeIdentifierHeartRateRecoveryOneMinute',\n\n /**\n * Running Ground Contact Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunninggroundcontacttime Apple Docs HKQuantityTypeIdentifierRunningGroundContactTime}\n * @since iOS 16\n */\n runningGroundContactTime = 'HKQuantityTypeIdentifierRunningGroundContactTime',\n\n /**\n * Running Stride Length\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningstridelength Apple Docs HKQuantityTypeIdentifierRunningStrideLength}\n * @since iOS 16\n */\n runningStrideLength = 'HKQuantityTypeIdentifierRunningStrideLength',\n\n /**\n * Running Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningpower Apple Docs HKQuantityTypeIdentifierRunningPower}\n * @since iOS 16\n */\n runningPower = 'HKQuantityTypeIdentifierRunningPower',\n\n /**\n * Running Vertical Oscillation\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningverticaloscillation Apple Docs HKQuantityTypeIdentifierRunningVerticalOscillation}\n * @since iOS 16\n */\n runningVerticalOscillation = 'HKQuantityTypeIdentifierRunningVerticalOscillation',\n\n /**\n * Running Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningspeed Apple Docs HKQuantityTypeIdentifierRunningSpeed}\n * @since iOS 16\n */\n runningSpeed = 'HKQuantityTypeIdentifierRunningSpeed',\n}\n\nexport type TypeToUnitMapping = {\n readonly [key in HKQuantityTypeIdentifier]: HKUnit;\n};\n\nexport enum HKCategoryValueLowCardioFitnessEvent {\n lowFitness = 1,\n}\n\nexport enum HKHeartRateMotionContext {\n active = 2,\n notSet = 0,\n sedentary = 1,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcorrelationtypeidentifier Apple Docs }\n */\nexport enum HKCorrelationTypeIdentifier {\n bloodPressure = 'HKCorrelationTypeIdentifierBloodPressure',\n food = 'HKCorrelationTypeIdentifierFood',\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier Apple Docs }\n */\nexport enum HKCategoryTypeIdentifier {\n sleepAnalysis = 'HKCategoryTypeIdentifierSleepAnalysis',\n appleStandHour = 'HKCategoryTypeIdentifierAppleStandHour',\n cervicalMucusQuality = 'HKCategoryTypeIdentifierCervicalMucusQuality',\n ovulationTestResult = 'HKCategoryTypeIdentifierOvulationTestResult',\n menstrualFlow = 'HKCategoryTypeIdentifierMenstrualFlow',\n intermenstrualBleeding = 'HKCategoryTypeIdentifierIntermenstrualBleeding',\n sexualActivity = 'HKCategoryTypeIdentifierSexualActivity',\n mindfulSession = 'HKCategoryTypeIdentifierMindfulSession',\n highHeartRateEvent = 'HKCategoryTypeIdentifierHighHeartRateEvent',\n lowHeartRateEvent = 'HKCategoryTypeIdentifierLowHeartRateEvent',\n irregularHeartRhythmEvent = 'HKCategoryTypeIdentifierIrregularHeartRhythmEvent',\n /**\n * @deprecated Use environmentalAudioExposureEvent instead.\n */\n audioExposureEvent = 'HKCategoryTypeIdentifierAudioExposureEvent',\n toothbrushingEvent = 'HKCategoryTypeIdentifierToothbrushingEvent',\n lowCardioFitnessEvent = 'HKCategoryTypeIdentifierLowCardioFitnessEvent',\n contraceptive = 'HKCategoryTypeIdentifierContraceptive',\n lactation = 'HKCategoryTypeIdentifierLactation',\n pregnancy = 'HKCategoryTypeIdentifierPregnancy',\n pregnancyTestResult = 'HKCategoryTypeIdentifierPregnancyTestResult',\n progesteroneTestResult = 'HKCategoryTypeIdentifierProgesteroneTestResult',\n environmentalAudioExposureEvent = 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent',\n headphoneAudioExposureEvent = 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent',\n appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',\n handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue\n\n // Symptoms\n abdominalCramps = 'HKCategoryTypeIdentifierAbdominalCramps', // HKCategoryValueSeverity\n acne = 'HKCategoryTypeIdentifierAcne', // HKCategoryValueSeverity\n appetiteChanges = 'HKCategoryTypeIdentifierAppetiteChanges', // HKCategoryValueAppetiteChanges\n bladderIncontinence = 'HKCategoryTypeIdentifierBladderIncontinence', // HKCategoryValueSeverity\n bloating = 'HKCategoryTypeIdentifierBloating', // HKCategoryValueSeverity\n breastPain = 'HKCategoryTypeIdentifierBreastPain', // HKCategoryValueSeverity\n chestTightnessOrPain = 'HKCategoryTypeIdentifierChestTightnessOrPain', // HKCategoryValueSeverity\n chills = 'HKCategoryTypeIdentifierChills', // HKCategoryValueSeverity\n constipation = 'HKCategoryTypeIdentifierConstipation', // HKCategoryValueSeverity\n coughing = 'HKCategoryTypeIdentifierCoughing', // HKCategoryValueSeverity\n diarrhea = 'HKCategoryTypeIdentifierDiarrhea', // HKCategoryValueSeverity\n dizziness = 'HKCategoryTypeIdentifierDizziness', // HKCategoryValueSeverity\n drySkin = 'HKCategoryTypeIdentifierDrySkin', // HKCategoryValueSeverity\n fainting = 'HKCategoryTypeIdentifierFainting', // HKCategoryValueSeverity\n fatigue = 'HKCategoryTypeIdentifierFatigue', // HKCategoryValueSeverity\n fever = 'HKCategoryTypeIdentifierFever', // HKCategoryValueSeverity\n generalizedBodyAche = 'HKCategoryTypeIdentifierGeneralizedBodyAche', // HKCategoryValueSeverity\n hairLoss = 'HKCategoryTypeIdentifierHairLoss', // HKCategoryValueSeverity\n headache = 'HKCategoryTypeIdentifierHeadache', // HKCategoryValueSeverity\n heartburn = 'HKCategoryTypeIdentifierHeartburn', // HKCategoryValueSeverity\n hotFlashes = 'HKCategoryTypeIdentifierHotFlashes', // HKCategoryValueSeverity\n lossOfSmell = 'HKCategoryTypeIdentifierLossOfSmell', // HKCategoryValueSeverity\n lossOfTaste = 'HKCategoryTypeIdentifierLossOfTaste', // HKCategoryValueSeverity\n lowerBackPain = 'HKCategoryTypeIdentifierLowerBackPain', // HKCategoryValueSeverity\n memoryLapse = 'HKCategoryTypeIdentifierMemoryLapse', // HKCategoryValueSeverity\n moodChanges = 'HKCategoryTypeIdentifierMoodChanges', // HKCategoryValuePresence\n nausea = 'HKCategoryTypeIdentifierNausea', // HKCategoryValueSeverity\n nightSweats = 'HKCategoryTypeIdentifierNightSweats', // HKCategoryValueSeverity\n pelvicPain = 'HKCategoryTypeIdentifierPelvicPain', // HKCategoryValueSeverity\n rapidPoundingOrFlutteringHeartbeat = 'HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat', // HKCategoryValueSeverity\n runnyNose = 'HKCategoryTypeIdentifierRunnyNose', // HKCategoryValueSeverity\n shortnessOfBreath = 'HKCategoryTypeIdentifierShortnessOfBreath', // HKCategoryValueSeverity\n sinusCongestion = 'HKCategoryTypeIdentifierSinusCongestion', // HKCategoryValueSeverity\n skippedHeartbeat = 'HKCategoryTypeIdentifierSkippedHeartbeat', // HKCategoryValueSeverity\n sleepChanges = 'HKCategoryTypeIdentifierSleepChanges', // HKCategoryValuePresence\n soreThroat = 'HKCategoryTypeIdentifierSoreThroat', // HKCategoryValueSeverity\n vaginalDryness = 'HKCategoryTypeIdentifierVaginalDryness', // HKCategoryValueSeverity\n vomiting = 'HKCategoryTypeIdentifierVomiting', // HKCategoryValueSeverity\n wheezing = 'HKCategoryTypeIdentifierWheezing', // HKCategoryValueSeverity\n}\n\nexport type HKSampleTypeIdentifier =\n | HKCategoryTypeIdentifier\n | HKCorrelationTypeIdentifier\n | HKQuantityTypeIdentifier\n | typeof HKActivitySummaryTypeIdentifier\n | typeof HKAudiogramTypeIdentifier\n | typeof HKDataTypeIdentifierHeartbeatSeries\n | typeof HKWorkoutRouteTypeIdentifier\n | typeof HKWorkoutTypeIdentifier\n | `${HKCategoryTypeIdentifier}`\n | `${HKCorrelationTypeIdentifier}`\n | `${HKQuantityTypeIdentifier}`;\n\nexport type HealthkitReadAuthorization =\n | HKCharacteristicTypeIdentifier\n | HKSampleTypeIdentifier\n | `${HKCharacteristicTypeIdentifier}`\n | `${HKSampleTypeIdentifier}`;\nexport type HealthkitWriteAuthorization = HKSampleTypeIdentifier;\n\nexport enum HKCategoryValueAppleStandHour {\n stood = 0,\n idle = 1,\n}\n\nexport enum HKWorkoutActivityType {\n americanFootball = 1,\n archery = 2,\n australianFootball = 3,\n badminton = 4,\n baseball = 5,\n basketball = 6,\n bowling = 7,\n boxing = 8, // See also HKWorkoutActivityTypeKickboxing.,\n climbing = 9,\n cricket = 10,\n crossTraining = 11, // Any mix of cardio and/or strength training. See also HKWorkoutActivityTypeCoreTraining and HKWorkoutActivityTypeFlexibility.,\n curling = 12,\n cycling = 13,\n dance = 14,\n danceInspiredTraining = 15, // This enum remains available to access older data.,\n elliptical = 16,\n equestrianSports = 17, // Polo, Horse Racing, Horse Riding, etc.,\n fencing = 18,\n fishing = 19,\n functionalStrengthTraining = 20, // Primarily free weights and/or body weight and/or accessories,\n golf = 21,\n gymnastics = 22,\n handball = 23,\n hiking = 24,\n hockey = 25, // Ice Hockey, Field Hockey, etc.,\n hunting = 26,\n lacrosse = 27,\n martialArts = 28,\n mindAndBody = 29, // Qigong, meditation, etc.,\n mixedMetabolicCardioTraining = 30, // This enum remains available to access older data.,\n paddleSports = 31, // Canoeing, Kayaking, Outrigger, Stand Up Paddle Board, etc.,\n play = 32, // Dodge Ball, Hopscotch, Tetherball, Jungle Gym, etc.,\n preparationAndRecovery = 33, // Foam rolling, stretching, etc.,\n racquetball = 34,\n rowing = 35,\n rugby = 36,\n running = 37,\n sailing = 38,\n skatingSports = 39, // Ice Skating, Speed Skating, Inline Skating, Skateboarding, etc.,\n snowSports = 40, // Sledding, Snowmobiling, Building a Snowman, etc. See also HKWorkoutActivityTypeCrossCountrySkiing, HKWorkoutActivityTypeSnowboarding, and HKWorkoutActivityTypeDownhillSkiing.,\n soccer = 41,\n softball = 42,\n squash = 43,\n stairClimbing = 44, // See also HKWorkoutActivityTypeStairs and HKWorkoutActivityTypeStepTraining.,\n surfingSports = 45, // Traditional Surfing, Kite Surfing, Wind Surfing, etc.,\n swimming = 46,\n tableTennis = 47,\n tennis = 48,\n trackAndField = 49, // Shot Put, Javelin, Pole Vaulting, etc.,\n traditionalStrengthTraining = 50, // Primarily machines and/or free weights,\n volleyball = 51,\n walking = 52,\n waterFitness = 53,\n waterPolo = 54,\n waterSports = 55, // Water Skiing, Wake Boarding, etc.,\n wrestling = 56,\n yoga = 57,\n barre = 58, // HKWorkoutActivityTypeDanceInspiredTraining,\n coreTraining = 59,\n crossCountrySkiing = 60,\n downhillSkiing = 61,\n flexibility = 62,\n highIntensityIntervalTraining = 63,\n jumpRope = 64,\n kickboxing = 65,\n pilates = 66, // HKWorkoutActivityTypeDanceInspiredTraining,\n snowboarding = 67,\n stairs = 68,\n stepTraining = 69,\n wheelchairWalkPace = 70,\n wheelchairRunPace = 71,\n taiChi = 72,\n mixedCardio = 73, // HKWorkoutActivityTypeMixedMetabolicCardioTraining,\n handCycling = 74,\n discSports = 75,\n fitnessGaming = 76,\n other = 3000,\n}\n\nexport type HKGenericMetadata = {\n readonly [key: string]: HKQuantity | boolean | number | string | undefined;\n readonly HKExternalUUID?: string;\n readonly HKTimeZone?: string;\n readonly HKWasUserEntered?: boolean;\n readonly HKDeviceSerialNumber?: string;\n readonly HKUDIDeviceIdentifier?: string;\n readonly HKUDIProductionIdentifier?: string;\n readonly HKDigitalSignature?: string;\n readonly HKDeviceName?: string;\n readonly HKDeviceManufacturerName?: string;\n readonly HKSyncIdentifier?: string;\n readonly HKSyncVersion?: number;\n readonly HKWasTakenInLab?: boolean;\n readonly HKReferenceRangeLowerLimit?: number;\n readonly HKReferenceRangeUpperLimit?: number;\n};\n\n// documented at https://developer.apple.com/documentation/healthkit/hkweathercondition\nexport enum HKWeatherCondition {\n none = 0,\n clear = 1,\n fair = 2,\n partlyCloudy = 3,\n mostlyCloudy = 4,\n cloudy = 5,\n foggy = 6,\n haze = 7,\n windy = 8,\n blustery = 9,\n smoky = 10,\n dust = 11,\n snow = 12,\n hail = 13,\n sleet = 14,\n freezingDrizzle = 15,\n freezingRain = 16,\n mixedRainAndHail = 17,\n mixedRainAndSnow = 18,\n mixedRainAndSleet = 19,\n mixedSnowAndSleet = 20,\n drizzle = 21,\n scatteredShowers = 22,\n showers = 23,\n thunderstorms = 24,\n tropicalStorm = 25,\n hurricane = 26,\n tornado = 27,\n}\n\nenum HKIndoorWorkout {\n false = 0,\n true = 1,\n}\n\nexport interface HKWorkoutMetadata\n extends HKGenericMetadata /* */ {\n readonly HKWeatherCondition?: HKWeatherCondition;\n readonly HKWeatherHumidity?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Percent\n >;\n // HKWeatherTemperature: HKQuantity\n readonly HKAverageMETs?: HKQuantity;\n readonly HKElevationAscended?: HKQuantity<\n HKQuantityTypeIdentifier,\n LengthUnit\n >;\n readonly HKIndoorWorkout?: HKIndoorWorkout;\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationrequeststatus Apple Docs }\n */\nexport enum HKAuthorizationRequestStatus {\n unknown = 0,\n shouldRequest = 1,\n unnecessary = 2,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationstatus Apple Docs }\n */\nexport enum HKAuthorizationStatus {\n notDetermined = 0,\n sharingDenied = 1,\n sharingAuthorized = 2,\n}\n\nexport type HKQuantity<\n TIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = {\n readonly unit: TUnit;\n readonly quantity: number;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkbloodtype Apple Docs }\n */\nexport enum HKBloodType {\n notSet = 0,\n aPositive = 1,\n aNegative = 2,\n bPositive = 3,\n bNegative = 4,\n abPositive = 5,\n abNegative = 6,\n oPositive = 7,\n oNegative = 8,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkbiologicalsex Apple Docs }\n */\nexport enum HKBiologicalSex {\n notSet = 0,\n female = 1,\n male = 2,\n other = 3,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkfitzpatrickskintype Apple Docs }\n */\nexport enum HKFitzpatrickSkinType {\n notSet = 0,\n I = 1,\n II = 2,\n III = 3,\n IV = 4,\n V = 5,\n VI = 6,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkstatisticsoptions Apple Docs }\n */\nexport enum HKStatisticsOptions {\n cumulativeSum = 'cumulativeSum',\n discreteAverage = 'discreteAverage',\n discreteMax = 'discreteMax',\n discreteMin = 'discreteMin',\n discreteMostRecent = 'discreteMostRecent',\n duration = 'duration',\n mostRecent = 'mostRecent',\n separateBySource = 'separateBySource',\n}\n\nexport type QueryStatisticsResponseRaw<\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n> = {\n readonly averageQuantity?: HKQuantity;\n readonly maximumQuantity?: HKQuantity;\n readonly minimumQuantity?: HKQuantity;\n readonly sumQuantity?: HKQuantity;\n readonly mostRecentQuantity?: HKQuantity;\n readonly mostRecentQuantityDateInterval?: {\n readonly from: string;\n readonly to: string;\n };\n readonly duration?: HKQuantity;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality Apple Docs }\n */\nexport enum HKCategoryValueCervicalMucusQuality {\n dry = 1,\n sticky = 2,\n creamy = 3,\n watery = 4,\n eggWhite = 5,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow Apple Docs }\n */\nexport enum HKCategoryValueMenstrualFlow {\n unspecified = 1,\n none = 5,\n light = 2,\n medium = 3,\n heavy = 4,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult Apple Docs }\n */\nexport enum HKCategoryValueOvulationTestResult {\n negative = 1,\n luteinizingHormoneSurge = 2,\n indeterminate = 3,\n estrogenSurge = 4,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis Apple Docs }\n */\nexport enum HKCategoryValueSleepAnalysis {\n inBed = 0,\n asleepUnspecified = 1,\n awake = 2,\n asleepCore = 3,\n asleepDeep = 4,\n asleepREM = 5,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges\n */\nexport enum HKCategoryValueAppetiteChanges {\n decreased = 2,\n increased = 3,\n noChange = 1,\n unspecified = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence\n */\nexport enum HKCategoryValuePresence {\n notPresent = 1,\n present = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity Apple Docs }\n */\nexport enum HKCategoryValueSeverity {\n notPresent = 1,\n mild = 2,\n moderate = 3,\n severe = 4,\n unspecified = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue/notapplicable Apple Docs }\n */\nexport enum HKCategoryValueNotApplicable {\n notApplicable = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue Apple Docs }\n */\nexport type HKCategoryValue =\n | HKCategoryValueAppetiteChanges\n | HKCategoryValueCervicalMucusQuality\n | HKCategoryValueLowCardioFitnessEvent\n | HKCategoryValueMenstrualFlow\n | HKCategoryValueOvulationTestResult\n | HKCategoryValuePresence\n | HKCategoryValueSeverity\n | HKCategoryValueSleepAnalysis\n | number;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkinsulindeliveryreason Apple Docs }\n */\nexport enum HKInsulinDeliveryReason {\n basal = 1,\n bolus = 2,\n}\n\nexport type MetadataMapperForQuantityIdentifier<\n TQuantityTypeIdentifier = HKQuantityTypeIdentifier\n> = TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.insulinDelivery\n ? HKGenericMetadata & {\n readonly HKInsulinDeliveryReason: HKInsulinDeliveryReason;\n }\n : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.bloodGlucose\n ? HKGenericMetadata & {\n readonly HKBloodGlucoseMealTime?: number;\n }\n : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.heartRate\n ? HKGenericMetadata & {\n readonly HKHeartRateMotionContext?: HKHeartRateMotionContext;\n }\n : HKGenericMetadata;\n\nexport type MetadataMapperForCorrelationIdentifier<\n TCorrelationTypeIdentifier = HKCorrelationTypeIdentifier\n> = TCorrelationTypeIdentifier extends HKCorrelationTypeIdentifier.food\n ? HKGenericMetadata & {\n readonly HKFoodType?: string;\n }\n : HKGenericMetadata;\n\nexport type UnitForIdentifier =\n T extends HKQuantityTypeIdentifier.bloodGlucose\n ? BloodGlucoseUnit\n : T extends\n | HKQuantityTypeIdentifier.appleExerciseTime\n | HKQuantityTypeIdentifier.appleMoveTime\n | HKQuantityTypeIdentifier.appleStandTime\n ? TimeUnit\n : T extends\n | HKQuantityTypeIdentifier.activeEnergyBurned\n | HKQuantityTypeIdentifier.basalEnergyBurned\n | HKQuantityTypeIdentifier.dietaryEnergyConsumed\n ? EnergyUnit\n : T extends\n | HKQuantityTypeIdentifier.distanceCycling\n | HKQuantityTypeIdentifier.distanceDownhillSnowSports\n | HKQuantityTypeIdentifier.distanceSwimming\n | HKQuantityTypeIdentifier.distanceWalkingRunning\n | HKQuantityTypeIdentifier.distanceWheelchair\n | HKQuantityTypeIdentifier.sixMinuteWalkTestDistance\n | HKQuantityTypeIdentifier.waistCircumference\n ? LengthUnit\n : T extends\n | HKQuantityTypeIdentifier.bodyFatPercentage\n | HKQuantityTypeIdentifier.oxygenSaturation\n | HKQuantityTypeIdentifier.walkingAsymmetryPercentage\n | HKQuantityTypeIdentifier.walkingDoubleSupportPercentage\n ? HKUnits.Percent\n : T extends\n | HKQuantityTypeIdentifier.basalBodyTemperature\n | HKQuantityTypeIdentifier.basalBodyTemperature\n ? TemperatureUnit\n : T extends\n | HKQuantityTypeIdentifier.runningSpeed\n | HKQuantityTypeIdentifier.stairAscentSpeed\n | HKQuantityTypeIdentifier.stairDescentSpeed\n | HKQuantityTypeIdentifier.walkingSpeed\n | HKQuantityTypeIdentifier.walkingSpeed\n ? SpeedUnit\n : T extends\n | HKQuantityTypeIdentifier.flightsClimbed\n | HKQuantityTypeIdentifier.numberOfAlcoholicBeverages\n | HKQuantityTypeIdentifier.numberOfTimesFallen\n | HKQuantityTypeIdentifier.pushCount\n | HKQuantityTypeIdentifier.stepCount\n | HKQuantityTypeIdentifier.swimmingStrokeCount\n ? HKUnits.Count\n : T extends\n | HKQuantityTypeIdentifier.dietaryBiotin\n | HKQuantityTypeIdentifier.dietaryCaffeine\n | HKQuantityTypeIdentifier.dietaryCalcium\n | HKQuantityTypeIdentifier.dietaryCarbohydrates\n | HKQuantityTypeIdentifier.dietaryChloride\n | HKQuantityTypeIdentifier.dietaryCholesterol\n | HKQuantityTypeIdentifier.dietaryChromium\n | HKQuantityTypeIdentifier.dietaryCopper\n | HKQuantityTypeIdentifier.dietaryFatMonounsaturated\n | HKQuantityTypeIdentifier.dietaryFatPolyunsaturated\n | HKQuantityTypeIdentifier.dietaryFatSaturated\n | HKQuantityTypeIdentifier.dietaryFatTotal\n | HKQuantityTypeIdentifier.dietaryFiber\n | HKQuantityTypeIdentifier.dietaryFolate\n | HKQuantityTypeIdentifier.dietaryIodine\n | HKQuantityTypeIdentifier.dietaryIodine\n | HKQuantityTypeIdentifier.dietaryIron\n | HKQuantityTypeIdentifier.dietaryMagnesium\n | HKQuantityTypeIdentifier.dietaryManganese\n | HKQuantityTypeIdentifier.dietaryMolybdenum\n | HKQuantityTypeIdentifier.dietaryNiacin\n | HKQuantityTypeIdentifier.dietaryPantothenicAcid\n | HKQuantityTypeIdentifier.dietaryPhosphorus\n | HKQuantityTypeIdentifier.dietaryPotassium\n | HKQuantityTypeIdentifier.dietaryProtein\n | HKQuantityTypeIdentifier.dietaryRiboflavin\n | HKQuantityTypeIdentifier.dietarySelenium\n | HKQuantityTypeIdentifier.dietarySodium\n | HKQuantityTypeIdentifier.dietarySugar\n | HKQuantityTypeIdentifier.dietaryThiamin\n | HKQuantityTypeIdentifier.dietaryVitaminA\n | HKQuantityTypeIdentifier.dietaryVitaminB6\n | HKQuantityTypeIdentifier.dietaryVitaminB12\n | HKQuantityTypeIdentifier.dietaryVitaminC\n | HKQuantityTypeIdentifier.dietaryVitaminD\n | HKQuantityTypeIdentifier.dietaryVitaminE\n | HKQuantityTypeIdentifier.dietaryVitaminK\n | HKQuantityTypeIdentifier.dietaryZinc\n ? MassUnit\n : T extends HKQuantityTypeIdentifier.dietaryWater\n ? VolumeUnit\n : T extends HKQuantityTypeIdentifier.insulinDelivery\n ? HKUnits.InternationalUnit | `${HKUnits.InternationalUnit}`\n : T extends\n | HKQuantityTypeIdentifier.heartRate\n | HKQuantityTypeIdentifier.restingHeartRate\n | HKQuantityTypeIdentifier.walkingHeartRateAverage\n ? CountPerTime\n : HKUnit;\n\nexport type HKCategoryValueForIdentifier =\n T extends HKCategoryTypeIdentifier.cervicalMucusQuality\n ? HKCategoryValueCervicalMucusQuality\n : T extends HKCategoryTypeIdentifier.menstrualFlow\n ? HKCategoryValueMenstrualFlow\n : T extends HKCategoryTypeIdentifier.ovulationTestResult\n ? HKCategoryValueOvulationTestResult\n : T extends HKCategoryTypeIdentifier.sleepAnalysis\n ? HKCategoryValueSleepAnalysis\n : T extends\n | HKCategoryTypeIdentifier.highHeartRateEvent\n | HKCategoryTypeIdentifier.intermenstrualBleeding\n | HKCategoryTypeIdentifier.mindfulSession\n | HKCategoryTypeIdentifier.sexualActivity\n ? HKCategoryValueNotApplicable\n : T extends\n | HKCategoryTypeIdentifier.abdominalCramps\n | HKCategoryTypeIdentifier.abdominalCramps\n | HKCategoryTypeIdentifier.acne\n | HKCategoryTypeIdentifier.bladderIncontinence\n | HKCategoryTypeIdentifier.bloating\n | HKCategoryTypeIdentifier.breastPain\n | HKCategoryTypeIdentifier.chestTightnessOrPain\n | HKCategoryTypeIdentifier.chills\n | HKCategoryTypeIdentifier.constipation\n | HKCategoryTypeIdentifier.coughing\n | HKCategoryTypeIdentifier.diarrhea\n | HKCategoryTypeIdentifier.dizziness\n | HKCategoryTypeIdentifier.drySkin\n | HKCategoryTypeIdentifier.fainting\n | HKCategoryTypeIdentifier.fatigue\n | HKCategoryTypeIdentifier.fever\n | HKCategoryTypeIdentifier.generalizedBodyAche\n | HKCategoryTypeIdentifier.hairLoss\n | HKCategoryTypeIdentifier.headache\n | HKCategoryTypeIdentifier.heartburn\n | HKCategoryTypeIdentifier.hotFlashes\n | HKCategoryTypeIdentifier.lossOfSmell\n | HKCategoryTypeIdentifier.lossOfTaste\n | HKCategoryTypeIdentifier.lowerBackPain\n | HKCategoryTypeIdentifier.memoryLapse\n | HKCategoryTypeIdentifier.moodChanges\n | HKCategoryTypeIdentifier.nausea\n | HKCategoryTypeIdentifier.nightSweats\n | HKCategoryTypeIdentifier.pelvicPain\n | HKCategoryTypeIdentifier.rapidPoundingOrFlutteringHeartbeat\n | HKCategoryTypeIdentifier.runnyNose\n | HKCategoryTypeIdentifier.shortnessOfBreath\n | HKCategoryTypeIdentifier.sinusCongestion\n | HKCategoryTypeIdentifier.skippedHeartbeat\n | HKCategoryTypeIdentifier.soreThroat\n | HKCategoryTypeIdentifier.vaginalDryness\n | HKCategoryTypeIdentifier.vomiting\n | HKCategoryTypeIdentifier.wheezing\n ? HKCategoryValueSeverity\n : T extends\n | HKCategoryTypeIdentifier.appetiteChanges\n | HKCategoryTypeIdentifier.sleepChanges\n ? HKCategoryValuePresence\n : T extends HKCategoryTypeIdentifier.lowCardioFitnessEvent\n ? HKCategoryValueLowCardioFitnessEvent\n : T extends HKCategoryTypeIdentifier.pregnancyTestResult\n ? HKCategoryValuePregnancyTestResult\n : T extends HKCategoryTypeIdentifier.pregnancyTestResult\n ? HKCategoryValuePregnancyTestResult\n : T extends HKCategoryTypeIdentifier.appleStandHour\n ? HKCategoryValueAppleStandHour\n : number;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepregnancytestresult Apple Docs }\n */\nenum HKCategoryValuePregnancyTestResult {\n positive = 2,\n negative = 1,\n indeterminate = 3,\n}\n/* needs further mapping\n\ncontraceptive = 'HKCategoryTypeIdentifierContraceptive',\n lactation = 'HKCategoryTypeIdentifierLactation',\n pregnancy = 'HKCategoryTypeIdentifierPregnancy',\n\n progesteroneTestResult = 'HKCategoryTypeIdentifierProgesteroneTestResult',\n environmentalAudioExposureEvent = 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent',\n headphoneAudioExposureEvent = 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent',\n appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',\n handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue */\n\nexport type HKHeartbeatSeriesSampleMetadata = HKGenericMetadata & {\n readonly HKMetadataKeyAlgorithmVersion: string;\n};\n\nexport type MetadataMapperForCategoryIdentifier<\n T extends HKCategoryTypeIdentifier\n> = T extends HKCategoryTypeIdentifier.sexualActivity\n ? HKGenericMetadata & {\n readonly HKSexualActivityProtectionUsed: boolean;\n }\n : T extends HKCategoryTypeIdentifier.menstrualFlow\n ? HKGenericMetadata & {\n readonly HKMenstrualCycleStart: boolean;\n }\n : HKGenericMetadata;\n\n// Maps directly to https://developer.apple.com/documentation/healthkit/hkwheelchairuse\nexport enum HKWheelchairUse {\n notSet = 0,\n no = 1,\n yes = 2,\n}\n\n// Unit types are a straight mapping from here https://developer.apple.com/documentation/healthkit/hkunit/1615733-init\nexport enum HKMetricPrefix {\n None = '',\n Pico = 'p',\n Nano = 'n',\n Micro = 'mc',\n Milli = 'm',\n Centi = 'c',\n Deci = 'd',\n Deca = 'da',\n Hecto = 'h',\n Kilo = 'k',\n Mega = 'M',\n Giga = 'G',\n Tera = 'T',\n Femto = 'f',\n}\n\nexport enum HKUnitMetric {\n Gram = 'g',\n Joule = 'J',\n Kelvin = 'K',\n Liter = 'l',\n Meter = 'm',\n Pascal = 'Pa',\n Second = 's',\n Siemen = 'S',\n Hertz = 'Hz',\n Volt = 'V',\n}\n\nexport enum HKUnits {\n DecibelHearingLevel = 'dBHL',\n DecibelSoundPressureLevel = 'dBASPL',\n\n Percent = '%',\n Count = 'count',\n InternationalUnit = 'IU',\n}\n\nexport type MeterUnit =\n `${Prefix}${HKUnitMetric.Meter}`;\nexport type LiterUnit =\n `${Prefix}${HKUnitMetric.Liter}`;\nexport type GramUnit =\n `${Prefix}${HKUnitMetric.Gram}`;\nexport type PascalUnit =\n `${Prefix}${HKUnitMetric.Pascal}`;\nexport type SecondUnit =\n `${Prefix}${HKUnitMetric.Second}`;\nexport type JouleUnit =\n `${Prefix}${HKUnitMetric.Joule}`;\nexport type HertzUnit =\n `${Prefix}${HKUnitMetric.Hertz}`;\nexport type VoltUnit =\n `${Prefix}${HKUnitMetric.Volt}`;\nexport type SiemenUnit =\n `${Prefix}${HKUnitMetric.Siemen}`;\n\n// not 100% sure about these\nexport type MoleUnit = `mol<${MolarMass}>`;\nexport type MoleUnitWith<\n MolarMass extends number,\n Prefix extends HKMetricPrefix = HKMetricPrefix.None\n> = `${Prefix}mol<${MolarMass}>`;\n\nexport type FrequencyUnit = HertzUnit;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'cm', 'km'\n */\nexport enum UnitOfLength {\n Feet = 'ft',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'cm', 'km'\n */\n Meter = 'm',\n Inches = 'in',\n Yards = 'yd',\n Miles = 'mi',\n}\nexport type LengthUnit = MeterUnit | UnitOfLength;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ml', 'cl'\n */\nexport enum UnitOfVolume {\n ImperialCup = 'cup_imp',\n ImperialFluidOunces = 'fl_oz_imp',\n ImperialPint = 'pt_imp',\n USCup = 'cup_us',\n USFluidOunces = 'fl_oz_us',\n USPint = 'pt_us',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'ml', 'cl'\n */\n Liter = 'l',\n}\nexport type VolumeUnit = LiterUnit | UnitOfVolume;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\nexport enum UnitOfMass {\n Ounces = 'oz',\n Stones = 'st',\n Pounds = 'lb',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\n Gram = 'g',\n}\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\nexport type MassUnit = GramUnit | UnitOfMass;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\nexport enum UnitOfPressure {\n Atmospheres = 'atm',\n CentimetersOfWater = 'cmAq',\n MillimetersOfMercury = 'mmHg',\n InchesOfMercury = 'inHg',\n DecibelAWeightedSoundPressureLevel = 'dBASPL',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\n Pascals = 'Pa',\n}\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\nexport type PressureUnit = PascalUnit | UnitOfPressure;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\nexport enum UnitOfTime {\n Days = 'd',\n Minutes = 'min',\n Hours = 'hr',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\n Seconds = 's',\n}\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\nexport type TimeUnit = SecondUnit | UnitOfTime;\nexport enum TemperatureUnit {\n DegreesCelsius = 'degC',\n DegreesFahrenheit = 'degF',\n Kelvin = 'K',\n}\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kJ'\n */\nexport enum UnitOfEnergy {\n Kilocalories = 'kcal',\n LargeCalories = 'Cal',\n SmallCalories = 'cal',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'kJ'\n */\n Joules = 'J',\n}\nexport type EnergyUnit = JouleUnit | UnitOfEnergy;\nexport enum BloodGlucoseUnit {\n GlucoseMmolPerL = 'mmol<180.15588000005408>/l',\n GlucoseMgPerDl = 'mg/dL',\n}\n\nexport type SpeedUnit<\n TLength extends LengthUnit,\n TTime extends TimeUnit\n> = `${TLength}/${TTime}`;\nexport type CountPerTime = `count/${TTime}`;\n\nexport type HKUnit =\n | BloodGlucoseUnit\n | CountPerTime\n | EnergyUnit\n | FrequencyUnit\n | HKUnits\n | LengthUnit\n | MassUnit\n | PressureUnit\n | SpeedUnit\n | TemperatureUnit\n | TimeUnit\n | VolumeUnit\n | `${BloodGlucoseUnit}`\n | `${EnergyUnit}`\n | `${FrequencyUnit}`\n | `${HKUnits}`\n | `${LengthUnit}`\n | `${MassUnit}`\n | `${PressureUnit}`\n | `${TemperatureUnit}`\n | `${TimeUnit}`\n | `${VolumeUnit}`;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkdevice Apple Docs }\n */\nexport type HKDevice = {\n readonly name: string; // ex: \"Apple Watch\"\n readonly firmwareVersion: string | null;\n readonly hardwareVersion: string; // ex: \"Watch6,2\",\n readonly localIdentifier: string | null;\n readonly manufacturer: string; // ex: \"Apple Inc.\"\n readonly model: string; // ex: \"Watch\"\n readonly softwareVersion: string; // ex: \"9.0\"\n readonly udiDeviceIdentifier: string | null;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615781-source Apple Docs }\n */\nexport type HKSource = {\n readonly name: string;\n readonly bundleIdentifier: string;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615483-sourcerevision Apple Docs }\n */\nexport type HKSourceRevision = {\n readonly source: HKSource;\n readonly version: string;\n readonly operatingSystemVersion?: string;\n readonly productType?: string;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitysample Apple Docs }\n */\nexport type HKQuantitySampleRaw<\n TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly quantityType: TQuantityIdentifier;\n readonly startDate: string;\n readonly endDate: string;\n readonly quantity: number;\n readonly unit: TUnit;\n readonly metadata: MetadataMapperForQuantityIdentifier;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type HKHeartbeatRaw = {\n readonly timeSinceSeriesStart: number;\n readonly precededByGap: boolean;\n};\n\nexport type HKHeartbeatSeriesSampleRaw = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly startDate: string;\n readonly endDate: string;\n readonly heartbeats: readonly HKHeartbeatRaw[];\n readonly metadata?: HKHeartbeatSeriesSampleMetadata;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type CLLocationRawForSaving = {\n readonly latitude: number;\n readonly longitude: number;\n readonly altitude: number;\n readonly horizontalAccuracy: number;\n readonly verticalAccuracy: number;\n readonly course: number;\n readonly speed: number;\n readonly timestamp: string; // unix timestamp in milliseconds\n};\n\nexport type HKQuantitySampleRawForSaving<\n TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = Omit<\nHKQuantitySampleRaw,\n'device' | 'endDate' | 'startDate' | 'uuid'\n> & {\n readonly startDate?: string;\n readonly endDate?: string;\n};\n\nexport type HKCategorySampleRawForSaving<\n TCategory extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier\n> = Omit<\nHKCategorySampleRaw,\n'device' | 'endDate' | 'startDate' | 'uuid'\n> & {\n readonly startDate?: string;\n readonly endDate?: string;\n};\n\nexport interface HKWorkoutEvent {\n readonly type: HKWorkoutEventType;\n readonly startDate: string;\n readonly endDate: string;\n}\n\nexport enum HKWorkoutEventType {\n pause = 1,\n resume = 2,\n lap = 3,\n marker = 4,\n motionPaused = 5,\n motionResumed = 6,\n segment = 7,\n pauseOrResumeRequest = 8,\n}\n\nexport interface HKWorkoutActivity {\n readonly startDate: string;\n readonly endDate: string;\n readonly uuid: string;\n readonly duration: number;\n}\n\nexport type HKWorkoutRaw<\n TEnergy extends EnergyUnit,\n TDistance extends LengthUnit\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly workoutActivityType: HKWorkoutActivityType;\n readonly duration: number;\n readonly totalDistance?: HKQuantity;\n readonly totalEnergyBurned?: HKQuantity;\n readonly totalSwimmingStrokeCount?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Count\n >;\n readonly totalFlightsClimbed?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Count\n >;\n readonly startDate: string;\n readonly endDate: string;\n readonly metadata?: HKWorkoutMetadata;\n readonly sourceRevision?: HKSourceRevision;\n readonly events?: readonly HKWorkoutEvent[];\n readonly activities?: readonly HKWorkoutActivity[];\n readonly workoutPlanId?: string;\n};\n\n// Straight mapping to https://developer.apple.com/documentation/healthkit/hkcharacteristictypeidentifier\nexport enum HKCharacteristicTypeIdentifier {\n fitzpatrickSkinType = 'HKCharacteristicTypeIdentifierFitzpatrickSkinType',\n biologicalSex = 'HKCharacteristicTypeIdentifierBiologicalSex',\n bloodType = 'HKCharacteristicTypeIdentifierBloodType',\n dateOfBirth = 'HKCharacteristicTypeIdentifierDateOfBirth',\n wheelchairUse = 'HKCharacteristicTypeIdentifierWheelchairUse',\n activityMoveMode = 'HKCharacteristicTypeIdentifierActivityMoveMode', // HKActivityMoveModeObject\n}\n\nexport type WritePermissions = {\n readonly [key in\n | HKCategoryTypeIdentifier\n | HKCharacteristicTypeIdentifier\n | HKQuantityTypeIdentifier]: boolean;\n};\n\nexport type ReadPermissions = {\n readonly [key in\n | HKCategoryTypeIdentifier\n | HKCharacteristicTypeIdentifier\n | HKQuantityTypeIdentifier]: boolean;\n};\n\nexport type HKCategorySampleRaw<\n T extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly categoryType: T;\n readonly startDate: string;\n readonly endDate: string;\n readonly value: HKCategoryValueForIdentifier;\n readonly metadata: MetadataMapperForCategoryIdentifier;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type DeletedCategorySampleRaw = {\n readonly uuid: string;\n readonly metadata: MetadataMapperForCategoryIdentifier;\n};\n\nexport type DeletedHeartbeatSeriesSampleRaw = {\n readonly uuid: string;\n readonly metadata: HKHeartbeatSeriesSampleMetadata;\n};\n\nexport type DeletedQuantitySampleRaw = {\n readonly uuid: string;\n readonly metadata: MetadataMapperForQuantityIdentifier;\n};\n\nexport type QueryCategorySamplesResponseRaw<\n T extends HKCategoryTypeIdentifier\n> = {\n readonly samples: readonly HKCategorySampleRaw[];\n readonly deletedSamples: readonly DeletedCategorySampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type QueryHeartbeatSeriesSamplesResponseRaw = {\n readonly samples: readonly HKHeartbeatSeriesSampleRaw[];\n readonly deletedSamples: readonly DeletedHeartbeatSeriesSampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type QueryQuantitySamplesResponseRaw<\n T extends HKQuantityTypeIdentifier\n> = {\n readonly samples: readonly HKQuantitySampleRaw[];\n readonly deletedSamples: readonly DeletedQuantitySampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type HKCorrelationRaw =\n {\n readonly correlationType: HKCorrelationTypeIdentifier;\n readonly objects: readonly (HKCategorySampleRaw | HKQuantitySampleRaw)[];\n readonly metadata: MetadataMapperForCorrelationIdentifier;\n readonly startDate: string;\n readonly endDate: string;\n };\n\ntype QueryId = string;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkupdatefrequency Apple Docs }\n */\nexport enum HKUpdateFrequency {\n immediate = 1,\n hourly = 2,\n daily = 3,\n weekly = 4,\n}\n\nexport type WorkoutLocation = {\n readonly longitude: number;\n readonly latitude: number;\n readonly altitude: number;\n readonly speed: number;\n readonly timestamp: number;\n readonly horizontalAccuracy: number;\n readonly speedAccuracy: number;\n readonly verticalAccuracy: number;\n readonly distance: number | null;\n};\n\nexport type WorkoutRoute = {\n readonly locations: readonly WorkoutLocation[];\n readonly HKMetadataKeySyncIdentifier?: string;\n readonly HKMetadataKeySyncVersion?: number;\n};\n\ntype ReactNativeHealthkitTypeNative = {\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable Apple Docs }\n */\n isHealthDataAvailable(): Promise;\n // Todo [>8]: Rename to align with Apple function name (isProtectedDataAvailable) - remember to rename native code :)\n canAccessProtectedData(): Promise;\n getBloodType(): Promise;\n getDateOfBirth(): Promise;\n getBiologicalSex(): Promise;\n getFitzpatrickSkinType(): Promise;\n readonly getWheelchairUse: () => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery Apple Docs }\n */\n readonly enableBackgroundDelivery: (\n typeIdentifier: HKSampleTypeIdentifier,\n updateFrequency: HKUpdateFrequency\n ) => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614177-disablebackgrounddelivery Apple Docs }\n */\n readonly disableBackgroundDelivery: (\n typeIdentifier: HKSampleTypeIdentifier\n ) => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614158-disableallbackgrounddelivery Apple Docs }\n */\n readonly disableAllBackgroundDelivery: () => Promise;\n\n readonly saveCorrelationSample: <\n TIdentifier extends HKCorrelationTypeIdentifier,\n TSamples extends readonly (\n | HKCategorySampleRawForSaving\n | HKQuantitySampleRawForSaving\n )[]\n >(\n typeIdentifier: TIdentifier,\n samples: TSamples,\n start: string,\n end: string,\n metadata: MetadataMapperForCorrelationIdentifier\n ) => Promise;\n\n readonly saveWorkoutSample: (\n typeIdentifier: HKWorkoutActivityType,\n quantities: readonly HKQuantitySampleRawForSaving[],\n start: string,\n end: string,\n metadata: HKWorkoutMetadata\n ) => Promise;\n\n readonly saveWorkoutRoute: (\n workoutUUID: string,\n locations: readonly CLLocationRawForSaving[]\n ) => Promise;\n\n readonly queryCorrelationSamples: <\n TIdentifier extends HKCorrelationTypeIdentifier\n >(\n typeIdentifier: TIdentifier,\n from: string,\n to: string\n ) => Promise[]>;\n\n subscribeToObserverQuery(\n identifier: HKSampleTypeIdentifier\n ): Promise;\n unsubscribeQuery(queryId: QueryId): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614154-authorizationstatus Apple Docs }\n */\n authorizationStatusFor(\n type: HealthkitReadAuthorization\n ): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/2994346-getrequeststatusforauthorization Apple Docs }\n */\n getRequestStatusForAuthorization(\n write: WritePermissions,\n read: ReadPermissions\n ): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorization Apple Docs }\n */\n requestAuthorization(\n write: WritePermissions,\n read: ReadPermissions\n ): Promise;\n readonly saveQuantitySample: <\n TType extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n >(\n identifier: TType,\n unit: TUnit,\n value: number,\n start: string,\n end: string,\n metadata: unknown\n ) => Promise;\n readonly deleteQuantitySample: (\n typeIdentifier: TIdentifier,\n uuid: string\n ) => Promise;\n readonly deleteSamples: (\n identifier: TIdentifier,\n start: string,\n end: string\n ) => Promise;\n readonly queryWorkoutSamples: <\n TEnergy extends EnergyUnit,\n TDistance extends LengthUnit\n >(\n energyUnit: TEnergy,\n distanceUnit: TDistance,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryCategorySamples: (\n identifier: T,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryQuantitySamples: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: TIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryCategorySamplesWithAnchor: (\n identifier: T,\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise>;\n readonly queryQuantitySamplesWithAnchor: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: TIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise>;\n readonly queryHeartbeatSeriesSamples: (\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise;\n readonly queryHeartbeatSeriesSamplesWithAnchor: (\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise;\n readonly querySources: <\n TIdentifier extends HKCategoryTypeIdentifier | HKQuantityTypeIdentifier\n >(\n identifier: TIdentifier\n ) => Promise;\n readonly saveCategorySample: (\n identifier: T,\n value: HKCategoryValueForIdentifier,\n start: string,\n end: string,\n metadata: unknown\n ) => Promise;\n readonly queryStatisticsForQuantity: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: HKQuantityTypeIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n options: readonly HKStatisticsOptions[]\n ) => Promise>;\n readonly getPreferredUnits: (\n identifiers: readonly HKQuantityTypeIdentifier[]\n ) => Promise;\n readonly getWorkoutRoutes: (\n workoutUUID: string\n ) => Promise;\n readonly getWorkoutPlanById: (workoutUUID: string) => Promise<{readonly id: string, readonly activityType: HKWorkoutActivityType} | null>;\n};\n\nconst Native = NativeModules.ReactNativeHealthkit as ReactNativeHealthkitTypeNative\n\ntype OnChangeCallback = ({\n typeIdentifier,\n}: {\n readonly typeIdentifier: HKSampleTypeIdentifier;\n}) => void;\n\ninterface HealthkitEventEmitter extends NativeEventEmitter {\n readonly addListener: (\n eventType: 'onChange',\n callback: OnChangeCallback\n ) => EmitterSubscription;\n}\n\nexport const EventEmitter = new NativeEventEmitter(\n NativeModules.ReactNativeHealthkit as NativeModule,\n) as HealthkitEventEmitter\n\nexport default Native\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,GAAG,yBAAkC;;AAEzE;AACA;AACA;AACA;AAHAC,OAAA,CAAAD,uBAAA,GAAAA,uBAAA;AAIO,MAAME,+BAA+B,GAAG,iCAA0C;;AAEzF;AACA;AACA;AACA;AAHAD,OAAA,CAAAC,+BAAA,GAAAA,+BAAA;AAIO,MAAMC,yBAAyB,GAAG,uBAAgC;;AAEzE;AACA;AACA;AACA;AAHAF,OAAA,CAAAE,yBAAA,GAAAA,yBAAA;AAIO,MAAMC,4BAA4B,GAAG,8BAAuC;;AAEnF;AACA;AACA;AACA;AAHAH,OAAA,CAAAG,4BAAA,GAAAA,4BAAA;AAMA;AACA;AACA;AACA;AAHA,IAIYC,wBAAwB,0BAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAxBA,wBAAwB;EAAx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AAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAAA3C,OAAA,CAAA2C,iBAAA,GAAAA,iBAAA;AAgO7B,MAAMC,MAAM,GAAGC,0BAAa,CAACC,oBAAsD;AAe5E,MAAMC,YAAY,GAAG,IAAIC,+BAAkB,CAChDH,0BAAa,CAACC,oBAChB,CAA0B;AAAA9C,OAAA,CAAA+C,YAAA,GAAAA,YAAA;AAAA,IAAAE,QAAA,GAEXL,MAAM;AAAA5C,OAAA,CAAAkD,OAAA,GAAAD,QAAA"} \ No newline at end of file +{"version":3,"names":["_reactNative","require","HKWorkoutTypeIdentifier","exports","HKActivitySummaryTypeIdentifier","HKAudiogramTypeIdentifier","HKWorkoutRouteTypeIdentifier","HKQuantityTypeIdentifier","HKCategoryValueLowCardioFitnessEvent","HKHeartRateMotionContext","HKCorrelationTypeIdentifier","HKCategoryTypeIdentifier","HKCategoryValueAppleStandHour","HKWorkoutActivityType","HKWeatherCondition","HKIndoorWorkout","HKAuthorizationRequestStatus","HKAuthorizationStatus","HKBloodType","HKBiologicalSex","HKFitzpatrickSkinType","HKStatisticsOptions","HKCategoryValueCervicalMucusQuality","HKCategoryValueMenstrualFlow","HKCategoryValueOvulationTestResult","HKCategoryValueSleepAnalysis","HKCategoryValueAppetiteChanges","HKCategoryValuePresence","HKCategoryValueSeverity","HKCategoryValueNotApplicable","HKInsulinDeliveryReason","HKCategoryValuePregnancyTestResult","HKWheelchairUse","HKMetricPrefix","HKUnitMetric","HKUnits","UnitOfLength","UnitOfVolume","UnitOfMass","UnitOfPressure","UnitOfTime","TemperatureUnit","UnitOfEnergy","BloodGlucoseUnit","HKWorkoutEventType","HKCharacteristicTypeIdentifier","HKUpdateFrequency","Native","NativeModules","ReactNativeHealthkit","EventEmitter","NativeEventEmitter","_default","default"],"sources":["native-types.ts"],"sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native'\n\nimport type { EmitterSubscription, NativeModule } from 'react-native'\n\n/**\n * Represents a workout type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkworkouttypeidentifier Apple Docs HKWorkoutTypeIdentifier}\n */\nexport const HKWorkoutTypeIdentifier = 'HKWorkoutTypeIdentifier' as const\n\n/**\n * Represents a type that identifies activity summary objects.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}\n */\nexport const HKActivitySummaryTypeIdentifier = 'HKActivitySummaryTypeIdentifier' as const\n\n/**\n * Represents an audiogram type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}\n */\nexport const HKAudiogramTypeIdentifier = 'HKAudiogramSampleType' as const\n\n/**\n * Represents a workout route type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutroutetypeidentifier Apple Docs HKWorkoutRouteTypeIdentifier}\n */\nexport const HKWorkoutRouteTypeIdentifier = 'HKWorkoutRouteTypeIdentifier' as const\n\n/**\n * Represents a series sample containing heartbeat data..\n * @see {@link https://developer.apple.com/documentation/healthkit/HKDataTypeIdentifierHeartbeatSeries Apple Docs HKDataTypeIdentifierHeartbeatSeries}\n */\nexport declare const HKDataTypeIdentifierHeartbeatSeries: 'HKDataTypeIdentifierHeartbeatSeries'\n\n/**\n * Represents a quantity type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier Apple Docs HKQuantityTypeIdentifier}\n */\nexport enum HKQuantityTypeIdentifier {\n /**\n * Body Mass Index\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymassindex Apple Docs HKQuantityTypeIdentifierBodyMassIndex}\n */\n bodyMassIndex = 'HKQuantityTypeIdentifierBodyMassIndex',\n\n /**\n * Body Fat Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodyfatpercentage Apple Docs HKQuantityTypeIdentifierBodyFatPercentage}\n */\n bodyFatPercentage = 'HKQuantityTypeIdentifierBodyFatPercentage',\n\n /**\n * Height\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheight Apple Docs HKQuantityTypeIdentifierHeight}\n */\n height = 'HKQuantityTypeIdentifierHeight',\n\n /**\n * Body Mass\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymass Apple Docs HKQuantityTypeIdentifierBodyMass}\n */\n bodyMass = 'HKQuantityTypeIdentifierBodyMass',\n\n /**\n * Lean Body Mass\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierleanbodymass Apple Docs HKQuantityTypeIdentifierLeanBodyMass}\n */\n leanBodyMass = 'HKQuantityTypeIdentifierLeanBodyMass',\n\n /**\n * Waist Circumference\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwaistcircumference Apple Docs HKQuantityTypeIdentifierWaistCircumference}\n */\n waistCircumference = 'HKQuantityTypeIdentifierWaistCircumference',\n\n /**\n * Step Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstepcount Apple Docs HKQuantityTypeIdentifierStepCount}\n */\n stepCount = 'HKQuantityTypeIdentifierStepCount',\n\n /**\n * Distance Walking Running\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewalkingrunning Apple Docs HKQuantityTypeIdentifierDistanceWalkingRunning}\n */\n distanceWalkingRunning = 'HKQuantityTypeIdentifierDistanceWalkingRunning',\n\n /**\n * Distance Cycling\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancecycling Apple Docs HKQuantityTypeIdentifierDistanceCycling}\n */\n distanceCycling = 'HKQuantityTypeIdentifierDistanceCycling',\n\n /**\n * Distance Wheelchair\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewheelchair Apple Docs HKQuantityTypeIdentifierDistanceWheelchair}\n */\n distanceWheelchair = 'HKQuantityTypeIdentifierDistanceWheelchair',\n /**\n * Basal Energy Burned\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalenergyburned Apple Docs HKQuantityTypeIdentifierBasalEnergyBurned}\n */\n basalEnergyBurned = 'HKQuantityTypeIdentifierBasalEnergyBurned', // Energy, Cumulative\n /**\n * Active Energy Burned\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieractiveenergyburned Apple Docs HKQuantityTypeIdentifierActiveEnergyBurned}\n */\n activeEnergyBurned = 'HKQuantityTypeIdentifierActiveEnergyBurned', // Energy, Cumulative\n /**\n * Flights Climbed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierflightsclimbed Apple Docs HKQuantityTypeIdentifierFlightsClimbed}\n */\n flightsClimbed = 'HKQuantityTypeIdentifierFlightsClimbed', // Scalar(Count), Cumulative\n /**\n * Nike Fuel\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernikefuel Apple Docs HKQuantityTypeIdentifierNikeFuel}\n */\n nikeFuel = 'HKQuantityTypeIdentifierNikeFuel', // Scalar(Count), Cumulative\n /**\n * Apple Exercise Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierappleexercisetime Apple Docs HKQuantityTypeIdentifierAppleExerciseTime}\n */\n appleExerciseTime = 'HKQuantityTypeIdentifierAppleExerciseTime', // Time Cumulative\n /**\n * Push Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpushcount Apple Docs HKQuantityTypeIdentifierPushCount}\n */\n pushCount = 'HKQuantityTypeIdentifierPushCount', // Scalar(Count), Cumulative\n /**\n * Distance Swimming\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistanceswimming Apple Docs HKQuantityTypeIdentifierDistanceSwimming}\n */\n distanceSwimming = 'HKQuantityTypeIdentifierDistanceSwimming', // Length, Cumulative\n /**\n * Swimming Stroke Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierswimmingstrokecount Apple Docs HKQuantityTypeIdentifierSwimmingStrokeCount}\n */\n swimmingStrokeCount = 'HKQuantityTypeIdentifierSwimmingStrokeCount', // Scalar(Count), Cumulative\n /**\n * VO2 Max\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiervo2max Apple Docs HKQuantityTypeIdentifierVO2Max}\n */\n vo2Max = 'HKQuantityTypeIdentifierVO2Max', // ml/(kg*min) Discrete\n /**\n * Distance Downhill Snow Sports\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancedownhillsnowsports Apple Docs HKQuantityTypeIdentifierDistanceDownhillSnowSports}\n */\n distanceDownhillSnowSports = 'HKQuantityTypeIdentifierDistanceDownhillSnowSports', // Length, Cumulative\n\n /**\n * Apple Stand Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplestandtime Apple Docs HKQuantityTypeIdentifierAppleStandTime}\n */\n appleStandTime = 'HKQuantityTypeIdentifierAppleStandTime', // Time, Cumulative\n // Vitals\n /**\n * Heart Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartrate Apple Docs HKQuantityTypeIdentifierHeartRate}\n */\n heartRate = 'HKQuantityTypeIdentifierHeartRate', // Scalar(Count)/Time, Discrete\n /**\n * Body Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodytemperature Apple Docs HKQuantityTypeIdentifierBodyTemperature}\n */\n bodyTemperature = 'HKQuantityTypeIdentifierBodyTemperature', // Temperature, Discrete\n /**\n * Basal Body Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalbodytemperature Apple Docs HKQuantityTypeIdentifierBasalBodyTemperature}\n */\n basalBodyTemperature = 'HKQuantityTypeIdentifierBasalBodyTemperature', // Basal Body Temperature, Discrete\n /**\n * Blood Pressure Systolic\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressuresystolic Apple Docs HKQuantityTypeIdentifierBloodPressureSystolic}\n */\n bloodPressureSystolic = 'HKQuantityTypeIdentifierBloodPressureSystolic', // Pressure, Discrete\n /**\n * Blood Pressure Diastolic\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressurediastolic Apple Docs HKQuantityTypeIdentifierBloodPressureDiastolic}\n */\n bloodPressureDiastolic = 'HKQuantityTypeIdentifierBloodPressureDiastolic', // Pressure, Discrete\n /**\n * Respiratory Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrespiratoryrate Apple Docs HKQuantityTypeIdentifierRespiratoryRate}\n */\n respiratoryRate = 'HKQuantityTypeIdentifierRespiratoryRate', // Scalar(Count)/Time, Discrete\n /**\n * Resting Heart Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrestingheartrate Apple Docs HKQuantityTypeIdentifierRestingHeartRate}\n */\n restingHeartRate = 'HKQuantityTypeIdentifierRestingHeartRate', // Scalar(Count)/Time, Discrete\n /**\n * Walking Heart Rate Average\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingheartrateaverage Apple Docs HKQuantityTypeIdentifierWalkingHeartRateAverage}\n * @since iOS 11.0\n */\n walkingHeartRateAverage = 'HKQuantityTypeIdentifierWalkingHeartRateAverage', // Scalar(Count)/Time, Discrete\n /**\n * Heart Rate Variability SDNN\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartratevariabilitysdnn Apple Docs HKQuantityTypeIdentifierHeartRateVariabilitySDNN}\n * @since iOS 11.0\n */\n heartRateVariabilitySDNN = 'HKQuantityTypeIdentifierHeartRateVariabilitySDNN', // Time (ms), Discrete\n /**\n * Oxygen Saturation\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieroxygensaturation Apple Docs HKQuantityTypeIdentifierOxygenSaturation}\n * @since iOS 8.0\n */\n oxygenSaturation = 'HKQuantityTypeIdentifierOxygenSaturation',\n /**\n * Peripheral Perfusion Index\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierperipheralperfusionindex Apple Docs HKQuantityTypeIdentifierPeripheralPerfusionIndex}\n * @since iOS 8.0\n */\n peripheralPerfusionIndex = 'HKQuantityTypeIdentifierPeripheralPerfusionIndex', // Scalar(Percent, 0.0 - 1.0), Discrete\n /**\n * Blood Glucose\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodglucose Apple Docs HKQuantityTypeIdentifierBloodGlucose}\n */\n bloodGlucose = 'HKQuantityTypeIdentifierBloodGlucose',\n\n /**\n * Number Of Times Fallen\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberoftimesfallen Apple Docs HKQuantityTypeIdentifierNumberOfTimesFallen}\n */\n numberOfTimesFallen = 'HKQuantityTypeIdentifierNumberOfTimesFallen',\n\n /**\n * Electrodermal Activity\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierelectrodermalactivity Apple Docs HKQuantityTypeIdentifierElectrodermalActivity}\n */\n electrodermalActivity = 'HKQuantityTypeIdentifierElectrodermalActivity',\n\n /**\n * Inhaler Usage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinhalerusage Apple Docs HKQuantityTypeIdentifierInhalerUsage}\n * @since iOS 8\n */\n inhalerUsage = 'HKQuantityTypeIdentifierInhalerUsage',\n\n /**\n * Insulin Delivery\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinsulindelivery Apple Docs HKQuantityTypeIdentifierInsulinDelivery}\n * @since iOS 11\n */\n insulinDelivery = 'HKQuantityTypeIdentifierInsulinDelivery',\n\n /**\n * Blood Alcohol Content\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodalcoholcontent Apple Docs HKQuantityTypeIdentifierBloodAlcoholContent}\n * @since iOS 8\n */\n bloodAlcoholContent = 'HKQuantityTypeIdentifierBloodAlcoholContent',\n\n /**\n * Forced Vital Capacity\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedvitalcapacity Apple Docs HKQuantityTypeIdentifierForcedVitalCapacity}\n */\n forcedVitalCapacity = 'HKQuantityTypeIdentifierForcedVitalCapacity',\n\n /**\n * Forced Expiratory Volume1\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedexpiratoryvolume1 Apple Docs HKQuantityTypeIdentifierForcedExpiratoryVolume1}\n * @since iOS 8\n */\n forcedExpiratoryVolume1 = 'HKQuantityTypeIdentifierForcedExpiratoryVolume1',\n\n /**\n * Peak Expiratory Flow Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpeakexpiratoryflowrate Apple Docs HKQuantityTypeIdentifierPeakExpiratoryFlowRate}\n * @since iOS 8\n */\n peakExpiratoryFlowRate = 'HKQuantityTypeIdentifierPeakExpiratoryFlowRate',\n\n /**\n * Environmental Audio Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalaudioexposure Apple Docs HKQuantityTypeIdentifierEnvironmentalAudioExposure}\n * @since iOS 13\n */\n environmentalAudioExposure = 'HKQuantityTypeIdentifierEnvironmentalAudioExposure',\n\n /**\n * Headphone Audio Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheadphoneaudioexposure Apple Docs HKQuantityTypeIdentifierHeadphoneAudioExposure}\n * @since iOS 13\n */\n headphoneAudioExposure = 'HKQuantityTypeIdentifierHeadphoneAudioExposure', // Pressure, Cumulative\n\n // Nutrition\n /**\n * Dietary Fat Total\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfattotal Apple Docs HKQuantityTypeIdentifierDietaryFatTotal}\n * @since iOS 8\n */\n dietaryFatTotal = 'HKQuantityTypeIdentifierDietaryFatTotal', // Mass, Cumulative\n\n /**\n * Dietary Fat Polyunsaturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatpolyunsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatPolyunsaturated}\n */\n dietaryFatPolyunsaturated = 'HKQuantityTypeIdentifierDietaryFatPolyunsaturated', // Mass, Cumulative\n\n /**\n * Dietary Fat Monounsaturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatmonounsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatMonounsaturated}\n */\n dietaryFatMonounsaturated = 'HKQuantityTypeIdentifierDietaryFatMonounsaturated', // Mass, Cumulative\n /**\n * Dietary Fat Saturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatSaturated}\n */\n dietaryFatSaturated = 'HKQuantityTypeIdentifierDietaryFatSaturated', // Mass, Cumulative\n\n /**\n * Dietary Cholesterol\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycholesterol Apple Docs HKQuantityTypeIdentifierDietaryCholesterol}\n */\n dietaryCholesterol = 'HKQuantityTypeIdentifierDietaryCholesterol', // Mass, Cumulative\n\n /**\n * Dietary Sodium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysodium Apple Docs HKQuantityTypeIdentifierDietarySodium}\n */\n dietarySodium = 'HKQuantityTypeIdentifierDietarySodium', // Mass, Cumulative\n\n /**\n * Dietary Carbohydrates\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycarbohydrates Apple Docs HKQuantityTypeIdentifierDietaryCarbohydrates}\n */\n dietaryCarbohydrates = 'HKQuantityTypeIdentifierDietaryCarbohydrates', // Mass, Cumulative\n\n /**\n * Dietary Fiber\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfiber Apple Docs HKQuantityTypeIdentifierDietaryFiber}\n */\n dietaryFiber = 'HKQuantityTypeIdentifierDietaryFiber', // Mass, Cumulative\n /**\n * Dietary Sugar\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysugar Apple Docs HKQuantityTypeIdentifierDietarySugar}\n */\n dietarySugar = 'HKQuantityTypeIdentifierDietarySugar', // Mass, Cumulative\n\n /**\n * Dietary Energy Consumed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryenergyconsumed Apple Docs HKQuantityTypeIdentifierDietaryEnergyConsumed}\n */\n dietaryEnergyConsumed = 'HKQuantityTypeIdentifierDietaryEnergyConsumed', // Energy, Cumulative\n\n /**\n * Dietary Protein\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryprotein Apple Docs HKQuantityTypeIdentifierDietaryProtein}\n */\n dietaryProtein = 'HKQuantityTypeIdentifierDietaryProtein', // Mass, Cumulative\n\n /**\n * Dietary Vitamin A\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamina Apple Docs HKQuantityTypeIdentifierDietaryVitaminA}\n */\n dietaryVitaminA = 'HKQuantityTypeIdentifierDietaryVitaminA', // Mass, Cumulative\n\n /**\n * Dietary Vitamin B6\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb6 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB6}\n */\n dietaryVitaminB6 = 'HKQuantityTypeIdentifierDietaryVitaminB6', // Mass, Cumulative\n\n /**\n * Dietary Vitamin B12\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb12 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB12}\n */\n dietaryVitaminB12 = 'HKQuantityTypeIdentifierDietaryVitaminB12', // Mass, Cumulative\n\n /**\n * Dietary Vitamin C\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminc Apple Docs HKQuantityTypeIdentifierDietaryVitaminC}\n */\n dietaryVitaminC = 'HKQuantityTypeIdentifierDietaryVitaminC', // Mass, Cumulative\n\n /**\n * Dietary Vitamin D\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamind Apple Docs HKQuantityTypeIdentifierDietaryVitaminD}\n */\n dietaryVitaminD = 'HKQuantityTypeIdentifierDietaryVitaminD', // Mass, Cumulative\n\n /**\n * Dietary Vitamin E\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamine Apple Docs HKQuantityTypeIdentifierDietaryVitaminE}\n */\n dietaryVitaminE = 'HKQuantityTypeIdentifierDietaryVitaminE', // Mass, Cumulative\n\n /**\n * Dietary Vitamin K\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamink Apple Docs HKQuantityTypeIdentifierDietaryVitaminK}\n */\n dietaryVitaminK = 'HKQuantityTypeIdentifierDietaryVitaminK', // Mass, Cumulative\n /**\n * Dietary Calcium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycalcium Apple Docs HKQuantityTypeIdentifierDietaryCalcium}\n */\n dietaryCalcium = 'HKQuantityTypeIdentifierDietaryCalcium', // Mass, Cumulative\n\n /**\n * Dietary Iron\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiron Apple Docs HKQuantityTypeIdentifierDietaryIron}\n */\n dietaryIron = 'HKQuantityTypeIdentifierDietaryIron', // Mass, Cumulative\n\n /**\n * Dietary Thiamin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarythiamin Apple Docs HKQuantityTypeIdentifierDietaryThiamin}\n */\n dietaryThiamin = 'HKQuantityTypeIdentifierDietaryThiamin', // Mass, Cumulative\n\n /**\n * Dietary Riboflavin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryriboflavin Apple Docs HKQuantityTypeIdentifierDietaryRiboflavin}\n */\n dietaryRiboflavin = 'HKQuantityTypeIdentifierDietaryRiboflavin', // Mass, Cumulative\n\n /**\n * Dietary Niacin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryniacin Apple Docs HKQuantityTypeIdentifierDietaryNiacin}\n */\n dietaryNiacin = 'HKQuantityTypeIdentifierDietaryNiacin', // Mass, Cumulative\n\n /**\n * Dietary Folate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfolate Apple Docs HKQuantityTypeIdentifierDietaryFolate}\n */\n dietaryFolate = 'HKQuantityTypeIdentifierDietaryFolate', // Mass, Cumulative\n\n /**\n * Dietary Biotin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarybiotin Apple Docs HKQuantityTypeIdentifierDietaryBiotin}\n */\n dietaryBiotin = 'HKQuantityTypeIdentifierDietaryBiotin', // Mass, Cumulative\n\n /**\n * Dietary Pantothenic Acid\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypantothenicacid Apple Docs HKQuantityTypeIdentifierDietaryPantothenicAcid}\n */\n dietaryPantothenicAcid = 'HKQuantityTypeIdentifierDietaryPantothenicAcid', // Mass, Cumulative\n\n /**\n * Dietary Phosphorus\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryphosphorus Apple Docs HKQuantityTypeIdentifierDietaryPhosphorus}\n */\n dietaryPhosphorus = 'HKQuantityTypeIdentifierDietaryPhosphorus', // Mass, Cumulative\n\n /**\n * Dietary Iodine\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiodine Apple Docs HKQuantityTypeIdentifierDietaryIodine}\n */\n dietaryIodine = 'HKQuantityTypeIdentifierDietaryIodine', // Mass, Cumulative\n /**\n * Dietary Magnesium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymagnesium Apple Docs HKQuantityTypeIdentifierDietaryMagnesium}\n */\n dietaryMagnesium = 'HKQuantityTypeIdentifierDietaryMagnesium', // Mass, Cumulative\n\n /**\n * Dietary Zinc\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryzinc Apple Docs HKQuantityTypeIdentifierDietaryZinc}\n */\n dietaryZinc = 'HKQuantityTypeIdentifierDietaryZinc', // Mass, Cumulative\n\n /**\n * Dietary Selenium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryselenium Apple Docs HKQuantityTypeIdentifierDietarySelenium}\n */\n dietarySelenium = 'HKQuantityTypeIdentifierDietarySelenium', // Mass, Cumulative\n\n /**\n * Dietary Copper\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycopper Apple Docs HKQuantityTypeIdentifierDietaryCopper}\n */\n dietaryCopper = 'HKQuantityTypeIdentifierDietaryCopper', // Mass, Cumulative\n\n /**\n * Dietary Manganese\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymanganese Apple Docs HKQuantityTypeIdentifierDietaryManganese}\n */\n dietaryManganese = 'HKQuantityTypeIdentifierDietaryManganese', // Mass, Cumulative\n\n /**\n * Dietary Chromium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychromium Apple Docs HKQuantityTypeIdentifierDietaryChromium}\n */\n dietaryChromium = 'HKQuantityTypeIdentifierDietaryChromium', // Mass, Cumulative\n\n /**\n * Dietary Molybdenum\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymolybdenum Apple Docs HKQuantityTypeIdentifierDietaryMolybdenum}\n */\n dietaryMolybdenum = 'HKQuantityTypeIdentifierDietaryMolybdenum', // Mass, Cumulative\n\n /**\n * Dietary Chloride\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychloride Apple Docs HKQuantityTypeIdentifierDietaryChloride}\n * @since iOS 8\n */\n dietaryChloride = 'HKQuantityTypeIdentifierDietaryChloride', // Mass, Cumulative\n\n /**\n * Dietary Potassium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypotassium Apple Docs HKQuantityTypeIdentifierDietaryPotassium}\n * @since iOS 8\n */\n dietaryPotassium = 'HKQuantityTypeIdentifierDietaryPotassium', // Mass, Cumulative\n\n /**\n * Dietary Caffeine\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycaffeine Apple Docs HKQuantityTypeIdentifierDietaryCaffeine}\n * @since iOS 8\n */\n dietaryCaffeine = 'HKQuantityTypeIdentifierDietaryCaffeine', // Mass, Cumulative\n\n /**\n * Dietary Water\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarywater Apple Docs HKQuantityTypeIdentifierDietaryWater}\n * @since iOS 9\n */\n dietaryWater = 'HKQuantityTypeIdentifierDietaryWater', // Volume, Cumulative\n\n // Mobility\n /**\n * Six Minute Walk Test Distance\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiersixminutewalktestdistance Apple Docs HKQuantityTypeIdentifierSixMinuteWalkTestDistance}\n * @since iOS 14\n */\n sixMinuteWalkTestDistance = 'HKQuantityTypeIdentifierSixMinuteWalkTestDistance',\n\n /**\n * Walking Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingspeed Apple Docs HKQuantityTypeIdentifierWalkingSpeed}\n * @since iOS 14\n */\n walkingSpeed = 'HKQuantityTypeIdentifierWalkingSpeed',\n\n /**\n * Walking Step Length\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingsteplength Apple Docs HKQuantityTypeIdentifierWalkingStepLength}\n * @since iOS 14\n */\n walkingStepLength = 'HKQuantityTypeIdentifierWalkingStepLength',\n\n /**\n * Walking Asymmetry Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingasymmetrypercentage Apple Docs HKQuantityTypeIdentifierWalkingAsymmetryPercentage}\n * @since iOS 14\n */\n walkingAsymmetryPercentage = 'HKQuantityTypeIdentifierWalkingAsymmetryPercentage',\n\n /**\n * Walking Double Support Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingdoublesupportpercentage Apple Docs HKQuantityTypeIdentifierWalkingDoubleSupportPercentage}\n * @since iOS 14\n */\n walkingDoubleSupportPercentage = 'HKQuantityTypeIdentifierWalkingDoubleSupportPercentage',\n\n /**\n * Stair Ascent Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairascentspeed Apple Docs HKQuantityTypeIdentifierStairAscentSpeed}\n * @since iOS 14\n */\n stairAscentSpeed = 'HKQuantityTypeIdentifierStairAscentSpeed',\n\n /**\n * Stair Descent Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairdescentspeed Apple Docs HKQuantityTypeIdentifierStairDescentSpeed}\n * @since iOS 14\n */\n stairDescentSpeed = 'HKQuantityTypeIdentifierStairDescentSpeed',\n\n /**\n * UV Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieruvexposure Apple Docs HKQuantityTypeIdentifierUVExposure}\n * @since iOS 9\n */\n uvExposure = 'HKQuantityTypeIdentifierUVExposure', // Scalar (Count), Discrete\n\n /**\n * Apple Move Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplemovetime Apple Docs HKQuantityTypeIdentifierAppleMoveTime}\n * @since iOS 14.5\n */\n appleMoveTime = 'HKQuantityTypeIdentifierAppleMoveTime', // Time, Cumulative\n\n /**\n * Apple Walking Steadiness\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplewalkingsteadiness Apple Docs HKQuantityTypeIdentifierAppleWalkingSteadiness}\n * @since iOS 15\n */\n appleWalkingSteadiness = 'HKQuantityTypeIdentifierAppleWalkingSteadiness', // Scalar(Percent, 0.0 - 1.0), Discrete\n\n /**\n * Number Of Alcoholic Beverages\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberofalcoholicbeverages Apple Docs HKQuantityTypeIdentifierNumberOfAlcoholicBeverages}\n * @since iOS 15\n */\n numberOfAlcoholicBeverages = 'HKQuantityTypeIdentifierNumberOfAlcoholicBeverages', // Scalar(Count), Cumulative\n\n /**\n * Atrial Fibrillation Burden\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieratrialfibrillationburden Apple Docs HKQuantityTypeIdentifierAtrialFibrillationBurden}\n * @since iOS 16\n */\n atrialFibrillationBurden = 'HKQuantityTypeIdentifierAtrialFibrillationBurden', // Scalar(Percent, 0.0 - 1.0), Discrete\n\n /**\n * Underwater Depth\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierunderwaterdepth Apple Docs HKQuantityTypeIdentifierUnderwaterDepth}\n * @since iOS 16\n */\n underwaterDepth = 'HKQuantityTypeIdentifierUnderwaterDepth', // Length, Discrete\n\n /**\n * Water Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwatertemperature Apple Docs HKQuantityTypeIdentifierWaterTemperature}\n * @since iOS 16\n */\n waterTemperature = 'HKQuantityTypeIdentifierWaterTemperature', // Temperature, Discrete\n\n /**\n * Apple Sleeping Wrist Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplesleepingwristtemperature Apple Docs HKQuantityTypeIdentifierAppleSleepingWristTemperature}\n * @since iOS 17\n */\n appleSleepingWristTemperature = 'HKQuantityTypeIdentifierAppleSleepingWristTemperature', // Temperature, Discrete\n\n /**\n * Time In Daylight\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiertimeindaylight Apple Docs HKQuantityTypeIdentifierTimeInDaylight}\n * @since iOS 17\n */\n timeInDaylight = 'HKQuantityTypeIdentifierTimeInDaylight', // Time, Cumulative\n\n /**\n * Physical Effort\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierphysicaleffort Apple Docs HKQuantityTypeIdentifierPhysicalEffort}\n * @since iOS 17\n */\n physicalEffort = 'HKQuantityTypeIdentifierPhysicalEffort', // Scalar (Percent, 0.0 - 1.0), Discrete\n\n /**\n * Cycling Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingspeed Apple Docs HKQuantityTypeIdentifierCyclingSpeed}\n * @since iOS 17\n */\n cyclingSpeed = 'HKQuantityTypeIdentifierCyclingSpeed',\n\n /**\n * Cycling Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingpower Apple Docs HKQuantityTypeIdentifierCyclingPower}\n * @since iOS 17\n */\n cyclingPower = 'HKQuantityTypeIdentifierCyclingPower',\n\n /**\n * Cycling Functional Threshold Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingfunctionalthresholdpower Apple Docs HKQuantityTypeIdentifierCyclingFunctionalThresholdPower}\n * @since iOS 17\n */\n cyclingFunctionalThresholdPower = 'HKQuantityTypeIdentifierCyclingFunctionalThresholdPower',\n\n /**\n * Cycling Cadence\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingcadence Apple Docs HKQuantityTypeIdentifierCyclingCadence}\n * @since iOS 17\n */\n cyclingCadence = 'HKQuantityTypeIdentifierCyclingCadence',\n\n /**\n * Environmental Sound Reduction\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalsoundreduction Apple Docs HKQuantityTypeIdentifierEnvironmentalSoundReduction}\n * @since iOS 16\n */\n environmentalSoundReduction = 'HKQuantityTypeIdentifierEnvironmentalSoundReduction',\n\n /**\n * Heart Rate Recovery One Minute\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartraterecoveryoneminute Apple Docs HKQuantityTypeIdentifierHeartRateRecoveryOneMinute}\n * @since iOS 16\n */\n heartRateRecoveryOneMinute = 'HKQuantityTypeIdentifierHeartRateRecoveryOneMinute',\n\n /**\n * Running Ground Contact Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunninggroundcontacttime Apple Docs HKQuantityTypeIdentifierRunningGroundContactTime}\n * @since iOS 16\n */\n runningGroundContactTime = 'HKQuantityTypeIdentifierRunningGroundContactTime',\n\n /**\n * Running Stride Length\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningstridelength Apple Docs HKQuantityTypeIdentifierRunningStrideLength}\n * @since iOS 16\n */\n runningStrideLength = 'HKQuantityTypeIdentifierRunningStrideLength',\n\n /**\n * Running Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningpower Apple Docs HKQuantityTypeIdentifierRunningPower}\n * @since iOS 16\n */\n runningPower = 'HKQuantityTypeIdentifierRunningPower',\n\n /**\n * Running Vertical Oscillation\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningverticaloscillation Apple Docs HKQuantityTypeIdentifierRunningVerticalOscillation}\n * @since iOS 16\n */\n runningVerticalOscillation = 'HKQuantityTypeIdentifierRunningVerticalOscillation',\n\n /**\n * Running Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningspeed Apple Docs HKQuantityTypeIdentifierRunningSpeed}\n * @since iOS 16\n */\n runningSpeed = 'HKQuantityTypeIdentifierRunningSpeed',\n}\n\nexport type TypeToUnitMapping = {\n readonly [key in HKQuantityTypeIdentifier]: HKUnit;\n};\n\nexport enum HKCategoryValueLowCardioFitnessEvent {\n lowFitness = 1,\n}\n\nexport enum HKHeartRateMotionContext {\n active = 2,\n notSet = 0,\n sedentary = 1,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcorrelationtypeidentifier Apple Docs }\n */\nexport enum HKCorrelationTypeIdentifier {\n bloodPressure = 'HKCorrelationTypeIdentifierBloodPressure',\n food = 'HKCorrelationTypeIdentifierFood',\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier Apple Docs }\n */\nexport enum HKCategoryTypeIdentifier {\n sleepAnalysis = 'HKCategoryTypeIdentifierSleepAnalysis',\n appleStandHour = 'HKCategoryTypeIdentifierAppleStandHour',\n cervicalMucusQuality = 'HKCategoryTypeIdentifierCervicalMucusQuality',\n ovulationTestResult = 'HKCategoryTypeIdentifierOvulationTestResult',\n menstrualFlow = 'HKCategoryTypeIdentifierMenstrualFlow',\n intermenstrualBleeding = 'HKCategoryTypeIdentifierIntermenstrualBleeding',\n sexualActivity = 'HKCategoryTypeIdentifierSexualActivity',\n mindfulSession = 'HKCategoryTypeIdentifierMindfulSession',\n highHeartRateEvent = 'HKCategoryTypeIdentifierHighHeartRateEvent',\n lowHeartRateEvent = 'HKCategoryTypeIdentifierLowHeartRateEvent',\n irregularHeartRhythmEvent = 'HKCategoryTypeIdentifierIrregularHeartRhythmEvent',\n /**\n * @deprecated Use environmentalAudioExposureEvent instead.\n */\n audioExposureEvent = 'HKCategoryTypeIdentifierAudioExposureEvent',\n toothbrushingEvent = 'HKCategoryTypeIdentifierToothbrushingEvent',\n lowCardioFitnessEvent = 'HKCategoryTypeIdentifierLowCardioFitnessEvent',\n contraceptive = 'HKCategoryTypeIdentifierContraceptive',\n lactation = 'HKCategoryTypeIdentifierLactation',\n pregnancy = 'HKCategoryTypeIdentifierPregnancy',\n pregnancyTestResult = 'HKCategoryTypeIdentifierPregnancyTestResult',\n progesteroneTestResult = 'HKCategoryTypeIdentifierProgesteroneTestResult',\n environmentalAudioExposureEvent = 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent',\n headphoneAudioExposureEvent = 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent',\n appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',\n handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue\n\n // Symptoms\n abdominalCramps = 'HKCategoryTypeIdentifierAbdominalCramps', // HKCategoryValueSeverity\n acne = 'HKCategoryTypeIdentifierAcne', // HKCategoryValueSeverity\n appetiteChanges = 'HKCategoryTypeIdentifierAppetiteChanges', // HKCategoryValueAppetiteChanges\n bladderIncontinence = 'HKCategoryTypeIdentifierBladderIncontinence', // HKCategoryValueSeverity\n bloating = 'HKCategoryTypeIdentifierBloating', // HKCategoryValueSeverity\n breastPain = 'HKCategoryTypeIdentifierBreastPain', // HKCategoryValueSeverity\n chestTightnessOrPain = 'HKCategoryTypeIdentifierChestTightnessOrPain', // HKCategoryValueSeverity\n chills = 'HKCategoryTypeIdentifierChills', // HKCategoryValueSeverity\n constipation = 'HKCategoryTypeIdentifierConstipation', // HKCategoryValueSeverity\n coughing = 'HKCategoryTypeIdentifierCoughing', // HKCategoryValueSeverity\n diarrhea = 'HKCategoryTypeIdentifierDiarrhea', // HKCategoryValueSeverity\n dizziness = 'HKCategoryTypeIdentifierDizziness', // HKCategoryValueSeverity\n drySkin = 'HKCategoryTypeIdentifierDrySkin', // HKCategoryValueSeverity\n fainting = 'HKCategoryTypeIdentifierFainting', // HKCategoryValueSeverity\n fatigue = 'HKCategoryTypeIdentifierFatigue', // HKCategoryValueSeverity\n fever = 'HKCategoryTypeIdentifierFever', // HKCategoryValueSeverity\n generalizedBodyAche = 'HKCategoryTypeIdentifierGeneralizedBodyAche', // HKCategoryValueSeverity\n hairLoss = 'HKCategoryTypeIdentifierHairLoss', // HKCategoryValueSeverity\n headache = 'HKCategoryTypeIdentifierHeadache', // HKCategoryValueSeverity\n heartburn = 'HKCategoryTypeIdentifierHeartburn', // HKCategoryValueSeverity\n hotFlashes = 'HKCategoryTypeIdentifierHotFlashes', // HKCategoryValueSeverity\n lossOfSmell = 'HKCategoryTypeIdentifierLossOfSmell', // HKCategoryValueSeverity\n lossOfTaste = 'HKCategoryTypeIdentifierLossOfTaste', // HKCategoryValueSeverity\n lowerBackPain = 'HKCategoryTypeIdentifierLowerBackPain', // HKCategoryValueSeverity\n memoryLapse = 'HKCategoryTypeIdentifierMemoryLapse', // HKCategoryValueSeverity\n moodChanges = 'HKCategoryTypeIdentifierMoodChanges', // HKCategoryValuePresence\n nausea = 'HKCategoryTypeIdentifierNausea', // HKCategoryValueSeverity\n nightSweats = 'HKCategoryTypeIdentifierNightSweats', // HKCategoryValueSeverity\n pelvicPain = 'HKCategoryTypeIdentifierPelvicPain', // HKCategoryValueSeverity\n rapidPoundingOrFlutteringHeartbeat = 'HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat', // HKCategoryValueSeverity\n runnyNose = 'HKCategoryTypeIdentifierRunnyNose', // HKCategoryValueSeverity\n shortnessOfBreath = 'HKCategoryTypeIdentifierShortnessOfBreath', // HKCategoryValueSeverity\n sinusCongestion = 'HKCategoryTypeIdentifierSinusCongestion', // HKCategoryValueSeverity\n skippedHeartbeat = 'HKCategoryTypeIdentifierSkippedHeartbeat', // HKCategoryValueSeverity\n sleepChanges = 'HKCategoryTypeIdentifierSleepChanges', // HKCategoryValuePresence\n soreThroat = 'HKCategoryTypeIdentifierSoreThroat', // HKCategoryValueSeverity\n vaginalDryness = 'HKCategoryTypeIdentifierVaginalDryness', // HKCategoryValueSeverity\n vomiting = 'HKCategoryTypeIdentifierVomiting', // HKCategoryValueSeverity\n wheezing = 'HKCategoryTypeIdentifierWheezing', // HKCategoryValueSeverity\n}\n\nexport type HKSampleTypeIdentifier =\n | HKCategoryTypeIdentifier\n | HKCorrelationTypeIdentifier\n | HKQuantityTypeIdentifier\n | typeof HKActivitySummaryTypeIdentifier\n | typeof HKAudiogramTypeIdentifier\n | typeof HKDataTypeIdentifierHeartbeatSeries\n | typeof HKWorkoutRouteTypeIdentifier\n | typeof HKWorkoutTypeIdentifier\n | `${HKCategoryTypeIdentifier}`\n | `${HKCorrelationTypeIdentifier}`\n | `${HKQuantityTypeIdentifier}`;\n\nexport type HealthkitReadAuthorization =\n | HKCharacteristicTypeIdentifier\n | HKSampleTypeIdentifier\n | `${HKCharacteristicTypeIdentifier}`\n | `${HKSampleTypeIdentifier}`;\nexport type HealthkitWriteAuthorization = HKSampleTypeIdentifier;\n\nexport enum HKCategoryValueAppleStandHour {\n stood = 0,\n idle = 1,\n}\n\nexport enum HKWorkoutActivityType {\n americanFootball = 1,\n archery = 2,\n australianFootball = 3,\n badminton = 4,\n baseball = 5,\n basketball = 6,\n bowling = 7,\n boxing = 8, // See also HKWorkoutActivityTypeKickboxing.,\n climbing = 9,\n cricket = 10,\n crossTraining = 11, // Any mix of cardio and/or strength training. See also HKWorkoutActivityTypeCoreTraining and HKWorkoutActivityTypeFlexibility.,\n curling = 12,\n cycling = 13,\n dance = 14,\n danceInspiredTraining = 15, // This enum remains available to access older data.,\n elliptical = 16,\n equestrianSports = 17, // Polo, Horse Racing, Horse Riding, etc.,\n fencing = 18,\n fishing = 19,\n functionalStrengthTraining = 20, // Primarily free weights and/or body weight and/or accessories,\n golf = 21,\n gymnastics = 22,\n handball = 23,\n hiking = 24,\n hockey = 25, // Ice Hockey, Field Hockey, etc.,\n hunting = 26,\n lacrosse = 27,\n martialArts = 28,\n mindAndBody = 29, // Qigong, meditation, etc.,\n mixedMetabolicCardioTraining = 30, // This enum remains available to access older data.,\n paddleSports = 31, // Canoeing, Kayaking, Outrigger, Stand Up Paddle Board, etc.,\n play = 32, // Dodge Ball, Hopscotch, Tetherball, Jungle Gym, etc.,\n preparationAndRecovery = 33, // Foam rolling, stretching, etc.,\n racquetball = 34,\n rowing = 35,\n rugby = 36,\n running = 37,\n sailing = 38,\n skatingSports = 39, // Ice Skating, Speed Skating, Inline Skating, Skateboarding, etc.,\n snowSports = 40, // Sledding, Snowmobiling, Building a Snowman, etc. See also HKWorkoutActivityTypeCrossCountrySkiing, HKWorkoutActivityTypeSnowboarding, and HKWorkoutActivityTypeDownhillSkiing.,\n soccer = 41,\n softball = 42,\n squash = 43,\n stairClimbing = 44, // See also HKWorkoutActivityTypeStairs and HKWorkoutActivityTypeStepTraining.,\n surfingSports = 45, // Traditional Surfing, Kite Surfing, Wind Surfing, etc.,\n swimming = 46,\n tableTennis = 47,\n tennis = 48,\n trackAndField = 49, // Shot Put, Javelin, Pole Vaulting, etc.,\n traditionalStrengthTraining = 50, // Primarily machines and/or free weights,\n volleyball = 51,\n walking = 52,\n waterFitness = 53,\n waterPolo = 54,\n waterSports = 55, // Water Skiing, Wake Boarding, etc.,\n wrestling = 56,\n yoga = 57,\n barre = 58, // HKWorkoutActivityTypeDanceInspiredTraining,\n coreTraining = 59,\n crossCountrySkiing = 60,\n downhillSkiing = 61,\n flexibility = 62,\n highIntensityIntervalTraining = 63,\n jumpRope = 64,\n kickboxing = 65,\n pilates = 66, // HKWorkoutActivityTypeDanceInspiredTraining,\n snowboarding = 67,\n stairs = 68,\n stepTraining = 69,\n wheelchairWalkPace = 70,\n wheelchairRunPace = 71,\n taiChi = 72,\n mixedCardio = 73, // HKWorkoutActivityTypeMixedMetabolicCardioTraining,\n handCycling = 74,\n discSports = 75,\n fitnessGaming = 76,\n other = 3000,\n}\n\nexport type HKGenericMetadata = {\n readonly [key: string]: HKQuantity | boolean | number | string | undefined;\n readonly HKExternalUUID?: string;\n readonly HKTimeZone?: string;\n readonly HKWasUserEntered?: boolean;\n readonly HKDeviceSerialNumber?: string;\n readonly HKUDIDeviceIdentifier?: string;\n readonly HKUDIProductionIdentifier?: string;\n readonly HKDigitalSignature?: string;\n readonly HKDeviceName?: string;\n readonly HKDeviceManufacturerName?: string;\n readonly HKSyncIdentifier?: string;\n readonly HKSyncVersion?: number;\n readonly HKWasTakenInLab?: boolean;\n readonly HKReferenceRangeLowerLimit?: number;\n readonly HKReferenceRangeUpperLimit?: number;\n};\n\n// documented at https://developer.apple.com/documentation/healthkit/hkweathercondition\nexport enum HKWeatherCondition {\n none = 0,\n clear = 1,\n fair = 2,\n partlyCloudy = 3,\n mostlyCloudy = 4,\n cloudy = 5,\n foggy = 6,\n haze = 7,\n windy = 8,\n blustery = 9,\n smoky = 10,\n dust = 11,\n snow = 12,\n hail = 13,\n sleet = 14,\n freezingDrizzle = 15,\n freezingRain = 16,\n mixedRainAndHail = 17,\n mixedRainAndSnow = 18,\n mixedRainAndSleet = 19,\n mixedSnowAndSleet = 20,\n drizzle = 21,\n scatteredShowers = 22,\n showers = 23,\n thunderstorms = 24,\n tropicalStorm = 25,\n hurricane = 26,\n tornado = 27,\n}\n\nenum HKIndoorWorkout {\n false = 0,\n true = 1,\n}\n\nexport interface HKWorkoutMetadata\n extends HKGenericMetadata /* */ {\n readonly HKWeatherCondition?: HKWeatherCondition;\n readonly HKWeatherHumidity?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Percent\n >;\n // HKWeatherTemperature: HKQuantity\n readonly HKAverageMETs?: HKQuantity;\n readonly HKElevationAscended?: HKQuantity<\n HKQuantityTypeIdentifier,\n LengthUnit\n >;\n readonly HKIndoorWorkout?: HKIndoorWorkout;\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationrequeststatus Apple Docs }\n */\nexport enum HKAuthorizationRequestStatus {\n unknown = 0,\n shouldRequest = 1,\n unnecessary = 2,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationstatus Apple Docs }\n */\nexport enum HKAuthorizationStatus {\n notDetermined = 0,\n sharingDenied = 1,\n sharingAuthorized = 2,\n}\n\nexport type HKQuantity<\n TIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = {\n readonly unit: TUnit;\n readonly quantity: number;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkbloodtype Apple Docs }\n */\nexport enum HKBloodType {\n notSet = 0,\n aPositive = 1,\n aNegative = 2,\n bPositive = 3,\n bNegative = 4,\n abPositive = 5,\n abNegative = 6,\n oPositive = 7,\n oNegative = 8,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkbiologicalsex Apple Docs }\n */\nexport enum HKBiologicalSex {\n notSet = 0,\n female = 1,\n male = 2,\n other = 3,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkfitzpatrickskintype Apple Docs }\n */\nexport enum HKFitzpatrickSkinType {\n notSet = 0,\n I = 1,\n II = 2,\n III = 3,\n IV = 4,\n V = 5,\n VI = 6,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkstatisticsoptions Apple Docs }\n */\nexport enum HKStatisticsOptions {\n cumulativeSum = 'cumulativeSum',\n discreteAverage = 'discreteAverage',\n discreteMax = 'discreteMax',\n discreteMin = 'discreteMin',\n discreteMostRecent = 'discreteMostRecent',\n duration = 'duration',\n mostRecent = 'mostRecent',\n separateBySource = 'separateBySource',\n}\n\nexport type QueryStatisticsResponseRaw<\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n> = {\n readonly averageQuantity?: HKQuantity;\n readonly maximumQuantity?: HKQuantity;\n readonly minimumQuantity?: HKQuantity;\n readonly sumQuantity?: HKQuantity;\n readonly mostRecentQuantity?: HKQuantity;\n readonly mostRecentQuantityDateInterval?: {\n readonly from: string;\n readonly to: string;\n };\n readonly duration?: HKQuantity;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality Apple Docs }\n */\nexport enum HKCategoryValueCervicalMucusQuality {\n dry = 1,\n sticky = 2,\n creamy = 3,\n watery = 4,\n eggWhite = 5,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow Apple Docs }\n */\nexport enum HKCategoryValueMenstrualFlow {\n unspecified = 1,\n none = 5,\n light = 2,\n medium = 3,\n heavy = 4,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult Apple Docs }\n */\nexport enum HKCategoryValueOvulationTestResult {\n negative = 1,\n luteinizingHormoneSurge = 2,\n indeterminate = 3,\n estrogenSurge = 4,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis Apple Docs }\n */\nexport enum HKCategoryValueSleepAnalysis {\n inBed = 0,\n asleepUnspecified = 1,\n awake = 2,\n asleepCore = 3,\n asleepDeep = 4,\n asleepREM = 5,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges\n */\nexport enum HKCategoryValueAppetiteChanges {\n decreased = 2,\n increased = 3,\n noChange = 1,\n unspecified = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence\n */\nexport enum HKCategoryValuePresence {\n notPresent = 1,\n present = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity Apple Docs }\n */\nexport enum HKCategoryValueSeverity {\n notPresent = 1,\n mild = 2,\n moderate = 3,\n severe = 4,\n unspecified = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue/notapplicable Apple Docs }\n */\nexport enum HKCategoryValueNotApplicable {\n notApplicable = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue Apple Docs }\n */\nexport type HKCategoryValue =\n | HKCategoryValueAppetiteChanges\n | HKCategoryValueCervicalMucusQuality\n | HKCategoryValueLowCardioFitnessEvent\n | HKCategoryValueMenstrualFlow\n | HKCategoryValueOvulationTestResult\n | HKCategoryValuePresence\n | HKCategoryValueSeverity\n | HKCategoryValueSleepAnalysis\n | number;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkinsulindeliveryreason Apple Docs }\n */\nexport enum HKInsulinDeliveryReason {\n basal = 1,\n bolus = 2,\n}\n\nexport type MetadataMapperForQuantityIdentifier<\n TQuantityTypeIdentifier = HKQuantityTypeIdentifier\n> = TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.insulinDelivery\n ? HKGenericMetadata & {\n readonly HKInsulinDeliveryReason: HKInsulinDeliveryReason;\n }\n : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.bloodGlucose\n ? HKGenericMetadata & {\n readonly HKBloodGlucoseMealTime?: number;\n }\n : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.heartRate\n ? HKGenericMetadata & {\n readonly HKHeartRateMotionContext?: HKHeartRateMotionContext;\n }\n : HKGenericMetadata;\n\nexport type MetadataMapperForCorrelationIdentifier<\n TCorrelationTypeIdentifier = HKCorrelationTypeIdentifier\n> = TCorrelationTypeIdentifier extends HKCorrelationTypeIdentifier.food\n ? HKGenericMetadata & {\n readonly HKFoodType?: string;\n }\n : HKGenericMetadata;\n\nexport type UnitForIdentifier =\n T extends HKQuantityTypeIdentifier.bloodGlucose\n ? BloodGlucoseUnit\n : T extends\n | HKQuantityTypeIdentifier.appleExerciseTime\n | HKQuantityTypeIdentifier.appleMoveTime\n | HKQuantityTypeIdentifier.appleStandTime\n ? TimeUnit\n : T extends\n | HKQuantityTypeIdentifier.activeEnergyBurned\n | HKQuantityTypeIdentifier.basalEnergyBurned\n | HKQuantityTypeIdentifier.dietaryEnergyConsumed\n ? EnergyUnit\n : T extends\n | HKQuantityTypeIdentifier.distanceCycling\n | HKQuantityTypeIdentifier.distanceDownhillSnowSports\n | HKQuantityTypeIdentifier.distanceSwimming\n | HKQuantityTypeIdentifier.distanceWalkingRunning\n | HKQuantityTypeIdentifier.distanceWheelchair\n | HKQuantityTypeIdentifier.sixMinuteWalkTestDistance\n | HKQuantityTypeIdentifier.waistCircumference\n ? LengthUnit\n : T extends\n | HKQuantityTypeIdentifier.bodyFatPercentage\n | HKQuantityTypeIdentifier.oxygenSaturation\n | HKQuantityTypeIdentifier.walkingAsymmetryPercentage\n | HKQuantityTypeIdentifier.walkingDoubleSupportPercentage\n ? HKUnits.Percent\n : T extends\n | HKQuantityTypeIdentifier.basalBodyTemperature\n | HKQuantityTypeIdentifier.basalBodyTemperature\n ? TemperatureUnit\n : T extends\n | HKQuantityTypeIdentifier.runningSpeed\n | HKQuantityTypeIdentifier.stairAscentSpeed\n | HKQuantityTypeIdentifier.stairDescentSpeed\n | HKQuantityTypeIdentifier.walkingSpeed\n | HKQuantityTypeIdentifier.walkingSpeed\n ? SpeedUnit\n : T extends\n | HKQuantityTypeIdentifier.flightsClimbed\n | HKQuantityTypeIdentifier.numberOfAlcoholicBeverages\n | HKQuantityTypeIdentifier.numberOfTimesFallen\n | HKQuantityTypeIdentifier.pushCount\n | HKQuantityTypeIdentifier.stepCount\n | HKQuantityTypeIdentifier.swimmingStrokeCount\n ? HKUnits.Count\n : T extends\n | HKQuantityTypeIdentifier.dietaryBiotin\n | HKQuantityTypeIdentifier.dietaryCaffeine\n | HKQuantityTypeIdentifier.dietaryCalcium\n | HKQuantityTypeIdentifier.dietaryCarbohydrates\n | HKQuantityTypeIdentifier.dietaryChloride\n | HKQuantityTypeIdentifier.dietaryCholesterol\n | HKQuantityTypeIdentifier.dietaryChromium\n | HKQuantityTypeIdentifier.dietaryCopper\n | HKQuantityTypeIdentifier.dietaryFatMonounsaturated\n | HKQuantityTypeIdentifier.dietaryFatPolyunsaturated\n | HKQuantityTypeIdentifier.dietaryFatSaturated\n | HKQuantityTypeIdentifier.dietaryFatTotal\n | HKQuantityTypeIdentifier.dietaryFiber\n | HKQuantityTypeIdentifier.dietaryFolate\n | HKQuantityTypeIdentifier.dietaryIodine\n | HKQuantityTypeIdentifier.dietaryIodine\n | HKQuantityTypeIdentifier.dietaryIron\n | HKQuantityTypeIdentifier.dietaryMagnesium\n | HKQuantityTypeIdentifier.dietaryManganese\n | HKQuantityTypeIdentifier.dietaryMolybdenum\n | HKQuantityTypeIdentifier.dietaryNiacin\n | HKQuantityTypeIdentifier.dietaryPantothenicAcid\n | HKQuantityTypeIdentifier.dietaryPhosphorus\n | HKQuantityTypeIdentifier.dietaryPotassium\n | HKQuantityTypeIdentifier.dietaryProtein\n | HKQuantityTypeIdentifier.dietaryRiboflavin\n | HKQuantityTypeIdentifier.dietarySelenium\n | HKQuantityTypeIdentifier.dietarySodium\n | HKQuantityTypeIdentifier.dietarySugar\n | HKQuantityTypeIdentifier.dietaryThiamin\n | HKQuantityTypeIdentifier.dietaryVitaminA\n | HKQuantityTypeIdentifier.dietaryVitaminB6\n | HKQuantityTypeIdentifier.dietaryVitaminB12\n | HKQuantityTypeIdentifier.dietaryVitaminC\n | HKQuantityTypeIdentifier.dietaryVitaminD\n | HKQuantityTypeIdentifier.dietaryVitaminE\n | HKQuantityTypeIdentifier.dietaryVitaminK\n | HKQuantityTypeIdentifier.dietaryZinc\n ? MassUnit\n : T extends HKQuantityTypeIdentifier.dietaryWater\n ? VolumeUnit\n : T extends HKQuantityTypeIdentifier.insulinDelivery\n ? HKUnits.InternationalUnit | `${HKUnits.InternationalUnit}`\n : T extends\n | HKQuantityTypeIdentifier.heartRate\n | HKQuantityTypeIdentifier.restingHeartRate\n | HKQuantityTypeIdentifier.walkingHeartRateAverage\n ? CountPerTime\n : HKUnit;\n\nexport type HKCategoryValueForIdentifier =\n T extends HKCategoryTypeIdentifier.cervicalMucusQuality\n ? HKCategoryValueCervicalMucusQuality\n : T extends HKCategoryTypeIdentifier.menstrualFlow\n ? HKCategoryValueMenstrualFlow\n : T extends HKCategoryTypeIdentifier.ovulationTestResult\n ? HKCategoryValueOvulationTestResult\n : T extends HKCategoryTypeIdentifier.sleepAnalysis\n ? HKCategoryValueSleepAnalysis\n : T extends\n | HKCategoryTypeIdentifier.highHeartRateEvent\n | HKCategoryTypeIdentifier.intermenstrualBleeding\n | HKCategoryTypeIdentifier.mindfulSession\n | HKCategoryTypeIdentifier.sexualActivity\n ? HKCategoryValueNotApplicable\n : T extends\n | HKCategoryTypeIdentifier.abdominalCramps\n | HKCategoryTypeIdentifier.abdominalCramps\n | HKCategoryTypeIdentifier.acne\n | HKCategoryTypeIdentifier.bladderIncontinence\n | HKCategoryTypeIdentifier.bloating\n | HKCategoryTypeIdentifier.breastPain\n | HKCategoryTypeIdentifier.chestTightnessOrPain\n | HKCategoryTypeIdentifier.chills\n | HKCategoryTypeIdentifier.constipation\n | HKCategoryTypeIdentifier.coughing\n | HKCategoryTypeIdentifier.diarrhea\n | HKCategoryTypeIdentifier.dizziness\n | HKCategoryTypeIdentifier.drySkin\n | HKCategoryTypeIdentifier.fainting\n | HKCategoryTypeIdentifier.fatigue\n | HKCategoryTypeIdentifier.fever\n | HKCategoryTypeIdentifier.generalizedBodyAche\n | HKCategoryTypeIdentifier.hairLoss\n | HKCategoryTypeIdentifier.headache\n | HKCategoryTypeIdentifier.heartburn\n | HKCategoryTypeIdentifier.hotFlashes\n | HKCategoryTypeIdentifier.lossOfSmell\n | HKCategoryTypeIdentifier.lossOfTaste\n | HKCategoryTypeIdentifier.lowerBackPain\n | HKCategoryTypeIdentifier.memoryLapse\n | HKCategoryTypeIdentifier.moodChanges\n | HKCategoryTypeIdentifier.nausea\n | HKCategoryTypeIdentifier.nightSweats\n | HKCategoryTypeIdentifier.pelvicPain\n | HKCategoryTypeIdentifier.rapidPoundingOrFlutteringHeartbeat\n | HKCategoryTypeIdentifier.runnyNose\n | HKCategoryTypeIdentifier.shortnessOfBreath\n | HKCategoryTypeIdentifier.sinusCongestion\n | HKCategoryTypeIdentifier.skippedHeartbeat\n | HKCategoryTypeIdentifier.soreThroat\n | HKCategoryTypeIdentifier.vaginalDryness\n | HKCategoryTypeIdentifier.vomiting\n | HKCategoryTypeIdentifier.wheezing\n ? HKCategoryValueSeverity\n : T extends\n | HKCategoryTypeIdentifier.appetiteChanges\n | HKCategoryTypeIdentifier.sleepChanges\n ? HKCategoryValuePresence\n : T extends HKCategoryTypeIdentifier.lowCardioFitnessEvent\n ? HKCategoryValueLowCardioFitnessEvent\n : T extends HKCategoryTypeIdentifier.pregnancyTestResult\n ? HKCategoryValuePregnancyTestResult\n : T extends HKCategoryTypeIdentifier.pregnancyTestResult\n ? HKCategoryValuePregnancyTestResult\n : T extends HKCategoryTypeIdentifier.appleStandHour\n ? HKCategoryValueAppleStandHour\n : number;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepregnancytestresult Apple Docs }\n */\nenum HKCategoryValuePregnancyTestResult {\n positive = 2,\n negative = 1,\n indeterminate = 3,\n}\n/* needs further mapping\n\ncontraceptive = 'HKCategoryTypeIdentifierContraceptive',\n lactation = 'HKCategoryTypeIdentifierLactation',\n pregnancy = 'HKCategoryTypeIdentifierPregnancy',\n\n progesteroneTestResult = 'HKCategoryTypeIdentifierProgesteroneTestResult',\n environmentalAudioExposureEvent = 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent',\n headphoneAudioExposureEvent = 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent',\n appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',\n handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue */\n\nexport type HKHeartbeatSeriesSampleMetadata = HKGenericMetadata & {\n readonly HKMetadataKeyAlgorithmVersion: string;\n};\n\nexport type MetadataMapperForCategoryIdentifier<\n T extends HKCategoryTypeIdentifier\n> = T extends HKCategoryTypeIdentifier.sexualActivity\n ? HKGenericMetadata & {\n readonly HKSexualActivityProtectionUsed: boolean;\n }\n : T extends HKCategoryTypeIdentifier.menstrualFlow\n ? HKGenericMetadata & {\n readonly HKMenstrualCycleStart: boolean;\n }\n : HKGenericMetadata;\n\n// Maps directly to https://developer.apple.com/documentation/healthkit/hkwheelchairuse\nexport enum HKWheelchairUse {\n notSet = 0,\n no = 1,\n yes = 2,\n}\n\n// Unit types are a straight mapping from here https://developer.apple.com/documentation/healthkit/hkunit/1615733-init\nexport enum HKMetricPrefix {\n None = '',\n Pico = 'p',\n Nano = 'n',\n Micro = 'mc',\n Milli = 'm',\n Centi = 'c',\n Deci = 'd',\n Deca = 'da',\n Hecto = 'h',\n Kilo = 'k',\n Mega = 'M',\n Giga = 'G',\n Tera = 'T',\n Femto = 'f',\n}\n\nexport enum HKUnitMetric {\n Gram = 'g',\n Joule = 'J',\n Kelvin = 'K',\n Liter = 'l',\n Meter = 'm',\n Pascal = 'Pa',\n Second = 's',\n Siemen = 'S',\n Hertz = 'Hz',\n Volt = 'V',\n}\n\nexport enum HKUnits {\n DecibelHearingLevel = 'dBHL',\n DecibelSoundPressureLevel = 'dBASPL',\n\n Percent = '%',\n Count = 'count',\n InternationalUnit = 'IU',\n}\n\nexport type MeterUnit =\n `${Prefix}${HKUnitMetric.Meter}`;\nexport type LiterUnit =\n `${Prefix}${HKUnitMetric.Liter}`;\nexport type GramUnit =\n `${Prefix}${HKUnitMetric.Gram}`;\nexport type PascalUnit =\n `${Prefix}${HKUnitMetric.Pascal}`;\nexport type SecondUnit =\n `${Prefix}${HKUnitMetric.Second}`;\nexport type JouleUnit =\n `${Prefix}${HKUnitMetric.Joule}`;\nexport type HertzUnit =\n `${Prefix}${HKUnitMetric.Hertz}`;\nexport type VoltUnit =\n `${Prefix}${HKUnitMetric.Volt}`;\nexport type SiemenUnit =\n `${Prefix}${HKUnitMetric.Siemen}`;\n\n// not 100% sure about these\nexport type MoleUnit = `mol<${MolarMass}>`;\nexport type MoleUnitWith<\n MolarMass extends number,\n Prefix extends HKMetricPrefix = HKMetricPrefix.None\n> = `${Prefix}mol<${MolarMass}>`;\n\nexport type FrequencyUnit = HertzUnit;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'cm', 'km'\n */\nexport enum UnitOfLength {\n Feet = 'ft',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'cm', 'km'\n */\n Meter = 'm',\n Inches = 'in',\n Yards = 'yd',\n Miles = 'mi',\n}\nexport type LengthUnit = MeterUnit | UnitOfLength;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ml', 'cl'\n */\nexport enum UnitOfVolume {\n ImperialCup = 'cup_imp',\n ImperialFluidOunces = 'fl_oz_imp',\n ImperialPint = 'pt_imp',\n USCup = 'cup_us',\n USFluidOunces = 'fl_oz_us',\n USPint = 'pt_us',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'ml', 'cl'\n */\n Liter = 'l',\n}\nexport type VolumeUnit = LiterUnit | UnitOfVolume;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\nexport enum UnitOfMass {\n Ounces = 'oz',\n Stones = 'st',\n Pounds = 'lb',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\n Gram = 'g',\n}\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\nexport type MassUnit = GramUnit | UnitOfMass;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\nexport enum UnitOfPressure {\n Atmospheres = 'atm',\n CentimetersOfWater = 'cmAq',\n MillimetersOfMercury = 'mmHg',\n InchesOfMercury = 'inHg',\n DecibelAWeightedSoundPressureLevel = 'dBASPL',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\n Pascals = 'Pa',\n}\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\nexport type PressureUnit = PascalUnit | UnitOfPressure;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\nexport enum UnitOfTime {\n Days = 'd',\n Minutes = 'min',\n Hours = 'hr',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\n Seconds = 's',\n}\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\nexport type TimeUnit = SecondUnit | UnitOfTime;\nexport enum TemperatureUnit {\n DegreesCelsius = 'degC',\n DegreesFahrenheit = 'degF',\n Kelvin = 'K',\n}\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kJ'\n */\nexport enum UnitOfEnergy {\n Kilocalories = 'kcal',\n LargeCalories = 'Cal',\n SmallCalories = 'cal',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'kJ'\n */\n Joules = 'J',\n}\nexport type EnergyUnit = JouleUnit | UnitOfEnergy;\nexport enum BloodGlucoseUnit {\n GlucoseMmolPerL = 'mmol<180.15588000005408>/l',\n GlucoseMgPerDl = 'mg/dL',\n}\n\nexport type SpeedUnit<\n TLength extends LengthUnit,\n TTime extends TimeUnit\n> = `${TLength}/${TTime}`;\nexport type CountPerTime = `count/${TTime}`;\n\nexport type HKUnit =\n | BloodGlucoseUnit\n | CountPerTime\n | EnergyUnit\n | FrequencyUnit\n | HKUnits\n | LengthUnit\n | MassUnit\n | PressureUnit\n | SpeedUnit\n | TemperatureUnit\n | TimeUnit\n | VolumeUnit\n | `${BloodGlucoseUnit}`\n | `${EnergyUnit}`\n | `${FrequencyUnit}`\n | `${HKUnits}`\n | `${LengthUnit}`\n | `${MassUnit}`\n | `${PressureUnit}`\n | `${TemperatureUnit}`\n | `${TimeUnit}`\n | `${VolumeUnit}`;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkdevice Apple Docs }\n */\nexport type HKDevice = {\n readonly name: string; // ex: \"Apple Watch\"\n readonly firmwareVersion: string | null;\n readonly hardwareVersion: string; // ex: \"Watch6,2\",\n readonly localIdentifier: string | null;\n readonly manufacturer: string; // ex: \"Apple Inc.\"\n readonly model: string; // ex: \"Watch\"\n readonly softwareVersion: string; // ex: \"9.0\"\n readonly udiDeviceIdentifier: string | null;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615781-source Apple Docs }\n */\nexport type HKSource = {\n readonly name: string;\n readonly bundleIdentifier: string;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615483-sourcerevision Apple Docs }\n */\nexport type HKSourceRevision = {\n readonly source: HKSource;\n readonly version: string;\n readonly operatingSystemVersion?: string;\n readonly productType?: string;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitysample Apple Docs }\n */\nexport type HKQuantitySampleRaw<\n TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly quantityType: TQuantityIdentifier;\n readonly startDate: string;\n readonly endDate: string;\n readonly quantity: number;\n readonly unit: TUnit;\n readonly metadata: MetadataMapperForQuantityIdentifier;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type HKHeartbeatRaw = {\n readonly timeSinceSeriesStart: number;\n readonly precededByGap: boolean;\n};\n\nexport type HKHeartbeatSeriesSampleRaw = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly startDate: string;\n readonly endDate: string;\n readonly heartbeats: readonly HKHeartbeatRaw[];\n readonly metadata?: HKHeartbeatSeriesSampleMetadata;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type CLLocationRawForSaving = {\n readonly latitude: number;\n readonly longitude: number;\n readonly altitude: number;\n readonly horizontalAccuracy: number;\n readonly verticalAccuracy: number;\n readonly course: number;\n readonly speed: number;\n readonly timestamp: string; // unix timestamp in milliseconds\n};\n\nexport type HKQuantitySampleRawForSaving<\n TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = Omit<\nHKQuantitySampleRaw,\n'device' | 'endDate' | 'startDate' | 'uuid'\n> & {\n readonly startDate?: string;\n readonly endDate?: string;\n};\n\nexport type HKCategorySampleRawForSaving<\n TCategory extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier\n> = Omit<\nHKCategorySampleRaw,\n'device' | 'endDate' | 'startDate' | 'uuid'\n> & {\n readonly startDate?: string;\n readonly endDate?: string;\n};\n\nexport interface HKWorkoutEvent {\n readonly type: HKWorkoutEventType;\n readonly startDate: string;\n readonly endDate: string;\n}\n\nexport enum HKWorkoutEventType {\n pause = 1,\n resume = 2,\n lap = 3,\n marker = 4,\n motionPaused = 5,\n motionResumed = 6,\n segment = 7,\n pauseOrResumeRequest = 8,\n}\n\nexport interface HKWorkoutActivity {\n readonly startDate: string;\n readonly endDate: string;\n readonly uuid: string;\n readonly duration: number;\n}\n\nexport type HKWorkoutRaw<\n TEnergy extends EnergyUnit,\n TDistance extends LengthUnit\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly workoutActivityType: HKWorkoutActivityType;\n readonly duration: number;\n readonly totalDistance?: HKQuantity;\n readonly totalEnergyBurned?: HKQuantity;\n readonly totalSwimmingStrokeCount?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Count\n >;\n readonly totalFlightsClimbed?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Count\n >;\n readonly startDate: string;\n readonly endDate: string;\n readonly metadata?: HKWorkoutMetadata;\n readonly sourceRevision?: HKSourceRevision;\n readonly events?: readonly HKWorkoutEvent[];\n readonly activities?: readonly HKWorkoutActivity[];\n readonly workoutPlanId?: string;\n};\n\n// Straight mapping to https://developer.apple.com/documentation/healthkit/hkcharacteristictypeidentifier\nexport enum HKCharacteristicTypeIdentifier {\n fitzpatrickSkinType = 'HKCharacteristicTypeIdentifierFitzpatrickSkinType',\n biologicalSex = 'HKCharacteristicTypeIdentifierBiologicalSex',\n bloodType = 'HKCharacteristicTypeIdentifierBloodType',\n dateOfBirth = 'HKCharacteristicTypeIdentifierDateOfBirth',\n wheelchairUse = 'HKCharacteristicTypeIdentifierWheelchairUse',\n activityMoveMode = 'HKCharacteristicTypeIdentifierActivityMoveMode', // HKActivityMoveModeObject\n}\n\nexport type WritePermissions = {\n readonly [key in\n | HKCategoryTypeIdentifier\n | HKCharacteristicTypeIdentifier\n | HKQuantityTypeIdentifier]: boolean;\n};\n\nexport type ReadPermissions = {\n readonly [key in\n | HKCategoryTypeIdentifier\n | HKCharacteristicTypeIdentifier\n | HKQuantityTypeIdentifier]: boolean;\n};\n\nexport type HKCategorySampleRaw<\n T extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly categoryType: T;\n readonly startDate: string;\n readonly endDate: string;\n readonly value: HKCategoryValueForIdentifier;\n readonly metadata: MetadataMapperForCategoryIdentifier;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type DeletedCategorySampleRaw = {\n readonly uuid: string;\n readonly metadata: MetadataMapperForCategoryIdentifier;\n};\n\nexport type DeletedHeartbeatSeriesSampleRaw = {\n readonly uuid: string;\n readonly metadata: HKHeartbeatSeriesSampleMetadata;\n};\n\nexport type DeletedQuantitySampleRaw = {\n readonly uuid: string;\n readonly metadata: MetadataMapperForQuantityIdentifier;\n};\n\nexport type QueryCategorySamplesResponseRaw<\n T extends HKCategoryTypeIdentifier\n> = {\n readonly samples: readonly HKCategorySampleRaw[];\n readonly deletedSamples: readonly DeletedCategorySampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type QueryHeartbeatSeriesSamplesResponseRaw = {\n readonly samples: readonly HKHeartbeatSeriesSampleRaw[];\n readonly deletedSamples: readonly DeletedHeartbeatSeriesSampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type QueryQuantitySamplesResponseRaw<\n T extends HKQuantityTypeIdentifier\n> = {\n readonly samples: readonly HKQuantitySampleRaw[];\n readonly deletedSamples: readonly DeletedQuantitySampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type HKCorrelationRaw =\n {\n readonly correlationType: HKCorrelationTypeIdentifier;\n readonly objects: readonly (HKCategorySampleRaw | HKQuantitySampleRaw)[];\n readonly metadata: MetadataMapperForCorrelationIdentifier;\n readonly startDate: string;\n readonly endDate: string;\n };\n\ntype QueryId = string;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkupdatefrequency Apple Docs }\n */\nexport enum HKUpdateFrequency {\n immediate = 1,\n hourly = 2,\n daily = 3,\n weekly = 4,\n}\n\nexport type WorkoutLocation = {\n readonly longitude: number;\n readonly latitude: number;\n readonly altitude: number;\n readonly speed: number;\n readonly timestamp: number;\n readonly horizontalAccuracy: number;\n readonly speedAccuracy: number;\n readonly verticalAccuracy: number;\n readonly distance: number | null;\n};\n\nexport type WorkoutRoute = {\n readonly locations: readonly WorkoutLocation[];\n readonly HKMetadataKeySyncIdentifier?: string;\n readonly HKMetadataKeySyncVersion?: number;\n};\n\ntype ReactNativeHealthkitTypeNative = {\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable Apple Docs }\n */\n isHealthDataAvailable(): Promise;\n // Todo [>8]: Rename to align with Apple function name (isProtectedDataAvailable) - remember to rename native code :)\n canAccessProtectedData(): Promise;\n getBloodType(): Promise;\n getDateOfBirth(): Promise;\n getBiologicalSex(): Promise;\n getFitzpatrickSkinType(): Promise;\n readonly getWheelchairUse: () => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery Apple Docs }\n */\n readonly enableBackgroundDelivery: (\n typeIdentifier: HKSampleTypeIdentifier,\n updateFrequency: HKUpdateFrequency\n ) => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614177-disablebackgrounddelivery Apple Docs }\n */\n readonly disableBackgroundDelivery: (\n typeIdentifier: HKSampleTypeIdentifier\n ) => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614158-disableallbackgrounddelivery Apple Docs }\n */\n readonly disableAllBackgroundDelivery: () => Promise;\n\n readonly saveCorrelationSample: <\n TIdentifier extends HKCorrelationTypeIdentifier,\n TSamples extends readonly (\n | HKCategorySampleRawForSaving\n | HKQuantitySampleRawForSaving\n )[]\n >(\n typeIdentifier: TIdentifier,\n samples: TSamples,\n start: string,\n end: string,\n metadata: MetadataMapperForCorrelationIdentifier\n ) => Promise;\n\n readonly saveWorkoutSample: (\n typeIdentifier: HKWorkoutActivityType,\n quantities: readonly HKQuantitySampleRawForSaving[],\n start: string,\n end: string,\n totals: {\n readonly distance?: number;\n readonly energyBurned?: number;\n },\n metadata: HKWorkoutMetadata\n ) => Promise;\n\n readonly saveWorkoutRoute: (\n workoutUUID: string,\n locations: readonly CLLocationRawForSaving[]\n ) => Promise;\n\n readonly queryCorrelationSamples: <\n TIdentifier extends HKCorrelationTypeIdentifier\n >(\n typeIdentifier: TIdentifier,\n from: string,\n to: string\n ) => Promise[]>;\n\n subscribeToObserverQuery(\n identifier: HKSampleTypeIdentifier\n ): Promise;\n unsubscribeQuery(queryId: QueryId): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614154-authorizationstatus Apple Docs }\n */\n authorizationStatusFor(\n type: HealthkitReadAuthorization\n ): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/2994346-getrequeststatusforauthorization Apple Docs }\n */\n getRequestStatusForAuthorization(\n write: WritePermissions,\n read: ReadPermissions\n ): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorization Apple Docs }\n */\n requestAuthorization(\n write: WritePermissions,\n read: ReadPermissions\n ): Promise;\n readonly saveQuantitySample: <\n TType extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n >(\n identifier: TType,\n unit: TUnit,\n value: number,\n start: string,\n end: string,\n metadata: unknown\n ) => Promise;\n readonly deleteQuantitySample: (\n typeIdentifier: TIdentifier,\n uuid: string\n ) => Promise;\n readonly deleteSamples: (\n identifier: TIdentifier,\n start: string,\n end: string\n ) => Promise;\n readonly queryWorkoutSamples: <\n TEnergy extends EnergyUnit,\n TDistance extends LengthUnit\n >(\n energyUnit: TEnergy,\n distanceUnit: TDistance,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryCategorySamples: (\n identifier: T,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryQuantitySamples: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: TIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryCategorySamplesWithAnchor: (\n identifier: T,\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise>;\n readonly queryQuantitySamplesWithAnchor: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: TIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise>;\n readonly queryHeartbeatSeriesSamples: (\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise;\n readonly queryHeartbeatSeriesSamplesWithAnchor: (\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise;\n readonly querySources: <\n TIdentifier extends HKCategoryTypeIdentifier | HKQuantityTypeIdentifier\n >(\n identifier: TIdentifier\n ) => Promise;\n readonly saveCategorySample: (\n identifier: T,\n value: HKCategoryValueForIdentifier,\n start: string,\n end: string,\n metadata: unknown\n ) => Promise;\n readonly queryStatisticsForQuantity: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: HKQuantityTypeIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n options: readonly HKStatisticsOptions[]\n ) => Promise>;\n readonly getPreferredUnits: (\n identifiers: readonly HKQuantityTypeIdentifier[]\n ) => Promise;\n readonly getWorkoutRoutes: (\n workoutUUID: string\n ) => Promise;\n readonly getWorkoutPlanById: (workoutUUID: string) => Promise<{readonly id: string, readonly activityType: HKWorkoutActivityType} | null>;\n};\n\nconst Native = NativeModules.ReactNativeHealthkit as ReactNativeHealthkitTypeNative\n\ntype OnChangeCallback = ({\n typeIdentifier,\n}: {\n readonly typeIdentifier: HKSampleTypeIdentifier;\n}) => void;\n\ninterface HealthkitEventEmitter extends NativeEventEmitter {\n readonly addListener: (\n eventType: 'onChange',\n callback: OnChangeCallback\n ) => EmitterSubscription;\n}\n\nexport const EventEmitter = new NativeEventEmitter(\n NativeModules.ReactNativeHealthkit as NativeModule,\n) as HealthkitEventEmitter\n\nexport default Native\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAIA;AACA;AACA;AACA;AACO,MAAMC,uBAAuB,GAAG,yBAAkC;;AAEzE;AACA;AACA;AACA;AAHAC,OAAA,CAAAD,uBAAA,GAAAA,uBAAA;AAIO,M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AAlBA,kBAAkB;EAAlBA,kBAAkB,CAAlBA,kBAAkB;EAAA,OAAlBA,kBAAkB;AAAA;AAAAzC,OAAA,CAAAyC,kBAAA,GAAAA,kBAAA;AA6C9B;AAAA,IACYC,8BAA8B,0BAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAAA,OAA9BA,8BAA8B;AAAA,OAM6B;AAAA1C,OAAA,CAAA0C,8BAAA,GAAAA,8BAAA;AA8EvE;AACA;AACA;AAFA,IAGYC,iBAAiB,0BAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAAA3C,OAAA,CAAA2C,iBAAA,GAAAA,iBAAA;AAoO7B,MAAMC,MAAM,GAAGC,0BAAa,CAACC,oBAAsD;AAe5E,MAAMC,YAAY,GAAG,IAAIC,+BAAkB,CAChDH,0BAAa,CAACC,oBAChB,CAA0B;AAAA9C,OAAA,CAAA+C,YAAA,GAAAA,YAAA;AAAA,IAAAE,QAAA,GAEXL,MAAM;AAAA5C,OAAA,CAAAkD,OAAA,GAAAD,QAAA"} \ No newline at end of file diff --git a/lib/commonjs/utils/ensureTotals.js b/lib/commonjs/utils/ensureTotals.js new file mode 100644 index 0000000..d6a7f59 --- /dev/null +++ b/lib/commonjs/utils/ensureTotals.js @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; +function ensureTotals(totals) { + return totals || {}; +} +var _default = ensureTotals; +exports.default = _default; +//# sourceMappingURL=ensureTotals.js.map \ No newline at end of file diff --git a/lib/commonjs/utils/ensureTotals.js.map b/lib/commonjs/utils/ensureTotals.js.map new file mode 100644 index 0000000..5d6024c --- /dev/null +++ b/lib/commonjs/utils/ensureTotals.js.map @@ -0,0 +1 @@ +{"version":3,"names":["ensureTotals","totals","_default","exports","default"],"sources":["ensureTotals.ts"],"sourcesContent":["function ensureTotals(totals?: TTotals) {\n return totals || ({} as TTotals)\n}\n\nexport default ensureTotals\n"],"mappings":";;;;;;AAAA,SAASA,YAAYA,CAAUC,MAAgB,EAAE;EAC/C,OAAOA,MAAM,IAAK,CAAC,CAAa;AAClC;AAAC,IAAAC,QAAA,GAEcF,YAAY;AAAAG,OAAA,CAAAC,OAAA,GAAAF,QAAA"} \ No newline at end of file diff --git a/lib/commonjs/utils/saveWorkoutSample.js b/lib/commonjs/utils/saveWorkoutSample.js index eef7f66..ca2db24 100644 --- a/lib/commonjs/utils/saveWorkoutSample.js +++ b/lib/commonjs/utils/saveWorkoutSample.js @@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", { }); exports.default = void 0; var _ensureMetadata = _interopRequireDefault(require("./ensureMetadata")); +var _ensureTotals = _interopRequireDefault(require("./ensureTotals")); var _nativeTypes = _interopRequireDefault(require("../native-types")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } async function saveWorkoutSample(typeIdentifier, quantities, _start, options) { @@ -29,7 +30,7 @@ async function saveWorkoutSample(typeIdentifier, quantities, _start, options) { ...updatedQuantity, metadata: (0, _ensureMetadata.default)(quantity.metadata) }; - }), start, end, (0, _ensureMetadata.default)(options === null || options === void 0 ? void 0 : options.metadata)); + }), start, end, (0, _ensureTotals.default)(options === null || options === void 0 ? void 0 : options.totals), (0, _ensureMetadata.default)(options === null || options === void 0 ? void 0 : options.metadata)); } var _default = saveWorkoutSample; exports.default = _default; diff --git a/lib/commonjs/utils/saveWorkoutSample.js.map b/lib/commonjs/utils/saveWorkoutSample.js.map index 08c0a37..ebc8d55 100644 --- a/lib/commonjs/utils/saveWorkoutSample.js.map +++ b/lib/commonjs/utils/saveWorkoutSample.js.map @@ -1 +1 @@ -{"version":3,"names":["_ensureMetadata","_interopRequireDefault","require","_nativeTypes","obj","__esModule","default","saveWorkoutSample","typeIdentifier","quantities","_start","options","start","toISOString","end","Date","Native","map","quantity","startDate","endDate","rest","updatedQuantity","metadata","ensureMetadata","_default","exports"],"sources":["saveWorkoutSample.ts"],"sourcesContent":["import ensureMetadata from './ensureMetadata'\nimport Native from '../native-types'\n\nimport type { HKWorkoutActivityType, HKWorkoutMetadata } from '../native-types'\nimport type { HKQuantitySampleForSaving } from '../types'\n\nasync function saveWorkoutSample(\n typeIdentifier: TIdentifier,\n quantities: readonly HKQuantitySampleForSaving[],\n _start: Date,\n options?: {\n readonly end?: Date;\n readonly metadata?: HKWorkoutMetadata;\n },\n) {\n const start = _start.toISOString()\n const end = (options?.end || new Date()).toISOString()\n\n return Native.saveWorkoutSample(\n typeIdentifier,\n quantities.map((quantity) => {\n const { startDate, endDate, ...rest } = quantity\n const updatedQuantity = {\n ...rest,\n ...(startDate && { startDate: startDate.toISOString() }),\n ...(endDate && { endDate: endDate.toISOString() }),\n }\n return { ...updatedQuantity, metadata: ensureMetadata(quantity.metadata) }\n }),\n start,\n end,\n ensureMetadata(options?.metadata),\n )\n}\n\nexport default saveWorkoutSample\n"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAoC,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAKpC,eAAeG,iBAAiBA,CAC9BC,cAA2B,EAC3BC,UAAgD,EAChDC,MAAY,EACZC,OAGC,EACD;EACA,MAAMC,KAAK,GAAGF,MAAM,CAACG,WAAW,CAAC,CAAC;EAClC,MAAMC,GAAG,GAAG,CAAC,CAAAH,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEG,GAAG,KAAI,IAAIC,IAAI,CAAC,CAAC,EAAEF,WAAW,CAAC,CAAC;EAEtD,OAAOG,oBAAM,CAACT,iBAAiB,CAC7BC,cAAc,EACdC,UAAU,CAACQ,GAAG,CAAEC,QAAQ,IAAK;IAC3B,MAAM;MAAEC,SAAS;MAAEC,OAAO;MAAE,GAAGC;IAAK,CAAC,GAAGH,QAAQ;IAChD,MAAMI,eAAe,GAAG;MACtB,GAAGD,IAAI;MACP,IAAIF,SAAS,IAAI;QAAEA,SAAS,EAAEA,SAAS,CAACN,WAAW,CAAC;MAAE,CAAC,CAAC;MACxD,IAAIO,OAAO,IAAI;QAAEA,OAAO,EAAEA,OAAO,CAACP,WAAW,CAAC;MAAE,CAAC;IACnD,CAAC;IACD,OAAO;MAAE,GAAGS,eAAe;MAAEC,QAAQ,EAAE,IAAAC,uBAAc,EAACN,QAAQ,CAACK,QAAQ;IAAE,CAAC;EAC5E,CAAC,CAAC,EACFX,KAAK,EACLE,GAAG,EACH,IAAAU,uBAAc,EAACb,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEY,QAAQ,CAClC,CAAC;AACH;AAAC,IAAAE,QAAA,GAEclB,iBAAiB;AAAAmB,OAAA,CAAApB,OAAA,GAAAmB,QAAA"} \ No newline at end of file +{"version":3,"names":["_ensureMetadata","_interopRequireDefault","require","_ensureTotals","_nativeTypes","obj","__esModule","default","saveWorkoutSample","typeIdentifier","quantities","_start","options","start","toISOString","end","Date","Native","map","quantity","startDate","endDate","rest","updatedQuantity","metadata","ensureMetadata","ensureTotals","totals","_default","exports"],"sources":["saveWorkoutSample.ts"],"sourcesContent":["import ensureMetadata from './ensureMetadata'\nimport ensureTotals from './ensureTotals'\nimport Native from '../native-types'\n\nimport type { HKWorkoutActivityType, HKWorkoutMetadata } from '../native-types'\nimport type { HKQuantitySampleForSaving } from '../types'\n\nasync function saveWorkoutSample(\n typeIdentifier: TIdentifier,\n quantities: readonly HKQuantitySampleForSaving[],\n _start: Date,\n options?: {\n readonly end?: Date;\n readonly totals?: {\n readonly distance?: number;\n readonly energyBurned?: number;\n }\n readonly metadata?: HKWorkoutMetadata;\n },\n) {\n const start = _start.toISOString()\n const end = (options?.end || new Date()).toISOString()\n\n return Native.saveWorkoutSample(\n typeIdentifier,\n quantities.map((quantity) => {\n const { startDate, endDate, ...rest } = quantity\n const updatedQuantity = {\n ...rest,\n ...(startDate && { startDate: startDate.toISOString() }),\n ...(endDate && { endDate: endDate.toISOString() }),\n }\n return { ...updatedQuantity, metadata: ensureMetadata(quantity.metadata) }\n }),\n start,\n end,\n ensureTotals(options?.totals),\n ensureMetadata(options?.metadata),\n )\n}\n\nexport default saveWorkoutSample\n"],"mappings":";;;;;;AAAA,IAAAA,eAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,YAAA,GAAAH,sBAAA,CAAAC,OAAA;AAAoC,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAKpC,eAAeG,iBAAiBA,CAC9BC,cAA2B,EAC3BC,UAAgD,EAChDC,MAAY,EACZC,OAOC,EACD;EACA,MAAMC,KAAK,GAAGF,MAAM,CAACG,WAAW,CAAC,CAAC;EAClC,MAAMC,GAAG,GAAG,CAAC,CAAAH,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEG,GAAG,KAAI,IAAIC,IAAI,CAAC,CAAC,EAAEF,WAAW,CAAC,CAAC;EAEtD,OAAOG,oBAAM,CAACT,iBAAiB,CAC7BC,cAAc,EACdC,UAAU,CAACQ,GAAG,CAAEC,QAAQ,IAAK;IAC3B,MAAM;MAAEC,SAAS;MAAEC,OAAO;MAAE,GAAGC;IAAK,CAAC,GAAGH,QAAQ;IAChD,MAAMI,eAAe,GAAG;MACtB,GAAGD,IAAI;MACP,IAAIF,SAAS,IAAI;QAAEA,SAAS,EAAEA,SAAS,CAACN,WAAW,CAAC;MAAE,CAAC,CAAC;MACxD,IAAIO,OAAO,IAAI;QAAEA,OAAO,EAAEA,OAAO,CAACP,WAAW,CAAC;MAAE,CAAC;IACnD,CAAC;IACD,OAAO;MAAE,GAAGS,eAAe;MAAEC,QAAQ,EAAE,IAAAC,uBAAc,EAACN,QAAQ,CAACK,QAAQ;IAAE,CAAC;EAC5E,CAAC,CAAC,EACFX,KAAK,EACLE,GAAG,EACH,IAAAW,qBAAY,EAACd,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEe,MAAM,CAAC,EAC7B,IAAAF,uBAAc,EAACb,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEY,QAAQ,CAClC,CAAC;AACH;AAAC,IAAAI,QAAA,GAEcpB,iBAAiB;AAAAqB,OAAA,CAAAtB,OAAA,GAAAqB,QAAA"} \ No newline at end of file diff --git a/lib/module/native-types.js.map b/lib/module/native-types.js.map index dce3e80..cbabc9d 100644 --- a/lib/module/native-types.js.map +++ b/lib/module/native-types.js.map @@ -1 +1 @@ -{"version":3,"names":["NativeEventEmitter","NativeModules","HKWorkoutTypeIdentifier","HKActivitySummaryTypeIdentifier","HKAudiogramTypeIdentifier","HKWorkoutRouteTypeIdentifier","HKQuantityTypeIdentifier","HKCategoryValueLowCardioFitnessEvent","HKHeartRateMotionContext","HKCorrelationTypeIdentifier","HKCategoryTypeIdentifier","HKCategoryValueAppleStandHour","HKWorkoutActivityType","HKWeatherCondition","HKIndoorWorkout","HKAuthorizationRequestStatus","HKAuthorizationStatus","HKBloodType","HKBiologicalSex","HKFitzpatrickSkinType","HKStatisticsOptions","HKCategoryValueCervicalMucusQuality","HKCategoryValueMenstrualFlow","HKCategoryValueOvulationTestResult","HKCategoryValueSleepAnalysis","HKCategoryValueAppetiteChanges","HKCategoryValuePresence","HKCategoryValueSeverity","HKCategoryValueNotApplicable","HKInsulinDeliveryReason","HKCategoryValuePregnancyTestResult","HKWheelchairUse","HKMetricPrefix","HKUnitMetric","HKUnits","UnitOfLength","UnitOfVolume","UnitOfMass","UnitOfPressure","UnitOfTime","TemperatureUnit","UnitOfEnergy","BloodGlucoseUnit","HKWorkoutEventType","HKCharacteristicTypeIdentifier","HKUpdateFrequency","Native","ReactNativeHealthkit","EventEmitter"],"sources":["native-types.ts"],"sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native'\n\nimport type { EmitterSubscription, NativeModule } from 'react-native'\n\n/**\n * Represents a workout type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkworkouttypeidentifier Apple Docs HKWorkoutTypeIdentifier}\n */\nexport const HKWorkoutTypeIdentifier = 'HKWorkoutTypeIdentifier' as const\n\n/**\n * Represents a type that identifies activity summary objects.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}\n */\nexport const HKActivitySummaryTypeIdentifier = 'HKActivitySummaryTypeIdentifier' as const\n\n/**\n * Represents an audiogram type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}\n */\nexport const HKAudiogramTypeIdentifier = 'HKAudiogramSampleType' as const\n\n/**\n * Represents a workout route type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutroutetypeidentifier Apple Docs HKWorkoutRouteTypeIdentifier}\n */\nexport const HKWorkoutRouteTypeIdentifier = 'HKWorkoutRouteTypeIdentifier' as const\n\n/**\n * Represents a series sample containing heartbeat data..\n * @see {@link https://developer.apple.com/documentation/healthkit/HKDataTypeIdentifierHeartbeatSeries Apple Docs HKDataTypeIdentifierHeartbeatSeries}\n */\nexport declare const HKDataTypeIdentifierHeartbeatSeries: 'HKDataTypeIdentifierHeartbeatSeries'\n\n/**\n * Represents a quantity type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier Apple Docs HKQuantityTypeIdentifier}\n */\nexport enum HKQuantityTypeIdentifier {\n /**\n * Body Mass Index\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymassindex Apple Docs HKQuantityTypeIdentifierBodyMassIndex}\n */\n bodyMassIndex = 'HKQuantityTypeIdentifierBodyMassIndex',\n\n /**\n * Body Fat Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodyfatpercentage Apple Docs HKQuantityTypeIdentifierBodyFatPercentage}\n */\n bodyFatPercentage = 'HKQuantityTypeIdentifierBodyFatPercentage',\n\n /**\n * Height\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheight Apple Docs HKQuantityTypeIdentifierHeight}\n */\n height = 'HKQuantityTypeIdentifierHeight',\n\n /**\n * Body Mass\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymass Apple Docs HKQuantityTypeIdentifierBodyMass}\n */\n bodyMass = 'HKQuantityTypeIdentifierBodyMass',\n\n /**\n * Lean Body Mass\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierleanbodymass Apple Docs HKQuantityTypeIdentifierLeanBodyMass}\n */\n leanBodyMass = 'HKQuantityTypeIdentifierLeanBodyMass',\n\n /**\n * Waist Circumference\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwaistcircumference Apple Docs HKQuantityTypeIdentifierWaistCircumference}\n */\n waistCircumference = 'HKQuantityTypeIdentifierWaistCircumference',\n\n /**\n * Step Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstepcount Apple Docs HKQuantityTypeIdentifierStepCount}\n */\n stepCount = 'HKQuantityTypeIdentifierStepCount',\n\n /**\n * Distance Walking Running\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewalkingrunning Apple Docs HKQuantityTypeIdentifierDistanceWalkingRunning}\n */\n distanceWalkingRunning = 'HKQuantityTypeIdentifierDistanceWalkingRunning',\n\n /**\n * Distance Cycling\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancecycling Apple Docs HKQuantityTypeIdentifierDistanceCycling}\n */\n distanceCycling = 'HKQuantityTypeIdentifierDistanceCycling',\n\n /**\n * Distance Wheelchair\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewheelchair Apple Docs HKQuantityTypeIdentifierDistanceWheelchair}\n */\n distanceWheelchair = 'HKQuantityTypeIdentifierDistanceWheelchair',\n /**\n * Basal Energy Burned\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalenergyburned Apple Docs HKQuantityTypeIdentifierBasalEnergyBurned}\n */\n basalEnergyBurned = 'HKQuantityTypeIdentifierBasalEnergyBurned', // Energy, Cumulative\n /**\n * Active Energy Burned\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieractiveenergyburned Apple Docs HKQuantityTypeIdentifierActiveEnergyBurned}\n */\n activeEnergyBurned = 'HKQuantityTypeIdentifierActiveEnergyBurned', // Energy, Cumulative\n /**\n * Flights Climbed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierflightsclimbed Apple Docs HKQuantityTypeIdentifierFlightsClimbed}\n */\n flightsClimbed = 'HKQuantityTypeIdentifierFlightsClimbed', // Scalar(Count), Cumulative\n /**\n * Nike Fuel\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernikefuel Apple Docs HKQuantityTypeIdentifierNikeFuel}\n */\n nikeFuel = 'HKQuantityTypeIdentifierNikeFuel', // Scalar(Count), Cumulative\n /**\n * Apple Exercise Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierappleexercisetime Apple Docs HKQuantityTypeIdentifierAppleExerciseTime}\n */\n appleExerciseTime = 'HKQuantityTypeIdentifierAppleExerciseTime', // Time Cumulative\n /**\n * Push Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpushcount Apple Docs HKQuantityTypeIdentifierPushCount}\n */\n pushCount = 'HKQuantityTypeIdentifierPushCount', // Scalar(Count), Cumulative\n /**\n * Distance Swimming\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistanceswimming Apple Docs HKQuantityTypeIdentifierDistanceSwimming}\n */\n distanceSwimming = 'HKQuantityTypeIdentifierDistanceSwimming', // Length, Cumulative\n /**\n * Swimming Stroke Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierswimmingstrokecount Apple Docs HKQuantityTypeIdentifierSwimmingStrokeCount}\n */\n swimmingStrokeCount = 'HKQuantityTypeIdentifierSwimmingStrokeCount', // Scalar(Count), Cumulative\n /**\n * VO2 Max\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiervo2max Apple Docs HKQuantityTypeIdentifierVO2Max}\n */\n vo2Max = 'HKQuantityTypeIdentifierVO2Max', // ml/(kg*min) Discrete\n /**\n * Distance Downhill Snow Sports\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancedownhillsnowsports Apple Docs HKQuantityTypeIdentifierDistanceDownhillSnowSports}\n */\n distanceDownhillSnowSports = 'HKQuantityTypeIdentifierDistanceDownhillSnowSports', // Length, Cumulative\n\n /**\n * Apple Stand Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplestandtime Apple Docs HKQuantityTypeIdentifierAppleStandTime}\n */\n appleStandTime = 'HKQuantityTypeIdentifierAppleStandTime', // Time, Cumulative\n // Vitals\n /**\n * Heart Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartrate Apple Docs HKQuantityTypeIdentifierHeartRate}\n */\n heartRate = 'HKQuantityTypeIdentifierHeartRate', // Scalar(Count)/Time, Discrete\n /**\n * Body Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodytemperature Apple Docs HKQuantityTypeIdentifierBodyTemperature}\n */\n bodyTemperature = 'HKQuantityTypeIdentifierBodyTemperature', // Temperature, Discrete\n /**\n * Basal Body Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalbodytemperature Apple Docs HKQuantityTypeIdentifierBasalBodyTemperature}\n */\n basalBodyTemperature = 'HKQuantityTypeIdentifierBasalBodyTemperature', // Basal Body Temperature, Discrete\n /**\n * Blood Pressure Systolic\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressuresystolic Apple Docs HKQuantityTypeIdentifierBloodPressureSystolic}\n */\n bloodPressureSystolic = 'HKQuantityTypeIdentifierBloodPressureSystolic', // Pressure, Discrete\n /**\n * Blood Pressure Diastolic\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressurediastolic Apple Docs HKQuantityTypeIdentifierBloodPressureDiastolic}\n */\n bloodPressureDiastolic = 'HKQuantityTypeIdentifierBloodPressureDiastolic', // Pressure, Discrete\n /**\n * Respiratory Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrespiratoryrate Apple Docs HKQuantityTypeIdentifierRespiratoryRate}\n */\n respiratoryRate = 'HKQuantityTypeIdentifierRespiratoryRate', // Scalar(Count)/Time, Discrete\n /**\n * Resting Heart Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrestingheartrate Apple Docs HKQuantityTypeIdentifierRestingHeartRate}\n */\n restingHeartRate = 'HKQuantityTypeIdentifierRestingHeartRate', // Scalar(Count)/Time, Discrete\n /**\n * Walking Heart Rate Average\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingheartrateaverage Apple Docs HKQuantityTypeIdentifierWalkingHeartRateAverage}\n * @since iOS 11.0\n */\n walkingHeartRateAverage = 'HKQuantityTypeIdentifierWalkingHeartRateAverage', // Scalar(Count)/Time, Discrete\n /**\n * Heart Rate Variability SDNN\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartratevariabilitysdnn Apple Docs HKQuantityTypeIdentifierHeartRateVariabilitySDNN}\n * @since iOS 11.0\n */\n heartRateVariabilitySDNN = 'HKQuantityTypeIdentifierHeartRateVariabilitySDNN', // Time (ms), Discrete\n /**\n * Oxygen Saturation\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieroxygensaturation Apple Docs HKQuantityTypeIdentifierOxygenSaturation}\n * @since iOS 8.0\n */\n oxygenSaturation = 'HKQuantityTypeIdentifierOxygenSaturation',\n /**\n * Peripheral Perfusion Index\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierperipheralperfusionindex Apple Docs HKQuantityTypeIdentifierPeripheralPerfusionIndex}\n * @since iOS 8.0\n */\n peripheralPerfusionIndex = 'HKQuantityTypeIdentifierPeripheralPerfusionIndex', // Scalar(Percent, 0.0 - 1.0), Discrete\n /**\n * Blood Glucose\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodglucose Apple Docs HKQuantityTypeIdentifierBloodGlucose}\n */\n bloodGlucose = 'HKQuantityTypeIdentifierBloodGlucose',\n\n /**\n * Number Of Times Fallen\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberoftimesfallen Apple Docs HKQuantityTypeIdentifierNumberOfTimesFallen}\n */\n numberOfTimesFallen = 'HKQuantityTypeIdentifierNumberOfTimesFallen',\n\n /**\n * Electrodermal Activity\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierelectrodermalactivity Apple Docs HKQuantityTypeIdentifierElectrodermalActivity}\n */\n electrodermalActivity = 'HKQuantityTypeIdentifierElectrodermalActivity',\n\n /**\n * Inhaler Usage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinhalerusage Apple Docs HKQuantityTypeIdentifierInhalerUsage}\n * @since iOS 8\n */\n inhalerUsage = 'HKQuantityTypeIdentifierInhalerUsage',\n\n /**\n * Insulin Delivery\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinsulindelivery Apple Docs HKQuantityTypeIdentifierInsulinDelivery}\n * @since iOS 11\n */\n insulinDelivery = 'HKQuantityTypeIdentifierInsulinDelivery',\n\n /**\n * Blood Alcohol Content\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodalcoholcontent Apple Docs HKQuantityTypeIdentifierBloodAlcoholContent}\n * @since iOS 8\n */\n bloodAlcoholContent = 'HKQuantityTypeIdentifierBloodAlcoholContent',\n\n /**\n * Forced Vital Capacity\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedvitalcapacity Apple Docs HKQuantityTypeIdentifierForcedVitalCapacity}\n */\n forcedVitalCapacity = 'HKQuantityTypeIdentifierForcedVitalCapacity',\n\n /**\n * Forced Expiratory Volume1\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedexpiratoryvolume1 Apple Docs HKQuantityTypeIdentifierForcedExpiratoryVolume1}\n * @since iOS 8\n */\n forcedExpiratoryVolume1 = 'HKQuantityTypeIdentifierForcedExpiratoryVolume1',\n\n /**\n * Peak Expiratory Flow Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpeakexpiratoryflowrate Apple Docs HKQuantityTypeIdentifierPeakExpiratoryFlowRate}\n * @since iOS 8\n */\n peakExpiratoryFlowRate = 'HKQuantityTypeIdentifierPeakExpiratoryFlowRate',\n\n /**\n * Environmental Audio Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalaudioexposure Apple Docs HKQuantityTypeIdentifierEnvironmentalAudioExposure}\n * @since iOS 13\n */\n environmentalAudioExposure = 'HKQuantityTypeIdentifierEnvironmentalAudioExposure',\n\n /**\n * Headphone Audio Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheadphoneaudioexposure Apple Docs HKQuantityTypeIdentifierHeadphoneAudioExposure}\n * @since iOS 13\n */\n headphoneAudioExposure = 'HKQuantityTypeIdentifierHeadphoneAudioExposure', // Pressure, Cumulative\n\n // Nutrition\n /**\n * Dietary Fat Total\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfattotal Apple Docs HKQuantityTypeIdentifierDietaryFatTotal}\n * @since iOS 8\n */\n dietaryFatTotal = 'HKQuantityTypeIdentifierDietaryFatTotal', // Mass, Cumulative\n\n /**\n * Dietary Fat Polyunsaturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatpolyunsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatPolyunsaturated}\n */\n dietaryFatPolyunsaturated = 'HKQuantityTypeIdentifierDietaryFatPolyunsaturated', // Mass, Cumulative\n\n /**\n * Dietary Fat Monounsaturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatmonounsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatMonounsaturated}\n */\n dietaryFatMonounsaturated = 'HKQuantityTypeIdentifierDietaryFatMonounsaturated', // Mass, Cumulative\n /**\n * Dietary Fat Saturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatSaturated}\n */\n dietaryFatSaturated = 'HKQuantityTypeIdentifierDietaryFatSaturated', // Mass, Cumulative\n\n /**\n * Dietary Cholesterol\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycholesterol Apple Docs HKQuantityTypeIdentifierDietaryCholesterol}\n */\n dietaryCholesterol = 'HKQuantityTypeIdentifierDietaryCholesterol', // Mass, Cumulative\n\n /**\n * Dietary Sodium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysodium Apple Docs HKQuantityTypeIdentifierDietarySodium}\n */\n dietarySodium = 'HKQuantityTypeIdentifierDietarySodium', // Mass, Cumulative\n\n /**\n * Dietary Carbohydrates\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycarbohydrates Apple Docs HKQuantityTypeIdentifierDietaryCarbohydrates}\n */\n dietaryCarbohydrates = 'HKQuantityTypeIdentifierDietaryCarbohydrates', // Mass, Cumulative\n\n /**\n * Dietary Fiber\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfiber Apple Docs HKQuantityTypeIdentifierDietaryFiber}\n */\n dietaryFiber = 'HKQuantityTypeIdentifierDietaryFiber', // Mass, Cumulative\n /**\n * Dietary Sugar\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysugar Apple Docs HKQuantityTypeIdentifierDietarySugar}\n */\n dietarySugar = 'HKQuantityTypeIdentifierDietarySugar', // Mass, Cumulative\n\n /**\n * Dietary Energy Consumed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryenergyconsumed Apple Docs HKQuantityTypeIdentifierDietaryEnergyConsumed}\n */\n dietaryEnergyConsumed = 'HKQuantityTypeIdentifierDietaryEnergyConsumed', // Energy, Cumulative\n\n /**\n * Dietary Protein\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryprotein Apple Docs HKQuantityTypeIdentifierDietaryProtein}\n */\n dietaryProtein = 'HKQuantityTypeIdentifierDietaryProtein', // Mass, Cumulative\n\n /**\n * Dietary Vitamin A\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamina Apple Docs HKQuantityTypeIdentifierDietaryVitaminA}\n */\n dietaryVitaminA = 'HKQuantityTypeIdentifierDietaryVitaminA', // Mass, Cumulative\n\n /**\n * Dietary Vitamin B6\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb6 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB6}\n */\n dietaryVitaminB6 = 'HKQuantityTypeIdentifierDietaryVitaminB6', // Mass, Cumulative\n\n /**\n * Dietary Vitamin B12\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb12 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB12}\n */\n dietaryVitaminB12 = 'HKQuantityTypeIdentifierDietaryVitaminB12', // Mass, Cumulative\n\n /**\n * Dietary Vitamin C\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminc Apple Docs HKQuantityTypeIdentifierDietaryVitaminC}\n */\n dietaryVitaminC = 'HKQuantityTypeIdentifierDietaryVitaminC', // Mass, Cumulative\n\n /**\n * Dietary Vitamin D\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamind Apple Docs HKQuantityTypeIdentifierDietaryVitaminD}\n */\n dietaryVitaminD = 'HKQuantityTypeIdentifierDietaryVitaminD', // Mass, Cumulative\n\n /**\n * Dietary Vitamin E\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamine Apple Docs HKQuantityTypeIdentifierDietaryVitaminE}\n */\n dietaryVitaminE = 'HKQuantityTypeIdentifierDietaryVitaminE', // Mass, Cumulative\n\n /**\n * Dietary Vitamin K\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamink Apple Docs HKQuantityTypeIdentifierDietaryVitaminK}\n */\n dietaryVitaminK = 'HKQuantityTypeIdentifierDietaryVitaminK', // Mass, Cumulative\n /**\n * Dietary Calcium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycalcium Apple Docs HKQuantityTypeIdentifierDietaryCalcium}\n */\n dietaryCalcium = 'HKQuantityTypeIdentifierDietaryCalcium', // Mass, Cumulative\n\n /**\n * Dietary Iron\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiron Apple Docs HKQuantityTypeIdentifierDietaryIron}\n */\n dietaryIron = 'HKQuantityTypeIdentifierDietaryIron', // Mass, Cumulative\n\n /**\n * Dietary Thiamin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarythiamin Apple Docs HKQuantityTypeIdentifierDietaryThiamin}\n */\n dietaryThiamin = 'HKQuantityTypeIdentifierDietaryThiamin', // Mass, Cumulative\n\n /**\n * Dietary Riboflavin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryriboflavin Apple Docs HKQuantityTypeIdentifierDietaryRiboflavin}\n */\n dietaryRiboflavin = 'HKQuantityTypeIdentifierDietaryRiboflavin', // Mass, Cumulative\n\n /**\n * Dietary Niacin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryniacin Apple Docs HKQuantityTypeIdentifierDietaryNiacin}\n */\n dietaryNiacin = 'HKQuantityTypeIdentifierDietaryNiacin', // Mass, Cumulative\n\n /**\n * Dietary Folate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfolate Apple Docs HKQuantityTypeIdentifierDietaryFolate}\n */\n dietaryFolate = 'HKQuantityTypeIdentifierDietaryFolate', // Mass, Cumulative\n\n /**\n * Dietary Biotin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarybiotin Apple Docs HKQuantityTypeIdentifierDietaryBiotin}\n */\n dietaryBiotin = 'HKQuantityTypeIdentifierDietaryBiotin', // Mass, Cumulative\n\n /**\n * Dietary Pantothenic Acid\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypantothenicacid Apple Docs HKQuantityTypeIdentifierDietaryPantothenicAcid}\n */\n dietaryPantothenicAcid = 'HKQuantityTypeIdentifierDietaryPantothenicAcid', // Mass, Cumulative\n\n /**\n * Dietary Phosphorus\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryphosphorus Apple Docs HKQuantityTypeIdentifierDietaryPhosphorus}\n */\n dietaryPhosphorus = 'HKQuantityTypeIdentifierDietaryPhosphorus', // Mass, Cumulative\n\n /**\n * Dietary Iodine\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiodine Apple Docs HKQuantityTypeIdentifierDietaryIodine}\n */\n dietaryIodine = 'HKQuantityTypeIdentifierDietaryIodine', // Mass, Cumulative\n /**\n * Dietary Magnesium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymagnesium Apple Docs HKQuantityTypeIdentifierDietaryMagnesium}\n */\n dietaryMagnesium = 'HKQuantityTypeIdentifierDietaryMagnesium', // Mass, Cumulative\n\n /**\n * Dietary Zinc\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryzinc Apple Docs HKQuantityTypeIdentifierDietaryZinc}\n */\n dietaryZinc = 'HKQuantityTypeIdentifierDietaryZinc', // Mass, Cumulative\n\n /**\n * Dietary Selenium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryselenium Apple Docs HKQuantityTypeIdentifierDietarySelenium}\n */\n dietarySelenium = 'HKQuantityTypeIdentifierDietarySelenium', // Mass, Cumulative\n\n /**\n * Dietary Copper\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycopper Apple Docs HKQuantityTypeIdentifierDietaryCopper}\n */\n dietaryCopper = 'HKQuantityTypeIdentifierDietaryCopper', // Mass, Cumulative\n\n /**\n * Dietary Manganese\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymanganese Apple Docs HKQuantityTypeIdentifierDietaryManganese}\n */\n dietaryManganese = 'HKQuantityTypeIdentifierDietaryManganese', // Mass, Cumulative\n\n /**\n * Dietary Chromium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychromium Apple Docs HKQuantityTypeIdentifierDietaryChromium}\n */\n dietaryChromium = 'HKQuantityTypeIdentifierDietaryChromium', // Mass, Cumulative\n\n /**\n * Dietary Molybdenum\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymolybdenum Apple Docs HKQuantityTypeIdentifierDietaryMolybdenum}\n */\n dietaryMolybdenum = 'HKQuantityTypeIdentifierDietaryMolybdenum', // Mass, Cumulative\n\n /**\n * Dietary Chloride\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychloride Apple Docs HKQuantityTypeIdentifierDietaryChloride}\n * @since iOS 8\n */\n dietaryChloride = 'HKQuantityTypeIdentifierDietaryChloride', // Mass, Cumulative\n\n /**\n * Dietary Potassium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypotassium Apple Docs HKQuantityTypeIdentifierDietaryPotassium}\n * @since iOS 8\n */\n dietaryPotassium = 'HKQuantityTypeIdentifierDietaryPotassium', // Mass, Cumulative\n\n /**\n * Dietary Caffeine\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycaffeine Apple Docs HKQuantityTypeIdentifierDietaryCaffeine}\n * @since iOS 8\n */\n dietaryCaffeine = 'HKQuantityTypeIdentifierDietaryCaffeine', // Mass, Cumulative\n\n /**\n * Dietary Water\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarywater Apple Docs HKQuantityTypeIdentifierDietaryWater}\n * @since iOS 9\n */\n dietaryWater = 'HKQuantityTypeIdentifierDietaryWater', // Volume, Cumulative\n\n // Mobility\n /**\n * Six Minute Walk Test Distance\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiersixminutewalktestdistance Apple Docs HKQuantityTypeIdentifierSixMinuteWalkTestDistance}\n * @since iOS 14\n */\n sixMinuteWalkTestDistance = 'HKQuantityTypeIdentifierSixMinuteWalkTestDistance',\n\n /**\n * Walking Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingspeed Apple Docs HKQuantityTypeIdentifierWalkingSpeed}\n * @since iOS 14\n */\n walkingSpeed = 'HKQuantityTypeIdentifierWalkingSpeed',\n\n /**\n * Walking Step Length\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingsteplength Apple Docs HKQuantityTypeIdentifierWalkingStepLength}\n * @since iOS 14\n */\n walkingStepLength = 'HKQuantityTypeIdentifierWalkingStepLength',\n\n /**\n * Walking Asymmetry Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingasymmetrypercentage Apple Docs HKQuantityTypeIdentifierWalkingAsymmetryPercentage}\n * @since iOS 14\n */\n walkingAsymmetryPercentage = 'HKQuantityTypeIdentifierWalkingAsymmetryPercentage',\n\n /**\n * Walking Double Support Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingdoublesupportpercentage Apple Docs HKQuantityTypeIdentifierWalkingDoubleSupportPercentage}\n * @since iOS 14\n */\n walkingDoubleSupportPercentage = 'HKQuantityTypeIdentifierWalkingDoubleSupportPercentage',\n\n /**\n * Stair Ascent Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairascentspeed Apple Docs HKQuantityTypeIdentifierStairAscentSpeed}\n * @since iOS 14\n */\n stairAscentSpeed = 'HKQuantityTypeIdentifierStairAscentSpeed',\n\n /**\n * Stair Descent Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairdescentspeed Apple Docs HKQuantityTypeIdentifierStairDescentSpeed}\n * @since iOS 14\n */\n stairDescentSpeed = 'HKQuantityTypeIdentifierStairDescentSpeed',\n\n /**\n * UV Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieruvexposure Apple Docs HKQuantityTypeIdentifierUVExposure}\n * @since iOS 9\n */\n uvExposure = 'HKQuantityTypeIdentifierUVExposure', // Scalar (Count), Discrete\n\n /**\n * Apple Move Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplemovetime Apple Docs HKQuantityTypeIdentifierAppleMoveTime}\n * @since iOS 14.5\n */\n appleMoveTime = 'HKQuantityTypeIdentifierAppleMoveTime', // Time, Cumulative\n\n /**\n * Apple Walking Steadiness\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplewalkingsteadiness Apple Docs HKQuantityTypeIdentifierAppleWalkingSteadiness}\n * @since iOS 15\n */\n appleWalkingSteadiness = 'HKQuantityTypeIdentifierAppleWalkingSteadiness', // Scalar(Percent, 0.0 - 1.0), Discrete\n\n /**\n * Number Of Alcoholic Beverages\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberofalcoholicbeverages Apple Docs HKQuantityTypeIdentifierNumberOfAlcoholicBeverages}\n * @since iOS 15\n */\n numberOfAlcoholicBeverages = 'HKQuantityTypeIdentifierNumberOfAlcoholicBeverages', // Scalar(Count), Cumulative\n\n /**\n * Atrial Fibrillation Burden\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieratrialfibrillationburden Apple Docs HKQuantityTypeIdentifierAtrialFibrillationBurden}\n * @since iOS 16\n */\n atrialFibrillationBurden = 'HKQuantityTypeIdentifierAtrialFibrillationBurden', // Scalar(Percent, 0.0 - 1.0), Discrete\n\n /**\n * Underwater Depth\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierunderwaterdepth Apple Docs HKQuantityTypeIdentifierUnderwaterDepth}\n * @since iOS 16\n */\n underwaterDepth = 'HKQuantityTypeIdentifierUnderwaterDepth', // Length, Discrete\n\n /**\n * Water Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwatertemperature Apple Docs HKQuantityTypeIdentifierWaterTemperature}\n * @since iOS 16\n */\n waterTemperature = 'HKQuantityTypeIdentifierWaterTemperature', // Temperature, Discrete\n\n /**\n * Apple Sleeping Wrist Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplesleepingwristtemperature Apple Docs HKQuantityTypeIdentifierAppleSleepingWristTemperature}\n * @since iOS 17\n */\n appleSleepingWristTemperature = 'HKQuantityTypeIdentifierAppleSleepingWristTemperature', // Temperature, Discrete\n\n /**\n * Time In Daylight\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiertimeindaylight Apple Docs HKQuantityTypeIdentifierTimeInDaylight}\n * @since iOS 17\n */\n timeInDaylight = 'HKQuantityTypeIdentifierTimeInDaylight', // Time, Cumulative\n\n /**\n * Physical Effort\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierphysicaleffort Apple Docs HKQuantityTypeIdentifierPhysicalEffort}\n * @since iOS 17\n */\n physicalEffort = 'HKQuantityTypeIdentifierPhysicalEffort', // Scalar (Percent, 0.0 - 1.0), Discrete\n\n /**\n * Cycling Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingspeed Apple Docs HKQuantityTypeIdentifierCyclingSpeed}\n * @since iOS 17\n */\n cyclingSpeed = 'HKQuantityTypeIdentifierCyclingSpeed',\n\n /**\n * Cycling Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingpower Apple Docs HKQuantityTypeIdentifierCyclingPower}\n * @since iOS 17\n */\n cyclingPower = 'HKQuantityTypeIdentifierCyclingPower',\n\n /**\n * Cycling Functional Threshold Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingfunctionalthresholdpower Apple Docs HKQuantityTypeIdentifierCyclingFunctionalThresholdPower}\n * @since iOS 17\n */\n cyclingFunctionalThresholdPower = 'HKQuantityTypeIdentifierCyclingFunctionalThresholdPower',\n\n /**\n * Cycling Cadence\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingcadence Apple Docs HKQuantityTypeIdentifierCyclingCadence}\n * @since iOS 17\n */\n cyclingCadence = 'HKQuantityTypeIdentifierCyclingCadence',\n\n /**\n * Environmental Sound Reduction\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalsoundreduction Apple Docs HKQuantityTypeIdentifierEnvironmentalSoundReduction}\n * @since iOS 16\n */\n environmentalSoundReduction = 'HKQuantityTypeIdentifierEnvironmentalSoundReduction',\n\n /**\n * Heart Rate Recovery One Minute\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartraterecoveryoneminute Apple Docs HKQuantityTypeIdentifierHeartRateRecoveryOneMinute}\n * @since iOS 16\n */\n heartRateRecoveryOneMinute = 'HKQuantityTypeIdentifierHeartRateRecoveryOneMinute',\n\n /**\n * Running Ground Contact Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunninggroundcontacttime Apple Docs HKQuantityTypeIdentifierRunningGroundContactTime}\n * @since iOS 16\n */\n runningGroundContactTime = 'HKQuantityTypeIdentifierRunningGroundContactTime',\n\n /**\n * Running Stride Length\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningstridelength Apple Docs HKQuantityTypeIdentifierRunningStrideLength}\n * @since iOS 16\n */\n runningStrideLength = 'HKQuantityTypeIdentifierRunningStrideLength',\n\n /**\n * Running Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningpower Apple Docs HKQuantityTypeIdentifierRunningPower}\n * @since iOS 16\n */\n runningPower = 'HKQuantityTypeIdentifierRunningPower',\n\n /**\n * Running Vertical Oscillation\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningverticaloscillation Apple Docs HKQuantityTypeIdentifierRunningVerticalOscillation}\n * @since iOS 16\n */\n runningVerticalOscillation = 'HKQuantityTypeIdentifierRunningVerticalOscillation',\n\n /**\n * Running Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningspeed Apple Docs HKQuantityTypeIdentifierRunningSpeed}\n * @since iOS 16\n */\n runningSpeed = 'HKQuantityTypeIdentifierRunningSpeed',\n}\n\nexport type TypeToUnitMapping = {\n readonly [key in HKQuantityTypeIdentifier]: HKUnit;\n};\n\nexport enum HKCategoryValueLowCardioFitnessEvent {\n lowFitness = 1,\n}\n\nexport enum HKHeartRateMotionContext {\n active = 2,\n notSet = 0,\n sedentary = 1,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcorrelationtypeidentifier Apple Docs }\n */\nexport enum HKCorrelationTypeIdentifier {\n bloodPressure = 'HKCorrelationTypeIdentifierBloodPressure',\n food = 'HKCorrelationTypeIdentifierFood',\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier Apple Docs }\n */\nexport enum HKCategoryTypeIdentifier {\n sleepAnalysis = 'HKCategoryTypeIdentifierSleepAnalysis',\n appleStandHour = 'HKCategoryTypeIdentifierAppleStandHour',\n cervicalMucusQuality = 'HKCategoryTypeIdentifierCervicalMucusQuality',\n ovulationTestResult = 'HKCategoryTypeIdentifierOvulationTestResult',\n menstrualFlow = 'HKCategoryTypeIdentifierMenstrualFlow',\n intermenstrualBleeding = 'HKCategoryTypeIdentifierIntermenstrualBleeding',\n sexualActivity = 'HKCategoryTypeIdentifierSexualActivity',\n mindfulSession = 'HKCategoryTypeIdentifierMindfulSession',\n highHeartRateEvent = 'HKCategoryTypeIdentifierHighHeartRateEvent',\n lowHeartRateEvent = 'HKCategoryTypeIdentifierLowHeartRateEvent',\n irregularHeartRhythmEvent = 'HKCategoryTypeIdentifierIrregularHeartRhythmEvent',\n /**\n * @deprecated Use environmentalAudioExposureEvent instead.\n */\n audioExposureEvent = 'HKCategoryTypeIdentifierAudioExposureEvent',\n toothbrushingEvent = 'HKCategoryTypeIdentifierToothbrushingEvent',\n lowCardioFitnessEvent = 'HKCategoryTypeIdentifierLowCardioFitnessEvent',\n contraceptive = 'HKCategoryTypeIdentifierContraceptive',\n lactation = 'HKCategoryTypeIdentifierLactation',\n pregnancy = 'HKCategoryTypeIdentifierPregnancy',\n pregnancyTestResult = 'HKCategoryTypeIdentifierPregnancyTestResult',\n progesteroneTestResult = 'HKCategoryTypeIdentifierProgesteroneTestResult',\n environmentalAudioExposureEvent = 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent',\n headphoneAudioExposureEvent = 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent',\n appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',\n handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue\n\n // Symptoms\n abdominalCramps = 'HKCategoryTypeIdentifierAbdominalCramps', // HKCategoryValueSeverity\n acne = 'HKCategoryTypeIdentifierAcne', // HKCategoryValueSeverity\n appetiteChanges = 'HKCategoryTypeIdentifierAppetiteChanges', // HKCategoryValueAppetiteChanges\n bladderIncontinence = 'HKCategoryTypeIdentifierBladderIncontinence', // HKCategoryValueSeverity\n bloating = 'HKCategoryTypeIdentifierBloating', // HKCategoryValueSeverity\n breastPain = 'HKCategoryTypeIdentifierBreastPain', // HKCategoryValueSeverity\n chestTightnessOrPain = 'HKCategoryTypeIdentifierChestTightnessOrPain', // HKCategoryValueSeverity\n chills = 'HKCategoryTypeIdentifierChills', // HKCategoryValueSeverity\n constipation = 'HKCategoryTypeIdentifierConstipation', // HKCategoryValueSeverity\n coughing = 'HKCategoryTypeIdentifierCoughing', // HKCategoryValueSeverity\n diarrhea = 'HKCategoryTypeIdentifierDiarrhea', // HKCategoryValueSeverity\n dizziness = 'HKCategoryTypeIdentifierDizziness', // HKCategoryValueSeverity\n drySkin = 'HKCategoryTypeIdentifierDrySkin', // HKCategoryValueSeverity\n fainting = 'HKCategoryTypeIdentifierFainting', // HKCategoryValueSeverity\n fatigue = 'HKCategoryTypeIdentifierFatigue', // HKCategoryValueSeverity\n fever = 'HKCategoryTypeIdentifierFever', // HKCategoryValueSeverity\n generalizedBodyAche = 'HKCategoryTypeIdentifierGeneralizedBodyAche', // HKCategoryValueSeverity\n hairLoss = 'HKCategoryTypeIdentifierHairLoss', // HKCategoryValueSeverity\n headache = 'HKCategoryTypeIdentifierHeadache', // HKCategoryValueSeverity\n heartburn = 'HKCategoryTypeIdentifierHeartburn', // HKCategoryValueSeverity\n hotFlashes = 'HKCategoryTypeIdentifierHotFlashes', // HKCategoryValueSeverity\n lossOfSmell = 'HKCategoryTypeIdentifierLossOfSmell', // HKCategoryValueSeverity\n lossOfTaste = 'HKCategoryTypeIdentifierLossOfTaste', // HKCategoryValueSeverity\n lowerBackPain = 'HKCategoryTypeIdentifierLowerBackPain', // HKCategoryValueSeverity\n memoryLapse = 'HKCategoryTypeIdentifierMemoryLapse', // HKCategoryValueSeverity\n moodChanges = 'HKCategoryTypeIdentifierMoodChanges', // HKCategoryValuePresence\n nausea = 'HKCategoryTypeIdentifierNausea', // HKCategoryValueSeverity\n nightSweats = 'HKCategoryTypeIdentifierNightSweats', // HKCategoryValueSeverity\n pelvicPain = 'HKCategoryTypeIdentifierPelvicPain', // HKCategoryValueSeverity\n rapidPoundingOrFlutteringHeartbeat = 'HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat', // HKCategoryValueSeverity\n runnyNose = 'HKCategoryTypeIdentifierRunnyNose', // HKCategoryValueSeverity\n shortnessOfBreath = 'HKCategoryTypeIdentifierShortnessOfBreath', // HKCategoryValueSeverity\n sinusCongestion = 'HKCategoryTypeIdentifierSinusCongestion', // HKCategoryValueSeverity\n skippedHeartbeat = 'HKCategoryTypeIdentifierSkippedHeartbeat', // HKCategoryValueSeverity\n sleepChanges = 'HKCategoryTypeIdentifierSleepChanges', // HKCategoryValuePresence\n soreThroat = 'HKCategoryTypeIdentifierSoreThroat', // HKCategoryValueSeverity\n vaginalDryness = 'HKCategoryTypeIdentifierVaginalDryness', // HKCategoryValueSeverity\n vomiting = 'HKCategoryTypeIdentifierVomiting', // HKCategoryValueSeverity\n wheezing = 'HKCategoryTypeIdentifierWheezing', // HKCategoryValueSeverity\n}\n\nexport type HKSampleTypeIdentifier =\n | HKCategoryTypeIdentifier\n | HKCorrelationTypeIdentifier\n | HKQuantityTypeIdentifier\n | typeof HKActivitySummaryTypeIdentifier\n | typeof HKAudiogramTypeIdentifier\n | typeof HKDataTypeIdentifierHeartbeatSeries\n | typeof HKWorkoutRouteTypeIdentifier\n | typeof HKWorkoutTypeIdentifier\n | `${HKCategoryTypeIdentifier}`\n | `${HKCorrelationTypeIdentifier}`\n | `${HKQuantityTypeIdentifier}`;\n\nexport type HealthkitReadAuthorization =\n | HKCharacteristicTypeIdentifier\n | HKSampleTypeIdentifier\n | `${HKCharacteristicTypeIdentifier}`\n | `${HKSampleTypeIdentifier}`;\nexport type HealthkitWriteAuthorization = HKSampleTypeIdentifier;\n\nexport enum HKCategoryValueAppleStandHour {\n stood = 0,\n idle = 1,\n}\n\nexport enum HKWorkoutActivityType {\n americanFootball = 1,\n archery = 2,\n australianFootball = 3,\n badminton = 4,\n baseball = 5,\n basketball = 6,\n bowling = 7,\n boxing = 8, // See also HKWorkoutActivityTypeKickboxing.,\n climbing = 9,\n cricket = 10,\n crossTraining = 11, // Any mix of cardio and/or strength training. See also HKWorkoutActivityTypeCoreTraining and HKWorkoutActivityTypeFlexibility.,\n curling = 12,\n cycling = 13,\n dance = 14,\n danceInspiredTraining = 15, // This enum remains available to access older data.,\n elliptical = 16,\n equestrianSports = 17, // Polo, Horse Racing, Horse Riding, etc.,\n fencing = 18,\n fishing = 19,\n functionalStrengthTraining = 20, // Primarily free weights and/or body weight and/or accessories,\n golf = 21,\n gymnastics = 22,\n handball = 23,\n hiking = 24,\n hockey = 25, // Ice Hockey, Field Hockey, etc.,\n hunting = 26,\n lacrosse = 27,\n martialArts = 28,\n mindAndBody = 29, // Qigong, meditation, etc.,\n mixedMetabolicCardioTraining = 30, // This enum remains available to access older data.,\n paddleSports = 31, // Canoeing, Kayaking, Outrigger, Stand Up Paddle Board, etc.,\n play = 32, // Dodge Ball, Hopscotch, Tetherball, Jungle Gym, etc.,\n preparationAndRecovery = 33, // Foam rolling, stretching, etc.,\n racquetball = 34,\n rowing = 35,\n rugby = 36,\n running = 37,\n sailing = 38,\n skatingSports = 39, // Ice Skating, Speed Skating, Inline Skating, Skateboarding, etc.,\n snowSports = 40, // Sledding, Snowmobiling, Building a Snowman, etc. See also HKWorkoutActivityTypeCrossCountrySkiing, HKWorkoutActivityTypeSnowboarding, and HKWorkoutActivityTypeDownhillSkiing.,\n soccer = 41,\n softball = 42,\n squash = 43,\n stairClimbing = 44, // See also HKWorkoutActivityTypeStairs and HKWorkoutActivityTypeStepTraining.,\n surfingSports = 45, // Traditional Surfing, Kite Surfing, Wind Surfing, etc.,\n swimming = 46,\n tableTennis = 47,\n tennis = 48,\n trackAndField = 49, // Shot Put, Javelin, Pole Vaulting, etc.,\n traditionalStrengthTraining = 50, // Primarily machines and/or free weights,\n volleyball = 51,\n walking = 52,\n waterFitness = 53,\n waterPolo = 54,\n waterSports = 55, // Water Skiing, Wake Boarding, etc.,\n wrestling = 56,\n yoga = 57,\n barre = 58, // HKWorkoutActivityTypeDanceInspiredTraining,\n coreTraining = 59,\n crossCountrySkiing = 60,\n downhillSkiing = 61,\n flexibility = 62,\n highIntensityIntervalTraining = 63,\n jumpRope = 64,\n kickboxing = 65,\n pilates = 66, // HKWorkoutActivityTypeDanceInspiredTraining,\n snowboarding = 67,\n stairs = 68,\n stepTraining = 69,\n wheelchairWalkPace = 70,\n wheelchairRunPace = 71,\n taiChi = 72,\n mixedCardio = 73, // HKWorkoutActivityTypeMixedMetabolicCardioTraining,\n handCycling = 74,\n discSports = 75,\n fitnessGaming = 76,\n other = 3000,\n}\n\nexport type HKGenericMetadata = {\n readonly [key: string]: HKQuantity | boolean | number | string | undefined;\n readonly HKExternalUUID?: string;\n readonly HKTimeZone?: string;\n readonly HKWasUserEntered?: boolean;\n readonly HKDeviceSerialNumber?: string;\n readonly HKUDIDeviceIdentifier?: string;\n readonly HKUDIProductionIdentifier?: string;\n readonly HKDigitalSignature?: string;\n readonly HKDeviceName?: string;\n readonly HKDeviceManufacturerName?: string;\n readonly HKSyncIdentifier?: string;\n readonly HKSyncVersion?: number;\n readonly HKWasTakenInLab?: boolean;\n readonly HKReferenceRangeLowerLimit?: number;\n readonly HKReferenceRangeUpperLimit?: number;\n};\n\n// documented at https://developer.apple.com/documentation/healthkit/hkweathercondition\nexport enum HKWeatherCondition {\n none = 0,\n clear = 1,\n fair = 2,\n partlyCloudy = 3,\n mostlyCloudy = 4,\n cloudy = 5,\n foggy = 6,\n haze = 7,\n windy = 8,\n blustery = 9,\n smoky = 10,\n dust = 11,\n snow = 12,\n hail = 13,\n sleet = 14,\n freezingDrizzle = 15,\n freezingRain = 16,\n mixedRainAndHail = 17,\n mixedRainAndSnow = 18,\n mixedRainAndSleet = 19,\n mixedSnowAndSleet = 20,\n drizzle = 21,\n scatteredShowers = 22,\n showers = 23,\n thunderstorms = 24,\n tropicalStorm = 25,\n hurricane = 26,\n tornado = 27,\n}\n\nenum HKIndoorWorkout {\n false = 0,\n true = 1,\n}\n\nexport interface HKWorkoutMetadata\n extends HKGenericMetadata /* */ {\n readonly HKWeatherCondition?: HKWeatherCondition;\n readonly HKWeatherHumidity?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Percent\n >;\n // HKWeatherTemperature: HKQuantity\n readonly HKAverageMETs?: HKQuantity;\n readonly HKElevationAscended?: HKQuantity<\n HKQuantityTypeIdentifier,\n LengthUnit\n >;\n readonly HKIndoorWorkout?: HKIndoorWorkout;\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationrequeststatus Apple Docs }\n */\nexport enum HKAuthorizationRequestStatus {\n unknown = 0,\n shouldRequest = 1,\n unnecessary = 2,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationstatus Apple Docs }\n */\nexport enum HKAuthorizationStatus {\n notDetermined = 0,\n sharingDenied = 1,\n sharingAuthorized = 2,\n}\n\nexport type HKQuantity<\n TIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = {\n readonly unit: TUnit;\n readonly quantity: number;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkbloodtype Apple Docs }\n */\nexport enum HKBloodType {\n notSet = 0,\n aPositive = 1,\n aNegative = 2,\n bPositive = 3,\n bNegative = 4,\n abPositive = 5,\n abNegative = 6,\n oPositive = 7,\n oNegative = 8,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkbiologicalsex Apple Docs }\n */\nexport enum HKBiologicalSex {\n notSet = 0,\n female = 1,\n male = 2,\n other = 3,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkfitzpatrickskintype Apple Docs }\n */\nexport enum HKFitzpatrickSkinType {\n notSet = 0,\n I = 1,\n II = 2,\n III = 3,\n IV = 4,\n V = 5,\n VI = 6,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkstatisticsoptions Apple Docs }\n */\nexport enum HKStatisticsOptions {\n cumulativeSum = 'cumulativeSum',\n discreteAverage = 'discreteAverage',\n discreteMax = 'discreteMax',\n discreteMin = 'discreteMin',\n discreteMostRecent = 'discreteMostRecent',\n duration = 'duration',\n mostRecent = 'mostRecent',\n separateBySource = 'separateBySource',\n}\n\nexport type QueryStatisticsResponseRaw<\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n> = {\n readonly averageQuantity?: HKQuantity;\n readonly maximumQuantity?: HKQuantity;\n readonly minimumQuantity?: HKQuantity;\n readonly sumQuantity?: HKQuantity;\n readonly mostRecentQuantity?: HKQuantity;\n readonly mostRecentQuantityDateInterval?: {\n readonly from: string;\n readonly to: string;\n };\n readonly duration?: HKQuantity;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality Apple Docs }\n */\nexport enum HKCategoryValueCervicalMucusQuality {\n dry = 1,\n sticky = 2,\n creamy = 3,\n watery = 4,\n eggWhite = 5,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow Apple Docs }\n */\nexport enum HKCategoryValueMenstrualFlow {\n unspecified = 1,\n none = 5,\n light = 2,\n medium = 3,\n heavy = 4,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult Apple Docs }\n */\nexport enum HKCategoryValueOvulationTestResult {\n negative = 1,\n luteinizingHormoneSurge = 2,\n indeterminate = 3,\n estrogenSurge = 4,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis Apple Docs }\n */\nexport enum HKCategoryValueSleepAnalysis {\n inBed = 0,\n asleepUnspecified = 1,\n awake = 2,\n asleepCore = 3,\n asleepDeep = 4,\n asleepREM = 5,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges\n */\nexport enum HKCategoryValueAppetiteChanges {\n decreased = 2,\n increased = 3,\n noChange = 1,\n unspecified = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence\n */\nexport enum HKCategoryValuePresence {\n notPresent = 1,\n present = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity Apple Docs }\n */\nexport enum HKCategoryValueSeverity {\n notPresent = 1,\n mild = 2,\n moderate = 3,\n severe = 4,\n unspecified = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue/notapplicable Apple Docs }\n */\nexport enum HKCategoryValueNotApplicable {\n notApplicable = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue Apple Docs }\n */\nexport type HKCategoryValue =\n | HKCategoryValueAppetiteChanges\n | HKCategoryValueCervicalMucusQuality\n | HKCategoryValueLowCardioFitnessEvent\n | HKCategoryValueMenstrualFlow\n | HKCategoryValueOvulationTestResult\n | HKCategoryValuePresence\n | HKCategoryValueSeverity\n | HKCategoryValueSleepAnalysis\n | number;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkinsulindeliveryreason Apple Docs }\n */\nexport enum HKInsulinDeliveryReason {\n basal = 1,\n bolus = 2,\n}\n\nexport type MetadataMapperForQuantityIdentifier<\n TQuantityTypeIdentifier = HKQuantityTypeIdentifier\n> = TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.insulinDelivery\n ? HKGenericMetadata & {\n readonly HKInsulinDeliveryReason: HKInsulinDeliveryReason;\n }\n : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.bloodGlucose\n ? HKGenericMetadata & {\n readonly HKBloodGlucoseMealTime?: number;\n }\n : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.heartRate\n ? HKGenericMetadata & {\n readonly HKHeartRateMotionContext?: HKHeartRateMotionContext;\n }\n : HKGenericMetadata;\n\nexport type MetadataMapperForCorrelationIdentifier<\n TCorrelationTypeIdentifier = HKCorrelationTypeIdentifier\n> = TCorrelationTypeIdentifier extends HKCorrelationTypeIdentifier.food\n ? HKGenericMetadata & {\n readonly HKFoodType?: string;\n }\n : HKGenericMetadata;\n\nexport type UnitForIdentifier =\n T extends HKQuantityTypeIdentifier.bloodGlucose\n ? BloodGlucoseUnit\n : T extends\n | HKQuantityTypeIdentifier.appleExerciseTime\n | HKQuantityTypeIdentifier.appleMoveTime\n | HKQuantityTypeIdentifier.appleStandTime\n ? TimeUnit\n : T extends\n | HKQuantityTypeIdentifier.activeEnergyBurned\n | HKQuantityTypeIdentifier.basalEnergyBurned\n | HKQuantityTypeIdentifier.dietaryEnergyConsumed\n ? EnergyUnit\n : T extends\n | HKQuantityTypeIdentifier.distanceCycling\n | HKQuantityTypeIdentifier.distanceDownhillSnowSports\n | HKQuantityTypeIdentifier.distanceSwimming\n | HKQuantityTypeIdentifier.distanceWalkingRunning\n | HKQuantityTypeIdentifier.distanceWheelchair\n | HKQuantityTypeIdentifier.sixMinuteWalkTestDistance\n | HKQuantityTypeIdentifier.waistCircumference\n ? LengthUnit\n : T extends\n | HKQuantityTypeIdentifier.bodyFatPercentage\n | HKQuantityTypeIdentifier.oxygenSaturation\n | HKQuantityTypeIdentifier.walkingAsymmetryPercentage\n | HKQuantityTypeIdentifier.walkingDoubleSupportPercentage\n ? HKUnits.Percent\n : T extends\n | HKQuantityTypeIdentifier.basalBodyTemperature\n | HKQuantityTypeIdentifier.basalBodyTemperature\n ? TemperatureUnit\n : T extends\n | HKQuantityTypeIdentifier.runningSpeed\n | HKQuantityTypeIdentifier.stairAscentSpeed\n | HKQuantityTypeIdentifier.stairDescentSpeed\n | HKQuantityTypeIdentifier.walkingSpeed\n | HKQuantityTypeIdentifier.walkingSpeed\n ? SpeedUnit\n : T extends\n | HKQuantityTypeIdentifier.flightsClimbed\n | HKQuantityTypeIdentifier.numberOfAlcoholicBeverages\n | HKQuantityTypeIdentifier.numberOfTimesFallen\n | HKQuantityTypeIdentifier.pushCount\n | HKQuantityTypeIdentifier.stepCount\n | HKQuantityTypeIdentifier.swimmingStrokeCount\n ? HKUnits.Count\n : T extends\n | HKQuantityTypeIdentifier.dietaryBiotin\n | HKQuantityTypeIdentifier.dietaryCaffeine\n | HKQuantityTypeIdentifier.dietaryCalcium\n | HKQuantityTypeIdentifier.dietaryCarbohydrates\n | HKQuantityTypeIdentifier.dietaryChloride\n | HKQuantityTypeIdentifier.dietaryCholesterol\n | HKQuantityTypeIdentifier.dietaryChromium\n | HKQuantityTypeIdentifier.dietaryCopper\n | HKQuantityTypeIdentifier.dietaryFatMonounsaturated\n | HKQuantityTypeIdentifier.dietaryFatPolyunsaturated\n | HKQuantityTypeIdentifier.dietaryFatSaturated\n | HKQuantityTypeIdentifier.dietaryFatTotal\n | HKQuantityTypeIdentifier.dietaryFiber\n | HKQuantityTypeIdentifier.dietaryFolate\n | HKQuantityTypeIdentifier.dietaryIodine\n | HKQuantityTypeIdentifier.dietaryIodine\n | HKQuantityTypeIdentifier.dietaryIron\n | HKQuantityTypeIdentifier.dietaryMagnesium\n | HKQuantityTypeIdentifier.dietaryManganese\n | HKQuantityTypeIdentifier.dietaryMolybdenum\n | HKQuantityTypeIdentifier.dietaryNiacin\n | HKQuantityTypeIdentifier.dietaryPantothenicAcid\n | HKQuantityTypeIdentifier.dietaryPhosphorus\n | HKQuantityTypeIdentifier.dietaryPotassium\n | HKQuantityTypeIdentifier.dietaryProtein\n | HKQuantityTypeIdentifier.dietaryRiboflavin\n | HKQuantityTypeIdentifier.dietarySelenium\n | HKQuantityTypeIdentifier.dietarySodium\n | HKQuantityTypeIdentifier.dietarySugar\n | HKQuantityTypeIdentifier.dietaryThiamin\n | HKQuantityTypeIdentifier.dietaryVitaminA\n | HKQuantityTypeIdentifier.dietaryVitaminB6\n | HKQuantityTypeIdentifier.dietaryVitaminB12\n | HKQuantityTypeIdentifier.dietaryVitaminC\n | HKQuantityTypeIdentifier.dietaryVitaminD\n | HKQuantityTypeIdentifier.dietaryVitaminE\n | HKQuantityTypeIdentifier.dietaryVitaminK\n | HKQuantityTypeIdentifier.dietaryZinc\n ? MassUnit\n : T extends HKQuantityTypeIdentifier.dietaryWater\n ? VolumeUnit\n : T extends HKQuantityTypeIdentifier.insulinDelivery\n ? HKUnits.InternationalUnit | `${HKUnits.InternationalUnit}`\n : T extends\n | HKQuantityTypeIdentifier.heartRate\n | HKQuantityTypeIdentifier.restingHeartRate\n | HKQuantityTypeIdentifier.walkingHeartRateAverage\n ? CountPerTime\n : HKUnit;\n\nexport type HKCategoryValueForIdentifier =\n T extends HKCategoryTypeIdentifier.cervicalMucusQuality\n ? HKCategoryValueCervicalMucusQuality\n : T extends HKCategoryTypeIdentifier.menstrualFlow\n ? HKCategoryValueMenstrualFlow\n : T extends HKCategoryTypeIdentifier.ovulationTestResult\n ? HKCategoryValueOvulationTestResult\n : T extends HKCategoryTypeIdentifier.sleepAnalysis\n ? HKCategoryValueSleepAnalysis\n : T extends\n | HKCategoryTypeIdentifier.highHeartRateEvent\n | HKCategoryTypeIdentifier.intermenstrualBleeding\n | HKCategoryTypeIdentifier.mindfulSession\n | HKCategoryTypeIdentifier.sexualActivity\n ? HKCategoryValueNotApplicable\n : T extends\n | HKCategoryTypeIdentifier.abdominalCramps\n | HKCategoryTypeIdentifier.abdominalCramps\n | HKCategoryTypeIdentifier.acne\n | HKCategoryTypeIdentifier.bladderIncontinence\n | HKCategoryTypeIdentifier.bloating\n | HKCategoryTypeIdentifier.breastPain\n | HKCategoryTypeIdentifier.chestTightnessOrPain\n | HKCategoryTypeIdentifier.chills\n | HKCategoryTypeIdentifier.constipation\n | HKCategoryTypeIdentifier.coughing\n | HKCategoryTypeIdentifier.diarrhea\n | HKCategoryTypeIdentifier.dizziness\n | HKCategoryTypeIdentifier.drySkin\n | HKCategoryTypeIdentifier.fainting\n | HKCategoryTypeIdentifier.fatigue\n | HKCategoryTypeIdentifier.fever\n | HKCategoryTypeIdentifier.generalizedBodyAche\n | HKCategoryTypeIdentifier.hairLoss\n | HKCategoryTypeIdentifier.headache\n | HKCategoryTypeIdentifier.heartburn\n | HKCategoryTypeIdentifier.hotFlashes\n | HKCategoryTypeIdentifier.lossOfSmell\n | HKCategoryTypeIdentifier.lossOfTaste\n | HKCategoryTypeIdentifier.lowerBackPain\n | HKCategoryTypeIdentifier.memoryLapse\n | HKCategoryTypeIdentifier.moodChanges\n | HKCategoryTypeIdentifier.nausea\n | HKCategoryTypeIdentifier.nightSweats\n | HKCategoryTypeIdentifier.pelvicPain\n | HKCategoryTypeIdentifier.rapidPoundingOrFlutteringHeartbeat\n | HKCategoryTypeIdentifier.runnyNose\n | HKCategoryTypeIdentifier.shortnessOfBreath\n | HKCategoryTypeIdentifier.sinusCongestion\n | HKCategoryTypeIdentifier.skippedHeartbeat\n | HKCategoryTypeIdentifier.soreThroat\n | HKCategoryTypeIdentifier.vaginalDryness\n | HKCategoryTypeIdentifier.vomiting\n | HKCategoryTypeIdentifier.wheezing\n ? HKCategoryValueSeverity\n : T extends\n | HKCategoryTypeIdentifier.appetiteChanges\n | HKCategoryTypeIdentifier.sleepChanges\n ? HKCategoryValuePresence\n : T extends HKCategoryTypeIdentifier.lowCardioFitnessEvent\n ? HKCategoryValueLowCardioFitnessEvent\n : T extends HKCategoryTypeIdentifier.pregnancyTestResult\n ? HKCategoryValuePregnancyTestResult\n : T extends HKCategoryTypeIdentifier.pregnancyTestResult\n ? HKCategoryValuePregnancyTestResult\n : T extends HKCategoryTypeIdentifier.appleStandHour\n ? HKCategoryValueAppleStandHour\n : number;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepregnancytestresult Apple Docs }\n */\nenum HKCategoryValuePregnancyTestResult {\n positive = 2,\n negative = 1,\n indeterminate = 3,\n}\n/* needs further mapping\n\ncontraceptive = 'HKCategoryTypeIdentifierContraceptive',\n lactation = 'HKCategoryTypeIdentifierLactation',\n pregnancy = 'HKCategoryTypeIdentifierPregnancy',\n\n progesteroneTestResult = 'HKCategoryTypeIdentifierProgesteroneTestResult',\n environmentalAudioExposureEvent = 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent',\n headphoneAudioExposureEvent = 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent',\n appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',\n handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue */\n\nexport type HKHeartbeatSeriesSampleMetadata = HKGenericMetadata & {\n readonly HKMetadataKeyAlgorithmVersion: string;\n};\n\nexport type MetadataMapperForCategoryIdentifier<\n T extends HKCategoryTypeIdentifier\n> = T extends HKCategoryTypeIdentifier.sexualActivity\n ? HKGenericMetadata & {\n readonly HKSexualActivityProtectionUsed: boolean;\n }\n : T extends HKCategoryTypeIdentifier.menstrualFlow\n ? HKGenericMetadata & {\n readonly HKMenstrualCycleStart: boolean;\n }\n : HKGenericMetadata;\n\n// Maps directly to https://developer.apple.com/documentation/healthkit/hkwheelchairuse\nexport enum HKWheelchairUse {\n notSet = 0,\n no = 1,\n yes = 2,\n}\n\n// Unit types are a straight mapping from here https://developer.apple.com/documentation/healthkit/hkunit/1615733-init\nexport enum HKMetricPrefix {\n None = '',\n Pico = 'p',\n Nano = 'n',\n Micro = 'mc',\n Milli = 'm',\n Centi = 'c',\n Deci = 'd',\n Deca = 'da',\n Hecto = 'h',\n Kilo = 'k',\n Mega = 'M',\n Giga = 'G',\n Tera = 'T',\n Femto = 'f',\n}\n\nexport enum HKUnitMetric {\n Gram = 'g',\n Joule = 'J',\n Kelvin = 'K',\n Liter = 'l',\n Meter = 'm',\n Pascal = 'Pa',\n Second = 's',\n Siemen = 'S',\n Hertz = 'Hz',\n Volt = 'V',\n}\n\nexport enum HKUnits {\n DecibelHearingLevel = 'dBHL',\n DecibelSoundPressureLevel = 'dBASPL',\n\n Percent = '%',\n Count = 'count',\n InternationalUnit = 'IU',\n}\n\nexport type MeterUnit =\n `${Prefix}${HKUnitMetric.Meter}`;\nexport type LiterUnit =\n `${Prefix}${HKUnitMetric.Liter}`;\nexport type GramUnit =\n `${Prefix}${HKUnitMetric.Gram}`;\nexport type PascalUnit =\n `${Prefix}${HKUnitMetric.Pascal}`;\nexport type SecondUnit =\n `${Prefix}${HKUnitMetric.Second}`;\nexport type JouleUnit =\n `${Prefix}${HKUnitMetric.Joule}`;\nexport type HertzUnit =\n `${Prefix}${HKUnitMetric.Hertz}`;\nexport type VoltUnit =\n `${Prefix}${HKUnitMetric.Volt}`;\nexport type SiemenUnit =\n `${Prefix}${HKUnitMetric.Siemen}`;\n\n// not 100% sure about these\nexport type MoleUnit = `mol<${MolarMass}>`;\nexport type MoleUnitWith<\n MolarMass extends number,\n Prefix extends HKMetricPrefix = HKMetricPrefix.None\n> = `${Prefix}mol<${MolarMass}>`;\n\nexport type FrequencyUnit = HertzUnit;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'cm', 'km'\n */\nexport enum UnitOfLength {\n Feet = 'ft',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'cm', 'km'\n */\n Meter = 'm',\n Inches = 'in',\n Yards = 'yd',\n Miles = 'mi',\n}\nexport type LengthUnit = MeterUnit | UnitOfLength;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ml', 'cl'\n */\nexport enum UnitOfVolume {\n ImperialCup = 'cup_imp',\n ImperialFluidOunces = 'fl_oz_imp',\n ImperialPint = 'pt_imp',\n USCup = 'cup_us',\n USFluidOunces = 'fl_oz_us',\n USPint = 'pt_us',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'ml', 'cl'\n */\n Liter = 'l',\n}\nexport type VolumeUnit = LiterUnit | UnitOfVolume;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\nexport enum UnitOfMass {\n Ounces = 'oz',\n Stones = 'st',\n Pounds = 'lb',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\n Gram = 'g',\n}\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\nexport type MassUnit = GramUnit | UnitOfMass;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\nexport enum UnitOfPressure {\n Atmospheres = 'atm',\n CentimetersOfWater = 'cmAq',\n MillimetersOfMercury = 'mmHg',\n InchesOfMercury = 'inHg',\n DecibelAWeightedSoundPressureLevel = 'dBASPL',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\n Pascals = 'Pa',\n}\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\nexport type PressureUnit = PascalUnit | UnitOfPressure;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\nexport enum UnitOfTime {\n Days = 'd',\n Minutes = 'min',\n Hours = 'hr',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\n Seconds = 's',\n}\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\nexport type TimeUnit = SecondUnit | UnitOfTime;\nexport enum TemperatureUnit {\n DegreesCelsius = 'degC',\n DegreesFahrenheit = 'degF',\n Kelvin = 'K',\n}\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kJ'\n */\nexport enum UnitOfEnergy {\n Kilocalories = 'kcal',\n LargeCalories = 'Cal',\n SmallCalories = 'cal',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'kJ'\n */\n Joules = 'J',\n}\nexport type EnergyUnit = JouleUnit | UnitOfEnergy;\nexport enum BloodGlucoseUnit {\n GlucoseMmolPerL = 'mmol<180.15588000005408>/l',\n GlucoseMgPerDl = 'mg/dL',\n}\n\nexport type SpeedUnit<\n TLength extends LengthUnit,\n TTime extends TimeUnit\n> = `${TLength}/${TTime}`;\nexport type CountPerTime = `count/${TTime}`;\n\nexport type HKUnit =\n | BloodGlucoseUnit\n | CountPerTime\n | EnergyUnit\n | FrequencyUnit\n | HKUnits\n | LengthUnit\n | MassUnit\n | PressureUnit\n | SpeedUnit\n | TemperatureUnit\n | TimeUnit\n | VolumeUnit\n | `${BloodGlucoseUnit}`\n | `${EnergyUnit}`\n | `${FrequencyUnit}`\n | `${HKUnits}`\n | `${LengthUnit}`\n | `${MassUnit}`\n | `${PressureUnit}`\n | `${TemperatureUnit}`\n | `${TimeUnit}`\n | `${VolumeUnit}`;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkdevice Apple Docs }\n */\nexport type HKDevice = {\n readonly name: string; // ex: \"Apple Watch\"\n readonly firmwareVersion: string | null;\n readonly hardwareVersion: string; // ex: \"Watch6,2\",\n readonly localIdentifier: string | null;\n readonly manufacturer: string; // ex: \"Apple Inc.\"\n readonly model: string; // ex: \"Watch\"\n readonly softwareVersion: string; // ex: \"9.0\"\n readonly udiDeviceIdentifier: string | null;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615781-source Apple Docs }\n */\nexport type HKSource = {\n readonly name: string;\n readonly bundleIdentifier: string;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615483-sourcerevision Apple Docs }\n */\nexport type HKSourceRevision = {\n readonly source: HKSource;\n readonly version: string;\n readonly operatingSystemVersion?: string;\n readonly productType?: string;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitysample Apple Docs }\n */\nexport type HKQuantitySampleRaw<\n TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly quantityType: TQuantityIdentifier;\n readonly startDate: string;\n readonly endDate: string;\n readonly quantity: number;\n readonly unit: TUnit;\n readonly metadata: MetadataMapperForQuantityIdentifier;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type HKHeartbeatRaw = {\n readonly timeSinceSeriesStart: number;\n readonly precededByGap: boolean;\n};\n\nexport type HKHeartbeatSeriesSampleRaw = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly startDate: string;\n readonly endDate: string;\n readonly heartbeats: readonly HKHeartbeatRaw[];\n readonly metadata?: HKHeartbeatSeriesSampleMetadata;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type CLLocationRawForSaving = {\n readonly latitude: number;\n readonly longitude: number;\n readonly altitude: number;\n readonly horizontalAccuracy: number;\n readonly verticalAccuracy: number;\n readonly course: number;\n readonly speed: number;\n readonly timestamp: string; // unix timestamp in milliseconds\n};\n\nexport type HKQuantitySampleRawForSaving<\n TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = Omit<\nHKQuantitySampleRaw,\n'device' | 'endDate' | 'startDate' | 'uuid'\n> & {\n readonly startDate?: string;\n readonly endDate?: string;\n};\n\nexport type HKCategorySampleRawForSaving<\n TCategory extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier\n> = Omit<\nHKCategorySampleRaw,\n'device' | 'endDate' | 'startDate' | 'uuid'\n> & {\n readonly startDate?: string;\n readonly endDate?: string;\n};\n\nexport interface HKWorkoutEvent {\n readonly type: HKWorkoutEventType;\n readonly startDate: string;\n readonly endDate: string;\n}\n\nexport enum HKWorkoutEventType {\n pause = 1,\n resume = 2,\n lap = 3,\n marker = 4,\n motionPaused = 5,\n motionResumed = 6,\n segment = 7,\n pauseOrResumeRequest = 8,\n}\n\nexport interface HKWorkoutActivity {\n readonly startDate: string;\n readonly endDate: string;\n readonly uuid: string;\n readonly duration: number;\n}\n\nexport type HKWorkoutRaw<\n TEnergy extends EnergyUnit,\n TDistance extends LengthUnit\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly workoutActivityType: HKWorkoutActivityType;\n readonly duration: number;\n readonly totalDistance?: HKQuantity;\n readonly totalEnergyBurned?: HKQuantity;\n readonly totalSwimmingStrokeCount?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Count\n >;\n readonly totalFlightsClimbed?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Count\n >;\n readonly startDate: string;\n readonly endDate: string;\n readonly metadata?: HKWorkoutMetadata;\n readonly sourceRevision?: HKSourceRevision;\n readonly events?: readonly HKWorkoutEvent[];\n readonly activities?: readonly HKWorkoutActivity[];\n readonly workoutPlanId?: string;\n};\n\n// Straight mapping to https://developer.apple.com/documentation/healthkit/hkcharacteristictypeidentifier\nexport enum HKCharacteristicTypeIdentifier {\n fitzpatrickSkinType = 'HKCharacteristicTypeIdentifierFitzpatrickSkinType',\n biologicalSex = 'HKCharacteristicTypeIdentifierBiologicalSex',\n bloodType = 'HKCharacteristicTypeIdentifierBloodType',\n dateOfBirth = 'HKCharacteristicTypeIdentifierDateOfBirth',\n wheelchairUse = 'HKCharacteristicTypeIdentifierWheelchairUse',\n activityMoveMode = 'HKCharacteristicTypeIdentifierActivityMoveMode', // HKActivityMoveModeObject\n}\n\nexport type WritePermissions = {\n readonly [key in\n | HKCategoryTypeIdentifier\n | HKCharacteristicTypeIdentifier\n | HKQuantityTypeIdentifier]: boolean;\n};\n\nexport type ReadPermissions = {\n readonly [key in\n | HKCategoryTypeIdentifier\n | HKCharacteristicTypeIdentifier\n | HKQuantityTypeIdentifier]: boolean;\n};\n\nexport type HKCategorySampleRaw<\n T extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly categoryType: T;\n readonly startDate: string;\n readonly endDate: string;\n readonly value: HKCategoryValueForIdentifier;\n readonly metadata: MetadataMapperForCategoryIdentifier;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type DeletedCategorySampleRaw = {\n readonly uuid: string;\n readonly metadata: MetadataMapperForCategoryIdentifier;\n};\n\nexport type DeletedHeartbeatSeriesSampleRaw = {\n readonly uuid: string;\n readonly metadata: HKHeartbeatSeriesSampleMetadata;\n};\n\nexport type DeletedQuantitySampleRaw = {\n readonly uuid: string;\n readonly metadata: MetadataMapperForQuantityIdentifier;\n};\n\nexport type QueryCategorySamplesResponseRaw<\n T extends HKCategoryTypeIdentifier\n> = {\n readonly samples: readonly HKCategorySampleRaw[];\n readonly deletedSamples: readonly DeletedCategorySampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type QueryHeartbeatSeriesSamplesResponseRaw = {\n readonly samples: readonly HKHeartbeatSeriesSampleRaw[];\n readonly deletedSamples: readonly DeletedHeartbeatSeriesSampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type QueryQuantitySamplesResponseRaw<\n T extends HKQuantityTypeIdentifier\n> = {\n readonly samples: readonly HKQuantitySampleRaw[];\n readonly deletedSamples: readonly DeletedQuantitySampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type HKCorrelationRaw =\n {\n readonly correlationType: HKCorrelationTypeIdentifier;\n readonly objects: readonly (HKCategorySampleRaw | HKQuantitySampleRaw)[];\n readonly metadata: MetadataMapperForCorrelationIdentifier;\n readonly startDate: string;\n readonly endDate: string;\n };\n\ntype QueryId = string;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkupdatefrequency Apple Docs }\n */\nexport enum HKUpdateFrequency {\n immediate = 1,\n hourly = 2,\n daily = 3,\n weekly = 4,\n}\n\nexport type WorkoutLocation = {\n readonly longitude: number;\n readonly latitude: number;\n readonly altitude: number;\n readonly speed: number;\n readonly timestamp: number;\n readonly horizontalAccuracy: number;\n readonly speedAccuracy: number;\n readonly verticalAccuracy: number;\n readonly distance: number | null;\n};\n\nexport type WorkoutRoute = {\n readonly locations: readonly WorkoutLocation[];\n readonly HKMetadataKeySyncIdentifier?: string;\n readonly HKMetadataKeySyncVersion?: number;\n};\n\ntype ReactNativeHealthkitTypeNative = {\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable Apple Docs }\n */\n isHealthDataAvailable(): Promise;\n // Todo [>8]: Rename to align with Apple function name (isProtectedDataAvailable) - remember to rename native code :)\n canAccessProtectedData(): Promise;\n getBloodType(): Promise;\n getDateOfBirth(): Promise;\n getBiologicalSex(): Promise;\n getFitzpatrickSkinType(): Promise;\n readonly getWheelchairUse: () => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery Apple Docs }\n */\n readonly enableBackgroundDelivery: (\n typeIdentifier: HKSampleTypeIdentifier,\n updateFrequency: HKUpdateFrequency\n ) => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614177-disablebackgrounddelivery Apple Docs }\n */\n readonly disableBackgroundDelivery: (\n typeIdentifier: HKSampleTypeIdentifier\n ) => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614158-disableallbackgrounddelivery Apple Docs }\n */\n readonly disableAllBackgroundDelivery: () => Promise;\n\n readonly saveCorrelationSample: <\n TIdentifier extends HKCorrelationTypeIdentifier,\n TSamples extends readonly (\n | HKCategorySampleRawForSaving\n | HKQuantitySampleRawForSaving\n )[]\n >(\n typeIdentifier: TIdentifier,\n samples: TSamples,\n start: string,\n end: string,\n metadata: MetadataMapperForCorrelationIdentifier\n ) => Promise;\n\n readonly saveWorkoutSample: (\n typeIdentifier: HKWorkoutActivityType,\n quantities: readonly HKQuantitySampleRawForSaving[],\n start: string,\n end: string,\n metadata: HKWorkoutMetadata\n ) => Promise;\n\n readonly saveWorkoutRoute: (\n workoutUUID: string,\n locations: readonly CLLocationRawForSaving[]\n ) => Promise;\n\n readonly queryCorrelationSamples: <\n TIdentifier extends HKCorrelationTypeIdentifier\n >(\n typeIdentifier: TIdentifier,\n from: string,\n to: string\n ) => Promise[]>;\n\n subscribeToObserverQuery(\n identifier: HKSampleTypeIdentifier\n ): Promise;\n unsubscribeQuery(queryId: QueryId): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614154-authorizationstatus Apple Docs }\n */\n authorizationStatusFor(\n type: HealthkitReadAuthorization\n ): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/2994346-getrequeststatusforauthorization Apple Docs }\n */\n getRequestStatusForAuthorization(\n write: WritePermissions,\n read: ReadPermissions\n ): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorization Apple Docs }\n */\n requestAuthorization(\n write: WritePermissions,\n read: ReadPermissions\n ): Promise;\n readonly saveQuantitySample: <\n TType extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n >(\n identifier: TType,\n unit: TUnit,\n value: number,\n start: string,\n end: string,\n metadata: unknown\n ) => Promise;\n readonly deleteQuantitySample: (\n typeIdentifier: TIdentifier,\n uuid: string\n ) => Promise;\n readonly deleteSamples: (\n identifier: TIdentifier,\n start: string,\n end: string\n ) => Promise;\n readonly queryWorkoutSamples: <\n TEnergy extends EnergyUnit,\n TDistance extends LengthUnit\n >(\n energyUnit: TEnergy,\n distanceUnit: TDistance,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryCategorySamples: (\n identifier: T,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryQuantitySamples: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: TIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryCategorySamplesWithAnchor: (\n identifier: T,\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise>;\n readonly queryQuantitySamplesWithAnchor: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: TIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise>;\n readonly queryHeartbeatSeriesSamples: (\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise;\n readonly queryHeartbeatSeriesSamplesWithAnchor: (\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise;\n readonly querySources: <\n TIdentifier extends HKCategoryTypeIdentifier | HKQuantityTypeIdentifier\n >(\n identifier: TIdentifier\n ) => Promise;\n readonly saveCategorySample: (\n identifier: T,\n value: HKCategoryValueForIdentifier,\n start: string,\n end: string,\n metadata: unknown\n ) => Promise;\n readonly queryStatisticsForQuantity: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: HKQuantityTypeIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n options: readonly HKStatisticsOptions[]\n ) => Promise>;\n readonly getPreferredUnits: (\n identifiers: readonly HKQuantityTypeIdentifier[]\n ) => Promise;\n readonly getWorkoutRoutes: (\n workoutUUID: string\n ) => Promise;\n readonly getWorkoutPlanById: (workoutUUID: string) => Promise<{readonly id: string, readonly activityType: HKWorkoutActivityType} | null>;\n};\n\nconst Native = NativeModules.ReactNativeHealthkit as ReactNativeHealthkitTypeNative\n\ntype OnChangeCallback = ({\n typeIdentifier,\n}: {\n readonly typeIdentifier: HKSampleTypeIdentifier;\n}) => void;\n\ninterface HealthkitEventEmitter extends NativeEventEmitter {\n readonly addListener: (\n eventType: 'onChange',\n callback: OnChangeCallback\n ) => EmitterSubscription;\n}\n\nexport const EventEmitter = new NativeEventEmitter(\n NativeModules.ReactNativeHealthkit as NativeModule,\n) as HealthkitEventEmitter\n\nexport default Native\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAIhE;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAA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,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAjBA,iBAAiB,CAAjBA,iBAAiB;EAAA,OAAjBA,iBAAiB;AAAA;AAgO7B,MAAMC,MAAM,GAAG7C,aAAa,CAAC8C,oBAAsD;AAenF,OAAO,MAAMC,YAAY,GAAG,IAAIhD,kBAAkB,CAChDC,aAAa,CAAC8C,oBAChB,CAA0B;AAE1B,eAAeD,MAAM"} \ No newline at end of file +{"version":3,"names":["NativeEventEmitter","NativeModules","HKWorkoutTypeIdentifier","HKActivitySummaryTypeIdentifier","HKAudiogramTypeIdentifier","HKWorkoutRouteTypeIdentifier","HKQuantityTypeIdentifier","HKCategoryValueLowCardioFitnessEvent","HKHeartRateMotionContext","HKCorrelationTypeIdentifier","HKCategoryTypeIdentifier","HKCategoryValueAppleStandHour","HKWorkoutActivityType","HKWeatherCondition","HKIndoorWorkout","HKAuthorizationRequestStatus","HKAuthorizationStatus","HKBloodType","HKBiologicalSex","HKFitzpatrickSkinType","HKStatisticsOptions","HKCategoryValueCervicalMucusQuality","HKCategoryValueMenstrualFlow","HKCategoryValueOvulationTestResult","HKCategoryValueSleepAnalysis","HKCategoryValueAppetiteChanges","HKCategoryValuePresence","HKCategoryValueSeverity","HKCategoryValueNotApplicable","HKInsulinDeliveryReason","HKCategoryValuePregnancyTestResult","HKWheelchairUse","HKMetricPrefix","HKUnitMetric","HKUnits","UnitOfLength","UnitOfVolume","UnitOfMass","UnitOfPressure","UnitOfTime","TemperatureUnit","UnitOfEnergy","BloodGlucoseUnit","HKWorkoutEventType","HKCharacteristicTypeIdentifier","HKUpdateFrequency","Native","ReactNativeHealthkit","EventEmitter"],"sources":["native-types.ts"],"sourcesContent":["import { NativeEventEmitter, NativeModules } from 'react-native'\n\nimport type { EmitterSubscription, NativeModule } from 'react-native'\n\n/**\n * Represents a workout type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkworkouttypeidentifier Apple Docs HKWorkoutTypeIdentifier}\n */\nexport const HKWorkoutTypeIdentifier = 'HKWorkoutTypeIdentifier' as const\n\n/**\n * Represents a type that identifies activity summary objects.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}\n */\nexport const HKActivitySummaryTypeIdentifier = 'HKActivitySummaryTypeIdentifier' as const\n\n/**\n * Represents an audiogram type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}\n */\nexport const HKAudiogramTypeIdentifier = 'HKAudiogramSampleType' as const\n\n/**\n * Represents a workout route type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutroutetypeidentifier Apple Docs HKWorkoutRouteTypeIdentifier}\n */\nexport const HKWorkoutRouteTypeIdentifier = 'HKWorkoutRouteTypeIdentifier' as const\n\n/**\n * Represents a series sample containing heartbeat data..\n * @see {@link https://developer.apple.com/documentation/healthkit/HKDataTypeIdentifierHeartbeatSeries Apple Docs HKDataTypeIdentifierHeartbeatSeries}\n */\nexport declare const HKDataTypeIdentifierHeartbeatSeries: 'HKDataTypeIdentifierHeartbeatSeries'\n\n/**\n * Represents a quantity type identifier.\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier Apple Docs HKQuantityTypeIdentifier}\n */\nexport enum HKQuantityTypeIdentifier {\n /**\n * Body Mass Index\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymassindex Apple Docs HKQuantityTypeIdentifierBodyMassIndex}\n */\n bodyMassIndex = 'HKQuantityTypeIdentifierBodyMassIndex',\n\n /**\n * Body Fat Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodyfatpercentage Apple Docs HKQuantityTypeIdentifierBodyFatPercentage}\n */\n bodyFatPercentage = 'HKQuantityTypeIdentifierBodyFatPercentage',\n\n /**\n * Height\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheight Apple Docs HKQuantityTypeIdentifierHeight}\n */\n height = 'HKQuantityTypeIdentifierHeight',\n\n /**\n * Body Mass\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymass Apple Docs HKQuantityTypeIdentifierBodyMass}\n */\n bodyMass = 'HKQuantityTypeIdentifierBodyMass',\n\n /**\n * Lean Body Mass\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierleanbodymass Apple Docs HKQuantityTypeIdentifierLeanBodyMass}\n */\n leanBodyMass = 'HKQuantityTypeIdentifierLeanBodyMass',\n\n /**\n * Waist Circumference\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwaistcircumference Apple Docs HKQuantityTypeIdentifierWaistCircumference}\n */\n waistCircumference = 'HKQuantityTypeIdentifierWaistCircumference',\n\n /**\n * Step Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstepcount Apple Docs HKQuantityTypeIdentifierStepCount}\n */\n stepCount = 'HKQuantityTypeIdentifierStepCount',\n\n /**\n * Distance Walking Running\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewalkingrunning Apple Docs HKQuantityTypeIdentifierDistanceWalkingRunning}\n */\n distanceWalkingRunning = 'HKQuantityTypeIdentifierDistanceWalkingRunning',\n\n /**\n * Distance Cycling\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancecycling Apple Docs HKQuantityTypeIdentifierDistanceCycling}\n */\n distanceCycling = 'HKQuantityTypeIdentifierDistanceCycling',\n\n /**\n * Distance Wheelchair\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewheelchair Apple Docs HKQuantityTypeIdentifierDistanceWheelchair}\n */\n distanceWheelchair = 'HKQuantityTypeIdentifierDistanceWheelchair',\n /**\n * Basal Energy Burned\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalenergyburned Apple Docs HKQuantityTypeIdentifierBasalEnergyBurned}\n */\n basalEnergyBurned = 'HKQuantityTypeIdentifierBasalEnergyBurned', // Energy, Cumulative\n /**\n * Active Energy Burned\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieractiveenergyburned Apple Docs HKQuantityTypeIdentifierActiveEnergyBurned}\n */\n activeEnergyBurned = 'HKQuantityTypeIdentifierActiveEnergyBurned', // Energy, Cumulative\n /**\n * Flights Climbed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierflightsclimbed Apple Docs HKQuantityTypeIdentifierFlightsClimbed}\n */\n flightsClimbed = 'HKQuantityTypeIdentifierFlightsClimbed', // Scalar(Count), Cumulative\n /**\n * Nike Fuel\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernikefuel Apple Docs HKQuantityTypeIdentifierNikeFuel}\n */\n nikeFuel = 'HKQuantityTypeIdentifierNikeFuel', // Scalar(Count), Cumulative\n /**\n * Apple Exercise Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierappleexercisetime Apple Docs HKQuantityTypeIdentifierAppleExerciseTime}\n */\n appleExerciseTime = 'HKQuantityTypeIdentifierAppleExerciseTime', // Time Cumulative\n /**\n * Push Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpushcount Apple Docs HKQuantityTypeIdentifierPushCount}\n */\n pushCount = 'HKQuantityTypeIdentifierPushCount', // Scalar(Count), Cumulative\n /**\n * Distance Swimming\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistanceswimming Apple Docs HKQuantityTypeIdentifierDistanceSwimming}\n */\n distanceSwimming = 'HKQuantityTypeIdentifierDistanceSwimming', // Length, Cumulative\n /**\n * Swimming Stroke Count\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierswimmingstrokecount Apple Docs HKQuantityTypeIdentifierSwimmingStrokeCount}\n */\n swimmingStrokeCount = 'HKQuantityTypeIdentifierSwimmingStrokeCount', // Scalar(Count), Cumulative\n /**\n * VO2 Max\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiervo2max Apple Docs HKQuantityTypeIdentifierVO2Max}\n */\n vo2Max = 'HKQuantityTypeIdentifierVO2Max', // ml/(kg*min) Discrete\n /**\n * Distance Downhill Snow Sports\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancedownhillsnowsports Apple Docs HKQuantityTypeIdentifierDistanceDownhillSnowSports}\n */\n distanceDownhillSnowSports = 'HKQuantityTypeIdentifierDistanceDownhillSnowSports', // Length, Cumulative\n\n /**\n * Apple Stand Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplestandtime Apple Docs HKQuantityTypeIdentifierAppleStandTime}\n */\n appleStandTime = 'HKQuantityTypeIdentifierAppleStandTime', // Time, Cumulative\n // Vitals\n /**\n * Heart Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartrate Apple Docs HKQuantityTypeIdentifierHeartRate}\n */\n heartRate = 'HKQuantityTypeIdentifierHeartRate', // Scalar(Count)/Time, Discrete\n /**\n * Body Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodytemperature Apple Docs HKQuantityTypeIdentifierBodyTemperature}\n */\n bodyTemperature = 'HKQuantityTypeIdentifierBodyTemperature', // Temperature, Discrete\n /**\n * Basal Body Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalbodytemperature Apple Docs HKQuantityTypeIdentifierBasalBodyTemperature}\n */\n basalBodyTemperature = 'HKQuantityTypeIdentifierBasalBodyTemperature', // Basal Body Temperature, Discrete\n /**\n * Blood Pressure Systolic\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressuresystolic Apple Docs HKQuantityTypeIdentifierBloodPressureSystolic}\n */\n bloodPressureSystolic = 'HKQuantityTypeIdentifierBloodPressureSystolic', // Pressure, Discrete\n /**\n * Blood Pressure Diastolic\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressurediastolic Apple Docs HKQuantityTypeIdentifierBloodPressureDiastolic}\n */\n bloodPressureDiastolic = 'HKQuantityTypeIdentifierBloodPressureDiastolic', // Pressure, Discrete\n /**\n * Respiratory Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrespiratoryrate Apple Docs HKQuantityTypeIdentifierRespiratoryRate}\n */\n respiratoryRate = 'HKQuantityTypeIdentifierRespiratoryRate', // Scalar(Count)/Time, Discrete\n /**\n * Resting Heart Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrestingheartrate Apple Docs HKQuantityTypeIdentifierRestingHeartRate}\n */\n restingHeartRate = 'HKQuantityTypeIdentifierRestingHeartRate', // Scalar(Count)/Time, Discrete\n /**\n * Walking Heart Rate Average\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingheartrateaverage Apple Docs HKQuantityTypeIdentifierWalkingHeartRateAverage}\n * @since iOS 11.0\n */\n walkingHeartRateAverage = 'HKQuantityTypeIdentifierWalkingHeartRateAverage', // Scalar(Count)/Time, Discrete\n /**\n * Heart Rate Variability SDNN\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartratevariabilitysdnn Apple Docs HKQuantityTypeIdentifierHeartRateVariabilitySDNN}\n * @since iOS 11.0\n */\n heartRateVariabilitySDNN = 'HKQuantityTypeIdentifierHeartRateVariabilitySDNN', // Time (ms), Discrete\n /**\n * Oxygen Saturation\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieroxygensaturation Apple Docs HKQuantityTypeIdentifierOxygenSaturation}\n * @since iOS 8.0\n */\n oxygenSaturation = 'HKQuantityTypeIdentifierOxygenSaturation',\n /**\n * Peripheral Perfusion Index\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierperipheralperfusionindex Apple Docs HKQuantityTypeIdentifierPeripheralPerfusionIndex}\n * @since iOS 8.0\n */\n peripheralPerfusionIndex = 'HKQuantityTypeIdentifierPeripheralPerfusionIndex', // Scalar(Percent, 0.0 - 1.0), Discrete\n /**\n * Blood Glucose\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodglucose Apple Docs HKQuantityTypeIdentifierBloodGlucose}\n */\n bloodGlucose = 'HKQuantityTypeIdentifierBloodGlucose',\n\n /**\n * Number Of Times Fallen\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberoftimesfallen Apple Docs HKQuantityTypeIdentifierNumberOfTimesFallen}\n */\n numberOfTimesFallen = 'HKQuantityTypeIdentifierNumberOfTimesFallen',\n\n /**\n * Electrodermal Activity\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierelectrodermalactivity Apple Docs HKQuantityTypeIdentifierElectrodermalActivity}\n */\n electrodermalActivity = 'HKQuantityTypeIdentifierElectrodermalActivity',\n\n /**\n * Inhaler Usage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinhalerusage Apple Docs HKQuantityTypeIdentifierInhalerUsage}\n * @since iOS 8\n */\n inhalerUsage = 'HKQuantityTypeIdentifierInhalerUsage',\n\n /**\n * Insulin Delivery\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinsulindelivery Apple Docs HKQuantityTypeIdentifierInsulinDelivery}\n * @since iOS 11\n */\n insulinDelivery = 'HKQuantityTypeIdentifierInsulinDelivery',\n\n /**\n * Blood Alcohol Content\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodalcoholcontent Apple Docs HKQuantityTypeIdentifierBloodAlcoholContent}\n * @since iOS 8\n */\n bloodAlcoholContent = 'HKQuantityTypeIdentifierBloodAlcoholContent',\n\n /**\n * Forced Vital Capacity\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedvitalcapacity Apple Docs HKQuantityTypeIdentifierForcedVitalCapacity}\n */\n forcedVitalCapacity = 'HKQuantityTypeIdentifierForcedVitalCapacity',\n\n /**\n * Forced Expiratory Volume1\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedexpiratoryvolume1 Apple Docs HKQuantityTypeIdentifierForcedExpiratoryVolume1}\n * @since iOS 8\n */\n forcedExpiratoryVolume1 = 'HKQuantityTypeIdentifierForcedExpiratoryVolume1',\n\n /**\n * Peak Expiratory Flow Rate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpeakexpiratoryflowrate Apple Docs HKQuantityTypeIdentifierPeakExpiratoryFlowRate}\n * @since iOS 8\n */\n peakExpiratoryFlowRate = 'HKQuantityTypeIdentifierPeakExpiratoryFlowRate',\n\n /**\n * Environmental Audio Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalaudioexposure Apple Docs HKQuantityTypeIdentifierEnvironmentalAudioExposure}\n * @since iOS 13\n */\n environmentalAudioExposure = 'HKQuantityTypeIdentifierEnvironmentalAudioExposure',\n\n /**\n * Headphone Audio Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheadphoneaudioexposure Apple Docs HKQuantityTypeIdentifierHeadphoneAudioExposure}\n * @since iOS 13\n */\n headphoneAudioExposure = 'HKQuantityTypeIdentifierHeadphoneAudioExposure', // Pressure, Cumulative\n\n // Nutrition\n /**\n * Dietary Fat Total\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfattotal Apple Docs HKQuantityTypeIdentifierDietaryFatTotal}\n * @since iOS 8\n */\n dietaryFatTotal = 'HKQuantityTypeIdentifierDietaryFatTotal', // Mass, Cumulative\n\n /**\n * Dietary Fat Polyunsaturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatpolyunsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatPolyunsaturated}\n */\n dietaryFatPolyunsaturated = 'HKQuantityTypeIdentifierDietaryFatPolyunsaturated', // Mass, Cumulative\n\n /**\n * Dietary Fat Monounsaturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatmonounsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatMonounsaturated}\n */\n dietaryFatMonounsaturated = 'HKQuantityTypeIdentifierDietaryFatMonounsaturated', // Mass, Cumulative\n /**\n * Dietary Fat Saturated\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatSaturated}\n */\n dietaryFatSaturated = 'HKQuantityTypeIdentifierDietaryFatSaturated', // Mass, Cumulative\n\n /**\n * Dietary Cholesterol\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycholesterol Apple Docs HKQuantityTypeIdentifierDietaryCholesterol}\n */\n dietaryCholesterol = 'HKQuantityTypeIdentifierDietaryCholesterol', // Mass, Cumulative\n\n /**\n * Dietary Sodium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysodium Apple Docs HKQuantityTypeIdentifierDietarySodium}\n */\n dietarySodium = 'HKQuantityTypeIdentifierDietarySodium', // Mass, Cumulative\n\n /**\n * Dietary Carbohydrates\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycarbohydrates Apple Docs HKQuantityTypeIdentifierDietaryCarbohydrates}\n */\n dietaryCarbohydrates = 'HKQuantityTypeIdentifierDietaryCarbohydrates', // Mass, Cumulative\n\n /**\n * Dietary Fiber\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfiber Apple Docs HKQuantityTypeIdentifierDietaryFiber}\n */\n dietaryFiber = 'HKQuantityTypeIdentifierDietaryFiber', // Mass, Cumulative\n /**\n * Dietary Sugar\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysugar Apple Docs HKQuantityTypeIdentifierDietarySugar}\n */\n dietarySugar = 'HKQuantityTypeIdentifierDietarySugar', // Mass, Cumulative\n\n /**\n * Dietary Energy Consumed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryenergyconsumed Apple Docs HKQuantityTypeIdentifierDietaryEnergyConsumed}\n */\n dietaryEnergyConsumed = 'HKQuantityTypeIdentifierDietaryEnergyConsumed', // Energy, Cumulative\n\n /**\n * Dietary Protein\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryprotein Apple Docs HKQuantityTypeIdentifierDietaryProtein}\n */\n dietaryProtein = 'HKQuantityTypeIdentifierDietaryProtein', // Mass, Cumulative\n\n /**\n * Dietary Vitamin A\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamina Apple Docs HKQuantityTypeIdentifierDietaryVitaminA}\n */\n dietaryVitaminA = 'HKQuantityTypeIdentifierDietaryVitaminA', // Mass, Cumulative\n\n /**\n * Dietary Vitamin B6\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb6 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB6}\n */\n dietaryVitaminB6 = 'HKQuantityTypeIdentifierDietaryVitaminB6', // Mass, Cumulative\n\n /**\n * Dietary Vitamin B12\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb12 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB12}\n */\n dietaryVitaminB12 = 'HKQuantityTypeIdentifierDietaryVitaminB12', // Mass, Cumulative\n\n /**\n * Dietary Vitamin C\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminc Apple Docs HKQuantityTypeIdentifierDietaryVitaminC}\n */\n dietaryVitaminC = 'HKQuantityTypeIdentifierDietaryVitaminC', // Mass, Cumulative\n\n /**\n * Dietary Vitamin D\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamind Apple Docs HKQuantityTypeIdentifierDietaryVitaminD}\n */\n dietaryVitaminD = 'HKQuantityTypeIdentifierDietaryVitaminD', // Mass, Cumulative\n\n /**\n * Dietary Vitamin E\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamine Apple Docs HKQuantityTypeIdentifierDietaryVitaminE}\n */\n dietaryVitaminE = 'HKQuantityTypeIdentifierDietaryVitaminE', // Mass, Cumulative\n\n /**\n * Dietary Vitamin K\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamink Apple Docs HKQuantityTypeIdentifierDietaryVitaminK}\n */\n dietaryVitaminK = 'HKQuantityTypeIdentifierDietaryVitaminK', // Mass, Cumulative\n /**\n * Dietary Calcium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycalcium Apple Docs HKQuantityTypeIdentifierDietaryCalcium}\n */\n dietaryCalcium = 'HKQuantityTypeIdentifierDietaryCalcium', // Mass, Cumulative\n\n /**\n * Dietary Iron\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiron Apple Docs HKQuantityTypeIdentifierDietaryIron}\n */\n dietaryIron = 'HKQuantityTypeIdentifierDietaryIron', // Mass, Cumulative\n\n /**\n * Dietary Thiamin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarythiamin Apple Docs HKQuantityTypeIdentifierDietaryThiamin}\n */\n dietaryThiamin = 'HKQuantityTypeIdentifierDietaryThiamin', // Mass, Cumulative\n\n /**\n * Dietary Riboflavin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryriboflavin Apple Docs HKQuantityTypeIdentifierDietaryRiboflavin}\n */\n dietaryRiboflavin = 'HKQuantityTypeIdentifierDietaryRiboflavin', // Mass, Cumulative\n\n /**\n * Dietary Niacin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryniacin Apple Docs HKQuantityTypeIdentifierDietaryNiacin}\n */\n dietaryNiacin = 'HKQuantityTypeIdentifierDietaryNiacin', // Mass, Cumulative\n\n /**\n * Dietary Folate\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfolate Apple Docs HKQuantityTypeIdentifierDietaryFolate}\n */\n dietaryFolate = 'HKQuantityTypeIdentifierDietaryFolate', // Mass, Cumulative\n\n /**\n * Dietary Biotin\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarybiotin Apple Docs HKQuantityTypeIdentifierDietaryBiotin}\n */\n dietaryBiotin = 'HKQuantityTypeIdentifierDietaryBiotin', // Mass, Cumulative\n\n /**\n * Dietary Pantothenic Acid\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypantothenicacid Apple Docs HKQuantityTypeIdentifierDietaryPantothenicAcid}\n */\n dietaryPantothenicAcid = 'HKQuantityTypeIdentifierDietaryPantothenicAcid', // Mass, Cumulative\n\n /**\n * Dietary Phosphorus\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryphosphorus Apple Docs HKQuantityTypeIdentifierDietaryPhosphorus}\n */\n dietaryPhosphorus = 'HKQuantityTypeIdentifierDietaryPhosphorus', // Mass, Cumulative\n\n /**\n * Dietary Iodine\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiodine Apple Docs HKQuantityTypeIdentifierDietaryIodine}\n */\n dietaryIodine = 'HKQuantityTypeIdentifierDietaryIodine', // Mass, Cumulative\n /**\n * Dietary Magnesium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymagnesium Apple Docs HKQuantityTypeIdentifierDietaryMagnesium}\n */\n dietaryMagnesium = 'HKQuantityTypeIdentifierDietaryMagnesium', // Mass, Cumulative\n\n /**\n * Dietary Zinc\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryzinc Apple Docs HKQuantityTypeIdentifierDietaryZinc}\n */\n dietaryZinc = 'HKQuantityTypeIdentifierDietaryZinc', // Mass, Cumulative\n\n /**\n * Dietary Selenium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryselenium Apple Docs HKQuantityTypeIdentifierDietarySelenium}\n */\n dietarySelenium = 'HKQuantityTypeIdentifierDietarySelenium', // Mass, Cumulative\n\n /**\n * Dietary Copper\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycopper Apple Docs HKQuantityTypeIdentifierDietaryCopper}\n */\n dietaryCopper = 'HKQuantityTypeIdentifierDietaryCopper', // Mass, Cumulative\n\n /**\n * Dietary Manganese\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymanganese Apple Docs HKQuantityTypeIdentifierDietaryManganese}\n */\n dietaryManganese = 'HKQuantityTypeIdentifierDietaryManganese', // Mass, Cumulative\n\n /**\n * Dietary Chromium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychromium Apple Docs HKQuantityTypeIdentifierDietaryChromium}\n */\n dietaryChromium = 'HKQuantityTypeIdentifierDietaryChromium', // Mass, Cumulative\n\n /**\n * Dietary Molybdenum\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymolybdenum Apple Docs HKQuantityTypeIdentifierDietaryMolybdenum}\n */\n dietaryMolybdenum = 'HKQuantityTypeIdentifierDietaryMolybdenum', // Mass, Cumulative\n\n /**\n * Dietary Chloride\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychloride Apple Docs HKQuantityTypeIdentifierDietaryChloride}\n * @since iOS 8\n */\n dietaryChloride = 'HKQuantityTypeIdentifierDietaryChloride', // Mass, Cumulative\n\n /**\n * Dietary Potassium\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypotassium Apple Docs HKQuantityTypeIdentifierDietaryPotassium}\n * @since iOS 8\n */\n dietaryPotassium = 'HKQuantityTypeIdentifierDietaryPotassium', // Mass, Cumulative\n\n /**\n * Dietary Caffeine\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycaffeine Apple Docs HKQuantityTypeIdentifierDietaryCaffeine}\n * @since iOS 8\n */\n dietaryCaffeine = 'HKQuantityTypeIdentifierDietaryCaffeine', // Mass, Cumulative\n\n /**\n * Dietary Water\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarywater Apple Docs HKQuantityTypeIdentifierDietaryWater}\n * @since iOS 9\n */\n dietaryWater = 'HKQuantityTypeIdentifierDietaryWater', // Volume, Cumulative\n\n // Mobility\n /**\n * Six Minute Walk Test Distance\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiersixminutewalktestdistance Apple Docs HKQuantityTypeIdentifierSixMinuteWalkTestDistance}\n * @since iOS 14\n */\n sixMinuteWalkTestDistance = 'HKQuantityTypeIdentifierSixMinuteWalkTestDistance',\n\n /**\n * Walking Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingspeed Apple Docs HKQuantityTypeIdentifierWalkingSpeed}\n * @since iOS 14\n */\n walkingSpeed = 'HKQuantityTypeIdentifierWalkingSpeed',\n\n /**\n * Walking Step Length\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingsteplength Apple Docs HKQuantityTypeIdentifierWalkingStepLength}\n * @since iOS 14\n */\n walkingStepLength = 'HKQuantityTypeIdentifierWalkingStepLength',\n\n /**\n * Walking Asymmetry Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingasymmetrypercentage Apple Docs HKQuantityTypeIdentifierWalkingAsymmetryPercentage}\n * @since iOS 14\n */\n walkingAsymmetryPercentage = 'HKQuantityTypeIdentifierWalkingAsymmetryPercentage',\n\n /**\n * Walking Double Support Percentage\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingdoublesupportpercentage Apple Docs HKQuantityTypeIdentifierWalkingDoubleSupportPercentage}\n * @since iOS 14\n */\n walkingDoubleSupportPercentage = 'HKQuantityTypeIdentifierWalkingDoubleSupportPercentage',\n\n /**\n * Stair Ascent Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairascentspeed Apple Docs HKQuantityTypeIdentifierStairAscentSpeed}\n * @since iOS 14\n */\n stairAscentSpeed = 'HKQuantityTypeIdentifierStairAscentSpeed',\n\n /**\n * Stair Descent Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairdescentspeed Apple Docs HKQuantityTypeIdentifierStairDescentSpeed}\n * @since iOS 14\n */\n stairDescentSpeed = 'HKQuantityTypeIdentifierStairDescentSpeed',\n\n /**\n * UV Exposure\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieruvexposure Apple Docs HKQuantityTypeIdentifierUVExposure}\n * @since iOS 9\n */\n uvExposure = 'HKQuantityTypeIdentifierUVExposure', // Scalar (Count), Discrete\n\n /**\n * Apple Move Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplemovetime Apple Docs HKQuantityTypeIdentifierAppleMoveTime}\n * @since iOS 14.5\n */\n appleMoveTime = 'HKQuantityTypeIdentifierAppleMoveTime', // Time, Cumulative\n\n /**\n * Apple Walking Steadiness\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplewalkingsteadiness Apple Docs HKQuantityTypeIdentifierAppleWalkingSteadiness}\n * @since iOS 15\n */\n appleWalkingSteadiness = 'HKQuantityTypeIdentifierAppleWalkingSteadiness', // Scalar(Percent, 0.0 - 1.0), Discrete\n\n /**\n * Number Of Alcoholic Beverages\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberofalcoholicbeverages Apple Docs HKQuantityTypeIdentifierNumberOfAlcoholicBeverages}\n * @since iOS 15\n */\n numberOfAlcoholicBeverages = 'HKQuantityTypeIdentifierNumberOfAlcoholicBeverages', // Scalar(Count), Cumulative\n\n /**\n * Atrial Fibrillation Burden\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieratrialfibrillationburden Apple Docs HKQuantityTypeIdentifierAtrialFibrillationBurden}\n * @since iOS 16\n */\n atrialFibrillationBurden = 'HKQuantityTypeIdentifierAtrialFibrillationBurden', // Scalar(Percent, 0.0 - 1.0), Discrete\n\n /**\n * Underwater Depth\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierunderwaterdepth Apple Docs HKQuantityTypeIdentifierUnderwaterDepth}\n * @since iOS 16\n */\n underwaterDepth = 'HKQuantityTypeIdentifierUnderwaterDepth', // Length, Discrete\n\n /**\n * Water Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwatertemperature Apple Docs HKQuantityTypeIdentifierWaterTemperature}\n * @since iOS 16\n */\n waterTemperature = 'HKQuantityTypeIdentifierWaterTemperature', // Temperature, Discrete\n\n /**\n * Apple Sleeping Wrist Temperature\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplesleepingwristtemperature Apple Docs HKQuantityTypeIdentifierAppleSleepingWristTemperature}\n * @since iOS 17\n */\n appleSleepingWristTemperature = 'HKQuantityTypeIdentifierAppleSleepingWristTemperature', // Temperature, Discrete\n\n /**\n * Time In Daylight\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiertimeindaylight Apple Docs HKQuantityTypeIdentifierTimeInDaylight}\n * @since iOS 17\n */\n timeInDaylight = 'HKQuantityTypeIdentifierTimeInDaylight', // Time, Cumulative\n\n /**\n * Physical Effort\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierphysicaleffort Apple Docs HKQuantityTypeIdentifierPhysicalEffort}\n * @since iOS 17\n */\n physicalEffort = 'HKQuantityTypeIdentifierPhysicalEffort', // Scalar (Percent, 0.0 - 1.0), Discrete\n\n /**\n * Cycling Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingspeed Apple Docs HKQuantityTypeIdentifierCyclingSpeed}\n * @since iOS 17\n */\n cyclingSpeed = 'HKQuantityTypeIdentifierCyclingSpeed',\n\n /**\n * Cycling Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingpower Apple Docs HKQuantityTypeIdentifierCyclingPower}\n * @since iOS 17\n */\n cyclingPower = 'HKQuantityTypeIdentifierCyclingPower',\n\n /**\n * Cycling Functional Threshold Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingfunctionalthresholdpower Apple Docs HKQuantityTypeIdentifierCyclingFunctionalThresholdPower}\n * @since iOS 17\n */\n cyclingFunctionalThresholdPower = 'HKQuantityTypeIdentifierCyclingFunctionalThresholdPower',\n\n /**\n * Cycling Cadence\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingcadence Apple Docs HKQuantityTypeIdentifierCyclingCadence}\n * @since iOS 17\n */\n cyclingCadence = 'HKQuantityTypeIdentifierCyclingCadence',\n\n /**\n * Environmental Sound Reduction\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalsoundreduction Apple Docs HKQuantityTypeIdentifierEnvironmentalSoundReduction}\n * @since iOS 16\n */\n environmentalSoundReduction = 'HKQuantityTypeIdentifierEnvironmentalSoundReduction',\n\n /**\n * Heart Rate Recovery One Minute\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartraterecoveryoneminute Apple Docs HKQuantityTypeIdentifierHeartRateRecoveryOneMinute}\n * @since iOS 16\n */\n heartRateRecoveryOneMinute = 'HKQuantityTypeIdentifierHeartRateRecoveryOneMinute',\n\n /**\n * Running Ground Contact Time\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunninggroundcontacttime Apple Docs HKQuantityTypeIdentifierRunningGroundContactTime}\n * @since iOS 16\n */\n runningGroundContactTime = 'HKQuantityTypeIdentifierRunningGroundContactTime',\n\n /**\n * Running Stride Length\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningstridelength Apple Docs HKQuantityTypeIdentifierRunningStrideLength}\n * @since iOS 16\n */\n runningStrideLength = 'HKQuantityTypeIdentifierRunningStrideLength',\n\n /**\n * Running Power\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningpower Apple Docs HKQuantityTypeIdentifierRunningPower}\n * @since iOS 16\n */\n runningPower = 'HKQuantityTypeIdentifierRunningPower',\n\n /**\n * Running Vertical Oscillation\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningverticaloscillation Apple Docs HKQuantityTypeIdentifierRunningVerticalOscillation}\n * @since iOS 16\n */\n runningVerticalOscillation = 'HKQuantityTypeIdentifierRunningVerticalOscillation',\n\n /**\n * Running Speed\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningspeed Apple Docs HKQuantityTypeIdentifierRunningSpeed}\n * @since iOS 16\n */\n runningSpeed = 'HKQuantityTypeIdentifierRunningSpeed',\n}\n\nexport type TypeToUnitMapping = {\n readonly [key in HKQuantityTypeIdentifier]: HKUnit;\n};\n\nexport enum HKCategoryValueLowCardioFitnessEvent {\n lowFitness = 1,\n}\n\nexport enum HKHeartRateMotionContext {\n active = 2,\n notSet = 0,\n sedentary = 1,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcorrelationtypeidentifier Apple Docs }\n */\nexport enum HKCorrelationTypeIdentifier {\n bloodPressure = 'HKCorrelationTypeIdentifierBloodPressure',\n food = 'HKCorrelationTypeIdentifierFood',\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier Apple Docs }\n */\nexport enum HKCategoryTypeIdentifier {\n sleepAnalysis = 'HKCategoryTypeIdentifierSleepAnalysis',\n appleStandHour = 'HKCategoryTypeIdentifierAppleStandHour',\n cervicalMucusQuality = 'HKCategoryTypeIdentifierCervicalMucusQuality',\n ovulationTestResult = 'HKCategoryTypeIdentifierOvulationTestResult',\n menstrualFlow = 'HKCategoryTypeIdentifierMenstrualFlow',\n intermenstrualBleeding = 'HKCategoryTypeIdentifierIntermenstrualBleeding',\n sexualActivity = 'HKCategoryTypeIdentifierSexualActivity',\n mindfulSession = 'HKCategoryTypeIdentifierMindfulSession',\n highHeartRateEvent = 'HKCategoryTypeIdentifierHighHeartRateEvent',\n lowHeartRateEvent = 'HKCategoryTypeIdentifierLowHeartRateEvent',\n irregularHeartRhythmEvent = 'HKCategoryTypeIdentifierIrregularHeartRhythmEvent',\n /**\n * @deprecated Use environmentalAudioExposureEvent instead.\n */\n audioExposureEvent = 'HKCategoryTypeIdentifierAudioExposureEvent',\n toothbrushingEvent = 'HKCategoryTypeIdentifierToothbrushingEvent',\n lowCardioFitnessEvent = 'HKCategoryTypeIdentifierLowCardioFitnessEvent',\n contraceptive = 'HKCategoryTypeIdentifierContraceptive',\n lactation = 'HKCategoryTypeIdentifierLactation',\n pregnancy = 'HKCategoryTypeIdentifierPregnancy',\n pregnancyTestResult = 'HKCategoryTypeIdentifierPregnancyTestResult',\n progesteroneTestResult = 'HKCategoryTypeIdentifierProgesteroneTestResult',\n environmentalAudioExposureEvent = 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent',\n headphoneAudioExposureEvent = 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent',\n appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',\n handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue\n\n // Symptoms\n abdominalCramps = 'HKCategoryTypeIdentifierAbdominalCramps', // HKCategoryValueSeverity\n acne = 'HKCategoryTypeIdentifierAcne', // HKCategoryValueSeverity\n appetiteChanges = 'HKCategoryTypeIdentifierAppetiteChanges', // HKCategoryValueAppetiteChanges\n bladderIncontinence = 'HKCategoryTypeIdentifierBladderIncontinence', // HKCategoryValueSeverity\n bloating = 'HKCategoryTypeIdentifierBloating', // HKCategoryValueSeverity\n breastPain = 'HKCategoryTypeIdentifierBreastPain', // HKCategoryValueSeverity\n chestTightnessOrPain = 'HKCategoryTypeIdentifierChestTightnessOrPain', // HKCategoryValueSeverity\n chills = 'HKCategoryTypeIdentifierChills', // HKCategoryValueSeverity\n constipation = 'HKCategoryTypeIdentifierConstipation', // HKCategoryValueSeverity\n coughing = 'HKCategoryTypeIdentifierCoughing', // HKCategoryValueSeverity\n diarrhea = 'HKCategoryTypeIdentifierDiarrhea', // HKCategoryValueSeverity\n dizziness = 'HKCategoryTypeIdentifierDizziness', // HKCategoryValueSeverity\n drySkin = 'HKCategoryTypeIdentifierDrySkin', // HKCategoryValueSeverity\n fainting = 'HKCategoryTypeIdentifierFainting', // HKCategoryValueSeverity\n fatigue = 'HKCategoryTypeIdentifierFatigue', // HKCategoryValueSeverity\n fever = 'HKCategoryTypeIdentifierFever', // HKCategoryValueSeverity\n generalizedBodyAche = 'HKCategoryTypeIdentifierGeneralizedBodyAche', // HKCategoryValueSeverity\n hairLoss = 'HKCategoryTypeIdentifierHairLoss', // HKCategoryValueSeverity\n headache = 'HKCategoryTypeIdentifierHeadache', // HKCategoryValueSeverity\n heartburn = 'HKCategoryTypeIdentifierHeartburn', // HKCategoryValueSeverity\n hotFlashes = 'HKCategoryTypeIdentifierHotFlashes', // HKCategoryValueSeverity\n lossOfSmell = 'HKCategoryTypeIdentifierLossOfSmell', // HKCategoryValueSeverity\n lossOfTaste = 'HKCategoryTypeIdentifierLossOfTaste', // HKCategoryValueSeverity\n lowerBackPain = 'HKCategoryTypeIdentifierLowerBackPain', // HKCategoryValueSeverity\n memoryLapse = 'HKCategoryTypeIdentifierMemoryLapse', // HKCategoryValueSeverity\n moodChanges = 'HKCategoryTypeIdentifierMoodChanges', // HKCategoryValuePresence\n nausea = 'HKCategoryTypeIdentifierNausea', // HKCategoryValueSeverity\n nightSweats = 'HKCategoryTypeIdentifierNightSweats', // HKCategoryValueSeverity\n pelvicPain = 'HKCategoryTypeIdentifierPelvicPain', // HKCategoryValueSeverity\n rapidPoundingOrFlutteringHeartbeat = 'HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat', // HKCategoryValueSeverity\n runnyNose = 'HKCategoryTypeIdentifierRunnyNose', // HKCategoryValueSeverity\n shortnessOfBreath = 'HKCategoryTypeIdentifierShortnessOfBreath', // HKCategoryValueSeverity\n sinusCongestion = 'HKCategoryTypeIdentifierSinusCongestion', // HKCategoryValueSeverity\n skippedHeartbeat = 'HKCategoryTypeIdentifierSkippedHeartbeat', // HKCategoryValueSeverity\n sleepChanges = 'HKCategoryTypeIdentifierSleepChanges', // HKCategoryValuePresence\n soreThroat = 'HKCategoryTypeIdentifierSoreThroat', // HKCategoryValueSeverity\n vaginalDryness = 'HKCategoryTypeIdentifierVaginalDryness', // HKCategoryValueSeverity\n vomiting = 'HKCategoryTypeIdentifierVomiting', // HKCategoryValueSeverity\n wheezing = 'HKCategoryTypeIdentifierWheezing', // HKCategoryValueSeverity\n}\n\nexport type HKSampleTypeIdentifier =\n | HKCategoryTypeIdentifier\n | HKCorrelationTypeIdentifier\n | HKQuantityTypeIdentifier\n | typeof HKActivitySummaryTypeIdentifier\n | typeof HKAudiogramTypeIdentifier\n | typeof HKDataTypeIdentifierHeartbeatSeries\n | typeof HKWorkoutRouteTypeIdentifier\n | typeof HKWorkoutTypeIdentifier\n | `${HKCategoryTypeIdentifier}`\n | `${HKCorrelationTypeIdentifier}`\n | `${HKQuantityTypeIdentifier}`;\n\nexport type HealthkitReadAuthorization =\n | HKCharacteristicTypeIdentifier\n | HKSampleTypeIdentifier\n | `${HKCharacteristicTypeIdentifier}`\n | `${HKSampleTypeIdentifier}`;\nexport type HealthkitWriteAuthorization = HKSampleTypeIdentifier;\n\nexport enum HKCategoryValueAppleStandHour {\n stood = 0,\n idle = 1,\n}\n\nexport enum HKWorkoutActivityType {\n americanFootball = 1,\n archery = 2,\n australianFootball = 3,\n badminton = 4,\n baseball = 5,\n basketball = 6,\n bowling = 7,\n boxing = 8, // See also HKWorkoutActivityTypeKickboxing.,\n climbing = 9,\n cricket = 10,\n crossTraining = 11, // Any mix of cardio and/or strength training. See also HKWorkoutActivityTypeCoreTraining and HKWorkoutActivityTypeFlexibility.,\n curling = 12,\n cycling = 13,\n dance = 14,\n danceInspiredTraining = 15, // This enum remains available to access older data.,\n elliptical = 16,\n equestrianSports = 17, // Polo, Horse Racing, Horse Riding, etc.,\n fencing = 18,\n fishing = 19,\n functionalStrengthTraining = 20, // Primarily free weights and/or body weight and/or accessories,\n golf = 21,\n gymnastics = 22,\n handball = 23,\n hiking = 24,\n hockey = 25, // Ice Hockey, Field Hockey, etc.,\n hunting = 26,\n lacrosse = 27,\n martialArts = 28,\n mindAndBody = 29, // Qigong, meditation, etc.,\n mixedMetabolicCardioTraining = 30, // This enum remains available to access older data.,\n paddleSports = 31, // Canoeing, Kayaking, Outrigger, Stand Up Paddle Board, etc.,\n play = 32, // Dodge Ball, Hopscotch, Tetherball, Jungle Gym, etc.,\n preparationAndRecovery = 33, // Foam rolling, stretching, etc.,\n racquetball = 34,\n rowing = 35,\n rugby = 36,\n running = 37,\n sailing = 38,\n skatingSports = 39, // Ice Skating, Speed Skating, Inline Skating, Skateboarding, etc.,\n snowSports = 40, // Sledding, Snowmobiling, Building a Snowman, etc. See also HKWorkoutActivityTypeCrossCountrySkiing, HKWorkoutActivityTypeSnowboarding, and HKWorkoutActivityTypeDownhillSkiing.,\n soccer = 41,\n softball = 42,\n squash = 43,\n stairClimbing = 44, // See also HKWorkoutActivityTypeStairs and HKWorkoutActivityTypeStepTraining.,\n surfingSports = 45, // Traditional Surfing, Kite Surfing, Wind Surfing, etc.,\n swimming = 46,\n tableTennis = 47,\n tennis = 48,\n trackAndField = 49, // Shot Put, Javelin, Pole Vaulting, etc.,\n traditionalStrengthTraining = 50, // Primarily machines and/or free weights,\n volleyball = 51,\n walking = 52,\n waterFitness = 53,\n waterPolo = 54,\n waterSports = 55, // Water Skiing, Wake Boarding, etc.,\n wrestling = 56,\n yoga = 57,\n barre = 58, // HKWorkoutActivityTypeDanceInspiredTraining,\n coreTraining = 59,\n crossCountrySkiing = 60,\n downhillSkiing = 61,\n flexibility = 62,\n highIntensityIntervalTraining = 63,\n jumpRope = 64,\n kickboxing = 65,\n pilates = 66, // HKWorkoutActivityTypeDanceInspiredTraining,\n snowboarding = 67,\n stairs = 68,\n stepTraining = 69,\n wheelchairWalkPace = 70,\n wheelchairRunPace = 71,\n taiChi = 72,\n mixedCardio = 73, // HKWorkoutActivityTypeMixedMetabolicCardioTraining,\n handCycling = 74,\n discSports = 75,\n fitnessGaming = 76,\n other = 3000,\n}\n\nexport type HKGenericMetadata = {\n readonly [key: string]: HKQuantity | boolean | number | string | undefined;\n readonly HKExternalUUID?: string;\n readonly HKTimeZone?: string;\n readonly HKWasUserEntered?: boolean;\n readonly HKDeviceSerialNumber?: string;\n readonly HKUDIDeviceIdentifier?: string;\n readonly HKUDIProductionIdentifier?: string;\n readonly HKDigitalSignature?: string;\n readonly HKDeviceName?: string;\n readonly HKDeviceManufacturerName?: string;\n readonly HKSyncIdentifier?: string;\n readonly HKSyncVersion?: number;\n readonly HKWasTakenInLab?: boolean;\n readonly HKReferenceRangeLowerLimit?: number;\n readonly HKReferenceRangeUpperLimit?: number;\n};\n\n// documented at https://developer.apple.com/documentation/healthkit/hkweathercondition\nexport enum HKWeatherCondition {\n none = 0,\n clear = 1,\n fair = 2,\n partlyCloudy = 3,\n mostlyCloudy = 4,\n cloudy = 5,\n foggy = 6,\n haze = 7,\n windy = 8,\n blustery = 9,\n smoky = 10,\n dust = 11,\n snow = 12,\n hail = 13,\n sleet = 14,\n freezingDrizzle = 15,\n freezingRain = 16,\n mixedRainAndHail = 17,\n mixedRainAndSnow = 18,\n mixedRainAndSleet = 19,\n mixedSnowAndSleet = 20,\n drizzle = 21,\n scatteredShowers = 22,\n showers = 23,\n thunderstorms = 24,\n tropicalStorm = 25,\n hurricane = 26,\n tornado = 27,\n}\n\nenum HKIndoorWorkout {\n false = 0,\n true = 1,\n}\n\nexport interface HKWorkoutMetadata\n extends HKGenericMetadata /* */ {\n readonly HKWeatherCondition?: HKWeatherCondition;\n readonly HKWeatherHumidity?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Percent\n >;\n // HKWeatherTemperature: HKQuantity\n readonly HKAverageMETs?: HKQuantity;\n readonly HKElevationAscended?: HKQuantity<\n HKQuantityTypeIdentifier,\n LengthUnit\n >;\n readonly HKIndoorWorkout?: HKIndoorWorkout;\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationrequeststatus Apple Docs }\n */\nexport enum HKAuthorizationRequestStatus {\n unknown = 0,\n shouldRequest = 1,\n unnecessary = 2,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationstatus Apple Docs }\n */\nexport enum HKAuthorizationStatus {\n notDetermined = 0,\n sharingDenied = 1,\n sharingAuthorized = 2,\n}\n\nexport type HKQuantity<\n TIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = {\n readonly unit: TUnit;\n readonly quantity: number;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkbloodtype Apple Docs }\n */\nexport enum HKBloodType {\n notSet = 0,\n aPositive = 1,\n aNegative = 2,\n bPositive = 3,\n bNegative = 4,\n abPositive = 5,\n abNegative = 6,\n oPositive = 7,\n oNegative = 8,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkbiologicalsex Apple Docs }\n */\nexport enum HKBiologicalSex {\n notSet = 0,\n female = 1,\n male = 2,\n other = 3,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkfitzpatrickskintype Apple Docs }\n */\nexport enum HKFitzpatrickSkinType {\n notSet = 0,\n I = 1,\n II = 2,\n III = 3,\n IV = 4,\n V = 5,\n VI = 6,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkstatisticsoptions Apple Docs }\n */\nexport enum HKStatisticsOptions {\n cumulativeSum = 'cumulativeSum',\n discreteAverage = 'discreteAverage',\n discreteMax = 'discreteMax',\n discreteMin = 'discreteMin',\n discreteMostRecent = 'discreteMostRecent',\n duration = 'duration',\n mostRecent = 'mostRecent',\n separateBySource = 'separateBySource',\n}\n\nexport type QueryStatisticsResponseRaw<\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n> = {\n readonly averageQuantity?: HKQuantity;\n readonly maximumQuantity?: HKQuantity;\n readonly minimumQuantity?: HKQuantity;\n readonly sumQuantity?: HKQuantity;\n readonly mostRecentQuantity?: HKQuantity;\n readonly mostRecentQuantityDateInterval?: {\n readonly from: string;\n readonly to: string;\n };\n readonly duration?: HKQuantity;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality Apple Docs }\n */\nexport enum HKCategoryValueCervicalMucusQuality {\n dry = 1,\n sticky = 2,\n creamy = 3,\n watery = 4,\n eggWhite = 5,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow Apple Docs }\n */\nexport enum HKCategoryValueMenstrualFlow {\n unspecified = 1,\n none = 5,\n light = 2,\n medium = 3,\n heavy = 4,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult Apple Docs }\n */\nexport enum HKCategoryValueOvulationTestResult {\n negative = 1,\n luteinizingHormoneSurge = 2,\n indeterminate = 3,\n estrogenSurge = 4,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis Apple Docs }\n */\nexport enum HKCategoryValueSleepAnalysis {\n inBed = 0,\n asleepUnspecified = 1,\n awake = 2,\n asleepCore = 3,\n asleepDeep = 4,\n asleepREM = 5,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges\n */\nexport enum HKCategoryValueAppetiteChanges {\n decreased = 2,\n increased = 3,\n noChange = 1,\n unspecified = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence\n */\nexport enum HKCategoryValuePresence {\n notPresent = 1,\n present = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity Apple Docs }\n */\nexport enum HKCategoryValueSeverity {\n notPresent = 1,\n mild = 2,\n moderate = 3,\n severe = 4,\n unspecified = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue/notapplicable Apple Docs }\n */\nexport enum HKCategoryValueNotApplicable {\n notApplicable = 0,\n}\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue Apple Docs }\n */\nexport type HKCategoryValue =\n | HKCategoryValueAppetiteChanges\n | HKCategoryValueCervicalMucusQuality\n | HKCategoryValueLowCardioFitnessEvent\n | HKCategoryValueMenstrualFlow\n | HKCategoryValueOvulationTestResult\n | HKCategoryValuePresence\n | HKCategoryValueSeverity\n | HKCategoryValueSleepAnalysis\n | number;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkinsulindeliveryreason Apple Docs }\n */\nexport enum HKInsulinDeliveryReason {\n basal = 1,\n bolus = 2,\n}\n\nexport type MetadataMapperForQuantityIdentifier<\n TQuantityTypeIdentifier = HKQuantityTypeIdentifier\n> = TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.insulinDelivery\n ? HKGenericMetadata & {\n readonly HKInsulinDeliveryReason: HKInsulinDeliveryReason;\n }\n : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.bloodGlucose\n ? HKGenericMetadata & {\n readonly HKBloodGlucoseMealTime?: number;\n }\n : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.heartRate\n ? HKGenericMetadata & {\n readonly HKHeartRateMotionContext?: HKHeartRateMotionContext;\n }\n : HKGenericMetadata;\n\nexport type MetadataMapperForCorrelationIdentifier<\n TCorrelationTypeIdentifier = HKCorrelationTypeIdentifier\n> = TCorrelationTypeIdentifier extends HKCorrelationTypeIdentifier.food\n ? HKGenericMetadata & {\n readonly HKFoodType?: string;\n }\n : HKGenericMetadata;\n\nexport type UnitForIdentifier =\n T extends HKQuantityTypeIdentifier.bloodGlucose\n ? BloodGlucoseUnit\n : T extends\n | HKQuantityTypeIdentifier.appleExerciseTime\n | HKQuantityTypeIdentifier.appleMoveTime\n | HKQuantityTypeIdentifier.appleStandTime\n ? TimeUnit\n : T extends\n | HKQuantityTypeIdentifier.activeEnergyBurned\n | HKQuantityTypeIdentifier.basalEnergyBurned\n | HKQuantityTypeIdentifier.dietaryEnergyConsumed\n ? EnergyUnit\n : T extends\n | HKQuantityTypeIdentifier.distanceCycling\n | HKQuantityTypeIdentifier.distanceDownhillSnowSports\n | HKQuantityTypeIdentifier.distanceSwimming\n | HKQuantityTypeIdentifier.distanceWalkingRunning\n | HKQuantityTypeIdentifier.distanceWheelchair\n | HKQuantityTypeIdentifier.sixMinuteWalkTestDistance\n | HKQuantityTypeIdentifier.waistCircumference\n ? LengthUnit\n : T extends\n | HKQuantityTypeIdentifier.bodyFatPercentage\n | HKQuantityTypeIdentifier.oxygenSaturation\n | HKQuantityTypeIdentifier.walkingAsymmetryPercentage\n | HKQuantityTypeIdentifier.walkingDoubleSupportPercentage\n ? HKUnits.Percent\n : T extends\n | HKQuantityTypeIdentifier.basalBodyTemperature\n | HKQuantityTypeIdentifier.basalBodyTemperature\n ? TemperatureUnit\n : T extends\n | HKQuantityTypeIdentifier.runningSpeed\n | HKQuantityTypeIdentifier.stairAscentSpeed\n | HKQuantityTypeIdentifier.stairDescentSpeed\n | HKQuantityTypeIdentifier.walkingSpeed\n | HKQuantityTypeIdentifier.walkingSpeed\n ? SpeedUnit\n : T extends\n | HKQuantityTypeIdentifier.flightsClimbed\n | HKQuantityTypeIdentifier.numberOfAlcoholicBeverages\n | HKQuantityTypeIdentifier.numberOfTimesFallen\n | HKQuantityTypeIdentifier.pushCount\n | HKQuantityTypeIdentifier.stepCount\n | HKQuantityTypeIdentifier.swimmingStrokeCount\n ? HKUnits.Count\n : T extends\n | HKQuantityTypeIdentifier.dietaryBiotin\n | HKQuantityTypeIdentifier.dietaryCaffeine\n | HKQuantityTypeIdentifier.dietaryCalcium\n | HKQuantityTypeIdentifier.dietaryCarbohydrates\n | HKQuantityTypeIdentifier.dietaryChloride\n | HKQuantityTypeIdentifier.dietaryCholesterol\n | HKQuantityTypeIdentifier.dietaryChromium\n | HKQuantityTypeIdentifier.dietaryCopper\n | HKQuantityTypeIdentifier.dietaryFatMonounsaturated\n | HKQuantityTypeIdentifier.dietaryFatPolyunsaturated\n | HKQuantityTypeIdentifier.dietaryFatSaturated\n | HKQuantityTypeIdentifier.dietaryFatTotal\n | HKQuantityTypeIdentifier.dietaryFiber\n | HKQuantityTypeIdentifier.dietaryFolate\n | HKQuantityTypeIdentifier.dietaryIodine\n | HKQuantityTypeIdentifier.dietaryIodine\n | HKQuantityTypeIdentifier.dietaryIron\n | HKQuantityTypeIdentifier.dietaryMagnesium\n | HKQuantityTypeIdentifier.dietaryManganese\n | HKQuantityTypeIdentifier.dietaryMolybdenum\n | HKQuantityTypeIdentifier.dietaryNiacin\n | HKQuantityTypeIdentifier.dietaryPantothenicAcid\n | HKQuantityTypeIdentifier.dietaryPhosphorus\n | HKQuantityTypeIdentifier.dietaryPotassium\n | HKQuantityTypeIdentifier.dietaryProtein\n | HKQuantityTypeIdentifier.dietaryRiboflavin\n | HKQuantityTypeIdentifier.dietarySelenium\n | HKQuantityTypeIdentifier.dietarySodium\n | HKQuantityTypeIdentifier.dietarySugar\n | HKQuantityTypeIdentifier.dietaryThiamin\n | HKQuantityTypeIdentifier.dietaryVitaminA\n | HKQuantityTypeIdentifier.dietaryVitaminB6\n | HKQuantityTypeIdentifier.dietaryVitaminB12\n | HKQuantityTypeIdentifier.dietaryVitaminC\n | HKQuantityTypeIdentifier.dietaryVitaminD\n | HKQuantityTypeIdentifier.dietaryVitaminE\n | HKQuantityTypeIdentifier.dietaryVitaminK\n | HKQuantityTypeIdentifier.dietaryZinc\n ? MassUnit\n : T extends HKQuantityTypeIdentifier.dietaryWater\n ? VolumeUnit\n : T extends HKQuantityTypeIdentifier.insulinDelivery\n ? HKUnits.InternationalUnit | `${HKUnits.InternationalUnit}`\n : T extends\n | HKQuantityTypeIdentifier.heartRate\n | HKQuantityTypeIdentifier.restingHeartRate\n | HKQuantityTypeIdentifier.walkingHeartRateAverage\n ? CountPerTime\n : HKUnit;\n\nexport type HKCategoryValueForIdentifier =\n T extends HKCategoryTypeIdentifier.cervicalMucusQuality\n ? HKCategoryValueCervicalMucusQuality\n : T extends HKCategoryTypeIdentifier.menstrualFlow\n ? HKCategoryValueMenstrualFlow\n : T extends HKCategoryTypeIdentifier.ovulationTestResult\n ? HKCategoryValueOvulationTestResult\n : T extends HKCategoryTypeIdentifier.sleepAnalysis\n ? HKCategoryValueSleepAnalysis\n : T extends\n | HKCategoryTypeIdentifier.highHeartRateEvent\n | HKCategoryTypeIdentifier.intermenstrualBleeding\n | HKCategoryTypeIdentifier.mindfulSession\n | HKCategoryTypeIdentifier.sexualActivity\n ? HKCategoryValueNotApplicable\n : T extends\n | HKCategoryTypeIdentifier.abdominalCramps\n | HKCategoryTypeIdentifier.abdominalCramps\n | HKCategoryTypeIdentifier.acne\n | HKCategoryTypeIdentifier.bladderIncontinence\n | HKCategoryTypeIdentifier.bloating\n | HKCategoryTypeIdentifier.breastPain\n | HKCategoryTypeIdentifier.chestTightnessOrPain\n | HKCategoryTypeIdentifier.chills\n | HKCategoryTypeIdentifier.constipation\n | HKCategoryTypeIdentifier.coughing\n | HKCategoryTypeIdentifier.diarrhea\n | HKCategoryTypeIdentifier.dizziness\n | HKCategoryTypeIdentifier.drySkin\n | HKCategoryTypeIdentifier.fainting\n | HKCategoryTypeIdentifier.fatigue\n | HKCategoryTypeIdentifier.fever\n | HKCategoryTypeIdentifier.generalizedBodyAche\n | HKCategoryTypeIdentifier.hairLoss\n | HKCategoryTypeIdentifier.headache\n | HKCategoryTypeIdentifier.heartburn\n | HKCategoryTypeIdentifier.hotFlashes\n | HKCategoryTypeIdentifier.lossOfSmell\n | HKCategoryTypeIdentifier.lossOfTaste\n | HKCategoryTypeIdentifier.lowerBackPain\n | HKCategoryTypeIdentifier.memoryLapse\n | HKCategoryTypeIdentifier.moodChanges\n | HKCategoryTypeIdentifier.nausea\n | HKCategoryTypeIdentifier.nightSweats\n | HKCategoryTypeIdentifier.pelvicPain\n | HKCategoryTypeIdentifier.rapidPoundingOrFlutteringHeartbeat\n | HKCategoryTypeIdentifier.runnyNose\n | HKCategoryTypeIdentifier.shortnessOfBreath\n | HKCategoryTypeIdentifier.sinusCongestion\n | HKCategoryTypeIdentifier.skippedHeartbeat\n | HKCategoryTypeIdentifier.soreThroat\n | HKCategoryTypeIdentifier.vaginalDryness\n | HKCategoryTypeIdentifier.vomiting\n | HKCategoryTypeIdentifier.wheezing\n ? HKCategoryValueSeverity\n : T extends\n | HKCategoryTypeIdentifier.appetiteChanges\n | HKCategoryTypeIdentifier.sleepChanges\n ? HKCategoryValuePresence\n : T extends HKCategoryTypeIdentifier.lowCardioFitnessEvent\n ? HKCategoryValueLowCardioFitnessEvent\n : T extends HKCategoryTypeIdentifier.pregnancyTestResult\n ? HKCategoryValuePregnancyTestResult\n : T extends HKCategoryTypeIdentifier.pregnancyTestResult\n ? HKCategoryValuePregnancyTestResult\n : T extends HKCategoryTypeIdentifier.appleStandHour\n ? HKCategoryValueAppleStandHour\n : number;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepregnancytestresult Apple Docs }\n */\nenum HKCategoryValuePregnancyTestResult {\n positive = 2,\n negative = 1,\n indeterminate = 3,\n}\n/* needs further mapping\n\ncontraceptive = 'HKCategoryTypeIdentifierContraceptive',\n lactation = 'HKCategoryTypeIdentifierLactation',\n pregnancy = 'HKCategoryTypeIdentifierPregnancy',\n\n progesteroneTestResult = 'HKCategoryTypeIdentifierProgesteroneTestResult',\n environmentalAudioExposureEvent = 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent',\n headphoneAudioExposureEvent = 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent',\n appleWalkingSteadinessEvent = 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent',\n handwashingEvent = 'HKCategoryTypeIdentifierHandwashingEvent', // HKCategoryValue */\n\nexport type HKHeartbeatSeriesSampleMetadata = HKGenericMetadata & {\n readonly HKMetadataKeyAlgorithmVersion: string;\n};\n\nexport type MetadataMapperForCategoryIdentifier<\n T extends HKCategoryTypeIdentifier\n> = T extends HKCategoryTypeIdentifier.sexualActivity\n ? HKGenericMetadata & {\n readonly HKSexualActivityProtectionUsed: boolean;\n }\n : T extends HKCategoryTypeIdentifier.menstrualFlow\n ? HKGenericMetadata & {\n readonly HKMenstrualCycleStart: boolean;\n }\n : HKGenericMetadata;\n\n// Maps directly to https://developer.apple.com/documentation/healthkit/hkwheelchairuse\nexport enum HKWheelchairUse {\n notSet = 0,\n no = 1,\n yes = 2,\n}\n\n// Unit types are a straight mapping from here https://developer.apple.com/documentation/healthkit/hkunit/1615733-init\nexport enum HKMetricPrefix {\n None = '',\n Pico = 'p',\n Nano = 'n',\n Micro = 'mc',\n Milli = 'm',\n Centi = 'c',\n Deci = 'd',\n Deca = 'da',\n Hecto = 'h',\n Kilo = 'k',\n Mega = 'M',\n Giga = 'G',\n Tera = 'T',\n Femto = 'f',\n}\n\nexport enum HKUnitMetric {\n Gram = 'g',\n Joule = 'J',\n Kelvin = 'K',\n Liter = 'l',\n Meter = 'm',\n Pascal = 'Pa',\n Second = 's',\n Siemen = 'S',\n Hertz = 'Hz',\n Volt = 'V',\n}\n\nexport enum HKUnits {\n DecibelHearingLevel = 'dBHL',\n DecibelSoundPressureLevel = 'dBASPL',\n\n Percent = '%',\n Count = 'count',\n InternationalUnit = 'IU',\n}\n\nexport type MeterUnit =\n `${Prefix}${HKUnitMetric.Meter}`;\nexport type LiterUnit =\n `${Prefix}${HKUnitMetric.Liter}`;\nexport type GramUnit =\n `${Prefix}${HKUnitMetric.Gram}`;\nexport type PascalUnit =\n `${Prefix}${HKUnitMetric.Pascal}`;\nexport type SecondUnit =\n `${Prefix}${HKUnitMetric.Second}`;\nexport type JouleUnit =\n `${Prefix}${HKUnitMetric.Joule}`;\nexport type HertzUnit =\n `${Prefix}${HKUnitMetric.Hertz}`;\nexport type VoltUnit =\n `${Prefix}${HKUnitMetric.Volt}`;\nexport type SiemenUnit =\n `${Prefix}${HKUnitMetric.Siemen}`;\n\n// not 100% sure about these\nexport type MoleUnit = `mol<${MolarMass}>`;\nexport type MoleUnitWith<\n MolarMass extends number,\n Prefix extends HKMetricPrefix = HKMetricPrefix.None\n> = `${Prefix}mol<${MolarMass}>`;\n\nexport type FrequencyUnit = HertzUnit;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'cm', 'km'\n */\nexport enum UnitOfLength {\n Feet = 'ft',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'cm', 'km'\n */\n Meter = 'm',\n Inches = 'in',\n Yards = 'yd',\n Miles = 'mi',\n}\nexport type LengthUnit = MeterUnit | UnitOfLength;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ml', 'cl'\n */\nexport enum UnitOfVolume {\n ImperialCup = 'cup_imp',\n ImperialFluidOunces = 'fl_oz_imp',\n ImperialPint = 'pt_imp',\n USCup = 'cup_us',\n USFluidOunces = 'fl_oz_us',\n USPint = 'pt_us',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'ml', 'cl'\n */\n Liter = 'l',\n}\nexport type VolumeUnit = LiterUnit | UnitOfVolume;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\nexport enum UnitOfMass {\n Ounces = 'oz',\n Stones = 'st',\n Pounds = 'lb',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\n Gram = 'g',\n}\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'mg', 'kg'\n */\nexport type MassUnit = GramUnit | UnitOfMass;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\nexport enum UnitOfPressure {\n Atmospheres = 'atm',\n CentimetersOfWater = 'cmAq',\n MillimetersOfMercury = 'mmHg',\n InchesOfMercury = 'inHg',\n DecibelAWeightedSoundPressureLevel = 'dBASPL',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\n Pascals = 'Pa',\n}\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kPa', 'hPa'\n */\nexport type PressureUnit = PascalUnit | UnitOfPressure;\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\nexport enum UnitOfTime {\n Days = 'd',\n Minutes = 'min',\n Hours = 'hr',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\n Seconds = 's',\n}\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'ms'\n */\nexport type TimeUnit = SecondUnit | UnitOfTime;\nexport enum TemperatureUnit {\n DegreesCelsius = 'degC',\n DegreesFahrenheit = 'degF',\n Kelvin = 'K',\n}\n\n/**\n * More SI prefixes also available as literals, just type the string\n * @example 'kJ'\n */\nexport enum UnitOfEnergy {\n Kilocalories = 'kcal',\n LargeCalories = 'Cal',\n SmallCalories = 'cal',\n /**\n * More SI prefixes also available as literals, just type the string\n * @example 'kJ'\n */\n Joules = 'J',\n}\nexport type EnergyUnit = JouleUnit | UnitOfEnergy;\nexport enum BloodGlucoseUnit {\n GlucoseMmolPerL = 'mmol<180.15588000005408>/l',\n GlucoseMgPerDl = 'mg/dL',\n}\n\nexport type SpeedUnit<\n TLength extends LengthUnit,\n TTime extends TimeUnit\n> = `${TLength}/${TTime}`;\nexport type CountPerTime = `count/${TTime}`;\n\nexport type HKUnit =\n | BloodGlucoseUnit\n | CountPerTime\n | EnergyUnit\n | FrequencyUnit\n | HKUnits\n | LengthUnit\n | MassUnit\n | PressureUnit\n | SpeedUnit\n | TemperatureUnit\n | TimeUnit\n | VolumeUnit\n | `${BloodGlucoseUnit}`\n | `${EnergyUnit}`\n | `${FrequencyUnit}`\n | `${HKUnits}`\n | `${LengthUnit}`\n | `${MassUnit}`\n | `${PressureUnit}`\n | `${TemperatureUnit}`\n | `${TimeUnit}`\n | `${VolumeUnit}`;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkdevice Apple Docs }\n */\nexport type HKDevice = {\n readonly name: string; // ex: \"Apple Watch\"\n readonly firmwareVersion: string | null;\n readonly hardwareVersion: string; // ex: \"Watch6,2\",\n readonly localIdentifier: string | null;\n readonly manufacturer: string; // ex: \"Apple Inc.\"\n readonly model: string; // ex: \"Watch\"\n readonly softwareVersion: string; // ex: \"9.0\"\n readonly udiDeviceIdentifier: string | null;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615781-source Apple Docs }\n */\nexport type HKSource = {\n readonly name: string;\n readonly bundleIdentifier: string;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615483-sourcerevision Apple Docs }\n */\nexport type HKSourceRevision = {\n readonly source: HKSource;\n readonly version: string;\n readonly operatingSystemVersion?: string;\n readonly productType?: string;\n};\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitysample Apple Docs }\n */\nexport type HKQuantitySampleRaw<\n TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly quantityType: TQuantityIdentifier;\n readonly startDate: string;\n readonly endDate: string;\n readonly quantity: number;\n readonly unit: TUnit;\n readonly metadata: MetadataMapperForQuantityIdentifier;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type HKHeartbeatRaw = {\n readonly timeSinceSeriesStart: number;\n readonly precededByGap: boolean;\n};\n\nexport type HKHeartbeatSeriesSampleRaw = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly startDate: string;\n readonly endDate: string;\n readonly heartbeats: readonly HKHeartbeatRaw[];\n readonly metadata?: HKHeartbeatSeriesSampleMetadata;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type CLLocationRawForSaving = {\n readonly latitude: number;\n readonly longitude: number;\n readonly altitude: number;\n readonly horizontalAccuracy: number;\n readonly verticalAccuracy: number;\n readonly course: number;\n readonly speed: number;\n readonly timestamp: string; // unix timestamp in milliseconds\n};\n\nexport type HKQuantitySampleRawForSaving<\n TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n> = Omit<\nHKQuantitySampleRaw,\n'device' | 'endDate' | 'startDate' | 'uuid'\n> & {\n readonly startDate?: string;\n readonly endDate?: string;\n};\n\nexport type HKCategorySampleRawForSaving<\n TCategory extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier\n> = Omit<\nHKCategorySampleRaw,\n'device' | 'endDate' | 'startDate' | 'uuid'\n> & {\n readonly startDate?: string;\n readonly endDate?: string;\n};\n\nexport interface HKWorkoutEvent {\n readonly type: HKWorkoutEventType;\n readonly startDate: string;\n readonly endDate: string;\n}\n\nexport enum HKWorkoutEventType {\n pause = 1,\n resume = 2,\n lap = 3,\n marker = 4,\n motionPaused = 5,\n motionResumed = 6,\n segment = 7,\n pauseOrResumeRequest = 8,\n}\n\nexport interface HKWorkoutActivity {\n readonly startDate: string;\n readonly endDate: string;\n readonly uuid: string;\n readonly duration: number;\n}\n\nexport type HKWorkoutRaw<\n TEnergy extends EnergyUnit,\n TDistance extends LengthUnit\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly workoutActivityType: HKWorkoutActivityType;\n readonly duration: number;\n readonly totalDistance?: HKQuantity;\n readonly totalEnergyBurned?: HKQuantity;\n readonly totalSwimmingStrokeCount?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Count\n >;\n readonly totalFlightsClimbed?: HKQuantity<\n HKQuantityTypeIdentifier,\n HKUnits.Count\n >;\n readonly startDate: string;\n readonly endDate: string;\n readonly metadata?: HKWorkoutMetadata;\n readonly sourceRevision?: HKSourceRevision;\n readonly events?: readonly HKWorkoutEvent[];\n readonly activities?: readonly HKWorkoutActivity[];\n readonly workoutPlanId?: string;\n};\n\n// Straight mapping to https://developer.apple.com/documentation/healthkit/hkcharacteristictypeidentifier\nexport enum HKCharacteristicTypeIdentifier {\n fitzpatrickSkinType = 'HKCharacteristicTypeIdentifierFitzpatrickSkinType',\n biologicalSex = 'HKCharacteristicTypeIdentifierBiologicalSex',\n bloodType = 'HKCharacteristicTypeIdentifierBloodType',\n dateOfBirth = 'HKCharacteristicTypeIdentifierDateOfBirth',\n wheelchairUse = 'HKCharacteristicTypeIdentifierWheelchairUse',\n activityMoveMode = 'HKCharacteristicTypeIdentifierActivityMoveMode', // HKActivityMoveModeObject\n}\n\nexport type WritePermissions = {\n readonly [key in\n | HKCategoryTypeIdentifier\n | HKCharacteristicTypeIdentifier\n | HKQuantityTypeIdentifier]: boolean;\n};\n\nexport type ReadPermissions = {\n readonly [key in\n | HKCategoryTypeIdentifier\n | HKCharacteristicTypeIdentifier\n | HKQuantityTypeIdentifier]: boolean;\n};\n\nexport type HKCategorySampleRaw<\n T extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier\n> = {\n readonly uuid: string;\n readonly device?: HKDevice;\n readonly categoryType: T;\n readonly startDate: string;\n readonly endDate: string;\n readonly value: HKCategoryValueForIdentifier;\n readonly metadata: MetadataMapperForCategoryIdentifier;\n readonly sourceRevision?: HKSourceRevision;\n};\n\nexport type DeletedCategorySampleRaw = {\n readonly uuid: string;\n readonly metadata: MetadataMapperForCategoryIdentifier;\n};\n\nexport type DeletedHeartbeatSeriesSampleRaw = {\n readonly uuid: string;\n readonly metadata: HKHeartbeatSeriesSampleMetadata;\n};\n\nexport type DeletedQuantitySampleRaw = {\n readonly uuid: string;\n readonly metadata: MetadataMapperForQuantityIdentifier;\n};\n\nexport type QueryCategorySamplesResponseRaw<\n T extends HKCategoryTypeIdentifier\n> = {\n readonly samples: readonly HKCategorySampleRaw[];\n readonly deletedSamples: readonly DeletedCategorySampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type QueryHeartbeatSeriesSamplesResponseRaw = {\n readonly samples: readonly HKHeartbeatSeriesSampleRaw[];\n readonly deletedSamples: readonly DeletedHeartbeatSeriesSampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type QueryQuantitySamplesResponseRaw<\n T extends HKQuantityTypeIdentifier\n> = {\n readonly samples: readonly HKQuantitySampleRaw[];\n readonly deletedSamples: readonly DeletedQuantitySampleRaw[];\n readonly newAnchor: string;\n};\n\nexport type HKCorrelationRaw =\n {\n readonly correlationType: HKCorrelationTypeIdentifier;\n readonly objects: readonly (HKCategorySampleRaw | HKQuantitySampleRaw)[];\n readonly metadata: MetadataMapperForCorrelationIdentifier;\n readonly startDate: string;\n readonly endDate: string;\n };\n\ntype QueryId = string;\n\n/**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkupdatefrequency Apple Docs }\n */\nexport enum HKUpdateFrequency {\n immediate = 1,\n hourly = 2,\n daily = 3,\n weekly = 4,\n}\n\nexport type WorkoutLocation = {\n readonly longitude: number;\n readonly latitude: number;\n readonly altitude: number;\n readonly speed: number;\n readonly timestamp: number;\n readonly horizontalAccuracy: number;\n readonly speedAccuracy: number;\n readonly verticalAccuracy: number;\n readonly distance: number | null;\n};\n\nexport type WorkoutRoute = {\n readonly locations: readonly WorkoutLocation[];\n readonly HKMetadataKeySyncIdentifier?: string;\n readonly HKMetadataKeySyncVersion?: number;\n};\n\ntype ReactNativeHealthkitTypeNative = {\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable Apple Docs }\n */\n isHealthDataAvailable(): Promise;\n // Todo [>8]: Rename to align with Apple function name (isProtectedDataAvailable) - remember to rename native code :)\n canAccessProtectedData(): Promise;\n getBloodType(): Promise;\n getDateOfBirth(): Promise;\n getBiologicalSex(): Promise;\n getFitzpatrickSkinType(): Promise;\n readonly getWheelchairUse: () => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery Apple Docs }\n */\n readonly enableBackgroundDelivery: (\n typeIdentifier: HKSampleTypeIdentifier,\n updateFrequency: HKUpdateFrequency\n ) => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614177-disablebackgrounddelivery Apple Docs }\n */\n readonly disableBackgroundDelivery: (\n typeIdentifier: HKSampleTypeIdentifier\n ) => Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614158-disableallbackgrounddelivery Apple Docs }\n */\n readonly disableAllBackgroundDelivery: () => Promise;\n\n readonly saveCorrelationSample: <\n TIdentifier extends HKCorrelationTypeIdentifier,\n TSamples extends readonly (\n | HKCategorySampleRawForSaving\n | HKQuantitySampleRawForSaving\n )[]\n >(\n typeIdentifier: TIdentifier,\n samples: TSamples,\n start: string,\n end: string,\n metadata: MetadataMapperForCorrelationIdentifier\n ) => Promise;\n\n readonly saveWorkoutSample: (\n typeIdentifier: HKWorkoutActivityType,\n quantities: readonly HKQuantitySampleRawForSaving[],\n start: string,\n end: string,\n totals: {\n readonly distance?: number;\n readonly energyBurned?: number;\n },\n metadata: HKWorkoutMetadata\n ) => Promise;\n\n readonly saveWorkoutRoute: (\n workoutUUID: string,\n locations: readonly CLLocationRawForSaving[]\n ) => Promise;\n\n readonly queryCorrelationSamples: <\n TIdentifier extends HKCorrelationTypeIdentifier\n >(\n typeIdentifier: TIdentifier,\n from: string,\n to: string\n ) => Promise[]>;\n\n subscribeToObserverQuery(\n identifier: HKSampleTypeIdentifier\n ): Promise;\n unsubscribeQuery(queryId: QueryId): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614154-authorizationstatus Apple Docs }\n */\n authorizationStatusFor(\n type: HealthkitReadAuthorization\n ): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/2994346-getrequeststatusforauthorization Apple Docs }\n */\n getRequestStatusForAuthorization(\n write: WritePermissions,\n read: ReadPermissions\n ): Promise;\n /**\n * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorization Apple Docs }\n */\n requestAuthorization(\n write: WritePermissions,\n read: ReadPermissions\n ): Promise;\n readonly saveQuantitySample: <\n TType extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier = UnitForIdentifier\n >(\n identifier: TType,\n unit: TUnit,\n value: number,\n start: string,\n end: string,\n metadata: unknown\n ) => Promise;\n readonly deleteQuantitySample: (\n typeIdentifier: TIdentifier,\n uuid: string\n ) => Promise;\n readonly deleteSamples: (\n identifier: TIdentifier,\n start: string,\n end: string\n ) => Promise;\n readonly queryWorkoutSamples: <\n TEnergy extends EnergyUnit,\n TDistance extends LengthUnit\n >(\n energyUnit: TEnergy,\n distanceUnit: TDistance,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryCategorySamples: (\n identifier: T,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryQuantitySamples: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: TIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise[]>;\n readonly queryCategorySamplesWithAnchor: (\n identifier: T,\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise>;\n readonly queryQuantitySamplesWithAnchor: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: TIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise>;\n readonly queryHeartbeatSeriesSamples: (\n from: string,\n to: string,\n limit: number,\n ascending: boolean\n ) => Promise;\n readonly queryHeartbeatSeriesSamplesWithAnchor: (\n from: string,\n to: string,\n limit: number,\n anchor: string\n ) => Promise;\n readonly querySources: <\n TIdentifier extends HKCategoryTypeIdentifier | HKQuantityTypeIdentifier\n >(\n identifier: TIdentifier\n ) => Promise;\n readonly saveCategorySample: (\n identifier: T,\n value: HKCategoryValueForIdentifier,\n start: string,\n end: string,\n metadata: unknown\n ) => Promise;\n readonly queryStatisticsForQuantity: <\n TIdentifier extends HKQuantityTypeIdentifier,\n TUnit extends UnitForIdentifier\n >(\n identifier: HKQuantityTypeIdentifier,\n unit: TUnit,\n from: string,\n to: string,\n options: readonly HKStatisticsOptions[]\n ) => Promise>;\n readonly getPreferredUnits: (\n identifiers: readonly HKQuantityTypeIdentifier[]\n ) => Promise;\n readonly getWorkoutRoutes: (\n workoutUUID: string\n ) => Promise;\n readonly getWorkoutPlanById: (workoutUUID: string) => Promise<{readonly id: string, readonly activityType: HKWorkoutActivityType} | null>;\n};\n\nconst Native = NativeModules.ReactNativeHealthkit as ReactNativeHealthkitTypeNative\n\ntype OnChangeCallback = ({\n typeIdentifier,\n}: {\n readonly typeIdentifier: HKSampleTypeIdentifier;\n}) => void;\n\ninterface HealthkitEventEmitter extends NativeEventEmitter {\n readonly addListener: (\n eventType: 'onChange',\n callback: OnChangeCallback\n ) => EmitterSubscription;\n}\n\nexport const EventEmitter = new NativeEventEmitter(\n NativeModules.ReactNativeHealthkit as NativeModule,\n) as HealthkitEventEmitter\n\nexport default Native\n"],"mappings":"AAAA,SAASA,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAIhE;AACA;AACA;AACA;AACA,OAAO,MAAMC,uBAAuB,GAAG,yBAAkC;;AAEzE;AACA;AACA;AACA;AACA,OAAO,MAAMC,+BAA+B,GAAG,iCAA0C;;AAEzF;AACA;AACA;AACA;AACA,OAAO,MAAMC,yBAAyB,GAAG,uBAAgC;;AAEzE;AACA;AACA;AACA;AACA,OAAO,MAAMC,4BAA4B,GAAG,8BAAuC;;AAEnF;AACA;AACA;AACA;;AAGA;AACA;AACA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IAAIhD,kBAAkB,CAChDC,aAAa,CAAC8C,oBAChB,CAA0B;AAE1B,eAAeD,MAAM"} \ No newline at end of file diff --git a/lib/module/utils/ensureTotals.js b/lib/module/utils/ensureTotals.js new file mode 100644 index 0000000..e0b2ab6 --- /dev/null +++ b/lib/module/utils/ensureTotals.js @@ -0,0 +1,5 @@ +function ensureTotals(totals) { + return totals || {}; +} +export default ensureTotals; +//# sourceMappingURL=ensureTotals.js.map \ No newline at end of file diff --git a/lib/module/utils/ensureTotals.js.map b/lib/module/utils/ensureTotals.js.map new file mode 100644 index 0000000..0ce3eba --- /dev/null +++ b/lib/module/utils/ensureTotals.js.map @@ -0,0 +1 @@ +{"version":3,"names":["ensureTotals","totals"],"sources":["ensureTotals.ts"],"sourcesContent":["function ensureTotals(totals?: TTotals) {\n return totals || ({} as TTotals)\n}\n\nexport default ensureTotals\n"],"mappings":"AAAA,SAASA,YAAYA,CAAUC,MAAgB,EAAE;EAC/C,OAAOA,MAAM,IAAK,CAAC,CAAa;AAClC;AAEA,eAAeD,YAAY"} \ No newline at end of file diff --git a/lib/module/utils/saveWorkoutSample.js b/lib/module/utils/saveWorkoutSample.js index 39216c4..d06004c 100644 --- a/lib/module/utils/saveWorkoutSample.js +++ b/lib/module/utils/saveWorkoutSample.js @@ -1,4 +1,5 @@ import ensureMetadata from './ensureMetadata'; +import ensureTotals from './ensureTotals'; import Native from '../native-types'; async function saveWorkoutSample(typeIdentifier, quantities, _start, options) { const start = _start.toISOString(); @@ -22,7 +23,7 @@ async function saveWorkoutSample(typeIdentifier, quantities, _start, options) { ...updatedQuantity, metadata: ensureMetadata(quantity.metadata) }; - }), start, end, ensureMetadata(options === null || options === void 0 ? void 0 : options.metadata)); + }), start, end, ensureTotals(options === null || options === void 0 ? void 0 : options.totals), ensureMetadata(options === null || options === void 0 ? void 0 : options.metadata)); } export default saveWorkoutSample; //# sourceMappingURL=saveWorkoutSample.js.map \ No newline at end of file diff --git a/lib/module/utils/saveWorkoutSample.js.map b/lib/module/utils/saveWorkoutSample.js.map index 2f46c98..d1c07be 100644 --- a/lib/module/utils/saveWorkoutSample.js.map +++ b/lib/module/utils/saveWorkoutSample.js.map @@ -1 +1 @@ -{"version":3,"names":["ensureMetadata","Native","saveWorkoutSample","typeIdentifier","quantities","_start","options","start","toISOString","end","Date","map","quantity","startDate","endDate","rest","updatedQuantity","metadata"],"sources":["saveWorkoutSample.ts"],"sourcesContent":["import ensureMetadata from './ensureMetadata'\nimport Native from '../native-types'\n\nimport type { HKWorkoutActivityType, HKWorkoutMetadata } from '../native-types'\nimport type { HKQuantitySampleForSaving } from '../types'\n\nasync function saveWorkoutSample(\n typeIdentifier: TIdentifier,\n quantities: readonly HKQuantitySampleForSaving[],\n _start: Date,\n options?: {\n readonly end?: Date;\n readonly metadata?: HKWorkoutMetadata;\n },\n) {\n const start = _start.toISOString()\n const end = (options?.end || new Date()).toISOString()\n\n return Native.saveWorkoutSample(\n typeIdentifier,\n quantities.map((quantity) => {\n const { startDate, endDate, ...rest } = quantity\n const updatedQuantity = {\n ...rest,\n ...(startDate && { startDate: startDate.toISOString() }),\n ...(endDate && { endDate: endDate.toISOString() }),\n }\n return { ...updatedQuantity, metadata: ensureMetadata(quantity.metadata) }\n }),\n start,\n end,\n ensureMetadata(options?.metadata),\n )\n}\n\nexport default saveWorkoutSample\n"],"mappings":"AAAA,OAAOA,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,MAAM,MAAM,iBAAiB;AAKpC,eAAeC,iBAAiBA,CAC9BC,cAA2B,EAC3BC,UAAgD,EAChDC,MAAY,EACZC,OAGC,EACD;EACA,MAAMC,KAAK,GAAGF,MAAM,CAACG,WAAW,CAAC,CAAC;EAClC,MAAMC,GAAG,GAAG,CAAC,CAAAH,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEG,GAAG,KAAI,IAAIC,IAAI,CAAC,CAAC,EAAEF,WAAW,CAAC,CAAC;EAEtD,OAAOP,MAAM,CAACC,iBAAiB,CAC7BC,cAAc,EACdC,UAAU,CAACO,GAAG,CAAEC,QAAQ,IAAK;IAC3B,MAAM;MAAEC,SAAS;MAAEC,OAAO;MAAE,GAAGC;IAAK,CAAC,GAAGH,QAAQ;IAChD,MAAMI,eAAe,GAAG;MACtB,GAAGD,IAAI;MACP,IAAIF,SAAS,IAAI;QAAEA,SAAS,EAAEA,SAAS,CAACL,WAAW,CAAC;MAAE,CAAC,CAAC;MACxD,IAAIM,OAAO,IAAI;QAAEA,OAAO,EAAEA,OAAO,CAACN,WAAW,CAAC;MAAE,CAAC;IACnD,CAAC;IACD,OAAO;MAAE,GAAGQ,eAAe;MAAEC,QAAQ,EAAEjB,cAAc,CAACY,QAAQ,CAACK,QAAQ;IAAE,CAAC;EAC5E,CAAC,CAAC,EACFV,KAAK,EACLE,GAAG,EACHT,cAAc,CAACM,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEW,QAAQ,CAClC,CAAC;AACH;AAEA,eAAef,iBAAiB"} \ No newline at end of file +{"version":3,"names":["ensureMetadata","ensureTotals","Native","saveWorkoutSample","typeIdentifier","quantities","_start","options","start","toISOString","end","Date","map","quantity","startDate","endDate","rest","updatedQuantity","metadata","totals"],"sources":["saveWorkoutSample.ts"],"sourcesContent":["import ensureMetadata from './ensureMetadata'\nimport ensureTotals from './ensureTotals'\nimport Native from '../native-types'\n\nimport type { HKWorkoutActivityType, HKWorkoutMetadata } from '../native-types'\nimport type { HKQuantitySampleForSaving } from '../types'\n\nasync function saveWorkoutSample(\n typeIdentifier: TIdentifier,\n quantities: readonly HKQuantitySampleForSaving[],\n _start: Date,\n options?: {\n readonly end?: Date;\n readonly totals?: {\n readonly distance?: number;\n readonly energyBurned?: number;\n }\n readonly metadata?: HKWorkoutMetadata;\n },\n) {\n const start = _start.toISOString()\n const end = (options?.end || new Date()).toISOString()\n\n return Native.saveWorkoutSample(\n typeIdentifier,\n quantities.map((quantity) => {\n const { startDate, endDate, ...rest } = quantity\n const updatedQuantity = {\n ...rest,\n ...(startDate && { startDate: startDate.toISOString() }),\n ...(endDate && { endDate: endDate.toISOString() }),\n }\n return { ...updatedQuantity, metadata: ensureMetadata(quantity.metadata) }\n }),\n start,\n end,\n ensureTotals(options?.totals),\n ensureMetadata(options?.metadata),\n )\n}\n\nexport default saveWorkoutSample\n"],"mappings":"AAAA,OAAOA,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,YAAY,MAAM,gBAAgB;AACzC,OAAOC,MAAM,MAAM,iBAAiB;AAKpC,eAAeC,iBAAiBA,CAC9BC,cAA2B,EAC3BC,UAAgD,EAChDC,MAAY,EACZC,OAOC,EACD;EACA,MAAMC,KAAK,GAAGF,MAAM,CAACG,WAAW,CAAC,CAAC;EAClC,MAAMC,GAAG,GAAG,CAAC,CAAAH,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEG,GAAG,KAAI,IAAIC,IAAI,CAAC,CAAC,EAAEF,WAAW,CAAC,CAAC;EAEtD,OAAOP,MAAM,CAACC,iBAAiB,CAC7BC,cAAc,EACdC,UAAU,CAACO,GAAG,CAAEC,QAAQ,IAAK;IAC3B,MAAM;MAAEC,SAAS;MAAEC,OAAO;MAAE,GAAGC;IAAK,CAAC,GAAGH,QAAQ;IAChD,MAAMI,eAAe,GAAG;MACtB,GAAGD,IAAI;MACP,IAAIF,SAAS,IAAI;QAAEA,SAAS,EAAEA,SAAS,CAACL,WAAW,CAAC;MAAE,CAAC,CAAC;MACxD,IAAIM,OAAO,IAAI;QAAEA,OAAO,EAAEA,OAAO,CAACN,WAAW,CAAC;MAAE,CAAC;IACnD,CAAC;IACD,OAAO;MAAE,GAAGQ,eAAe;MAAEC,QAAQ,EAAElB,cAAc,CAACa,QAAQ,CAACK,QAAQ;IAAE,CAAC;EAC5E,CAAC,CAAC,EACFV,KAAK,EACLE,GAAG,EACHT,YAAY,CAACM,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEY,MAAM,CAAC,EAC7BnB,cAAc,CAACO,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEW,QAAQ,CAClC,CAAC;AACH;AAEA,eAAef,iBAAiB"} \ No newline at end of file diff --git a/lib/typescript/src/native-types.d.ts b/lib/typescript/src/native-types.d.ts index 364be8e..d68b5e3 100644 --- a/lib/typescript/src/native-types.d.ts +++ b/lib/typescript/src/native-types.d.ts @@ -1440,7 +1440,10 @@ type ReactNativeHealthkitTypeNative = { */ readonly disableAllBackgroundDelivery: () => Promise; readonly saveCorrelationSample: (typeIdentifier: TIdentifier, samples: TSamples, start: string, end: string, metadata: MetadataMapperForCorrelationIdentifier) => Promise; - readonly saveWorkoutSample: (typeIdentifier: HKWorkoutActivityType, quantities: readonly HKQuantitySampleRawForSaving[], start: string, end: string, metadata: HKWorkoutMetadata) => Promise; + readonly saveWorkoutSample: (typeIdentifier: HKWorkoutActivityType, quantities: readonly HKQuantitySampleRawForSaving[], start: string, end: string, totals: { + readonly distance?: number; + readonly energyBurned?: number; + }, metadata: HKWorkoutMetadata) => Promise; readonly saveWorkoutRoute: (workoutUUID: string, locations: readonly CLLocationRawForSaving[]) => Promise; readonly queryCorrelationSamples: (typeIdentifier: TIdentifier, from: string, to: string) => Promise[]>; subscribeToObserverQuery(identifier: HKSampleTypeIdentifier): Promise; diff --git a/lib/typescript/src/utils/ensureTotals.d.ts b/lib/typescript/src/utils/ensureTotals.d.ts new file mode 100644 index 0000000..d623f96 --- /dev/null +++ b/lib/typescript/src/utils/ensureTotals.d.ts @@ -0,0 +1,2 @@ +declare function ensureTotals(totals?: TTotals): TTotals; +export default ensureTotals; diff --git a/lib/typescript/src/utils/saveWorkoutSample.d.ts b/lib/typescript/src/utils/saveWorkoutSample.d.ts index a87c920..bc8606f 100644 --- a/lib/typescript/src/utils/saveWorkoutSample.d.ts +++ b/lib/typescript/src/utils/saveWorkoutSample.d.ts @@ -2,6 +2,10 @@ import type { HKWorkoutActivityType, HKWorkoutMetadata } from '../native-types'; import type { HKQuantitySampleForSaving } from '../types'; declare function saveWorkoutSample(typeIdentifier: TIdentifier, quantities: readonly HKQuantitySampleForSaving[], _start: Date, options?: { readonly end?: Date; + readonly totals?: { + readonly distance?: number; + readonly energyBurned?: number; + }; readonly metadata?: HKWorkoutMetadata; }): Promise; export default saveWorkoutSample;