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