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