@kingstinct/react-native-healthkit 8.7.2 → 9.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 (449) hide show
  1. package/ReactNativeHealthkit.podspec +36 -0
  2. package/app.plugin.js +43 -33
  3. package/ios/Bridge.h +8 -0
  4. package/ios/CategoryTypeModule.swift +128 -0
  5. package/ios/CharacteristicTypeModule.swift +78 -0
  6. package/ios/Constants.swift +2 -0
  7. package/ios/CoreModule.swift +376 -0
  8. package/ios/CorrelationTypeModule.swift +153 -0
  9. package/ios/HeartbeatSeriesModule.swift +189 -0
  10. package/ios/Helpers.swift +529 -251
  11. package/ios/QuantityTypeModule.swift +461 -0
  12. package/ios/Serializers.swift +211 -124
  13. package/ios/SourceProxy.swift +35 -0
  14. package/ios/StateOfMindModule.swift +160 -0
  15. package/ios/WorkoutProxy.swift +405 -0
  16. package/ios/WorkoutSessionModule.swift +182 -0
  17. package/ios/WorkoutsModule.swift +357 -0
  18. package/package.json +43 -127
  19. package/react-native.config.js +16 -0
  20. package/src/hooks/useHealthkitAuthorization.test.ts +47 -29
  21. package/src/hooks/useHealthkitAuthorization.ts +21 -15
  22. package/src/hooks/useIsHealthDataAvailable.test.ts +17 -7
  23. package/src/hooks/useIsHealthDataAvailable.ts +7 -7
  24. package/src/hooks/useMostRecentCategorySample.ts +10 -12
  25. package/src/hooks/useMostRecentQuantitySample.ts +17 -36
  26. package/src/hooks/useMostRecentWorkout.ts +16 -38
  27. package/src/hooks/useSources.ts +8 -12
  28. package/src/hooks/useStatisticsForQuantity.ts +19 -14
  29. package/src/hooks/useSubscribeToChanges.ts +9 -13
  30. package/src/index.ios.ts +232 -0
  31. package/src/index.ts +444 -0
  32. package/src/modules.ts +43 -0
  33. package/src/specs/CategoryTypeModule.nitro.ts +64 -0
  34. package/src/specs/CharacteristicTypeModule.nitro.ts +22 -0
  35. package/src/specs/CoreModule.nitro.ts +107 -0
  36. package/src/specs/CorrelationTypeModule.nitro.ts +23 -0
  37. package/src/specs/HeartbeatSeriesModule.nitro.ts +19 -0
  38. package/src/specs/QuantityTypeModule.nitro.ts +60 -0
  39. package/src/specs/SourceProxy.nitro.ts +13 -0
  40. package/src/specs/StateOfMindModule.nitro.ts +23 -0
  41. package/src/specs/WorkoutProxy.nitro.ts +18 -0
  42. package/src/specs/WorkoutSessionModule.nitro.ts +71 -0
  43. package/src/specs/WorkoutsModule.nitro.ts +32 -0
  44. package/src/test-setup.ts +68 -54
  45. package/src/test-utils.ts +3 -2
  46. package/src/types/Auth.ts +17 -0
  47. package/src/types/Background.ts +9 -0
  48. package/src/types/CategoryType.ts +249 -0
  49. package/src/types/CategoryTypeIdentifier.ts +99 -0
  50. package/src/types/Characteristics.ts +53 -0
  51. package/src/types/Constants.ts +25 -0
  52. package/src/types/CorrelationType.ts +31 -0
  53. package/src/types/Device.ts +13 -0
  54. package/src/types/HeartbeatSeries.ts +29 -0
  55. package/src/types/InterfaceVerification.ts +164 -0
  56. package/src/types/InterfaceVerificationExample.ts +89 -0
  57. package/src/types/QuantitySample.ts +30 -0
  58. package/src/types/QuantityType.ts +192 -0
  59. package/src/types/QuantityTypeIdentifier.ts +758 -0
  60. package/src/types/QueryOptions.ts +69 -0
  61. package/src/types/README-InterfaceVerification.md +103 -0
  62. package/src/types/Shared.ts +79 -0
  63. package/src/types/Source.ts +11 -0
  64. package/src/types/StateOfMind.ts +110 -0
  65. package/src/types/Subscriptons.ts +10 -0
  66. package/src/types/Units.ts +190 -0
  67. package/src/types/WeatherCondition.ts +31 -0
  68. package/src/types/WorkoutKit.ts +18 -0
  69. package/src/types/Workouts.ts +282 -0
  70. package/src/utils/getMostRecentCategorySample.ts +7 -11
  71. package/src/utils/getMostRecentQuantitySample.ts +8 -18
  72. package/src/utils/getMostRecentWorkout.ts +7 -17
  73. package/src/utils/getPreferredUnit.ts +12 -8
  74. package/src/utils/subscribeToChanges.ts +9 -26
  75. package/LICENSE +0 -21
  76. package/README.md +0 -179
  77. package/ios/ReactNativeHealthkit-Bridging-Header.h +0 -2
  78. package/ios/ReactNativeHealthkit.m +0 -271
  79. package/ios/ReactNativeHealthkit.swift +0 -2333
  80. package/ios/ReactNativeHealthkit.xcodeproj/project.pbxproj +0 -279
  81. package/kingstinct-react-native-healthkit.podspec +0 -21
  82. package/lib/commonjs/hooks/useHealthkitAuthorization.js +0 -39
  83. package/lib/commonjs/hooks/useHealthkitAuthorization.js.map +0 -1
  84. package/lib/commonjs/hooks/useHealthkitAuthorization.test.js +0 -72
  85. package/lib/commonjs/hooks/useHealthkitAuthorization.test.js.map +0 -1
  86. package/lib/commonjs/hooks/useIsHealthDataAvailable.js +0 -27
  87. package/lib/commonjs/hooks/useIsHealthDataAvailable.js.map +0 -1
  88. package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js +0 -41
  89. package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js.map +0 -1
  90. package/lib/commonjs/hooks/useMostRecentCategorySample.js +0 -23
  91. package/lib/commonjs/hooks/useMostRecentCategorySample.js.map +0 -1
  92. package/lib/commonjs/hooks/useMostRecentQuantitySample.js +0 -37
  93. package/lib/commonjs/hooks/useMostRecentQuantitySample.js.map +0 -1
  94. package/lib/commonjs/hooks/useMostRecentWorkout.js +0 -48
  95. package/lib/commonjs/hooks/useMostRecentWorkout.js.map +0 -1
  96. package/lib/commonjs/hooks/useSources.js +0 -22
  97. package/lib/commonjs/hooks/useSources.js.map +0 -1
  98. package/lib/commonjs/hooks/useStatisticsForQuantity.js +0 -28
  99. package/lib/commonjs/hooks/useStatisticsForQuantity.js.map +0 -1
  100. package/lib/commonjs/hooks/useSubscribeToChanges.js +0 -28
  101. package/lib/commonjs/hooks/useSubscribeToChanges.js.map +0 -1
  102. package/lib/commonjs/index.ios.js +0 -531
  103. package/lib/commonjs/index.ios.js.map +0 -1
  104. package/lib/commonjs/index.js +0 -22
  105. package/lib/commonjs/index.js.map +0 -1
  106. package/lib/commonjs/index.native.js +0 -235
  107. package/lib/commonjs/index.native.js.map +0 -1
  108. package/lib/commonjs/index.web.js +0 -22
  109. package/lib/commonjs/index.web.js.map +0 -1
  110. package/lib/commonjs/native-types.js +0 -1575
  111. package/lib/commonjs/native-types.js.map +0 -1
  112. package/lib/commonjs/test-setup.js +0 -57
  113. package/lib/commonjs/test-setup.js.map +0 -1
  114. package/lib/commonjs/test-utils.js +0 -18
  115. package/lib/commonjs/test-utils.js.map +0 -1
  116. package/lib/commonjs/types.js +0 -17
  117. package/lib/commonjs/types.js.map +0 -1
  118. package/lib/commonjs/utils/deleteQuantitySample.js +0 -11
  119. package/lib/commonjs/utils/deleteQuantitySample.js.map +0 -1
  120. package/lib/commonjs/utils/deleteSamples.js +0 -18
  121. package/lib/commonjs/utils/deleteSamples.js.map +0 -1
  122. package/lib/commonjs/utils/deleteWorkoutSample.js +0 -11
  123. package/lib/commonjs/utils/deleteWorkoutSample.js.map +0 -1
  124. package/lib/commonjs/utils/deserializeCategorySample.js +0 -13
  125. package/lib/commonjs/utils/deserializeCategorySample.js.map +0 -1
  126. package/lib/commonjs/utils/deserializeCategorySample.test.js +0 -26
  127. package/lib/commonjs/utils/deserializeCategorySample.test.js.map +0 -1
  128. package/lib/commonjs/utils/deserializeCorrelation.js +0 -26
  129. package/lib/commonjs/utils/deserializeCorrelation.js.map +0 -1
  130. package/lib/commonjs/utils/deserializeHeartbeatSeriesSample.js +0 -15
  131. package/lib/commonjs/utils/deserializeHeartbeatSeriesSample.js.map +0 -1
  132. package/lib/commonjs/utils/deserializeSample.js +0 -15
  133. package/lib/commonjs/utils/deserializeSample.js.map +0 -1
  134. package/lib/commonjs/utils/deserializeWorkout.js +0 -15
  135. package/lib/commonjs/utils/deserializeWorkout.js.map +0 -1
  136. package/lib/commonjs/utils/ensureMetadata.js +0 -11
  137. package/lib/commonjs/utils/ensureMetadata.js.map +0 -1
  138. package/lib/commonjs/utils/ensureTotals.js +0 -11
  139. package/lib/commonjs/utils/ensureTotals.js.map +0 -1
  140. package/lib/commonjs/utils/ensureUnit.js +0 -17
  141. package/lib/commonjs/utils/ensureUnit.js.map +0 -1
  142. package/lib/commonjs/utils/getDateOfBirth.js +0 -14
  143. package/lib/commonjs/utils/getDateOfBirth.js.map +0 -1
  144. package/lib/commonjs/utils/getMostRecentCategorySample.js +0 -17
  145. package/lib/commonjs/utils/getMostRecentCategorySample.js.map +0 -1
  146. package/lib/commonjs/utils/getMostRecentQuantitySample.js +0 -21
  147. package/lib/commonjs/utils/getMostRecentQuantitySample.js.map +0 -1
  148. package/lib/commonjs/utils/getMostRecentWorkout.js +0 -19
  149. package/lib/commonjs/utils/getMostRecentWorkout.js.map +0 -1
  150. package/lib/commonjs/utils/getPreferredUnit.js +0 -14
  151. package/lib/commonjs/utils/getPreferredUnit.js.map +0 -1
  152. package/lib/commonjs/utils/getPreferredUnits.js +0 -14
  153. package/lib/commonjs/utils/getPreferredUnits.js.map +0 -1
  154. package/lib/commonjs/utils/getPreferredUnitsTyped.js +0 -33
  155. package/lib/commonjs/utils/getPreferredUnitsTyped.js.map +0 -1
  156. package/lib/commonjs/utils/getRequestStatusForAuthorization.js +0 -21
  157. package/lib/commonjs/utils/getRequestStatusForAuthorization.js.map +0 -1
  158. package/lib/commonjs/utils/getWorkoutPlanById.js +0 -13
  159. package/lib/commonjs/utils/getWorkoutPlanById.js.map +0 -1
  160. package/lib/commonjs/utils/prepareOptions.js +0 -25
  161. package/lib/commonjs/utils/prepareOptions.js.map +0 -1
  162. package/lib/commonjs/utils/queryCategorySamples.js +0 -17
  163. package/lib/commonjs/utils/queryCategorySamples.js.map +0 -1
  164. package/lib/commonjs/utils/queryCategorySamplesWithAnchor.js +0 -21
  165. package/lib/commonjs/utils/queryCategorySamplesWithAnchor.js.map +0 -1
  166. package/lib/commonjs/utils/queryCorrelationSamples.js +0 -17
  167. package/lib/commonjs/utils/queryCorrelationSamples.js.map +0 -1
  168. package/lib/commonjs/utils/queryHeartbeatSeriesSamples.js +0 -17
  169. package/lib/commonjs/utils/queryHeartbeatSeriesSamples.js.map +0 -1
  170. package/lib/commonjs/utils/queryHeartbeatSeriesSamplesWithAnchor.js +0 -21
  171. package/lib/commonjs/utils/queryHeartbeatSeriesSamplesWithAnchor.js.map +0 -1
  172. package/lib/commonjs/utils/queryQuantitySamples.js +0 -19
  173. package/lib/commonjs/utils/queryQuantitySamples.js.map +0 -1
  174. package/lib/commonjs/utils/queryQuantitySamplesWithAnchor.js +0 -23
  175. package/lib/commonjs/utils/queryQuantitySamplesWithAnchor.js.map +0 -1
  176. package/lib/commonjs/utils/querySources.js +0 -14
  177. package/lib/commonjs/utils/querySources.js.map +0 -1
  178. package/lib/commonjs/utils/queryStateOfMindSamples.js +0 -22
  179. package/lib/commonjs/utils/queryStateOfMindSamples.js.map +0 -1
  180. package/lib/commonjs/utils/queryStatisticsCollectionForQuantity.js +0 -16
  181. package/lib/commonjs/utils/queryStatisticsCollectionForQuantity.js.map +0 -1
  182. package/lib/commonjs/utils/queryStatisticsForQuantity.js +0 -29
  183. package/lib/commonjs/utils/queryStatisticsForQuantity.js.map +0 -1
  184. package/lib/commonjs/utils/queryWorkoutSamplesWithAnchor.js +0 -26
  185. package/lib/commonjs/utils/queryWorkoutSamplesWithAnchor.js.map +0 -1
  186. package/lib/commonjs/utils/queryWorkouts.js +0 -22
  187. package/lib/commonjs/utils/queryWorkouts.js.map +0 -1
  188. package/lib/commonjs/utils/requestAuthorization.js +0 -22
  189. package/lib/commonjs/utils/requestAuthorization.js.map +0 -1
  190. package/lib/commonjs/utils/saveCategorySample.js +0 -20
  191. package/lib/commonjs/utils/saveCategorySample.js.map +0 -1
  192. package/lib/commonjs/utils/saveCorrelationSample.js +0 -35
  193. package/lib/commonjs/utils/saveCorrelationSample.js.map +0 -1
  194. package/lib/commonjs/utils/saveQuantitySample.js +0 -16
  195. package/lib/commonjs/utils/saveQuantitySample.js.map +0 -1
  196. package/lib/commonjs/utils/saveStateOfMindSample.js +0 -17
  197. package/lib/commonjs/utils/saveStateOfMindSample.js.map +0 -1
  198. package/lib/commonjs/utils/saveWorkoutRoute.js +0 -26
  199. package/lib/commonjs/utils/saveWorkoutRoute.js.map +0 -1
  200. package/lib/commonjs/utils/saveWorkoutSample.js +0 -36
  201. package/lib/commonjs/utils/saveWorkoutSample.js.map +0 -1
  202. package/lib/commonjs/utils/serializeDate.js +0 -9
  203. package/lib/commonjs/utils/serializeDate.js.map +0 -1
  204. package/lib/commonjs/utils/serializeDate.test.js +0 -17
  205. package/lib/commonjs/utils/serializeDate.test.js.map +0 -1
  206. package/lib/commonjs/utils/startWatchApp.js +0 -11
  207. package/lib/commonjs/utils/startWatchApp.js.map +0 -1
  208. package/lib/commonjs/utils/subscribeToChanges.js +0 -27
  209. package/lib/commonjs/utils/subscribeToChanges.js.map +0 -1
  210. package/lib/module/hooks/useHealthkitAuthorization.js +0 -32
  211. package/lib/module/hooks/useHealthkitAuthorization.js.map +0 -1
  212. package/lib/module/hooks/useHealthkitAuthorization.test.js +0 -68
  213. package/lib/module/hooks/useHealthkitAuthorization.test.js.map +0 -1
  214. package/lib/module/hooks/useIsHealthDataAvailable.js +0 -21
  215. package/lib/module/hooks/useIsHealthDataAvailable.js.map +0 -1
  216. package/lib/module/hooks/useIsHealthDataAvailable.test.js +0 -37
  217. package/lib/module/hooks/useIsHealthDataAvailable.test.js.map +0 -1
  218. package/lib/module/hooks/useMostRecentCategorySample.js +0 -16
  219. package/lib/module/hooks/useMostRecentCategorySample.js.map +0 -1
  220. package/lib/module/hooks/useMostRecentQuantitySample.js +0 -30
  221. package/lib/module/hooks/useMostRecentQuantitySample.js.map +0 -1
  222. package/lib/module/hooks/useMostRecentWorkout.js +0 -41
  223. package/lib/module/hooks/useMostRecentWorkout.js.map +0 -1
  224. package/lib/module/hooks/useSources.js +0 -15
  225. package/lib/module/hooks/useSources.js.map +0 -1
  226. package/lib/module/hooks/useStatisticsForQuantity.js +0 -21
  227. package/lib/module/hooks/useStatisticsForQuantity.js.map +0 -1
  228. package/lib/module/hooks/useSubscribeToChanges.js +0 -21
  229. package/lib/module/hooks/useSubscribeToChanges.js.map +0 -1
  230. package/lib/module/index.ios.js +0 -209
  231. package/lib/module/index.ios.js.map +0 -1
  232. package/lib/module/index.js +0 -4
  233. package/lib/module/index.js.map +0 -1
  234. package/lib/module/index.native.js +0 -160
  235. package/lib/module/index.native.js.map +0 -1
  236. package/lib/module/index.web.js +0 -4
  237. package/lib/module/index.web.js.map +0 -1
  238. package/lib/module/native-types.js +0 -1606
  239. package/lib/module/native-types.js.map +0 -1
  240. package/lib/module/test-setup.js +0 -54
  241. package/lib/module/test-setup.js.map +0 -1
  242. package/lib/module/test-utils.js +0 -11
  243. package/lib/module/test-utils.js.map +0 -1
  244. package/lib/module/types.js +0 -67
  245. package/lib/module/types.js.map +0 -1
  246. package/lib/module/utils/deleteQuantitySample.js +0 -4
  247. package/lib/module/utils/deleteQuantitySample.js.map +0 -1
  248. package/lib/module/utils/deleteSamples.js +0 -11
  249. package/lib/module/utils/deleteSamples.js.map +0 -1
  250. package/lib/module/utils/deleteWorkoutSample.js +0 -4
  251. package/lib/module/utils/deleteWorkoutSample.js.map +0 -1
  252. package/lib/module/utils/deserializeCategorySample.js +0 -7
  253. package/lib/module/utils/deserializeCategorySample.js.map +0 -1
  254. package/lib/module/utils/deserializeCategorySample.test.js +0 -22
  255. package/lib/module/utils/deserializeCategorySample.test.js.map +0 -1
  256. package/lib/module/utils/deserializeCorrelation.js +0 -19
  257. package/lib/module/utils/deserializeCorrelation.js.map +0 -1
  258. package/lib/module/utils/deserializeHeartbeatSeriesSample.js +0 -9
  259. package/lib/module/utils/deserializeHeartbeatSeriesSample.js.map +0 -1
  260. package/lib/module/utils/deserializeSample.js +0 -9
  261. package/lib/module/utils/deserializeSample.js.map +0 -1
  262. package/lib/module/utils/deserializeWorkout.js +0 -9
  263. package/lib/module/utils/deserializeWorkout.js.map +0 -1
  264. package/lib/module/utils/ensureMetadata.js +0 -5
  265. package/lib/module/utils/ensureMetadata.js.map +0 -1
  266. package/lib/module/utils/ensureTotals.js +0 -5
  267. package/lib/module/utils/ensureTotals.js.map +0 -1
  268. package/lib/module/utils/ensureUnit.js +0 -10
  269. package/lib/module/utils/ensureUnit.js.map +0 -1
  270. package/lib/module/utils/getDateOfBirth.js +0 -7
  271. package/lib/module/utils/getDateOfBirth.js.map +0 -1
  272. package/lib/module/utils/getMostRecentCategorySample.js +0 -10
  273. package/lib/module/utils/getMostRecentCategorySample.js.map +0 -1
  274. package/lib/module/utils/getMostRecentQuantitySample.js +0 -14
  275. package/lib/module/utils/getMostRecentQuantitySample.js.map +0 -1
  276. package/lib/module/utils/getMostRecentWorkout.js +0 -12
  277. package/lib/module/utils/getMostRecentWorkout.js.map +0 -1
  278. package/lib/module/utils/getPreferredUnit.js +0 -7
  279. package/lib/module/utils/getPreferredUnit.js.map +0 -1
  280. package/lib/module/utils/getPreferredUnits.js +0 -7
  281. package/lib/module/utils/getPreferredUnits.js.map +0 -1
  282. package/lib/module/utils/getPreferredUnitsTyped.js +0 -26
  283. package/lib/module/utils/getPreferredUnitsTyped.js.map +0 -1
  284. package/lib/module/utils/getRequestStatusForAuthorization.js +0 -14
  285. package/lib/module/utils/getRequestStatusForAuthorization.js.map +0 -1
  286. package/lib/module/utils/getWorkoutPlanById.js +0 -6
  287. package/lib/module/utils/getWorkoutPlanById.js.map +0 -1
  288. package/lib/module/utils/prepareOptions.js +0 -18
  289. package/lib/module/utils/prepareOptions.js.map +0 -1
  290. package/lib/module/utils/queryCategorySamples.js +0 -10
  291. package/lib/module/utils/queryCategorySamples.js.map +0 -1
  292. package/lib/module/utils/queryCategorySamplesWithAnchor.js +0 -14
  293. package/lib/module/utils/queryCategorySamplesWithAnchor.js.map +0 -1
  294. package/lib/module/utils/queryCorrelationSamples.js +0 -10
  295. package/lib/module/utils/queryCorrelationSamples.js.map +0 -1
  296. package/lib/module/utils/queryHeartbeatSeriesSamples.js +0 -10
  297. package/lib/module/utils/queryHeartbeatSeriesSamples.js.map +0 -1
  298. package/lib/module/utils/queryHeartbeatSeriesSamplesWithAnchor.js +0 -14
  299. package/lib/module/utils/queryHeartbeatSeriesSamplesWithAnchor.js.map +0 -1
  300. package/lib/module/utils/queryQuantitySamples.js +0 -12
  301. package/lib/module/utils/queryQuantitySamples.js.map +0 -1
  302. package/lib/module/utils/queryQuantitySamplesWithAnchor.js +0 -16
  303. package/lib/module/utils/queryQuantitySamplesWithAnchor.js.map +0 -1
  304. package/lib/module/utils/querySources.js +0 -7
  305. package/lib/module/utils/querySources.js.map +0 -1
  306. package/lib/module/utils/queryStateOfMindSamples.js +0 -14
  307. package/lib/module/utils/queryStateOfMindSamples.js.map +0 -1
  308. package/lib/module/utils/queryStatisticsCollectionForQuantity.js +0 -9
  309. package/lib/module/utils/queryStatisticsCollectionForQuantity.js.map +0 -1
  310. package/lib/module/utils/queryStatisticsForQuantity.js +0 -22
  311. package/lib/module/utils/queryStatisticsForQuantity.js.map +0 -1
  312. package/lib/module/utils/queryWorkoutSamplesWithAnchor.js +0 -19
  313. package/lib/module/utils/queryWorkoutSamplesWithAnchor.js.map +0 -1
  314. package/lib/module/utils/queryWorkouts.js +0 -15
  315. package/lib/module/utils/queryWorkouts.js.map +0 -1
  316. package/lib/module/utils/requestAuthorization.js +0 -15
  317. package/lib/module/utils/requestAuthorization.js.map +0 -1
  318. package/lib/module/utils/saveCategorySample.js +0 -13
  319. package/lib/module/utils/saveCategorySample.js.map +0 -1
  320. package/lib/module/utils/saveCorrelationSample.js +0 -28
  321. package/lib/module/utils/saveCorrelationSample.js.map +0 -1
  322. package/lib/module/utils/saveQuantitySample.js +0 -9
  323. package/lib/module/utils/saveQuantitySample.js.map +0 -1
  324. package/lib/module/utils/saveStateOfMindSample.js +0 -10
  325. package/lib/module/utils/saveStateOfMindSample.js.map +0 -1
  326. package/lib/module/utils/saveWorkoutRoute.js +0 -19
  327. package/lib/module/utils/saveWorkoutRoute.js.map +0 -1
  328. package/lib/module/utils/saveWorkoutSample.js +0 -29
  329. package/lib/module/utils/saveWorkoutSample.js.map +0 -1
  330. package/lib/module/utils/serializeDate.js +0 -3
  331. package/lib/module/utils/serializeDate.js.map +0 -1
  332. package/lib/module/utils/serializeDate.test.js +0 -14
  333. package/lib/module/utils/serializeDate.test.js.map +0 -1
  334. package/lib/module/utils/startWatchApp.js +0 -4
  335. package/lib/module/utils/startWatchApp.js.map +0 -1
  336. package/lib/module/utils/subscribeToChanges.js +0 -20
  337. package/lib/module/utils/subscribeToChanges.js.map +0 -1
  338. package/lib/typescript/example-expo/App.d.ts +0 -2
  339. package/lib/typescript/src/hooks/useHealthkitAuthorization.d.ts +0 -8
  340. package/lib/typescript/src/hooks/useHealthkitAuthorization.test.d.ts +0 -1
  341. package/lib/typescript/src/hooks/useIsHealthDataAvailable.d.ts +0 -7
  342. package/lib/typescript/src/hooks/useIsHealthDataAvailable.test.d.ts +0 -1
  343. package/lib/typescript/src/hooks/useMostRecentCategorySample.d.ts +0 -7
  344. package/lib/typescript/src/hooks/useMostRecentQuantitySample.d.ts +0 -7
  345. package/lib/typescript/src/hooks/useMostRecentWorkout.d.ts +0 -10
  346. package/lib/typescript/src/hooks/useSources.d.ts +0 -3
  347. package/lib/typescript/src/hooks/useStatisticsForQuantity.d.ts +0 -4
  348. package/lib/typescript/src/hooks/useSubscribeToChanges.d.ts +0 -3
  349. package/lib/typescript/src/index.d.ts +0 -3
  350. package/lib/typescript/src/index.ios.d.ts +0 -198
  351. package/lib/typescript/src/index.native.d.ts +0 -41
  352. package/lib/typescript/src/index.web.d.ts +0 -3
  353. package/lib/typescript/src/native-types.d.ts +0 -1764
  354. package/lib/typescript/src/test-setup.d.ts +0 -1
  355. package/lib/typescript/src/test-utils.d.ts +0 -2
  356. package/lib/typescript/src/types.d.ts +0 -111
  357. package/lib/typescript/src/utils/deleteQuantitySample.d.ts +0 -4
  358. package/lib/typescript/src/utils/deleteSamples.d.ts +0 -8
  359. package/lib/typescript/src/utils/deleteWorkoutSample.d.ts +0 -3
  360. package/lib/typescript/src/utils/deserializeCategorySample.d.ts +0 -4
  361. package/lib/typescript/src/utils/deserializeCategorySample.test.d.ts +0 -1
  362. package/lib/typescript/src/utils/deserializeCorrelation.d.ts +0 -4
  363. package/lib/typescript/src/utils/deserializeHeartbeatSeriesSample.d.ts +0 -4
  364. package/lib/typescript/src/utils/deserializeSample.d.ts +0 -4
  365. package/lib/typescript/src/utils/deserializeWorkout.d.ts +0 -4
  366. package/lib/typescript/src/utils/ensureMetadata.d.ts +0 -2
  367. package/lib/typescript/src/utils/ensureTotals.d.ts +0 -2
  368. package/lib/typescript/src/utils/ensureUnit.d.ts +0 -3
  369. package/lib/typescript/src/utils/getDateOfBirth.d.ts +0 -2
  370. package/lib/typescript/src/utils/getMostRecentCategorySample.d.ts +0 -4
  371. package/lib/typescript/src/utils/getMostRecentQuantitySample.d.ts +0 -4
  372. package/lib/typescript/src/utils/getMostRecentWorkout.d.ts +0 -5
  373. package/lib/typescript/src/utils/getPreferredUnit.d.ts +0 -4
  374. package/lib/typescript/src/utils/getPreferredUnits.d.ts +0 -4
  375. package/lib/typescript/src/utils/getPreferredUnitsTyped.d.ts +0 -9
  376. package/lib/typescript/src/utils/getRequestStatusForAuthorization.d.ts +0 -3
  377. package/lib/typescript/src/utils/getWorkoutPlanById.d.ts +0 -5
  378. package/lib/typescript/src/utils/prepareOptions.d.ts +0 -9
  379. package/lib/typescript/src/utils/queryCategorySamples.d.ts +0 -5
  380. package/lib/typescript/src/utils/queryCategorySamplesWithAnchor.d.ts +0 -10
  381. package/lib/typescript/src/utils/queryCorrelationSamples.d.ts +0 -5
  382. package/lib/typescript/src/utils/queryHeartbeatSeriesSamples.d.ts +0 -10
  383. package/lib/typescript/src/utils/queryHeartbeatSeriesSamplesWithAnchor.d.ts +0 -10
  384. package/lib/typescript/src/utils/queryQuantitySamples.d.ts +0 -7
  385. package/lib/typescript/src/utils/queryQuantitySamplesWithAnchor.d.ts +0 -12
  386. package/lib/typescript/src/utils/querySources.d.ts +0 -4
  387. package/lib/typescript/src/utils/queryStateOfMindSamples.d.ts +0 -7
  388. package/lib/typescript/src/utils/queryStatisticsCollectionForQuantity.d.ts +0 -3
  389. package/lib/typescript/src/utils/queryStatisticsForQuantity.d.ts +0 -14
  390. package/lib/typescript/src/utils/queryWorkoutSamplesWithAnchor.d.ts +0 -9
  391. package/lib/typescript/src/utils/queryWorkouts.d.ts +0 -4
  392. package/lib/typescript/src/utils/requestAuthorization.d.ts +0 -4
  393. package/lib/typescript/src/utils/saveCategorySample.d.ts +0 -11
  394. package/lib/typescript/src/utils/saveCorrelationSample.d.ts +0 -8
  395. package/lib/typescript/src/utils/saveQuantitySample.d.ts +0 -7
  396. package/lib/typescript/src/utils/saveStateOfMindSample.d.ts +0 -11
  397. package/lib/typescript/src/utils/saveWorkoutRoute.d.ts +0 -3
  398. package/lib/typescript/src/utils/saveWorkoutSample.d.ts +0 -11
  399. package/lib/typescript/src/utils/serializeDate.d.ts +0 -2
  400. package/lib/typescript/src/utils/serializeDate.test.d.ts +0 -1
  401. package/lib/typescript/src/utils/startWatchApp.d.ts +0 -3
  402. package/lib/typescript/src/utils/subscribeToChanges.d.ts +0 -3
  403. package/src/index.ios.tsx +0 -292
  404. package/src/index.native.tsx +0 -233
  405. package/src/index.tsx +0 -5
  406. package/src/index.web.tsx +0 -5
  407. package/src/native-types.ts +0 -2471
  408. package/src/types.ts +0 -156
  409. package/src/utils/deleteQuantitySample.ts +0 -14
  410. package/src/utils/deleteSamples.ts +0 -23
  411. package/src/utils/deleteWorkoutSample.ts +0 -7
  412. package/src/utils/deserializeCategorySample.test.ts +0 -24
  413. package/src/utils/deserializeCategorySample.ts +0 -12
  414. package/src/utils/deserializeCorrelation.ts +0 -28
  415. package/src/utils/deserializeHeartbeatSeriesSample.ts +0 -12
  416. package/src/utils/deserializeSample.ts +0 -17
  417. package/src/utils/deserializeWorkout.ts +0 -14
  418. package/src/utils/ensureMetadata.ts +0 -5
  419. package/src/utils/ensureTotals.ts +0 -5
  420. package/src/utils/ensureUnit.ts +0 -19
  421. package/src/utils/getDateOfBirth.ts +0 -8
  422. package/src/utils/getPreferredUnits.ts +0 -14
  423. package/src/utils/getPreferredUnitsTyped.ts +0 -38
  424. package/src/utils/getRequestStatusForAuthorization.ts +0 -21
  425. package/src/utils/getWorkoutPlanById.ts +0 -7
  426. package/src/utils/prepareOptions.ts +0 -19
  427. package/src/utils/queryCategorySamples.ts +0 -29
  428. package/src/utils/queryCategorySamplesWithAnchor.ts +0 -39
  429. package/src/utils/queryCorrelationSamples.ts +0 -29
  430. package/src/utils/queryHeartbeatSeriesSamples.ts +0 -29
  431. package/src/utils/queryHeartbeatSeriesSamplesWithAnchor.ts +0 -33
  432. package/src/utils/queryQuantitySamples.ts +0 -38
  433. package/src/utils/queryQuantitySamplesWithAnchor.ts +0 -46
  434. package/src/utils/querySources.ts +0 -21
  435. package/src/utils/queryStateOfMindSamples.ts +0 -14
  436. package/src/utils/queryStatisticsCollectionForQuantity.ts +0 -38
  437. package/src/utils/queryStatisticsForQuantity.ts +0 -38
  438. package/src/utils/queryWorkoutSamplesWithAnchor.ts +0 -46
  439. package/src/utils/queryWorkouts.ts +0 -28
  440. package/src/utils/requestAuthorization.ts +0 -19
  441. package/src/utils/saveCategorySample.ts +0 -31
  442. package/src/utils/saveCorrelationSample.ts +0 -43
  443. package/src/utils/saveQuantitySample.ts +0 -29
  444. package/src/utils/saveStateOfMindSample.ts +0 -38
  445. package/src/utils/saveWorkoutRoute.ts +0 -21
  446. package/src/utils/saveWorkoutSample.ts +0 -42
  447. package/src/utils/serializeDate.test.ts +0 -16
  448. package/src/utils/serializeDate.ts +0 -5
  449. package/src/utils/startWatchApp.ts +0 -7
