@kingstinct/react-native-healthkit 13.3.1 → 14.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/ReactNativeHealthkit.podspec +1 -0
  2. package/app.plugin.ts +40 -2
  3. package/ios/BackgroundDeliveryManager.swift +196 -0
  4. package/ios/CategoryTypeModule.swift +1 -1
  5. package/ios/CoreModule.swift +24 -0
  6. package/ios/CorrelationTypeModule.swift +2 -35
  7. package/ios/ElectrocardiogramModule.swift +2 -34
  8. package/ios/HeartbeatSeriesModule.swift +2 -34
  9. package/ios/MedicationModule.swift +3 -35
  10. package/ios/PredicateHelpers.swift +2 -2
  11. package/ios/QuantityTypeModule.swift +11 -11
  12. package/ios/Serializers.swift +58 -90
  13. package/ios/StateOfMindModule.swift +2 -34
  14. package/ios/WorkoutProxy.swift +4 -149
  15. package/ios/generated/HealthkitGenerated.swift +52 -0
  16. package/lib/commonjs/generated/healthkit.generated.js +745 -0
  17. package/lib/commonjs/healthkit.ios.js +51 -17
  18. package/lib/commonjs/healthkit.js +120 -34
  19. package/lib/commonjs/specs/QuantityTypeModule.nitro.js +1 -0
  20. package/lib/commonjs/type-tests/generated-typing.js +2 -0
  21. package/lib/commonjs/types/CategoryType.js +19 -99
  22. package/lib/commonjs/types/Medication.js +2 -0
  23. package/lib/commonjs/types/MetadataEnums.js +17 -0
  24. package/lib/commonjs/types/QuantityType.js +4 -15
  25. package/lib/commonjs/types/WeatherCondition.js +2 -32
  26. package/lib/commonjs/types/Workouts.js +3 -98
  27. package/lib/commonjs/types/index.js +2 -0
  28. package/lib/module/generated/healthkit.generated.js +742 -0
  29. package/lib/module/healthkit.ios.js +49 -15
  30. package/lib/module/healthkit.js +94 -20
  31. package/lib/module/specs/QuantityTypeModule.nitro.js +1 -0
  32. package/lib/module/type-tests/generated-typing.js +1 -0
  33. package/lib/module/types/CategoryType.js +2 -98
  34. package/lib/module/types/Medication.js +1 -0
  35. package/lib/module/types/MetadataEnums.js +1 -0
  36. package/lib/module/types/QuantityType.js +2 -14
  37. package/lib/module/types/WeatherCondition.js +1 -32
  38. package/lib/module/types/Workouts.js +2 -98
  39. package/lib/module/types/index.js +2 -0
  40. package/lib/typescript/generated/healthkit.generated.d.ts +1006 -0
  41. package/lib/typescript/healthkit.d.ts +39 -36
  42. package/lib/typescript/healthkit.ios.d.ts +64 -53
  43. package/lib/typescript/hooks/useMostRecentQuantitySample.d.ts +3 -2
  44. package/lib/typescript/hooks/useMostRecentWorkout.d.ts +2 -2
  45. package/lib/typescript/hooks/useQuantitySampleById.d.ts +5 -4
  46. package/lib/typescript/hooks/useStatisticsForQuantity.d.ts +2 -2
  47. package/lib/typescript/hooks/useSubscribeToQuantitySamples.d.ts +1 -1
  48. package/lib/typescript/modules.d.ts +2 -2
  49. package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +3 -3
  50. package/lib/typescript/specs/CoreModule.nitro.d.ts +15 -0
  51. package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +20 -9
  52. package/lib/typescript/type-tests/generated-typing.d.ts +1 -0
  53. package/lib/typescript/types/CategoryType.d.ts +10 -104
  54. package/lib/typescript/types/CategoryTypeIdentifier.d.ts +1 -61
  55. package/lib/typescript/types/CorrelationType.d.ts +8 -2
  56. package/lib/typescript/types/ElectrocardiogramSample.d.ts +8 -1
  57. package/lib/typescript/types/HeartbeatSeries.d.ts +8 -1
  58. package/lib/typescript/types/InterfaceVerification.d.ts +14 -1
  59. package/lib/typescript/types/Medication.d.ts +10 -0
  60. package/lib/typescript/types/MetadataEnums.d.ts +1 -0
  61. package/lib/typescript/types/QuantitySample.d.ts +9 -1
  62. package/lib/typescript/types/QuantityType.d.ts +14 -18
  63. package/lib/typescript/types/QuantityTypeIdentifier.d.ts +1 -671
  64. package/lib/typescript/types/QueryOptions.d.ts +8 -4
  65. package/lib/typescript/types/Shared.d.ts +12 -41
  66. package/lib/typescript/types/StateOfMind.d.ts +8 -1
  67. package/lib/typescript/types/Subscriptions.d.ts +11 -11
  68. package/lib/typescript/types/WeatherCondition.d.ts +1 -30
  69. package/lib/typescript/types/Workouts.d.ts +20 -104
  70. package/lib/typescript/types/index.d.ts +2 -0
  71. package/lib/typescript/utils/getMostRecentQuantitySample.d.ts +2 -1
  72. package/lib/typescript/utils/getMostRecentWorkout.d.ts +2 -1
  73. package/lib/typescript/utils/getPreferredUnit.d.ts +2 -1
  74. package/lib/typescript/utils/getQuantitySampleById.d.ts +2 -1
  75. package/lib/typescript/utils/subscribeToQuantitySamples.d.ts +1 -1
  76. package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +55 -109
  77. package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +12 -18
  78. package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +5 -14
  79. package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +18 -2
  80. package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -13
  81. package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -13
  82. package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +2 -14
  83. package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -13
  84. package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +19 -28
  85. package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +2 -14
  86. package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +3 -116
  87. package/nitrogen/generated/ios/swift/CategorySample.swift +4 -329
  88. package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +112 -108
  89. package/nitrogen/generated/ios/swift/CategoryTypeIdentifierWriteable.swift +292 -0
  90. package/nitrogen/generated/ios/swift/CorrelationSample.swift +4 -347
  91. package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +4 -329
  92. package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +30 -30
  93. package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +30 -30
  94. package/nitrogen/generated/ios/swift/GeneralForm.swift +4 -4
  95. package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +4 -329
  96. package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +1 -1
  97. package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +1 -1
  98. package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +2 -0
  99. package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +38 -0
  100. package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +6 -6
  101. package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +6 -6
  102. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +1 -27
  103. package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +2 -340
  104. package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +4 -329
  105. package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +492 -492
  106. package/nitrogen/generated/ios/swift/QuantitySample.swift +4 -329
  107. package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +380 -384
  108. package/nitrogen/generated/ios/swift/QuantityTypeIdentifierWriteable.swift +372 -376
  109. package/nitrogen/generated/ios/swift/{QueryOptionsWithAnchorAndUnit.swift → QueryOptionsWithAnchorAndStringUnit.swift} +5 -5
  110. package/nitrogen/generated/ios/swift/{QueryOptionsWithSortOrderAndUnit.swift → QueryOptionsWithSortOrderAndStringUnit.swift} +5 -5
  111. package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +37 -37
  112. package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +492 -492
  113. package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +482 -486
  114. package/nitrogen/generated/ios/swift/StateOfMindSample.swift +4 -329
  115. package/nitrogen/generated/ios/swift/{StatisticsQueryOptions.swift → StatisticsQueryOptionsWithStringUnit.swift} +5 -5
  116. package/nitrogen/generated/ios/swift/WorkoutEvent.swift +20 -2
  117. package/nitrogen/generated/ios/swift/WorkoutSample.swift +4 -402
  118. package/nitrogen/generated/shared/c++/CategorySample.hpp +8 -100
  119. package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +153 -149
  120. package/nitrogen/generated/shared/c++/CategoryTypeIdentifierWriteable.hpp +328 -0
  121. package/nitrogen/generated/shared/c++/CorrelationSample.hpp +9 -105
  122. package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +7 -99
  123. package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +13 -13
  124. package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +13 -13
  125. package/nitrogen/generated/shared/c++/GeneralForm.hpp +7 -7
  126. package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +8 -100
  127. package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +5 -2
  128. package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +2 -0
  129. package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +4 -2
  130. package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +15 -15
  131. package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +1 -27
  132. package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +2 -37
  133. package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +7 -99
  134. package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +565 -565
  135. package/nitrogen/generated/shared/c++/QuantitySample.hpp +8 -100
  136. package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +407 -411
  137. package/nitrogen/generated/shared/c++/QuantityTypeIdentifierWriteable.hpp +398 -402
  138. package/nitrogen/generated/shared/c++/{QueryOptionsWithAnchorAndUnit.hpp → QueryOptionsWithAnchorAndStringUnit.hpp} +11 -11
  139. package/nitrogen/generated/shared/c++/{QueryOptionsWithSortOrderAndUnit.hpp → QueryOptionsWithSortOrderAndStringUnit.hpp} +11 -11
  140. package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +12 -12
  141. package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +559 -559
  142. package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +541 -545
  143. package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +8 -100
  144. package/nitrogen/generated/shared/c++/{StatisticsQueryOptions.hpp → StatisticsQueryOptionsWithStringUnit.hpp} +11 -11
  145. package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +8 -2
  146. package/nitrogen/generated/shared/c++/WorkoutSample.hpp +7 -120
  147. package/package.json +5 -2
  148. package/src/generated/healthkit-schema.json +3680 -0
  149. package/src/generated/healthkit.generated.ts +1307 -0
  150. package/src/healthkit.ios.ts +225 -19
  151. package/src/healthkit.ts +181 -55
  152. package/src/hooks/useMostRecentQuantitySample.ts +6 -5
  153. package/src/hooks/useMostRecentWorkout.ts +2 -2
  154. package/src/hooks/useQuantitySampleById.ts +6 -5
  155. package/src/hooks/useStatisticsForQuantity.ts +2 -1
  156. package/src/hooks/useSubscribeToQuantitySamples.ts +1 -1
  157. package/src/modules.ts +7 -2
  158. package/src/specs/CategoryTypeModule.nitro.ts +8 -5
  159. package/src/specs/CoreModule.nitro.ts +20 -0
  160. package/src/specs/QuantityTypeModule.nitro.ts +81 -7
  161. package/src/test-setup.ts +2 -0
  162. package/src/type-tests/generated-typing.ts +133 -0
  163. package/src/types/CategoryType.ts +52 -148
  164. package/src/types/CategoryTypeIdentifier.ts +5 -134
  165. package/src/types/CorrelationType.ts +13 -3
  166. package/src/types/ElectrocardiogramSample.ts +13 -1
  167. package/src/types/HeartbeatSeries.ts +13 -1
  168. package/src/types/InterfaceVerification.ts +38 -1
  169. package/src/types/Medication.ts +19 -0
  170. package/src/types/MetadataEnums.ts +15 -0
  171. package/src/types/QuantitySample.ts +14 -2
  172. package/src/types/QuantityType.ts +22 -122
  173. package/src/types/QuantityTypeIdentifier.ts +5 -772
  174. package/src/types/QueryOptions.ts +11 -4
  175. package/src/types/Shared.ts +22 -49
  176. package/src/types/StateOfMind.ts +13 -1
  177. package/src/types/Subscriptions.ts +19 -13
  178. package/src/types/WeatherCondition.ts +1 -31
  179. package/src/types/Workouts.ts +46 -108
  180. package/src/types/index.ts +2 -0
  181. package/src/utils/getMostRecentQuantitySample.ts +4 -3
  182. package/src/utils/getMostRecentWorkout.ts +5 -2
  183. package/src/utils/getPreferredUnit.ts +5 -4
  184. package/src/utils/getQuantitySampleById.ts +4 -3
  185. package/src/utils/subscribeToQuantitySamples.ts +5 -3
  186. package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +0 -44
  187. package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +0 -40
  188. package/nitrogen/generated/ios/swift/WeatherCondition.swift +0 -144
  189. package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +0 -67
  190. package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +0 -62
  191. package/nitrogen/generated/shared/c++/WeatherCondition.hpp +0 -88
