@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.
- package/ReactNativeHealthkit.podspec +36 -0
- package/app.plugin.js +43 -33
- package/ios/Bridge.h +8 -0
- package/ios/CategoryTypeModule.swift +128 -0
- package/ios/CharacteristicTypeModule.swift +78 -0
- package/ios/Constants.swift +2 -0
- package/ios/CoreModule.swift +376 -0
- package/ios/CorrelationTypeModule.swift +153 -0
- package/ios/HeartbeatSeriesModule.swift +189 -0
- package/ios/Helpers.swift +529 -251
- package/ios/QuantityTypeModule.swift +461 -0
- package/ios/Serializers.swift +211 -124
- package/ios/SourceProxy.swift +35 -0
- package/ios/StateOfMindModule.swift +160 -0
- package/ios/WorkoutProxy.swift +405 -0
- package/ios/WorkoutSessionModule.swift +182 -0
- package/ios/WorkoutsModule.swift +357 -0
- package/package.json +43 -127
- package/react-native.config.js +16 -0
- package/src/hooks/useHealthkitAuthorization.test.ts +47 -29
- package/src/hooks/useHealthkitAuthorization.ts +21 -15
- package/src/hooks/useIsHealthDataAvailable.test.ts +17 -7
- package/src/hooks/useIsHealthDataAvailable.ts +7 -7
- package/src/hooks/useMostRecentCategorySample.ts +10 -12
- package/src/hooks/useMostRecentQuantitySample.ts +17 -36
- package/src/hooks/useMostRecentWorkout.ts +16 -38
- package/src/hooks/useSources.ts +8 -12
- package/src/hooks/useStatisticsForQuantity.ts +19 -14
- package/src/hooks/useSubscribeToChanges.ts +9 -13
- package/src/index.ios.ts +232 -0
- package/src/index.ts +444 -0
- package/src/modules.ts +43 -0
- package/src/specs/CategoryTypeModule.nitro.ts +64 -0
- package/src/specs/CharacteristicTypeModule.nitro.ts +22 -0
- package/src/specs/CoreModule.nitro.ts +107 -0
- package/src/specs/CorrelationTypeModule.nitro.ts +23 -0
- package/src/specs/HeartbeatSeriesModule.nitro.ts +19 -0
- package/src/specs/QuantityTypeModule.nitro.ts +60 -0
- package/src/specs/SourceProxy.nitro.ts +13 -0
- package/src/specs/StateOfMindModule.nitro.ts +23 -0
- package/src/specs/WorkoutProxy.nitro.ts +18 -0
- package/src/specs/WorkoutSessionModule.nitro.ts +71 -0
- package/src/specs/WorkoutsModule.nitro.ts +32 -0
- package/src/test-setup.ts +68 -54
- package/src/test-utils.ts +3 -2
- package/src/types/Auth.ts +17 -0
- package/src/types/Background.ts +9 -0
- package/src/types/CategoryType.ts +249 -0
- package/src/types/CategoryTypeIdentifier.ts +99 -0
- package/src/types/Characteristics.ts +53 -0
- package/src/types/Constants.ts +25 -0
- package/src/types/CorrelationType.ts +31 -0
- package/src/types/Device.ts +13 -0
- package/src/types/HeartbeatSeries.ts +29 -0
- package/src/types/InterfaceVerification.ts +164 -0
- package/src/types/InterfaceVerificationExample.ts +89 -0
- package/src/types/QuantitySample.ts +30 -0
- package/src/types/QuantityType.ts +192 -0
- package/src/types/QuantityTypeIdentifier.ts +758 -0
- package/src/types/QueryOptions.ts +69 -0
- package/src/types/README-InterfaceVerification.md +103 -0
- package/src/types/Shared.ts +79 -0
- package/src/types/Source.ts +11 -0
- package/src/types/StateOfMind.ts +110 -0
- package/src/types/Subscriptons.ts +10 -0
- package/src/types/Units.ts +190 -0
- package/src/types/WeatherCondition.ts +31 -0
- package/src/types/WorkoutKit.ts +18 -0
- package/src/types/Workouts.ts +282 -0
- package/src/utils/getMostRecentCategorySample.ts +7 -11
- package/src/utils/getMostRecentQuantitySample.ts +8 -18
- package/src/utils/getMostRecentWorkout.ts +7 -17
- package/src/utils/getPreferredUnit.ts +12 -8
- package/src/utils/subscribeToChanges.ts +9 -26
- package/LICENSE +0 -21
- package/README.md +0 -179
- package/ios/ReactNativeHealthkit-Bridging-Header.h +0 -2
- package/ios/ReactNativeHealthkit.m +0 -271
- package/ios/ReactNativeHealthkit.swift +0 -2333
- package/ios/ReactNativeHealthkit.xcodeproj/project.pbxproj +0 -279
- package/kingstinct-react-native-healthkit.podspec +0 -21
- package/lib/commonjs/hooks/useHealthkitAuthorization.js +0 -39
- package/lib/commonjs/hooks/useHealthkitAuthorization.js.map +0 -1
- package/lib/commonjs/hooks/useHealthkitAuthorization.test.js +0 -72
- package/lib/commonjs/hooks/useHealthkitAuthorization.test.js.map +0 -1
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js +0 -27
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js.map +0 -1
- package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js +0 -41
- package/lib/commonjs/hooks/useIsHealthDataAvailable.test.js.map +0 -1
- package/lib/commonjs/hooks/useMostRecentCategorySample.js +0 -23
- package/lib/commonjs/hooks/useMostRecentCategorySample.js.map +0 -1
- package/lib/commonjs/hooks/useMostRecentQuantitySample.js +0 -37
- package/lib/commonjs/hooks/useMostRecentQuantitySample.js.map +0 -1
- package/lib/commonjs/hooks/useMostRecentWorkout.js +0 -48
- package/lib/commonjs/hooks/useMostRecentWorkout.js.map +0 -1
- package/lib/commonjs/hooks/useSources.js +0 -22
- package/lib/commonjs/hooks/useSources.js.map +0 -1
- package/lib/commonjs/hooks/useStatisticsForQuantity.js +0 -28
- package/lib/commonjs/hooks/useStatisticsForQuantity.js.map +0 -1
- package/lib/commonjs/hooks/useSubscribeToChanges.js +0 -28
- package/lib/commonjs/hooks/useSubscribeToChanges.js.map +0 -1
- package/lib/commonjs/index.ios.js +0 -531
- package/lib/commonjs/index.ios.js.map +0 -1
- package/lib/commonjs/index.js +0 -22
- package/lib/commonjs/index.js.map +0 -1
- package/lib/commonjs/index.native.js +0 -235
- package/lib/commonjs/index.native.js.map +0 -1
- package/lib/commonjs/index.web.js +0 -22
- package/lib/commonjs/index.web.js.map +0 -1
- package/lib/commonjs/native-types.js +0 -1575
- package/lib/commonjs/native-types.js.map +0 -1
- package/lib/commonjs/test-setup.js +0 -57
- package/lib/commonjs/test-setup.js.map +0 -1
- package/lib/commonjs/test-utils.js +0 -18
- package/lib/commonjs/test-utils.js.map +0 -1
- package/lib/commonjs/types.js +0 -17
- package/lib/commonjs/types.js.map +0 -1
- package/lib/commonjs/utils/deleteQuantitySample.js +0 -11
- package/lib/commonjs/utils/deleteQuantitySample.js.map +0 -1
- package/lib/commonjs/utils/deleteSamples.js +0 -18
- package/lib/commonjs/utils/deleteSamples.js.map +0 -1
- package/lib/commonjs/utils/deleteWorkoutSample.js +0 -11
- package/lib/commonjs/utils/deleteWorkoutSample.js.map +0 -1
- package/lib/commonjs/utils/deserializeCategorySample.js +0 -13
- package/lib/commonjs/utils/deserializeCategorySample.js.map +0 -1
- package/lib/commonjs/utils/deserializeCategorySample.test.js +0 -26
- package/lib/commonjs/utils/deserializeCategorySample.test.js.map +0 -1
- package/lib/commonjs/utils/deserializeCorrelation.js +0 -26
- package/lib/commonjs/utils/deserializeCorrelation.js.map +0 -1
- package/lib/commonjs/utils/deserializeHeartbeatSeriesSample.js +0 -15
- package/lib/commonjs/utils/deserializeHeartbeatSeriesSample.js.map +0 -1
- package/lib/commonjs/utils/deserializeSample.js +0 -15
- package/lib/commonjs/utils/deserializeSample.js.map +0 -1
- package/lib/commonjs/utils/deserializeWorkout.js +0 -15
- package/lib/commonjs/utils/deserializeWorkout.js.map +0 -1
- package/lib/commonjs/utils/ensureMetadata.js +0 -11
- package/lib/commonjs/utils/ensureMetadata.js.map +0 -1
- package/lib/commonjs/utils/ensureTotals.js +0 -11
- package/lib/commonjs/utils/ensureTotals.js.map +0 -1
- package/lib/commonjs/utils/ensureUnit.js +0 -17
- package/lib/commonjs/utils/ensureUnit.js.map +0 -1
- package/lib/commonjs/utils/getDateOfBirth.js +0 -14
- package/lib/commonjs/utils/getDateOfBirth.js.map +0 -1
- package/lib/commonjs/utils/getMostRecentCategorySample.js +0 -17
- package/lib/commonjs/utils/getMostRecentCategorySample.js.map +0 -1
- package/lib/commonjs/utils/getMostRecentQuantitySample.js +0 -21
- package/lib/commonjs/utils/getMostRecentQuantitySample.js.map +0 -1
- package/lib/commonjs/utils/getMostRecentWorkout.js +0 -19
- package/lib/commonjs/utils/getMostRecentWorkout.js.map +0 -1
- package/lib/commonjs/utils/getPreferredUnit.js +0 -14
- package/lib/commonjs/utils/getPreferredUnit.js.map +0 -1
- package/lib/commonjs/utils/getPreferredUnits.js +0 -14
- package/lib/commonjs/utils/getPreferredUnits.js.map +0 -1
- package/lib/commonjs/utils/getPreferredUnitsTyped.js +0 -33
- package/lib/commonjs/utils/getPreferredUnitsTyped.js.map +0 -1
- package/lib/commonjs/utils/getRequestStatusForAuthorization.js +0 -21
- package/lib/commonjs/utils/getRequestStatusForAuthorization.js.map +0 -1
- package/lib/commonjs/utils/getWorkoutPlanById.js +0 -13
- package/lib/commonjs/utils/getWorkoutPlanById.js.map +0 -1
- package/lib/commonjs/utils/prepareOptions.js +0 -25
- package/lib/commonjs/utils/prepareOptions.js.map +0 -1
- package/lib/commonjs/utils/queryCategorySamples.js +0 -17
- package/lib/commonjs/utils/queryCategorySamples.js.map +0 -1
- package/lib/commonjs/utils/queryCategorySamplesWithAnchor.js +0 -21
- package/lib/commonjs/utils/queryCategorySamplesWithAnchor.js.map +0 -1
- package/lib/commonjs/utils/queryCorrelationSamples.js +0 -17
- package/lib/commonjs/utils/queryCorrelationSamples.js.map +0 -1
- package/lib/commonjs/utils/queryHeartbeatSeriesSamples.js +0 -17
- package/lib/commonjs/utils/queryHeartbeatSeriesSamples.js.map +0 -1
- package/lib/commonjs/utils/queryHeartbeatSeriesSamplesWithAnchor.js +0 -21
- package/lib/commonjs/utils/queryHeartbeatSeriesSamplesWithAnchor.js.map +0 -1
- package/lib/commonjs/utils/queryQuantitySamples.js +0 -19
- package/lib/commonjs/utils/queryQuantitySamples.js.map +0 -1
- package/lib/commonjs/utils/queryQuantitySamplesWithAnchor.js +0 -23
- package/lib/commonjs/utils/queryQuantitySamplesWithAnchor.js.map +0 -1
- package/lib/commonjs/utils/querySources.js +0 -14
- package/lib/commonjs/utils/querySources.js.map +0 -1
- package/lib/commonjs/utils/queryStateOfMindSamples.js +0 -22
- package/lib/commonjs/utils/queryStateOfMindSamples.js.map +0 -1
- package/lib/commonjs/utils/queryStatisticsCollectionForQuantity.js +0 -16
- package/lib/commonjs/utils/queryStatisticsCollectionForQuantity.js.map +0 -1
- package/lib/commonjs/utils/queryStatisticsForQuantity.js +0 -29
- package/lib/commonjs/utils/queryStatisticsForQuantity.js.map +0 -1
- package/lib/commonjs/utils/queryWorkoutSamplesWithAnchor.js +0 -26
- package/lib/commonjs/utils/queryWorkoutSamplesWithAnchor.js.map +0 -1
- package/lib/commonjs/utils/queryWorkouts.js +0 -22
- package/lib/commonjs/utils/queryWorkouts.js.map +0 -1
- package/lib/commonjs/utils/requestAuthorization.js +0 -22
- package/lib/commonjs/utils/requestAuthorization.js.map +0 -1
- package/lib/commonjs/utils/saveCategorySample.js +0 -20
- package/lib/commonjs/utils/saveCategorySample.js.map +0 -1
- package/lib/commonjs/utils/saveCorrelationSample.js +0 -35
- package/lib/commonjs/utils/saveCorrelationSample.js.map +0 -1
- package/lib/commonjs/utils/saveQuantitySample.js +0 -16
- package/lib/commonjs/utils/saveQuantitySample.js.map +0 -1
- package/lib/commonjs/utils/saveStateOfMindSample.js +0 -17
- package/lib/commonjs/utils/saveStateOfMindSample.js.map +0 -1
- package/lib/commonjs/utils/saveWorkoutRoute.js +0 -26
- package/lib/commonjs/utils/saveWorkoutRoute.js.map +0 -1
- package/lib/commonjs/utils/saveWorkoutSample.js +0 -36
- package/lib/commonjs/utils/saveWorkoutSample.js.map +0 -1
- package/lib/commonjs/utils/serializeDate.js +0 -9
- package/lib/commonjs/utils/serializeDate.js.map +0 -1
- package/lib/commonjs/utils/serializeDate.test.js +0 -17
- package/lib/commonjs/utils/serializeDate.test.js.map +0 -1
- package/lib/commonjs/utils/startWatchApp.js +0 -11
- package/lib/commonjs/utils/startWatchApp.js.map +0 -1
- package/lib/commonjs/utils/subscribeToChanges.js +0 -27
- package/lib/commonjs/utils/subscribeToChanges.js.map +0 -1
- package/lib/module/hooks/useHealthkitAuthorization.js +0 -32
- package/lib/module/hooks/useHealthkitAuthorization.js.map +0 -1
- package/lib/module/hooks/useHealthkitAuthorization.test.js +0 -68
- package/lib/module/hooks/useHealthkitAuthorization.test.js.map +0 -1
- package/lib/module/hooks/useIsHealthDataAvailable.js +0 -21
- package/lib/module/hooks/useIsHealthDataAvailable.js.map +0 -1
- package/lib/module/hooks/useIsHealthDataAvailable.test.js +0 -37
- package/lib/module/hooks/useIsHealthDataAvailable.test.js.map +0 -1
- package/lib/module/hooks/useMostRecentCategorySample.js +0 -16
- package/lib/module/hooks/useMostRecentCategorySample.js.map +0 -1
- package/lib/module/hooks/useMostRecentQuantitySample.js +0 -30
- package/lib/module/hooks/useMostRecentQuantitySample.js.map +0 -1
- package/lib/module/hooks/useMostRecentWorkout.js +0 -41
- package/lib/module/hooks/useMostRecentWorkout.js.map +0 -1
- package/lib/module/hooks/useSources.js +0 -15
- package/lib/module/hooks/useSources.js.map +0 -1
- package/lib/module/hooks/useStatisticsForQuantity.js +0 -21
- package/lib/module/hooks/useStatisticsForQuantity.js.map +0 -1
- package/lib/module/hooks/useSubscribeToChanges.js +0 -21
- package/lib/module/hooks/useSubscribeToChanges.js.map +0 -1
- package/lib/module/index.ios.js +0 -209
- package/lib/module/index.ios.js.map +0 -1
- package/lib/module/index.js +0 -4
- package/lib/module/index.js.map +0 -1
- package/lib/module/index.native.js +0 -160
- package/lib/module/index.native.js.map +0 -1
- package/lib/module/index.web.js +0 -4
- package/lib/module/index.web.js.map +0 -1
- package/lib/module/native-types.js +0 -1606
- package/lib/module/native-types.js.map +0 -1
- package/lib/module/test-setup.js +0 -54
- package/lib/module/test-setup.js.map +0 -1
- package/lib/module/test-utils.js +0 -11
- package/lib/module/test-utils.js.map +0 -1
- package/lib/module/types.js +0 -67
- package/lib/module/types.js.map +0 -1
- package/lib/module/utils/deleteQuantitySample.js +0 -4
- package/lib/module/utils/deleteQuantitySample.js.map +0 -1
- package/lib/module/utils/deleteSamples.js +0 -11
- package/lib/module/utils/deleteSamples.js.map +0 -1
- package/lib/module/utils/deleteWorkoutSample.js +0 -4
- package/lib/module/utils/deleteWorkoutSample.js.map +0 -1
- package/lib/module/utils/deserializeCategorySample.js +0 -7
- package/lib/module/utils/deserializeCategorySample.js.map +0 -1
- package/lib/module/utils/deserializeCategorySample.test.js +0 -22
- package/lib/module/utils/deserializeCategorySample.test.js.map +0 -1
- package/lib/module/utils/deserializeCorrelation.js +0 -19
- package/lib/module/utils/deserializeCorrelation.js.map +0 -1
- package/lib/module/utils/deserializeHeartbeatSeriesSample.js +0 -9
- package/lib/module/utils/deserializeHeartbeatSeriesSample.js.map +0 -1
- package/lib/module/utils/deserializeSample.js +0 -9
- package/lib/module/utils/deserializeSample.js.map +0 -1
- package/lib/module/utils/deserializeWorkout.js +0 -9
- package/lib/module/utils/deserializeWorkout.js.map +0 -1
- package/lib/module/utils/ensureMetadata.js +0 -5
- package/lib/module/utils/ensureMetadata.js.map +0 -1
- package/lib/module/utils/ensureTotals.js +0 -5
- package/lib/module/utils/ensureTotals.js.map +0 -1
- package/lib/module/utils/ensureUnit.js +0 -10
- package/lib/module/utils/ensureUnit.js.map +0 -1
- package/lib/module/utils/getDateOfBirth.js +0 -7
- package/lib/module/utils/getDateOfBirth.js.map +0 -1
- package/lib/module/utils/getMostRecentCategorySample.js +0 -10
- package/lib/module/utils/getMostRecentCategorySample.js.map +0 -1
- package/lib/module/utils/getMostRecentQuantitySample.js +0 -14
- package/lib/module/utils/getMostRecentQuantitySample.js.map +0 -1
- package/lib/module/utils/getMostRecentWorkout.js +0 -12
- package/lib/module/utils/getMostRecentWorkout.js.map +0 -1
- package/lib/module/utils/getPreferredUnit.js +0 -7
- package/lib/module/utils/getPreferredUnit.js.map +0 -1
- package/lib/module/utils/getPreferredUnits.js +0 -7
- package/lib/module/utils/getPreferredUnits.js.map +0 -1
- package/lib/module/utils/getPreferredUnitsTyped.js +0 -26
- package/lib/module/utils/getPreferredUnitsTyped.js.map +0 -1
- package/lib/module/utils/getRequestStatusForAuthorization.js +0 -14
- package/lib/module/utils/getRequestStatusForAuthorization.js.map +0 -1
- package/lib/module/utils/getWorkoutPlanById.js +0 -6
- package/lib/module/utils/getWorkoutPlanById.js.map +0 -1
- package/lib/module/utils/prepareOptions.js +0 -18
- package/lib/module/utils/prepareOptions.js.map +0 -1
- package/lib/module/utils/queryCategorySamples.js +0 -10
- package/lib/module/utils/queryCategorySamples.js.map +0 -1
- package/lib/module/utils/queryCategorySamplesWithAnchor.js +0 -14
- package/lib/module/utils/queryCategorySamplesWithAnchor.js.map +0 -1
- package/lib/module/utils/queryCorrelationSamples.js +0 -10
- package/lib/module/utils/queryCorrelationSamples.js.map +0 -1
- package/lib/module/utils/queryHeartbeatSeriesSamples.js +0 -10
- package/lib/module/utils/queryHeartbeatSeriesSamples.js.map +0 -1
- package/lib/module/utils/queryHeartbeatSeriesSamplesWithAnchor.js +0 -14
- package/lib/module/utils/queryHeartbeatSeriesSamplesWithAnchor.js.map +0 -1
- package/lib/module/utils/queryQuantitySamples.js +0 -12
- package/lib/module/utils/queryQuantitySamples.js.map +0 -1
- package/lib/module/utils/queryQuantitySamplesWithAnchor.js +0 -16
- package/lib/module/utils/queryQuantitySamplesWithAnchor.js.map +0 -1
- package/lib/module/utils/querySources.js +0 -7
- package/lib/module/utils/querySources.js.map +0 -1
- package/lib/module/utils/queryStateOfMindSamples.js +0 -14
- package/lib/module/utils/queryStateOfMindSamples.js.map +0 -1
- package/lib/module/utils/queryStatisticsCollectionForQuantity.js +0 -9
- package/lib/module/utils/queryStatisticsCollectionForQuantity.js.map +0 -1
- package/lib/module/utils/queryStatisticsForQuantity.js +0 -22
- package/lib/module/utils/queryStatisticsForQuantity.js.map +0 -1
- package/lib/module/utils/queryWorkoutSamplesWithAnchor.js +0 -19
- package/lib/module/utils/queryWorkoutSamplesWithAnchor.js.map +0 -1
- package/lib/module/utils/queryWorkouts.js +0 -15
- package/lib/module/utils/queryWorkouts.js.map +0 -1
- package/lib/module/utils/requestAuthorization.js +0 -15
- package/lib/module/utils/requestAuthorization.js.map +0 -1
- package/lib/module/utils/saveCategorySample.js +0 -13
- package/lib/module/utils/saveCategorySample.js.map +0 -1
- package/lib/module/utils/saveCorrelationSample.js +0 -28
- package/lib/module/utils/saveCorrelationSample.js.map +0 -1
- package/lib/module/utils/saveQuantitySample.js +0 -9
- package/lib/module/utils/saveQuantitySample.js.map +0 -1
- package/lib/module/utils/saveStateOfMindSample.js +0 -10
- package/lib/module/utils/saveStateOfMindSample.js.map +0 -1
- package/lib/module/utils/saveWorkoutRoute.js +0 -19
- package/lib/module/utils/saveWorkoutRoute.js.map +0 -1
- package/lib/module/utils/saveWorkoutSample.js +0 -29
- package/lib/module/utils/saveWorkoutSample.js.map +0 -1
- package/lib/module/utils/serializeDate.js +0 -3
- package/lib/module/utils/serializeDate.js.map +0 -1
- package/lib/module/utils/serializeDate.test.js +0 -14
- package/lib/module/utils/serializeDate.test.js.map +0 -1
- package/lib/module/utils/startWatchApp.js +0 -4
- package/lib/module/utils/startWatchApp.js.map +0 -1
- package/lib/module/utils/subscribeToChanges.js +0 -20
- package/lib/module/utils/subscribeToChanges.js.map +0 -1
- package/lib/typescript/example-expo/App.d.ts +0 -2
- package/lib/typescript/src/hooks/useHealthkitAuthorization.d.ts +0 -8
- package/lib/typescript/src/hooks/useHealthkitAuthorization.test.d.ts +0 -1
- package/lib/typescript/src/hooks/useIsHealthDataAvailable.d.ts +0 -7
- package/lib/typescript/src/hooks/useIsHealthDataAvailable.test.d.ts +0 -1
- package/lib/typescript/src/hooks/useMostRecentCategorySample.d.ts +0 -7
- package/lib/typescript/src/hooks/useMostRecentQuantitySample.d.ts +0 -7
- package/lib/typescript/src/hooks/useMostRecentWorkout.d.ts +0 -10
- package/lib/typescript/src/hooks/useSources.d.ts +0 -3
- package/lib/typescript/src/hooks/useStatisticsForQuantity.d.ts +0 -4
- package/lib/typescript/src/hooks/useSubscribeToChanges.d.ts +0 -3
- package/lib/typescript/src/index.d.ts +0 -3
- package/lib/typescript/src/index.ios.d.ts +0 -198
- package/lib/typescript/src/index.native.d.ts +0 -41
- package/lib/typescript/src/index.web.d.ts +0 -3
- package/lib/typescript/src/native-types.d.ts +0 -1764
- package/lib/typescript/src/test-setup.d.ts +0 -1
- package/lib/typescript/src/test-utils.d.ts +0 -2
- package/lib/typescript/src/types.d.ts +0 -111
- package/lib/typescript/src/utils/deleteQuantitySample.d.ts +0 -4
- package/lib/typescript/src/utils/deleteSamples.d.ts +0 -8
- package/lib/typescript/src/utils/deleteWorkoutSample.d.ts +0 -3
- package/lib/typescript/src/utils/deserializeCategorySample.d.ts +0 -4
- package/lib/typescript/src/utils/deserializeCategorySample.test.d.ts +0 -1
- package/lib/typescript/src/utils/deserializeCorrelation.d.ts +0 -4
- package/lib/typescript/src/utils/deserializeHeartbeatSeriesSample.d.ts +0 -4
- package/lib/typescript/src/utils/deserializeSample.d.ts +0 -4
- package/lib/typescript/src/utils/deserializeWorkout.d.ts +0 -4
- package/lib/typescript/src/utils/ensureMetadata.d.ts +0 -2
- package/lib/typescript/src/utils/ensureTotals.d.ts +0 -2
- package/lib/typescript/src/utils/ensureUnit.d.ts +0 -3
- package/lib/typescript/src/utils/getDateOfBirth.d.ts +0 -2
- package/lib/typescript/src/utils/getMostRecentCategorySample.d.ts +0 -4
- package/lib/typescript/src/utils/getMostRecentQuantitySample.d.ts +0 -4
- package/lib/typescript/src/utils/getMostRecentWorkout.d.ts +0 -5
- package/lib/typescript/src/utils/getPreferredUnit.d.ts +0 -4
- package/lib/typescript/src/utils/getPreferredUnits.d.ts +0 -4
- package/lib/typescript/src/utils/getPreferredUnitsTyped.d.ts +0 -9
- package/lib/typescript/src/utils/getRequestStatusForAuthorization.d.ts +0 -3
- package/lib/typescript/src/utils/getWorkoutPlanById.d.ts +0 -5
- package/lib/typescript/src/utils/prepareOptions.d.ts +0 -9
- package/lib/typescript/src/utils/queryCategorySamples.d.ts +0 -5
- package/lib/typescript/src/utils/queryCategorySamplesWithAnchor.d.ts +0 -10
- package/lib/typescript/src/utils/queryCorrelationSamples.d.ts +0 -5
- package/lib/typescript/src/utils/queryHeartbeatSeriesSamples.d.ts +0 -10
- package/lib/typescript/src/utils/queryHeartbeatSeriesSamplesWithAnchor.d.ts +0 -10
- package/lib/typescript/src/utils/queryQuantitySamples.d.ts +0 -7
- package/lib/typescript/src/utils/queryQuantitySamplesWithAnchor.d.ts +0 -12
- package/lib/typescript/src/utils/querySources.d.ts +0 -4
- package/lib/typescript/src/utils/queryStateOfMindSamples.d.ts +0 -7
- package/lib/typescript/src/utils/queryStatisticsCollectionForQuantity.d.ts +0 -3
- package/lib/typescript/src/utils/queryStatisticsForQuantity.d.ts +0 -14
- package/lib/typescript/src/utils/queryWorkoutSamplesWithAnchor.d.ts +0 -9
- package/lib/typescript/src/utils/queryWorkouts.d.ts +0 -4
- package/lib/typescript/src/utils/requestAuthorization.d.ts +0 -4
- package/lib/typescript/src/utils/saveCategorySample.d.ts +0 -11
- package/lib/typescript/src/utils/saveCorrelationSample.d.ts +0 -8
- package/lib/typescript/src/utils/saveQuantitySample.d.ts +0 -7
- package/lib/typescript/src/utils/saveStateOfMindSample.d.ts +0 -11
- package/lib/typescript/src/utils/saveWorkoutRoute.d.ts +0 -3
- package/lib/typescript/src/utils/saveWorkoutSample.d.ts +0 -11
- package/lib/typescript/src/utils/serializeDate.d.ts +0 -2
- package/lib/typescript/src/utils/serializeDate.test.d.ts +0 -1
- package/lib/typescript/src/utils/startWatchApp.d.ts +0 -3
- package/lib/typescript/src/utils/subscribeToChanges.d.ts +0 -3
- package/src/index.ios.tsx +0 -292
- package/src/index.native.tsx +0 -233
- package/src/index.tsx +0 -5
- package/src/index.web.tsx +0 -5
- package/src/native-types.ts +0 -2471
- package/src/types.ts +0 -156
- package/src/utils/deleteQuantitySample.ts +0 -14
- package/src/utils/deleteSamples.ts +0 -23
- package/src/utils/deleteWorkoutSample.ts +0 -7
- package/src/utils/deserializeCategorySample.test.ts +0 -24
- package/src/utils/deserializeCategorySample.ts +0 -12
- package/src/utils/deserializeCorrelation.ts +0 -28
- package/src/utils/deserializeHeartbeatSeriesSample.ts +0 -12
- package/src/utils/deserializeSample.ts +0 -17
- package/src/utils/deserializeWorkout.ts +0 -14
- package/src/utils/ensureMetadata.ts +0 -5
- package/src/utils/ensureTotals.ts +0 -5
- package/src/utils/ensureUnit.ts +0 -19
- package/src/utils/getDateOfBirth.ts +0 -8
- package/src/utils/getPreferredUnits.ts +0 -14
- package/src/utils/getPreferredUnitsTyped.ts +0 -38
- package/src/utils/getRequestStatusForAuthorization.ts +0 -21
- package/src/utils/getWorkoutPlanById.ts +0 -7
- package/src/utils/prepareOptions.ts +0 -19
- package/src/utils/queryCategorySamples.ts +0 -29
- package/src/utils/queryCategorySamplesWithAnchor.ts +0 -39
- package/src/utils/queryCorrelationSamples.ts +0 -29
- package/src/utils/queryHeartbeatSeriesSamples.ts +0 -29
- package/src/utils/queryHeartbeatSeriesSamplesWithAnchor.ts +0 -33
- package/src/utils/queryQuantitySamples.ts +0 -38
- package/src/utils/queryQuantitySamplesWithAnchor.ts +0 -46
- package/src/utils/querySources.ts +0 -21
- package/src/utils/queryStateOfMindSamples.ts +0 -14
- package/src/utils/queryStatisticsCollectionForQuantity.ts +0 -38
- package/src/utils/queryStatisticsForQuantity.ts +0 -38
- package/src/utils/queryWorkoutSamplesWithAnchor.ts +0 -46
- package/src/utils/queryWorkouts.ts +0 -28
- package/src/utils/requestAuthorization.ts +0 -19
- package/src/utils/saveCategorySample.ts +0 -31
- package/src/utils/saveCorrelationSample.ts +0 -43
- package/src/utils/saveQuantitySample.ts +0 -29
- package/src/utils/saveStateOfMindSample.ts +0 -38
- package/src/utils/saveWorkoutRoute.ts +0 -21
- package/src/utils/saveWorkoutSample.ts +0 -42
- package/src/utils/serializeDate.test.ts +0 -16
- package/src/utils/serializeDate.ts +0 -5
- package/src/utils/startWatchApp.ts +0 -7
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a quantity type identifier.
|
|
3
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier Apple Docs HKQuantityTypeIdentifier}
|
|
4
|
+
*/
|
|
5
|
+
export type QuantityTypeIdentifierReadOnly =
|
|
6
|
+
/**
|
|
7
|
+
* Walking Heart Rate Average
|
|
8
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingheartrateaverage Apple Docs HKQuantityTypeIdentifierWalkingHeartRateAverage}
|
|
9
|
+
* @since iOS 11.0
|
|
10
|
+
*/
|
|
11
|
+
'HKQuantityTypeIdentifierWalkingHeartRateAverage'
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Represents a quantity type identifier.
|
|
15
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifier Apple Docs HKQuantityTypeIdentifier}
|
|
16
|
+
*/
|
|
17
|
+
export type QuantityTypeIdentifierWriteable =
|
|
18
|
+
/**
|
|
19
|
+
* Body Mass Index
|
|
20
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymassindex Apple Docs HKQuantityTypeIdentifierBodyMassIndex}
|
|
21
|
+
*/
|
|
22
|
+
| 'HKQuantityTypeIdentifierBodyMassIndex'
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Body Fat Percentage
|
|
26
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodyfatpercentage Apple Docs HKQuantityTypeIdentifierBodyFatPercentage}
|
|
27
|
+
*/
|
|
28
|
+
| 'HKQuantityTypeIdentifierBodyFatPercentage'
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Height
|
|
32
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheight Apple Docs HKQuantityTypeIdentifierHeight}
|
|
33
|
+
*/
|
|
34
|
+
| 'HKQuantityTypeIdentifierHeight'
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Body Mass
|
|
38
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodymass Apple Docs HKQuantityTypeIdentifierBodyMass}
|
|
39
|
+
*/
|
|
40
|
+
| 'HKQuantityTypeIdentifierBodyMass'
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Lean Body Mass
|
|
44
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierleanbodymass Apple Docs HKQuantityTypeIdentifierLeanBodyMass}
|
|
45
|
+
*/
|
|
46
|
+
| 'HKQuantityTypeIdentifierLeanBodyMass'
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Waist Circumference
|
|
50
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwaistcircumference Apple Docs HKQuantityTypeIdentifierWaistCircumference}
|
|
51
|
+
*/
|
|
52
|
+
| 'HKQuantityTypeIdentifierWaistCircumference'
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Step Count
|
|
56
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstepcount Apple Docs HKQuantityTypeIdentifierStepCount}
|
|
57
|
+
*/
|
|
58
|
+
| 'HKQuantityTypeIdentifierStepCount'
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Distance Walking Running
|
|
62
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewalkingrunning Apple Docs HKQuantityTypeIdentifierDistanceWalkingRunning}
|
|
63
|
+
*/
|
|
64
|
+
| 'HKQuantityTypeIdentifierDistanceWalkingRunning'
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Distance Cycling
|
|
68
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancecycling Apple Docs HKQuantityTypeIdentifierDistanceCycling}
|
|
69
|
+
*/
|
|
70
|
+
| 'HKQuantityTypeIdentifierDistanceCycling'
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Distance Wheelchair
|
|
74
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancewheelchair Apple Docs HKQuantityTypeIdentifierDistanceWheelchair}
|
|
75
|
+
*/
|
|
76
|
+
| 'HKQuantityTypeIdentifierDistanceWheelchair'
|
|
77
|
+
/**
|
|
78
|
+
* Basal Energy Burned
|
|
79
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalenergyburned Apple Docs HKQuantityTypeIdentifierBasalEnergyBurned}
|
|
80
|
+
*/
|
|
81
|
+
| 'HKQuantityTypeIdentifierBasalEnergyBurned'
|
|
82
|
+
/**
|
|
83
|
+
* Active Energy Burned
|
|
84
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieractiveenergyburned Apple Docs HKQuantityTypeIdentifierActiveEnergyBurned}
|
|
85
|
+
*/
|
|
86
|
+
| 'HKQuantityTypeIdentifierActiveEnergyBurned'
|
|
87
|
+
/**
|
|
88
|
+
* Flights Climbed
|
|
89
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierflightsclimbed Apple Docs HKQuantityTypeIdentifierFlightsClimbed}
|
|
90
|
+
*/
|
|
91
|
+
| 'HKQuantityTypeIdentifierFlightsClimbed'
|
|
92
|
+
/**
|
|
93
|
+
* Nike Fuel
|
|
94
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernikefuel Apple Docs HKQuantityTypeIdentifierNikeFuel}
|
|
95
|
+
*/
|
|
96
|
+
| 'HKQuantityTypeIdentifierNikeFuel'
|
|
97
|
+
/**
|
|
98
|
+
* Apple Exercise Time
|
|
99
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierappleexercisetime Apple Docs HKQuantityTypeIdentifierAppleExerciseTime}
|
|
100
|
+
*/
|
|
101
|
+
| 'HKQuantityTypeIdentifierAppleExerciseTime'
|
|
102
|
+
/**
|
|
103
|
+
* Push Count
|
|
104
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpushcount Apple Docs HKQuantityTypeIdentifierPushCount}
|
|
105
|
+
*/
|
|
106
|
+
| 'HKQuantityTypeIdentifierPushCount'
|
|
107
|
+
/**
|
|
108
|
+
* Distance Swimming
|
|
109
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistanceswimming Apple Docs HKQuantityTypeIdentifierDistanceSwimming}
|
|
110
|
+
*/
|
|
111
|
+
| 'HKQuantityTypeIdentifierDistanceSwimming'
|
|
112
|
+
/**
|
|
113
|
+
* Swimming Stroke Count
|
|
114
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierswimmingstrokecount Apple Docs HKQuantityTypeIdentifierSwimmingStrokeCount}
|
|
115
|
+
*/
|
|
116
|
+
| 'HKQuantityTypeIdentifierSwimmingStrokeCount'
|
|
117
|
+
/**
|
|
118
|
+
* VO2 Max
|
|
119
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiervo2max Apple Docs HKQuantityTypeIdentifierVO2Max}
|
|
120
|
+
*/
|
|
121
|
+
| 'HKQuantityTypeIdentifierVO2Max'
|
|
122
|
+
/**
|
|
123
|
+
* Distance Downhill Snow Sports
|
|
124
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdistancedownhillsnowsports Apple Docs HKQuantityTypeIdentifierDistanceDownhillSnowSports}
|
|
125
|
+
*/
|
|
126
|
+
| 'HKQuantityTypeIdentifierDistanceDownhillSnowSports'
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Apple Stand Time
|
|
130
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplestandtime Apple Docs HKQuantityTypeIdentifierAppleStandTime}
|
|
131
|
+
*/
|
|
132
|
+
| 'HKQuantityTypeIdentifierAppleStandTime'
|
|
133
|
+
// Vitals
|
|
134
|
+
/**
|
|
135
|
+
* Heart Rate
|
|
136
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartrate Apple Docs HKQuantityTypeIdentifierHeartRate}
|
|
137
|
+
*/
|
|
138
|
+
| 'HKQuantityTypeIdentifierHeartRate'
|
|
139
|
+
/**
|
|
140
|
+
* Body Temperature
|
|
141
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbodytemperature Apple Docs HKQuantityTypeIdentifierBodyTemperature}
|
|
142
|
+
*/
|
|
143
|
+
| 'HKQuantityTypeIdentifierBodyTemperature'
|
|
144
|
+
/**
|
|
145
|
+
* Basal Body Temperature
|
|
146
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbasalbodytemperature Apple Docs HKQuantityTypeIdentifierBasalBodyTemperature}
|
|
147
|
+
*/
|
|
148
|
+
| 'HKQuantityTypeIdentifierBasalBodyTemperature'
|
|
149
|
+
/**
|
|
150
|
+
* Blood Pressure Systolic
|
|
151
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressuresystolic Apple Docs HKQuantityTypeIdentifierBloodPressureSystolic}
|
|
152
|
+
*/
|
|
153
|
+
| 'HKQuantityTypeIdentifierBloodPressureSystolic'
|
|
154
|
+
/**
|
|
155
|
+
* Blood Pressure Diastolic
|
|
156
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodpressurediastolic Apple Docs HKQuantityTypeIdentifierBloodPressureDiastolic}
|
|
157
|
+
*/
|
|
158
|
+
| 'HKQuantityTypeIdentifierBloodPressureDiastolic'
|
|
159
|
+
/**
|
|
160
|
+
* Respiratory Rate
|
|
161
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrespiratoryrate Apple Docs HKQuantityTypeIdentifierRespiratoryRate}
|
|
162
|
+
*/
|
|
163
|
+
| 'HKQuantityTypeIdentifierRespiratoryRate'
|
|
164
|
+
/**
|
|
165
|
+
* Resting Heart Rate
|
|
166
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrestingheartrate Apple Docs HKQuantityTypeIdentifierRestingHeartRate}
|
|
167
|
+
*/
|
|
168
|
+
| 'HKQuantityTypeIdentifierRestingHeartRate'
|
|
169
|
+
/**
|
|
170
|
+
* Heart Rate Variability SDNN
|
|
171
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartratevariabilitysdnn Apple Docs HKQuantityTypeIdentifierHeartRateVariabilitySDNN}
|
|
172
|
+
* @since iOS 11.0
|
|
173
|
+
*/
|
|
174
|
+
| 'HKQuantityTypeIdentifierHeartRateVariabilitySDNN'
|
|
175
|
+
/**
|
|
176
|
+
* Oxygen Saturation
|
|
177
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieroxygensaturation Apple Docs HKQuantityTypeIdentifierOxygenSaturation}
|
|
178
|
+
* @since iOS 8.0
|
|
179
|
+
*/
|
|
180
|
+
| 'HKQuantityTypeIdentifierOxygenSaturation'
|
|
181
|
+
/**
|
|
182
|
+
* Peripheral Perfusion Index
|
|
183
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierperipheralperfusionindex Apple Docs HKQuantityTypeIdentifierPeripheralPerfusionIndex}
|
|
184
|
+
* @since iOS 8.0
|
|
185
|
+
*/
|
|
186
|
+
| 'HKQuantityTypeIdentifierPeripheralPerfusionIndex'
|
|
187
|
+
/**
|
|
188
|
+
* Blood Glucose
|
|
189
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodglucose Apple Docs HKQuantityTypeIdentifierBloodGlucose}
|
|
190
|
+
*/
|
|
191
|
+
| 'HKQuantityTypeIdentifierBloodGlucose'
|
|
192
|
+
|
|
193
|
+
/**
|
|
194
|
+
* Number Of Times Fallen
|
|
195
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberoftimesfallen Apple Docs HKQuantityTypeIdentifierNumberOfTimesFallen}
|
|
196
|
+
*/
|
|
197
|
+
| 'HKQuantityTypeIdentifierNumberOfTimesFallen'
|
|
198
|
+
|
|
199
|
+
/**
|
|
200
|
+
* Electrodermal Activity
|
|
201
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierelectrodermalactivity Apple Docs HKQuantityTypeIdentifierElectrodermalActivity}
|
|
202
|
+
*/
|
|
203
|
+
| 'HKQuantityTypeIdentifierElectrodermalActivity'
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Inhaler Usage
|
|
207
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinhalerusage Apple Docs HKQuantityTypeIdentifierInhalerUsage}
|
|
208
|
+
* @since iOS 8
|
|
209
|
+
*/
|
|
210
|
+
| 'HKQuantityTypeIdentifierInhalerUsage'
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Insulin Delivery
|
|
214
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierinsulindelivery Apple Docs HKQuantityTypeIdentifierInsulinDelivery}
|
|
215
|
+
* @since iOS 11
|
|
216
|
+
*/
|
|
217
|
+
| 'HKQuantityTypeIdentifierInsulinDelivery'
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Blood Alcohol Content
|
|
221
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierbloodalcoholcontent Apple Docs HKQuantityTypeIdentifierBloodAlcoholContent}
|
|
222
|
+
* @since iOS 8
|
|
223
|
+
*/
|
|
224
|
+
| 'HKQuantityTypeIdentifierBloodAlcoholContent'
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Forced Vital Capacity
|
|
228
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedvitalcapacity Apple Docs HKQuantityTypeIdentifierForcedVitalCapacity}
|
|
229
|
+
*/
|
|
230
|
+
| 'HKQuantityTypeIdentifierForcedVitalCapacity'
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Forced Expiratory Volume1
|
|
234
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierforcedexpiratoryvolume1 Apple Docs HKQuantityTypeIdentifierForcedExpiratoryVolume1}
|
|
235
|
+
* @since iOS 8
|
|
236
|
+
*/
|
|
237
|
+
| 'HKQuantityTypeIdentifierForcedExpiratoryVolume1'
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Peak Expiratory Flow Rate
|
|
241
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierpeakexpiratoryflowrate Apple Docs HKQuantityTypeIdentifierPeakExpiratoryFlowRate}
|
|
242
|
+
* @since iOS 8
|
|
243
|
+
*/
|
|
244
|
+
| 'HKQuantityTypeIdentifierPeakExpiratoryFlowRate'
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Environmental Audio Exposure
|
|
248
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalaudioexposure Apple Docs HKQuantityTypeIdentifierEnvironmentalAudioExposure}
|
|
249
|
+
* @since iOS 13
|
|
250
|
+
*/
|
|
251
|
+
| 'HKQuantityTypeIdentifierEnvironmentalAudioExposure'
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Headphone Audio Exposure
|
|
255
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheadphoneaudioexposure Apple Docs HKQuantityTypeIdentifierHeadphoneAudioExposure}
|
|
256
|
+
* @since iOS 13
|
|
257
|
+
*/
|
|
258
|
+
| 'HKQuantityTypeIdentifierHeadphoneAudioExposure'
|
|
259
|
+
|
|
260
|
+
// Nutrition
|
|
261
|
+
/**
|
|
262
|
+
* Dietary Fat Total
|
|
263
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfattotal Apple Docs HKQuantityTypeIdentifierDietaryFatTotal}
|
|
264
|
+
* @since iOS 8
|
|
265
|
+
*/
|
|
266
|
+
| 'HKQuantityTypeIdentifierDietaryFatTotal'
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Dietary Fat Polyunsaturated
|
|
270
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatpolyunsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatPolyunsaturated}
|
|
271
|
+
*/
|
|
272
|
+
| 'HKQuantityTypeIdentifierDietaryFatPolyunsaturated'
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Dietary Fat Monounsaturated
|
|
276
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatmonounsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatMonounsaturated}
|
|
277
|
+
*/
|
|
278
|
+
| 'HKQuantityTypeIdentifierDietaryFatMonounsaturated'
|
|
279
|
+
/**
|
|
280
|
+
* Dietary Fat Saturated
|
|
281
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfatsaturated Apple Docs HKQuantityTypeIdentifierDietaryFatSaturated}
|
|
282
|
+
*/
|
|
283
|
+
| 'HKQuantityTypeIdentifierDietaryFatSaturated'
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Dietary Cholesterol
|
|
287
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycholesterol Apple Docs HKQuantityTypeIdentifierDietaryCholesterol}
|
|
288
|
+
*/
|
|
289
|
+
| 'HKQuantityTypeIdentifierDietaryCholesterol'
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* Dietary Sodium
|
|
293
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysodium Apple Docs HKQuantityTypeIdentifierDietarySodium}
|
|
294
|
+
*/
|
|
295
|
+
| 'HKQuantityTypeIdentifierDietarySodium'
|
|
296
|
+
|
|
297
|
+
/**
|
|
298
|
+
* Dietary Carbohydrates
|
|
299
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycarbohydrates Apple Docs HKQuantityTypeIdentifierDietaryCarbohydrates}
|
|
300
|
+
*/
|
|
301
|
+
| 'HKQuantityTypeIdentifierDietaryCarbohydrates'
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* Dietary Fiber
|
|
305
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfiber Apple Docs HKQuantityTypeIdentifierDietaryFiber}
|
|
306
|
+
*/
|
|
307
|
+
| 'HKQuantityTypeIdentifierDietaryFiber'
|
|
308
|
+
/**
|
|
309
|
+
* Dietary Sugar
|
|
310
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarysugar Apple Docs HKQuantityTypeIdentifierDietarySugar}
|
|
311
|
+
*/
|
|
312
|
+
| 'HKQuantityTypeIdentifierDietarySugar'
|
|
313
|
+
|
|
314
|
+
/**
|
|
315
|
+
* Dietary Energy Consumed
|
|
316
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryenergyconsumed Apple Docs HKQuantityTypeIdentifierDietaryEnergyConsumed}
|
|
317
|
+
*/
|
|
318
|
+
| 'HKQuantityTypeIdentifierDietaryEnergyConsumed'
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* Dietary Protein
|
|
322
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryprotein Apple Docs HKQuantityTypeIdentifierDietaryProtein}
|
|
323
|
+
*/
|
|
324
|
+
| 'HKQuantityTypeIdentifierDietaryProtein'
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Dietary Vitamin A
|
|
328
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamina Apple Docs HKQuantityTypeIdentifierDietaryVitaminA}
|
|
329
|
+
*/
|
|
330
|
+
| 'HKQuantityTypeIdentifierDietaryVitaminA'
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Dietary Vitamin B6
|
|
334
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb6 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB6}
|
|
335
|
+
*/
|
|
336
|
+
| 'HKQuantityTypeIdentifierDietaryVitaminB6'
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Dietary Vitamin B12
|
|
340
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminb12 Apple Docs HKQuantityTypeIdentifierDietaryVitaminB12}
|
|
341
|
+
*/
|
|
342
|
+
| 'HKQuantityTypeIdentifierDietaryVitaminB12'
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Dietary Vitamin C
|
|
346
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitaminc Apple Docs HKQuantityTypeIdentifierDietaryVitaminC}
|
|
347
|
+
*/
|
|
348
|
+
| 'HKQuantityTypeIdentifierDietaryVitaminC'
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* Dietary Vitamin D
|
|
352
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamind Apple Docs HKQuantityTypeIdentifierDietaryVitaminD}
|
|
353
|
+
*/
|
|
354
|
+
| 'HKQuantityTypeIdentifierDietaryVitaminD'
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Dietary Vitamin E
|
|
358
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamine Apple Docs HKQuantityTypeIdentifierDietaryVitaminE}
|
|
359
|
+
*/
|
|
360
|
+
| 'HKQuantityTypeIdentifierDietaryVitaminE'
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* Dietary Vitamin K
|
|
364
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryvitamink Apple Docs HKQuantityTypeIdentifierDietaryVitaminK}
|
|
365
|
+
*/
|
|
366
|
+
| 'HKQuantityTypeIdentifierDietaryVitaminK'
|
|
367
|
+
/**
|
|
368
|
+
* Dietary Calcium
|
|
369
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycalcium Apple Docs HKQuantityTypeIdentifierDietaryCalcium}
|
|
370
|
+
*/
|
|
371
|
+
| 'HKQuantityTypeIdentifierDietaryCalcium'
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* Dietary Iron
|
|
375
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiron Apple Docs HKQuantityTypeIdentifierDietaryIron}
|
|
376
|
+
*/
|
|
377
|
+
| 'HKQuantityTypeIdentifierDietaryIron'
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
* Dietary Thiamin
|
|
381
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarythiamin Apple Docs HKQuantityTypeIdentifierDietaryThiamin}
|
|
382
|
+
*/
|
|
383
|
+
| 'HKQuantityTypeIdentifierDietaryThiamin'
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Dietary Riboflavin
|
|
387
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryriboflavin Apple Docs HKQuantityTypeIdentifierDietaryRiboflavin}
|
|
388
|
+
*/
|
|
389
|
+
| 'HKQuantityTypeIdentifierDietaryRiboflavin'
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Dietary Niacin
|
|
393
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryniacin Apple Docs HKQuantityTypeIdentifierDietaryNiacin}
|
|
394
|
+
*/
|
|
395
|
+
| 'HKQuantityTypeIdentifierDietaryNiacin'
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Dietary Folate
|
|
399
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryfolate Apple Docs HKQuantityTypeIdentifierDietaryFolate}
|
|
400
|
+
*/
|
|
401
|
+
| 'HKQuantityTypeIdentifierDietaryFolate'
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Dietary Biotin
|
|
405
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarybiotin Apple Docs HKQuantityTypeIdentifierDietaryBiotin}
|
|
406
|
+
*/
|
|
407
|
+
| 'HKQuantityTypeIdentifierDietaryBiotin'
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Dietary Pantothenic Acid
|
|
411
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypantothenicacid Apple Docs HKQuantityTypeIdentifierDietaryPantothenicAcid}
|
|
412
|
+
*/
|
|
413
|
+
| 'HKQuantityTypeIdentifierDietaryPantothenicAcid'
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Dietary Phosphorus
|
|
417
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryphosphorus Apple Docs HKQuantityTypeIdentifierDietaryPhosphorus}
|
|
418
|
+
*/
|
|
419
|
+
| 'HKQuantityTypeIdentifierDietaryPhosphorus'
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Dietary Iodine
|
|
423
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryiodine Apple Docs HKQuantityTypeIdentifierDietaryIodine}
|
|
424
|
+
*/
|
|
425
|
+
| 'HKQuantityTypeIdentifierDietaryIodine'
|
|
426
|
+
/**
|
|
427
|
+
* Dietary Magnesium
|
|
428
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymagnesium Apple Docs HKQuantityTypeIdentifierDietaryMagnesium}
|
|
429
|
+
*/
|
|
430
|
+
| 'HKQuantityTypeIdentifierDietaryMagnesium'
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Dietary Zinc
|
|
434
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryzinc Apple Docs HKQuantityTypeIdentifierDietaryZinc}
|
|
435
|
+
*/
|
|
436
|
+
| 'HKQuantityTypeIdentifierDietaryZinc'
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* Dietary Selenium
|
|
440
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietaryselenium Apple Docs HKQuantityTypeIdentifierDietarySelenium}
|
|
441
|
+
*/
|
|
442
|
+
| 'HKQuantityTypeIdentifierDietarySelenium'
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Dietary Copper
|
|
446
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycopper Apple Docs HKQuantityTypeIdentifierDietaryCopper}
|
|
447
|
+
*/
|
|
448
|
+
| 'HKQuantityTypeIdentifierDietaryCopper'
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* Dietary Manganese
|
|
452
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymanganese Apple Docs HKQuantityTypeIdentifierDietaryManganese}
|
|
453
|
+
*/
|
|
454
|
+
| 'HKQuantityTypeIdentifierDietaryManganese'
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* Dietary Chromium
|
|
458
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychromium Apple Docs HKQuantityTypeIdentifierDietaryChromium}
|
|
459
|
+
*/
|
|
460
|
+
| 'HKQuantityTypeIdentifierDietaryChromium'
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Dietary Molybdenum
|
|
464
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarymolybdenum Apple Docs HKQuantityTypeIdentifierDietaryMolybdenum}
|
|
465
|
+
*/
|
|
466
|
+
| 'HKQuantityTypeIdentifierDietaryMolybdenum'
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Dietary Chloride
|
|
470
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarychloride Apple Docs HKQuantityTypeIdentifierDietaryChloride}
|
|
471
|
+
* @since iOS 8
|
|
472
|
+
*/
|
|
473
|
+
| 'HKQuantityTypeIdentifierDietaryChloride'
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* Dietary Potassium
|
|
477
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarypotassium Apple Docs HKQuantityTypeIdentifierDietaryPotassium}
|
|
478
|
+
* @since iOS 8
|
|
479
|
+
*/
|
|
480
|
+
| 'HKQuantityTypeIdentifierDietaryPotassium'
|
|
481
|
+
|
|
482
|
+
/**
|
|
483
|
+
* Dietary Caffeine
|
|
484
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarycaffeine Apple Docs HKQuantityTypeIdentifierDietaryCaffeine}
|
|
485
|
+
* @since iOS 8
|
|
486
|
+
*/
|
|
487
|
+
| 'HKQuantityTypeIdentifierDietaryCaffeine'
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* Dietary Water
|
|
491
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierdietarywater Apple Docs HKQuantityTypeIdentifierDietaryWater}
|
|
492
|
+
* @since iOS 9
|
|
493
|
+
*/
|
|
494
|
+
| 'HKQuantityTypeIdentifierDietaryWater'
|
|
495
|
+
|
|
496
|
+
// Mobility
|
|
497
|
+
/**
|
|
498
|
+
* Six Minute Walk Test Distance
|
|
499
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiersixminutewalktestdistance Apple Docs HKQuantityTypeIdentifierSixMinuteWalkTestDistance}
|
|
500
|
+
* @since iOS 14
|
|
501
|
+
*/
|
|
502
|
+
| 'HKQuantityTypeIdentifierSixMinuteWalkTestDistance'
|
|
503
|
+
|
|
504
|
+
/**
|
|
505
|
+
* Walking Speed
|
|
506
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingspeed Apple Docs HKQuantityTypeIdentifierWalkingSpeed}
|
|
507
|
+
* @since iOS 14
|
|
508
|
+
*/
|
|
509
|
+
| 'HKQuantityTypeIdentifierWalkingSpeed'
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* Walking Step Length
|
|
513
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingsteplength Apple Docs HKQuantityTypeIdentifierWalkingStepLength}
|
|
514
|
+
* @since iOS 14
|
|
515
|
+
*/
|
|
516
|
+
| 'HKQuantityTypeIdentifierWalkingStepLength'
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* Walking Asymmetry Percentage
|
|
520
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingasymmetrypercentage Apple Docs HKQuantityTypeIdentifierWalkingAsymmetryPercentage}
|
|
521
|
+
* @since iOS 14
|
|
522
|
+
*/
|
|
523
|
+
| 'HKQuantityTypeIdentifierWalkingAsymmetryPercentage'
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* Walking Double Support Percentage
|
|
527
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwalkingdoublesupportpercentage Apple Docs HKQuantityTypeIdentifierWalkingDoubleSupportPercentage}
|
|
528
|
+
* @since iOS 14
|
|
529
|
+
*/
|
|
530
|
+
| 'HKQuantityTypeIdentifierWalkingDoubleSupportPercentage'
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Stair Ascent Speed
|
|
534
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairascentspeed Apple Docs HKQuantityTypeIdentifierStairAscentSpeed}
|
|
535
|
+
* @since iOS 14
|
|
536
|
+
*/
|
|
537
|
+
| 'HKQuantityTypeIdentifierStairAscentSpeed'
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* Stair Descent Speed
|
|
541
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierstairdescentspeed Apple Docs HKQuantityTypeIdentifierStairDescentSpeed}
|
|
542
|
+
* @since iOS 14
|
|
543
|
+
*/
|
|
544
|
+
| 'HKQuantityTypeIdentifierStairDescentSpeed'
|
|
545
|
+
|
|
546
|
+
/**
|
|
547
|
+
* UV Exposure
|
|
548
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieruvexposure Apple Docs HKQuantityTypeIdentifierUVExposure}
|
|
549
|
+
* @since iOS 9
|
|
550
|
+
*/
|
|
551
|
+
| 'HKQuantityTypeIdentifierUVExposure' // Scalar (Count), Discrete
|
|
552
|
+
|
|
553
|
+
/**
|
|
554
|
+
* Apple Move Time
|
|
555
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplemovetime Apple Docs HKQuantityTypeIdentifierAppleMoveTime}
|
|
556
|
+
* @since iOS 14.5
|
|
557
|
+
*/
|
|
558
|
+
| 'HKQuantityTypeIdentifierAppleMoveTime' // Time, Cumulative
|
|
559
|
+
|
|
560
|
+
/**
|
|
561
|
+
* Apple Walking Steadiness
|
|
562
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplewalkingsteadiness Apple Docs HKQuantityTypeIdentifierAppleWalkingSteadiness}
|
|
563
|
+
* @since iOS 15
|
|
564
|
+
*/
|
|
565
|
+
| 'HKQuantityTypeIdentifierAppleWalkingSteadiness' // Scalar(Percent, 0.0 - 1.0), Discrete
|
|
566
|
+
|
|
567
|
+
/**
|
|
568
|
+
* Number Of Alcoholic Beverages
|
|
569
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiernumberofalcoholicbeverages Apple Docs HKQuantityTypeIdentifierNumberOfAlcoholicBeverages}
|
|
570
|
+
* @since iOS 15
|
|
571
|
+
*/
|
|
572
|
+
| 'HKQuantityTypeIdentifierNumberOfAlcoholicBeverages' // Scalar(Count), Cumulative
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* Atrial Fibrillation Burden
|
|
576
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifieratrialfibrillationburden Apple Docs HKQuantityTypeIdentifierAtrialFibrillationBurden}
|
|
577
|
+
* @since iOS 16
|
|
578
|
+
*/
|
|
579
|
+
| 'HKQuantityTypeIdentifierAtrialFibrillationBurden' // Scalar(Percent, 0.0 - 1.0), Discrete
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* Underwater Depth
|
|
583
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierunderwaterdepth Apple Docs HKQuantityTypeIdentifierUnderwaterDepth}
|
|
584
|
+
* @since iOS 16
|
|
585
|
+
*/
|
|
586
|
+
| 'HKQuantityTypeIdentifierUnderwaterDepth'
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Water Temperature
|
|
590
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierwatertemperature Apple Docs HKQuantityTypeIdentifierWaterTemperature}
|
|
591
|
+
* @since iOS 16
|
|
592
|
+
*/
|
|
593
|
+
| 'HKQuantityTypeIdentifierWaterTemperature'
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* Apple Sleeping Wrist Temperature
|
|
597
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierapplesleepingwristtemperature Apple Docs HKQuantityTypeIdentifierAppleSleepingWristTemperature}
|
|
598
|
+
* @since iOS 17
|
|
599
|
+
*/
|
|
600
|
+
| 'HKQuantityTypeIdentifierAppleSleepingWristTemperature'
|
|
601
|
+
|
|
602
|
+
/**
|
|
603
|
+
* Time In Daylight
|
|
604
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiertimeindaylight Apple Docs HKQuantityTypeIdentifierTimeInDaylight}
|
|
605
|
+
* @since iOS 17
|
|
606
|
+
*/
|
|
607
|
+
| 'HKQuantityTypeIdentifierTimeInDaylight'
|
|
608
|
+
|
|
609
|
+
/**
|
|
610
|
+
* Physical Effort
|
|
611
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierphysicaleffort Apple Docs HKQuantityTypeIdentifierPhysicalEffort}
|
|
612
|
+
* @since iOS 17
|
|
613
|
+
*/
|
|
614
|
+
| 'HKQuantityTypeIdentifierPhysicalEffort'
|
|
615
|
+
|
|
616
|
+
/**
|
|
617
|
+
* Cycling Speed
|
|
618
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingspeed Apple Docs HKQuantityTypeIdentifierCyclingSpeed}
|
|
619
|
+
* @since iOS 17
|
|
620
|
+
*/
|
|
621
|
+
| 'HKQuantityTypeIdentifierCyclingSpeed'
|
|
622
|
+
|
|
623
|
+
/**
|
|
624
|
+
* Cycling Power
|
|
625
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingpower Apple Docs HKQuantityTypeIdentifierCyclingPower}
|
|
626
|
+
* @since iOS 17
|
|
627
|
+
*/
|
|
628
|
+
| 'HKQuantityTypeIdentifierCyclingPower'
|
|
629
|
+
|
|
630
|
+
/**
|
|
631
|
+
* Cycling Functional Threshold Power
|
|
632
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingfunctionalthresholdpower Apple Docs HKQuantityTypeIdentifierCyclingFunctionalThresholdPower}
|
|
633
|
+
* @since iOS 17
|
|
634
|
+
*/
|
|
635
|
+
| 'HKQuantityTypeIdentifierCyclingFunctionalThresholdPower'
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Cycling Cadence
|
|
639
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifiercyclingcadence Apple Docs HKQuantityTypeIdentifierCyclingCadence}
|
|
640
|
+
* @since iOS 17
|
|
641
|
+
*/
|
|
642
|
+
| 'HKQuantityTypeIdentifierCyclingCadence'
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Environmental Sound Reduction
|
|
646
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierenvironmentalsoundreduction Apple Docs HKQuantityTypeIdentifierEnvironmentalSoundReduction}
|
|
647
|
+
* @since iOS 16
|
|
648
|
+
*/
|
|
649
|
+
| 'HKQuantityTypeIdentifierEnvironmentalSoundReduction'
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* Heart Rate Recovery One Minute
|
|
653
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierheartraterecoveryoneminute Apple Docs HKQuantityTypeIdentifierHeartRateRecoveryOneMinute}
|
|
654
|
+
* @since iOS 16
|
|
655
|
+
*/
|
|
656
|
+
| 'HKQuantityTypeIdentifierHeartRateRecoveryOneMinute'
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Running Ground Contact Time
|
|
660
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunninggroundcontacttime Apple Docs HKQuantityTypeIdentifierRunningGroundContactTime}
|
|
661
|
+
* @since iOS 16
|
|
662
|
+
*/
|
|
663
|
+
| 'HKQuantityTypeIdentifierRunningGroundContactTime'
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* Running Stride Length
|
|
667
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningstridelength Apple Docs HKQuantityTypeIdentifierRunningStrideLength}
|
|
668
|
+
* @since iOS 16
|
|
669
|
+
*/
|
|
670
|
+
| 'HKQuantityTypeIdentifierRunningStrideLength'
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Running Power
|
|
674
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningpower Apple Docs HKQuantityTypeIdentifierRunningPower}
|
|
675
|
+
* @since iOS 16
|
|
676
|
+
*/
|
|
677
|
+
| 'HKQuantityTypeIdentifierRunningPower'
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Running Vertical Oscillation
|
|
681
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningverticaloscillation Apple Docs HKQuantityTypeIdentifierRunningVerticalOscillation}
|
|
682
|
+
* @since iOS 16
|
|
683
|
+
*/
|
|
684
|
+
| 'HKQuantityTypeIdentifierRunningVerticalOscillation'
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* Running Speed
|
|
688
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkquantitytypeidentifierrunningspeed Apple Docs HKQuantityTypeIdentifierRunningSpeed}
|
|
689
|
+
* @since iOS 16
|
|
690
|
+
*/
|
|
691
|
+
| 'HKQuantityTypeIdentifierRunningSpeed'
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* Cross Country Skiing Speed
|
|
695
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierCrossCountrySkiingSpeed Apple Docs HKQuantityTypeIdentifierCrossCountrySkiingSpeed}
|
|
696
|
+
* @since iOS 18
|
|
697
|
+
*/
|
|
698
|
+
| 'HKQuantityTypeIdentifierCrossCountrySkiingSpeed'
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* Cross Country Skiing Distance
|
|
702
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierDistanceCrossCountrySkiing Apple Docs HKQuantityTypeIdentifierCrossCountrySkiingDistance}
|
|
703
|
+
* @since iOS 18
|
|
704
|
+
*/
|
|
705
|
+
| 'HKQuantityTypeIdentifierDistanceCrossCountrySkiing'
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* Paddle Sports Distance
|
|
709
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierDistancePaddleSports Apple Docs HKQuantityTypeIdentifierDistancePaddleSports}
|
|
710
|
+
* @since iOS 18
|
|
711
|
+
*/
|
|
712
|
+
| 'HKQuantityTypeIdentifierDistancePaddleSports'
|
|
713
|
+
|
|
714
|
+
/**
|
|
715
|
+
* Rowing Distance
|
|
716
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierDistanceRowing Apple Docs HKQuantityTypeIdentifierDistanceRowing}
|
|
717
|
+
* @since iOS 18
|
|
718
|
+
*/
|
|
719
|
+
| 'HKQuantityTypeIdentifierDistanceRowing'
|
|
720
|
+
|
|
721
|
+
/**
|
|
722
|
+
* Skating Sports Distance
|
|
723
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierDistanceSkatingSports Apple Docs HKQuantityTypeIdentifierDistanceSkatingSports}
|
|
724
|
+
* @since iOS 18
|
|
725
|
+
*/
|
|
726
|
+
| 'HKQuantityTypeIdentifierDistanceSkatingSports'
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Estimated Workout Effort Score
|
|
730
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierEstimatedWorkoutEffortScore Apple Docs HKQuantityTypeIdentifierEstimatedWorkoutEffortScore}
|
|
731
|
+
* @since iOS 18
|
|
732
|
+
*/
|
|
733
|
+
| 'HKQuantityTypeIdentifierEstimatedWorkoutEffortScore'
|
|
734
|
+
|
|
735
|
+
/**
|
|
736
|
+
* Paddle Sports Speed
|
|
737
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierPaddleSportsSpeed Apple Docs HKQuantityTypeIdentifierPaddleSportsSpeed}
|
|
738
|
+
* @since iOS 18
|
|
739
|
+
*/
|
|
740
|
+
| 'HKQuantityTypeIdentifierPaddleSportsSpeed'
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
* Rowing Speed
|
|
744
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierRowingSpeed Apple Docs HKQuantityTypeIdentifierRowingSpeed}
|
|
745
|
+
* @since iOS 18
|
|
746
|
+
*/
|
|
747
|
+
| 'HKQuantityTypeIdentifierRowingSpeed'
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
* Workout Effort Score
|
|
751
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKQuantityTypeIdentifierWorkoutEffortScore Apple Docs HKQuantityTypeIdentifierWorkoutEffortScore}
|
|
752
|
+
* @since iOS 18
|
|
753
|
+
*/
|
|
754
|
+
| 'HKQuantityTypeIdentifierWorkoutEffortScore'
|
|
755
|
+
|
|
756
|
+
export type QuantityTypeIdentifier =
|
|
757
|
+
| QuantityTypeIdentifierReadOnly
|
|
758
|
+
| QuantityTypeIdentifierWriteable
|