@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,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CategoryValueAppleStandHour = exports.CategoryValueLowCardioFitnessEvent = exports.CategoryValueNotApplicable = exports.CategoryValueSeverity = exports.CategoryValuePresence = exports.CategoryValueAppetiteChanges = exports.CategoryValueSleepAnalysis = exports.CategoryValueOvulationTestResult = exports.CategoryValueMenstrualFlow = exports.CategoryValueCervicalMucusQuality = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepregnancytestresult Apple Docs }
|
|
6
|
+
*/
|
|
7
|
+
var CategoryValuePregnancyTestResult;
|
|
8
|
+
(function (CategoryValuePregnancyTestResult) {
|
|
9
|
+
CategoryValuePregnancyTestResult[CategoryValuePregnancyTestResult["positive"] = 2] = "positive";
|
|
10
|
+
CategoryValuePregnancyTestResult[CategoryValuePregnancyTestResult["negative"] = 1] = "negative";
|
|
11
|
+
CategoryValuePregnancyTestResult[CategoryValuePregnancyTestResult["indeterminate"] = 3] = "indeterminate";
|
|
12
|
+
})(CategoryValuePregnancyTestResult || (CategoryValuePregnancyTestResult = {}));
|
|
13
|
+
/**
|
|
14
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluecervicalmucusquality Apple Docs }
|
|
15
|
+
*/
|
|
16
|
+
var CategoryValueCervicalMucusQuality;
|
|
17
|
+
(function (CategoryValueCervicalMucusQuality) {
|
|
18
|
+
CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["dry"] = 1] = "dry";
|
|
19
|
+
CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["sticky"] = 2] = "sticky";
|
|
20
|
+
CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["creamy"] = 3] = "creamy";
|
|
21
|
+
CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["watery"] = 4] = "watery";
|
|
22
|
+
CategoryValueCervicalMucusQuality[CategoryValueCervicalMucusQuality["eggWhite"] = 5] = "eggWhite";
|
|
23
|
+
})(CategoryValueCervicalMucusQuality || (exports.CategoryValueCervicalMucusQuality = CategoryValueCervicalMucusQuality = {}));
|
|
24
|
+
/**
|
|
25
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluemenstrualflow Apple Docs }
|
|
26
|
+
*/
|
|
27
|
+
var CategoryValueMenstrualFlow;
|
|
28
|
+
(function (CategoryValueMenstrualFlow) {
|
|
29
|
+
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["unspecified"] = 1] = "unspecified";
|
|
30
|
+
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["none"] = 5] = "none";
|
|
31
|
+
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["light"] = 2] = "light";
|
|
32
|
+
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["medium"] = 3] = "medium";
|
|
33
|
+
CategoryValueMenstrualFlow[CategoryValueMenstrualFlow["heavy"] = 4] = "heavy";
|
|
34
|
+
})(CategoryValueMenstrualFlow || (exports.CategoryValueMenstrualFlow = CategoryValueMenstrualFlow = {}));
|
|
35
|
+
/**
|
|
36
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueovulationtestresult Apple Docs }
|
|
37
|
+
*/
|
|
38
|
+
var CategoryValueOvulationTestResult;
|
|
39
|
+
(function (CategoryValueOvulationTestResult) {
|
|
40
|
+
CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["negative"] = 1] = "negative";
|
|
41
|
+
CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["luteinizingHormoneSurge"] = 2] = "luteinizingHormoneSurge";
|
|
42
|
+
CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["indeterminate"] = 3] = "indeterminate";
|
|
43
|
+
CategoryValueOvulationTestResult[CategoryValueOvulationTestResult["estrogenSurge"] = 4] = "estrogenSurge";
|
|
44
|
+
})(CategoryValueOvulationTestResult || (exports.CategoryValueOvulationTestResult = CategoryValueOvulationTestResult = {}));
|
|
45
|
+
/**
|
|
46
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluesleepanalysis Apple Docs }
|
|
47
|
+
*/
|
|
48
|
+
var CategoryValueSleepAnalysis;
|
|
49
|
+
(function (CategoryValueSleepAnalysis) {
|
|
50
|
+
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["inBed"] = 0] = "inBed";
|
|
51
|
+
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepUnspecified"] = 1] = "asleepUnspecified";
|
|
52
|
+
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["awake"] = 2] = "awake";
|
|
53
|
+
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepCore"] = 3] = "asleepCore";
|
|
54
|
+
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepDeep"] = 4] = "asleepDeep";
|
|
55
|
+
CategoryValueSleepAnalysis[CategoryValueSleepAnalysis["asleepREM"] = 5] = "asleepREM";
|
|
56
|
+
})(CategoryValueSleepAnalysis || (exports.CategoryValueSleepAnalysis = CategoryValueSleepAnalysis = {}));
|
|
57
|
+
/**
|
|
58
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueappetitechanges Apple Docs}
|
|
59
|
+
*/
|
|
60
|
+
var CategoryValueAppetiteChanges;
|
|
61
|
+
(function (CategoryValueAppetiteChanges) {
|
|
62
|
+
CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["decreased"] = 2] = "decreased";
|
|
63
|
+
CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["increased"] = 3] = "increased";
|
|
64
|
+
CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["noChange"] = 1] = "noChange";
|
|
65
|
+
CategoryValueAppetiteChanges[CategoryValueAppetiteChanges["unspecified"] = 0] = "unspecified";
|
|
66
|
+
})(CategoryValueAppetiteChanges || (exports.CategoryValueAppetiteChanges = CategoryValueAppetiteChanges = {}));
|
|
67
|
+
/**
|
|
68
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvaluepresence Apple Docs}
|
|
69
|
+
*/
|
|
70
|
+
var CategoryValuePresence;
|
|
71
|
+
(function (CategoryValuePresence) {
|
|
72
|
+
CategoryValuePresence[CategoryValuePresence["notPresent"] = 1] = "notPresent";
|
|
73
|
+
CategoryValuePresence[CategoryValuePresence["present"] = 0] = "present";
|
|
74
|
+
})(CategoryValuePresence || (exports.CategoryValuePresence = CategoryValuePresence = {}));
|
|
75
|
+
/**
|
|
76
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalueseverity Apple Docs }
|
|
77
|
+
*/
|
|
78
|
+
var CategoryValueSeverity;
|
|
79
|
+
(function (CategoryValueSeverity) {
|
|
80
|
+
CategoryValueSeverity[CategoryValueSeverity["notPresent"] = 1] = "notPresent";
|
|
81
|
+
CategoryValueSeverity[CategoryValueSeverity["mild"] = 2] = "mild";
|
|
82
|
+
CategoryValueSeverity[CategoryValueSeverity["moderate"] = 3] = "moderate";
|
|
83
|
+
CategoryValueSeverity[CategoryValueSeverity["severe"] = 4] = "severe";
|
|
84
|
+
CategoryValueSeverity[CategoryValueSeverity["unspecified"] = 0] = "unspecified";
|
|
85
|
+
})(CategoryValueSeverity || (exports.CategoryValueSeverity = CategoryValueSeverity = {}));
|
|
86
|
+
/**
|
|
87
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkcategoryvalue/notapplicable Apple Docs }
|
|
88
|
+
*/
|
|
89
|
+
var CategoryValueNotApplicable;
|
|
90
|
+
(function (CategoryValueNotApplicable) {
|
|
91
|
+
CategoryValueNotApplicable[CategoryValueNotApplicable["notApplicable"] = 0] = "notApplicable";
|
|
92
|
+
})(CategoryValueNotApplicable || (exports.CategoryValueNotApplicable = CategoryValueNotApplicable = {}));
|
|
93
|
+
var CategoryValueLowCardioFitnessEvent;
|
|
94
|
+
(function (CategoryValueLowCardioFitnessEvent) {
|
|
95
|
+
CategoryValueLowCardioFitnessEvent[CategoryValueLowCardioFitnessEvent["lowFitness"] = 1] = "lowFitness";
|
|
96
|
+
})(CategoryValueLowCardioFitnessEvent || (exports.CategoryValueLowCardioFitnessEvent = CategoryValueLowCardioFitnessEvent = {}));
|
|
97
|
+
var CategoryValueAppleStandHour;
|
|
98
|
+
(function (CategoryValueAppleStandHour) {
|
|
99
|
+
CategoryValueAppleStandHour[CategoryValueAppleStandHour["stood"] = 0] = "stood";
|
|
100
|
+
CategoryValueAppleStandHour[CategoryValueAppleStandHour["idle"] = 1] = "idle";
|
|
101
|
+
})(CategoryValueAppleStandHour || (exports.CategoryValueAppleStandHour = CategoryValueAppleStandHour = {}));
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WheelchairUse = exports.FitzpatrickSkinType = exports.BiologicalSex = exports.BloodType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkbloodtype Apple Docs }
|
|
6
|
+
*/
|
|
7
|
+
var BloodType;
|
|
8
|
+
(function (BloodType) {
|
|
9
|
+
BloodType[BloodType["notSet"] = 0] = "notSet";
|
|
10
|
+
BloodType[BloodType["aPositive"] = 1] = "aPositive";
|
|
11
|
+
BloodType[BloodType["aNegative"] = 2] = "aNegative";
|
|
12
|
+
BloodType[BloodType["bPositive"] = 3] = "bPositive";
|
|
13
|
+
BloodType[BloodType["bNegative"] = 4] = "bNegative";
|
|
14
|
+
BloodType[BloodType["abPositive"] = 5] = "abPositive";
|
|
15
|
+
BloodType[BloodType["abNegative"] = 6] = "abNegative";
|
|
16
|
+
BloodType[BloodType["oPositive"] = 7] = "oPositive";
|
|
17
|
+
BloodType[BloodType["oNegative"] = 8] = "oNegative";
|
|
18
|
+
})(BloodType || (exports.BloodType = BloodType = {}));
|
|
19
|
+
/**
|
|
20
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkbiologicalsex Apple Docs }
|
|
21
|
+
*/
|
|
22
|
+
var BiologicalSex;
|
|
23
|
+
(function (BiologicalSex) {
|
|
24
|
+
BiologicalSex[BiologicalSex["notSet"] = 0] = "notSet";
|
|
25
|
+
BiologicalSex[BiologicalSex["female"] = 1] = "female";
|
|
26
|
+
BiologicalSex[BiologicalSex["male"] = 2] = "male";
|
|
27
|
+
BiologicalSex[BiologicalSex["other"] = 3] = "other";
|
|
28
|
+
})(BiologicalSex || (exports.BiologicalSex = BiologicalSex = {}));
|
|
29
|
+
/**
|
|
30
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkfitzpatrickskintype Apple Docs }
|
|
31
|
+
*/
|
|
32
|
+
var FitzpatrickSkinType;
|
|
33
|
+
(function (FitzpatrickSkinType) {
|
|
34
|
+
FitzpatrickSkinType[FitzpatrickSkinType["notSet"] = 0] = "notSet";
|
|
35
|
+
FitzpatrickSkinType[FitzpatrickSkinType["I"] = 1] = "I";
|
|
36
|
+
FitzpatrickSkinType[FitzpatrickSkinType["II"] = 2] = "II";
|
|
37
|
+
FitzpatrickSkinType[FitzpatrickSkinType["III"] = 3] = "III";
|
|
38
|
+
FitzpatrickSkinType[FitzpatrickSkinType["IV"] = 4] = "IV";
|
|
39
|
+
FitzpatrickSkinType[FitzpatrickSkinType["V"] = 5] = "V";
|
|
40
|
+
FitzpatrickSkinType[FitzpatrickSkinType["VI"] = 6] = "VI";
|
|
41
|
+
})(FitzpatrickSkinType || (exports.FitzpatrickSkinType = FitzpatrickSkinType = {}));
|
|
42
|
+
// Maps directly to https://developer.apple.com/documentation/healthkit/hkwheelchairuse
|
|
43
|
+
var WheelchairUse;
|
|
44
|
+
(function (WheelchairUse) {
|
|
45
|
+
WheelchairUse[WheelchairUse["notSet"] = 0] = "notSet";
|
|
46
|
+
WheelchairUse[WheelchairUse["notUsingWheelchair"] = 1] = "notUsingWheelchair";
|
|
47
|
+
WheelchairUse[WheelchairUse["usingWheelchair"] = 2] = "usingWheelchair";
|
|
48
|
+
})(WheelchairUse || (exports.WheelchairUse = WheelchairUse = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HeartbeatSeriesTypeIdentifier = exports.StateOfMindTypeIdentifier = exports.WorkoutRouteTypeIdentifier = exports.WorkoutTypeIdentifier = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Represents a workout type identifier.
|
|
6
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkworkouttypeidentifier Apple Docs HKWorkoutTypeIdentifier}
|
|
7
|
+
*/
|
|
8
|
+
exports.WorkoutTypeIdentifier = 'HKWorkoutTypeIdentifier';
|
|
9
|
+
/**
|
|
10
|
+
* Represents a workout route type identifier.
|
|
11
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKWorkoutRouteTypeIdentifier Apple Docs WorkoutRouteTypeIdentifier}
|
|
12
|
+
*/
|
|
13
|
+
exports.WorkoutRouteTypeIdentifier = 'HKWorkoutRouteTypeIdentifier';
|
|
14
|
+
/**
|
|
15
|
+
* Represents a state of mind type identifier.
|
|
16
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkstateofmindtype Apple Docs HKStateOfMindType}
|
|
17
|
+
*/
|
|
18
|
+
exports.StateOfMindTypeIdentifier = 'HKStateOfMindTypeIdentifier';
|
|
19
|
+
/**
|
|
20
|
+
* Represents a series sample containing heartbeat data..
|
|
21
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKDataTypeIdentifierHeartbeatSeries Apple Docs DataTypeIdentifierHeartbeatSeries}
|
|
22
|
+
*/
|
|
23
|
+
exports.HeartbeatSeriesTypeIdentifier = 'HKDataTypeIdentifierHeartbeatSeries';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* TypeScript utility types for verifying that two interfaces have matching method signatures.
|
|
4
|
+
*
|
|
5
|
+
* This is particularly useful for ensuring that typed and untyped versions of interfaces
|
|
6
|
+
* stay in sync when one has generics and the other doesn't.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import type { InterfaceAssertion } from "./InterfaceVerification";
|
|
11
|
+
*
|
|
12
|
+
* interface BaseModule extends HybridObject<{ ios: "swift" }> {
|
|
13
|
+
* getData(id: string): Promise<string>;
|
|
14
|
+
* }
|
|
15
|
+
*
|
|
16
|
+
* interface BaseModuleTyped {
|
|
17
|
+
* getData<T extends string>(id: T): Promise<string>;
|
|
18
|
+
* }
|
|
19
|
+
*
|
|
20
|
+
* // This will cause a TypeScript error if the interfaces don't match
|
|
21
|
+
* const _verification: InterfaceAssertion<BaseModule, BaseModuleTyped, keyof HybridObject> = true;
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Example usage of the InterfaceVerification utility
|
|
4
|
+
*
|
|
5
|
+
* This file demonstrates how to use the reusable interface verification utility
|
|
6
|
+
* to ensure that typed and untyped versions of interfaces stay in sync.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
// Verification: This will cause a TypeScript error if the interfaces don't match
|
|
10
|
+
const _exampleVerification = true;
|
|
11
|
+
// Verification for optional parameters
|
|
12
|
+
const _configVerification = true;
|
|
13
|
+
// This will show a TypeScript error indicating the mismatch
|
|
14
|
+
// Uncomment to see the error:
|
|
15
|
+
// const _badVerification: InterfaceAssertion<BadModule, BadModuleTyped, keyof HybridObject> = true;
|
|
16
|
+
/**
|
|
17
|
+
* Usage Instructions:
|
|
18
|
+
*
|
|
19
|
+
* 1. Import the InterfaceAssertion type from InterfaceVerification
|
|
20
|
+
* 2. Create your base interface (extending HybridObject)
|
|
21
|
+
* 3. Create your typed interface (with generics)
|
|
22
|
+
* 4. Add a verification line:
|
|
23
|
+
* const _verification: InterfaceAssertion<BaseInterface, TypedInterface, keyof HybridObject> = true;
|
|
24
|
+
*
|
|
25
|
+
* The verification will:
|
|
26
|
+
* - Check that both interfaces have the same method names
|
|
27
|
+
* - Check that corresponding methods have the same number of parameters
|
|
28
|
+
* - Show descriptive TypeScript errors if there are mismatches
|
|
29
|
+
*
|
|
30
|
+
* Error Types:
|
|
31
|
+
* - "Interface mismatch detected" - method names don't match
|
|
32
|
+
* - "Parameter count mismatch detected" - parameter counts don't match
|
|
33
|
+
*/
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HeartRateMotionContext = exports.InsulinDeliveryReason = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkinsulindeliveryreason Apple Docs }
|
|
6
|
+
*/
|
|
7
|
+
var InsulinDeliveryReason;
|
|
8
|
+
(function (InsulinDeliveryReason) {
|
|
9
|
+
InsulinDeliveryReason[InsulinDeliveryReason["basal"] = 1] = "basal";
|
|
10
|
+
InsulinDeliveryReason[InsulinDeliveryReason["bolus"] = 2] = "bolus";
|
|
11
|
+
})(InsulinDeliveryReason || (exports.InsulinDeliveryReason = InsulinDeliveryReason = {}));
|
|
12
|
+
var HeartRateMotionContext;
|
|
13
|
+
(function (HeartRateMotionContext) {
|
|
14
|
+
HeartRateMotionContext[HeartRateMotionContext["active"] = 2] = "active";
|
|
15
|
+
HeartRateMotionContext[HeartRateMotionContext["notSet"] = 0] = "notSet";
|
|
16
|
+
HeartRateMotionContext[HeartRateMotionContext["sedentary"] = 1] = "sedentary";
|
|
17
|
+
})(HeartRateMotionContext || (exports.HeartRateMotionContext = HeartRateMotionContext = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AudiogramTypeIdentifier = exports.ActivitySummaryTypeIdentifier = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Represents a type that identifies activity summary objects.
|
|
6
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}
|
|
7
|
+
*/
|
|
8
|
+
exports.ActivitySummaryTypeIdentifier = 'ActivitySummaryTypeIdentifier';
|
|
9
|
+
/**
|
|
10
|
+
* Represents an audiogram type identifier.
|
|
11
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}
|
|
12
|
+
*/
|
|
13
|
+
exports.AudiogramTypeIdentifier = 'HKAudiogramSampleType';
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StateOfMindAssociation = exports.StateOfMindKind = exports.StateOfMindLabel = exports.StateOfMindValenceClassification = void 0;
|
|
4
|
+
var StateOfMindValenceClassification;
|
|
5
|
+
(function (StateOfMindValenceClassification) {
|
|
6
|
+
StateOfMindValenceClassification[StateOfMindValenceClassification["veryUnpleasant"] = 1] = "veryUnpleasant";
|
|
7
|
+
StateOfMindValenceClassification[StateOfMindValenceClassification["unpleasant"] = 2] = "unpleasant";
|
|
8
|
+
StateOfMindValenceClassification[StateOfMindValenceClassification["slightlyUnpleasant"] = 3] = "slightlyUnpleasant";
|
|
9
|
+
StateOfMindValenceClassification[StateOfMindValenceClassification["neutral"] = 4] = "neutral";
|
|
10
|
+
StateOfMindValenceClassification[StateOfMindValenceClassification["slightlyPleasant"] = 5] = "slightlyPleasant";
|
|
11
|
+
StateOfMindValenceClassification[StateOfMindValenceClassification["pleasant"] = 6] = "pleasant";
|
|
12
|
+
StateOfMindValenceClassification[StateOfMindValenceClassification["veryPleasant"] = 7] = "veryPleasant";
|
|
13
|
+
})(StateOfMindValenceClassification || (exports.StateOfMindValenceClassification = StateOfMindValenceClassification = {}));
|
|
14
|
+
/**
|
|
15
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkstateofmind/label Apple Docs}
|
|
16
|
+
*/
|
|
17
|
+
var StateOfMindLabel;
|
|
18
|
+
(function (StateOfMindLabel) {
|
|
19
|
+
StateOfMindLabel[StateOfMindLabel["amazed"] = 1] = "amazed";
|
|
20
|
+
StateOfMindLabel[StateOfMindLabel["amused"] = 2] = "amused";
|
|
21
|
+
StateOfMindLabel[StateOfMindLabel["angry"] = 3] = "angry";
|
|
22
|
+
StateOfMindLabel[StateOfMindLabel["anxious"] = 4] = "anxious";
|
|
23
|
+
StateOfMindLabel[StateOfMindLabel["ashamed"] = 5] = "ashamed";
|
|
24
|
+
StateOfMindLabel[StateOfMindLabel["brave"] = 6] = "brave";
|
|
25
|
+
StateOfMindLabel[StateOfMindLabel["calm"] = 7] = "calm";
|
|
26
|
+
StateOfMindLabel[StateOfMindLabel["content"] = 8] = "content";
|
|
27
|
+
StateOfMindLabel[StateOfMindLabel["disappointed"] = 9] = "disappointed";
|
|
28
|
+
StateOfMindLabel[StateOfMindLabel["discouraged"] = 10] = "discouraged";
|
|
29
|
+
StateOfMindLabel[StateOfMindLabel["disgusted"] = 11] = "disgusted";
|
|
30
|
+
StateOfMindLabel[StateOfMindLabel["embarrassed"] = 12] = "embarrassed";
|
|
31
|
+
StateOfMindLabel[StateOfMindLabel["excited"] = 13] = "excited";
|
|
32
|
+
StateOfMindLabel[StateOfMindLabel["frustrated"] = 14] = "frustrated";
|
|
33
|
+
StateOfMindLabel[StateOfMindLabel["grateful"] = 15] = "grateful";
|
|
34
|
+
StateOfMindLabel[StateOfMindLabel["guilty"] = 16] = "guilty";
|
|
35
|
+
StateOfMindLabel[StateOfMindLabel["happy"] = 17] = "happy";
|
|
36
|
+
StateOfMindLabel[StateOfMindLabel["hopeless"] = 18] = "hopeless";
|
|
37
|
+
StateOfMindLabel[StateOfMindLabel["irritated"] = 19] = "irritated";
|
|
38
|
+
StateOfMindLabel[StateOfMindLabel["jealous"] = 20] = "jealous";
|
|
39
|
+
StateOfMindLabel[StateOfMindLabel["joyful"] = 21] = "joyful";
|
|
40
|
+
StateOfMindLabel[StateOfMindLabel["lonely"] = 22] = "lonely";
|
|
41
|
+
StateOfMindLabel[StateOfMindLabel["passionate"] = 23] = "passionate";
|
|
42
|
+
StateOfMindLabel[StateOfMindLabel["peaceful"] = 24] = "peaceful";
|
|
43
|
+
StateOfMindLabel[StateOfMindLabel["proud"] = 25] = "proud";
|
|
44
|
+
StateOfMindLabel[StateOfMindLabel["relieved"] = 26] = "relieved";
|
|
45
|
+
StateOfMindLabel[StateOfMindLabel["sad"] = 27] = "sad";
|
|
46
|
+
StateOfMindLabel[StateOfMindLabel["scared"] = 28] = "scared";
|
|
47
|
+
StateOfMindLabel[StateOfMindLabel["stressed"] = 29] = "stressed";
|
|
48
|
+
StateOfMindLabel[StateOfMindLabel["surprised"] = 30] = "surprised";
|
|
49
|
+
StateOfMindLabel[StateOfMindLabel["worried"] = 31] = "worried";
|
|
50
|
+
StateOfMindLabel[StateOfMindLabel["annoyed"] = 32] = "annoyed";
|
|
51
|
+
StateOfMindLabel[StateOfMindLabel["confident"] = 33] = "confident";
|
|
52
|
+
StateOfMindLabel[StateOfMindLabel["drained"] = 34] = "drained";
|
|
53
|
+
StateOfMindLabel[StateOfMindLabel["hopeful"] = 35] = "hopeful";
|
|
54
|
+
StateOfMindLabel[StateOfMindLabel["indifferent"] = 36] = "indifferent";
|
|
55
|
+
StateOfMindLabel[StateOfMindLabel["overwhelmed"] = 37] = "overwhelmed";
|
|
56
|
+
StateOfMindLabel[StateOfMindLabel["satisfied"] = 38] = "satisfied";
|
|
57
|
+
})(StateOfMindLabel || (exports.StateOfMindLabel = StateOfMindLabel = {}));
|
|
58
|
+
/**
|
|
59
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkstateofmind/kind Apple Docs}
|
|
60
|
+
*/
|
|
61
|
+
var StateOfMindKind;
|
|
62
|
+
(function (StateOfMindKind) {
|
|
63
|
+
StateOfMindKind[StateOfMindKind["dailyMood"] = 2] = "dailyMood";
|
|
64
|
+
StateOfMindKind[StateOfMindKind["momentaryEmotion"] = 1] = "momentaryEmotion";
|
|
65
|
+
})(StateOfMindKind || (exports.StateOfMindKind = StateOfMindKind = {}));
|
|
66
|
+
/**
|
|
67
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkstateofmind/association Apple Docs}
|
|
68
|
+
* @since iOS 17.0+
|
|
69
|
+
*/
|
|
70
|
+
var StateOfMindAssociation;
|
|
71
|
+
(function (StateOfMindAssociation) {
|
|
72
|
+
StateOfMindAssociation[StateOfMindAssociation["community"] = 1] = "community";
|
|
73
|
+
StateOfMindAssociation[StateOfMindAssociation["currentEvents"] = 2] = "currentEvents";
|
|
74
|
+
StateOfMindAssociation[StateOfMindAssociation["dating"] = 3] = "dating";
|
|
75
|
+
StateOfMindAssociation[StateOfMindAssociation["education"] = 4] = "education";
|
|
76
|
+
StateOfMindAssociation[StateOfMindAssociation["family"] = 5] = "family";
|
|
77
|
+
StateOfMindAssociation[StateOfMindAssociation["fitness"] = 6] = "fitness";
|
|
78
|
+
StateOfMindAssociation[StateOfMindAssociation["friends"] = 7] = "friends";
|
|
79
|
+
StateOfMindAssociation[StateOfMindAssociation["health"] = 8] = "health";
|
|
80
|
+
StateOfMindAssociation[StateOfMindAssociation["hobbies"] = 9] = "hobbies";
|
|
81
|
+
StateOfMindAssociation[StateOfMindAssociation["identity"] = 10] = "identity";
|
|
82
|
+
StateOfMindAssociation[StateOfMindAssociation["money"] = 11] = "money";
|
|
83
|
+
StateOfMindAssociation[StateOfMindAssociation["partner"] = 12] = "partner";
|
|
84
|
+
StateOfMindAssociation[StateOfMindAssociation["selfCare"] = 13] = "selfCare";
|
|
85
|
+
StateOfMindAssociation[StateOfMindAssociation["spirituality"] = 14] = "spirituality";
|
|
86
|
+
StateOfMindAssociation[StateOfMindAssociation["tasks"] = 15] = "tasks";
|
|
87
|
+
StateOfMindAssociation[StateOfMindAssociation["travel"] = 16] = "travel";
|
|
88
|
+
StateOfMindAssociation[StateOfMindAssociation["work"] = 17] = "work";
|
|
89
|
+
StateOfMindAssociation[StateOfMindAssociation["weather"] = 18] = "weather";
|
|
90
|
+
})(StateOfMindAssociation || (exports.StateOfMindAssociation = StateOfMindAssociation = {}));
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HKWeatherCondition = void 0;
|
|
4
|
+
// documented at https://developer.apple.com/documentation/healthkit/hkweathercondition
|
|
5
|
+
var HKWeatherCondition;
|
|
6
|
+
(function (HKWeatherCondition) {
|
|
7
|
+
HKWeatherCondition[HKWeatherCondition["none"] = 0] = "none";
|
|
8
|
+
HKWeatherCondition[HKWeatherCondition["clear"] = 1] = "clear";
|
|
9
|
+
HKWeatherCondition[HKWeatherCondition["fair"] = 2] = "fair";
|
|
10
|
+
HKWeatherCondition[HKWeatherCondition["partlyCloudy"] = 3] = "partlyCloudy";
|
|
11
|
+
HKWeatherCondition[HKWeatherCondition["mostlyCloudy"] = 4] = "mostlyCloudy";
|
|
12
|
+
HKWeatherCondition[HKWeatherCondition["cloudy"] = 5] = "cloudy";
|
|
13
|
+
HKWeatherCondition[HKWeatherCondition["foggy"] = 6] = "foggy";
|
|
14
|
+
HKWeatherCondition[HKWeatherCondition["haze"] = 7] = "haze";
|
|
15
|
+
HKWeatherCondition[HKWeatherCondition["windy"] = 8] = "windy";
|
|
16
|
+
HKWeatherCondition[HKWeatherCondition["blustery"] = 9] = "blustery";
|
|
17
|
+
HKWeatherCondition[HKWeatherCondition["smoky"] = 10] = "smoky";
|
|
18
|
+
HKWeatherCondition[HKWeatherCondition["dust"] = 11] = "dust";
|
|
19
|
+
HKWeatherCondition[HKWeatherCondition["snow"] = 12] = "snow";
|
|
20
|
+
HKWeatherCondition[HKWeatherCondition["hail"] = 13] = "hail";
|
|
21
|
+
HKWeatherCondition[HKWeatherCondition["sleet"] = 14] = "sleet";
|
|
22
|
+
HKWeatherCondition[HKWeatherCondition["freezingDrizzle"] = 15] = "freezingDrizzle";
|
|
23
|
+
HKWeatherCondition[HKWeatherCondition["freezingRain"] = 16] = "freezingRain";
|
|
24
|
+
HKWeatherCondition[HKWeatherCondition["mixedRainAndHail"] = 17] = "mixedRainAndHail";
|
|
25
|
+
HKWeatherCondition[HKWeatherCondition["mixedRainAndSnow"] = 18] = "mixedRainAndSnow";
|
|
26
|
+
HKWeatherCondition[HKWeatherCondition["mixedRainAndSleet"] = 19] = "mixedRainAndSleet";
|
|
27
|
+
HKWeatherCondition[HKWeatherCondition["mixedSnowAndSleet"] = 20] = "mixedSnowAndSleet";
|
|
28
|
+
HKWeatherCondition[HKWeatherCondition["drizzle"] = 21] = "drizzle";
|
|
29
|
+
HKWeatherCondition[HKWeatherCondition["scatteredShowers"] = 22] = "scatteredShowers";
|
|
30
|
+
HKWeatherCondition[HKWeatherCondition["showers"] = 23] = "showers";
|
|
31
|
+
HKWeatherCondition[HKWeatherCondition["thunderstorms"] = 24] = "thunderstorms";
|
|
32
|
+
HKWeatherCondition[HKWeatherCondition["tropicalStorm"] = 25] = "tropicalStorm";
|
|
33
|
+
HKWeatherCondition[HKWeatherCondition["hurricane"] = 26] = "hurricane";
|
|
34
|
+
HKWeatherCondition[HKWeatherCondition["tornado"] = 27] = "tornado";
|
|
35
|
+
})(HKWeatherCondition || (exports.HKWeatherCondition = HKWeatherCondition = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkoutSessionLocationType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkworkoutsessionlocationtype Apple Docs }
|
|
6
|
+
*/
|
|
7
|
+
var WorkoutSessionLocationType;
|
|
8
|
+
(function (WorkoutSessionLocationType) {
|
|
9
|
+
WorkoutSessionLocationType[WorkoutSessionLocationType["unknown"] = 1] = "unknown";
|
|
10
|
+
WorkoutSessionLocationType[WorkoutSessionLocationType["indoor"] = 2] = "indoor";
|
|
11
|
+
WorkoutSessionLocationType[WorkoutSessionLocationType["outdoor"] = 3] = "outdoor";
|
|
12
|
+
})(WorkoutSessionLocationType || (exports.WorkoutSessionLocationType = WorkoutSessionLocationType = {}));
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WorkoutEventType = exports.WeatherCondition = exports.WorkoutActivityType = void 0;
|
|
4
|
+
var WorkoutActivityType;
|
|
5
|
+
(function (WorkoutActivityType) {
|
|
6
|
+
WorkoutActivityType[WorkoutActivityType["americanFootball"] = 1] = "americanFootball";
|
|
7
|
+
WorkoutActivityType[WorkoutActivityType["archery"] = 2] = "archery";
|
|
8
|
+
WorkoutActivityType[WorkoutActivityType["australianFootball"] = 3] = "australianFootball";
|
|
9
|
+
WorkoutActivityType[WorkoutActivityType["badminton"] = 4] = "badminton";
|
|
10
|
+
WorkoutActivityType[WorkoutActivityType["baseball"] = 5] = "baseball";
|
|
11
|
+
WorkoutActivityType[WorkoutActivityType["basketball"] = 6] = "basketball";
|
|
12
|
+
WorkoutActivityType[WorkoutActivityType["bowling"] = 7] = "bowling";
|
|
13
|
+
WorkoutActivityType[WorkoutActivityType["boxing"] = 8] = "boxing";
|
|
14
|
+
WorkoutActivityType[WorkoutActivityType["climbing"] = 9] = "climbing";
|
|
15
|
+
WorkoutActivityType[WorkoutActivityType["cricket"] = 10] = "cricket";
|
|
16
|
+
WorkoutActivityType[WorkoutActivityType["crossTraining"] = 11] = "crossTraining";
|
|
17
|
+
WorkoutActivityType[WorkoutActivityType["curling"] = 12] = "curling";
|
|
18
|
+
WorkoutActivityType[WorkoutActivityType["cycling"] = 13] = "cycling";
|
|
19
|
+
WorkoutActivityType[WorkoutActivityType["dance"] = 14] = "dance";
|
|
20
|
+
WorkoutActivityType[WorkoutActivityType["danceInspiredTraining"] = 15] = "danceInspiredTraining";
|
|
21
|
+
WorkoutActivityType[WorkoutActivityType["elliptical"] = 16] = "elliptical";
|
|
22
|
+
WorkoutActivityType[WorkoutActivityType["equestrianSports"] = 17] = "equestrianSports";
|
|
23
|
+
WorkoutActivityType[WorkoutActivityType["fencing"] = 18] = "fencing";
|
|
24
|
+
WorkoutActivityType[WorkoutActivityType["fishing"] = 19] = "fishing";
|
|
25
|
+
WorkoutActivityType[WorkoutActivityType["functionalStrengthTraining"] = 20] = "functionalStrengthTraining";
|
|
26
|
+
WorkoutActivityType[WorkoutActivityType["golf"] = 21] = "golf";
|
|
27
|
+
WorkoutActivityType[WorkoutActivityType["gymnastics"] = 22] = "gymnastics";
|
|
28
|
+
WorkoutActivityType[WorkoutActivityType["handball"] = 23] = "handball";
|
|
29
|
+
WorkoutActivityType[WorkoutActivityType["hiking"] = 24] = "hiking";
|
|
30
|
+
WorkoutActivityType[WorkoutActivityType["hockey"] = 25] = "hockey";
|
|
31
|
+
WorkoutActivityType[WorkoutActivityType["hunting"] = 26] = "hunting";
|
|
32
|
+
WorkoutActivityType[WorkoutActivityType["lacrosse"] = 27] = "lacrosse";
|
|
33
|
+
WorkoutActivityType[WorkoutActivityType["martialArts"] = 28] = "martialArts";
|
|
34
|
+
WorkoutActivityType[WorkoutActivityType["mindAndBody"] = 29] = "mindAndBody";
|
|
35
|
+
WorkoutActivityType[WorkoutActivityType["mixedMetabolicCardioTraining"] = 30] = "mixedMetabolicCardioTraining";
|
|
36
|
+
WorkoutActivityType[WorkoutActivityType["paddleSports"] = 31] = "paddleSports";
|
|
37
|
+
WorkoutActivityType[WorkoutActivityType["play"] = 32] = "play";
|
|
38
|
+
WorkoutActivityType[WorkoutActivityType["preparationAndRecovery"] = 33] = "preparationAndRecovery";
|
|
39
|
+
WorkoutActivityType[WorkoutActivityType["racquetball"] = 34] = "racquetball";
|
|
40
|
+
WorkoutActivityType[WorkoutActivityType["rowing"] = 35] = "rowing";
|
|
41
|
+
WorkoutActivityType[WorkoutActivityType["rugby"] = 36] = "rugby";
|
|
42
|
+
WorkoutActivityType[WorkoutActivityType["running"] = 37] = "running";
|
|
43
|
+
WorkoutActivityType[WorkoutActivityType["sailing"] = 38] = "sailing";
|
|
44
|
+
WorkoutActivityType[WorkoutActivityType["skatingSports"] = 39] = "skatingSports";
|
|
45
|
+
WorkoutActivityType[WorkoutActivityType["snowSports"] = 40] = "snowSports";
|
|
46
|
+
WorkoutActivityType[WorkoutActivityType["soccer"] = 41] = "soccer";
|
|
47
|
+
WorkoutActivityType[WorkoutActivityType["softball"] = 42] = "softball";
|
|
48
|
+
WorkoutActivityType[WorkoutActivityType["squash"] = 43] = "squash";
|
|
49
|
+
WorkoutActivityType[WorkoutActivityType["stairClimbing"] = 44] = "stairClimbing";
|
|
50
|
+
WorkoutActivityType[WorkoutActivityType["surfingSports"] = 45] = "surfingSports";
|
|
51
|
+
WorkoutActivityType[WorkoutActivityType["swimming"] = 46] = "swimming";
|
|
52
|
+
WorkoutActivityType[WorkoutActivityType["tableTennis"] = 47] = "tableTennis";
|
|
53
|
+
WorkoutActivityType[WorkoutActivityType["tennis"] = 48] = "tennis";
|
|
54
|
+
WorkoutActivityType[WorkoutActivityType["trackAndField"] = 49] = "trackAndField";
|
|
55
|
+
WorkoutActivityType[WorkoutActivityType["traditionalStrengthTraining"] = 50] = "traditionalStrengthTraining";
|
|
56
|
+
WorkoutActivityType[WorkoutActivityType["volleyball"] = 51] = "volleyball";
|
|
57
|
+
WorkoutActivityType[WorkoutActivityType["walking"] = 52] = "walking";
|
|
58
|
+
WorkoutActivityType[WorkoutActivityType["waterFitness"] = 53] = "waterFitness";
|
|
59
|
+
WorkoutActivityType[WorkoutActivityType["waterPolo"] = 54] = "waterPolo";
|
|
60
|
+
WorkoutActivityType[WorkoutActivityType["waterSports"] = 55] = "waterSports";
|
|
61
|
+
WorkoutActivityType[WorkoutActivityType["wrestling"] = 56] = "wrestling";
|
|
62
|
+
WorkoutActivityType[WorkoutActivityType["yoga"] = 57] = "yoga";
|
|
63
|
+
WorkoutActivityType[WorkoutActivityType["barre"] = 58] = "barre";
|
|
64
|
+
WorkoutActivityType[WorkoutActivityType["coreTraining"] = 59] = "coreTraining";
|
|
65
|
+
WorkoutActivityType[WorkoutActivityType["crossCountrySkiing"] = 60] = "crossCountrySkiing";
|
|
66
|
+
WorkoutActivityType[WorkoutActivityType["downhillSkiing"] = 61] = "downhillSkiing";
|
|
67
|
+
WorkoutActivityType[WorkoutActivityType["flexibility"] = 62] = "flexibility";
|
|
68
|
+
WorkoutActivityType[WorkoutActivityType["highIntensityIntervalTraining"] = 63] = "highIntensityIntervalTraining";
|
|
69
|
+
WorkoutActivityType[WorkoutActivityType["jumpRope"] = 64] = "jumpRope";
|
|
70
|
+
WorkoutActivityType[WorkoutActivityType["kickboxing"] = 65] = "kickboxing";
|
|
71
|
+
WorkoutActivityType[WorkoutActivityType["pilates"] = 66] = "pilates";
|
|
72
|
+
WorkoutActivityType[WorkoutActivityType["snowboarding"] = 67] = "snowboarding";
|
|
73
|
+
WorkoutActivityType[WorkoutActivityType["stairs"] = 68] = "stairs";
|
|
74
|
+
WorkoutActivityType[WorkoutActivityType["stepTraining"] = 69] = "stepTraining";
|
|
75
|
+
WorkoutActivityType[WorkoutActivityType["wheelchairWalkPace"] = 70] = "wheelchairWalkPace";
|
|
76
|
+
WorkoutActivityType[WorkoutActivityType["wheelchairRunPace"] = 71] = "wheelchairRunPace";
|
|
77
|
+
WorkoutActivityType[WorkoutActivityType["taiChi"] = 72] = "taiChi";
|
|
78
|
+
WorkoutActivityType[WorkoutActivityType["mixedCardio"] = 73] = "mixedCardio";
|
|
79
|
+
WorkoutActivityType[WorkoutActivityType["handCycling"] = 74] = "handCycling";
|
|
80
|
+
WorkoutActivityType[WorkoutActivityType["discSports"] = 75] = "discSports";
|
|
81
|
+
WorkoutActivityType[WorkoutActivityType["fitnessGaming"] = 76] = "fitnessGaming";
|
|
82
|
+
WorkoutActivityType[WorkoutActivityType["cardioDance"] = 77] = "cardioDance";
|
|
83
|
+
WorkoutActivityType[WorkoutActivityType["socialDance"] = 78] = "socialDance";
|
|
84
|
+
WorkoutActivityType[WorkoutActivityType["pickleball"] = 79] = "pickleball";
|
|
85
|
+
WorkoutActivityType[WorkoutActivityType["cooldown"] = 80] = "cooldown";
|
|
86
|
+
WorkoutActivityType[WorkoutActivityType["swimBikeRun"] = 82] = "swimBikeRun";
|
|
87
|
+
WorkoutActivityType[WorkoutActivityType["transition"] = 83] = "transition";
|
|
88
|
+
WorkoutActivityType[WorkoutActivityType["underwaterDiving"] = 84] = "underwaterDiving";
|
|
89
|
+
WorkoutActivityType[WorkoutActivityType["other"] = 3000] = "other";
|
|
90
|
+
})(WorkoutActivityType || (exports.WorkoutActivityType = WorkoutActivityType = {}));
|
|
91
|
+
// documented at https://developer.apple.com/documentation/healthkit/hkweathercondition
|
|
92
|
+
var WeatherCondition;
|
|
93
|
+
(function (WeatherCondition) {
|
|
94
|
+
WeatherCondition[WeatherCondition["none"] = 0] = "none";
|
|
95
|
+
WeatherCondition[WeatherCondition["clear"] = 1] = "clear";
|
|
96
|
+
WeatherCondition[WeatherCondition["fair"] = 2] = "fair";
|
|
97
|
+
WeatherCondition[WeatherCondition["partlyCloudy"] = 3] = "partlyCloudy";
|
|
98
|
+
WeatherCondition[WeatherCondition["mostlyCloudy"] = 4] = "mostlyCloudy";
|
|
99
|
+
WeatherCondition[WeatherCondition["cloudy"] = 5] = "cloudy";
|
|
100
|
+
WeatherCondition[WeatherCondition["foggy"] = 6] = "foggy";
|
|
101
|
+
WeatherCondition[WeatherCondition["haze"] = 7] = "haze";
|
|
102
|
+
WeatherCondition[WeatherCondition["windy"] = 8] = "windy";
|
|
103
|
+
WeatherCondition[WeatherCondition["blustery"] = 9] = "blustery";
|
|
104
|
+
WeatherCondition[WeatherCondition["smoky"] = 10] = "smoky";
|
|
105
|
+
WeatherCondition[WeatherCondition["dust"] = 11] = "dust";
|
|
106
|
+
WeatherCondition[WeatherCondition["snow"] = 12] = "snow";
|
|
107
|
+
WeatherCondition[WeatherCondition["hail"] = 13] = "hail";
|
|
108
|
+
WeatherCondition[WeatherCondition["sleet"] = 14] = "sleet";
|
|
109
|
+
WeatherCondition[WeatherCondition["freezingDrizzle"] = 15] = "freezingDrizzle";
|
|
110
|
+
WeatherCondition[WeatherCondition["freezingRain"] = 16] = "freezingRain";
|
|
111
|
+
WeatherCondition[WeatherCondition["mixedRainAndHail"] = 17] = "mixedRainAndHail";
|
|
112
|
+
WeatherCondition[WeatherCondition["mixedRainAndSnow"] = 18] = "mixedRainAndSnow";
|
|
113
|
+
WeatherCondition[WeatherCondition["mixedRainAndSleet"] = 19] = "mixedRainAndSleet";
|
|
114
|
+
WeatherCondition[WeatherCondition["mixedSnowAndSleet"] = 20] = "mixedSnowAndSleet";
|
|
115
|
+
WeatherCondition[WeatherCondition["drizzle"] = 21] = "drizzle";
|
|
116
|
+
WeatherCondition[WeatherCondition["scatteredShowers"] = 22] = "scatteredShowers";
|
|
117
|
+
WeatherCondition[WeatherCondition["showers"] = 23] = "showers";
|
|
118
|
+
WeatherCondition[WeatherCondition["thunderstorms"] = 24] = "thunderstorms";
|
|
119
|
+
WeatherCondition[WeatherCondition["tropicalStorm"] = 25] = "tropicalStorm";
|
|
120
|
+
WeatherCondition[WeatherCondition["hurricane"] = 26] = "hurricane";
|
|
121
|
+
WeatherCondition[WeatherCondition["tornado"] = 27] = "tornado";
|
|
122
|
+
})(WeatherCondition || (exports.WeatherCondition = WeatherCondition = {}));
|
|
123
|
+
var WorkoutEventType;
|
|
124
|
+
(function (WorkoutEventType) {
|
|
125
|
+
WorkoutEventType[WorkoutEventType["pause"] = 1] = "pause";
|
|
126
|
+
WorkoutEventType[WorkoutEventType["resume"] = 2] = "resume";
|
|
127
|
+
WorkoutEventType[WorkoutEventType["lap"] = 3] = "lap";
|
|
128
|
+
WorkoutEventType[WorkoutEventType["marker"] = 4] = "marker";
|
|
129
|
+
WorkoutEventType[WorkoutEventType["motionPaused"] = 5] = "motionPaused";
|
|
130
|
+
WorkoutEventType[WorkoutEventType["motionResumed"] = 6] = "motionResumed";
|
|
131
|
+
WorkoutEventType[WorkoutEventType["segment"] = 7] = "segment";
|
|
132
|
+
WorkoutEventType[WorkoutEventType["pauseOrResumeRequest"] = 8] = "pauseOrResumeRequest";
|
|
133
|
+
})(WorkoutEventType || (exports.WorkoutEventType = WorkoutEventType = {}));
|
|
134
|
+
var ComparisonPredicateOperator;
|
|
135
|
+
(function (ComparisonPredicateOperator) {
|
|
136
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["lessThan"] = 0] = "lessThan";
|
|
137
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["lessThanOrEqualTo"] = 1] = "lessThanOrEqualTo";
|
|
138
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["greaterThan"] = 2] = "greaterThan";
|
|
139
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["greaterThanOrEqualTo"] = 3] = "greaterThanOrEqualTo";
|
|
140
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["equalTo"] = 4] = "equalTo";
|
|
141
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["notEqualTo"] = 5] = "notEqualTo";
|
|
142
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["matches"] = 6] = "matches";
|
|
143
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["like"] = 7] = "like";
|
|
144
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["beginsWith"] = 8] = "beginsWith";
|
|
145
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["endsWith"] = 9] = "endsWith";
|
|
146
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["in"] = 10] = "in";
|
|
147
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["customSelector"] = 11] = "customSelector";
|
|
148
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["contains"] = 99] = "contains";
|
|
149
|
+
ComparisonPredicateOperator[ComparisonPredicateOperator["between"] = 100] = "between";
|
|
150
|
+
})(ComparisonPredicateOperator || (ComparisonPredicateOperator = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCategorySampleById = getCategorySampleById;
|
|
4
|
+
const modules_1 = require("../modules");
|
|
5
|
+
async function getCategorySampleById(identifier, uuid) {
|
|
6
|
+
const samples = await modules_1.CategoryTypes.queryCategorySamples(identifier, {
|
|
7
|
+
limit: 1,
|
|
8
|
+
filter: { uuid: uuid },
|
|
9
|
+
});
|
|
10
|
+
return samples[0];
|
|
11
|
+
}
|
|
12
|
+
exports.default = getCategorySampleById;
|