@@ -0,0 +1,1006 @@
1
+ import type { Quantity } from '../types/QuantityType';
2
+ import type { BloodGlucoseUnit, CountPerTime, EnergyUnit, LengthUnit, MassUnit, PressureUnit, SpeedUnit, TemperatureUnit, TimeUnit } from '../types/Units';
3
+ export type QuantityTypeIdentifierReadOnly = 'HKQuantityTypeIdentifierAppleExerciseTime' | 'HKQuantityTypeIdentifierAppleStandTime' | 'HKQuantityTypeIdentifierAppleWalkingSteadiness' | 'HKQuantityTypeIdentifierAtrialFibrillationBurden' | 'HKQuantityTypeIdentifierWalkingHeartRateAverage';
4
+ export type QuantityTypeIdentifierWriteable = 'HKQuantityTypeIdentifierActiveEnergyBurned' | 'HKQuantityTypeIdentifierAppleMoveTime' | 'HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances' | 'HKQuantityTypeIdentifierAppleSleepingWristTemperature' | 'HKQuantityTypeIdentifierBasalBodyTemperature' | 'HKQuantityTypeIdentifierBasalEnergyBurned' | 'HKQuantityTypeIdentifierBloodAlcoholContent' | 'HKQuantityTypeIdentifierBloodGlucose' | 'HKQuantityTypeIdentifierBloodPressureDiastolic' | 'HKQuantityTypeIdentifierBloodPressureSystolic' | 'HKQuantityTypeIdentifierBodyFatPercentage' | 'HKQuantityTypeIdentifierBodyMass' | 'HKQuantityTypeIdentifierBodyMassIndex' | 'HKQuantityTypeIdentifierBodyTemperature' | 'HKQuantityTypeIdentifierCrossCountrySkiingSpeed' | 'HKQuantityTypeIdentifierCyclingCadence' | 'HKQuantityTypeIdentifierCyclingFunctionalThresholdPower' | 'HKQuantityTypeIdentifierCyclingPower' | 'HKQuantityTypeIdentifierCyclingSpeed' | 'HKQuantityTypeIdentifierDietaryBiotin' | 'HKQuantityTypeIdentifierDietaryCaffeine' | 'HKQuantityTypeIdentifierDietaryCalcium' | 'HKQuantityTypeIdentifierDietaryCarbohydrates' | 'HKQuantityTypeIdentifierDietaryChloride' | 'HKQuantityTypeIdentifierDietaryCholesterol' | 'HKQuantityTypeIdentifierDietaryChromium' | 'HKQuantityTypeIdentifierDietaryCopper' | 'HKQuantityTypeIdentifierDietaryEnergyConsumed' | 'HKQuantityTypeIdentifierDietaryFatMonounsaturated' | 'HKQuantityTypeIdentifierDietaryFatPolyunsaturated' | 'HKQuantityTypeIdentifierDietaryFatSaturated' | 'HKQuantityTypeIdentifierDietaryFatTotal' | 'HKQuantityTypeIdentifierDietaryFiber' | 'HKQuantityTypeIdentifierDietaryFolate' | 'HKQuantityTypeIdentifierDietaryIodine' | 'HKQuantityTypeIdentifierDietaryIron' | 'HKQuantityTypeIdentifierDietaryMagnesium' | 'HKQuantityTypeIdentifierDietaryManganese' | 'HKQuantityTypeIdentifierDietaryMolybdenum' | 'HKQuantityTypeIdentifierDietaryNiacin' | 'HKQuantityTypeIdentifierDietaryPantothenicAcid' | 'HKQuantityTypeIdentifierDietaryPhosphorus' | 'HKQuantityTypeIdentifierDietaryPotassium' | 'HKQuantityTypeIdentifierDietaryProtein' | 'HKQuantityTypeIdentifierDietaryRiboflavin' | 'HKQuantityTypeIdentifierDietarySelenium' | 'HKQuantityTypeIdentifierDietarySodium' | 'HKQuantityTypeIdentifierDietarySugar' | 'HKQuantityTypeIdentifierDietaryThiamin' | 'HKQuantityTypeIdentifierDietaryVitaminA' | 'HKQuantityTypeIdentifierDietaryVitaminB12' | 'HKQuantityTypeIdentifierDietaryVitaminB6' | 'HKQuantityTypeIdentifierDietaryVitaminC' | 'HKQuantityTypeIdentifierDietaryVitaminD' | 'HKQuantityTypeIdentifierDietaryVitaminE' | 'HKQuantityTypeIdentifierDietaryVitaminK' | 'HKQuantityTypeIdentifierDietaryWater' | 'HKQuantityTypeIdentifierDietaryZinc' | 'HKQuantityTypeIdentifierDistanceCrossCountrySkiing' | 'HKQuantityTypeIdentifierDistanceCycling' | 'HKQuantityTypeIdentifierDistanceDownhillSnowSports' | 'HKQuantityTypeIdentifierDistancePaddleSports' | 'HKQuantityTypeIdentifierDistanceRowing' | 'HKQuantityTypeIdentifierDistanceSkatingSports' | 'HKQuantityTypeIdentifierDistanceSwimming' | 'HKQuantityTypeIdentifierDistanceWalkingRunning' | 'HKQuantityTypeIdentifierDistanceWheelchair' | 'HKQuantityTypeIdentifierElectrodermalActivity' | 'HKQuantityTypeIdentifierEnvironmentalAudioExposure' | 'HKQuantityTypeIdentifierEnvironmentalSoundReduction' | 'HKQuantityTypeIdentifierEstimatedWorkoutEffortScore' | 'HKQuantityTypeIdentifierFlightsClimbed' | 'HKQuantityTypeIdentifierForcedExpiratoryVolume1' | 'HKQuantityTypeIdentifierForcedVitalCapacity' | 'HKQuantityTypeIdentifierHeadphoneAudioExposure' | 'HKQuantityTypeIdentifierHeartRate' | 'HKQuantityTypeIdentifierHeartRateRecoveryOneMinute' | 'HKQuantityTypeIdentifierHeartRateVariabilitySDNN' | 'HKQuantityTypeIdentifierHeight' | 'HKQuantityTypeIdentifierInhalerUsage' | 'HKQuantityTypeIdentifierInsulinDelivery' | 'HKQuantityTypeIdentifierLeanBodyMass' | 'HKQuantityTypeIdentifierNikeFuel' | 'HKQuantityTypeIdentifierNumberOfAlcoholicBeverages' | 'HKQuantityTypeIdentifierNumberOfTimesFallen' | 'HKQuantityTypeIdentifierOxygenSaturation' | 'HKQuantityTypeIdentifierPaddleSportsSpeed' | 'HKQuantityTypeIdentifierPeakExpiratoryFlowRate' | 'HKQuantityTypeIdentifierPeripheralPerfusionIndex' | 'HKQuantityTypeIdentifierPhysicalEffort' | 'HKQuantityTypeIdentifierPushCount' | 'HKQuantityTypeIdentifierRespiratoryRate' | 'HKQuantityTypeIdentifierRestingHeartRate' | 'HKQuantityTypeIdentifierRowingSpeed' | 'HKQuantityTypeIdentifierRunningGroundContactTime' | 'HKQuantityTypeIdentifierRunningPower' | 'HKQuantityTypeIdentifierRunningSpeed' | 'HKQuantityTypeIdentifierRunningStrideLength' | 'HKQuantityTypeIdentifierRunningVerticalOscillation' | 'HKQuantityTypeIdentifierSixMinuteWalkTestDistance' | 'HKQuantityTypeIdentifierStairAscentSpeed' | 'HKQuantityTypeIdentifierStairDescentSpeed' | 'HKQuantityTypeIdentifierStepCount' | 'HKQuantityTypeIdentifierSwimmingStrokeCount' | 'HKQuantityTypeIdentifierTimeInDaylight' | 'HKQuantityTypeIdentifierUnderwaterDepth' | 'HKQuantityTypeIdentifierUVExposure' | 'HKQuantityTypeIdentifierVO2Max' | 'HKQuantityTypeIdentifierWaistCircumference' | 'HKQuantityTypeIdentifierWalkingAsymmetryPercentage' | 'HKQuantityTypeIdentifierWalkingDoubleSupportPercentage' | 'HKQuantityTypeIdentifierWalkingSpeed' | 'HKQuantityTypeIdentifierWalkingStepLength' | 'HKQuantityTypeIdentifierWaterTemperature' | 'HKQuantityTypeIdentifierWorkoutEffortScore';
5
+ export type QuantityTypeIdentifier = QuantityTypeIdentifierReadOnly | QuantityTypeIdentifierWriteable;
6
+ export type CategoryTypeIdentifierReadOnly = 'HKCategoryTypeIdentifierAppleStandHour' | 'HKCategoryTypeIdentifierHeadphoneAudioExposureEvent' | 'HKCategoryTypeIdentifierHighHeartRateEvent' | 'HKCategoryTypeIdentifierHypertensionEvent' | 'HKCategoryTypeIdentifierLowHeartRateEvent';
7
+ export type CategoryTypeIdentifierWriteable = 'HKCategoryTypeIdentifierAbdominalCramps' | 'HKCategoryTypeIdentifierAcne' | 'HKCategoryTypeIdentifierAppetiteChanges' | 'HKCategoryTypeIdentifierAppleWalkingSteadinessEvent' | 'HKCategoryTypeIdentifierAudioExposureEvent' | 'HKCategoryTypeIdentifierBladderIncontinence' | 'HKCategoryTypeIdentifierBleedingAfterPregnancy' | 'HKCategoryTypeIdentifierBleedingDuringPregnancy' | 'HKCategoryTypeIdentifierBloating' | 'HKCategoryTypeIdentifierBreastPain' | 'HKCategoryTypeIdentifierCervicalMucusQuality' | 'HKCategoryTypeIdentifierChestTightnessOrPain' | 'HKCategoryTypeIdentifierChills' | 'HKCategoryTypeIdentifierConstipation' | 'HKCategoryTypeIdentifierContraceptive' | 'HKCategoryTypeIdentifierCoughing' | 'HKCategoryTypeIdentifierDiarrhea' | 'HKCategoryTypeIdentifierDizziness' | 'HKCategoryTypeIdentifierDrySkin' | 'HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent' | 'HKCategoryTypeIdentifierFainting' | 'HKCategoryTypeIdentifierFatigue' | 'HKCategoryTypeIdentifierFever' | 'HKCategoryTypeIdentifierGeneralizedBodyAche' | 'HKCategoryTypeIdentifierHairLoss' | 'HKCategoryTypeIdentifierHandwashingEvent' | 'HKCategoryTypeIdentifierHeadache' | 'HKCategoryTypeIdentifierHeartburn' | 'HKCategoryTypeIdentifierHotFlashes' | 'HKCategoryTypeIdentifierInfrequentMenstrualCycles' | 'HKCategoryTypeIdentifierIntermenstrualBleeding' | 'HKCategoryTypeIdentifierIrregularHeartRhythmEvent' | 'HKCategoryTypeIdentifierIrregularMenstrualCycles' | 'HKCategoryTypeIdentifierLactation' | 'HKCategoryTypeIdentifierLossOfSmell' | 'HKCategoryTypeIdentifierLossOfTaste' | 'HKCategoryTypeIdentifierLowCardioFitnessEvent' | 'HKCategoryTypeIdentifierLowerBackPain' | 'HKCategoryTypeIdentifierMemoryLapse' | 'HKCategoryTypeIdentifierMenstrualFlow' | 'HKCategoryTypeIdentifierMindfulSession' | 'HKCategoryTypeIdentifierMoodChanges' | 'HKCategoryTypeIdentifierNausea' | 'HKCategoryTypeIdentifierNightSweats' | 'HKCategoryTypeIdentifierOvulationTestResult' | 'HKCategoryTypeIdentifierPelvicPain' | 'HKCategoryTypeIdentifierPersistentIntermenstrualBleeding' | 'HKCategoryTypeIdentifierPregnancy' | 'HKCategoryTypeIdentifierPregnancyTestResult' | 'HKCategoryTypeIdentifierProgesteroneTestResult' | 'HKCategoryTypeIdentifierProlongedMenstrualPeriods' | 'HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat' | 'HKCategoryTypeIdentifierRunnyNose' | 'HKCategoryTypeIdentifierSexualActivity' | 'HKCategoryTypeIdentifierShortnessOfBreath' | 'HKCategoryTypeIdentifierSinusCongestion' | 'HKCategoryTypeIdentifierSkippedHeartbeat' | 'HKCategoryTypeIdentifierSleepAnalysis' | 'HKCategoryTypeIdentifierSleepApneaEvent' | 'HKCategoryTypeIdentifierSleepChanges' | 'HKCategoryTypeIdentifierSoreThroat' | 'HKCategoryTypeIdentifierToothbrushingEvent' | 'HKCategoryTypeIdentifierVaginalDryness' | 'HKCategoryTypeIdentifierVomiting' | 'HKCategoryTypeIdentifierWheezing';
8
+ export type CategoryTypeIdentifier = CategoryTypeIdentifierReadOnly | CategoryTypeIdentifierWriteable;
9
+ export declare const QUANTITY_IDENTIFIER_IOS_AVAILABILITY: {
10
+ readonly HKQuantityTypeIdentifierActiveEnergyBurned: "8.0";
11
+ readonly HKQuantityTypeIdentifierAppleExerciseTime: "9.3";
12
+ readonly HKQuantityTypeIdentifierAppleMoveTime: "14.5";
13
+ readonly HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances: "18.0";
14
+ readonly HKQuantityTypeIdentifierAppleSleepingWristTemperature: "16.0";
15
+ readonly HKQuantityTypeIdentifierAppleStandTime: "13.0";
16
+ readonly HKQuantityTypeIdentifierAppleWalkingSteadiness: "15.0";
17
+ readonly HKQuantityTypeIdentifierAtrialFibrillationBurden: "16.0";
18
+ readonly HKQuantityTypeIdentifierBasalBodyTemperature: "9.0";
19
+ readonly HKQuantityTypeIdentifierBasalEnergyBurned: "8.0";
20
+ readonly HKQuantityTypeIdentifierBloodAlcoholContent: "8.0";
21
+ readonly HKQuantityTypeIdentifierBloodGlucose: "8.0";
22
+ readonly HKQuantityTypeIdentifierBloodPressureDiastolic: "8.0";
23
+ readonly HKQuantityTypeIdentifierBloodPressureSystolic: "8.0";
24
+ readonly HKQuantityTypeIdentifierBodyFatPercentage: "8.0";
25
+ readonly HKQuantityTypeIdentifierBodyMass: "8.0";
26
+ readonly HKQuantityTypeIdentifierBodyMassIndex: "8.0";
27
+ readonly HKQuantityTypeIdentifierBodyTemperature: "8.0";
28
+ readonly HKQuantityTypeIdentifierCrossCountrySkiingSpeed: "18.0";
29
+ readonly HKQuantityTypeIdentifierCyclingCadence: "17.0";
30
+ readonly HKQuantityTypeIdentifierCyclingFunctionalThresholdPower: "17.0";
31
+ readonly HKQuantityTypeIdentifierCyclingPower: "17.0";
32
+ readonly HKQuantityTypeIdentifierCyclingSpeed: "17.0";
33
+ readonly HKQuantityTypeIdentifierDietaryBiotin: "8.0";
34
+ readonly HKQuantityTypeIdentifierDietaryCaffeine: "8.0";
35
+ readonly HKQuantityTypeIdentifierDietaryCalcium: "8.0";
36
+ readonly HKQuantityTypeIdentifierDietaryCarbohydrates: "8.0";
37
+ readonly HKQuantityTypeIdentifierDietaryChloride: "8.0";
38
+ readonly HKQuantityTypeIdentifierDietaryCholesterol: "8.0";
39
+ readonly HKQuantityTypeIdentifierDietaryChromium: "8.0";
40
+ readonly HKQuantityTypeIdentifierDietaryCopper: "8.0";
41
+ readonly HKQuantityTypeIdentifierDietaryEnergyConsumed: "8.0";
42
+ readonly HKQuantityTypeIdentifierDietaryFatMonounsaturated: "8.0";
43
+ readonly HKQuantityTypeIdentifierDietaryFatPolyunsaturated: "8.0";
44
+ readonly HKQuantityTypeIdentifierDietaryFatSaturated: "8.0";
45
+ readonly HKQuantityTypeIdentifierDietaryFatTotal: "8.0";
46
+ readonly HKQuantityTypeIdentifierDietaryFiber: "8.0";
47
+ readonly HKQuantityTypeIdentifierDietaryFolate: "8.0";
48
+ readonly HKQuantityTypeIdentifierDietaryIodine: "8.0";
49
+ readonly HKQuantityTypeIdentifierDietaryIron: "8.0";
50
+ readonly HKQuantityTypeIdentifierDietaryMagnesium: "8.0";
51
+ readonly HKQuantityTypeIdentifierDietaryManganese: "8.0";
52
+ readonly HKQuantityTypeIdentifierDietaryMolybdenum: "8.0";
53
+ readonly HKQuantityTypeIdentifierDietaryNiacin: "8.0";
54
+ readonly HKQuantityTypeIdentifierDietaryPantothenicAcid: "8.0";
55
+ readonly HKQuantityTypeIdentifierDietaryPhosphorus: "8.0";
56
+ readonly HKQuantityTypeIdentifierDietaryPotassium: "8.0";
57
+ readonly HKQuantityTypeIdentifierDietaryProtein: "8.0";
58
+ readonly HKQuantityTypeIdentifierDietaryRiboflavin: "8.0";
59
+ readonly HKQuantityTypeIdentifierDietarySelenium: "8.0";
60
+ readonly HKQuantityTypeIdentifierDietarySodium: "8.0";
61
+ readonly HKQuantityTypeIdentifierDietarySugar: "8.0";
62
+ readonly HKQuantityTypeIdentifierDietaryThiamin: "8.0";
63
+ readonly HKQuantityTypeIdentifierDietaryVitaminA: "8.0";
64
+ readonly HKQuantityTypeIdentifierDietaryVitaminB12: "8.0";
65
+ readonly HKQuantityTypeIdentifierDietaryVitaminB6: "8.0";
66
+ readonly HKQuantityTypeIdentifierDietaryVitaminC: "8.0";
67
+ readonly HKQuantityTypeIdentifierDietaryVitaminD: "8.0";
68
+ readonly HKQuantityTypeIdentifierDietaryVitaminE: "8.0";
69
+ readonly HKQuantityTypeIdentifierDietaryVitaminK: "8.0";
70
+ readonly HKQuantityTypeIdentifierDietaryWater: "9.0";
71
+ readonly HKQuantityTypeIdentifierDietaryZinc: "8.0";
72
+ readonly HKQuantityTypeIdentifierDistanceCrossCountrySkiing: "18.0";
73
+ readonly HKQuantityTypeIdentifierDistanceCycling: "8.0";
74
+ readonly HKQuantityTypeIdentifierDistanceDownhillSnowSports: "11.2";
75
+ readonly HKQuantityTypeIdentifierDistancePaddleSports: "18.0";
76
+ readonly HKQuantityTypeIdentifierDistanceRowing: "18.0";
77
+ readonly HKQuantityTypeIdentifierDistanceSkatingSports: "18.0";
78
+ readonly HKQuantityTypeIdentifierDistanceSwimming: "10.0";
79
+ readonly HKQuantityTypeIdentifierDistanceWalkingRunning: "8.0";
80
+ readonly HKQuantityTypeIdentifierDistanceWheelchair: "10.0";
81
+ readonly HKQuantityTypeIdentifierElectrodermalActivity: "8.0";
82
+ readonly HKQuantityTypeIdentifierEnvironmentalAudioExposure: "13.0";
83
+ readonly HKQuantityTypeIdentifierEnvironmentalSoundReduction: "16.0";
84
+ readonly HKQuantityTypeIdentifierEstimatedWorkoutEffortScore: "18.0";
85
+ readonly HKQuantityTypeIdentifierFlightsClimbed: "8.0";
86
+ readonly HKQuantityTypeIdentifierForcedExpiratoryVolume1: "8.0";
87
+ readonly HKQuantityTypeIdentifierForcedVitalCapacity: "8.0";
88
+ readonly HKQuantityTypeIdentifierHeadphoneAudioExposure: "13.0";
89
+ readonly HKQuantityTypeIdentifierHeartRate: "8.0";
90
+ readonly HKQuantityTypeIdentifierHeartRateRecoveryOneMinute: "16.0";
91
+ readonly HKQuantityTypeIdentifierHeartRateVariabilitySDNN: "11.0";
92
+ readonly HKQuantityTypeIdentifierHeight: "8.0";
93
+ readonly HKQuantityTypeIdentifierInhalerUsage: "8.0";
94
+ readonly HKQuantityTypeIdentifierInsulinDelivery: "11.0";
95
+ readonly HKQuantityTypeIdentifierLeanBodyMass: "8.0";
96
+ readonly HKQuantityTypeIdentifierNikeFuel: "8.0";
97
+ readonly HKQuantityTypeIdentifierNumberOfAlcoholicBeverages: "15.0";
98
+ readonly HKQuantityTypeIdentifierNumberOfTimesFallen: "8.0";
99
+ readonly HKQuantityTypeIdentifierOxygenSaturation: "8.0";
100
+ readonly HKQuantityTypeIdentifierPaddleSportsSpeed: "18.0";
101
+ readonly HKQuantityTypeIdentifierPeakExpiratoryFlowRate: "8.0";
102
+ readonly HKQuantityTypeIdentifierPeripheralPerfusionIndex: "8.0";
103
+ readonly HKQuantityTypeIdentifierPhysicalEffort: "17.0";
104
+ readonly HKQuantityTypeIdentifierPushCount: "10.0";
105
+ readonly HKQuantityTypeIdentifierRespiratoryRate: "8.0";
106
+ readonly HKQuantityTypeIdentifierRestingHeartRate: "11.0";
107
+ readonly HKQuantityTypeIdentifierRowingSpeed: "18.0";
108
+ readonly HKQuantityTypeIdentifierRunningGroundContactTime: "16.0";
109
+ readonly HKQuantityTypeIdentifierRunningPower: "16.0";
110
+ readonly HKQuantityTypeIdentifierRunningSpeed: "16.0";
111
+ readonly HKQuantityTypeIdentifierRunningStrideLength: "16.0";
112
+ readonly HKQuantityTypeIdentifierRunningVerticalOscillation: "16.0";
113
+ readonly HKQuantityTypeIdentifierSixMinuteWalkTestDistance: "14.0";
114
+ readonly HKQuantityTypeIdentifierStairAscentSpeed: "14.0";
115
+ readonly HKQuantityTypeIdentifierStairDescentSpeed: "14.0";
116
+ readonly HKQuantityTypeIdentifierStepCount: "8.0";
117
+ readonly HKQuantityTypeIdentifierSwimmingStrokeCount: "10.0";
118
+ readonly HKQuantityTypeIdentifierTimeInDaylight: "17.0";
119
+ readonly HKQuantityTypeIdentifierUnderwaterDepth: "16.0";
120
+ readonly HKQuantityTypeIdentifierUVExposure: "9.0";
121
+ readonly HKQuantityTypeIdentifierVO2Max: "11.0";
122
+ readonly HKQuantityTypeIdentifierWaistCircumference: "11.0";
123
+ readonly HKQuantityTypeIdentifierWalkingAsymmetryPercentage: "14.0";
124
+ readonly HKQuantityTypeIdentifierWalkingDoubleSupportPercentage: "14.0";
125
+ readonly HKQuantityTypeIdentifierWalkingHeartRateAverage: "11.0";
126
+ readonly HKQuantityTypeIdentifierWalkingSpeed: "14.0";
127
+ readonly HKQuantityTypeIdentifierWalkingStepLength: "14.0";
128
+ readonly HKQuantityTypeIdentifierWaterTemperature: "16.0";
129
+ readonly HKQuantityTypeIdentifierWorkoutEffortScore: "18.0";
130
+ };
131
+ export declare const CATEGORY_IDENTIFIER_IOS_AVAILABILITY: {
132
+ readonly HKCategoryTypeIdentifierAbdominalCramps: "13.6";
133
+ readonly HKCategoryTypeIdentifierAcne: "13.6";
134
+ readonly HKCategoryTypeIdentifierAppetiteChanges: "13.6";
135
+ readonly HKCategoryTypeIdentifierAppleStandHour: "9.0";
136
+ readonly HKCategoryTypeIdentifierAppleWalkingSteadinessEvent: "15.0";
137
+ readonly HKCategoryTypeIdentifierAudioExposureEvent: "13.0";
138
+ readonly HKCategoryTypeIdentifierBladderIncontinence: "14.0";
139
+ readonly HKCategoryTypeIdentifierBleedingAfterPregnancy: "18.0";
140
+ readonly HKCategoryTypeIdentifierBleedingDuringPregnancy: "18.0";
141
+ readonly HKCategoryTypeIdentifierBloating: "13.6";
142
+ readonly HKCategoryTypeIdentifierBreastPain: "13.6";
143
+ readonly HKCategoryTypeIdentifierCervicalMucusQuality: "9.0";
144
+ readonly HKCategoryTypeIdentifierChestTightnessOrPain: "13.6";
145
+ readonly HKCategoryTypeIdentifierChills: "13.6";
146
+ readonly HKCategoryTypeIdentifierConstipation: "13.6";
147
+ readonly HKCategoryTypeIdentifierContraceptive: "14.3";
148
+ readonly HKCategoryTypeIdentifierCoughing: "13.6";
149
+ readonly HKCategoryTypeIdentifierDiarrhea: "13.6";
150
+ readonly HKCategoryTypeIdentifierDizziness: "13.6";
151
+ readonly HKCategoryTypeIdentifierDrySkin: "14.0";
152
+ readonly HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent: "14.0";
153
+ readonly HKCategoryTypeIdentifierFainting: "13.6";
154
+ readonly HKCategoryTypeIdentifierFatigue: "13.6";
155
+ readonly HKCategoryTypeIdentifierFever: "13.6";
156
+ readonly HKCategoryTypeIdentifierGeneralizedBodyAche: "13.6";
157
+ readonly HKCategoryTypeIdentifierHairLoss: "14.0";
158
+ readonly HKCategoryTypeIdentifierHandwashingEvent: "14.0";
159
+ readonly HKCategoryTypeIdentifierHeadache: "13.6";
160
+ readonly HKCategoryTypeIdentifierHeadphoneAudioExposureEvent: "14.2";
161
+ readonly HKCategoryTypeIdentifierHeartburn: "13.6";
162
+ readonly HKCategoryTypeIdentifierHighHeartRateEvent: "12.2";
163
+ readonly HKCategoryTypeIdentifierHotFlashes: "13.6";
164
+ readonly HKCategoryTypeIdentifierHypertensionEvent: "26.2";
165
+ readonly HKCategoryTypeIdentifierInfrequentMenstrualCycles: "16.0";
166
+ readonly HKCategoryTypeIdentifierIntermenstrualBleeding: "9.0";
167
+ readonly HKCategoryTypeIdentifierIrregularHeartRhythmEvent: "12.2";
168
+ readonly HKCategoryTypeIdentifierIrregularMenstrualCycles: "16.0";
169
+ readonly HKCategoryTypeIdentifierLactation: "14.3";
170
+ readonly HKCategoryTypeIdentifierLossOfSmell: "13.6";
171
+ readonly HKCategoryTypeIdentifierLossOfTaste: "13.6";
172
+ readonly HKCategoryTypeIdentifierLowCardioFitnessEvent: "14.3";
173
+ readonly HKCategoryTypeIdentifierLowerBackPain: "13.6";
174
+ readonly HKCategoryTypeIdentifierLowHeartRateEvent: "12.2";
175
+ readonly HKCategoryTypeIdentifierMemoryLapse: "14.0";
176
+ readonly HKCategoryTypeIdentifierMenstrualFlow: "9.0";
177
+ readonly HKCategoryTypeIdentifierMindfulSession: "10.0";
178
+ readonly HKCategoryTypeIdentifierMoodChanges: "13.6";
179
+ readonly HKCategoryTypeIdentifierNausea: "13.6";
180
+ readonly HKCategoryTypeIdentifierNightSweats: "14.0";
181
+ readonly HKCategoryTypeIdentifierOvulationTestResult: "9.0";
182
+ readonly HKCategoryTypeIdentifierPelvicPain: "13.6";
183
+ readonly HKCategoryTypeIdentifierPersistentIntermenstrualBleeding: "16.0";
184
+ readonly HKCategoryTypeIdentifierPregnancy: "14.3";
185
+ readonly HKCategoryTypeIdentifierPregnancyTestResult: "15.0";
186
+ readonly HKCategoryTypeIdentifierProgesteroneTestResult: "15.0";
187
+ readonly HKCategoryTypeIdentifierProlongedMenstrualPeriods: "16.0";
188
+ readonly HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat: "13.6";
189
+ readonly HKCategoryTypeIdentifierRunnyNose: "13.6";
190
+ readonly HKCategoryTypeIdentifierSexualActivity: "9.0";
191
+ readonly HKCategoryTypeIdentifierShortnessOfBreath: "13.6";
192
+ readonly HKCategoryTypeIdentifierSinusCongestion: "13.6";
193
+ readonly HKCategoryTypeIdentifierSkippedHeartbeat: "13.6";
194
+ readonly HKCategoryTypeIdentifierSleepAnalysis: "8.0";
195
+ readonly HKCategoryTypeIdentifierSleepApneaEvent: "18.0";
196
+ readonly HKCategoryTypeIdentifierSleepChanges: "13.6";
197
+ readonly HKCategoryTypeIdentifierSoreThroat: "13.6";
198
+ readonly HKCategoryTypeIdentifierToothbrushingEvent: "13.0";
199
+ readonly HKCategoryTypeIdentifierVaginalDryness: "14.0";
200
+ readonly HKCategoryTypeIdentifierVomiting: "13.6";
201
+ readonly HKCategoryTypeIdentifierWheezing: "13.6";
202
+ };
203
+ export declare const QUANTITY_IDENTIFIER_CANONICAL_UNITS: {
204
+ readonly HKQuantityTypeIdentifierActiveEnergyBurned: "kcal";
205
+ readonly HKQuantityTypeIdentifierAppleExerciseTime: "min";
206
+ readonly HKQuantityTypeIdentifierAppleMoveTime: "min";
207
+ readonly HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances: "count";
208
+ readonly HKQuantityTypeIdentifierAppleSleepingWristTemperature: "degC";
209
+ readonly HKQuantityTypeIdentifierAppleStandTime: "min";
210
+ readonly HKQuantityTypeIdentifierAppleWalkingSteadiness: "%";
211
+ readonly HKQuantityTypeIdentifierAtrialFibrillationBurden: "%";
212
+ readonly HKQuantityTypeIdentifierBasalBodyTemperature: "degC";
213
+ readonly HKQuantityTypeIdentifierBasalEnergyBurned: "kcal";
214
+ readonly HKQuantityTypeIdentifierBloodAlcoholContent: "%";
215
+ readonly HKQuantityTypeIdentifierBloodGlucose: "mg/dL";
216
+ readonly HKQuantityTypeIdentifierBloodPressureDiastolic: "mmHg";
217
+ readonly HKQuantityTypeIdentifierBloodPressureSystolic: "mmHg";
218
+ readonly HKQuantityTypeIdentifierBodyFatPercentage: "%";
219
+ readonly HKQuantityTypeIdentifierBodyMass: "kg";
220
+ readonly HKQuantityTypeIdentifierBodyMassIndex: "count";
221
+ readonly HKQuantityTypeIdentifierBodyTemperature: "degC";
222
+ readonly HKQuantityTypeIdentifierCrossCountrySkiingSpeed: "m/s";
223
+ readonly HKQuantityTypeIdentifierCyclingCadence: "count/min";
224
+ readonly HKQuantityTypeIdentifierCyclingFunctionalThresholdPower: "W";
225
+ readonly HKQuantityTypeIdentifierCyclingPower: "W";
226
+ readonly HKQuantityTypeIdentifierCyclingSpeed: "m/s";
227
+ readonly HKQuantityTypeIdentifierDietaryBiotin: "g";
228
+ readonly HKQuantityTypeIdentifierDietaryCaffeine: "g";
229
+ readonly HKQuantityTypeIdentifierDietaryCalcium: "g";
230
+ readonly HKQuantityTypeIdentifierDietaryCarbohydrates: "g";
231
+ readonly HKQuantityTypeIdentifierDietaryChloride: "g";
232
+ readonly HKQuantityTypeIdentifierDietaryCholesterol: "g";
233
+ readonly HKQuantityTypeIdentifierDietaryChromium: "g";
234
+ readonly HKQuantityTypeIdentifierDietaryCopper: "g";
235
+ readonly HKQuantityTypeIdentifierDietaryEnergyConsumed: "kcal";
236
+ readonly HKQuantityTypeIdentifierDietaryFatMonounsaturated: "g";
237
+ readonly HKQuantityTypeIdentifierDietaryFatPolyunsaturated: "g";
238
+ readonly HKQuantityTypeIdentifierDietaryFatSaturated: "g";
239
+ readonly HKQuantityTypeIdentifierDietaryFatTotal: "g";
240
+ readonly HKQuantityTypeIdentifierDietaryFiber: "g";
241
+ readonly HKQuantityTypeIdentifierDietaryFolate: "g";
242
+ readonly HKQuantityTypeIdentifierDietaryIodine: "g";
243
+ readonly HKQuantityTypeIdentifierDietaryIron: "g";
244
+ readonly HKQuantityTypeIdentifierDietaryMagnesium: "g";
245
+ readonly HKQuantityTypeIdentifierDietaryManganese: "g";
246
+ readonly HKQuantityTypeIdentifierDietaryMolybdenum: "g";
247
+ readonly HKQuantityTypeIdentifierDietaryNiacin: "g";
248
+ readonly HKQuantityTypeIdentifierDietaryPantothenicAcid: "g";
249
+ readonly HKQuantityTypeIdentifierDietaryPhosphorus: "g";
250
+ readonly HKQuantityTypeIdentifierDietaryPotassium: "g";
251
+ readonly HKQuantityTypeIdentifierDietaryProtein: "g";
252
+ readonly HKQuantityTypeIdentifierDietaryRiboflavin: "g";
253
+ readonly HKQuantityTypeIdentifierDietarySelenium: "g";
254
+ readonly HKQuantityTypeIdentifierDietarySodium: "g";
255
+ readonly HKQuantityTypeIdentifierDietarySugar: "g";
256
+ readonly HKQuantityTypeIdentifierDietaryThiamin: "g";
257
+ readonly HKQuantityTypeIdentifierDietaryVitaminA: "g";
258
+ readonly HKQuantityTypeIdentifierDietaryVitaminB12: "g";
259
+ readonly HKQuantityTypeIdentifierDietaryVitaminB6: "g";
260
+ readonly HKQuantityTypeIdentifierDietaryVitaminC: "g";
261
+ readonly HKQuantityTypeIdentifierDietaryVitaminD: "g";
262
+ readonly HKQuantityTypeIdentifierDietaryVitaminE: "g";
263
+ readonly HKQuantityTypeIdentifierDietaryVitaminK: "g";
264
+ readonly HKQuantityTypeIdentifierDietaryWater: "mL";
265
+ readonly HKQuantityTypeIdentifierDietaryZinc: "g";
266
+ readonly HKQuantityTypeIdentifierDistanceCrossCountrySkiing: "m";
267
+ readonly HKQuantityTypeIdentifierDistanceCycling: "m";
268
+ readonly HKQuantityTypeIdentifierDistanceDownhillSnowSports: "m";
269
+ readonly HKQuantityTypeIdentifierDistancePaddleSports: "m";
270
+ readonly HKQuantityTypeIdentifierDistanceRowing: "m";
271
+ readonly HKQuantityTypeIdentifierDistanceSkatingSports: "m";
272
+ readonly HKQuantityTypeIdentifierDistanceSwimming: "m";
273
+ readonly HKQuantityTypeIdentifierDistanceWalkingRunning: "m";
274
+ readonly HKQuantityTypeIdentifierDistanceWheelchair: "m";
275
+ readonly HKQuantityTypeIdentifierElectrodermalActivity: "S";
276
+ readonly HKQuantityTypeIdentifierEnvironmentalAudioExposure: "dBASPL";
277
+ readonly HKQuantityTypeIdentifierEnvironmentalSoundReduction: "dBASPL";
278
+ readonly HKQuantityTypeIdentifierEstimatedWorkoutEffortScore: "appleEffortScore";
279
+ readonly HKQuantityTypeIdentifierFlightsClimbed: "count";
280
+ readonly HKQuantityTypeIdentifierForcedExpiratoryVolume1: "L";
281
+ readonly HKQuantityTypeIdentifierForcedVitalCapacity: "L";
282
+ readonly HKQuantityTypeIdentifierHeadphoneAudioExposure: "dBASPL";
283
+ readonly HKQuantityTypeIdentifierHeartRate: "count/s";
284
+ readonly HKQuantityTypeIdentifierHeartRateRecoveryOneMinute: "count/min";
285
+ readonly HKQuantityTypeIdentifierHeartRateVariabilitySDNN: "ms";
286
+ readonly HKQuantityTypeIdentifierHeight: "m";
287
+ readonly HKQuantityTypeIdentifierInhalerUsage: "count";
288
+ readonly HKQuantityTypeIdentifierInsulinDelivery: "IU";
289
+ readonly HKQuantityTypeIdentifierLeanBodyMass: "kg";
290
+ readonly HKQuantityTypeIdentifierNikeFuel: "count";
291
+ readonly HKQuantityTypeIdentifierNumberOfAlcoholicBeverages: "count";
292
+ readonly HKQuantityTypeIdentifierNumberOfTimesFallen: "count";
293
+ readonly HKQuantityTypeIdentifierOxygenSaturation: "%";
294
+ readonly HKQuantityTypeIdentifierPaddleSportsSpeed: "m/s";
295
+ readonly HKQuantityTypeIdentifierPeakExpiratoryFlowRate: "L/min";
296
+ readonly HKQuantityTypeIdentifierPeripheralPerfusionIndex: "%";
297
+ readonly HKQuantityTypeIdentifierPhysicalEffort: "kcal/(kg*hr)";
298
+ readonly HKQuantityTypeIdentifierPushCount: "count";
299
+ readonly HKQuantityTypeIdentifierRespiratoryRate: "count/s";
300
+ readonly HKQuantityTypeIdentifierRestingHeartRate: "count/min";
301
+ readonly HKQuantityTypeIdentifierRowingSpeed: "m/s";
302
+ readonly HKQuantityTypeIdentifierRunningGroundContactTime: "ms";
303
+ readonly HKQuantityTypeIdentifierRunningPower: "W";
304
+ readonly HKQuantityTypeIdentifierRunningSpeed: "m/s";
305
+ readonly HKQuantityTypeIdentifierRunningStrideLength: "m";
306
+ readonly HKQuantityTypeIdentifierRunningVerticalOscillation: "cm";
307
+ readonly HKQuantityTypeIdentifierSixMinuteWalkTestDistance: "m";
308
+ readonly HKQuantityTypeIdentifierStairAscentSpeed: "m/s";
309
+ readonly HKQuantityTypeIdentifierStairDescentSpeed: "m/s";
310
+ readonly HKQuantityTypeIdentifierStepCount: "count";
311
+ readonly HKQuantityTypeIdentifierSwimmingStrokeCount: "count";
312
+ readonly HKQuantityTypeIdentifierTimeInDaylight: "min";
313
+ readonly HKQuantityTypeIdentifierUnderwaterDepth: "m";
314
+ readonly HKQuantityTypeIdentifierUVExposure: null;
315
+ readonly HKQuantityTypeIdentifierVO2Max: "ml/(kg*min)";
316
+ readonly HKQuantityTypeIdentifierWaistCircumference: "m";
317
+ readonly HKQuantityTypeIdentifierWalkingAsymmetryPercentage: "%";
318
+ readonly HKQuantityTypeIdentifierWalkingDoubleSupportPercentage: "%";
319
+ readonly HKQuantityTypeIdentifierWalkingHeartRateAverage: "count/min";
320
+ readonly HKQuantityTypeIdentifierWalkingSpeed: "m/s";
321
+ readonly HKQuantityTypeIdentifierWalkingStepLength: "m";
322
+ readonly HKQuantityTypeIdentifierWaterTemperature: "degC";
323
+ readonly HKQuantityTypeIdentifierWorkoutEffortScore: "appleEffortScore";
324
+ };
325
+ export declare const CATEGORY_IDENTIFIER_VALUE_ENUMS: {
326
+ readonly HKCategoryTypeIdentifierAbdominalCramps: "CategoryValueSeverity";
327
+ readonly HKCategoryTypeIdentifierAcne: "CategoryValueSeverity";
328
+ readonly HKCategoryTypeIdentifierAppetiteChanges: "CategoryValueAppetiteChanges";
329
+ readonly HKCategoryTypeIdentifierAppleStandHour: "CategoryValueAppleStandHour";
330
+ readonly HKCategoryTypeIdentifierAppleWalkingSteadinessEvent: "CategoryValueAppleWalkingSteadinessEvent";
331
+ readonly HKCategoryTypeIdentifierAudioExposureEvent: null;
332
+ readonly HKCategoryTypeIdentifierBladderIncontinence: "CategoryValueSeverity";
333
+ readonly HKCategoryTypeIdentifierBleedingAfterPregnancy: "CategoryValueVaginalBleeding";
334
+ readonly HKCategoryTypeIdentifierBleedingDuringPregnancy: "CategoryValueVaginalBleeding";
335
+ readonly HKCategoryTypeIdentifierBloating: "CategoryValueSeverity";
336
+ readonly HKCategoryTypeIdentifierBreastPain: "CategoryValueSeverity";
337
+ readonly HKCategoryTypeIdentifierCervicalMucusQuality: "CategoryValueCervicalMucusQuality";
338
+ readonly HKCategoryTypeIdentifierChestTightnessOrPain: "CategoryValueSeverity";
339
+ readonly HKCategoryTypeIdentifierChills: "CategoryValueSeverity";
340
+ readonly HKCategoryTypeIdentifierConstipation: "CategoryValueSeverity";
341
+ readonly HKCategoryTypeIdentifierContraceptive: "CategoryValueContraceptive";
342
+ readonly HKCategoryTypeIdentifierCoughing: "CategoryValueSeverity";
343
+ readonly HKCategoryTypeIdentifierDiarrhea: "CategoryValueSeverity";
344
+ readonly HKCategoryTypeIdentifierDizziness: "CategoryValueSeverity";
345
+ readonly HKCategoryTypeIdentifierDrySkin: "CategoryValueSeverity";
346
+ readonly HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent: "CategoryValueEnvironmentalAudioExposureEvent";
347
+ readonly HKCategoryTypeIdentifierFainting: "CategoryValueSeverity";
348
+ readonly HKCategoryTypeIdentifierFatigue: "CategoryValueSeverity";
349
+ readonly HKCategoryTypeIdentifierFever: "CategoryValueSeverity";
350
+ readonly HKCategoryTypeIdentifierGeneralizedBodyAche: "CategoryValueSeverity";
351
+ readonly HKCategoryTypeIdentifierHairLoss: "CategoryValueSeverity";
352
+ readonly HKCategoryTypeIdentifierHandwashingEvent: "CategoryValue";
353
+ readonly HKCategoryTypeIdentifierHeadache: "CategoryValueSeverity";
354
+ readonly HKCategoryTypeIdentifierHeadphoneAudioExposureEvent: "CategoryValueHeadphoneAudioExposureEvent";
355
+ readonly HKCategoryTypeIdentifierHeartburn: "CategoryValueSeverity";
356
+ readonly HKCategoryTypeIdentifierHighHeartRateEvent: "CategoryValue";
357
+ readonly HKCategoryTypeIdentifierHotFlashes: "CategoryValueSeverity";
358
+ readonly HKCategoryTypeIdentifierHypertensionEvent: "CategoryValue";
359
+ readonly HKCategoryTypeIdentifierInfrequentMenstrualCycles: "CategoryValue";
360
+ readonly HKCategoryTypeIdentifierIntermenstrualBleeding: "CategoryValue";
361
+ readonly HKCategoryTypeIdentifierIrregularHeartRhythmEvent: "CategoryValue";
362
+ readonly HKCategoryTypeIdentifierIrregularMenstrualCycles: "CategoryValue";
363
+ readonly HKCategoryTypeIdentifierLactation: "CategoryValue";
364
+ readonly HKCategoryTypeIdentifierLossOfSmell: "CategoryValueSeverity";
365
+ readonly HKCategoryTypeIdentifierLossOfTaste: "CategoryValueSeverity";
366
+ readonly HKCategoryTypeIdentifierLowCardioFitnessEvent: "CategoryValueLowCardioFitnessEvent";
367
+ readonly HKCategoryTypeIdentifierLowerBackPain: "CategoryValueSeverity";
368
+ readonly HKCategoryTypeIdentifierLowHeartRateEvent: "CategoryValue";
369
+ readonly HKCategoryTypeIdentifierMemoryLapse: "CategoryValueSeverity";
370
+ readonly HKCategoryTypeIdentifierMenstrualFlow: "CategoryValueMenstrualFlow";
371
+ readonly HKCategoryTypeIdentifierMindfulSession: "CategoryValue";
372
+ readonly HKCategoryTypeIdentifierMoodChanges: "CategoryValuePresence";
373
+ readonly HKCategoryTypeIdentifierNausea: "CategoryValueSeverity";
374
+ readonly HKCategoryTypeIdentifierNightSweats: "CategoryValueSeverity";
375
+ readonly HKCategoryTypeIdentifierOvulationTestResult: "CategoryValueOvulationTestResult";
376
+ readonly HKCategoryTypeIdentifierPelvicPain: "CategoryValueSeverity";
377
+ readonly HKCategoryTypeIdentifierPersistentIntermenstrualBleeding: "CategoryValue";
378
+ readonly HKCategoryTypeIdentifierPregnancy: "CategoryValue";
379
+ readonly HKCategoryTypeIdentifierPregnancyTestResult: "CategoryValuePregnancyTestResult";
380
+ readonly HKCategoryTypeIdentifierProgesteroneTestResult: "CategoryValueProgesteroneTestResult";
381
+ readonly HKCategoryTypeIdentifierProlongedMenstrualPeriods: "CategoryValue";
382
+ readonly HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat: "CategoryValueSeverity";
383
+ readonly HKCategoryTypeIdentifierRunnyNose: "CategoryValueSeverity";
384
+ readonly HKCategoryTypeIdentifierSexualActivity: "CategoryValue";
385
+ readonly HKCategoryTypeIdentifierShortnessOfBreath: "CategoryValueSeverity";
386
+ readonly HKCategoryTypeIdentifierSinusCongestion: "CategoryValueSeverity";
387
+ readonly HKCategoryTypeIdentifierSkippedHeartbeat: "CategoryValueSeverity";
388
+ readonly HKCategoryTypeIdentifierSleepAnalysis: "CategoryValueSleepAnalysis";
389
+ readonly HKCategoryTypeIdentifierSleepApneaEvent: "CategoryValue";
390
+ readonly HKCategoryTypeIdentifierSleepChanges: "CategoryValuePresence";
391
+ readonly HKCategoryTypeIdentifierSoreThroat: "CategoryValueSeverity";
392
+ readonly HKCategoryTypeIdentifierToothbrushingEvent: "CategoryValue";
393
+ readonly HKCategoryTypeIdentifierVaginalDryness: "CategoryValueSeverity";
394
+ readonly HKCategoryTypeIdentifierVomiting: "CategoryValueSeverity";
395
+ readonly HKCategoryTypeIdentifierWheezing: "CategoryValueSeverity";
396
+ };
397
+ export declare enum AppleECGAlgorithmVersion {
398
+ value1 = 1,
399
+ value2 = 2
400
+ }
401
+ export declare enum BloodGlucoseMealTime {
402
+ preprandial = 1,
403
+ postprandial = 2
404
+ }
405
+ export declare enum BodyTemperatureSensorLocation {
406
+ other = 0,
407
+ armpit = 1,
408
+ body = 2,
409
+ ear = 3,
410
+ finger = 4,
411
+ gastroIntestinal = 5,
412
+ mouth = 6,
413
+ rectum = 7,
414
+ toe = 8,
415
+ earDrum = 9,
416
+ temporalArtery = 10,
417
+ forehead = 11
418
+ }
419
+ export declare enum CategoryValue {
420
+ notApplicable = 0
421
+ }
422
+ export declare enum CategoryValueAppetiteChanges {
423
+ unspecified = 0,
424
+ noChange = 1,
425
+ decreased = 2,
426
+ increased = 3
427
+ }
428
+ export declare enum CategoryValueAppleStandHour {
429
+ stood = 0,
430
+ idle = 1
431
+ }
432
+ export declare enum CategoryValueAppleWalkingSteadinessEvent {
433
+ initialLow = 1,
434
+ initialVeryLow = 2,
435
+ repeatLow = 3,
436
+ repeatVeryLow = 4
437
+ }
438
+ export declare enum CategoryValueAudioExposureEvent {
439
+ loudEnvironment = 1
440
+ }
441
+ export declare enum CategoryValueCervicalMucusQuality {
442
+ dry = 1,
443
+ sticky = 2,
444
+ creamy = 3,
445
+ watery = 4,
446
+ eggWhite = 5
447
+ }
448
+ export declare enum CategoryValueContraceptive {
449
+ unspecified = 1,
450
+ implant = 2,
451
+ injection = 3,
452
+ intrauterineDevice = 4,
453
+ intravaginalRing = 5,
454
+ oral = 6,
455
+ patch = 7
456
+ }
457
+ export declare enum CategoryValueEnvironmentalAudioExposureEvent {
458
+ momentaryLimit = 1
459
+ }
460
+ export declare enum CategoryValueHeadphoneAudioExposureEvent {
461
+ sevenDayLimit = 1
462
+ }
463
+ export declare enum CategoryValueLowCardioFitnessEvent {
464
+ lowFitness = 1
465
+ }
466
+ export declare enum CategoryValueMenstrualFlow {
467
+ unspecified = 1,
468
+ light = 2,
469
+ medium = 3,
470
+ heavy = 4,
471
+ none = 5
472
+ }
473
+ export declare enum CategoryValueOvulationTestResult {
474
+ negative = 1,
475
+ luteinizingHormoneSurge = 2,
476
+ positive = 2,
477
+ indeterminate = 3,
478
+ estrogenSurge = 4
479
+ }
480
+ export declare enum CategoryValuePregnancyTestResult {
481
+ negative = 1,
482
+ positive = 2,
483
+ indeterminate = 3
484
+ }
485
+ export declare enum CategoryValuePresence {
486
+ present = 0,
487
+ notPresent = 1
488
+ }
489
+ export declare enum CategoryValueProgesteroneTestResult {
490
+ negative = 1,
491
+ positive = 2,
492
+ indeterminate = 3
493
+ }
494
+ export declare enum CategoryValueSeverity {
495
+ unspecified = 0,
496
+ notPresent = 1,
497
+ mild = 2,
498
+ moderate = 3,
499
+ severe = 4
500
+ }
501
+ export declare enum CategoryValueSleepAnalysis {
502
+ inBed = 0,
503
+ asleepUnspecified = 1,
504
+ asleep = 1,
505
+ awake = 2,
506
+ asleepCore = 3,
507
+ asleepDeep = 4,
508
+ asleepREM = 5
509
+ }
510
+ export declare enum CategoryValueVaginalBleeding {
511
+ unspecified = 1,
512
+ light = 2,
513
+ medium = 3,
514
+ heavy = 4,
515
+ none = 5
516
+ }
517
+ export declare enum CyclingFunctionalThresholdPowerTestType {
518
+ maxExercise60Minute = 1,
519
+ maxExercise20Minute = 2,
520
+ rampTest = 3,
521
+ predictionExercise = 4
522
+ }
523
+ export declare enum DevicePlacementSide {
524
+ unknown = 0,
525
+ left = 1,
526
+ right = 2,
527
+ central = 3
528
+ }
529
+ export declare enum HeartRateMotionContext {
530
+ notSet = 0,
531
+ sedentary = 1,
532
+ active = 2
533
+ }
534
+ export declare enum HeartRateRecoveryTestType {
535
+ maxExercise = 1,
536
+ predictionSubMaxExercise = 2,
537
+ predictionNonExercise = 3
538
+ }
539
+ export declare enum HeartRateSensorLocation {
540
+ other = 0,
541
+ chest = 1,
542
+ wrist = 2,
543
+ finger = 3,
544
+ hand = 4,
545
+ earLobe = 5,
546
+ foot = 6
547
+ }
548
+ export declare enum InsulinDeliveryReason {
549
+ basal = 1,
550
+ bolus = 2
551
+ }
552
+ export declare enum PhysicalEffortEstimationType {
553
+ activityLookup = 1,
554
+ deviceSensed = 2
555
+ }
556
+ export declare enum SwimmingStrokeStyle {
557
+ unknown = 0,
558
+ mixed = 1,
559
+ freestyle = 2,
560
+ backstroke = 3,
561
+ breaststroke = 4,
562
+ butterfly = 5,
563
+ kickboard = 6
564
+ }
565
+ export declare enum UserMotionContext {
566
+ notSet = 0,
567
+ stationary = 1,
568
+ active = 2
569
+ }
570
+ export declare enum VO2MaxTestType {
571
+ maxExercise = 1,
572
+ predictionSubMaxExercise = 2,
573
+ predictionNonExercise = 3,
574
+ predictionStepTest = 4
575
+ }
576
+ export declare enum WaterSalinity {
577
+ freshWater = 1,
578
+ saltWater = 2
579
+ }
580
+ export declare enum WeatherCondition {
581
+ none = 0,
582
+ clear = 1,
583
+ fair = 2,
584
+ partlyCloudy = 3,
585
+ mostlyCloudy = 4,
586
+ cloudy = 5,
587
+ foggy = 6,
588
+ haze = 7,
589
+ windy = 8,
590
+ blustery = 9,
591
+ smoky = 10,
592
+ dust = 11,
593
+ snow = 12,
594
+ hail = 13,
595
+ sleet = 14,
596
+ freezingDrizzle = 15,
597
+ freezingRain = 16,
598
+ mixedRainAndHail = 17,
599
+ mixedRainAndSnow = 18,
600
+ mixedRainAndSleet = 19,
601
+ mixedSnowAndSleet = 20,
602
+ drizzle = 21,
603
+ scatteredShowers = 22,
604
+ showers = 23,
605
+ thunderstorms = 24,
606
+ tropicalStorm = 25,
607
+ hurricane = 26,
608
+ tornado = 27
609
+ }
610
+ export declare enum WorkoutActivityType {
611
+ americanFootball = 1,
612
+ archery = 2,
613
+ australianFootball = 3,
614
+ badminton = 4,
615
+ baseball = 5,
616
+ basketball = 6,
617
+ bowling = 7,
618
+ boxing = 8,
619
+ climbing = 9,
620
+ cricket = 10,
621
+ crossTraining = 11,
622
+ curling = 12,
623
+ cycling = 13,
624
+ dance = 14,
625
+ danceInspiredTraining = 15,
626
+ elliptical = 16,
627
+ equestrianSports = 17,
628
+ fencing = 18,
629
+ fishing = 19,
630
+ functionalStrengthTraining = 20,
631
+ golf = 21,
632
+ gymnastics = 22,
633
+ handball = 23,
634
+ hiking = 24,
635
+ hockey = 25,
636
+ hunting = 26,
637
+ lacrosse = 27,
638
+ martialArts = 28,
639
+ mindAndBody = 29,
640
+ mixedMetabolicCardioTraining = 30,
641
+ paddleSports = 31,
642
+ play = 32,
643
+ preparationAndRecovery = 33,
644
+ racquetball = 34,
645
+ rowing = 35,
646
+ rugby = 36,
647
+ running = 37,
648
+ sailing = 38,
649
+ skatingSports = 39,
650
+ snowSports = 40,
651
+ soccer = 41,
652
+ softball = 42,
653
+ squash = 43,
654
+ stairClimbing = 44,
655
+ surfingSports = 45,
656
+ swimming = 46,
657
+ tableTennis = 47,
658
+ tennis = 48,
659
+ trackAndField = 49,
660
+ traditionalStrengthTraining = 50,
661
+ volleyball = 51,
662
+ walking = 52,
663
+ waterFitness = 53,
664
+ waterPolo = 54,
665
+ waterSports = 55,
666
+ wrestling = 56,
667
+ yoga = 57,
668
+ barre = 58,
669
+ coreTraining = 59,
670
+ crossCountrySkiing = 60,
671
+ downhillSkiing = 61,
672
+ flexibility = 62,
673
+ highIntensityIntervalTraining = 63,
674
+ jumpRope = 64,
675
+ kickboxing = 65,
676
+ pilates = 66,
677
+ snowboarding = 67,
678
+ stairs = 68,
679
+ stepTraining = 69,
680
+ wheelchairWalkPace = 70,
681
+ wheelchairRunPace = 71,
682
+ taiChi = 72,
683
+ mixedCardio = 73,
684
+ handCycling = 74,
685
+ discSports = 75,
686
+ fitnessGaming = 76,
687
+ cardioDance = 77,
688
+ socialDance = 78,
689
+ pickleball = 79,
690
+ cooldown = 80,
691
+ swimBikeRun = 82,
692
+ transition = 83,
693
+ underwaterDiving = 84,
694
+ other = 3000
695
+ }
696
+ export declare enum WorkoutEventType {
697
+ pause = 1,
698
+ resume = 2,
699
+ lap = 3,
700
+ marker = 4,
701
+ motionPaused = 5,
702
+ motionResumed = 6,
703
+ segment = 7,
704
+ pauseOrResumeRequest = 8
705
+ }
706
+ export declare enum WorkoutSwimmingLocationType {
707
+ unknown = 0,
708
+ pool = 1,
709
+ openWater = 2
710
+ }
711
+ export interface CategoryValueByIdentifierMap {
712
+ readonly HKCategoryTypeIdentifierAbdominalCramps: CategoryValueSeverity;
713
+ readonly HKCategoryTypeIdentifierAcne: CategoryValueSeverity;
714
+ readonly HKCategoryTypeIdentifierAppetiteChanges: CategoryValueAppetiteChanges;
715
+ readonly HKCategoryTypeIdentifierAppleStandHour: CategoryValueAppleStandHour;
716
+ readonly HKCategoryTypeIdentifierAppleWalkingSteadinessEvent: CategoryValueAppleWalkingSteadinessEvent;
717
+ readonly HKCategoryTypeIdentifierBladderIncontinence: CategoryValueSeverity;
718
+ readonly HKCategoryTypeIdentifierBleedingAfterPregnancy: CategoryValueVaginalBleeding;
719
+ readonly HKCategoryTypeIdentifierBleedingDuringPregnancy: CategoryValueVaginalBleeding;
720
+ readonly HKCategoryTypeIdentifierBloating: CategoryValueSeverity;
721
+ readonly HKCategoryTypeIdentifierBreastPain: CategoryValueSeverity;
722
+ readonly HKCategoryTypeIdentifierCervicalMucusQuality: CategoryValueCervicalMucusQuality;
723
+ readonly HKCategoryTypeIdentifierChestTightnessOrPain: CategoryValueSeverity;
724
+ readonly HKCategoryTypeIdentifierChills: CategoryValueSeverity;
725
+ readonly HKCategoryTypeIdentifierConstipation: CategoryValueSeverity;
726
+ readonly HKCategoryTypeIdentifierContraceptive: CategoryValueContraceptive;
727
+ readonly HKCategoryTypeIdentifierCoughing: CategoryValueSeverity;
728
+ readonly HKCategoryTypeIdentifierDiarrhea: CategoryValueSeverity;
729
+ readonly HKCategoryTypeIdentifierDizziness: CategoryValueSeverity;
730
+ readonly HKCategoryTypeIdentifierDrySkin: CategoryValueSeverity;
731
+ readonly HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent: CategoryValueEnvironmentalAudioExposureEvent;
732
+ readonly HKCategoryTypeIdentifierFainting: CategoryValueSeverity;
733
+ readonly HKCategoryTypeIdentifierFatigue: CategoryValueSeverity;
734
+ readonly HKCategoryTypeIdentifierFever: CategoryValueSeverity;
735
+ readonly HKCategoryTypeIdentifierGeneralizedBodyAche: CategoryValueSeverity;
736
+ readonly HKCategoryTypeIdentifierHairLoss: CategoryValueSeverity;
737
+ readonly HKCategoryTypeIdentifierHandwashingEvent: CategoryValue;
738
+ readonly HKCategoryTypeIdentifierHeadache: CategoryValueSeverity;
739
+ readonly HKCategoryTypeIdentifierHeadphoneAudioExposureEvent: CategoryValueHeadphoneAudioExposureEvent;
740
+ readonly HKCategoryTypeIdentifierHeartburn: CategoryValueSeverity;
741
+ readonly HKCategoryTypeIdentifierHighHeartRateEvent: CategoryValue;
742
+ readonly HKCategoryTypeIdentifierHotFlashes: CategoryValueSeverity;
743
+ readonly HKCategoryTypeIdentifierHypertensionEvent: CategoryValue;
744
+ readonly HKCategoryTypeIdentifierInfrequentMenstrualCycles: CategoryValue;
745
+ readonly HKCategoryTypeIdentifierIntermenstrualBleeding: CategoryValue;
746
+ readonly HKCategoryTypeIdentifierIrregularHeartRhythmEvent: CategoryValue;
747
+ readonly HKCategoryTypeIdentifierIrregularMenstrualCycles: CategoryValue;
748
+ readonly HKCategoryTypeIdentifierLactation: CategoryValue;
749
+ readonly HKCategoryTypeIdentifierLossOfSmell: CategoryValueSeverity;
750
+ readonly HKCategoryTypeIdentifierLossOfTaste: CategoryValueSeverity;
751
+ readonly HKCategoryTypeIdentifierLowCardioFitnessEvent: CategoryValueLowCardioFitnessEvent;
752
+ readonly HKCategoryTypeIdentifierLowerBackPain: CategoryValueSeverity;
753
+ readonly HKCategoryTypeIdentifierLowHeartRateEvent: CategoryValue;
754
+ readonly HKCategoryTypeIdentifierMemoryLapse: CategoryValueSeverity;
755
+ readonly HKCategoryTypeIdentifierMenstrualFlow: CategoryValueMenstrualFlow;
756
+ readonly HKCategoryTypeIdentifierMindfulSession: CategoryValue;
757
+ readonly HKCategoryTypeIdentifierMoodChanges: CategoryValuePresence;
758
+ readonly HKCategoryTypeIdentifierNausea: CategoryValueSeverity;
759
+ readonly HKCategoryTypeIdentifierNightSweats: CategoryValueSeverity;
760
+ readonly HKCategoryTypeIdentifierOvulationTestResult: CategoryValueOvulationTestResult;
761
+ readonly HKCategoryTypeIdentifierPelvicPain: CategoryValueSeverity;
762
+ readonly HKCategoryTypeIdentifierPersistentIntermenstrualBleeding: CategoryValue;
763
+ readonly HKCategoryTypeIdentifierPregnancy: CategoryValue;
764
+ readonly HKCategoryTypeIdentifierPregnancyTestResult: CategoryValuePregnancyTestResult;
765
+ readonly HKCategoryTypeIdentifierProgesteroneTestResult: CategoryValueProgesteroneTestResult;
766
+ readonly HKCategoryTypeIdentifierProlongedMenstrualPeriods: CategoryValue;
767
+ readonly HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat: CategoryValueSeverity;
768
+ readonly HKCategoryTypeIdentifierRunnyNose: CategoryValueSeverity;
769
+ readonly HKCategoryTypeIdentifierSexualActivity: CategoryValue;
770
+ readonly HKCategoryTypeIdentifierShortnessOfBreath: CategoryValueSeverity;
771
+ readonly HKCategoryTypeIdentifierSinusCongestion: CategoryValueSeverity;
772
+ readonly HKCategoryTypeIdentifierSkippedHeartbeat: CategoryValueSeverity;
773
+ readonly HKCategoryTypeIdentifierSleepAnalysis: CategoryValueSleepAnalysis;
774
+ readonly HKCategoryTypeIdentifierSleepApneaEvent: CategoryValue;
775
+ readonly HKCategoryTypeIdentifierSleepChanges: CategoryValuePresence;
776
+ readonly HKCategoryTypeIdentifierSoreThroat: CategoryValueSeverity;
777
+ readonly HKCategoryTypeIdentifierToothbrushingEvent: CategoryValue;
778
+ readonly HKCategoryTypeIdentifierVaginalDryness: CategoryValueSeverity;
779
+ readonly HKCategoryTypeIdentifierVomiting: CategoryValueSeverity;
780
+ readonly HKCategoryTypeIdentifierWheezing: CategoryValueSeverity;
781
+ }
782
+ export type CategoryValueForIdentifierGenerated<T extends CategoryTypeIdentifier = CategoryTypeIdentifier> = T extends keyof CategoryValueByIdentifierMap ? CategoryValueByIdentifierMap[T] : number;
783
+ export interface KnownObjectMetadata {
784
+ readonly HKDeviceManufacturerName?: string;
785
+ readonly HKDeviceName?: string;
786
+ readonly HKDeviceSerialNumber?: string;
787
+ readonly HKDigitalSignature?: string;
788
+ readonly HKExternalUUID?: string;
789
+ readonly HKFoodType?: string;
790
+ readonly HKReferenceRangeLowerLimit?: number;
791
+ readonly HKReferenceRangeUpperLimit?: number;
792
+ readonly HKSyncIdentifier?: string;
793
+ readonly HKSyncVersion?: number;
794
+ readonly HKTimeZone?: string;
795
+ readonly HKUDIDeviceIdentifier?: string;
796
+ readonly HKUDIProductionIdentifier?: string;
797
+ readonly HKWasTakenInLab?: boolean;
798
+ readonly HKWasUserEntered?: boolean;
799
+ }
800
+ export interface KnownSampleMetadata extends KnownObjectMetadata {
801
+ readonly HKActivityType?: WorkoutActivityType;
802
+ readonly HKAlgorithmVersion?: number;
803
+ readonly HKAppleDeviceCalibrated?: boolean;
804
+ readonly HKAudioExposureDuration?: Quantity;
805
+ readonly HKBarometricPressure?: Quantity;
806
+ readonly HKDateOfEarliestDataUsedForEstimate?: string;
807
+ readonly HKMaximumLightIntensity?: Quantity;
808
+ readonly HKPhysicalEffortEstimationType?: PhysicalEffortEstimationType;
809
+ readonly HKUserMotionContext?: UserMotionContext;
810
+ readonly HKWaterSalinity?: WaterSalinity;
811
+ readonly HKWeatherCondition?: WeatherCondition;
812
+ readonly HKWeatherHumidity?: Quantity;
813
+ readonly HKWeatherTemperature?: Quantity;
814
+ }
815
+ export interface CategoryTypedMetadata extends KnownSampleMetadata {
816
+ readonly HKAudioExposureLevel?: Quantity;
817
+ readonly HKHeadphoneGain?: Quantity;
818
+ readonly HKHeartRateEventThreshold?: Quantity;
819
+ readonly HKLowCardioFitnessEventThreshold?: Quantity;
820
+ readonly HKMenstrualCycleStart?: boolean;
821
+ readonly HKSexualActivityProtectionUsed?: boolean;
822
+ readonly HKVO2MaxValue?: Quantity;
823
+ }
824
+ export interface QuantityTypedMetadata extends KnownSampleMetadata {
825
+ readonly HKHeartRateMotionContext?: HeartRateMotionContext;
826
+ readonly HKHeartRateRecoveryActivityDuration?: Quantity;
827
+ readonly HKHeartRateRecoveryActivityType?: WorkoutActivityType;
828
+ readonly HKHeartRateRecoveryMaxObservedRecoveryHeartRate?: Quantity;
829
+ readonly HKHeartRateRecoveryTestType?: HeartRateRecoveryTestType;
830
+ readonly HKHeartRateSensorLocation?: HeartRateSensorLocation;
831
+ readonly HKQuantityClampedToLowerBound?: boolean;
832
+ readonly HKQuantityClampedToUpperBound?: boolean;
833
+ readonly HKSessionEstimate?: Quantity;
834
+ readonly HKBloodGlucoseMealTime?: BloodGlucoseMealTime;
835
+ readonly HKBodyTemperatureSensorLocation?: BodyTemperatureSensorLocation;
836
+ readonly HKInsulinDeliveryReason?: InsulinDeliveryReason;
837
+ readonly HKVO2MaxTestType?: VO2MaxTestType;
838
+ }
839
+ export interface WorkoutTypedMetadata extends KnownSampleMetadata {
840
+ readonly HKAlpineSlopeGrade?: Quantity;
841
+ readonly HKAppleFitnessPlusCatalogIdentifier?: string;
842
+ readonly HKAppleFitnessPlusSession?: boolean;
843
+ readonly HKAverageMETs?: Quantity;
844
+ readonly HKAverageSpeed?: Quantity;
845
+ readonly HKCoachedWorkout?: boolean;
846
+ readonly HKCrossTrainerDistance?: Quantity;
847
+ readonly HKElevationAscended?: Quantity;
848
+ readonly HKElevationDescended?: Quantity;
849
+ readonly HKFitnessMachineDuration?: Quantity;
850
+ readonly HKGroupFitness?: boolean;
851
+ readonly HKIndoorBikeDistance?: Quantity;
852
+ readonly HKIndoorWorkout?: boolean;
853
+ readonly HKLapLength?: Quantity;
854
+ readonly HKMaximumSpeed?: Quantity;
855
+ readonly HKSwimmingLocationType?: WorkoutSwimmingLocationType;
856
+ readonly HKSWOLFScore?: number;
857
+ readonly HKWeatherCondition?: WeatherCondition;
858
+ readonly HKWeatherHumidity?: Quantity;
859
+ readonly HKWeatherTemperature?: Quantity;
860
+ readonly HKWorkoutBrandName?: string;
861
+ }
862
+ export interface WorkoutEventTypedMetadata {
863
+ readonly HKSwimmingStrokeStyle?: SwimmingStrokeStyle;
864
+ }
865
+ export interface CategorySpecificMetadataByIdentifierMap {
866
+ readonly HKCategoryTypeIdentifierAudioExposureEvent: Pick<CategoryTypedMetadata, 'HKAudioExposureLevel' | 'HKHeadphoneGain'>;
867
+ readonly HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent: Pick<CategoryTypedMetadata, 'HKAudioExposureLevel'>;
868
+ readonly HKCategoryTypeIdentifierHeadphoneAudioExposureEvent: Pick<CategoryTypedMetadata, 'HKAudioExposureLevel' | 'HKHeadphoneGain'>;
869
+ readonly HKCategoryTypeIdentifierHighHeartRateEvent: Pick<CategoryTypedMetadata, 'HKHeartRateEventThreshold'>;
870
+ readonly HKCategoryTypeIdentifierLowCardioFitnessEvent: Pick<CategoryTypedMetadata, 'HKLowCardioFitnessEventThreshold' | 'HKVO2MaxValue'>;
871
+ readonly HKCategoryTypeIdentifierLowHeartRateEvent: Pick<CategoryTypedMetadata, 'HKHeartRateEventThreshold'>;
872
+ readonly HKCategoryTypeIdentifierMenstrualFlow: Pick<CategoryTypedMetadata, 'HKMenstrualCycleStart'>;
873
+ readonly HKCategoryTypeIdentifierSexualActivity: Pick<CategoryTypedMetadata, 'HKSexualActivityProtectionUsed'>;
874
+ }
875
+ export type CategoryTypedMetadataForIdentifierGenerated<T extends CategoryTypeIdentifier = CategoryTypeIdentifier> = KnownSampleMetadata & (T extends keyof CategorySpecificMetadataByIdentifierMap ? CategorySpecificMetadataByIdentifierMap[T] : Record<string, never>);
876
+ export interface QuantitySpecificMetadataByIdentifierMap {
877
+ readonly HKQuantityTypeIdentifierBasalBodyTemperature: Pick<QuantityTypedMetadata, 'HKBodyTemperatureSensorLocation'>;
878
+ readonly HKQuantityTypeIdentifierBloodGlucose: Pick<QuantityTypedMetadata, 'HKBloodGlucoseMealTime'>;
879
+ readonly HKQuantityTypeIdentifierBodyTemperature: Pick<QuantityTypedMetadata, 'HKBodyTemperatureSensorLocation'>;
880
+ readonly HKQuantityTypeIdentifierInsulinDelivery: Pick<QuantityTypedMetadata, 'HKInsulinDeliveryReason'>;
881
+ readonly HKQuantityTypeIdentifierVO2Max: Pick<QuantityTypedMetadata, 'HKVO2MaxTestType'>;
882
+ }
883
+ export type QuantityTypedMetadataForIdentifierGenerated<T extends QuantityTypeIdentifier = QuantityTypeIdentifier> = KnownSampleMetadata & Pick<QuantityTypedMetadata, 'HKHeartRateMotionContext' | 'HKHeartRateRecoveryActivityDuration' | 'HKHeartRateRecoveryActivityType' | 'HKHeartRateRecoveryMaxObservedRecoveryHeartRate' | 'HKHeartRateRecoveryTestType' | 'HKHeartRateSensorLocation' | 'HKQuantityClampedToLowerBound' | 'HKQuantityClampedToUpperBound' | 'HKSessionEstimate'> & (T extends keyof QuantitySpecificMetadataByIdentifierMap ? QuantitySpecificMetadataByIdentifierMap[T] : Record<string, never>);
884
+ export interface QuantityUnitByIdentifierMap {
885
+ readonly HKQuantityTypeIdentifierActiveEnergyBurned: EnergyUnit;
886
+ readonly HKQuantityTypeIdentifierAppleExerciseTime: TimeUnit;
887
+ readonly HKQuantityTypeIdentifierAppleMoveTime: TimeUnit;
888
+ readonly HKQuantityTypeIdentifierAppleSleepingBreathingDisturbances: 'count';
889
+ readonly HKQuantityTypeIdentifierAppleSleepingWristTemperature: TemperatureUnit;
890
+ readonly HKQuantityTypeIdentifierAppleStandTime: TimeUnit;
891
+ readonly HKQuantityTypeIdentifierAppleWalkingSteadiness: '%';
892
+ readonly HKQuantityTypeIdentifierAtrialFibrillationBurden: '%';
893
+ readonly HKQuantityTypeIdentifierBasalBodyTemperature: TemperatureUnit;
894
+ readonly HKQuantityTypeIdentifierBasalEnergyBurned: EnergyUnit;
895
+ readonly HKQuantityTypeIdentifierBloodAlcoholContent: '%';
896
+ readonly HKQuantityTypeIdentifierBloodGlucose: BloodGlucoseUnit;
897
+ readonly HKQuantityTypeIdentifierBloodPressureDiastolic: PressureUnit;
898
+ readonly HKQuantityTypeIdentifierBloodPressureSystolic: PressureUnit;
899
+ readonly HKQuantityTypeIdentifierBodyFatPercentage: '%';
900
+ readonly HKQuantityTypeIdentifierBodyMass: MassUnit;
901
+ readonly HKQuantityTypeIdentifierBodyMassIndex: 'count';
902
+ readonly HKQuantityTypeIdentifierBodyTemperature: TemperatureUnit;
903
+ readonly HKQuantityTypeIdentifierCrossCountrySkiingSpeed: SpeedUnit<LengthUnit, TimeUnit>;
904
+ readonly HKQuantityTypeIdentifierCyclingCadence: CountPerTime<TimeUnit>;
905
+ readonly HKQuantityTypeIdentifierCyclingFunctionalThresholdPower: string;
906
+ readonly HKQuantityTypeIdentifierCyclingPower: string;
907
+ readonly HKQuantityTypeIdentifierCyclingSpeed: SpeedUnit<LengthUnit, TimeUnit>;
908
+ readonly HKQuantityTypeIdentifierDietaryBiotin: MassUnit;
909
+ readonly HKQuantityTypeIdentifierDietaryCaffeine: MassUnit;
910
+ readonly HKQuantityTypeIdentifierDietaryCalcium: MassUnit;
911
+ readonly HKQuantityTypeIdentifierDietaryCarbohydrates: MassUnit;
912
+ readonly HKQuantityTypeIdentifierDietaryChloride: MassUnit;
913
+ readonly HKQuantityTypeIdentifierDietaryCholesterol: MassUnit;
914
+ readonly HKQuantityTypeIdentifierDietaryChromium: MassUnit;
915
+ readonly HKQuantityTypeIdentifierDietaryCopper: MassUnit;
916
+ readonly HKQuantityTypeIdentifierDietaryEnergyConsumed: EnergyUnit;
917
+ readonly HKQuantityTypeIdentifierDietaryFatMonounsaturated: MassUnit;
918
+ readonly HKQuantityTypeIdentifierDietaryFatPolyunsaturated: MassUnit;
919
+ readonly HKQuantityTypeIdentifierDietaryFatSaturated: MassUnit;
920
+ readonly HKQuantityTypeIdentifierDietaryFatTotal: MassUnit;
921
+ readonly HKQuantityTypeIdentifierDietaryFiber: MassUnit;
922
+ readonly HKQuantityTypeIdentifierDietaryFolate: MassUnit;
923
+ readonly HKQuantityTypeIdentifierDietaryIodine: MassUnit;
924
+ readonly HKQuantityTypeIdentifierDietaryIron: MassUnit;
925
+ readonly HKQuantityTypeIdentifierDietaryMagnesium: MassUnit;
926
+ readonly HKQuantityTypeIdentifierDietaryManganese: MassUnit;
927
+ readonly HKQuantityTypeIdentifierDietaryMolybdenum: MassUnit;
928
+ readonly HKQuantityTypeIdentifierDietaryNiacin: MassUnit;
929
+ readonly HKQuantityTypeIdentifierDietaryPantothenicAcid: MassUnit;
930
+ readonly HKQuantityTypeIdentifierDietaryPhosphorus: MassUnit;
931
+ readonly HKQuantityTypeIdentifierDietaryPotassium: MassUnit;
932
+ readonly HKQuantityTypeIdentifierDietaryProtein: MassUnit;
933
+ readonly HKQuantityTypeIdentifierDietaryRiboflavin: MassUnit;
934
+ readonly HKQuantityTypeIdentifierDietarySelenium: MassUnit;
935
+ readonly HKQuantityTypeIdentifierDietarySodium: MassUnit;
936
+ readonly HKQuantityTypeIdentifierDietarySugar: MassUnit;
937
+ readonly HKQuantityTypeIdentifierDietaryThiamin: MassUnit;
938
+ readonly HKQuantityTypeIdentifierDietaryVitaminA: MassUnit;
939
+ readonly HKQuantityTypeIdentifierDietaryVitaminB12: MassUnit;
940
+ readonly HKQuantityTypeIdentifierDietaryVitaminB6: MassUnit;
941
+ readonly HKQuantityTypeIdentifierDietaryVitaminC: MassUnit;
942
+ readonly HKQuantityTypeIdentifierDietaryVitaminD: MassUnit;
943
+ readonly HKQuantityTypeIdentifierDietaryVitaminE: MassUnit;
944
+ readonly HKQuantityTypeIdentifierDietaryVitaminK: MassUnit;
945
+ readonly HKQuantityTypeIdentifierDietaryWater: string;
946
+ readonly HKQuantityTypeIdentifierDietaryZinc: MassUnit;
947
+ readonly HKQuantityTypeIdentifierDistanceCrossCountrySkiing: LengthUnit;
948
+ readonly HKQuantityTypeIdentifierDistanceCycling: LengthUnit;
949
+ readonly HKQuantityTypeIdentifierDistanceDownhillSnowSports: LengthUnit;
950
+ readonly HKQuantityTypeIdentifierDistancePaddleSports: LengthUnit;
951
+ readonly HKQuantityTypeIdentifierDistanceRowing: LengthUnit;
952
+ readonly HKQuantityTypeIdentifierDistanceSkatingSports: LengthUnit;
953
+ readonly HKQuantityTypeIdentifierDistanceSwimming: LengthUnit;
954
+ readonly HKQuantityTypeIdentifierDistanceWalkingRunning: LengthUnit;
955
+ readonly HKQuantityTypeIdentifierDistanceWheelchair: LengthUnit;
956
+ readonly HKQuantityTypeIdentifierElectrodermalActivity: string;
957
+ readonly HKQuantityTypeIdentifierEnvironmentalAudioExposure: PressureUnit;
958
+ readonly HKQuantityTypeIdentifierEnvironmentalSoundReduction: PressureUnit;
959
+ readonly HKQuantityTypeIdentifierEstimatedWorkoutEffortScore: 'appleEffortScore';
960
+ readonly HKQuantityTypeIdentifierFlightsClimbed: 'count';
961
+ readonly HKQuantityTypeIdentifierForcedExpiratoryVolume1: string;
962
+ readonly HKQuantityTypeIdentifierForcedVitalCapacity: string;
963
+ readonly HKQuantityTypeIdentifierHeadphoneAudioExposure: PressureUnit;
964
+ readonly HKQuantityTypeIdentifierHeartRate: CountPerTime<TimeUnit>;
965
+ readonly HKQuantityTypeIdentifierHeartRateRecoveryOneMinute: CountPerTime<TimeUnit>;
966
+ readonly HKQuantityTypeIdentifierHeartRateVariabilitySDNN: string;
967
+ readonly HKQuantityTypeIdentifierHeight: LengthUnit;
968
+ readonly HKQuantityTypeIdentifierInhalerUsage: 'count';
969
+ readonly HKQuantityTypeIdentifierInsulinDelivery: 'IU';
970
+ readonly HKQuantityTypeIdentifierLeanBodyMass: MassUnit;
971
+ readonly HKQuantityTypeIdentifierNikeFuel: 'count';
972
+ readonly HKQuantityTypeIdentifierNumberOfAlcoholicBeverages: 'count';
973
+ readonly HKQuantityTypeIdentifierNumberOfTimesFallen: 'count';
974
+ readonly HKQuantityTypeIdentifierOxygenSaturation: '%';
975
+ readonly HKQuantityTypeIdentifierPaddleSportsSpeed: SpeedUnit<LengthUnit, TimeUnit>;
976
+ readonly HKQuantityTypeIdentifierPeakExpiratoryFlowRate: string;
977
+ readonly HKQuantityTypeIdentifierPeripheralPerfusionIndex: '%';
978
+ readonly HKQuantityTypeIdentifierPhysicalEffort: string;
979
+ readonly HKQuantityTypeIdentifierPushCount: 'count';
980
+ readonly HKQuantityTypeIdentifierRespiratoryRate: CountPerTime<TimeUnit>;
981
+ readonly HKQuantityTypeIdentifierRestingHeartRate: CountPerTime<TimeUnit>;
982
+ readonly HKQuantityTypeIdentifierRowingSpeed: SpeedUnit<LengthUnit, TimeUnit>;
983
+ readonly HKQuantityTypeIdentifierRunningGroundContactTime: string;
984
+ readonly HKQuantityTypeIdentifierRunningPower: string;
985
+ readonly HKQuantityTypeIdentifierRunningSpeed: SpeedUnit<LengthUnit, TimeUnit>;
986
+ readonly HKQuantityTypeIdentifierRunningStrideLength: LengthUnit;
987
+ readonly HKQuantityTypeIdentifierRunningVerticalOscillation: LengthUnit;
988
+ readonly HKQuantityTypeIdentifierSixMinuteWalkTestDistance: LengthUnit;
989
+ readonly HKQuantityTypeIdentifierStairAscentSpeed: SpeedUnit<LengthUnit, TimeUnit>;
990
+ readonly HKQuantityTypeIdentifierStairDescentSpeed: SpeedUnit<LengthUnit, TimeUnit>;
991
+ readonly HKQuantityTypeIdentifierStepCount: 'count';
992
+ readonly HKQuantityTypeIdentifierSwimmingStrokeCount: 'count';
993
+ readonly HKQuantityTypeIdentifierTimeInDaylight: TimeUnit;
994
+ readonly HKQuantityTypeIdentifierUnderwaterDepth: LengthUnit;
995
+ readonly HKQuantityTypeIdentifierUVExposure: string;
996
+ readonly HKQuantityTypeIdentifierVO2Max: string;
997
+ readonly HKQuantityTypeIdentifierWaistCircumference: LengthUnit;
998
+ readonly HKQuantityTypeIdentifierWalkingAsymmetryPercentage: '%';
999
+ readonly HKQuantityTypeIdentifierWalkingDoubleSupportPercentage: '%';
1000
+ readonly HKQuantityTypeIdentifierWalkingHeartRateAverage: CountPerTime<TimeUnit>;
1001
+ readonly HKQuantityTypeIdentifierWalkingSpeed: SpeedUnit<LengthUnit, TimeUnit>;
1002
+ readonly HKQuantityTypeIdentifierWalkingStepLength: LengthUnit;
1003
+ readonly HKQuantityTypeIdentifierWaterTemperature: TemperatureUnit;
1004
+ readonly HKQuantityTypeIdentifierWorkoutEffortScore: 'appleEffortScore';
1005
+ }
1006
+ export type UnitForIdentifierGenerated<T extends QuantityTypeIdentifier = QuantityTypeIdentifier> = T extends keyof QuantityUnitByIdentifierMap ? QuantityUnitByIdentifierMap[T] : string;