@kingstinct/react-native-healthkit 9.0.0 → 9.0.2
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/README.md +192 -0
- package/app.plugin.js +0 -1
- package/ios/Helpers.swift +33 -37
- package/ios/WorkoutProxy.swift +7 -0
- package/lib/commonjs/hooks/useCategorySampleById.js +36 -0
- package/lib/commonjs/hooks/useHealthkitAuthorization.js +34 -0
- package/lib/commonjs/hooks/useIsHealthDataAvailable.js +23 -0
- package/lib/commonjs/hooks/useMostRecentCategorySample.js +21 -0
- package/lib/commonjs/hooks/useMostRecentQuantitySample.js +22 -0
- package/lib/commonjs/hooks/useMostRecentWorkout.js +31 -0
- package/lib/commonjs/hooks/useQuantitySampleById.js +34 -0
- package/lib/commonjs/hooks/useSources.js +17 -0
- package/lib/commonjs/hooks/useStatisticsForQuantity.js +26 -0
- package/lib/commonjs/hooks/useSubscribeToChanges.js +20 -0
- package/lib/commonjs/hooks/useWorkoutById.js +46 -0
- package/lib/commonjs/index.ios.js +144 -0
- package/lib/commonjs/index.js +210 -0
- package/lib/commonjs/modules.js +12 -0
- package/lib/commonjs/specs/CategoryTypeModule.nitro.js +5 -0
- package/lib/commonjs/specs/CharacteristicTypeModule.nitro.js +2 -0
- package/lib/commonjs/specs/CoreModule.nitro.js +2 -0
- package/lib/commonjs/specs/CorrelationTypeModule.nitro.js +2 -0
- package/lib/commonjs/specs/HeartbeatSeriesModule.nitro.js +2 -0
- package/lib/commonjs/specs/QuantityTypeModule.nitro.js +2 -0
- package/lib/commonjs/specs/SourceProxy.nitro.js +2 -0
- package/lib/commonjs/specs/StateOfMindModule.nitro.js +2 -0
- package/lib/commonjs/specs/WorkoutProxy.nitro.js +2 -0
- package/lib/commonjs/specs/WorkoutSessionModule.nitro.js +19 -0
- package/lib/commonjs/specs/WorkoutsModule.nitro.js +2 -0
- package/lib/commonjs/types/Auth.js +21 -0
- package/lib/commonjs/types/Background.js +13 -0
- package/lib/commonjs/types/CategoryType.js +101 -0
- package/lib/commonjs/types/CategoryTypeIdentifier.js +2 -0
- package/lib/commonjs/types/Characteristics.js +48 -0
- package/lib/commonjs/types/Constants.js +23 -0
- package/lib/commonjs/types/CorrelationType.js +2 -0
- package/lib/commonjs/types/Device.js +2 -0
- package/lib/commonjs/types/HeartbeatSeries.js +2 -0
- package/lib/commonjs/types/InterfaceVerification.js +24 -0
- package/lib/commonjs/types/InterfaceVerificationExample.js +33 -0
- package/lib/commonjs/types/QuantitySample.js +2 -0
- package/lib/commonjs/types/QuantityType.js +17 -0
- package/lib/commonjs/types/QuantityTypeIdentifier.js +2 -0
- package/lib/commonjs/types/QueryOptions.js +2 -0
- package/lib/commonjs/types/Shared.js +13 -0
- package/lib/commonjs/types/Source.js +2 -0
- package/lib/commonjs/types/StateOfMind.js +90 -0
- package/lib/commonjs/types/Subscriptons.js +2 -0
- package/lib/commonjs/types/Units.js +2 -0
- package/lib/commonjs/types/WeatherCondition.js +35 -0
- package/lib/commonjs/types/WorkoutKit.js +12 -0
- package/lib/commonjs/types/Workouts.js +150 -0
- package/lib/commonjs/utils/getCategorySampleById.js +12 -0
- package/lib/commonjs/utils/getMostRecentCategorySample.js +12 -0
- package/lib/commonjs/utils/getMostRecentQuantitySample.js +11 -0
- package/lib/commonjs/utils/getMostRecentWorkout.js +13 -0
- package/lib/commonjs/utils/getPreferredUnit.js +12 -0
- package/lib/commonjs/utils/getQuantitySampleById.js +14 -0
- package/lib/commonjs/utils/getWorkoutById.js +15 -0
- package/lib/commonjs/utils/subscribeToChanges.js +11 -0
- package/lib/module/hooks/useCategorySampleById.js +30 -0
- package/lib/module/hooks/useHealthkitAuthorization.js +30 -0
- package/lib/module/hooks/useIsHealthDataAvailable.js +19 -0
- package/lib/module/hooks/useMostRecentCategorySample.js +15 -0
- package/lib/module/hooks/useMostRecentQuantitySample.js +16 -0
- package/lib/module/hooks/useMostRecentWorkout.js +25 -0
- package/lib/module/hooks/useQuantitySampleById.js +28 -0
- package/lib/module/hooks/useSources.js +14 -0
- package/lib/module/hooks/useStatisticsForQuantity.js +20 -0
- package/lib/module/hooks/useSubscribeToChanges.js +17 -0
- package/lib/module/hooks/useWorkoutById.js +40 -0
- package/lib/module/index.ios.js +126 -0
- package/lib/module/index.js +202 -0
- package/lib/module/modules.js +9 -0
- package/lib/module/specs/CategoryTypeModule.nitro.js +4 -0
- package/lib/module/specs/CharacteristicTypeModule.nitro.js +1 -0
- package/lib/module/specs/CoreModule.nitro.js +1 -0
- package/lib/module/specs/CorrelationTypeModule.nitro.js +1 -0
- package/lib/module/specs/HeartbeatSeriesModule.nitro.js +1 -0
- package/lib/module/specs/QuantityTypeModule.nitro.js +1 -0
- package/lib/module/specs/SourceProxy.nitro.js +1 -0
- package/lib/module/specs/StateOfMindModule.nitro.js +1 -0
- package/lib/module/specs/WorkoutProxy.nitro.js +1 -0
- package/lib/module/specs/WorkoutSessionModule.nitro.js +16 -0
- package/lib/module/specs/WorkoutsModule.nitro.js +1 -0
- package/lib/module/types/Auth.js +18 -0
- package/lib/module/types/Background.js +10 -0
- package/lib/module/types/CategoryType.js +98 -0
- package/lib/module/types/CategoryTypeIdentifier.js +1 -0
- package/lib/module/types/Characteristics.js +45 -0
- package/lib/module/types/Constants.js +20 -0
- package/lib/module/types/CorrelationType.js +1 -0
- package/lib/module/types/Device.js +1 -0
- package/lib/module/types/HeartbeatSeries.js +1 -0
- package/lib/module/types/InterfaceVerification.js +23 -0
- package/lib/module/types/InterfaceVerificationExample.js +32 -0
- package/lib/module/types/QuantitySample.js +1 -0
- package/lib/module/types/QuantityType.js +14 -0
- package/lib/module/types/QuantityTypeIdentifier.js +1 -0
- package/lib/module/types/QueryOptions.js +1 -0
- package/lib/module/types/Shared.js +10 -0
- package/lib/module/types/Source.js +1 -0
- package/lib/module/types/StateOfMind.js +87 -0
- package/lib/module/types/Subscriptons.js +1 -0
- package/lib/module/types/Units.js +1 -0
- package/lib/module/types/WeatherCondition.js +32 -0
- package/lib/module/types/WorkoutKit.js +9 -0
- package/lib/module/types/Workouts.js +147 -0
- package/lib/module/utils/getCategorySampleById.js +9 -0
- package/lib/module/utils/getMostRecentCategorySample.js +9 -0
- package/lib/module/utils/getMostRecentQuantitySample.js +9 -0
- package/lib/module/utils/getMostRecentWorkout.js +11 -0
- package/lib/module/utils/getPreferredUnit.js +10 -0
- package/lib/module/utils/getQuantitySampleById.js +12 -0
- package/lib/module/utils/getWorkoutById.js +13 -0
- package/lib/module/utils/subscribeToChanges.js +7 -0
- package/lib/typescript/hooks/useCategorySampleById.d.ts +11 -0
- package/lib/typescript/hooks/useHealthkitAuthorization.d.ts +9 -0
- package/lib/typescript/hooks/useIsHealthDataAvailable.d.ts +7 -0
- package/lib/typescript/hooks/useMostRecentCategorySample.d.ts +7 -0
- package/lib/typescript/hooks/useMostRecentQuantitySample.d.ts +7 -0
- package/lib/typescript/hooks/useMostRecentWorkout.d.ts +9 -0
- package/lib/typescript/hooks/useQuantitySampleById.d.ts +14 -0
- package/lib/typescript/hooks/useSources.d.ts +4 -0
- package/lib/typescript/hooks/useStatisticsForQuantity.d.ts +4 -0
- package/lib/typescript/hooks/useSubscribeToChanges.d.ts +4 -0
- package/lib/typescript/hooks/useWorkoutById.d.ts +13 -0
- package/lib/typescript/index.d.ts +74 -0
- package/lib/typescript/index.ios.d.ts +142 -0
- package/lib/typescript/modules.d.ts +16 -0
- package/lib/typescript/specs/CategoryTypeModule.nitro.d.ts +16 -0
- package/lib/typescript/specs/CharacteristicTypeModule.nitro.d.ts +16 -0
- package/lib/typescript/specs/CoreModule.nitro.d.ts +60 -0
- package/lib/typescript/specs/CorrelationTypeModule.nitro.d.ts +8 -0
- package/lib/typescript/specs/HeartbeatSeriesModule.nitro.d.ts +9 -0
- package/lib/typescript/specs/QuantityTypeModule.nitro.d.ts +16 -0
- package/lib/typescript/specs/SourceProxy.nitro.d.ts +14 -0
- package/lib/typescript/specs/StateOfMindModule.nitro.d.ts +9 -0
- package/lib/typescript/specs/WorkoutProxy.nitro.d.ts +10 -0
- package/lib/typescript/specs/WorkoutSessionModule.nitro.d.ts +47 -0
- package/lib/typescript/specs/WorkoutsModule.nitro.d.ts +13 -0
- package/lib/typescript/types/Auth.d.ts +16 -0
- package/lib/typescript/types/Background.d.ts +9 -0
- package/lib/typescript/types/CategoryType.d.ts +144 -0
- package/lib/typescript/types/CategoryTypeIdentifier.d.ts +31 -0
- package/lib/typescript/types/Characteristics.d.ts +41 -0
- package/lib/typescript/types/Constants.d.ts +20 -0
- package/lib/typescript/types/CorrelationType.d.ts +21 -0
- package/lib/typescript/types/Device.d.ts +13 -0
- package/lib/typescript/types/HeartbeatSeries.d.ts +25 -0
- package/lib/typescript/types/InterfaceVerification.d.ts +73 -0
- package/lib/typescript/types/InterfaceVerificationExample.d.ts +58 -0
- package/lib/typescript/types/QuantitySample.d.ts +27 -0
- package/lib/typescript/types/QuantityType.d.ts +63 -0
- package/lib/typescript/types/QuantityTypeIdentifier.d.ts +659 -0
- package/lib/typescript/types/QueryOptions.d.ts +47 -0
- package/lib/typescript/types/Shared.d.ts +39 -0
- package/lib/typescript/types/Source.d.ts +10 -0
- package/lib/typescript/types/StateOfMind.d.ts +103 -0
- package/lib/typescript/types/Subscriptons.d.ts +8 -0
- package/lib/typescript/types/Units.d.ts +97 -0
- package/lib/typescript/types/WeatherCondition.d.ts +30 -0
- package/lib/typescript/types/WorkoutKit.d.ts +16 -0
- package/lib/typescript/types/Workouts.d.ts +254 -0
- package/lib/typescript/utils/getCategorySampleById.d.ts +3 -0
- package/lib/typescript/utils/getMostRecentCategorySample.d.ts +3 -0
- package/lib/typescript/utils/getMostRecentQuantitySample.d.ts +3 -0
- package/lib/typescript/utils/getMostRecentWorkout.d.ts +3 -0
- package/lib/typescript/utils/getPreferredUnit.d.ts +3 -0
- package/lib/typescript/utils/getQuantitySampleById.d.ts +3 -0
- package/lib/typescript/utils/getWorkoutById.d.ts +3 -0
- package/lib/typescript/utils/subscribeToChanges.d.ts +5 -0
- package/nitrogen/generated/.gitattributes +1 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit+autolinking.rb +60 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +450 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +2570 -0
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +326 -0
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.mm +89 -0
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.swift +130 -0
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +146 -0
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.hpp +155 -0
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +300 -0
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +120 -0
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +138 -0
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +196 -0
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.hpp +77 -0
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +138 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +196 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutSessionModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutSessionModuleSpecSwift.hpp +107 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +172 -0
- package/nitrogen/generated/ios/swift/AuthorizationRequestStatus.swift +44 -0
- package/nitrogen/generated/ios/swift/AuthorizationStatus.swift +44 -0
- package/nitrogen/generated/ios/swift/BiologicalSex.swift +48 -0
- package/nitrogen/generated/ios/swift/BloodType.swift +68 -0
- package/nitrogen/generated/ios/swift/CategorySample.swift +148 -0
- package/nitrogen/generated/ios/swift/CategorySampleForSaving.swift +108 -0
- package/nitrogen/generated/ios/swift/CategorySamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +288 -0
- package/nitrogen/generated/ios/swift/ComparisonPredicateOperator.swift +88 -0
- package/nitrogen/generated/ios/swift/CorrelationObject.swift +16 -0
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +117 -0
- package/nitrogen/generated/ios/swift/CorrelationTypeIdentifier.swift +40 -0
- package/nitrogen/generated/ios/swift/DeletedSample.swift +64 -0
- package/nitrogen/generated/ios/swift/Device.swift +256 -0
- package/nitrogen/generated/ios/swift/FilterForSamples.swift +21 -0
- package/nitrogen/generated/ios/swift/FilterForSamplesAnd.swift +94 -0
- package/nitrogen/generated/ios/swift/FilterForSamplesOr.swift +94 -0
- package/nitrogen/generated/ios/swift/FitzpatrickSkinType.swift +60 -0
- package/nitrogen/generated/ios/swift/Func_void_AuthorizationRequestStatus.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_BiologicalSex.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_BloodType.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_CategorySamplesWithAnchorResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_FitzpatrickSkinType.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_HeartbeatSeriesSamplesWithAnchorResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_OnChangeCallbackArgs.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_QuantitySamplesWithAnchorResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_QueryStatisticsResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_QueryWorkoutSamplesWithAnchorResponse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_WheelchairUse.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_WorkoutEventType.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_WorkoutSessionState_WorkoutSessionState_std__chrono__system_clock__time_point.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_double.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__chrono__system_clock__time_point.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_WorkoutPlan_.swift +52 -0
- package/nitrogen/generated/ios/swift/Func_void_std__string.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__bool_.swift +54 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CategorySample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CorrelationSample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_HeartbeatSeriesSample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_IdentifierWithUnit_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QuantitySample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponse_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_RemoteSessionSharableData_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_StateOfMindSample_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_WorkoutRoute_.swift +46 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__.swift +50 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__.swift +50 -0
- package/nitrogen/generated/ios/swift/Heartbeat.swift +46 -0
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +167 -0
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +50 -0
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +171 -0
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec.swift +57 -0
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec_cxx.swift +257 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +69 -0
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +523 -0
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +49 -0
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +158 -0
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +49 -0
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +152 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +54 -0
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +285 -0
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec.swift +48 -0
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec_cxx.swift +125 -0
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +49 -0
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +158 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +64 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +351 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutSessionModuleSpec.swift +49 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutSessionModuleSpec_cxx.swift +133 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec.swift +51 -0
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec_cxx.swift +187 -0
- package/nitrogen/generated/ios/swift/IdentifierWithUnit.swift +46 -0
- package/nitrogen/generated/ios/swift/IntervalComponents.swift +139 -0
- package/nitrogen/generated/ios/swift/LocationForSaving.swift +112 -0
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +820 -0
- package/nitrogen/generated/ios/swift/OnChangeCallbackArgs.swift +64 -0
- package/nitrogen/generated/ios/swift/PredicateForSamples.swift +19 -0
- package/nitrogen/generated/ios/swift/PredicateForWorkouts.swift +21 -0
- package/nitrogen/generated/ios/swift/PredicateForWorkoutsAnd.swift +108 -0
- package/nitrogen/generated/ios/swift/PredicateForWorkoutsOr.swift +108 -0
- package/nitrogen/generated/ios/swift/PredicateFromWorkout.swift +45 -0
- package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +35 -0
- package/nitrogen/generated/ios/swift/PredicateWithStartAndEnd.swift +128 -0
- package/nitrogen/generated/ios/swift/PredicateWithUUID.swift +35 -0
- package/nitrogen/generated/ios/swift/PredicateWithUUIDs.swift +47 -0
- package/nitrogen/generated/ios/swift/Quantity.swift +46 -0
- package/nitrogen/generated/ios/swift/QuantityDateInterval.swift +46 -0
- package/nitrogen/generated/ios/swift/QuantitySample.swift +159 -0
- package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +119 -0
- package/nitrogen/generated/ios/swift/QuantitySamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +508 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +166 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +195 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +160 -0
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +189 -0
- package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +227 -0
- package/nitrogen/generated/ios/swift/QueryWorkoutSamplesWithAnchorResponse.swift +91 -0
- package/nitrogen/generated/ios/swift/RemoteSessionSharableData.swift +46 -0
- package/nitrogen/generated/ios/swift/SampleForSaving.swift +16 -0
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +792 -0
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +772 -0
- package/nitrogen/generated/ios/swift/Source.swift +46 -0
- package/nitrogen/generated/ios/swift/SourceRevision.swift +150 -0
- package/nitrogen/generated/ios/swift/StateOfMindAssociation.swift +104 -0
- package/nitrogen/generated/ios/swift/StateOfMindKind.swift +40 -0
- package/nitrogen/generated/ios/swift/StateOfMindLabel.swift +184 -0
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +223 -0
- package/nitrogen/generated/ios/swift/StateOfMindValenceClassification.swift +60 -0
- package/nitrogen/generated/ios/swift/StatisticsOptions.swift +60 -0
- package/nitrogen/generated/ios/swift/StatisticsQueryOptions.swift +129 -0
- package/nitrogen/generated/ios/swift/UpdateFrequency.swift +48 -0
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout.swift +19 -0
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_FilterForSamplesAnd_FilterForSamplesOr.swift +21 -0
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_WorkoutActivityTypePredicate_WorkoutDurationPredicate_PredicateForWorkoutsOr_PredicateForWorkoutsAnd.swift +23 -0
- package/nitrogen/generated/ios/swift/WheelchairUse.swift +44 -0
- package/nitrogen/generated/ios/swift/WorkoutActivity.swift +68 -0
- package/nitrogen/generated/ios/swift/WorkoutActivityType.swift +368 -0
- package/nitrogen/generated/ios/swift/WorkoutActivityTypePredicate.swift +35 -0
- package/nitrogen/generated/ios/swift/WorkoutConfiguration.swift +58 -0
- package/nitrogen/generated/ios/swift/WorkoutDurationPredicate.swift +46 -0
- package/nitrogen/generated/ios/swift/WorkoutEvent.swift +57 -0
- package/nitrogen/generated/ios/swift/WorkoutEventType.swift +64 -0
- package/nitrogen/generated/ios/swift/WorkoutPlan.swift +46 -0
- package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +232 -0
- package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +238 -0
- package/nitrogen/generated/ios/swift/WorkoutRoute.swift +99 -0
- package/nitrogen/generated/ios/swift/WorkoutRouteLocation.swift +146 -0
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +364 -0
- package/nitrogen/generated/ios/swift/WorkoutSessionLocationType.swift +44 -0
- package/nitrogen/generated/ios/swift/WorkoutSessionMirroringStartHandlerOptions.swift +118 -0
- package/nitrogen/generated/ios/swift/WorkoutSessionState.swift +56 -0
- package/nitrogen/generated/ios/swift/WorkoutTotals.swift +70 -0
- package/nitrogen/generated/shared/c++/AuthorizationRequestStatus.hpp +65 -0
- package/nitrogen/generated/shared/c++/AuthorizationStatus.hpp +65 -0
- package/nitrogen/generated/shared/c++/BiologicalSex.hpp +66 -0
- package/nitrogen/generated/shared/c++/BloodType.hpp +71 -0
- package/nitrogen/generated/shared/c++/CategorySample.hpp +110 -0
- package/nitrogen/generated/shared/c++/CategorySampleForSaving.hpp +98 -0
- package/nitrogen/generated/shared/c++/CategorySamplesWithAnchorResponse.hpp +83 -0
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +326 -0
- package/nitrogen/generated/shared/c++/ComparisonPredicateOperator.hpp +76 -0
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +98 -0
- package/nitrogen/generated/shared/c++/CorrelationTypeIdentifier.hpp +78 -0
- package/nitrogen/generated/shared/c++/DeletedSample.hpp +76 -0
- package/nitrogen/generated/shared/c++/Device.hpp +98 -0
- package/nitrogen/generated/shared/c++/FilterForSamplesAnd.hpp +84 -0
- package/nitrogen/generated/shared/c++/FilterForSamplesOr.hpp +84 -0
- package/nitrogen/generated/shared/c++/FitzpatrickSkinType.hpp +69 -0
- package/nitrogen/generated/shared/c++/Heartbeat.hpp +73 -0
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +107 -0
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSamplesWithAnchorResponse.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +84 -0
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.cpp +30 -0
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +42 -0
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +140 -0
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.hpp +80 -0
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.hpp +76 -0
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.cpp +27 -0
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +123 -0
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.hpp +65 -0
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.hpp +83 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +38 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +114 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutSessionModuleSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutSessionModuleSpec.hpp +68 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.cpp +24 -0
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.hpp +95 -0
- package/nitrogen/generated/shared/c++/IdentifierWithUnit.hpp +73 -0
- package/nitrogen/generated/shared/c++/IntervalComponents.hpp +85 -0
- package/nitrogen/generated/shared/c++/LocationForSaving.hpp +97 -0
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +858 -0
- package/nitrogen/generated/shared/c++/OnChangeCallbackArgs.hpp +76 -0
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsAnd.hpp +90 -0
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsOr.hpp +90 -0
- package/nitrogen/generated/shared/c++/PredicateFromWorkout.hpp +71 -0
- package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +69 -0
- package/nitrogen/generated/shared/c++/PredicateWithStartAndEnd.hpp +82 -0
- package/nitrogen/generated/shared/c++/PredicateWithUUID.hpp +69 -0
- package/nitrogen/generated/shared/c++/PredicateWithUUIDs.hpp +70 -0
- package/nitrogen/generated/shared/c++/Quantity.hpp +73 -0
- package/nitrogen/generated/shared/c++/QuantityDateInterval.hpp +73 -0
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +114 -0
- package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +103 -0
- package/nitrogen/generated/shared/c++/QuantitySamplesWithAnchorResponse.hpp +83 -0
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +546 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +99 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +103 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +98 -0
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +103 -0
- package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +98 -0
- package/nitrogen/generated/shared/c++/QueryWorkoutSamplesWithAnchorResponse.hpp +84 -0
- package/nitrogen/generated/shared/c++/RemoteSessionSharableData.hpp +75 -0
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +830 -0
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +810 -0
- package/nitrogen/generated/shared/c++/Source.hpp +73 -0
- package/nitrogen/generated/shared/c++/SourceRevision.hpp +85 -0
- package/nitrogen/generated/shared/c++/StateOfMindAssociation.hpp +80 -0
- package/nitrogen/generated/shared/c++/StateOfMindKind.hpp +64 -0
- package/nitrogen/generated/shared/c++/StateOfMindLabel.hpp +100 -0
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +132 -0
- package/nitrogen/generated/shared/c++/StateOfMindValenceClassification.hpp +69 -0
- package/nitrogen/generated/shared/c++/StatisticsOptions.hpp +98 -0
- package/nitrogen/generated/shared/c++/StatisticsQueryOptions.hpp +89 -0
- package/nitrogen/generated/shared/c++/UpdateFrequency.hpp +66 -0
- package/nitrogen/generated/shared/c++/WheelchairUse.hpp +65 -0
- package/nitrogen/generated/shared/c++/WorkoutActivity.hpp +82 -0
- package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +146 -0
- package/nitrogen/generated/shared/c++/WorkoutActivityTypePredicate.hpp +70 -0
- package/nitrogen/generated/shared/c++/WorkoutConfiguration.hpp +78 -0
- package/nitrogen/generated/shared/c++/WorkoutDurationPredicate.hpp +74 -0
- package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +79 -0
- package/nitrogen/generated/shared/c++/WorkoutEventType.hpp +70 -0
- package/nitrogen/generated/shared/c++/WorkoutPlan.hpp +75 -0
- package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +113 -0
- package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +113 -0
- package/nitrogen/generated/shared/c++/WorkoutRoute.hpp +81 -0
- package/nitrogen/generated/shared/c++/WorkoutRouteLocation.hpp +106 -0
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +144 -0
- package/nitrogen/generated/shared/c++/WorkoutSessionLocationType.hpp +65 -0
- package/nitrogen/generated/shared/c++/WorkoutSessionMirroringStartHandlerOptions.hpp +92 -0
- package/nitrogen/generated/shared/c++/WorkoutSessionState.hpp +68 -0
- package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +73 -0
- package/package.json +35 -12
- package/src/hooks/useCategorySampleById.ts +41 -0
- package/src/hooks/useQuantitySampleById.ts +44 -0
- package/src/hooks/useWorkoutById.ts +55 -0
- package/src/index.ios.ts +1 -9
- package/src/index.ts +4 -16
- package/src/utils/getCategorySampleById.ts +16 -0
- package/src/utils/getQuantitySampleById.ts +20 -0
- package/src/utils/getWorkoutById.ts +20 -0
|
@@ -0,0 +1,508 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// QuantityTypeIdentifier.swift
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Represents the JS union `QuantityTypeIdentifier`, backed by a C++ enum.
|
|
10
|
+
*/
|
|
11
|
+
public typealias QuantityTypeIdentifier = margelo.nitro.healthkit.QuantityTypeIdentifier
|
|
12
|
+
|
|
13
|
+
public extension QuantityTypeIdentifier {
|
|
14
|
+
/**
|
|
15
|
+
* Get a QuantityTypeIdentifier for the given String value, or
|
|
16
|
+
* return `nil` if the given value was invalid/unknown.
|
|
17
|
+
*/
|
|
18
|
+
init?(fromString string: String) {
|
|
19
|
+
switch string {
|
|
20
|
+
case "HKQuantityTypeIdentifierWalkingHeartRateAverage":
|
|
21
|
+
self = .hkquantitytypeidentifierwalkingheartrateaverage
|
|
22
|
+
case "HKQuantityTypeIdentifierBodyMassIndex":
|
|
23
|
+
self = .hkquantitytypeidentifierbodymassindex
|
|
24
|
+
case "HKQuantityTypeIdentifierBodyFatPercentage":
|
|
25
|
+
self = .hkquantitytypeidentifierbodyfatpercentage
|
|
26
|
+
case "HKQuantityTypeIdentifierHeight":
|
|
27
|
+
self = .hkquantitytypeidentifierheight
|
|
28
|
+
case "HKQuantityTypeIdentifierBodyMass":
|
|
29
|
+
self = .hkquantitytypeidentifierbodymass
|
|
30
|
+
case "HKQuantityTypeIdentifierLeanBodyMass":
|
|
31
|
+
self = .hkquantitytypeidentifierleanbodymass
|
|
32
|
+
case "HKQuantityTypeIdentifierWaistCircumference":
|
|
33
|
+
self = .hkquantitytypeidentifierwaistcircumference
|
|
34
|
+
case "HKQuantityTypeIdentifierStepCount":
|
|
35
|
+
self = .hkquantitytypeidentifierstepcount
|
|
36
|
+
case "HKQuantityTypeIdentifierDistanceWalkingRunning":
|
|
37
|
+
self = .hkquantitytypeidentifierdistancewalkingrunning
|
|
38
|
+
case "HKQuantityTypeIdentifierDistanceCycling":
|
|
39
|
+
self = .hkquantitytypeidentifierdistancecycling
|
|
40
|
+
case "HKQuantityTypeIdentifierDistanceWheelchair":
|
|
41
|
+
self = .hkquantitytypeidentifierdistancewheelchair
|
|
42
|
+
case "HKQuantityTypeIdentifierBasalEnergyBurned":
|
|
43
|
+
self = .hkquantitytypeidentifierbasalenergyburned
|
|
44
|
+
case "HKQuantityTypeIdentifierActiveEnergyBurned":
|
|
45
|
+
self = .hkquantitytypeidentifieractiveenergyburned
|
|
46
|
+
case "HKQuantityTypeIdentifierFlightsClimbed":
|
|
47
|
+
self = .hkquantitytypeidentifierflightsclimbed
|
|
48
|
+
case "HKQuantityTypeIdentifierNikeFuel":
|
|
49
|
+
self = .hkquantitytypeidentifiernikefuel
|
|
50
|
+
case "HKQuantityTypeIdentifierAppleExerciseTime":
|
|
51
|
+
self = .hkquantitytypeidentifierappleexercisetime
|
|
52
|
+
case "HKQuantityTypeIdentifierPushCount":
|
|
53
|
+
self = .hkquantitytypeidentifierpushcount
|
|
54
|
+
case "HKQuantityTypeIdentifierDistanceSwimming":
|
|
55
|
+
self = .hkquantitytypeidentifierdistanceswimming
|
|
56
|
+
case "HKQuantityTypeIdentifierSwimmingStrokeCount":
|
|
57
|
+
self = .hkquantitytypeidentifierswimmingstrokecount
|
|
58
|
+
case "HKQuantityTypeIdentifierVO2Max":
|
|
59
|
+
self = .hkquantitytypeidentifiervo2max
|
|
60
|
+
case "HKQuantityTypeIdentifierDistanceDownhillSnowSports":
|
|
61
|
+
self = .hkquantitytypeidentifierdistancedownhillsnowsports
|
|
62
|
+
case "HKQuantityTypeIdentifierAppleStandTime":
|
|
63
|
+
self = .hkquantitytypeidentifierapplestandtime
|
|
64
|
+
case "HKQuantityTypeIdentifierHeartRate":
|
|
65
|
+
self = .hkquantitytypeidentifierheartrate
|
|
66
|
+
case "HKQuantityTypeIdentifierBodyTemperature":
|
|
67
|
+
self = .hkquantitytypeidentifierbodytemperature
|
|
68
|
+
case "HKQuantityTypeIdentifierBasalBodyTemperature":
|
|
69
|
+
self = .hkquantitytypeidentifierbasalbodytemperature
|
|
70
|
+
case "HKQuantityTypeIdentifierBloodPressureSystolic":
|
|
71
|
+
self = .hkquantitytypeidentifierbloodpressuresystolic
|
|
72
|
+
case "HKQuantityTypeIdentifierBloodPressureDiastolic":
|
|
73
|
+
self = .hkquantitytypeidentifierbloodpressurediastolic
|
|
74
|
+
case "HKQuantityTypeIdentifierRespiratoryRate":
|
|
75
|
+
self = .hkquantitytypeidentifierrespiratoryrate
|
|
76
|
+
case "HKQuantityTypeIdentifierRestingHeartRate":
|
|
77
|
+
self = .hkquantitytypeidentifierrestingheartrate
|
|
78
|
+
case "HKQuantityTypeIdentifierHeartRateVariabilitySDNN":
|
|
79
|
+
self = .hkquantitytypeidentifierheartratevariabilitysdnn
|
|
80
|
+
case "HKQuantityTypeIdentifierOxygenSaturation":
|
|
81
|
+
self = .hkquantitytypeidentifieroxygensaturation
|
|
82
|
+
case "HKQuantityTypeIdentifierPeripheralPerfusionIndex":
|
|
83
|
+
self = .hkquantitytypeidentifierperipheralperfusionindex
|
|
84
|
+
case "HKQuantityTypeIdentifierBloodGlucose":
|
|
85
|
+
self = .hkquantitytypeidentifierbloodglucose
|
|
86
|
+
case "HKQuantityTypeIdentifierNumberOfTimesFallen":
|
|
87
|
+
self = .hkquantitytypeidentifiernumberoftimesfallen
|
|
88
|
+
case "HKQuantityTypeIdentifierElectrodermalActivity":
|
|
89
|
+
self = .hkquantitytypeidentifierelectrodermalactivity
|
|
90
|
+
case "HKQuantityTypeIdentifierInhalerUsage":
|
|
91
|
+
self = .hkquantitytypeidentifierinhalerusage
|
|
92
|
+
case "HKQuantityTypeIdentifierInsulinDelivery":
|
|
93
|
+
self = .hkquantitytypeidentifierinsulindelivery
|
|
94
|
+
case "HKQuantityTypeIdentifierBloodAlcoholContent":
|
|
95
|
+
self = .hkquantitytypeidentifierbloodalcoholcontent
|
|
96
|
+
case "HKQuantityTypeIdentifierForcedVitalCapacity":
|
|
97
|
+
self = .hkquantitytypeidentifierforcedvitalcapacity
|
|
98
|
+
case "HKQuantityTypeIdentifierForcedExpiratoryVolume1":
|
|
99
|
+
self = .hkquantitytypeidentifierforcedexpiratoryvolume1
|
|
100
|
+
case "HKQuantityTypeIdentifierPeakExpiratoryFlowRate":
|
|
101
|
+
self = .hkquantitytypeidentifierpeakexpiratoryflowrate
|
|
102
|
+
case "HKQuantityTypeIdentifierEnvironmentalAudioExposure":
|
|
103
|
+
self = .hkquantitytypeidentifierenvironmentalaudioexposure
|
|
104
|
+
case "HKQuantityTypeIdentifierHeadphoneAudioExposure":
|
|
105
|
+
self = .hkquantitytypeidentifierheadphoneaudioexposure
|
|
106
|
+
case "HKQuantityTypeIdentifierDietaryFatTotal":
|
|
107
|
+
self = .hkquantitytypeidentifierdietaryfattotal
|
|
108
|
+
case "HKQuantityTypeIdentifierDietaryFatPolyunsaturated":
|
|
109
|
+
self = .hkquantitytypeidentifierdietaryfatpolyunsaturated
|
|
110
|
+
case "HKQuantityTypeIdentifierDietaryFatMonounsaturated":
|
|
111
|
+
self = .hkquantitytypeidentifierdietaryfatmonounsaturated
|
|
112
|
+
case "HKQuantityTypeIdentifierDietaryFatSaturated":
|
|
113
|
+
self = .hkquantitytypeidentifierdietaryfatsaturated
|
|
114
|
+
case "HKQuantityTypeIdentifierDietaryCholesterol":
|
|
115
|
+
self = .hkquantitytypeidentifierdietarycholesterol
|
|
116
|
+
case "HKQuantityTypeIdentifierDietarySodium":
|
|
117
|
+
self = .hkquantitytypeidentifierdietarysodium
|
|
118
|
+
case "HKQuantityTypeIdentifierDietaryCarbohydrates":
|
|
119
|
+
self = .hkquantitytypeidentifierdietarycarbohydrates
|
|
120
|
+
case "HKQuantityTypeIdentifierDietaryFiber":
|
|
121
|
+
self = .hkquantitytypeidentifierdietaryfiber
|
|
122
|
+
case "HKQuantityTypeIdentifierDietarySugar":
|
|
123
|
+
self = .hkquantitytypeidentifierdietarysugar
|
|
124
|
+
case "HKQuantityTypeIdentifierDietaryEnergyConsumed":
|
|
125
|
+
self = .hkquantitytypeidentifierdietaryenergyconsumed
|
|
126
|
+
case "HKQuantityTypeIdentifierDietaryProtein":
|
|
127
|
+
self = .hkquantitytypeidentifierdietaryprotein
|
|
128
|
+
case "HKQuantityTypeIdentifierDietaryVitaminA":
|
|
129
|
+
self = .hkquantitytypeidentifierdietaryvitamina
|
|
130
|
+
case "HKQuantityTypeIdentifierDietaryVitaminB6":
|
|
131
|
+
self = .hkquantitytypeidentifierdietaryvitaminb6
|
|
132
|
+
case "HKQuantityTypeIdentifierDietaryVitaminB12":
|
|
133
|
+
self = .hkquantitytypeidentifierdietaryvitaminb12
|
|
134
|
+
case "HKQuantityTypeIdentifierDietaryVitaminC":
|
|
135
|
+
self = .hkquantitytypeidentifierdietaryvitaminc
|
|
136
|
+
case "HKQuantityTypeIdentifierDietaryVitaminD":
|
|
137
|
+
self = .hkquantitytypeidentifierdietaryvitamind
|
|
138
|
+
case "HKQuantityTypeIdentifierDietaryVitaminE":
|
|
139
|
+
self = .hkquantitytypeidentifierdietaryvitamine
|
|
140
|
+
case "HKQuantityTypeIdentifierDietaryVitaminK":
|
|
141
|
+
self = .hkquantitytypeidentifierdietaryvitamink
|
|
142
|
+
case "HKQuantityTypeIdentifierDietaryCalcium":
|
|
143
|
+
self = .hkquantitytypeidentifierdietarycalcium
|
|
144
|
+
case "HKQuantityTypeIdentifierDietaryIron":
|
|
145
|
+
self = .hkquantitytypeidentifierdietaryiron
|
|
146
|
+
case "HKQuantityTypeIdentifierDietaryThiamin":
|
|
147
|
+
self = .hkquantitytypeidentifierdietarythiamin
|
|
148
|
+
case "HKQuantityTypeIdentifierDietaryRiboflavin":
|
|
149
|
+
self = .hkquantitytypeidentifierdietaryriboflavin
|
|
150
|
+
case "HKQuantityTypeIdentifierDietaryNiacin":
|
|
151
|
+
self = .hkquantitytypeidentifierdietaryniacin
|
|
152
|
+
case "HKQuantityTypeIdentifierDietaryFolate":
|
|
153
|
+
self = .hkquantitytypeidentifierdietaryfolate
|
|
154
|
+
case "HKQuantityTypeIdentifierDietaryBiotin":
|
|
155
|
+
self = .hkquantitytypeidentifierdietarybiotin
|
|
156
|
+
case "HKQuantityTypeIdentifierDietaryPantothenicAcid":
|
|
157
|
+
self = .hkquantitytypeidentifierdietarypantothenicacid
|
|
158
|
+
case "HKQuantityTypeIdentifierDietaryPhosphorus":
|
|
159
|
+
self = .hkquantitytypeidentifierdietaryphosphorus
|
|
160
|
+
case "HKQuantityTypeIdentifierDietaryIodine":
|
|
161
|
+
self = .hkquantitytypeidentifierdietaryiodine
|
|
162
|
+
case "HKQuantityTypeIdentifierDietaryMagnesium":
|
|
163
|
+
self = .hkquantitytypeidentifierdietarymagnesium
|
|
164
|
+
case "HKQuantityTypeIdentifierDietaryZinc":
|
|
165
|
+
self = .hkquantitytypeidentifierdietaryzinc
|
|
166
|
+
case "HKQuantityTypeIdentifierDietarySelenium":
|
|
167
|
+
self = .hkquantitytypeidentifierdietaryselenium
|
|
168
|
+
case "HKQuantityTypeIdentifierDietaryCopper":
|
|
169
|
+
self = .hkquantitytypeidentifierdietarycopper
|
|
170
|
+
case "HKQuantityTypeIdentifierDietaryManganese":
|
|
171
|
+
self = .hkquantitytypeidentifierdietarymanganese
|
|
172
|
+
case "HKQuantityTypeIdentifierDietaryChromium":
|
|
173
|
+
self = .hkquantitytypeidentifierdietarychromium
|
|
174
|
+
case "HKQuantityTypeIdentifierDietaryMolybdenum":
|
|
175
|
+
self = .hkquantitytypeidentifierdietarymolybdenum
|
|
176
|
+
case "HKQuantityTypeIdentifierDietaryChloride":
|
|
177
|
+
self = .hkquantitytypeidentifierdietarychloride
|
|
178
|
+
case "HKQuantityTypeIdentifierDietaryPotassium":
|
|
179
|
+
self = .hkquantitytypeidentifierdietarypotassium
|
|
180
|
+
case "HKQuantityTypeIdentifierDietaryCaffeine":
|
|
181
|
+
self = .hkquantitytypeidentifierdietarycaffeine
|
|
182
|
+
case "HKQuantityTypeIdentifierDietaryWater":
|
|
183
|
+
self = .hkquantitytypeidentifierdietarywater
|
|
184
|
+
case "HKQuantityTypeIdentifierSixMinuteWalkTestDistance":
|
|
185
|
+
self = .hkquantitytypeidentifiersixminutewalktestdistance
|
|
186
|
+
case "HKQuantityTypeIdentifierWalkingSpeed":
|
|
187
|
+
self = .hkquantitytypeidentifierwalkingspeed
|
|
188
|
+
case "HKQuantityTypeIdentifierWalkingStepLength":
|
|
189
|
+
self = .hkquantitytypeidentifierwalkingsteplength
|
|
190
|
+
case "HKQuantityTypeIdentifierWalkingAsymmetryPercentage":
|
|
191
|
+
self = .hkquantitytypeidentifierwalkingasymmetrypercentage
|
|
192
|
+
case "HKQuantityTypeIdentifierWalkingDoubleSupportPercentage":
|
|
193
|
+
self = .hkquantitytypeidentifierwalkingdoublesupportpercentage
|
|
194
|
+
case "HKQuantityTypeIdentifierStairAscentSpeed":
|
|
195
|
+
self = .hkquantitytypeidentifierstairascentspeed
|
|
196
|
+
case "HKQuantityTypeIdentifierStairDescentSpeed":
|
|
197
|
+
self = .hkquantitytypeidentifierstairdescentspeed
|
|
198
|
+
case "HKQuantityTypeIdentifierUVExposure":
|
|
199
|
+
self = .hkquantitytypeidentifieruvexposure
|
|
200
|
+
case "HKQuantityTypeIdentifierAppleMoveTime":
|
|
201
|
+
self = .hkquantitytypeidentifierapplemovetime
|
|
202
|
+
case "HKQuantityTypeIdentifierAppleWalkingSteadiness":
|
|
203
|
+
self = .hkquantitytypeidentifierapplewalkingsteadiness
|
|
204
|
+
case "HKQuantityTypeIdentifierNumberOfAlcoholicBeverages":
|
|
205
|
+
self = .hkquantitytypeidentifiernumberofalcoholicbeverages
|
|
206
|
+
case "HKQuantityTypeIdentifierAtrialFibrillationBurden":
|
|
207
|
+
self = .hkquantitytypeidentifieratrialfibrillationburden
|
|
208
|
+
case "HKQuantityTypeIdentifierUnderwaterDepth":
|
|
209
|
+
self = .hkquantitytypeidentifierunderwaterdepth
|
|
210
|
+
case "HKQuantityTypeIdentifierWaterTemperature":
|
|
211
|
+
self = .hkquantitytypeidentifierwatertemperature
|
|
212
|
+
case "HKQuantityTypeIdentifierAppleSleepingWristTemperature":
|
|
213
|
+
self = .hkquantitytypeidentifierapplesleepingwristtemperature
|
|
214
|
+
case "HKQuantityTypeIdentifierTimeInDaylight":
|
|
215
|
+
self = .hkquantitytypeidentifiertimeindaylight
|
|
216
|
+
case "HKQuantityTypeIdentifierPhysicalEffort":
|
|
217
|
+
self = .hkquantitytypeidentifierphysicaleffort
|
|
218
|
+
case "HKQuantityTypeIdentifierCyclingSpeed":
|
|
219
|
+
self = .hkquantitytypeidentifiercyclingspeed
|
|
220
|
+
case "HKQuantityTypeIdentifierCyclingPower":
|
|
221
|
+
self = .hkquantitytypeidentifiercyclingpower
|
|
222
|
+
case "HKQuantityTypeIdentifierCyclingFunctionalThresholdPower":
|
|
223
|
+
self = .hkquantitytypeidentifiercyclingfunctionalthresholdpower
|
|
224
|
+
case "HKQuantityTypeIdentifierCyclingCadence":
|
|
225
|
+
self = .hkquantitytypeidentifiercyclingcadence
|
|
226
|
+
case "HKQuantityTypeIdentifierEnvironmentalSoundReduction":
|
|
227
|
+
self = .hkquantitytypeidentifierenvironmentalsoundreduction
|
|
228
|
+
case "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute":
|
|
229
|
+
self = .hkquantitytypeidentifierheartraterecoveryoneminute
|
|
230
|
+
case "HKQuantityTypeIdentifierRunningGroundContactTime":
|
|
231
|
+
self = .hkquantitytypeidentifierrunninggroundcontacttime
|
|
232
|
+
case "HKQuantityTypeIdentifierRunningStrideLength":
|
|
233
|
+
self = .hkquantitytypeidentifierrunningstridelength
|
|
234
|
+
case "HKQuantityTypeIdentifierRunningPower":
|
|
235
|
+
self = .hkquantitytypeidentifierrunningpower
|
|
236
|
+
case "HKQuantityTypeIdentifierRunningVerticalOscillation":
|
|
237
|
+
self = .hkquantitytypeidentifierrunningverticaloscillation
|
|
238
|
+
case "HKQuantityTypeIdentifierRunningSpeed":
|
|
239
|
+
self = .hkquantitytypeidentifierrunningspeed
|
|
240
|
+
case "HKQuantityTypeIdentifierCrossCountrySkiingSpeed":
|
|
241
|
+
self = .hkquantitytypeidentifiercrosscountryskiingspeed
|
|
242
|
+
case "HKQuantityTypeIdentifierDistanceCrossCountrySkiing":
|
|
243
|
+
self = .hkquantitytypeidentifierdistancecrosscountryskiing
|
|
244
|
+
case "HKQuantityTypeIdentifierDistancePaddleSports":
|
|
245
|
+
self = .hkquantitytypeidentifierdistancepaddlesports
|
|
246
|
+
case "HKQuantityTypeIdentifierDistanceRowing":
|
|
247
|
+
self = .hkquantitytypeidentifierdistancerowing
|
|
248
|
+
case "HKQuantityTypeIdentifierDistanceSkatingSports":
|
|
249
|
+
self = .hkquantitytypeidentifierdistanceskatingsports
|
|
250
|
+
case "HKQuantityTypeIdentifierEstimatedWorkoutEffortScore":
|
|
251
|
+
self = .hkquantitytypeidentifierestimatedworkouteffortscore
|
|
252
|
+
case "HKQuantityTypeIdentifierPaddleSportsSpeed":
|
|
253
|
+
self = .hkquantitytypeidentifierpaddlesportsspeed
|
|
254
|
+
case "HKQuantityTypeIdentifierRowingSpeed":
|
|
255
|
+
self = .hkquantitytypeidentifierrowingspeed
|
|
256
|
+
case "HKQuantityTypeIdentifierWorkoutEffortScore":
|
|
257
|
+
self = .hkquantitytypeidentifierworkouteffortscore
|
|
258
|
+
default:
|
|
259
|
+
return nil
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Get the String value this QuantityTypeIdentifier represents.
|
|
265
|
+
*/
|
|
266
|
+
var stringValue: String {
|
|
267
|
+
switch self {
|
|
268
|
+
case .hkquantitytypeidentifierwalkingheartrateaverage:
|
|
269
|
+
return "HKQuantityTypeIdentifierWalkingHeartRateAverage"
|
|
270
|
+
case .hkquantitytypeidentifierbodymassindex:
|
|
271
|
+
return "HKQuantityTypeIdentifierBodyMassIndex"
|
|
272
|
+
case .hkquantitytypeidentifierbodyfatpercentage:
|
|
273
|
+
return "HKQuantityTypeIdentifierBodyFatPercentage"
|
|
274
|
+
case .hkquantitytypeidentifierheight:
|
|
275
|
+
return "HKQuantityTypeIdentifierHeight"
|
|
276
|
+
case .hkquantitytypeidentifierbodymass:
|
|
277
|
+
return "HKQuantityTypeIdentifierBodyMass"
|
|
278
|
+
case .hkquantitytypeidentifierleanbodymass:
|
|
279
|
+
return "HKQuantityTypeIdentifierLeanBodyMass"
|
|
280
|
+
case .hkquantitytypeidentifierwaistcircumference:
|
|
281
|
+
return "HKQuantityTypeIdentifierWaistCircumference"
|
|
282
|
+
case .hkquantitytypeidentifierstepcount:
|
|
283
|
+
return "HKQuantityTypeIdentifierStepCount"
|
|
284
|
+
case .hkquantitytypeidentifierdistancewalkingrunning:
|
|
285
|
+
return "HKQuantityTypeIdentifierDistanceWalkingRunning"
|
|
286
|
+
case .hkquantitytypeidentifierdistancecycling:
|
|
287
|
+
return "HKQuantityTypeIdentifierDistanceCycling"
|
|
288
|
+
case .hkquantitytypeidentifierdistancewheelchair:
|
|
289
|
+
return "HKQuantityTypeIdentifierDistanceWheelchair"
|
|
290
|
+
case .hkquantitytypeidentifierbasalenergyburned:
|
|
291
|
+
return "HKQuantityTypeIdentifierBasalEnergyBurned"
|
|
292
|
+
case .hkquantitytypeidentifieractiveenergyburned:
|
|
293
|
+
return "HKQuantityTypeIdentifierActiveEnergyBurned"
|
|
294
|
+
case .hkquantitytypeidentifierflightsclimbed:
|
|
295
|
+
return "HKQuantityTypeIdentifierFlightsClimbed"
|
|
296
|
+
case .hkquantitytypeidentifiernikefuel:
|
|
297
|
+
return "HKQuantityTypeIdentifierNikeFuel"
|
|
298
|
+
case .hkquantitytypeidentifierappleexercisetime:
|
|
299
|
+
return "HKQuantityTypeIdentifierAppleExerciseTime"
|
|
300
|
+
case .hkquantitytypeidentifierpushcount:
|
|
301
|
+
return "HKQuantityTypeIdentifierPushCount"
|
|
302
|
+
case .hkquantitytypeidentifierdistanceswimming:
|
|
303
|
+
return "HKQuantityTypeIdentifierDistanceSwimming"
|
|
304
|
+
case .hkquantitytypeidentifierswimmingstrokecount:
|
|
305
|
+
return "HKQuantityTypeIdentifierSwimmingStrokeCount"
|
|
306
|
+
case .hkquantitytypeidentifiervo2max:
|
|
307
|
+
return "HKQuantityTypeIdentifierVO2Max"
|
|
308
|
+
case .hkquantitytypeidentifierdistancedownhillsnowsports:
|
|
309
|
+
return "HKQuantityTypeIdentifierDistanceDownhillSnowSports"
|
|
310
|
+
case .hkquantitytypeidentifierapplestandtime:
|
|
311
|
+
return "HKQuantityTypeIdentifierAppleStandTime"
|
|
312
|
+
case .hkquantitytypeidentifierheartrate:
|
|
313
|
+
return "HKQuantityTypeIdentifierHeartRate"
|
|
314
|
+
case .hkquantitytypeidentifierbodytemperature:
|
|
315
|
+
return "HKQuantityTypeIdentifierBodyTemperature"
|
|
316
|
+
case .hkquantitytypeidentifierbasalbodytemperature:
|
|
317
|
+
return "HKQuantityTypeIdentifierBasalBodyTemperature"
|
|
318
|
+
case .hkquantitytypeidentifierbloodpressuresystolic:
|
|
319
|
+
return "HKQuantityTypeIdentifierBloodPressureSystolic"
|
|
320
|
+
case .hkquantitytypeidentifierbloodpressurediastolic:
|
|
321
|
+
return "HKQuantityTypeIdentifierBloodPressureDiastolic"
|
|
322
|
+
case .hkquantitytypeidentifierrespiratoryrate:
|
|
323
|
+
return "HKQuantityTypeIdentifierRespiratoryRate"
|
|
324
|
+
case .hkquantitytypeidentifierrestingheartrate:
|
|
325
|
+
return "HKQuantityTypeIdentifierRestingHeartRate"
|
|
326
|
+
case .hkquantitytypeidentifierheartratevariabilitysdnn:
|
|
327
|
+
return "HKQuantityTypeIdentifierHeartRateVariabilitySDNN"
|
|
328
|
+
case .hkquantitytypeidentifieroxygensaturation:
|
|
329
|
+
return "HKQuantityTypeIdentifierOxygenSaturation"
|
|
330
|
+
case .hkquantitytypeidentifierperipheralperfusionindex:
|
|
331
|
+
return "HKQuantityTypeIdentifierPeripheralPerfusionIndex"
|
|
332
|
+
case .hkquantitytypeidentifierbloodglucose:
|
|
333
|
+
return "HKQuantityTypeIdentifierBloodGlucose"
|
|
334
|
+
case .hkquantitytypeidentifiernumberoftimesfallen:
|
|
335
|
+
return "HKQuantityTypeIdentifierNumberOfTimesFallen"
|
|
336
|
+
case .hkquantitytypeidentifierelectrodermalactivity:
|
|
337
|
+
return "HKQuantityTypeIdentifierElectrodermalActivity"
|
|
338
|
+
case .hkquantitytypeidentifierinhalerusage:
|
|
339
|
+
return "HKQuantityTypeIdentifierInhalerUsage"
|
|
340
|
+
case .hkquantitytypeidentifierinsulindelivery:
|
|
341
|
+
return "HKQuantityTypeIdentifierInsulinDelivery"
|
|
342
|
+
case .hkquantitytypeidentifierbloodalcoholcontent:
|
|
343
|
+
return "HKQuantityTypeIdentifierBloodAlcoholContent"
|
|
344
|
+
case .hkquantitytypeidentifierforcedvitalcapacity:
|
|
345
|
+
return "HKQuantityTypeIdentifierForcedVitalCapacity"
|
|
346
|
+
case .hkquantitytypeidentifierforcedexpiratoryvolume1:
|
|
347
|
+
return "HKQuantityTypeIdentifierForcedExpiratoryVolume1"
|
|
348
|
+
case .hkquantitytypeidentifierpeakexpiratoryflowrate:
|
|
349
|
+
return "HKQuantityTypeIdentifierPeakExpiratoryFlowRate"
|
|
350
|
+
case .hkquantitytypeidentifierenvironmentalaudioexposure:
|
|
351
|
+
return "HKQuantityTypeIdentifierEnvironmentalAudioExposure"
|
|
352
|
+
case .hkquantitytypeidentifierheadphoneaudioexposure:
|
|
353
|
+
return "HKQuantityTypeIdentifierHeadphoneAudioExposure"
|
|
354
|
+
case .hkquantitytypeidentifierdietaryfattotal:
|
|
355
|
+
return "HKQuantityTypeIdentifierDietaryFatTotal"
|
|
356
|
+
case .hkquantitytypeidentifierdietaryfatpolyunsaturated:
|
|
357
|
+
return "HKQuantityTypeIdentifierDietaryFatPolyunsaturated"
|
|
358
|
+
case .hkquantitytypeidentifierdietaryfatmonounsaturated:
|
|
359
|
+
return "HKQuantityTypeIdentifierDietaryFatMonounsaturated"
|
|
360
|
+
case .hkquantitytypeidentifierdietaryfatsaturated:
|
|
361
|
+
return "HKQuantityTypeIdentifierDietaryFatSaturated"
|
|
362
|
+
case .hkquantitytypeidentifierdietarycholesterol:
|
|
363
|
+
return "HKQuantityTypeIdentifierDietaryCholesterol"
|
|
364
|
+
case .hkquantitytypeidentifierdietarysodium:
|
|
365
|
+
return "HKQuantityTypeIdentifierDietarySodium"
|
|
366
|
+
case .hkquantitytypeidentifierdietarycarbohydrates:
|
|
367
|
+
return "HKQuantityTypeIdentifierDietaryCarbohydrates"
|
|
368
|
+
case .hkquantitytypeidentifierdietaryfiber:
|
|
369
|
+
return "HKQuantityTypeIdentifierDietaryFiber"
|
|
370
|
+
case .hkquantitytypeidentifierdietarysugar:
|
|
371
|
+
return "HKQuantityTypeIdentifierDietarySugar"
|
|
372
|
+
case .hkquantitytypeidentifierdietaryenergyconsumed:
|
|
373
|
+
return "HKQuantityTypeIdentifierDietaryEnergyConsumed"
|
|
374
|
+
case .hkquantitytypeidentifierdietaryprotein:
|
|
375
|
+
return "HKQuantityTypeIdentifierDietaryProtein"
|
|
376
|
+
case .hkquantitytypeidentifierdietaryvitamina:
|
|
377
|
+
return "HKQuantityTypeIdentifierDietaryVitaminA"
|
|
378
|
+
case .hkquantitytypeidentifierdietaryvitaminb6:
|
|
379
|
+
return "HKQuantityTypeIdentifierDietaryVitaminB6"
|
|
380
|
+
case .hkquantitytypeidentifierdietaryvitaminb12:
|
|
381
|
+
return "HKQuantityTypeIdentifierDietaryVitaminB12"
|
|
382
|
+
case .hkquantitytypeidentifierdietaryvitaminc:
|
|
383
|
+
return "HKQuantityTypeIdentifierDietaryVitaminC"
|
|
384
|
+
case .hkquantitytypeidentifierdietaryvitamind:
|
|
385
|
+
return "HKQuantityTypeIdentifierDietaryVitaminD"
|
|
386
|
+
case .hkquantitytypeidentifierdietaryvitamine:
|
|
387
|
+
return "HKQuantityTypeIdentifierDietaryVitaminE"
|
|
388
|
+
case .hkquantitytypeidentifierdietaryvitamink:
|
|
389
|
+
return "HKQuantityTypeIdentifierDietaryVitaminK"
|
|
390
|
+
case .hkquantitytypeidentifierdietarycalcium:
|
|
391
|
+
return "HKQuantityTypeIdentifierDietaryCalcium"
|
|
392
|
+
case .hkquantitytypeidentifierdietaryiron:
|
|
393
|
+
return "HKQuantityTypeIdentifierDietaryIron"
|
|
394
|
+
case .hkquantitytypeidentifierdietarythiamin:
|
|
395
|
+
return "HKQuantityTypeIdentifierDietaryThiamin"
|
|
396
|
+
case .hkquantitytypeidentifierdietaryriboflavin:
|
|
397
|
+
return "HKQuantityTypeIdentifierDietaryRiboflavin"
|
|
398
|
+
case .hkquantitytypeidentifierdietaryniacin:
|
|
399
|
+
return "HKQuantityTypeIdentifierDietaryNiacin"
|
|
400
|
+
case .hkquantitytypeidentifierdietaryfolate:
|
|
401
|
+
return "HKQuantityTypeIdentifierDietaryFolate"
|
|
402
|
+
case .hkquantitytypeidentifierdietarybiotin:
|
|
403
|
+
return "HKQuantityTypeIdentifierDietaryBiotin"
|
|
404
|
+
case .hkquantitytypeidentifierdietarypantothenicacid:
|
|
405
|
+
return "HKQuantityTypeIdentifierDietaryPantothenicAcid"
|
|
406
|
+
case .hkquantitytypeidentifierdietaryphosphorus:
|
|
407
|
+
return "HKQuantityTypeIdentifierDietaryPhosphorus"
|
|
408
|
+
case .hkquantitytypeidentifierdietaryiodine:
|
|
409
|
+
return "HKQuantityTypeIdentifierDietaryIodine"
|
|
410
|
+
case .hkquantitytypeidentifierdietarymagnesium:
|
|
411
|
+
return "HKQuantityTypeIdentifierDietaryMagnesium"
|
|
412
|
+
case .hkquantitytypeidentifierdietaryzinc:
|
|
413
|
+
return "HKQuantityTypeIdentifierDietaryZinc"
|
|
414
|
+
case .hkquantitytypeidentifierdietaryselenium:
|
|
415
|
+
return "HKQuantityTypeIdentifierDietarySelenium"
|
|
416
|
+
case .hkquantitytypeidentifierdietarycopper:
|
|
417
|
+
return "HKQuantityTypeIdentifierDietaryCopper"
|
|
418
|
+
case .hkquantitytypeidentifierdietarymanganese:
|
|
419
|
+
return "HKQuantityTypeIdentifierDietaryManganese"
|
|
420
|
+
case .hkquantitytypeidentifierdietarychromium:
|
|
421
|
+
return "HKQuantityTypeIdentifierDietaryChromium"
|
|
422
|
+
case .hkquantitytypeidentifierdietarymolybdenum:
|
|
423
|
+
return "HKQuantityTypeIdentifierDietaryMolybdenum"
|
|
424
|
+
case .hkquantitytypeidentifierdietarychloride:
|
|
425
|
+
return "HKQuantityTypeIdentifierDietaryChloride"
|
|
426
|
+
case .hkquantitytypeidentifierdietarypotassium:
|
|
427
|
+
return "HKQuantityTypeIdentifierDietaryPotassium"
|
|
428
|
+
case .hkquantitytypeidentifierdietarycaffeine:
|
|
429
|
+
return "HKQuantityTypeIdentifierDietaryCaffeine"
|
|
430
|
+
case .hkquantitytypeidentifierdietarywater:
|
|
431
|
+
return "HKQuantityTypeIdentifierDietaryWater"
|
|
432
|
+
case .hkquantitytypeidentifiersixminutewalktestdistance:
|
|
433
|
+
return "HKQuantityTypeIdentifierSixMinuteWalkTestDistance"
|
|
434
|
+
case .hkquantitytypeidentifierwalkingspeed:
|
|
435
|
+
return "HKQuantityTypeIdentifierWalkingSpeed"
|
|
436
|
+
case .hkquantitytypeidentifierwalkingsteplength:
|
|
437
|
+
return "HKQuantityTypeIdentifierWalkingStepLength"
|
|
438
|
+
case .hkquantitytypeidentifierwalkingasymmetrypercentage:
|
|
439
|
+
return "HKQuantityTypeIdentifierWalkingAsymmetryPercentage"
|
|
440
|
+
case .hkquantitytypeidentifierwalkingdoublesupportpercentage:
|
|
441
|
+
return "HKQuantityTypeIdentifierWalkingDoubleSupportPercentage"
|
|
442
|
+
case .hkquantitytypeidentifierstairascentspeed:
|
|
443
|
+
return "HKQuantityTypeIdentifierStairAscentSpeed"
|
|
444
|
+
case .hkquantitytypeidentifierstairdescentspeed:
|
|
445
|
+
return "HKQuantityTypeIdentifierStairDescentSpeed"
|
|
446
|
+
case .hkquantitytypeidentifieruvexposure:
|
|
447
|
+
return "HKQuantityTypeIdentifierUVExposure"
|
|
448
|
+
case .hkquantitytypeidentifierapplemovetime:
|
|
449
|
+
return "HKQuantityTypeIdentifierAppleMoveTime"
|
|
450
|
+
case .hkquantitytypeidentifierapplewalkingsteadiness:
|
|
451
|
+
return "HKQuantityTypeIdentifierAppleWalkingSteadiness"
|
|
452
|
+
case .hkquantitytypeidentifiernumberofalcoholicbeverages:
|
|
453
|
+
return "HKQuantityTypeIdentifierNumberOfAlcoholicBeverages"
|
|
454
|
+
case .hkquantitytypeidentifieratrialfibrillationburden:
|
|
455
|
+
return "HKQuantityTypeIdentifierAtrialFibrillationBurden"
|
|
456
|
+
case .hkquantitytypeidentifierunderwaterdepth:
|
|
457
|
+
return "HKQuantityTypeIdentifierUnderwaterDepth"
|
|
458
|
+
case .hkquantitytypeidentifierwatertemperature:
|
|
459
|
+
return "HKQuantityTypeIdentifierWaterTemperature"
|
|
460
|
+
case .hkquantitytypeidentifierapplesleepingwristtemperature:
|
|
461
|
+
return "HKQuantityTypeIdentifierAppleSleepingWristTemperature"
|
|
462
|
+
case .hkquantitytypeidentifiertimeindaylight:
|
|
463
|
+
return "HKQuantityTypeIdentifierTimeInDaylight"
|
|
464
|
+
case .hkquantitytypeidentifierphysicaleffort:
|
|
465
|
+
return "HKQuantityTypeIdentifierPhysicalEffort"
|
|
466
|
+
case .hkquantitytypeidentifiercyclingspeed:
|
|
467
|
+
return "HKQuantityTypeIdentifierCyclingSpeed"
|
|
468
|
+
case .hkquantitytypeidentifiercyclingpower:
|
|
469
|
+
return "HKQuantityTypeIdentifierCyclingPower"
|
|
470
|
+
case .hkquantitytypeidentifiercyclingfunctionalthresholdpower:
|
|
471
|
+
return "HKQuantityTypeIdentifierCyclingFunctionalThresholdPower"
|
|
472
|
+
case .hkquantitytypeidentifiercyclingcadence:
|
|
473
|
+
return "HKQuantityTypeIdentifierCyclingCadence"
|
|
474
|
+
case .hkquantitytypeidentifierenvironmentalsoundreduction:
|
|
475
|
+
return "HKQuantityTypeIdentifierEnvironmentalSoundReduction"
|
|
476
|
+
case .hkquantitytypeidentifierheartraterecoveryoneminute:
|
|
477
|
+
return "HKQuantityTypeIdentifierHeartRateRecoveryOneMinute"
|
|
478
|
+
case .hkquantitytypeidentifierrunninggroundcontacttime:
|
|
479
|
+
return "HKQuantityTypeIdentifierRunningGroundContactTime"
|
|
480
|
+
case .hkquantitytypeidentifierrunningstridelength:
|
|
481
|
+
return "HKQuantityTypeIdentifierRunningStrideLength"
|
|
482
|
+
case .hkquantitytypeidentifierrunningpower:
|
|
483
|
+
return "HKQuantityTypeIdentifierRunningPower"
|
|
484
|
+
case .hkquantitytypeidentifierrunningverticaloscillation:
|
|
485
|
+
return "HKQuantityTypeIdentifierRunningVerticalOscillation"
|
|
486
|
+
case .hkquantitytypeidentifierrunningspeed:
|
|
487
|
+
return "HKQuantityTypeIdentifierRunningSpeed"
|
|
488
|
+
case .hkquantitytypeidentifiercrosscountryskiingspeed:
|
|
489
|
+
return "HKQuantityTypeIdentifierCrossCountrySkiingSpeed"
|
|
490
|
+
case .hkquantitytypeidentifierdistancecrosscountryskiing:
|
|
491
|
+
return "HKQuantityTypeIdentifierDistanceCrossCountrySkiing"
|
|
492
|
+
case .hkquantitytypeidentifierdistancepaddlesports:
|
|
493
|
+
return "HKQuantityTypeIdentifierDistancePaddleSports"
|
|
494
|
+
case .hkquantitytypeidentifierdistancerowing:
|
|
495
|
+
return "HKQuantityTypeIdentifierDistanceRowing"
|
|
496
|
+
case .hkquantitytypeidentifierdistanceskatingsports:
|
|
497
|
+
return "HKQuantityTypeIdentifierDistanceSkatingSports"
|
|
498
|
+
case .hkquantitytypeidentifierestimatedworkouteffortscore:
|
|
499
|
+
return "HKQuantityTypeIdentifierEstimatedWorkoutEffortScore"
|
|
500
|
+
case .hkquantitytypeidentifierpaddlesportsspeed:
|
|
501
|
+
return "HKQuantityTypeIdentifierPaddleSportsSpeed"
|
|
502
|
+
case .hkquantitytypeidentifierrowingspeed:
|
|
503
|
+
return "HKQuantityTypeIdentifierRowingSpeed"
|
|
504
|
+
case .hkquantitytypeidentifierworkouteffortscore:
|
|
505
|
+
return "HKQuantityTypeIdentifierWorkoutEffortScore"
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
}
|