@@ -1,1764 +0,0 @@
1
- import { NativeEventEmitter } from 'react-native';
2
- import type { EmitterSubscription } from 'react-native';
3
- /**
4
- * Represents a workout type identifier.
5
- * @see {@link https://developer.apple.com/documentation/healthkit/hkworkouttypeidentifier Apple Docs HKWorkoutTypeIdentifier}
6
- */
7
- export declare const HKWorkoutTypeIdentifier: "HKWorkoutTypeIdentifier";
8
- /**
9
- * Represents a type that identifies activity summary objects.
10
- * @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}
11
- */
12
- export declare const HKActivitySummaryTypeIdentifier: "HKActivitySummaryTypeIdentifier";
13
- /**
14
- * Represents an audiogram type identifier.
15
- * @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}
16
- */
17
- export declare const HKAudiogramTypeIdentifier: "HKAudiogramSampleType";
18
- /**
19
- * Represents a workout route type identifier.
20
- * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutroutetypeidentifier Apple Docs HKWorkoutRouteTypeIdentifier}
21
- */
22
- export declare const HKWorkoutRouteTypeIdentifier: "HKWorkoutRouteTypeIdentifier";
23
- /**
24
- * Represents a state of mind type identifier.
25
- * @see {@link https://developer.apple.com/documentation/healthkit/hkstateofmindtype Apple Docs HKStateOfMindType}
26
- */
27
- export declare const HKStateOfMindTypeIdentifier: "HKStateOfMindTypeIdentifier";
28
- /**
29
- * Represents a series sample containing heartbeat data..
30
- * @see {@link https://developer.apple.com/documentation/healthkit/HKDataTypeIdentifierHeartbeatSeries Apple Docs HKDataTypeIdentifierHeartbeatSeries}
31
- */
32
- export declare const HKDataTypeIdentifierHeartbeatSeries: 'HKDataTypeIdentifierHeartbeatSeries';
33
- /**
34
- * Represents a quantity type identifier.
35
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier Apple Docs HKQuantityTypeIdentifier}
36
- */
37
- export declare enum HKQuantityTypeIdentifier {
38
- /**
39
- * Body Mass Index
40
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymassindex Apple Docs HKQuantityTypeIdentifierBodyMassIndex}
41
- */
42
- bodyMassIndex = "HKQuantityTypeIdentifierBodyMassIndex",
43
- /**
44
- * Body Fat Percentage
45
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodyfatpercentage Apple Docs HKQuantityTypeIdentifierBodyFatPercentage}
46
- */
47
- bodyFatPercentage = "HKQuantityTypeIdentifierBodyFatPercentage",
48
- /**
49
- * Height
50
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheight Apple Docs HKQuantityTypeIdentifierHeight}
51
- */
52
- height = "HKQuantityTypeIdentifierHeight",
53
- /**
54
- * Body Mass
55
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymass Apple Docs HKQuantityTypeIdentifierBodyMass}
56
- */
57
- bodyMass = "HKQuantityTypeIdentifierBodyMass",
58
- /**
59
- * Lean Body Mass
60
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierleanbodymass Apple Docs HKQuantityTypeIdentifierLeanBodyMass}
61
- */
62
- leanBodyMass = "HKQuantityTypeIdentifierLeanBodyMass",
63
- /**
64
- * Waist Circumference
65
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwaistcircumference Apple Docs HKQuantityTypeIdentifierWaistCircumference}
66
- */
67
- waistCircumference = "HKQuantityTypeIdentifierWaistCircumference",
68
- /**
69
- * Step Count
70
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstepcount Apple Docs HKQuantityTypeIdentifierStepCount}
71
- */
72
- stepCount = "HKQuantityTypeIdentifierStepCount",
73
- /**
74
- * Distance Walking Running
75
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewalkingrunning Apple Docs HKQuantityTypeIdentifierDistanceWalkingRunning}
76
- */
77
- distanceWalkingRunning = "HKQuantityTypeIdentifierDistanceWalkingRunning",
78
- /**
79
- * Distance Cycling
80
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancecycling Apple Docs HKQuantityTypeIdentifierDistanceCycling}
81
- */
82
- distanceCycling = "HKQuantityTypeIdentifierDistanceCycling",
83
- /**
84
- * Distance Wheelchair
85
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewheelchair Apple Docs HKQuantityTypeIdentifierDistanceWheelchair}
86
- */
87
- distanceWheelchair = "HKQuantityTypeIdentifierDistanceWheelchair",
88
- /**
89
- * Basal Energy Burned
90
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalenergyburned Apple Docs HKQuantityTypeIdentifierBasalEnergyBurned}
91
- */
92
- basalEnergyBurned = "HKQuantityTypeIdentifierBasalEnergyBurned",// Energy, Cumulative
93
- /**
94
- * Active Energy Burned
95
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieractiveenergyburned Apple Docs HKQuantityTypeIdentifierActiveEnergyBurned}
96
- */
97
- activeEnergyBurned = "HKQuantityTypeIdentifierActiveEnergyBurned",// Energy, Cumulative
98
- /**
99
- * Flights Climbed
100
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierflightsclimbed Apple Docs HKQuantityTypeIdentifierFlightsClimbed}
101
- */
102
- flightsClimbed = "HKQuantityTypeIdentifierFlightsClimbed",// Scalar(Count), Cumulative
103
- /**
104
- * Nike Fuel
105
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernikefuel Apple Docs HKQuantityTypeIdentifierNikeFuel}
106
- */
107
- nikeFuel = "HKQuantityTypeIdentifierNikeFuel",// Scalar(Count), Cumulative
108
- /**
109
- * Apple Exercise Time
110
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierappleexercisetime Apple Docs HKQuantityTypeIdentifierAppleExerciseTime}
111
- */
112
- appleExerciseTime = "HKQuantityTypeIdentifierAppleExerciseTime",// Time Cumulative
113
- /**
114
- * Push Count
115
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpushcount Apple Docs HKQuantityTypeIdentifierPushCount}
116
- */
117
- pushCount = "HKQuantityTypeIdentifierPushCount",// Scalar(Count), Cumulative
118
- /**
119
- * Distance Swimming
120
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistanceswimming Apple Docs HKQuantityTypeIdentifierDistanceSwimming}
121
- */
122
- distanceSwimming = "HKQuantityTypeIdentifierDistanceSwimming",// Length, Cumulative
123
- /**
124
- * Swimming Stroke Count
125
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierswimmingstrokecount Apple Docs HKQuantityTypeIdentifierSwimmingStrokeCount}
126
- */
127
- swimmingStrokeCount = "HKQuantityTypeIdentifierSwimmingStrokeCount",// Scalar(Count), Cumulative
128
- /**
129
- * VO2 Max
130
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiervo2max Apple Docs HKQuantityTypeIdentifierVO2Max}
131
- */
132
- vo2Max = "HKQuantityTypeIdentifierVO2Max",// ml/(kg*min) Discrete
133
- /**
134
- * Distance Downhill Snow Sports
135
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancedownhillsnowsports Apple Docs HKQuantityTypeIdentifierDistanceDownhillSnowSports}
136
- */
137
- distanceDownhillSnowSports = "HKQuantityTypeIdentifierDistanceDownhillSnowSports",// Length, Cumulative
138
- /**
139
- * Apple Stand Time
140
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplestandtime Apple Docs HKQuantityTypeIdentifierAppleStandTime}
141
- */
142
- appleStandTime = "HKQuantityTypeIdentifierAppleStandTime",// Time, Cumulative
143
- /**
144
- * Heart Rate
145
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartrate Apple Docs HKQuantityTypeIdentifierHeartRate}
146
- */
147
- heartRate = "HKQuantityTypeIdentifierHeartRate",// Scalar(Count)/Time, Discrete
148
- /**
149
- * Body Temperature
150
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodytemperature Apple Docs HKQuantityTypeIdentifierBodyTemperature}
151
- */
152
- bodyTemperature = "HKQuantityTypeIdentifierBodyTemperature",// Temperature, Discrete
153
- /**
154
- * Basal Body Temperature
155
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalbodytemperature Apple Docs HKQuantityTypeIdentifierBasalBodyTemperature}
156
- */
157
- basalBodyTemperature = "HKQuantityTypeIdentifierBasalBodyTemperature",// Basal Body Temperature, Discrete
158
- /**
159
- * Blood Pressure Systolic
160
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressuresystolic Apple Docs HKQuantityTypeIdentifierBloodPressureSystolic}
161
- */
162
- bloodPressureSystolic = "HKQuantityTypeIdentifierBloodPressureSystolic",// Pressure, Discrete
163
- /**
164
- * Blood Pressure Diastolic
165
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressurediastolic Apple Docs HKQuantityTypeIdentifierBloodPressureDiastolic}
166
- */
167
- bloodPressureDiastolic = "HKQuantityTypeIdentifierBloodPressureDiastolic",// Pressure, Discrete
168
- /**
169
- * Respiratory Rate
170
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrespiratoryrate Apple Docs HKQuantityTypeIdentifierRespiratoryRate}
171
- */
172
- respiratoryRate = "HKQuantityTypeIdentifierRespiratoryRate",// Scalar(Count)/Time, Discrete
173
- /**
174
- * Resting Heart Rate
175
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrestingheartrate Apple Docs HKQuantityTypeIdentifierRestingHeartRate}
176
- */
177
- restingHeartRate = "HKQuantityTypeIdentifierRestingHeartRate",// Scalar(Count)/Time, Discrete
178
- /**
179
- * Walking Heart Rate Average
180
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingheartrateaverage Apple Docs HKQuantityTypeIdentifierWalkingHeartRateAverage}
181
- * @since iOS 11.0
182
- */
183
- walkingHeartRateAverage = "HKQuantityTypeIdentifierWalkingHeartRateAverage",// Scalar(Count)/Time, Discrete
184
- /**
185
- * Heart Rate Variability SDNN
186
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartratevariabilitysdnn Apple Docs HKQuantityTypeIdentifierHeartRateVariabilitySDNN}
187
- * @since iOS 11.0
188
- */
189
- heartRateVariabilitySDNN = "HKQuantityTypeIdentifierHeartRateVariabilitySDNN",// Time (ms), Discrete
190
- /**
191
- * Oxygen Saturation
192
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieroxygensaturation Apple Docs HKQuantityTypeIdentifierOxygenSaturation}
193
- * @since iOS 8.0
194
- */
195
- oxygenSaturation = "HKQuantityTypeIdentifierOxygenSaturation",
196
- /**
197
- * Peripheral Perfusion Index
198
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierperipheralperfusionindex Apple Docs HKQuantityTypeIdentifierPeripheralPerfusionIndex}
199
- * @since iOS 8.0
200
- */
201
- peripheralPerfusionIndex = "HKQuantityTypeIdentifierPeripheralPerfusionIndex",// Scalar(Percent, 0.0 - 1.0), Discrete
202
- /**
203
- * Blood Glucose
204
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodglucose Apple Docs HKQuantityTypeIdentifierBloodGlucose}
205
- */
206
- bloodGlucose = "HKQuantityTypeIdentifierBloodGlucose",
207
- /**
208
- * Number Of Times Fallen
209
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberoftimesfallen Apple Docs HKQuantityTypeIdentifierNumberOfTimesFallen}
210
- */
211
- numberOfTimesFallen = "HKQuantityTypeIdentifierNumberOfTimesFallen",
212
- /**
213
- * Electrodermal Activity
214
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierelectrodermalactivity Apple Docs HKQuantityTypeIdentifierElectrodermalActivity}
215
- */
216
- electrodermalActivity = "HKQuantityTypeIdentifierElectrodermalActivity",
217
- /**
218
- * Inhaler Usage
219
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinhalerusage Apple Docs HKQuantityTypeIdentifierInhalerUsage}
220
- * @since iOS 8
221
- */
222
- inhalerUsage = "HKQuantityTypeIdentifierInhalerUsage",
223
- /**
224
- * Insulin Delivery
225
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinsulindelivery Apple Docs HKQuantityTypeIdentifierInsulinDelivery}
226
- * @since iOS 11
227
- */
228
- insulinDelivery = "HKQuantityTypeIdentifierInsulinDelivery",
229
- /**
230
- * Blood Alcohol Content
231
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodalcoholcontent Apple Docs HKQuantityTypeIdentifierBloodAlcoholContent}
232
- * @since iOS 8
233
- */
234
- bloodAlcoholContent = "HKQuantityTypeIdentifierBloodAlcoholContent",
235
- /**
236
- * Forced Vital Capacity
237
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedvitalcapacity Apple Docs HKQuantityTypeIdentifierForcedVitalCapacity}
238
- */
239
- forcedVitalCapacity = "HKQuantityTypeIdentifierForcedVitalCapacity",
240
- /**
241
- * Forced Expiratory Volume1
242
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedexpiratoryvolume1 Apple Docs HKQuantityTypeIdentifierForcedExpiratoryVolume1}
243
- * @since iOS 8
244
- */
245
- forcedExpiratoryVolume1 = "HKQuantityTypeIdentifierForcedExpiratoryVolume1",
246
- /**
247
- * Peak Expiratory Flow Rate
248
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpeakexpiratoryflowrate Apple Docs HKQuantityTypeIdentifierPeakExpiratoryFlowRate}
249
- * @since iOS 8
250
- */
251
- peakExpiratoryFlowRate = "HKQuantityTypeIdentifierPeakExpiratoryFlowRate",
252
- /**
253
- * Environmental Audio Exposure
254
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalaudioexposure Apple Docs HKQuantityTypeIdentifierEnvironmentalAudioExposure}
255
- * @since iOS 13
256
- */
257
- environmentalAudioExposure = "HKQuantityTypeIdentifierEnvironmentalAudioExposure",
258
- /**
259
- * Headphone Audio Exposure
260
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheadphoneaudioexposure Apple Docs HKQuantityTypeIdentifierHeadphoneAudioExposure}
261
- * @since iOS 13
262
- */
263
- headphoneAudioExposure = "HKQuantityTypeIdentifierHeadphoneAudioExposure",// Pressure, Cumulative
264
- /**
265
- * Dietary Fat Total
266
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfattotal Apple Docs HKQuantityTypeIdentifierDietaryFatTotal}
267
- * @since iOS 8
268
- */
269
- dietaryFatTotal = "HKQuantityTypeIdentifierDietaryFatTotal",// Mass, Cumulative
270
- /**
271
- * Dietary Fat Polyunsaturated
272
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatpolyunsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatPolyunsaturated}
273
- */
274
- dietaryFatPolyunsaturated = "HKQuantityTypeIdentifierDietaryFatPolyunsaturated",// Mass, Cumulative
275
- /**
276
- * Dietary Fat Monounsaturated
277
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatmonounsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatMonounsaturated}
278
- */
279
- dietaryFatMonounsaturated = "HKQuantityTypeIdentifierDietaryFatMonounsaturated",// Mass, Cumulative
280
- /**
281
- * Dietary Fat Saturated
282
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatSaturated}
283
- */
284
- dietaryFatSaturated = "HKQuantityTypeIdentifierDietaryFatSaturated",// Mass, Cumulative
285
- /**
286
- * Dietary Cholesterol
287
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycholesterol Apple Docs HKQuantityTypeIdentifierDietaryCholesterol}
288
- */
289
- dietaryCholesterol = "HKQuantityTypeIdentifierDietaryCholesterol",// Mass, Cumulative
290
- /**
291
- * Dietary Sodium
292
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysodium Apple Docs HKQuantityTypeIdentifierDietarySodium}
293
- */
294
- dietarySodium = "HKQuantityTypeIdentifierDietarySodium",// Mass, Cumulative
295
- /**
296
- * Dietary Carbohydrates
297
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycarbohydrates Apple Docs HKQuantityTypeIdentifierDietaryCarbohydrates}
298
- */
299
- dietaryCarbohydrates = "HKQuantityTypeIdentifierDietaryCarbohydrates",// Mass, Cumulative
300
- /**
301
- * Dietary Fiber
302
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfiber Apple Docs HKQuantityTypeIdentifierDietaryFiber}
303
- */
304
- dietaryFiber = "HKQuantityTypeIdentifierDietaryFiber",// Mass, Cumulative
305
- /**
306
- * Dietary Sugar
307
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysugar Apple Docs HKQuantityTypeIdentifierDietarySugar}
308
- */
309
- dietarySugar = "HKQuantityTypeIdentifierDietarySugar",// Mass, Cumulative
310
- /**
311
- * Dietary Energy Consumed
312
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryenergyconsumed Apple Docs HKQuantityTypeIdentifierDietaryEnergyConsumed}
313
- */
314
- dietaryEnergyConsumed = "HKQuantityTypeIdentifierDietaryEnergyConsumed",// Energy, Cumulative
315
- /**
316
- * Dietary Protein
317
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryprotein Apple Docs HKQuantityTypeIdentifierDietaryProtein}
318
- */
319
- dietaryProtein = "HKQuantityTypeIdentifierDietaryProtein",// Mass, Cumulative
320
- /**
321
- * Dietary Vitamin A
322
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamina Apple Docs HKQuantityTypeIdentifierDietaryVitaminA}
323
- */
324
- dietaryVitaminA = "HKQuantityTypeIdentifierDietaryVitaminA",// Mass, Cumulative
325
- /**
326
- * Dietary Vitamin B6
327
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb6 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB6}
328
- */
329
- dietaryVitaminB6 = "HKQuantityTypeIdentifierDietaryVitaminB6",// Mass, Cumulative
330
- /**
331
- * Dietary Vitamin B12
332
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb12 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB12}
333
- */
334
- dietaryVitaminB12 = "HKQuantityTypeIdentifierDietaryVitaminB12",// Mass, Cumulative
335
- /**
336
- * Dietary Vitamin C
337
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminc Apple Docs HKQuantityTypeIdentifierDietaryVitaminC}
338
- */
339
- dietaryVitaminC = "HKQuantityTypeIdentifierDietaryVitaminC",// Mass, Cumulative
340
- /**
341
- * Dietary Vitamin D
342
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamind Apple Docs HKQuantityTypeIdentifierDietaryVitaminD}
343
- */
344
- dietaryVitaminD = "HKQuantityTypeIdentifierDietaryVitaminD",// Mass, Cumulative
345
- /**
346
- * Dietary Vitamin E
347
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamine Apple Docs HKQuantityTypeIdentifierDietaryVitaminE}
348
- */
349
- dietaryVitaminE = "HKQuantityTypeIdentifierDietaryVitaminE",// Mass, Cumulative
350
- /**
351
- * Dietary Vitamin K
352
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamink Apple Docs HKQuantityTypeIdentifierDietaryVitaminK}
353
- */
354
- dietaryVitaminK = "HKQuantityTypeIdentifierDietaryVitaminK",// Mass, Cumulative
355
- /**
356
- * Dietary Calcium
357
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycalcium Apple Docs HKQuantityTypeIdentifierDietaryCalcium}
358
- */
359
- dietaryCalcium = "HKQuantityTypeIdentifierDietaryCalcium",// Mass, Cumulative
360
- /**
361
- * Dietary Iron
362
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiron Apple Docs HKQuantityTypeIdentifierDietaryIron}
363
- */
364
- dietaryIron = "HKQuantityTypeIdentifierDietaryIron",// Mass, Cumulative
365
- /**
366
- * Dietary Thiamin
367
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarythiamin Apple Docs HKQuantityTypeIdentifierDietaryThiamin}
368
- */
369
- dietaryThiamin = "HKQuantityTypeIdentifierDietaryThiamin",// Mass, Cumulative
370
- /**
371
- * Dietary Riboflavin
372
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryriboflavin Apple Docs HKQuantityTypeIdentifierDietaryRiboflavin}
373
- */
374
- dietaryRiboflavin = "HKQuantityTypeIdentifierDietaryRiboflavin",// Mass, Cumulative
375
- /**
376
- * Dietary Niacin
377
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryniacin Apple Docs HKQuantityTypeIdentifierDietaryNiacin}
378
- */
379
- dietaryNiacin = "HKQuantityTypeIdentifierDietaryNiacin",// Mass, Cumulative
380
- /**
381
- * Dietary Folate
382
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfolate Apple Docs HKQuantityTypeIdentifierDietaryFolate}
383
- */
384
- dietaryFolate = "HKQuantityTypeIdentifierDietaryFolate",// Mass, Cumulative
385
- /**
386
- * Dietary Biotin
387
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarybiotin Apple Docs HKQuantityTypeIdentifierDietaryBiotin}
388
- */
389
- dietaryBiotin = "HKQuantityTypeIdentifierDietaryBiotin",// Mass, Cumulative
390
- /**
391
- * Dietary Pantothenic Acid
392
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypantothenicacid Apple Docs HKQuantityTypeIdentifierDietaryPantothenicAcid}
393
- */
394
- dietaryPantothenicAcid = "HKQuantityTypeIdentifierDietaryPantothenicAcid",// Mass, Cumulative
395
- /**
396
- * Dietary Phosphorus
397
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryphosphorus Apple Docs HKQuantityTypeIdentifierDietaryPhosphorus}
398
- */
399
- dietaryPhosphorus = "HKQuantityTypeIdentifierDietaryPhosphorus",// Mass, Cumulative
400
- /**
401
- * Dietary Iodine
402
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiodine Apple Docs HKQuantityTypeIdentifierDietaryIodine}
403
- */
404
- dietaryIodine = "HKQuantityTypeIdentifierDietaryIodine",// Mass, Cumulative
405
- /**
406
- * Dietary Magnesium
407
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymagnesium Apple Docs HKQuantityTypeIdentifierDietaryMagnesium}
408
- */
409
- dietaryMagnesium = "HKQuantityTypeIdentifierDietaryMagnesium",// Mass, Cumulative
410
- /**
411
- * Dietary Zinc
412
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryzinc Apple Docs HKQuantityTypeIdentifierDietaryZinc}
413
- */
414
- dietaryZinc = "HKQuantityTypeIdentifierDietaryZinc",// Mass, Cumulative
415
- /**
416
- * Dietary Selenium
417
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryselenium Apple Docs HKQuantityTypeIdentifierDietarySelenium}
418
- */
419
- dietarySelenium = "HKQuantityTypeIdentifierDietarySelenium",// Mass, Cumulative
420
- /**
421
- * Dietary Copper
422
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycopper Apple Docs HKQuantityTypeIdentifierDietaryCopper}
423
- */
424
- dietaryCopper = "HKQuantityTypeIdentifierDietaryCopper",// Mass, Cumulative
425
- /**
426
- * Dietary Manganese
427
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymanganese Apple Docs HKQuantityTypeIdentifierDietaryManganese}
428
- */
429
- dietaryManganese = "HKQuantityTypeIdentifierDietaryManganese",// Mass, Cumulative
430
- /**
431
- * Dietary Chromium
432
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychromium Apple Docs HKQuantityTypeIdentifierDietaryChromium}
433
- */
434
- dietaryChromium = "HKQuantityTypeIdentifierDietaryChromium",// Mass, Cumulative
435
- /**
436
- * Dietary Molybdenum
437
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymolybdenum Apple Docs HKQuantityTypeIdentifierDietaryMolybdenum}
438
- */
439
- dietaryMolybdenum = "HKQuantityTypeIdentifierDietaryMolybdenum",// Mass, Cumulative
440
- /**
441
- * Dietary Chloride
442
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychloride Apple Docs HKQuantityTypeIdentifierDietaryChloride}
443
- * @since iOS 8
444
- */
445
- dietaryChloride = "HKQuantityTypeIdentifierDietaryChloride",// Mass, Cumulative
446
- /**
447
- * Dietary Potassium
448
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypotassium Apple Docs HKQuantityTypeIdentifierDietaryPotassium}
449
- * @since iOS 8
450
- */
451
- dietaryPotassium = "HKQuantityTypeIdentifierDietaryPotassium",// Mass, Cumulative
452
- /**
453
- * Dietary Caffeine
454
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycaffeine Apple Docs HKQuantityTypeIdentifierDietaryCaffeine}
455
- * @since iOS 8
456
- */
457
- dietaryCaffeine = "HKQuantityTypeIdentifierDietaryCaffeine",// Mass, Cumulative
458
- /**
459
- * Dietary Water
460
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarywater Apple Docs HKQuantityTypeIdentifierDietaryWater}
461
- * @since iOS 9
462
- */
463
- dietaryWater = "HKQuantityTypeIdentifierDietaryWater",// Volume, Cumulative
464
- /**
465
- * Six Minute Walk Test Distance
466
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiersixminutewalktestdistance Apple Docs HKQuantityTypeIdentifierSixMinuteWalkTestDistance}
467
- * @since iOS 14
468
- */
469
- sixMinuteWalkTestDistance = "HKQuantityTypeIdentifierSixMinuteWalkTestDistance",
470
- /**
471
- * Walking Speed
472
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingspeed Apple Docs HKQuantityTypeIdentifierWalkingSpeed}
473
- * @since iOS 14
474
- */
475
- walkingSpeed = "HKQuantityTypeIdentifierWalkingSpeed",
476
- /**
477
- * Walking Step Length
478
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingsteplength Apple Docs HKQuantityTypeIdentifierWalkingStepLength}
479
- * @since iOS 14
480
- */
481
- walkingStepLength = "HKQuantityTypeIdentifierWalkingStepLength",
482
- /**
483
- * Walking Asymmetry Percentage
484
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingasymmetrypercentage Apple Docs HKQuantityTypeIdentifierWalkingAsymmetryPercentage}
485
- * @since iOS 14
486
- */
487
- walkingAsymmetryPercentage = "HKQuantityTypeIdentifierWalkingAsymmetryPercentage",
488
- /**
489
- * Walking Double Support Percentage
490
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingdoublesupportpercentage Apple Docs HKQuantityTypeIdentifierWalkingDoubleSupportPercentage}
491
- * @since iOS 14
492
- */
493
- walkingDoubleSupportPercentage = "HKQuantityTypeIdentifierWalkingDoubleSupportPercentage",
494
- /**
495
- * Stair Ascent Speed
496
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairascentspeed Apple Docs HKQuantityTypeIdentifierStairAscentSpeed}
497
- * @since iOS 14
498
- */
499
- stairAscentSpeed = "HKQuantityTypeIdentifierStairAscentSpeed",
500
- /**
501
- * Stair Descent Speed
502
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairdescentspeed Apple Docs HKQuantityTypeIdentifierStairDescentSpeed}
503
- * @since iOS 14
504
- */
505
- stairDescentSpeed = "HKQuantityTypeIdentifierStairDescentSpeed",
506
- /**
507
- * UV Exposure
508
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieruvexposure Apple Docs HKQuantityTypeIdentifierUVExposure}
509
- * @since iOS 9
510
- */
511
- uvExposure = "HKQuantityTypeIdentifierUVExposure",// Scalar (Count), Discrete
512
- /**
513
- * Apple Move Time
514
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplemovetime Apple Docs HKQuantityTypeIdentifierAppleMoveTime}
515
- * @since iOS 14.5
516
- */
517
- appleMoveTime = "HKQuantityTypeIdentifierAppleMoveTime",// Time, Cumulative
518
- /**
519
- * Apple Walking Steadiness
520
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplewalkingsteadiness Apple Docs HKQuantityTypeIdentifierAppleWalkingSteadiness}
521
- * @since iOS 15
522
- */
523
- appleWalkingSteadiness = "HKQuantityTypeIdentifierAppleWalkingSteadiness",// Scalar(Percent, 0.0 - 1.0), Discrete
524
- /**
525
- * Number Of Alcoholic Beverages
526
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberofalcoholicbeverages Apple Docs HKQuantityTypeIdentifierNumberOfAlcoholicBeverages}
527
- * @since iOS 15
528
- */
529
- numberOfAlcoholicBeverages = "HKQuantityTypeIdentifierNumberOfAlcoholicBeverages",// Scalar(Count), Cumulative
530
- /**
531
- * Atrial Fibrillation Burden
532
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieratrialfibrillationburden Apple Docs HKQuantityTypeIdentifierAtrialFibrillationBurden}
533
- * @since iOS 16
534
- */
535
- atrialFibrillationBurden = "HKQuantityTypeIdentifierAtrialFibrillationBurden",// Scalar(Percent, 0.0 - 1.0), Discrete
536
- /**
537
- * Underwater Depth
538
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierunderwaterdepth Apple Docs HKQuantityTypeIdentifierUnderwaterDepth}
539
- * @since iOS 16
540
- */
541
- underwaterDepth = "HKQuantityTypeIdentifierUnderwaterDepth",// Length, Discrete
542
- /**
543
- * Water Temperature
544
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwatertemperature Apple Docs HKQuantityTypeIdentifierWaterTemperature}
545
- * @since iOS 16
546
- */
547
- waterTemperature = "HKQuantityTypeIdentifierWaterTemperature",// Temperature, Discrete
548
- /**
549
- * Apple Sleeping Wrist Temperature
550
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplesleepingwristtemperature Apple Docs HKQuantityTypeIdentifierAppleSleepingWristTemperature}
551
- * @since iOS 17
552
- */
553
- appleSleepingWristTemperature = "HKQuantityTypeIdentifierAppleSleepingWristTemperature",// Temperature, Discrete
554
- /**
555
- * Time In Daylight
556
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiertimeindaylight Apple Docs HKQuantityTypeIdentifierTimeInDaylight}
557
- * @since iOS 17
558
- */
559
- timeInDaylight = "HKQuantityTypeIdentifierTimeInDaylight",// Time, Cumulative
560
- /**
561
- * Physical Effort
562
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierphysicaleffort Apple Docs HKQuantityTypeIdentifierPhysicalEffort}
563
- * @since iOS 17
564
- */
565
- physicalEffort = "HKQuantityTypeIdentifierPhysicalEffort",// Scalar (Percent, 0.0 - 1.0), Discrete
566
- /**
567
- * Cycling Speed
568
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingspeed Apple Docs HKQuantityTypeIdentifierCyclingSpeed}
569
- * @since iOS 17
570
- */
571
- cyclingSpeed = "HKQuantityTypeIdentifierCyclingSpeed",
572
- /**
573
- * Cycling Power
574
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingpower Apple Docs HKQuantityTypeIdentifierCyclingPower}
575
- * @since iOS 17
576
- */
577
- cyclingPower = "HKQuantityTypeIdentifierCyclingPower",
578
- /**
579
- * Cycling Functional Threshold Power
580
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingfunctionalthresholdpower Apple Docs HKQuantityTypeIdentifierCyclingFunctionalThresholdPower}
581
- * @since iOS 17
582
- */
583
- cyclingFunctionalThresholdPower = "HKQuantityTypeIdentifierCyclingFunctionalThresholdPower",
584
- /**
585
- * Cycling Cadence
586
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingcadence Apple Docs HKQuantityTypeIdentifierCyclingCadence}
587
- * @since iOS 17
588
- */
589
- cyclingCadence = "HKQuantityTypeIdentifierCyclingCadence",
590
- /**
591
- * Environmental Sound Reduction
592
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalsoundreduction Apple Docs HKQuantityTypeIdentifierEnvironmentalSoundReduction}
593
- * @since iOS 16
594
- */
595
- environmentalSoundReduction = "HKQuantityTypeIdentifierEnvironmentalSoundReduction",
596
- /**
597
- * Heart Rate Recovery One Minute
598
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartraterecoveryoneminute Apple Docs HKQuantityTypeIdentifierHeartRateRecoveryOneMinute}
599
- * @since iOS 16
600
- */
601
- heartRateRecoveryOneMinute = "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute",
602
- /**
603
- * Running Ground Contact Time
604
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunninggroundcontacttime Apple Docs HKQuantityTypeIdentifierRunningGroundContactTime}
605
- * @since iOS 16
606
- */
607
- runningGroundContactTime = "HKQuantityTypeIdentifierRunningGroundContactTime",
608
- /**
609
- * Running Stride Length
610
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningstridelength Apple Docs HKQuantityTypeIdentifierRunningStrideLength}
611
- * @since iOS 16
612
- */
613
- runningStrideLength = "HKQuantityTypeIdentifierRunningStrideLength",
614
- /**
615
- * Running Power
616
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningpower Apple Docs HKQuantityTypeIdentifierRunningPower}
617
- * @since iOS 16
618
- */
619
- runningPower = "HKQuantityTypeIdentifierRunningPower",
620
- /**
621
- * Running Vertical Oscillation
622
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningverticaloscillation Apple Docs HKQuantityTypeIdentifierRunningVerticalOscillation}
623
- * @since iOS 16
624
- */
625
- runningVerticalOscillation = "HKQuantityTypeIdentifierRunningVerticalOscillation",
626
- /**
627
- * Running Speed
628
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningspeed Apple Docs HKQuantityTypeIdentifierRunningSpeed}
629
- * @since iOS 16
630
- */
631
- runningSpeed = "HKQuantityTypeIdentifierRunningSpeed",
632
- /**
633
- * Cross Country Skiing Speed
634
- * @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierCrossCountrySkiingSpeed Apple Docs HKQuantityTypeIdentifierCrossCountrySkiingSpeed}
635
- * @since iOS 18
636
- */
637
- crossCountrySkiingSpeed = "HKQuantityTypeIdentifierCrossCountrySkiingSpeed",
638
- /**
639
- * Cross Country Skiing Distance
640
- * @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierDistanceCrossCountrySkiing Apple Docs HKQuantityTypeIdentifierCrossCountrySkiingDistance}
641
- * @since iOS 18
642
- */
643
- distanceCrossCountrySkiing = "HKQuantityTypeIdentifierDistanceCrossCountrySkiing",
644
- /**
645
- * Paddle Sports Distance
646
- * @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierDistancePaddleSports Apple Docs HKQuantityTypeIdentifierDistancePaddleSports}
647
- * @since iOS 18
648
- */
649
- distancePaddleSports = "HKQuantityTypeIdentifierDistancePaddleSports",
650
- /**
651
- * Rowing Distance
652
- * @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierDistanceRowing Apple Docs HKQuantityTypeIdentifierDistanceRowing}
653
- * @since iOS 18
654
- */
655
- distanceRowing = "HKQuantityTypeIdentifierDistanceRowing",
656
- /**
657
- * Skating Sports Distance
658
- * @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierDistanceSkatingSports Apple Docs HKQuantityTypeIdentifierDistanceSkatingSports}
659
- * @since iOS 18
660
- */
661
- distanceSkatingSports = "HKQuantityTypeIdentifierDistanceSkatingSports",
662
- /**
663
- * Estimated Workout Effort Score
664
- * @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierEstimatedWorkoutEffortScore Apple Docs HKQuantityTypeIdentifierEstimatedWorkoutEffortScore}
665
- * @since iOS 18
666
- */
667
- estimatedWorkoutEffortScore = "HKQuantityTypeIdentifierEstimatedWorkoutEffortScore",
668
- /**
669
- * Paddle Sports Speed
670
- * @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierPaddleSportsSpeed Apple Docs HKQuantityTypeIdentifierPaddleSportsSpeed}
671
- * @since iOS 18
672
- */
673
- paddleSportsSpeed = "HKQuantityTypeIdentifierPaddleSportsSpeed",
674
- /**
675
- * Rowing Speed
676
- * @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierRowingSpeed Apple Docs HKQuantityTypeIdentifierRowingSpeed}
677
- * @since iOS 18
678
- */
679
- rowingSpeed = "HKQuantityTypeIdentifierRowingSpeed",
680
- /**
681
- * Workout Effort Score
682
- * @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierWorkoutEffortScore Apple Docs HKQuantityTypeIdentifierWorkoutEffortScore}
683
- * @since iOS 18
684
- */
685
- workoutEffortScore = "HKQuantityTypeIdentifierWorkoutEffortScore"
686
- }
687
- export type TypeToUnitMapping = {
688
- readonly [key in HKQuantityTypeIdentifier]: HKUnit;
689
- };
690
- export declare enum HKCategoryValueLowCardioFitnessEvent {
691
- lowFitness = 1
692
- }
693
- export declare enum HKHeartRateMotionContext {
694
- active = 2,
695
- notSet = 0,
696
- sedentary = 1
697
- }
698
- /**
699
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcorrelationtypeidentifier Apple Docs }
700
- */
701
- export declare enum HKCorrelationTypeIdentifier {
702
- bloodPressure = "HKCorrelationTypeIdentifierBloodPressure",
703
- food = "HKCorrelationTypeIdentifierFood"
704
- }
705
- /**
706
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifier Apple Docs }
707
- */
708
- export declare enum HKCategoryTypeIdentifier {
709
- sleepAnalysis = "HKCategoryTypeIdentifierSleepAnalysis",
710
- appleStandHour = "HKCategoryTypeIdentifierAppleStandHour",
711
- cervicalMucusQuality = "HKCategoryTypeIdentifierCervicalMucusQuality",
712
- ovulationTestResult = "HKCategoryTypeIdentifierOvulationTestResult",
713
- /**
714
- * @deprecated In iOS 18 beta
715
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifiermenstrualflow Apple Docs }
716
- */
717
- menstrualFlow = "HKCategoryTypeIdentifierMenstrualFlow",
718
- intermenstrualBleeding = "HKCategoryTypeIdentifierIntermenstrualBleeding",
719
- sexualActivity = "HKCategoryTypeIdentifierSexualActivity",
720
- mindfulSession = "HKCategoryTypeIdentifierMindfulSession",
721
- highHeartRateEvent = "HKCategoryTypeIdentifierHighHeartRateEvent",
722
- lowHeartRateEvent = "HKCategoryTypeIdentifierLowHeartRateEvent",
723
- irregularHeartRhythmEvent = "HKCategoryTypeIdentifierIrregularHeartRhythmEvent",
724
- /**
725
- * @deprecated Use environmentalAudioExposureEvent instead.
726
- */
727
- audioExposureEvent = "HKCategoryTypeIdentifierAudioExposureEvent",
728
- toothbrushingEvent = "HKCategoryTypeIdentifierToothbrushingEvent",
729
- lowCardioFitnessEvent = "HKCategoryTypeIdentifierLowCardioFitnessEvent",
730
- contraceptive = "HKCategoryTypeIdentifierContraceptive",
731
- lactation = "HKCategoryTypeIdentifierLactation",
732
- pregnancy = "HKCategoryTypeIdentifierPregnancy",
733
- pregnancyTestResult = "HKCategoryTypeIdentifierPregnancyTestResult",
734
- progesteroneTestResult = "HKCategoryTypeIdentifierProgesteroneTestResult",
735
- environmentalAudioExposureEvent = "HKCategoryTypeIdentifierEnvironmentalAudioExposureEvent",
736
- headphoneAudioExposureEvent = "HKCategoryTypeIdentifierHeadphoneAudioExposureEvent",
737
- appleWalkingSteadinessEvent = "HKCategoryTypeIdentifierAppleWalkingSteadinessEvent",
738
- handwashingEvent = "HKCategoryTypeIdentifierHandwashingEvent",// HKCategoryValue
739
- abdominalCramps = "HKCategoryTypeIdentifierAbdominalCramps",// HKCategoryValueSeverity
740
- acne = "HKCategoryTypeIdentifierAcne",// HKCategoryValueSeverity
741
- appetiteChanges = "HKCategoryTypeIdentifierAppetiteChanges",// HKCategoryValueAppetiteChanges
742
- bladderIncontinence = "HKCategoryTypeIdentifierBladderIncontinence",// HKCategoryValueSeverity
743
- bloating = "HKCategoryTypeIdentifierBloating",// HKCategoryValueSeverity
744
- breastPain = "HKCategoryTypeIdentifierBreastPain",// HKCategoryValueSeverity
745
- chestTightnessOrPain = "HKCategoryTypeIdentifierChestTightnessOrPain",// HKCategoryValueSeverity
746
- chills = "HKCategoryTypeIdentifierChills",// HKCategoryValueSeverity
747
- constipation = "HKCategoryTypeIdentifierConstipation",// HKCategoryValueSeverity
748
- coughing = "HKCategoryTypeIdentifierCoughing",// HKCategoryValueSeverity
749
- diarrhea = "HKCategoryTypeIdentifierDiarrhea",// HKCategoryValueSeverity
750
- dizziness = "HKCategoryTypeIdentifierDizziness",// HKCategoryValueSeverity
751
- drySkin = "HKCategoryTypeIdentifierDrySkin",// HKCategoryValueSeverity
752
- fainting = "HKCategoryTypeIdentifierFainting",// HKCategoryValueSeverity
753
- fatigue = "HKCategoryTypeIdentifierFatigue",// HKCategoryValueSeverity
754
- fever = "HKCategoryTypeIdentifierFever",// HKCategoryValueSeverity
755
- generalizedBodyAche = "HKCategoryTypeIdentifierGeneralizedBodyAche",// HKCategoryValueSeverity
756
- hairLoss = "HKCategoryTypeIdentifierHairLoss",// HKCategoryValueSeverity
757
- headache = "HKCategoryTypeIdentifierHeadache",// HKCategoryValueSeverity
758
- heartburn = "HKCategoryTypeIdentifierHeartburn",// HKCategoryValueSeverity
759
- hotFlashes = "HKCategoryTypeIdentifierHotFlashes",// HKCategoryValueSeverity
760
- lossOfSmell = "HKCategoryTypeIdentifierLossOfSmell",// HKCategoryValueSeverity
761
- lossOfTaste = "HKCategoryTypeIdentifierLossOfTaste",// HKCategoryValueSeverity
762
- lowerBackPain = "HKCategoryTypeIdentifierLowerBackPain",// HKCategoryValueSeverity
763
- memoryLapse = "HKCategoryTypeIdentifierMemoryLapse",// HKCategoryValueSeverity
764
- moodChanges = "HKCategoryTypeIdentifierMoodChanges",// HKCategoryValuePresence
765
- nausea = "HKCategoryTypeIdentifierNausea",// HKCategoryValueSeverity
766
- nightSweats = "HKCategoryTypeIdentifierNightSweats",// HKCategoryValueSeverity
767
- pelvicPain = "HKCategoryTypeIdentifierPelvicPain",// HKCategoryValueSeverity
768
- rapidPoundingOrFlutteringHeartbeat = "HKCategoryTypeIdentifierRapidPoundingOrFlutteringHeartbeat",// HKCategoryValueSeverity
769
- runnyNose = "HKCategoryTypeIdentifierRunnyNose",// HKCategoryValueSeverity
770
- shortnessOfBreath = "HKCategoryTypeIdentifierShortnessOfBreath",// HKCategoryValueSeverity
771
- sinusCongestion = "HKCategoryTypeIdentifierSinusCongestion",// HKCategoryValueSeverity
772
- skippedHeartbeat = "HKCategoryTypeIdentifierSkippedHeartbeat",// HKCategoryValueSeverity
773
- sleepChanges = "HKCategoryTypeIdentifierSleepChanges",// HKCategoryValuePresence
774
- soreThroat = "HKCategoryTypeIdentifierSoreThroat",// HKCategoryValueSeverity
775
- vaginalDryness = "HKCategoryTypeIdentifierVaginalDryness",// HKCategoryValueSeverity
776
- vomiting = "HKCategoryTypeIdentifierVomiting",// HKCategoryValueSeverity
777
- wheezing = "HKCategoryTypeIdentifierWheezing",// HKCategoryValueSeverity
778
- /**
779
- * Bleeding After Pregnancy
780
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifierbleedingafterpregnancy Apple Docs }
781
- * @since iOS 18
782
- */
783
- bleedingAfterPregnancy = "HKCategoryTypeIdentifierBleedingAfterPregnancy",// HKCategoryValueSeverity
784
- /**
785
- * Bleeding During Pregnancy
786
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategorytypeidentifierbleedingduringpregnancy Apple Docs }
787
- * @since iOS 18
788
- */
789
- bleedingDuringPregnancy = "HKCategoryTypeIdentifierBleedingDuringPregnancy"
790
- }
791
- export type HKSampleTypeIdentifier = HKCategoryTypeIdentifier | HKCorrelationTypeIdentifier | HKQuantityTypeIdentifier | typeof HKStateOfMindTypeIdentifier | typeof HKActivitySummaryTypeIdentifier | typeof HKAudiogramTypeIdentifier | typeof HKDataTypeIdentifierHeartbeatSeries | typeof HKWorkoutRouteTypeIdentifier | typeof HKWorkoutTypeIdentifier | `${HKCategoryTypeIdentifier}` | `${HKCorrelationTypeIdentifier}` | `${HKQuantityTypeIdentifier}`;
792
- export type HealthkitReadAuthorization = HKCharacteristicTypeIdentifier | HKSampleTypeIdentifier | `${HKCharacteristicTypeIdentifier}` | `${HKSampleTypeIdentifier}`;
793
- export type HealthkitWriteAuthorization = HKSampleTypeIdentifier;
794
- export declare enum HKCategoryValueAppleStandHour {
795
- stood = 0,
796
- idle = 1
797
- }
798
- export declare enum HKWorkoutActivityType {
799
- americanFootball = 1,
800
- archery = 2,
801
- australianFootball = 3,
802
- badminton = 4,
803
- baseball = 5,
804
- basketball = 6,
805
- bowling = 7,
806
- boxing = 8,// See also HKWorkoutActivityTypeKickboxing.,
807
- climbing = 9,
808
- cricket = 10,
809
- crossTraining = 11,// Any mix of cardio and/or strength training. See also HKWorkoutActivityTypeCoreTraining and HKWorkoutActivityTypeFlexibility.,
810
- curling = 12,
811
- cycling = 13,
812
- dance = 14,
813
- danceInspiredTraining = 15,// This enum remains available to access older data.,
814
- elliptical = 16,
815
- equestrianSports = 17,// Polo, Horse Racing, Horse Riding, etc.,
816
- fencing = 18,
817
- fishing = 19,
818
- functionalStrengthTraining = 20,// Primarily free weights and/or body weight and/or accessories,
819
- golf = 21,
820
- gymnastics = 22,
821
- handball = 23,
822
- hiking = 24,
823
- hockey = 25,// Ice Hockey, Field Hockey, etc.,
824
- hunting = 26,
825
- lacrosse = 27,
826
- martialArts = 28,
827
- mindAndBody = 29,// Qigong, meditation, etc.,
828
- mixedMetabolicCardioTraining = 30,// This enum remains available to access older data.,
829
- paddleSports = 31,// Canoeing, Kayaking, Outrigger, Stand Up Paddle Board, etc.,
830
- play = 32,// Dodge Ball, Hopscotch, Tetherball, Jungle Gym, etc.,
831
- preparationAndRecovery = 33,// Foam rolling, stretching, etc.,
832
- racquetball = 34,
833
- rowing = 35,
834
- rugby = 36,
835
- running = 37,
836
- sailing = 38,
837
- skatingSports = 39,// Ice Skating, Speed Skating, Inline Skating, Skateboarding, etc.,
838
- snowSports = 40,// Sledding, Snowmobiling, Building a Snowman, etc. See also HKWorkoutActivityTypeCrossCountrySkiing, HKWorkoutActivityTypeSnowboarding, and HKWorkoutActivityTypeDownhillSkiing.,
839
- soccer = 41,
840
- softball = 42,
841
- squash = 43,
842
- stairClimbing = 44,// See also HKWorkoutActivityTypeStairs and HKWorkoutActivityTypeStepTraining.,
843
- surfingSports = 45,// Traditional Surfing, Kite Surfing, Wind Surfing, etc.,
844
- swimming = 46,
845
- tableTennis = 47,
846
- tennis = 48,
847
- trackAndField = 49,// Shot Put, Javelin, Pole Vaulting, etc.,
848
- traditionalStrengthTraining = 50,// Primarily machines and/or free weights,
849
- volleyball = 51,
850
- walking = 52,
851
- waterFitness = 53,
852
- waterPolo = 54,
853
- waterSports = 55,// Water Skiing, Wake Boarding, etc.,
854
- wrestling = 56,
855
- yoga = 57,
856
- barre = 58,// HKWorkoutActivityTypeDanceInspiredTraining,
857
- coreTraining = 59,
858
- crossCountrySkiing = 60,
859
- downhillSkiing = 61,
860
- flexibility = 62,
861
- highIntensityIntervalTraining = 63,
862
- jumpRope = 64,
863
- kickboxing = 65,
864
- pilates = 66,// HKWorkoutActivityTypeDanceInspiredTraining,
865
- snowboarding = 67,
866
- stairs = 68,
867
- stepTraining = 69,
868
- wheelchairWalkPace = 70,
869
- wheelchairRunPace = 71,
870
- taiChi = 72,
871
- mixedCardio = 73,// HKWorkoutActivityTypeMixedMetabolicCardioTraining,
872
- handCycling = 74,
873
- discSports = 75,
874
- fitnessGaming = 76,
875
- cardioDance = 77,
876
- socialDance = 78,
877
- pickleball = 79,
878
- cooldown = 80,
879
- swimBikeRun = 82,
880
- transition = 83,
881
- underwaterDiving = 84,
882
- other = 3000
883
- }
884
- export type HKGenericMetadata = {
885
- readonly [key: string]: HKQuantity | boolean | number | string | undefined;
886
- readonly HKExternalUUID?: string;
887
- readonly HKTimeZone?: string;
888
- readonly HKWasUserEntered?: boolean;
889
- readonly HKDeviceSerialNumber?: string;
890
- readonly HKUDIDeviceIdentifier?: string;
891
- readonly HKUDIProductionIdentifier?: string;
892
- readonly HKDigitalSignature?: string;
893
- readonly HKDeviceName?: string;
894
- readonly HKDeviceManufacturerName?: string;
895
- readonly HKSyncIdentifier?: string;
896
- readonly HKSyncVersion?: number;
897
- readonly HKWasTakenInLab?: boolean;
898
- readonly HKReferenceRangeLowerLimit?: number;
899
- readonly HKReferenceRangeUpperLimit?: number;
900
- };
901
- export declare enum HKWeatherCondition {
902
- none = 0,
903
- clear = 1,
904
- fair = 2,
905
- partlyCloudy = 3,
906
- mostlyCloudy = 4,
907
- cloudy = 5,
908
- foggy = 6,
909
- haze = 7,
910
- windy = 8,
911
- blustery = 9,
912
- smoky = 10,
913
- dust = 11,
914
- snow = 12,
915
- hail = 13,
916
- sleet = 14,
917
- freezingDrizzle = 15,
918
- freezingRain = 16,
919
- mixedRainAndHail = 17,
920
- mixedRainAndSnow = 18,
921
- mixedRainAndSleet = 19,
922
- mixedSnowAndSleet = 20,
923
- drizzle = 21,
924
- scatteredShowers = 22,
925
- showers = 23,
926
- thunderstorms = 24,
927
- tropicalStorm = 25,
928
- hurricane = 26,
929
- tornado = 27
930
- }
931
- declare enum HKIndoorWorkout {
932
- false = 0,
933
- true = 1
934
- }
935
- export interface HKWorkoutMetadata extends HKGenericMetadata {
936
- readonly HKWeatherCondition?: HKWeatherCondition;
937
- readonly HKWeatherHumidity?: HKQuantity<HKQuantityTypeIdentifier, HKUnits.Percent>;
938
- readonly HKAverageMETs?: HKQuantity<HKQuantityTypeIdentifier, HKUnit>;
939
- readonly HKElevationAscended?: HKQuantity<HKQuantityTypeIdentifier, LengthUnit>;
940
- readonly HKIndoorWorkout?: HKIndoorWorkout;
941
- }
942
- /**
943
- * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationrequeststatus Apple Docs }
944
- */
945
- export declare enum HKAuthorizationRequestStatus {
946
- unknown = 0,
947
- shouldRequest = 1,
948
- unnecessary = 2
949
- }
950
- /**
951
- * @see {@link https://developer.apple.com/documentation/healthkit/hkauthorizationstatus Apple Docs }
952
- */
953
- export declare enum HKAuthorizationStatus {
954
- notDetermined = 0,
955
- sharingDenied = 1,
956
- sharingAuthorized = 2
957
- }
958
- export type HKQuantity<TIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TIdentifier> = UnitForIdentifier<TIdentifier>> = {
959
- readonly unit: TUnit;
960
- readonly quantity: number;
961
- };
962
- /**
963
- * @see {@link https://developer.apple.com/documentation/healthkit/hkbloodtype Apple Docs }
964
- */
965
- export declare enum HKBloodType {
966
- notSet = 0,
967
- aPositive = 1,
968
- aNegative = 2,
969
- bPositive = 3,
970
- bNegative = 4,
971
- abPositive = 5,
972
- abNegative = 6,
973
- oPositive = 7,
974
- oNegative = 8
975
- }
976
- /**
977
- * @see {@link https://developer.apple.com/documentation/healthkit/hkbiologicalsex Apple Docs }
978
- */
979
- export declare enum HKBiologicalSex {
980
- notSet = 0,
981
- female = 1,
982
- male = 2,
983
- other = 3
984
- }
985
- /**
986
- * @see {@link https://developer.apple.com/documentation/healthkit/hkfitzpatrickskintype Apple Docs }
987
- */
988
- export declare enum HKFitzpatrickSkinType {
989
- notSet = 0,
990
- I = 1,
991
- II = 2,
992
- III = 3,
993
- IV = 4,
994
- V = 5,
995
- VI = 6
996
- }
997
- /**
998
- * @see {@link https://developer.apple.com/documentation/healthkit/hkstatisticsoptions Apple Docs }
999
- */
1000
- export declare enum HKStatisticsOptions {
1001
- cumulativeSum = "cumulativeSum",
1002
- discreteAverage = "discreteAverage",
1003
- discreteMax = "discreteMax",
1004
- discreteMin = "discreteMin",
1005
- discreteMostRecent = "discreteMostRecent",
1006
- duration = "duration",
1007
- mostRecent = "mostRecent",
1008
- separateBySource = "separateBySource"
1009
- }
1010
- export type QueryStatisticsResponseRaw<TIdentifier extends HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TIdentifier>> = {
1011
- readonly averageQuantity?: HKQuantity<TIdentifier, TUnit>;
1012
- readonly maximumQuantity?: HKQuantity<TIdentifier, TUnit>;
1013
- readonly minimumQuantity?: HKQuantity<TIdentifier, TUnit>;
1014
- readonly sumQuantity?: HKQuantity<TIdentifier, TUnit>;
1015
- readonly mostRecentQuantity?: HKQuantity<TIdentifier, TUnit>;
1016
- readonly mostRecentQuantityDateInterval?: {
1017
- readonly from: string;
1018
- readonly to: string;
1019
- };
1020
- readonly duration?: HKQuantity<HKQuantityTypeIdentifier, TimeUnit>;
1021
- };
1022
- export interface IntervalComponents {
1023
- readonly minute?: number;
1024
- readonly hour?: number;
1025
- readonly day?: number;
1026
- readonly month?: number;
1027
- readonly year?: number;
1028
- }
1029
- /**
1030
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality Apple Docs }
1031
- */
1032
- export declare enum HKCategoryValueCervicalMucusQuality {
1033
- dry = 1,
1034
- sticky = 2,
1035
- creamy = 3,
1036
- watery = 4,
1037
- eggWhite = 5
1038
- }
1039
- /**
1040
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow Apple Docs }
1041
- * @deprecated In iOS 18 beta
1042
- */
1043
- export declare enum HKCategoryValueMenstrualFlow {
1044
- unspecified = 1,
1045
- none = 5,
1046
- light = 2,
1047
- medium = 3,
1048
- heavy = 4
1049
- }
1050
- /**
1051
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult Apple Docs }
1052
- */
1053
- export declare enum HKCategoryValueOvulationTestResult {
1054
- negative = 1,
1055
- luteinizingHormoneSurge = 2,
1056
- indeterminate = 3,
1057
- estrogenSurge = 4
1058
- }
1059
- /**
1060
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis Apple Docs }
1061
- */
1062
- export declare enum HKCategoryValueSleepAnalysis {
1063
- inBed = 0,
1064
- asleepUnspecified = 1,
1065
- awake = 2,
1066
- asleepCore = 3,
1067
- asleepDeep = 4,
1068
- asleepREM = 5
1069
- }
1070
- /**
1071
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges Apple Docs}
1072
- */
1073
- export declare enum HKCategoryValueAppetiteChanges {
1074
- decreased = 2,
1075
- increased = 3,
1076
- noChange = 1,
1077
- unspecified = 0
1078
- }
1079
- /**
1080
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence Apple Docs}
1081
- */
1082
- export declare enum HKCategoryValuePresence {
1083
- notPresent = 1,
1084
- present = 0
1085
- }
1086
- /**
1087
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity Apple Docs }
1088
- */
1089
- export declare enum HKCategoryValueSeverity {
1090
- notPresent = 1,
1091
- mild = 2,
1092
- moderate = 3,
1093
- severe = 4,
1094
- unspecified = 0
1095
- }
1096
- /**
1097
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue/notapplicable Apple Docs }
1098
- */
1099
- export declare enum HKCategoryValueNotApplicable {
1100
- notApplicable = 0
1101
- }
1102
- /**
1103
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue Apple Docs }
1104
- */
1105
- export type HKCategoryValue = HKCategoryValueAppetiteChanges | HKCategoryValueCervicalMucusQuality | HKCategoryValueLowCardioFitnessEvent | HKCategoryValueMenstrualFlow | HKCategoryValueOvulationTestResult | HKCategoryValuePresence | HKCategoryValueSeverity | HKCategoryValueSleepAnalysis | number;
1106
- /**
1107
- * @see {@link https://developer.apple.com/documentation/healthkit/hkinsulindeliveryreason Apple Docs }
1108
- */
1109
- export declare enum HKInsulinDeliveryReason {
1110
- basal = 1,
1111
- bolus = 2
1112
- }
1113
- export type MetadataMapperForQuantityIdentifier<TQuantityTypeIdentifier = HKQuantityTypeIdentifier> = TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.insulinDelivery ? HKGenericMetadata & {
1114
- readonly HKInsulinDeliveryReason: HKInsulinDeliveryReason;
1115
- } : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.bloodGlucose ? HKGenericMetadata & {
1116
- readonly HKBloodGlucoseMealTime?: number;
1117
- } : TQuantityTypeIdentifier extends HKQuantityTypeIdentifier.heartRate ? HKGenericMetadata & {
1118
- readonly HKHeartRateMotionContext?: HKHeartRateMotionContext;
1119
- } : HKGenericMetadata;
1120
- export type MetadataMapperForCorrelationIdentifier<TCorrelationTypeIdentifier = HKCorrelationTypeIdentifier> = TCorrelationTypeIdentifier extends HKCorrelationTypeIdentifier.food ? HKGenericMetadata & {
1121
- readonly HKFoodType?: string;
1122
- } : HKGenericMetadata;
1123
- export type UnitForIdentifier<T extends HKQuantityTypeIdentifier> = T extends HKQuantityTypeIdentifier.bloodGlucose ? BloodGlucoseUnit : T extends HKQuantityTypeIdentifier.appleExerciseTime | HKQuantityTypeIdentifier.appleMoveTime | HKQuantityTypeIdentifier.appleStandTime ? TimeUnit : T extends HKQuantityTypeIdentifier.activeEnergyBurned | HKQuantityTypeIdentifier.basalEnergyBurned | HKQuantityTypeIdentifier.dietaryEnergyConsumed ? EnergyUnit : T extends HKQuantityTypeIdentifier.distanceCycling | HKQuantityTypeIdentifier.distanceDownhillSnowSports | HKQuantityTypeIdentifier.distanceSwimming | HKQuantityTypeIdentifier.distanceWalkingRunning | HKQuantityTypeIdentifier.distanceWheelchair | HKQuantityTypeIdentifier.sixMinuteWalkTestDistance | HKQuantityTypeIdentifier.waistCircumference ? LengthUnit : T extends HKQuantityTypeIdentifier.bodyFatPercentage | HKQuantityTypeIdentifier.oxygenSaturation | HKQuantityTypeIdentifier.walkingAsymmetryPercentage | HKQuantityTypeIdentifier.walkingDoubleSupportPercentage ? HKUnits.Percent : T extends HKQuantityTypeIdentifier.basalBodyTemperature ? TemperatureUnit : T extends HKQuantityTypeIdentifier.runningSpeed | HKQuantityTypeIdentifier.stairAscentSpeed | HKQuantityTypeIdentifier.stairDescentSpeed | HKQuantityTypeIdentifier.walkingSpeed ? SpeedUnit<LengthUnit, TimeUnit> : T extends HKQuantityTypeIdentifier.flightsClimbed | HKQuantityTypeIdentifier.numberOfAlcoholicBeverages | HKQuantityTypeIdentifier.numberOfTimesFallen | HKQuantityTypeIdentifier.pushCount | HKQuantityTypeIdentifier.stepCount | HKQuantityTypeIdentifier.swimmingStrokeCount ? HKUnits.Count : T extends HKQuantityTypeIdentifier.dietaryBiotin | HKQuantityTypeIdentifier.dietaryCaffeine | HKQuantityTypeIdentifier.dietaryCalcium | HKQuantityTypeIdentifier.dietaryCarbohydrates | HKQuantityTypeIdentifier.dietaryChloride | HKQuantityTypeIdentifier.dietaryCholesterol | HKQuantityTypeIdentifier.dietaryChromium | HKQuantityTypeIdentifier.dietaryCopper | HKQuantityTypeIdentifier.dietaryFatMonounsaturated | HKQuantityTypeIdentifier.dietaryFatPolyunsaturated | HKQuantityTypeIdentifier.dietaryFatSaturated | HKQuantityTypeIdentifier.dietaryFatTotal | HKQuantityTypeIdentifier.dietaryFiber | HKQuantityTypeIdentifier.dietaryFolate | HKQuantityTypeIdentifier.dietaryIodine | HKQuantityTypeIdentifier.dietaryIron | HKQuantityTypeIdentifier.dietaryMagnesium | HKQuantityTypeIdentifier.dietaryManganese | HKQuantityTypeIdentifier.dietaryMolybdenum | HKQuantityTypeIdentifier.dietaryNiacin | HKQuantityTypeIdentifier.dietaryPantothenicAcid | HKQuantityTypeIdentifier.dietaryPhosphorus | HKQuantityTypeIdentifier.dietaryPotassium | HKQuantityTypeIdentifier.dietaryProtein | HKQuantityTypeIdentifier.dietaryRiboflavin | HKQuantityTypeIdentifier.dietarySelenium | HKQuantityTypeIdentifier.dietarySodium | HKQuantityTypeIdentifier.dietarySugar | HKQuantityTypeIdentifier.dietaryThiamin | HKQuantityTypeIdentifier.dietaryVitaminA | HKQuantityTypeIdentifier.dietaryVitaminB6 | HKQuantityTypeIdentifier.dietaryVitaminB12 | HKQuantityTypeIdentifier.dietaryVitaminC | HKQuantityTypeIdentifier.dietaryVitaminD | HKQuantityTypeIdentifier.dietaryVitaminE | HKQuantityTypeIdentifier.dietaryVitaminK | HKQuantityTypeIdentifier.dietaryZinc ? MassUnit : T extends HKQuantityTypeIdentifier.dietaryWater ? VolumeUnit : T extends HKQuantityTypeIdentifier.insulinDelivery ? HKUnits.InternationalUnit | `${HKUnits.InternationalUnit}` : T extends HKQuantityTypeIdentifier.heartRate | HKQuantityTypeIdentifier.restingHeartRate | HKQuantityTypeIdentifier.walkingHeartRateAverage ? CountPerTime<TimeUnit> : HKUnit;
1124
- export type HKCategoryTypeSeverityIdentifier = HKCategoryTypeIdentifier.abdominalCramps | HKCategoryTypeIdentifier.acne | HKCategoryTypeIdentifier.bladderIncontinence | HKCategoryTypeIdentifier.bloating | HKCategoryTypeIdentifier.breastPain | HKCategoryTypeIdentifier.chestTightnessOrPain | HKCategoryTypeIdentifier.chills | HKCategoryTypeIdentifier.constipation | HKCategoryTypeIdentifier.coughing | HKCategoryTypeIdentifier.diarrhea | HKCategoryTypeIdentifier.dizziness | HKCategoryTypeIdentifier.drySkin | HKCategoryTypeIdentifier.fainting | HKCategoryTypeIdentifier.fatigue | HKCategoryTypeIdentifier.fever | HKCategoryTypeIdentifier.generalizedBodyAche | HKCategoryTypeIdentifier.hairLoss | HKCategoryTypeIdentifier.headache | HKCategoryTypeIdentifier.heartburn | HKCategoryTypeIdentifier.hotFlashes | HKCategoryTypeIdentifier.lossOfSmell | HKCategoryTypeIdentifier.lossOfTaste | HKCategoryTypeIdentifier.lowerBackPain | HKCategoryTypeIdentifier.memoryLapse | HKCategoryTypeIdentifier.moodChanges | HKCategoryTypeIdentifier.nausea | HKCategoryTypeIdentifier.nightSweats | HKCategoryTypeIdentifier.pelvicPain | HKCategoryTypeIdentifier.rapidPoundingOrFlutteringHeartbeat | HKCategoryTypeIdentifier.runnyNose | HKCategoryTypeIdentifier.shortnessOfBreath | HKCategoryTypeIdentifier.sinusCongestion | HKCategoryTypeIdentifier.skippedHeartbeat | HKCategoryTypeIdentifier.soreThroat | HKCategoryTypeIdentifier.vaginalDryness | HKCategoryTypeIdentifier.vomiting | HKCategoryTypeIdentifier.wheezing;
1125
- export type HKCategoryTypePresenceIdentifier = HKCategoryTypeIdentifier.appetiteChanges | HKCategoryTypeIdentifier.sleepChanges;
1126
- export type HKCategoryTypeValueNotApplicableIdentifier = HKCategoryTypeIdentifier.highHeartRateEvent | HKCategoryTypeIdentifier.intermenstrualBleeding | HKCategoryTypeIdentifier.mindfulSession | HKCategoryTypeIdentifier.sexualActivity;
1127
- export type HKCategoryValueForIdentifier<T extends HKCategoryTypeIdentifier> = T extends HKCategoryTypeIdentifier.cervicalMucusQuality ? HKCategoryValueCervicalMucusQuality : T extends HKCategoryTypeIdentifier.menstrualFlow ? HKCategoryValueMenstrualFlow : T extends HKCategoryTypeIdentifier.ovulationTestResult ? HKCategoryValueOvulationTestResult : T extends HKCategoryTypeIdentifier.sleepAnalysis ? HKCategoryValueSleepAnalysis : T extends HKCategoryTypeValueNotApplicableIdentifier ? HKCategoryValueNotApplicable : T extends HKCategoryTypeSeverityIdentifier ? HKCategoryValueSeverity : T extends HKCategoryTypePresenceIdentifier ? HKCategoryValuePresence : T extends HKCategoryTypeIdentifier.lowCardioFitnessEvent ? HKCategoryValueLowCardioFitnessEvent : T extends HKCategoryTypeIdentifier.pregnancyTestResult ? HKCategoryValuePregnancyTestResult : T extends HKCategoryTypeIdentifier.pregnancyTestResult ? HKCategoryValuePregnancyTestResult : T extends HKCategoryTypeIdentifier.appleStandHour ? HKCategoryValueAppleStandHour : number;
1128
- /**
1129
- * @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepregnancytestresult Apple Docs }
1130
- */
1131
- declare enum HKCategoryValuePregnancyTestResult {
1132
- positive = 2,
1133
- negative = 1,
1134
- indeterminate = 3
1135
- }
1136
- export type HKHeartbeatSeriesSampleMetadata = HKGenericMetadata & {
1137
- readonly HKMetadataKeyAlgorithmVersion: string;
1138
- };
1139
- export type MetadataMapperForCategoryIdentifier<T extends HKCategoryTypeIdentifier> = T extends HKCategoryTypeIdentifier.sexualActivity ? HKGenericMetadata & {
1140
- readonly HKSexualActivityProtectionUsed: boolean;
1141
- } : T extends HKCategoryTypeIdentifier.menstrualFlow ? HKGenericMetadata & {
1142
- readonly HKMenstrualCycleStart: boolean;
1143
- } : HKGenericMetadata;
1144
- export declare enum HKWheelchairUse {
1145
- notSet = 0,
1146
- no = 1,
1147
- yes = 2
1148
- }
1149
- export declare enum HKMetricPrefix {
1150
- None = "",
1151
- Pico = "p",
1152
- Nano = "n",
1153
- Micro = "mc",
1154
- Milli = "m",
1155
- Centi = "c",
1156
- Deci = "d",
1157
- Deca = "da",
1158
- Hecto = "h",
1159
- Kilo = "k",
1160
- Mega = "M",
1161
- Giga = "G",
1162
- Tera = "T",
1163
- Femto = "f"
1164
- }
1165
- export declare enum HKUnitMetric {
1166
- Gram = "g",
1167
- Joule = "J",
1168
- Kelvin = "K",
1169
- Liter = "l",
1170
- Meter = "m",
1171
- Pascal = "Pa",
1172
- Second = "s",
1173
- Siemen = "S",
1174
- Hertz = "Hz",
1175
- Volt = "V"
1176
- }
1177
- export declare enum HKUnits {
1178
- DecibelHearingLevel = "dBHL",
1179
- DecibelSoundPressureLevel = "dBASPL",
1180
- Percent = "%",
1181
- Count = "count",
1182
- InternationalUnit = "IU",
1183
- AppleEffortScore = "appleEffortScore"
1184
- }
1185
- export type MeterUnit<Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}${HKUnitMetric.Meter}`;
1186
- export type LiterUnit<Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}${HKUnitMetric.Liter}`;
1187
- export type GramUnit<Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}${HKUnitMetric.Gram}`;
1188
- export type PascalUnit<Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}${HKUnitMetric.Pascal}`;
1189
- export type SecondUnit<Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}${HKUnitMetric.Second}`;
1190
- export type JouleUnit<Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}${HKUnitMetric.Joule}`;
1191
- export type HertzUnit<Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}${HKUnitMetric.Hertz}`;
1192
- export type VoltUnit<Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}${HKUnitMetric.Volt}`;
1193
- export type SiemenUnit<Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}${HKUnitMetric.Siemen}`;
1194
- export type MoleUnit<MolarMass extends number> = `mol<${MolarMass}>`;
1195
- export type MoleUnitWith<MolarMass extends number, Prefix extends HKMetricPrefix = HKMetricPrefix.None> = `${Prefix}mol<${MolarMass}>`;
1196
- export type FrequencyUnit = HertzUnit<HKMetricPrefix>;
1197
- /**
1198
- * More SI prefixes also available as literals, just type the string
1199
- * @example 'cm', 'km'
1200
- */
1201
- export declare enum UnitOfLength {
1202
- Feet = "ft",
1203
- /**
1204
- * More SI prefixes also available as literals, just type the string
1205
- * @example 'cm', 'km'
1206
- */
1207
- Meter = "m",
1208
- Inches = "in",
1209
- Yards = "yd",
1210
- Miles = "mi"
1211
- }
1212
- export type LengthUnit = MeterUnit<HKMetricPrefix> | UnitOfLength;
1213
- /**
1214
- * More SI prefixes also available as literals, just type the string
1215
- * @example 'ml', 'cl'
1216
- */
1217
- export declare enum UnitOfVolume {
1218
- ImperialCup = "cup_imp",
1219
- ImperialFluidOunces = "fl_oz_imp",
1220
- ImperialPint = "pt_imp",
1221
- USCup = "cup_us",
1222
- USFluidOunces = "fl_oz_us",
1223
- USPint = "pt_us",
1224
- /**
1225
- * More SI prefixes also available as literals, just type the string
1226
- * @example 'ml', 'cl'
1227
- */
1228
- Liter = "l"
1229
- }
1230
- export type VolumeUnit = LiterUnit<HKMetricPrefix> | UnitOfVolume;
1231
- /**
1232
- * More SI prefixes also available as literals, just type the string
1233
- * @example 'mg', 'kg'
1234
- */
1235
- export declare enum UnitOfMass {
1236
- Ounces = "oz",
1237
- Stones = "st",
1238
- Pounds = "lb",
1239
- /**
1240
- * More SI prefixes also available as literals, just type the string
1241
- * @example 'mg', 'kg'
1242
- */
1243
- Gram = "g"
1244
- }
1245
- /**
1246
- * More SI prefixes also available as literals, just type the string
1247
- * @example 'mg', 'kg'
1248
- */
1249
- export type MassUnit = GramUnit<HKMetricPrefix> | UnitOfMass;
1250
- /**
1251
- * More SI prefixes also available as literals, just type the string
1252
- * @example 'kPa', 'hPa'
1253
- */
1254
- export declare enum UnitOfPressure {
1255
- Atmospheres = "atm",
1256
- CentimetersOfWater = "cmAq",
1257
- MillimetersOfMercury = "mmHg",
1258
- InchesOfMercury = "inHg",
1259
- DecibelAWeightedSoundPressureLevel = "dBASPL",
1260
- /**
1261
- * More SI prefixes also available as literals, just type the string
1262
- * @example 'kPa', 'hPa'
1263
- */
1264
- Pascals = "Pa"
1265
- }
1266
- /**
1267
- * More SI prefixes also available as literals, just type the string
1268
- * @example 'kPa', 'hPa'
1269
- */
1270
- export type PressureUnit = PascalUnit<HKMetricPrefix> | UnitOfPressure;
1271
- /**
1272
- * More SI prefixes also available as literals, just type the string
1273
- * @example 'ms'
1274
- */
1275
- export declare enum UnitOfTime {
1276
- Days = "d",
1277
- Minutes = "min",
1278
- Hours = "hr",
1279
- /**
1280
- * More SI prefixes also available as literals, just type the string
1281
- * @example 'ms'
1282
- */
1283
- Seconds = "s"
1284
- }
1285
- /**
1286
- * More SI prefixes also available as literals, just type the string
1287
- * @example 'ms'
1288
- */
1289
- export type TimeUnit = SecondUnit<HKMetricPrefix> | UnitOfTime;
1290
- export declare enum TemperatureUnit {
1291
- DegreesCelsius = "degC",
1292
- DegreesFahrenheit = "degF",
1293
- Kelvin = "K"
1294
- }
1295
- /**
1296
- * More SI prefixes also available as literals, just type the string
1297
- * @example 'kJ'
1298
- */
1299
- export declare enum UnitOfEnergy {
1300
- Kilocalories = "kcal",
1301
- LargeCalories = "Cal",
1302
- SmallCalories = "cal",
1303
- /**
1304
- * More SI prefixes also available as literals, just type the string
1305
- * @example 'kJ'
1306
- */
1307
- Joules = "J"
1308
- }
1309
- export type EnergyUnit = JouleUnit<HKMetricPrefix> | UnitOfEnergy;
1310
- export declare enum BloodGlucoseUnit {
1311
- GlucoseMmolPerL = "mmol<180.15588000005408>/l",
1312
- GlucoseMgPerDl = "mg/dL"
1313
- }
1314
- export type SpeedUnit<TLength extends LengthUnit, TTime extends TimeUnit> = `${TLength}/${TTime}`;
1315
- export type CountPerTime<TTime extends TimeUnit> = `count/${TTime}`;
1316
- export type HKUnit = BloodGlucoseUnit | CountPerTime<TimeUnit> | EnergyUnit | FrequencyUnit | HKUnits | LengthUnit | MassUnit | PressureUnit | SpeedUnit<LengthUnit, TimeUnit> | TemperatureUnit | TimeUnit | VolumeUnit | `${BloodGlucoseUnit}` | `${EnergyUnit}` | `${HKUnits}` | `${LengthUnit}` | `${MassUnit}` | `${PressureUnit}` | `${TemperatureUnit}` | `${TimeUnit}` | `${VolumeUnit}`;
1317
- /**
1318
- * @see {@link https://developer.apple.com/documentation/healthkit/hkdevice Apple Docs }
1319
- */
1320
- export type HKDevice = {
1321
- readonly name: string;
1322
- readonly firmwareVersion: string | null;
1323
- readonly hardwareVersion: string;
1324
- readonly localIdentifier: string | null;
1325
- readonly manufacturer: string;
1326
- readonly model: string;
1327
- readonly softwareVersion: string;
1328
- readonly udiDeviceIdentifier: string | null;
1329
- };
1330
- /**
1331
- * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615781-source Apple Docs }
1332
- */
1333
- export type HKSource = {
1334
- readonly name: string;
1335
- readonly bundleIdentifier: string;
1336
- };
1337
- /**
1338
- * @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615483-sourcerevision Apple Docs }
1339
- */
1340
- export type HKSourceRevision = {
1341
- readonly source: HKSource;
1342
- readonly version: string;
1343
- readonly operatingSystemVersion?: string;
1344
- readonly productType?: string;
1345
- };
1346
- /**
1347
- * @see {@link https://developer.apple.com/documentation/healthkit/hkquantitysample Apple Docs }
1348
- */
1349
- export type HKQuantitySampleRaw<TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TQuantityIdentifier> = UnitForIdentifier<TQuantityIdentifier>> = {
1350
- readonly uuid: string;
1351
- readonly device?: HKDevice;
1352
- readonly quantityType: TQuantityIdentifier;
1353
- readonly startDate: string;
1354
- readonly endDate: string;
1355
- readonly quantity: number;
1356
- readonly unit: TUnit;
1357
- readonly metadata: MetadataMapperForQuantityIdentifier<TQuantityIdentifier>;
1358
- readonly sourceRevision?: HKSourceRevision;
1359
- };
1360
- export type HKHeartbeatRaw = {
1361
- readonly timeSinceSeriesStart: number;
1362
- readonly precededByGap: boolean;
1363
- };
1364
- export type HKHeartbeatSeriesSampleRaw = {
1365
- readonly uuid: string;
1366
- readonly device?: HKDevice;
1367
- readonly startDate: string;
1368
- readonly endDate: string;
1369
- readonly heartbeats: readonly HKHeartbeatRaw[];
1370
- readonly metadata?: HKHeartbeatSeriesSampleMetadata;
1371
- readonly sourceRevision?: HKSourceRevision;
1372
- };
1373
- export type CLLocationRawForSaving = {
1374
- readonly latitude: number;
1375
- readonly longitude: number;
1376
- readonly altitude: number;
1377
- readonly horizontalAccuracy: number;
1378
- readonly verticalAccuracy: number;
1379
- readonly course: number;
1380
- readonly speed: number;
1381
- readonly timestamp: string;
1382
- };
1383
- export type HKQuantitySampleRawForSaving<TQuantityIdentifier extends HKQuantityTypeIdentifier = HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TQuantityIdentifier> = UnitForIdentifier<TQuantityIdentifier>> = Omit<HKQuantitySampleRaw<TQuantityIdentifier, TUnit>, 'device' | 'endDate' | 'startDate' | 'uuid'> & {
1384
- readonly startDate?: string;
1385
- readonly endDate?: string;
1386
- };
1387
- export type HKCategorySampleRawForSaving<TCategory extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier> = Omit<HKCategorySampleRaw<TCategory>, 'device' | 'endDate' | 'startDate' | 'uuid'> & {
1388
- readonly startDate?: string;
1389
- readonly endDate?: string;
1390
- };
1391
- export interface HKWorkoutEvent {
1392
- readonly type: HKWorkoutEventType;
1393
- readonly startDate: string;
1394
- readonly endDate: string;
1395
- }
1396
- /**
1397
- * @see {@link https://developer.apple.com/documentation/healthkit/hkworkouteventtype Apple Docs }
1398
- */
1399
- export declare enum HKWorkoutEventType {
1400
- pause = 1,
1401
- resume = 2,
1402
- lap = 3,
1403
- marker = 4,
1404
- motionPaused = 5,
1405
- motionResumed = 6,
1406
- segment = 7,
1407
- pauseOrResumeRequest = 8
1408
- }
1409
- export interface HKWorkoutActivity {
1410
- readonly startDate: string;
1411
- readonly endDate: string;
1412
- readonly uuid: string;
1413
- readonly duration: number;
1414
- }
1415
- export type HKWorkoutRaw<TEnergy extends EnergyUnit, TDistance extends LengthUnit> = {
1416
- readonly uuid: string;
1417
- readonly device?: HKDevice;
1418
- readonly workoutActivityType: HKWorkoutActivityType;
1419
- readonly duration: number;
1420
- readonly totalDistance?: HKQuantity<HKQuantityTypeIdentifier, TDistance>;
1421
- readonly totalEnergyBurned?: HKQuantity<HKQuantityTypeIdentifier, TEnergy>;
1422
- readonly totalSwimmingStrokeCount?: HKQuantity<HKQuantityTypeIdentifier, HKUnits.Count>;
1423
- readonly totalFlightsClimbed?: HKQuantity<HKQuantityTypeIdentifier, HKUnits.Count>;
1424
- readonly startDate: string;
1425
- readonly endDate: string;
1426
- readonly metadata?: HKWorkoutMetadata;
1427
- readonly sourceRevision?: HKSourceRevision;
1428
- readonly events?: readonly HKWorkoutEvent[];
1429
- readonly activities?: readonly HKWorkoutActivity[];
1430
- readonly workoutPlanId?: string;
1431
- };
1432
- export declare enum HKCharacteristicTypeIdentifier {
1433
- fitzpatrickSkinType = "HKCharacteristicTypeIdentifierFitzpatrickSkinType",
1434
- biologicalSex = "HKCharacteristicTypeIdentifierBiologicalSex",
1435
- bloodType = "HKCharacteristicTypeIdentifierBloodType",
1436
- dateOfBirth = "HKCharacteristicTypeIdentifierDateOfBirth",
1437
- wheelchairUse = "HKCharacteristicTypeIdentifierWheelchairUse",
1438
- activityMoveMode = "HKCharacteristicTypeIdentifierActivityMoveMode"
1439
- }
1440
- export type WritePermissions = {
1441
- readonly [key in HKCategoryTypeIdentifier | HKCharacteristicTypeIdentifier | HKQuantityTypeIdentifier]: boolean;
1442
- };
1443
- export type ReadPermissions = {
1444
- readonly [key in HKCategoryTypeIdentifier | HKCharacteristicTypeIdentifier | HKQuantityTypeIdentifier]: boolean;
1445
- };
1446
- export type HKCategorySampleRaw<T extends HKCategoryTypeIdentifier = HKCategoryTypeIdentifier> = {
1447
- readonly uuid: string;
1448
- readonly device?: HKDevice;
1449
- readonly categoryType: T;
1450
- readonly startDate: string;
1451
- readonly endDate: string;
1452
- readonly value: HKCategoryValueForIdentifier<T>;
1453
- readonly metadata: MetadataMapperForCategoryIdentifier<T>;
1454
- readonly sourceRevision?: HKSourceRevision;
1455
- };
1456
- export type DeletedCategorySampleRaw<T extends HKCategoryTypeIdentifier> = {
1457
- readonly uuid: string;
1458
- readonly metadata: MetadataMapperForCategoryIdentifier<T>;
1459
- };
1460
- export type DeletedWorkoutSampleRaw = {
1461
- readonly uuid: string;
1462
- readonly metadata: HKWorkoutMetadata;
1463
- };
1464
- export type DeletedHeartbeatSeriesSampleRaw = {
1465
- readonly uuid: string;
1466
- readonly metadata: HKHeartbeatSeriesSampleMetadata;
1467
- };
1468
- export type DeletedQuantitySampleRaw<T extends HKQuantityTypeIdentifier> = {
1469
- readonly uuid: string;
1470
- readonly metadata: MetadataMapperForQuantityIdentifier<T>;
1471
- };
1472
- export type QueryCategorySamplesResponseRaw<T extends HKCategoryTypeIdentifier> = {
1473
- readonly samples: readonly HKCategorySampleRaw<T>[];
1474
- readonly deletedSamples: readonly DeletedCategorySampleRaw<T>[];
1475
- readonly newAnchor: string;
1476
- };
1477
- export type QueryHeartbeatSeriesSamplesResponseRaw = {
1478
- readonly samples: readonly HKHeartbeatSeriesSampleRaw[];
1479
- readonly deletedSamples: readonly DeletedHeartbeatSeriesSampleRaw[];
1480
- readonly newAnchor: string;
1481
- };
1482
- export type QueryQuantitySamplesResponseRaw<T extends HKQuantityTypeIdentifier> = {
1483
- readonly samples: readonly HKQuantitySampleRaw<T>[];
1484
- readonly deletedSamples: readonly DeletedQuantitySampleRaw<T>[];
1485
- readonly newAnchor: string;
1486
- };
1487
- export type HKCorrelationRaw<TIdentifier extends HKCorrelationTypeIdentifier> = {
1488
- readonly correlationType: HKCorrelationTypeIdentifier;
1489
- readonly objects: readonly (HKCategorySampleRaw | HKQuantitySampleRaw)[];
1490
- readonly metadata: MetadataMapperForCorrelationIdentifier<TIdentifier>;
1491
- readonly startDate: string;
1492
- readonly endDate: string;
1493
- };
1494
- type QueryId = string;
1495
- /**
1496
- * @see {@link https://developer.apple.com/documentation/healthkit/hkupdatefrequency Apple Docs }
1497
- */
1498
- export declare enum HKUpdateFrequency {
1499
- immediate = 1,
1500
- hourly = 2,
1501
- daily = 3,
1502
- weekly = 4
1503
- }
1504
- export type WorkoutLocation = {
1505
- readonly longitude: number;
1506
- readonly latitude: number;
1507
- readonly altitude: number;
1508
- readonly speed: number;
1509
- readonly timestamp: number;
1510
- readonly horizontalAccuracy: number;
1511
- readonly speedAccuracy: number;
1512
- readonly verticalAccuracy: number;
1513
- readonly distance: number | null;
1514
- };
1515
- export type WorkoutRoute = {
1516
- readonly locations: readonly WorkoutLocation[];
1517
- readonly HKMetadataKeySyncIdentifier?: string;
1518
- readonly HKMetadataKeySyncVersion?: number;
1519
- };
1520
- type QueryWorkoutSamplesWithAnchorResponseRaw<TEnergy extends EnergyUnit, TDistance extends LengthUnit> = {
1521
- readonly samples: readonly HKWorkoutRaw<TEnergy, TDistance>[];
1522
- readonly deletedSamples: readonly DeletedWorkoutSampleRaw[];
1523
- readonly newAnchor: string;
1524
- };
1525
- /**
1526
- * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutconfiguration Apple Docs }
1527
- */
1528
- export type HKWorkoutConfiguration = {
1529
- readonly activityType: HKWorkoutActivityType;
1530
- readonly locationType?: HKWorkoutSessionLocationType;
1531
- };
1532
- /**
1533
- * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutsessionlocationtype Apple Docs }
1534
- */
1535
- export declare enum HKWorkoutSessionLocationType {
1536
- unknown = 1,
1537
- indoor = 2,
1538
- outdoor = 3
1539
- }
1540
- /**
1541
- * @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutsessionstate Apple Docs }
1542
- */
1543
- export declare enum WorkoutSessionState {
1544
- NotStarted = 1,
1545
- Running = 2,
1546
- Ended = 3,
1547
- Paused = 4,
1548
- Prepared = 5,
1549
- Stopped = 6
1550
- }
1551
- export interface WorkoutStateChangeEvent {
1552
- readonly toState: WorkoutSessionState;
1553
- readonly fromState: WorkoutSessionState;
1554
- readonly date: string;
1555
- }
1556
- export interface WorkoutErrorEvent {
1557
- readonly error: string;
1558
- }
1559
- export type RemoteSessionSharableData = {
1560
- readonly type: string;
1561
- readonly payload: Record<string, unknown>;
1562
- };
1563
- export type WorkoutDataReceivedEvent = {
1564
- readonly data: readonly RemoteSessionSharableData[];
1565
- };
1566
- export type WorkoutEventReceivedEvent = {
1567
- readonly type: HKWorkoutEventType;
1568
- };
1569
- type ReactNativeHealthkitTypeNative = {
1570
- /**
1571
- * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614180-ishealthdataavailable Apple Docs }
1572
- */
1573
- isHealthDataAvailable(): Promise<boolean>;
1574
- isProtectedDataAvailable(): Promise<boolean>;
1575
- getBloodType(): Promise<HKBloodType>;
1576
- getDateOfBirth(): Promise<string>;
1577
- getBiologicalSex(): Promise<HKBiologicalSex>;
1578
- getFitzpatrickSkinType(): Promise<HKFitzpatrickSkinType>;
1579
- readonly getWheelchairUse: () => Promise<HKWheelchairUse>;
1580
- /**
1581
- * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery Apple Docs }
1582
- */
1583
- readonly enableBackgroundDelivery: (typeIdentifier: HKSampleTypeIdentifier, updateFrequency: HKUpdateFrequency) => Promise<boolean>;
1584
- /**
1585
- * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614177-disablebackgrounddelivery Apple Docs }
1586
- */
1587
- readonly disableBackgroundDelivery: (typeIdentifier: HKSampleTypeIdentifier) => Promise<boolean>;
1588
- /**
1589
- * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614158-disableallbackgrounddelivery Apple Docs }
1590
- */
1591
- readonly disableAllBackgroundDelivery: () => Promise<boolean>;
1592
- readonly saveCorrelationSample: <TIdentifier extends HKCorrelationTypeIdentifier, TSamples extends readonly (HKCategorySampleRawForSaving | HKQuantitySampleRawForSaving)[]>(typeIdentifier: TIdentifier, samples: TSamples, start: string, end: string, metadata: MetadataMapperForCorrelationIdentifier<TIdentifier>) => Promise<boolean>;
1593
- readonly saveWorkoutSample: (typeIdentifier: HKWorkoutActivityType, quantities: readonly HKQuantitySampleRawForSaving[], start: string, end: string, totals: {
1594
- readonly distance?: number;
1595
- readonly energyBurned?: number;
1596
- }, metadata: HKWorkoutMetadata) => Promise<string | null>;
1597
- readonly saveWorkoutRoute: (workoutUUID: string, locations: readonly CLLocationRawForSaving[]) => Promise<boolean>;
1598
- readonly queryCorrelationSamples: <TIdentifier extends HKCorrelationTypeIdentifier>(typeIdentifier: TIdentifier, from: string, to: string) => Promise<readonly HKCorrelationRaw<TIdentifier>[]>;
1599
- subscribeToObserverQuery(identifier: HKSampleTypeIdentifier): Promise<QueryId>;
1600
- unsubscribeQuery(queryId: QueryId): Promise<boolean>;
1601
- /**
1602
- * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614154-authorizationstatus Apple Docs }
1603
- */
1604
- authorizationStatusFor(type: HealthkitReadAuthorization): Promise<HKAuthorizationStatus>;
1605
- /**
1606
- * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/2994346-getrequeststatusforauthorization Apple Docs }
1607
- */
1608
- getRequestStatusForAuthorization(write: WritePermissions, read: ReadPermissions): Promise<HKAuthorizationRequestStatus>;
1609
- /**
1610
- * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorization Apple Docs }
1611
- */
1612
- requestAuthorization(write: WritePermissions, read: ReadPermissions): Promise<boolean>;
1613
- readonly saveQuantitySample: <TType extends HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TType> = UnitForIdentifier<TType>>(identifier: TType, unit: TUnit, value: number, start: string, end: string, metadata: unknown) => Promise<boolean>;
1614
- readonly deleteQuantitySample: <TIdentifier extends HKQuantityTypeIdentifier>(typeIdentifier: TIdentifier, uuid: string) => Promise<boolean>;
1615
- readonly deleteSamples: <TIdentifier extends HKQuantityTypeIdentifier>(identifier: TIdentifier, start: string, end: string) => Promise<boolean>;
1616
- readonly deleteWorkoutSample: (uuid: string) => Promise<boolean>;
1617
- readonly queryWorkoutSamples: <TEnergy extends EnergyUnit, TDistance extends LengthUnit>(energyUnit: TEnergy, distanceUnit: TDistance, from: string, to: string, limit: number, ascending: boolean) => Promise<readonly HKWorkoutRaw<TEnergy, TDistance>[]>;
1618
- readonly queryCategorySamples: <T extends HKCategoryTypeIdentifier>(identifier: T, from: string, to: string, limit: number, ascending: boolean) => Promise<readonly HKCategorySampleRaw<T>[]>;
1619
- readonly queryQuantitySamples: <TIdentifier extends HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TIdentifier>>(identifier: TIdentifier, unit: TUnit, from: string, to: string, limit: number, ascending: boolean) => Promise<readonly HKQuantitySampleRaw<TIdentifier>[]>;
1620
- readonly queryCategorySamplesWithAnchor: <T extends HKCategoryTypeIdentifier>(identifier: T, from: string, to: string, limit: number, anchor: string) => Promise<QueryCategorySamplesResponseRaw<T>>;
1621
- readonly queryWorkoutSamplesWithAnchor: <TEnergy extends EnergyUnit, TDistance extends LengthUnit>(energyUnit: TEnergy, distanceUnit: TDistance, from: string, to: string, limit: number, anchor: string) => Promise<QueryWorkoutSamplesWithAnchorResponseRaw<TEnergy, TDistance>>;
1622
- readonly queryQuantitySamplesWithAnchor: <TIdentifier extends HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TIdentifier>>(identifier: TIdentifier, unit: TUnit, from: string, to: string, limit: number, anchor: string) => Promise<QueryQuantitySamplesResponseRaw<TIdentifier>>;
1623
- readonly queryHeartbeatSeriesSamples: (from: string, to: string, limit: number, ascending: boolean) => Promise<readonly HKHeartbeatSeriesSampleRaw[]>;
1624
- readonly queryHeartbeatSeriesSamplesWithAnchor: (from: string, to: string, limit: number, anchor: string) => Promise<QueryHeartbeatSeriesSamplesResponseRaw>;
1625
- readonly querySources: <TIdentifier extends HKCategoryTypeIdentifier | HKQuantityTypeIdentifier>(identifier: TIdentifier) => Promise<readonly HKSource[]>;
1626
- readonly saveCategorySample: <T extends HKCategoryTypeIdentifier>(identifier: T, value: HKCategoryValueForIdentifier<T>, start: string, end: string, metadata: unknown) => Promise<boolean>;
1627
- readonly saveStateOfMindSample: (startDate: HKStateOfMindSampleRaw['startDate'], kind: HKStateOfMindSampleRaw['kind'], valence: HKStateOfMindSampleRaw['valence'], labels: HKStateOfMindSampleRaw['labels'], associations: HKStateOfMindSampleRaw['associations'], metadata: HKStateOfMindSampleRaw['metadata']) => Promise<boolean>;
1628
- readonly queryStatisticsForQuantity: <TIdentifier extends HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TIdentifier>>(identifier: HKQuantityTypeIdentifier, unit: TUnit, from: string, to: string, options: readonly HKStatisticsOptions[]) => Promise<QueryStatisticsResponseRaw<TIdentifier, TUnit>>;
1629
- readonly queryStatisticsCollectionForQuantity: <TIdentifier extends HKQuantityTypeIdentifier, TUnit extends UnitForIdentifier<TIdentifier>>(identifier: TIdentifier, unit: TUnit, options: readonly HKStatisticsOptions[], anchorDate: string, intervalComponents: IntervalComponents, startDate: string, endDate: string) => Promise<readonly QueryStatisticsResponseRaw<TIdentifier, TUnit>[]>;
1630
- readonly getPreferredUnits: (identifiers: readonly HKQuantityTypeIdentifier[]) => Promise<TypeToUnitMapping>;
1631
- readonly getWorkoutRoutes: (workoutUUID: string) => Promise<readonly WorkoutRoute[]>;
1632
- readonly getWorkoutPlanById: (workoutUUID: string) => Promise<{
1633
- readonly id: string;
1634
- readonly activityType: HKWorkoutActivityType;
1635
- } | null>;
1636
- /**
1637
- * @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1648358-startwatchapp Apple Docs }
1638
- */
1639
- readonly startWatchAppWithWorkoutConfiguration: (workoutConfiguration: HKWorkoutConfiguration) => Promise<boolean>;
1640
- /**
1641
- * Query state of mind samples from HealthKit
1642
- * @param from Start date to query from
1643
- * @param to End date to query to
1644
- * @param limit Maximum number of samples to return
1645
- * @param ascending Sort order of samples
1646
- * @returns Promise resolving to array of state of mind samples
1647
- * @platform ios
1648
- * @requires iOS 17.0+
1649
- */
1650
- readonly queryStateOfMindSamples: (from: string | null, to: string | null, limit: number, ascending: boolean) => Promise<readonly HKStateOfMindSampleRaw[]>;
1651
- };
1652
- export declare enum HKStateOfMindValenceClassification {
1653
- veryUnpleasant = 1,
1654
- unpleasant = 2,
1655
- slightlyUnpleasant = 3,
1656
- neutral = 4,
1657
- slightlyPleasant = 5,
1658
- pleasant = 6,
1659
- veryPleasant = 7
1660
- }
1661
- export type HKStateOfMindSampleRaw = {
1662
- readonly uuid: string;
1663
- readonly device?: HKDevice;
1664
- readonly startDate: string;
1665
- readonly endDate: string;
1666
- readonly metadata?: HKGenericMetadata;
1667
- readonly sourceRevision?: HKSourceRevision;
1668
- /**
1669
- * @see {@link https://developer.apple.com/documentation/healthkit/hkstateofmind/4337998-valence Apple Docs }
1670
- * Value between -1 and 1
1671
- */
1672
- readonly valence: number;
1673
- readonly kind: HKStateOfMindKind;
1674
- readonly valenceClassification: HKStateOfMindValenceClassification;
1675
- readonly associations: readonly HKStateOfMindAssociation[];
1676
- readonly labels: readonly HKStateOfMindLabel[];
1677
- };
1678
- declare const Native: ReactNativeHealthkitTypeNative;
1679
- type OnChangeCallback = ({ typeIdentifier, }: {
1680
- readonly typeIdentifier: HKSampleTypeIdentifier;
1681
- }) => void;
1682
- type OnRemoteWorkoutStateChangeCallback = (event: WorkoutStateChangeEvent) => void;
1683
- type OnRemoteWorkoutErrorCallback = (event: WorkoutErrorEvent) => void;
1684
- type OnRemoteWorkoutDataCallback = (event: WorkoutDataReceivedEvent) => void;
1685
- type OnRemoteWorkoutEventReceivedCallback = (event: WorkoutEventReceivedEvent) => void;
1686
- interface HealthkitEventEmitter extends NativeEventEmitter {
1687
- readonly addListener: (eventType: 'onChange' | 'onRemoteWorkoutStateChange' | 'onRemoteWorkoutError' | 'onRemoteWorkoutDataReceived' | 'onRemoteWorkoutEventReceived', callback: OnChangeCallback | OnRemoteWorkoutStateChangeCallback | OnRemoteWorkoutErrorCallback | OnRemoteWorkoutDataCallback | OnRemoteWorkoutEventReceivedCallback) => EmitterSubscription;
1688
- }
1689
- export declare const EventEmitter: HealthkitEventEmitter;
1690
- export default Native;
1691
- /**
1692
- * @see {@link https://developer.apple.com/documentation/healthkit/hkstateofmind/label Apple Docs}
1693
- */
1694
- export declare enum HKStateOfMindLabel {
1695
- amazed = 1,
1696
- amused = 2,
1697
- angry = 3,
1698
- anxious = 4,
1699
- ashamed = 5,
1700
- brave = 6,
1701
- calm = 7,
1702
- content = 8,
1703
- disappointed = 9,
1704
- discouraged = 10,
1705
- disgusted = 11,
1706
- embarrassed = 12,
1707
- excited = 13,
1708
- frustrated = 14,
1709
- grateful = 15,
1710
- guilty = 16,
1711
- happy = 17,
1712
- hopeless = 18,
1713
- irritated = 19,
1714
- jealous = 20,
1715
- joyful = 21,
1716
- lonely = 22,
1717
- passionate = 23,
1718
- peaceful = 24,
1719
- proud = 25,
1720
- relieved = 26,
1721
- sad = 27,
1722
- scared = 28,
1723
- stressed = 29,
1724
- surprised = 30,
1725
- worried = 31,
1726
- annoyed = 32,
1727
- confident = 33,
1728
- drained = 34,
1729
- hopeful = 35,
1730
- indifferent = 36,
1731
- overwhelmed = 37,
1732
- satisfied = 38
1733
- }
1734
- /**
1735
- * @see {@link https://developer.apple.com/documentation/healthkit/hkstateofmind/kind Apple Docs}
1736
- */
1737
- export declare enum HKStateOfMindKind {
1738
- dailyMood = 2,
1739
- momentaryEmotion = 1
1740
- }
1741
- /**
1742
- * @see {@link https://developer.apple.com/documentation/healthkit/hkstateofmind/association Apple Docs}
1743
- * @since iOS 17.0+
1744
- */
1745
- export declare enum HKStateOfMindAssociation {
1746
- community = 1,
1747
- currentEvents = 2,
1748
- dating = 3,
1749
- education = 4,
1750
- family = 5,
1751
- fitness = 6,
1752
- friends = 7,
1753
- health = 8,
1754
- hobbies = 9,
1755
- identity = 10,
1756
- money = 11,
1757
- partner = 12,
1758
- selfCare = 13,
1759
- spirituality = 14,
1760
- tasks = 15,
1761
- travel = 16,
1762
- work = 17,
1763
- weather = 18
1764
- }