@kingstinct/react-native-healthkit 13.0.2 → 13.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ReactNativeHealthkit.podspec +4 -1
- package/ios/Bridge.h +2 -0
- package/ios/CharacteristicTypeModule.swift +6 -10
- package/ios/CoreModule.swift +16 -2
- package/ios/ElectrocardiogramModule.swift +0 -1
- package/ios/ExceptionCatcher.h +1 -14
- package/ios/ExceptionCatcher.mm +17 -0
- package/ios/HeartbeatSeriesModule.swift +0 -1
- package/ios/Helpers.swift +40 -25
- package/ios/QuantityTypeModule.swift +35 -42
- package/ios/Serializers.swift +11 -28
- package/ios/WorkoutProxy.swift +5 -7
- package/ios/WorkoutsModule.swift +12 -14
- package/ios/module.modulemap +5 -0
- package/lib/commonjs/healthkit.ios.js +4 -2
- package/lib/commonjs/healthkit.js +3 -1
- package/lib/commonjs/types/Constants.js +12 -1
- package/lib/commonjs/types/Shared.js +0 -11
- package/lib/module/healthkit.ios.js +2 -0
- package/lib/module/healthkit.js +2 -0
- package/lib/module/types/Constants.js +11 -0
- package/lib/module/types/Shared.js +1 -10
- package/lib/typescript/healthkit.d.ts +2 -1
- package/lib/typescript/healthkit.ios.d.ts +4 -2
- package/lib/typescript/specs/CoreModule.nitro.d.ts +3 -2
- package/lib/typescript/specs/MedicationModule.nitro.d.ts +3 -0
- package/lib/typescript/types/Constants.d.ts +11 -0
- package/lib/typescript/types/Shared.d.ts +2 -11
- package/lib/typescript/types/Source.d.ts +2 -2
- package/nitrogen/generated/ios/ReactNativeHealthkit+autolinking.rb +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +9 -1
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +44 -16
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +4 -1
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.mm +1 -1
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.swift +1 -1
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +13 -2
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridMedicationModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.cpp +1 -1
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +1 -1
- package/nitrogen/generated/ios/swift/AggregationStyle.swift +1 -1
- package/nitrogen/generated/ios/swift/AuthDataTypes.swift +1 -1
- package/nitrogen/generated/ios/swift/AuthorizationRequestStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/AuthorizationStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/BiologicalSex.swift +1 -1
- package/nitrogen/generated/ios/swift/BloodType.swift +1 -1
- package/nitrogen/generated/ios/swift/CategorySample.swift +1 -1
- package/nitrogen/generated/ios/swift/CategorySampleForSaving.swift +1 -1
- package/nitrogen/generated/ios/swift/CategorySamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/CategoryTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/ComparisonPredicateOperator.swift +1 -1
- package/nitrogen/generated/ios/swift/CorrelationObject.swift +1 -1
- package/nitrogen/generated/ios/swift/CorrelationSample.swift +1 -1
- package/nitrogen/generated/ios/swift/CorrelationTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/DateFilter.swift +1 -1
- package/nitrogen/generated/ios/swift/DeletedSample.swift +1 -1
- package/nitrogen/generated/ios/swift/Device.swift +1 -1
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithAnchor.swift +1 -1
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithSortOrder.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramClassification.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramLead.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramSymptomsStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/ElectrocardiogramVoltage.swift +1 -1
- package/nitrogen/generated/ios/swift/FilterForSamples.swift +1 -1
- package/nitrogen/generated/ios/swift/FilterForSamplesBase.swift +1 -1
- package/nitrogen/generated/ios/swift/FilterForWorkouts.swift +1 -1
- package/nitrogen/generated/ios/swift/FilterForWorkoutsBase.swift +1 -1
- package/nitrogen/generated/ios/swift/FitzpatrickSkinType.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_AuthorizationRequestStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_BiologicalSex.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_BloodType.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_CategorySamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_ElectrocardiogramSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_FitzpatrickSkinType.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_HeartbeatSeriesSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_MedicationDoseEventsWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_OnChangeCallbackArgs.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_QuantitySamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_QueryCorrelationSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_QueryStatisticsResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_QueryWorkoutSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_StateOfMindSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_WheelchairUse.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_double.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_CategorySample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_CorrelationSample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_QuantitySample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_QueryStatisticsResponse_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_StateOfMindSample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_WorkoutPlan_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__chrono__system_clock__time_point_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_HybridWorkoutProxySpec_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__QueryStatisticsResponse_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__bool_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CategorySample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CorrelationSample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_ElectrocardiogramSample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_HeartbeatSeriesSample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_IdentifierWithUnit_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_MedicationDoseEvent_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QuantitySample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponseFromSingleSource_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponse_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_StateOfMindSample_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_UserAnnotatedMedication_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_WorkoutRoute_.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__.swift +1 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__.swift +1 -1
- package/nitrogen/generated/ios/swift/GeneralForm.swift +1 -1
- package/nitrogen/generated/ios/swift/HeartRateMotionContext.swift +1 -1
- package/nitrogen/generated/ios/swift/Heartbeat.swift +1 -1
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +1 -1
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +3 -2
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +21 -2
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridMedicationModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec_cxx.swift +1 -1
- package/nitrogen/generated/ios/swift/IdentifierWithUnit.swift +1 -1
- package/nitrogen/generated/ios/swift/InsulinDeliveryReason.swift +1 -1
- package/nitrogen/generated/ios/swift/IntervalComponents.swift +1 -1
- package/nitrogen/generated/ios/swift/LocationForSaving.swift +1 -1
- package/nitrogen/generated/ios/swift/MedicationConcept.swift +1 -1
- package/nitrogen/generated/ios/swift/MedicationDoseEvent.swift +1 -1
- package/nitrogen/generated/ios/swift/MedicationDoseEventLogStatus.swift +1 -1
- package/nitrogen/generated/ios/swift/MedicationDoseEventScheduleType.swift +1 -1
- package/nitrogen/generated/ios/swift/MedicationDoseEventsWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/ObjectTypeIdentifier.swift +5 -5
- package/nitrogen/generated/ios/swift/OnChangeCallbackArgs.swift +1 -1
- package/nitrogen/generated/ios/swift/PerObjectTypeIdentifier.swift +40 -0
- package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +1 -1
- package/nitrogen/generated/ios/swift/Quantity.swift +1 -1
- package/nitrogen/generated/ios/swift/QuantityDateInterval.swift +1 -1
- package/nitrogen/generated/ios/swift/QuantitySample.swift +1 -1
- package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +1 -1
- package/nitrogen/generated/ios/swift/QuantitySamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/QuantityTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryCorrelationSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryStatisticsResponseFromSingleSource.swift +1 -1
- package/nitrogen/generated/ios/swift/QueryWorkoutSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/RelatedCoding.swift +1 -1
- package/nitrogen/generated/ios/swift/SampleForSaving.swift +1 -1
- package/nitrogen/generated/ios/swift/SampleType.swift +1 -1
- package/nitrogen/generated/ios/swift/SampleTypeIdentifier.swift +1 -1
- package/nitrogen/generated/ios/swift/SampleTypeIdentifierWriteable.swift +1 -1
- package/nitrogen/generated/ios/swift/Source.swift +1 -1
- package/nitrogen/generated/ios/swift/SourceRevision.swift +17 -55
- package/nitrogen/generated/ios/swift/StateOfMindAssociation.swift +1 -1
- package/nitrogen/generated/ios/swift/StateOfMindKind.swift +1 -1
- package/nitrogen/generated/ios/swift/StateOfMindLabel.swift +1 -1
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +1 -1
- package/nitrogen/generated/ios/swift/StateOfMindSamplesWithAnchorResponse.swift +1 -1
- package/nitrogen/generated/ios/swift/StateOfMindValenceClassification.swift +1 -1
- package/nitrogen/generated/ios/swift/StatisticsOptions.swift +1 -1
- package/nitrogen/generated/ios/swift/StatisticsQueryOptions.swift +1 -1
- package/nitrogen/generated/ios/swift/UpdateFrequency.swift +1 -1
- package/nitrogen/generated/ios/swift/UserAnnotatedMedication.swift +1 -1
- package/nitrogen/generated/ios/swift/Variant_Bool_String_Double_Date.swift +1 -1
- package/nitrogen/generated/ios/swift/WeatherCondition.swift +1 -1
- package/nitrogen/generated/ios/swift/WheelchairUse.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutActivity.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutActivityType.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutConfiguration.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutDurationPredicate.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutEvent.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutEventType.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutPlan.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutRoute.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutRouteLocation.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutSessionLocationType.swift +1 -1
- package/nitrogen/generated/ios/swift/WorkoutTotals.swift +1 -1
- package/nitrogen/generated/shared/c++/AggregationStyle.hpp +1 -1
- package/nitrogen/generated/shared/c++/AuthDataTypes.hpp +1 -1
- package/nitrogen/generated/shared/c++/AuthorizationRequestStatus.hpp +1 -1
- package/nitrogen/generated/shared/c++/AuthorizationStatus.hpp +1 -1
- package/nitrogen/generated/shared/c++/BiologicalSex.hpp +1 -1
- package/nitrogen/generated/shared/c++/BloodType.hpp +1 -1
- package/nitrogen/generated/shared/c++/CategorySample.hpp +1 -1
- package/nitrogen/generated/shared/c++/CategorySampleForSaving.hpp +1 -1
- package/nitrogen/generated/shared/c++/CategorySamplesWithAnchorResponse.hpp +1 -1
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/ComparisonPredicateOperator.hpp +1 -1
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +1 -1
- package/nitrogen/generated/shared/c++/CorrelationTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/DateFilter.hpp +1 -1
- package/nitrogen/generated/shared/c++/DeletedSample.hpp +1 -1
- package/nitrogen/generated/shared/c++/Device.hpp +1 -1
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithAnchor.hpp +1 -1
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithSortOrder.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramClassification.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramLead.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramSamplesWithAnchorResponse.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramSymptomsStatus.hpp +1 -1
- package/nitrogen/generated/shared/c++/ElectrocardiogramVoltage.hpp +1 -1
- package/nitrogen/generated/shared/c++/FilterForSamples.hpp +1 -1
- package/nitrogen/generated/shared/c++/FilterForSamplesBase.hpp +1 -1
- package/nitrogen/generated/shared/c++/FilterForWorkouts.hpp +1 -1
- package/nitrogen/generated/shared/c++/FilterForWorkoutsBase.hpp +1 -1
- package/nitrogen/generated/shared/c++/FitzpatrickSkinType.hpp +1 -1
- package/nitrogen/generated/shared/c++/GeneralForm.hpp +1 -1
- package/nitrogen/generated/shared/c++/HeartRateMotionContext.hpp +1 -1
- package/nitrogen/generated/shared/c++/Heartbeat.hpp +1 -1
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +1 -1
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSamplesWithAnchorResponse.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.cpp +2 -1
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +9 -2
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridMedicationModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridSourceProxySpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.cpp +1 -1
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/IdentifierWithUnit.hpp +1 -1
- package/nitrogen/generated/shared/c++/InsulinDeliveryReason.hpp +1 -1
- package/nitrogen/generated/shared/c++/IntervalComponents.hpp +1 -1
- package/nitrogen/generated/shared/c++/LocationForSaving.hpp +1 -1
- package/nitrogen/generated/shared/c++/MedicationConcept.hpp +1 -1
- package/nitrogen/generated/shared/c++/MedicationDoseEvent.hpp +1 -1
- package/nitrogen/generated/shared/c++/MedicationDoseEventLogStatus.hpp +1 -1
- package/nitrogen/generated/shared/c++/MedicationDoseEventScheduleType.hpp +1 -1
- package/nitrogen/generated/shared/c++/MedicationDoseEventsWithAnchorResponse.hpp +1 -1
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +5 -5
- package/nitrogen/generated/shared/c++/OnChangeCallbackArgs.hpp +1 -1
- package/nitrogen/generated/shared/c++/PerObjectTypeIdentifier.hpp +76 -0
- package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +1 -1
- package/nitrogen/generated/shared/c++/Quantity.hpp +1 -1
- package/nitrogen/generated/shared/c++/QuantityDateInterval.hpp +1 -1
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +1 -1
- package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +1 -1
- package/nitrogen/generated/shared/c++/QuantitySamplesWithAnchorResponse.hpp +1 -1
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryCorrelationSamplesWithAnchorResponse.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryStatisticsResponseFromSingleSource.hpp +1 -1
- package/nitrogen/generated/shared/c++/QueryWorkoutSamplesWithAnchorResponse.hpp +1 -1
- package/nitrogen/generated/shared/c++/RelatedCoding.hpp +1 -1
- package/nitrogen/generated/shared/c++/SampleType.hpp +1 -1
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +1 -1
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +1 -1
- package/nitrogen/generated/shared/c++/Source.hpp +1 -1
- package/nitrogen/generated/shared/c++/SourceRevision.hpp +11 -11
- package/nitrogen/generated/shared/c++/StateOfMindAssociation.hpp +1 -1
- package/nitrogen/generated/shared/c++/StateOfMindKind.hpp +1 -1
- package/nitrogen/generated/shared/c++/StateOfMindLabel.hpp +1 -1
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +1 -1
- package/nitrogen/generated/shared/c++/StateOfMindSamplesWithAnchorResponse.hpp +1 -1
- package/nitrogen/generated/shared/c++/StateOfMindValenceClassification.hpp +1 -1
- package/nitrogen/generated/shared/c++/StatisticsOptions.hpp +1 -1
- package/nitrogen/generated/shared/c++/StatisticsQueryOptions.hpp +1 -1
- package/nitrogen/generated/shared/c++/UpdateFrequency.hpp +1 -1
- package/nitrogen/generated/shared/c++/UserAnnotatedMedication.hpp +1 -1
- package/nitrogen/generated/shared/c++/WeatherCondition.hpp +1 -1
- package/nitrogen/generated/shared/c++/WheelchairUse.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutActivity.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutConfiguration.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutDurationPredicate.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutEventType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutPlan.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutRoute.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutRouteLocation.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutSessionLocationType.hpp +1 -1
- package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +1 -1
- package/package.json +2 -1
- package/src/healthkit.ios.ts +3 -0
- package/src/healthkit.ts +6 -0
- package/src/specs/CoreModule.nitro.ts +6 -1
- package/src/specs/MedicationModule.nitro.ts +3 -0
- package/src/types/Constants.ts +16 -0
- package/src/types/Shared.ts +8 -13
- package/src/types/Source.ts +2 -2
|
@@ -18,7 +18,7 @@ export declare const isHealthDataAvailable: () => boolean;
|
|
|
18
18
|
export declare const isHealthDataAvailableAsync: () => Promise<boolean>;
|
|
19
19
|
export declare const querySources: (identifier: import("./types").SampleTypeIdentifier, filter?: import("./types").FilterForSamples) => Promise<readonly SourceProxy[]>;
|
|
20
20
|
export declare const requestAuthorization: (toRequest: import("./specs/CoreModule.nitro").AuthDataTypes) => Promise<boolean>;
|
|
21
|
-
export declare const deleteObjects: (objectTypeIdentifier: import("./types").
|
|
21
|
+
export declare const deleteObjects: (objectTypeIdentifier: import("./types").SampleTypeIdentifierWriteable, filter: import("./types").FilterForSamples) => Promise<number>;
|
|
22
22
|
export declare const subscribeToChanges: (identifier: import("./types").SampleTypeIdentifier, callback: (args: import("./types").OnChangeCallbackArgs) => void) => {
|
|
23
23
|
remove: () => boolean;
|
|
24
24
|
};
|
|
@@ -87,6 +87,7 @@ export declare const queryMedicationEvents: (options: QueryOptionsWithSortOrder)
|
|
|
87
87
|
export declare const queryMedicationEventsWithAnchor: (options: QueryOptionsWithAnchor) => Promise<import("./specs/MedicationModule.nitro").MedicationDoseEventsWithAnchorResponse>;
|
|
88
88
|
export declare const useSubscribeToQuantitySamples: typeof import("./healthkit.ios").useSubscribeToQuantitySamples;
|
|
89
89
|
export declare const useSubscribeToCategorySamples: typeof import("./healthkit.ios").useSubscribeToCategorySamples;
|
|
90
|
+
export declare const requestPerObjectReadAuthorization: (typeIdentifier: import("./types").PerObjectTypeIdentifier) => Promise<void>;
|
|
90
91
|
export declare const subscribeToCategorySamples: typeof import("./healthkit.ios").subscribeToCategorySamples;
|
|
91
92
|
export declare const requestMedicationsAuthorization: () => Promise<boolean>;
|
|
92
93
|
declare const _default: typeof ReactNativeHealthkit;
|
|
@@ -38,6 +38,7 @@ export type AvailableQuantityTypesIOS17Plus = QuantityTypeIdentifier;
|
|
|
38
38
|
*/
|
|
39
39
|
export type AvailableQuantityTypes<T extends number = typeof currentMajorVersionIOS> = T extends 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 ? AvailableQuantityTypesIOS17Plus : AvailableQuantityTypesBeforeIOS17;
|
|
40
40
|
export declare const authorizationStatusFor: (type: import("./types").ObjectTypeIdentifier) => import("./types").AuthorizationStatus;
|
|
41
|
+
export declare const requestPerObjectReadAuthorization: (typeIdentifier: import("./types").PerObjectTypeIdentifier) => Promise<void>;
|
|
41
42
|
export declare const disableAllBackgroundDelivery: () => Promise<boolean>;
|
|
42
43
|
export declare const disableBackgroundDelivery: (typeIdentifier: import("./types").ObjectTypeIdentifier) => Promise<boolean>;
|
|
43
44
|
export declare const enableBackgroundDelivery: (typeIdentifier: import("./types").ObjectTypeIdentifier, updateFrequency: import("./types").UpdateFrequency) => Promise<boolean>;
|
|
@@ -68,7 +69,7 @@ export declare const queryWorkoutSamples: (options: import("./types").WorkoutQue
|
|
|
68
69
|
export declare const queryWorkoutSamplesWithAnchor: (options: import("./types").WorkoutQueryOptionsWithAnchor) => Promise<import("./types").QueryWorkoutSamplesWithAnchorResponse>;
|
|
69
70
|
export declare const querySources: (identifier: import("./types").SampleTypeIdentifier, filter?: import("./types").FilterForSamples) => Promise<readonly import("./specs/SourceProxy.nitro").SourceProxy[]>;
|
|
70
71
|
export declare const requestAuthorization: (toRequest: import("./specs/CoreModule.nitro").AuthDataTypes) => Promise<boolean>;
|
|
71
|
-
export declare const deleteObjects: (objectTypeIdentifier: import("./types").
|
|
72
|
+
export declare const deleteObjects: (objectTypeIdentifier: import("./types").SampleTypeIdentifierWriteable, filter: import("./types").FilterForSamples) => Promise<number>;
|
|
72
73
|
export declare const saveCategorySample: <T extends import("./types").CategoryTypeIdentifier>(identifier: T, value: import("./types").CategoryValueForIdentifier, startDate: Date, endDate: Date, metadata?: import("./types").MetadataForCategoryIdentifier<T>) => Promise<import("./types").CategorySample | undefined>;
|
|
73
74
|
export declare const saveCorrelationSample: (typeIdentifier: import("./types").CorrelationTypeIdentifier, samples: import("./types").SampleForSaving[], start: Date, end: Date, metadata?: import("react-native-nitro-modules").AnyMap) => Promise<import("./types").CorrelationSample | undefined>;
|
|
74
75
|
export declare const saveQuantitySample: (identifier: QuantityTypeIdentifier, unit: string, value: number, start: Date, end: Date, metadata?: import("react-native-nitro-modules").AnyMap) => Promise<import("./types").QuantitySample | undefined>;
|
|
@@ -139,7 +140,8 @@ declare const _default: {
|
|
|
139
140
|
queryWorkoutSamplesWithAnchor: (options: import("./types").WorkoutQueryOptionsWithAnchor) => Promise<import("./types").QueryWorkoutSamplesWithAnchorResponse>;
|
|
140
141
|
querySources: (identifier: import("./types").SampleTypeIdentifier, filter?: import("./types").FilterForSamples) => Promise<readonly import("./specs/SourceProxy.nitro").SourceProxy[]>;
|
|
141
142
|
requestAuthorization: (toRequest: import("./specs/CoreModule.nitro").AuthDataTypes) => Promise<boolean>;
|
|
142
|
-
|
|
143
|
+
requestPerObjectReadAuthorization: (typeIdentifier: import("./types").PerObjectTypeIdentifier) => Promise<void>;
|
|
144
|
+
deleteObjects: (objectTypeIdentifier: import("./types").SampleTypeIdentifierWriteable, filter: import("./types").FilterForSamples) => Promise<number>;
|
|
143
145
|
saveCategorySample: <T extends import("./types").CategoryTypeIdentifier>(identifier: T, value: import("./types").CategoryValueForIdentifier, startDate: Date, endDate: Date, metadata?: import("./types").MetadataForCategoryIdentifier<T>) => Promise<import("./types").CategorySample | undefined>;
|
|
144
146
|
saveCorrelationSample: (typeIdentifier: import("./types").CorrelationTypeIdentifier, samples: import("./types").SampleForSaving[], start: Date, end: Date, metadata?: import("react-native-nitro-modules").AnyMap) => Promise<import("./types").CorrelationSample | undefined>;
|
|
145
147
|
saveQuantitySample: (identifier: QuantityTypeIdentifier, unit: string, value: number, start: Date, end: Date, metadata?: import("react-native-nitro-modules").AnyMap) => Promise<import("./types").QuantitySample | undefined>;
|
|
@@ -3,7 +3,7 @@ import type { AuthorizationRequestStatus, AuthorizationStatus } from '../types/A
|
|
|
3
3
|
import type { UpdateFrequency } from '../types/Background';
|
|
4
4
|
import type { QuantityTypeIdentifier } from '../types/QuantityTypeIdentifier';
|
|
5
5
|
import type { FilterForSamples } from '../types/QueryOptions';
|
|
6
|
-
import type { ObjectTypeIdentifier, SampleTypeIdentifier, SampleTypeIdentifierWriteable } from '../types/Shared';
|
|
6
|
+
import type { ObjectTypeIdentifier, PerObjectTypeIdentifier, SampleTypeIdentifier, SampleTypeIdentifierWriteable } from '../types/Shared';
|
|
7
7
|
import type { OnChangeCallbackArgs } from '../types/Subscriptions';
|
|
8
8
|
import type { IdentifierWithUnit } from '../types/Units';
|
|
9
9
|
import type { SourceProxy } from './SourceProxy.nitro';
|
|
@@ -58,7 +58,8 @@ export interface CoreModule extends HybridObject<{
|
|
|
58
58
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkhealthstore/1614152-requestauthorization Apple Docs }
|
|
59
59
|
*/
|
|
60
60
|
requestAuthorization(toRequest: AuthDataTypes): Promise<boolean>;
|
|
61
|
-
|
|
61
|
+
requestPerObjectReadAuthorization(typeIdentifier: PerObjectTypeIdentifier): Promise<void>;
|
|
62
|
+
deleteObjects(objectTypeIdentifier: SampleTypeIdentifierWriteable, filter: FilterForSamples): Promise<number>;
|
|
62
63
|
isObjectTypeAvailable(objectTypeIdentifier: ObjectTypeIdentifier): boolean;
|
|
63
64
|
areObjectTypesAvailable(objectTypeIdentifiers: readonly ObjectTypeIdentifier[]): Record<string, boolean>;
|
|
64
65
|
areObjectTypesAvailableAsync(objectTypeIdentifiers: ObjectTypeIdentifier[]): Promise<Record<string, boolean>>;
|
|
@@ -49,6 +49,9 @@ export interface MedicationModule extends HybridObject<{
|
|
|
49
49
|
ios: 'swift';
|
|
50
50
|
}> {
|
|
51
51
|
queryMedications(): Promise<readonly UserAnnotatedMedication[]>;
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Use requestPerObjectReadAuthorization instead.
|
|
54
|
+
*/
|
|
52
55
|
requestMedicationsAuthorization(): Promise<boolean>;
|
|
53
56
|
queryMedicationEvents(options: QueryOptionsWithSortOrder): Promise<readonly MedicationDoseEvent[]>;
|
|
54
57
|
queryMedicationEventsWithAnchor(options: QueryOptionsWithAnchor): Promise<MedicationDoseEventsWithAnchorResponse>;
|
|
@@ -24,3 +24,14 @@ export declare const HeartbeatSeriesTypeIdentifier: "HKDataTypeIdentifierHeartbe
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const ElectrocardiogramTypeIdentifier: "HKElectrocardiogramType";
|
|
26
26
|
export declare const UserAnnotatedMedicationTypeIdentifier = "HKUserAnnotatedMedicationTypeIdentifier";
|
|
27
|
+
/**
|
|
28
|
+
* Represents a type that identifies activity summary objects.
|
|
29
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}
|
|
30
|
+
*/
|
|
31
|
+
export declare const ActivitySummaryTypeIdentifier: "HKActivitySummaryTypeIdentifier";
|
|
32
|
+
export declare const HKVisionPrescriptionTypeIdentifier: "HKVisionPrescriptionTypeIdentifier";
|
|
33
|
+
/**
|
|
34
|
+
* Represents an audiogram type identifier.
|
|
35
|
+
* @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}
|
|
36
|
+
*/
|
|
37
|
+
export declare const AudiogramTypeIdentifier: "HKAudiogramSampleType";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AnyMap } from 'react-native-nitro-modules';
|
|
2
2
|
import type { CategoryTypeIdentifier, CategoryTypeIdentifierWriteable } from './CategoryTypeIdentifier';
|
|
3
3
|
import type { CharacteristicTypeIdentifier } from './Characteristics';
|
|
4
|
-
import type { ElectrocardiogramTypeIdentifier, HeartbeatSeriesTypeIdentifier, StateOfMindTypeIdentifier, WorkoutRouteTypeIdentifier, WorkoutTypeIdentifier } from './Constants';
|
|
4
|
+
import type { ActivitySummaryTypeIdentifier, AudiogramTypeIdentifier, ElectrocardiogramTypeIdentifier, HeartbeatSeriesTypeIdentifier, HKVisionPrescriptionTypeIdentifier, StateOfMindTypeIdentifier, UserAnnotatedMedicationTypeIdentifier, WorkoutRouteTypeIdentifier, WorkoutTypeIdentifier } from './Constants';
|
|
5
5
|
import type { CorrelationTypeIdentifier } from './CorrelationType';
|
|
6
6
|
import type { Device } from './Device';
|
|
7
7
|
import type { HeartRateMotionContext, InsulinDeliveryReason, Quantity } from './QuantityType';
|
|
@@ -13,6 +13,7 @@ export interface DeletedSample {
|
|
|
13
13
|
readonly metadata?: AnyMap;
|
|
14
14
|
}
|
|
15
15
|
export type ObjectTypeIdentifier = CharacteristicTypeIdentifier | SampleTypeIdentifier | typeof ActivitySummaryTypeIdentifier;
|
|
16
|
+
export type PerObjectTypeIdentifier = typeof HKVisionPrescriptionTypeIdentifier | typeof UserAnnotatedMedicationTypeIdentifier;
|
|
16
17
|
export type SampleTypeIdentifier = CategoryTypeIdentifier | CorrelationTypeIdentifier | QuantityTypeIdentifier | typeof StateOfMindTypeIdentifier | typeof AudiogramTypeIdentifier | typeof HeartbeatSeriesTypeIdentifier | typeof WorkoutRouteTypeIdentifier | typeof WorkoutTypeIdentifier | typeof ElectrocardiogramTypeIdentifier;
|
|
17
18
|
export type SampleTypeIdentifierWriteable = CategoryTypeIdentifierWriteable | CorrelationTypeIdentifier | QuantityTypeIdentifierWriteable | typeof StateOfMindTypeIdentifier | typeof AudiogramTypeIdentifier | typeof HeartbeatSeriesTypeIdentifier | typeof WorkoutRouteTypeIdentifier | typeof WorkoutTypeIdentifier;
|
|
18
19
|
export interface GenericMetadata {
|
|
@@ -31,16 +32,6 @@ export interface GenericMetadata {
|
|
|
31
32
|
readonly HKReferenceRangeLowerLimit?: number;
|
|
32
33
|
readonly HKReferenceRangeUpperLimit?: number;
|
|
33
34
|
}
|
|
34
|
-
/**
|
|
35
|
-
* Represents a type that identifies activity summary objects.
|
|
36
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/hkactivitysummarytype Apple Docs HKActivitySummaryType}
|
|
37
|
-
*/
|
|
38
|
-
export declare const ActivitySummaryTypeIdentifier: "ActivitySummaryTypeIdentifier";
|
|
39
|
-
/**
|
|
40
|
-
* Represents an audiogram type identifier.
|
|
41
|
-
* @see {@link https://developer.apple.com/documentation/healthkit/HKAudiogramSampleType Apple Docs HKAudiogramSampleType}
|
|
42
|
-
*/
|
|
43
|
-
export declare const AudiogramTypeIdentifier: "HKAudiogramSampleType";
|
|
44
35
|
export interface BaseObject {
|
|
45
36
|
readonly uuid: string;
|
|
46
37
|
readonly sourceRevision: SourceRevision;
|
|
@@ -3,8 +3,8 @@ import type { SourceProxy } from '../specs/SourceProxy.nitro';
|
|
|
3
3
|
* @see {@link https://developer.apple.com/documentation/healthkit/hkobject/1615483-sourcerevision Apple Docs }
|
|
4
4
|
*/
|
|
5
5
|
export interface SourceRevision {
|
|
6
|
-
readonly source
|
|
6
|
+
readonly source: SourceProxy;
|
|
7
7
|
readonly version?: string;
|
|
8
|
-
readonly operatingSystemVersion
|
|
8
|
+
readonly operatingSystemVersion: string;
|
|
9
9
|
readonly productType?: string;
|
|
10
10
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# ReactNativeHealthkit+autolinking.rb
|
|
3
3
|
# This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
# https://github.com/mrousavy/nitro
|
|
5
|
-
# Copyright ©
|
|
5
|
+
# Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
#
|
|
7
7
|
|
|
8
8
|
# This is a Ruby script that adds all files generated by Nitrogen
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeHealthkit-Swift-Cxx-Bridge.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "ReactNativeHealthkit-Swift-Cxx-Bridge.hpp"
|
|
@@ -209,6 +209,14 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
+
// pragma MARK: std::function<void()>
|
|
213
|
+
Func_void create_Func_void(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
214
|
+
auto swiftClosure = ReactNativeHealthkit::Func_void::fromUnsafe(swiftClosureWrapper);
|
|
215
|
+
return [swiftClosure = std::move(swiftClosure)]() mutable -> void {
|
|
216
|
+
swiftClosure.call();
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
|
|
212
220
|
// pragma MARK: std::function<void(const std::unordered_map<std::string, bool>& /* result */)>
|
|
213
221
|
Func_void_std__unordered_map_std__string__bool_ create_Func_void_std__unordered_map_std__string__bool_(void* NON_NULL swiftClosureWrapper) noexcept {
|
|
214
222
|
auto swiftClosure = ReactNativeHealthkit::Func_void_std__unordered_map_std__string__bool_::fromUnsafe(swiftClosureWrapper);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeHealthkit-Swift-Cxx-Bridge.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -404,21 +404,6 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
404
404
|
using std__weak_ptr_HybridSourceProxySpec_ = std::weak_ptr<HybridSourceProxySpec>;
|
|
405
405
|
inline std__weak_ptr_HybridSourceProxySpec_ weakify_std__shared_ptr_HybridSourceProxySpec_(const std::shared_ptr<HybridSourceProxySpec>& strong) noexcept { return strong; }
|
|
406
406
|
|
|
407
|
-
// pragma MARK: std::optional<std::shared_ptr<HybridSourceProxySpec>>
|
|
408
|
-
/**
|
|
409
|
-
* Specialized version of `std::optional<std::shared_ptr<HybridSourceProxySpec>>`.
|
|
410
|
-
*/
|
|
411
|
-
using std__optional_std__shared_ptr_HybridSourceProxySpec__ = std::optional<std::shared_ptr<HybridSourceProxySpec>>;
|
|
412
|
-
inline std::optional<std::shared_ptr<HybridSourceProxySpec>> create_std__optional_std__shared_ptr_HybridSourceProxySpec__(const std::shared_ptr<HybridSourceProxySpec>& value) noexcept {
|
|
413
|
-
return std::optional<std::shared_ptr<HybridSourceProxySpec>>(value);
|
|
414
|
-
}
|
|
415
|
-
inline bool has_value_std__optional_std__shared_ptr_HybridSourceProxySpec__(const std::optional<std::shared_ptr<HybridSourceProxySpec>>& optional) noexcept {
|
|
416
|
-
return optional.has_value();
|
|
417
|
-
}
|
|
418
|
-
inline std::shared_ptr<HybridSourceProxySpec> get_std__optional_std__shared_ptr_HybridSourceProxySpec__(const std::optional<std::shared_ptr<HybridSourceProxySpec>>& optional) noexcept {
|
|
419
|
-
return *optional;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
407
|
// pragma MARK: std::optional<std::string>
|
|
423
408
|
/**
|
|
424
409
|
* Specialized version of `std::optional<std::string>`.
|
|
@@ -1468,6 +1453,40 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1468
1453
|
return *optional;
|
|
1469
1454
|
}
|
|
1470
1455
|
|
|
1456
|
+
// pragma MARK: std::shared_ptr<Promise<void>>
|
|
1457
|
+
/**
|
|
1458
|
+
* Specialized version of `std::shared_ptr<Promise<void>>`.
|
|
1459
|
+
*/
|
|
1460
|
+
using std__shared_ptr_Promise_void__ = std::shared_ptr<Promise<void>>;
|
|
1461
|
+
inline std::shared_ptr<Promise<void>> create_std__shared_ptr_Promise_void__() noexcept {
|
|
1462
|
+
return Promise<void>::create();
|
|
1463
|
+
}
|
|
1464
|
+
inline PromiseHolder<void> wrap_std__shared_ptr_Promise_void__(std::shared_ptr<Promise<void>> promise) noexcept {
|
|
1465
|
+
return PromiseHolder<void>(std::move(promise));
|
|
1466
|
+
}
|
|
1467
|
+
|
|
1468
|
+
// pragma MARK: std::function<void()>
|
|
1469
|
+
/**
|
|
1470
|
+
* Specialized version of `std::function<void()>`.
|
|
1471
|
+
*/
|
|
1472
|
+
using Func_void = std::function<void()>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Wrapper class for a `std::function<void()>`, this can be used from Swift.
|
|
1475
|
+
*/
|
|
1476
|
+
class Func_void_Wrapper final {
|
|
1477
|
+
public:
|
|
1478
|
+
explicit Func_void_Wrapper(std::function<void()>&& func): _function(std::make_unique<std::function<void()>>(std::move(func))) {}
|
|
1479
|
+
inline void call() const noexcept {
|
|
1480
|
+
_function->operator()();
|
|
1481
|
+
}
|
|
1482
|
+
private:
|
|
1483
|
+
std::unique_ptr<std::function<void()>> _function;
|
|
1484
|
+
} SWIFT_NONCOPYABLE;
|
|
1485
|
+
Func_void create_Func_void(void* NON_NULL swiftClosureWrapper) noexcept;
|
|
1486
|
+
inline Func_void_Wrapper wrap_Func_void(Func_void value) noexcept {
|
|
1487
|
+
return Func_void_Wrapper(std::move(value));
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1471
1490
|
// pragma MARK: std::unordered_map<std::string, bool>
|
|
1472
1491
|
/**
|
|
1473
1492
|
* Specialized version of `std::unordered_map<std::string, bool>`.
|
|
@@ -1629,6 +1648,15 @@ namespace margelo::nitro::healthkit::bridge::swift {
|
|
|
1629
1648
|
return Result<std::shared_ptr<Promise<AuthorizationRequestStatus>>>::withError(error);
|
|
1630
1649
|
}
|
|
1631
1650
|
|
|
1651
|
+
// pragma MARK: Result<std::shared_ptr<Promise<void>>>
|
|
1652
|
+
using Result_std__shared_ptr_Promise_void___ = Result<std::shared_ptr<Promise<void>>>;
|
|
1653
|
+
inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::shared_ptr<Promise<void>>& value) noexcept {
|
|
1654
|
+
return Result<std::shared_ptr<Promise<void>>>::withValue(value);
|
|
1655
|
+
}
|
|
1656
|
+
inline Result_std__shared_ptr_Promise_void___ create_Result_std__shared_ptr_Promise_void___(const std::exception_ptr& error) noexcept {
|
|
1657
|
+
return Result<std::shared_ptr<Promise<void>>>::withError(error);
|
|
1658
|
+
}
|
|
1659
|
+
|
|
1632
1660
|
// pragma MARK: Result<std::unordered_map<std::string, bool>>
|
|
1633
1661
|
using Result_std__unordered_map_std__string__bool__ = Result<std::unordered_map<std::string, bool>>;
|
|
1634
1662
|
inline Result_std__unordered_map_std__string__bool__ create_Result_std__unordered_map_std__string__bool__(const std::unordered_map<std::string, bool>& value) noexcept {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -122,6 +122,8 @@ namespace margelo::nitro::healthkit { struct MedicationDoseEventsWithAnchorRespo
|
|
|
122
122
|
namespace margelo::nitro::healthkit { enum class ObjectTypeIdentifier; }
|
|
123
123
|
// Forward declaration of `OnChangeCallbackArgs` to properly resolve imports.
|
|
124
124
|
namespace margelo::nitro::healthkit { struct OnChangeCallbackArgs; }
|
|
125
|
+
// Forward declaration of `PerObjectTypeIdentifier` to properly resolve imports.
|
|
126
|
+
namespace margelo::nitro::healthkit { enum class PerObjectTypeIdentifier; }
|
|
125
127
|
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
126
128
|
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
127
129
|
// Forward declaration of `QuantityDateInterval` to properly resolve imports.
|
|
@@ -275,6 +277,7 @@ namespace margelo::nitro::healthkit { struct WorkoutTotals; }
|
|
|
275
277
|
#include "MedicationDoseEventsWithAnchorResponse.hpp"
|
|
276
278
|
#include "ObjectTypeIdentifier.hpp"
|
|
277
279
|
#include "OnChangeCallbackArgs.hpp"
|
|
280
|
+
#include "PerObjectTypeIdentifier.hpp"
|
|
278
281
|
#include "PredicateWithMetadataKey.hpp"
|
|
279
282
|
#include "Quantity.hpp"
|
|
280
283
|
#include "QuantityDateInterval.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeHealthkitAutolinking.mm
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#import <Foundation/Foundation.h>
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// ReactNativeHealthkitAutolinking.swift
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
public final class ReactNativeHealthkitAutolinking {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridCategoryTypeModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridCategoryTypeModuleSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridCharacteristicTypeModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridCharacteristicTypeModuleSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridCharacteristicTypeModuleSpecSwift.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridCoreModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridCoreModuleSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridCoreModuleSpecSwift.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -46,6 +46,8 @@ namespace margelo::nitro::healthkit { enum class AuthorizationRequestStatus; }
|
|
|
46
46
|
namespace margelo::nitro::healthkit { struct AuthDataTypes; }
|
|
47
47
|
// Forward declaration of `SampleTypeIdentifierWriteable` to properly resolve imports.
|
|
48
48
|
namespace margelo::nitro::healthkit { enum class SampleTypeIdentifierWriteable; }
|
|
49
|
+
// Forward declaration of `PerObjectTypeIdentifier` to properly resolve imports.
|
|
50
|
+
namespace margelo::nitro::healthkit { enum class PerObjectTypeIdentifier; }
|
|
49
51
|
|
|
50
52
|
#include <NitroModules/Promise.hpp>
|
|
51
53
|
#include "ObjectTypeIdentifier.hpp"
|
|
@@ -72,6 +74,7 @@ namespace margelo::nitro::healthkit { enum class SampleTypeIdentifierWriteable;
|
|
|
72
74
|
#include "AuthorizationRequestStatus.hpp"
|
|
73
75
|
#include "AuthDataTypes.hpp"
|
|
74
76
|
#include "SampleTypeIdentifierWriteable.hpp"
|
|
77
|
+
#include "PerObjectTypeIdentifier.hpp"
|
|
75
78
|
#include <unordered_map>
|
|
76
79
|
|
|
77
80
|
#include "ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp"
|
|
@@ -262,7 +265,15 @@ namespace margelo::nitro::healthkit {
|
|
|
262
265
|
auto __value = std::move(__result.value());
|
|
263
266
|
return __value;
|
|
264
267
|
}
|
|
265
|
-
inline std::shared_ptr<Promise<
|
|
268
|
+
inline std::shared_ptr<Promise<void>> requestPerObjectReadAuthorization(PerObjectTypeIdentifier typeIdentifier) override {
|
|
269
|
+
auto __result = _swiftPart.requestPerObjectReadAuthorization(static_cast<int>(typeIdentifier));
|
|
270
|
+
if (__result.hasError()) [[unlikely]] {
|
|
271
|
+
std::rethrow_exception(__result.error());
|
|
272
|
+
}
|
|
273
|
+
auto __value = std::move(__result.value());
|
|
274
|
+
return __value;
|
|
275
|
+
}
|
|
276
|
+
inline std::shared_ptr<Promise<double>> deleteObjects(SampleTypeIdentifierWriteable objectTypeIdentifier, const FilterForSamples& filter) override {
|
|
266
277
|
auto __result = _swiftPart.deleteObjects(static_cast<int>(objectTypeIdentifier), std::forward<decltype(filter)>(filter));
|
|
267
278
|
if (__result.hasError()) [[unlikely]] {
|
|
268
279
|
std::rethrow_exception(__result.error());
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridCorrelationTypeModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridCorrelationTypeModuleSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridCorrelationTypeModuleSpecSwift.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridElectrocardiogramModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridElectrocardiogramModuleSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridElectrocardiogramModuleSpecSwift.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridHeartbeatSeriesModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridHeartbeatSeriesModuleSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridHeartbeatSeriesModuleSpecSwift.hpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#pragma once
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridMedicationModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridMedicationModuleSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridQuantityTypeModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridQuantityTypeModuleSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridSourceProxySpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridSourceProxySpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridStateOfMindModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridStateOfMindModuleSpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridWorkoutProxySpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridWorkoutProxySpecSwift.hpp"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// HybridWorkoutsModuleSpecSwift.cpp
|
|
3
3
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
4
|
/// https://github.com/mrousavy/nitro
|
|
5
|
-
/// Copyright ©
|
|
5
|
+
/// Copyright © 2026 Marc Rousavy @ Margelo
|
|
6
6
|
///
|
|
7
7
|
|
|
8
8
|
#include "HybridWorkoutsModuleSpecSwift.hpp"
|