@kingstinct/react-native-healthkit 10.1.0 → 11.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/ios/CoreModule.swift +5 -15
- package/ios/CorrelationTypeModule.swift +7 -2
- package/ios/ElectrocardiogramModule.swift +210 -0
- package/ios/QuantityTypeModule.swift +113 -124
- package/ios/Serializers.swift +39 -66
- package/ios/WorkoutProxy.swift +38 -20
- package/ios/WorkoutsModule.swift +7 -18
- package/lib/commonjs/healthkit.ios.js +6 -2
- package/lib/commonjs/healthkit.js +10 -2
- package/lib/commonjs/hooks/useMostRecentWorkout.js +2 -9
- package/lib/commonjs/hooks/useWorkoutById.js +1 -4
- package/lib/commonjs/modules.js +2 -1
- package/lib/commonjs/specs/ElectrocardiogramModule.nitro.js +2 -0
- package/lib/commonjs/types/ElectrocardiogramSample.js +2 -0
- package/lib/commonjs/utils/getMostRecentWorkout.js +1 -3
- package/lib/commonjs/utils/getWorkoutById.js +1 -3
- package/lib/module/healthkit.ios.js +5 -1
- package/lib/module/healthkit.js +8 -0
- package/lib/module/hooks/useMostRecentWorkout.js +3 -10
- package/lib/module/hooks/useWorkoutById.js +1 -4
- package/lib/module/modules.js +1 -0
- package/lib/module/specs/ElectrocardiogramModule.nitro.js +1 -0
- package/lib/module/types/ElectrocardiogramSample.js +1 -0
- package/lib/module/utils/getMostRecentWorkout.js +1 -3
- package/lib/module/utils/getWorkoutById.js +1 -3
- package/lib/typescript/healthkit.d.ts +3 -1
- package/lib/typescript/healthkit.ios.d.ts +5 -1
- package/lib/typescript/hooks/useMostRecentWorkout.d.ts +1 -4
- package/lib/typescript/modules.d.ts +2 -0
- package/lib/typescript/specs/ElectrocardiogramModule.nitro.d.ts +8 -0
- package/lib/typescript/specs/WorkoutProxy.nitro.d.ts +11 -0
- package/lib/typescript/types/ElectrocardiogramSample.d.ts +39 -0
- package/lib/typescript/types/Workouts.d.ts +0 -8
- package/lib/typescript/utils/getMostRecentWorkout.d.ts +1 -2
- package/lib/typescript/utils/getWorkoutById.d.ts +1 -2
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.cpp +136 -87
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Bridge.hpp +924 -493
- package/nitrogen/generated/ios/ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp +29 -0
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.mm +16 -8
- package/nitrogen/generated/ios/ReactNativeHealthkitAutolinking.swift +31 -16
- package/nitrogen/generated/ios/c++/HybridCategoryTypeModuleSpecSwift.hpp +6 -4
- package/nitrogen/generated/ios/c++/HybridCharacteristicTypeModuleSpecSwift.hpp +4 -2
- package/nitrogen/generated/ios/c++/HybridCoreModuleSpecSwift.hpp +7 -5
- package/nitrogen/generated/ios/c++/HybridCorrelationTypeModuleSpecSwift.hpp +6 -4
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridElectrocardiogramModuleSpecSwift.hpp +152 -0
- package/nitrogen/generated/ios/c++/HybridHeartbeatSeriesModuleSpecSwift.hpp +7 -5
- package/nitrogen/generated/ios/c++/HybridQuantityTypeModuleSpecSwift.hpp +5 -3
- package/nitrogen/generated/ios/c++/HybridSourceProxySpecSwift.hpp +3 -1
- package/nitrogen/generated/ios/c++/HybridStateOfMindModuleSpecSwift.hpp +7 -5
- package/nitrogen/generated/ios/c++/HybridWorkoutProxySpecSwift.hpp +50 -22
- package/nitrogen/generated/ios/c++/HybridWorkoutsModuleSpecSwift.hpp +9 -7
- package/nitrogen/generated/ios/swift/CategorySample.swift +4 -2
- package/nitrogen/generated/ios/swift/CategorySampleForSaving.swift +2 -1
- package/nitrogen/generated/ios/swift/CorrelationObject.swift +2 -0
- package/nitrogen/generated/ios/swift/DeletedSample.swift +2 -1
- package/nitrogen/generated/ios/swift/Device.swift +16 -8
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithAnchor.swift +179 -0
- package/nitrogen/generated/ios/swift/ECGQueryOptionsWithSortOrder.swift +184 -0
- package/nitrogen/generated/ios/swift/ElectrocardiogramClassification.swift +60 -0
- package/nitrogen/generated/ios/swift/ElectrocardiogramLead.swift +40 -0
- package/nitrogen/generated/ios/swift/ElectrocardiogramSample.swift +298 -0
- package/nitrogen/generated/ios/swift/ElectrocardiogramSamplesWithAnchorResponse.swift +81 -0
- package/nitrogen/generated/ios/swift/ElectrocardiogramSymptomsStatus.swift +44 -0
- package/nitrogen/generated/ios/swift/ElectrocardiogramVoltage.swift +57 -0
- package/nitrogen/generated/ios/swift/FilterForSamples.swift +2 -0
- package/nitrogen/generated/ios/swift/Func_void_AuthorizationRequestStatus.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_BiologicalSex.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_BloodType.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_CategorySamplesWithAnchorResponse.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_ElectrocardiogramSamplesWithAnchorResponse.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_FitzpatrickSkinType.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_HeartbeatSeriesSamplesWithAnchorResponse.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_OnChangeCallbackArgs.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_QuantitySamplesWithAnchorResponse.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_QueryStatisticsResponse.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_QueryWorkoutSamplesWithAnchorResponse.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_WheelchairUse.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_bool.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_double.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_QueryStatisticsResponse_.swift +54 -0
- package/nitrogen/generated/ios/swift/Func_void_std__optional_WorkoutPlan_.swift +3 -1
- package/nitrogen/generated/ios/swift/Func_void_std__optional_std__chrono__system_clock__time_point_.swift +3 -1
- package/nitrogen/generated/ios/swift/{Func_void_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec_.swift → Func_void_std__shared_ptr_HybridWorkoutProxySpec_.swift} +9 -8
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__QueryStatisticsResponse_.swift +55 -0
- package/nitrogen/generated/ios/swift/Func_void_std__unordered_map_std__string__bool_.swift +2 -1
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CategorySample_.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_CorrelationSample_.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_ElectrocardiogramSample_.swift +47 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_HeartbeatSeriesSample_.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_IdentifierWithUnit_.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QuantitySample_.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_QueryStatisticsResponse_.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_StateOfMindSample_.swift +1 -0
- package/nitrogen/generated/ios/swift/Func_void_std__vector_WorkoutRoute_.swift +1 -0
- package/nitrogen/generated/ios/swift/{Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridSourceProxySpec__.swift → Func_void_std__vector_std__shared_ptr_HybridSourceProxySpec__.swift} +9 -8
- package/nitrogen/generated/ios/swift/{Func_void_std__vector_std__shared_ptr_margelo__nitro__healthkit__HybridWorkoutProxySpec__.swift → Func_void_std__vector_std__shared_ptr_HybridWorkoutProxySpec__.swift} +9 -8
- package/nitrogen/generated/ios/swift/HeartbeatSeriesSample.swift +6 -3
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridCategoryTypeModuleSpec_cxx.swift +17 -7
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridCharacteristicTypeModuleSpec_cxx.swift +15 -6
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridCoreModuleSpec_cxx.swift +24 -15
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridCorrelationTypeModuleSpec_cxx.swift +15 -6
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec.swift +50 -0
- package/nitrogen/generated/ios/swift/HybridElectrocardiogramModuleSpec_cxx.swift +162 -0
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridHeartbeatSeriesModuleSpec_cxx.swift +17 -7
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridQuantityTypeModuleSpec_cxx.swift +21 -9
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridSourceProxySpec_cxx.swift +17 -7
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridStateOfMindModuleSpec_cxx.swift +19 -8
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec.swift +8 -5
- package/nitrogen/generated/ios/swift/HybridWorkoutProxySpec_cxx.swift +108 -41
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec.swift +2 -1
- package/nitrogen/generated/ios/swift/HybridWorkoutsModuleSpec_cxx.swift +31 -22
- package/nitrogen/generated/ios/swift/OnChangeCallbackArgs.swift +2 -1
- package/nitrogen/generated/ios/swift/PredicateForSamples.swift +2 -0
- package/nitrogen/generated/ios/swift/PredicateForWorkouts.swift +2 -0
- package/nitrogen/generated/ios/swift/PredicateFromWorkout.swift +3 -3
- package/nitrogen/generated/ios/swift/PredicateWithMetadataKey.swift +2 -1
- package/nitrogen/generated/ios/swift/PredicateWithStartAndEnd.swift +4 -2
- package/nitrogen/generated/ios/swift/QuantitySample.swift +4 -2
- package/nitrogen/generated/ios/swift/QuantitySampleForSaving.swift +2 -1
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchor.swift +4 -2
- package/nitrogen/generated/ios/swift/QueryOptionsWithAnchorAndUnit.swift +6 -3
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrder.swift +2 -1
- package/nitrogen/generated/ios/swift/QueryOptionsWithSortOrderAndUnit.swift +4 -2
- package/nitrogen/generated/ios/swift/QueryStatisticsResponse.swift +18 -9
- package/nitrogen/generated/ios/swift/QueryWorkoutSamplesWithAnchorResponse.swift +7 -7
- package/nitrogen/generated/ios/swift/SampleForSaving.swift +2 -0
- package/nitrogen/generated/ios/swift/SourceRevision.swift +13 -9
- package/nitrogen/generated/ios/swift/StateOfMindSample.swift +6 -3
- package/nitrogen/generated/ios/swift/StatisticsQueryOptions.swift +4 -2
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_FilterForSamplesAnd_FilterForSamplesOr.swift +2 -0
- package/nitrogen/generated/ios/swift/Variant_PredicateWithUUID_PredicateWithUUIDs_PredicateWithMetadataKey_PredicateWithStartAndEnd_PredicateFromWorkout_WorkoutActivityTypePredicate_WorkoutDurationPredicate_PredicateForWorkoutsOr_PredicateForWorkoutsAnd.swift +2 -0
- package/nitrogen/generated/ios/swift/Variant_String_Double_Bool_Date.swift +2 -0
- package/nitrogen/generated/ios/swift/WorkoutQueryOptions.swift +4 -61
- package/nitrogen/generated/ios/swift/WorkoutQueryOptionsWithAnchor.swift +6 -62
- package/nitrogen/generated/ios/swift/WorkoutRoute.swift +2 -1
- package/nitrogen/generated/ios/swift/WorkoutSample.swift +12 -123
- package/nitrogen/generated/shared/c++/AuthorizationRequestStatus.hpp +9 -11
- package/nitrogen/generated/shared/c++/AuthorizationStatus.hpp +9 -11
- package/nitrogen/generated/shared/c++/BiologicalSex.hpp +9 -11
- package/nitrogen/generated/shared/c++/BloodType.hpp +9 -11
- package/nitrogen/generated/shared/c++/CategorySample.hpp +14 -16
- package/nitrogen/generated/shared/c++/CategorySampleForSaving.hpp +11 -13
- package/nitrogen/generated/shared/c++/CategorySamplesWithAnchorResponse.hpp +11 -13
- package/nitrogen/generated/shared/c++/CategoryTypeIdentifier.hpp +131 -133
- package/nitrogen/generated/shared/c++/ComparisonPredicateOperator.hpp +26 -13
- package/nitrogen/generated/shared/c++/CorrelationSample.hpp +12 -14
- package/nitrogen/generated/shared/c++/CorrelationTypeIdentifier.hpp +7 -9
- package/nitrogen/generated/shared/c++/DeletedSample.hpp +5 -7
- package/nitrogen/generated/shared/c++/Device.hpp +5 -7
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithAnchor.hpp +101 -0
- package/nitrogen/generated/shared/c++/ECGQueryOptionsWithSortOrder.hpp +100 -0
- package/nitrogen/generated/shared/c++/ElectrocardiogramClassification.hpp +96 -0
- package/nitrogen/generated/shared/c++/ElectrocardiogramLead.hpp +76 -0
- package/nitrogen/generated/shared/c++/ElectrocardiogramSample.hpp +135 -0
- package/nitrogen/generated/shared/c++/ElectrocardiogramSamplesWithAnchorResponse.hpp +81 -0
- package/nitrogen/generated/shared/c++/ElectrocardiogramSymptomsStatus.hpp +80 -0
- package/nitrogen/generated/shared/c++/ElectrocardiogramVoltage.hpp +76 -0
- package/nitrogen/generated/shared/c++/FilterForSamplesAnd.hpp +9 -11
- package/nitrogen/generated/shared/c++/FilterForSamplesOr.hpp +9 -11
- package/nitrogen/generated/shared/c++/FitzpatrickSkinType.hpp +9 -11
- package/nitrogen/generated/shared/c++/Heartbeat.hpp +4 -6
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSample.hpp +15 -17
- package/nitrogen/generated/shared/c++/HeartbeatSeriesSamplesWithAnchorResponse.hpp +11 -13
- package/nitrogen/generated/shared/c++/HybridCategoryTypeModuleSpec.hpp +2 -2
- package/nitrogen/generated/shared/c++/HybridCharacteristicTypeModuleSpec.hpp +1 -1
- package/nitrogen/generated/shared/c++/HybridCoreModuleSpec.hpp +4 -4
- package/nitrogen/generated/shared/c++/HybridCorrelationTypeModuleSpec.hpp +2 -2
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridElectrocardiogramModuleSpec.hpp +76 -0
- package/nitrogen/generated/shared/c++/HybridHeartbeatSeriesModuleSpec.hpp +3 -3
- package/nitrogen/generated/shared/c++/HybridQuantityTypeModuleSpec.hpp +3 -3
- package/nitrogen/generated/shared/c++/HybridStateOfMindModuleSpec.hpp +3 -3
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.cpp +6 -4
- package/nitrogen/generated/shared/c++/HybridWorkoutProxySpec.hpp +18 -9
- package/nitrogen/generated/shared/c++/HybridWorkoutsModuleSpec.hpp +4 -4
- package/nitrogen/generated/shared/c++/IdentifierWithUnit.hpp +4 -6
- package/nitrogen/generated/shared/c++/IntervalComponents.hpp +4 -6
- package/nitrogen/generated/shared/c++/LocationForSaving.hpp +4 -6
- package/nitrogen/generated/shared/c++/ObjectTypeIdentifier.hpp +397 -399
- package/nitrogen/generated/shared/c++/OnChangeCallbackArgs.hpp +8 -10
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsAnd.hpp +9 -11
- package/nitrogen/generated/shared/c++/PredicateForWorkoutsOr.hpp +9 -11
- package/nitrogen/generated/shared/c++/PredicateFromWorkout.hpp +6 -8
- package/nitrogen/generated/shared/c++/PredicateWithMetadataKey.hpp +9 -11
- package/nitrogen/generated/shared/c++/PredicateWithMetadataOperator.hpp +11 -13
- package/nitrogen/generated/shared/c++/PredicateWithStartAndEnd.hpp +5 -7
- package/nitrogen/generated/shared/c++/PredicateWithUUID.hpp +4 -6
- package/nitrogen/generated/shared/c++/PredicateWithUUIDs.hpp +5 -7
- package/nitrogen/generated/shared/c++/Quantity.hpp +4 -6
- package/nitrogen/generated/shared/c++/QuantityDateInterval.hpp +4 -6
- package/nitrogen/generated/shared/c++/QuantitySample.hpp +14 -16
- package/nitrogen/generated/shared/c++/QuantitySampleForSaving.hpp +11 -13
- package/nitrogen/generated/shared/c++/QuantitySamplesWithAnchorResponse.hpp +11 -13
- package/nitrogen/generated/shared/c++/QuantityTypeIdentifier.hpp +241 -243
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchor.hpp +9 -11
- package/nitrogen/generated/shared/c++/QueryOptionsWithAnchorAndUnit.hpp +9 -11
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrder.hpp +8 -10
- package/nitrogen/generated/shared/c++/QueryOptionsWithSortOrderAndUnit.hpp +9 -11
- package/nitrogen/generated/shared/c++/QueryStatisticsResponse.hpp +26 -28
- package/nitrogen/generated/shared/c++/QueryWorkoutSamplesWithAnchorResponse.hpp +10 -12
- package/nitrogen/generated/shared/c++/SampleTypeIdentifier.hpp +383 -385
- package/nitrogen/generated/shared/c++/SampleTypeIdentifierWriteable.hpp +373 -375
- package/nitrogen/generated/shared/c++/Source.hpp +4 -6
- package/nitrogen/generated/shared/c++/SourceRevision.hpp +7 -9
- package/nitrogen/generated/shared/c++/StateOfMindAssociation.hpp +10 -12
- package/nitrogen/generated/shared/c++/StateOfMindKind.hpp +14 -13
- package/nitrogen/generated/shared/c++/StateOfMindLabel.hpp +10 -12
- package/nitrogen/generated/shared/c++/StateOfMindSample.hpp +24 -26
- package/nitrogen/generated/shared/c++/StateOfMindValenceClassification.hpp +10 -12
- package/nitrogen/generated/shared/c++/StatisticsOptions.hpp +17 -19
- package/nitrogen/generated/shared/c++/StatisticsQueryOptions.hpp +9 -11
- package/nitrogen/generated/shared/c++/UpdateFrequency.hpp +10 -12
- package/nitrogen/generated/shared/c++/WheelchairUse.hpp +9 -11
- package/nitrogen/generated/shared/c++/WorkoutActivity.hpp +4 -6
- package/nitrogen/generated/shared/c++/WorkoutActivityType.hpp +96 -13
- package/nitrogen/generated/shared/c++/WorkoutActivityTypePredicate.hpp +7 -9
- package/nitrogen/generated/shared/c++/WorkoutConfiguration.hpp +11 -13
- package/nitrogen/generated/shared/c++/WorkoutDurationPredicate.hpp +7 -9
- package/nitrogen/generated/shared/c++/WorkoutEvent.hpp +7 -9
- package/nitrogen/generated/shared/c++/WorkoutEventType.hpp +10 -12
- package/nitrogen/generated/shared/c++/WorkoutPlan.hpp +7 -9
- package/nitrogen/generated/shared/c++/WorkoutQueryOptions.hpp +10 -21
- package/nitrogen/generated/shared/c++/WorkoutQueryOptionsWithAnchor.hpp +11 -21
- package/nitrogen/generated/shared/c++/WorkoutRoute.hpp +9 -11
- package/nitrogen/generated/shared/c++/WorkoutRouteLocation.hpp +4 -6
- package/nitrogen/generated/shared/c++/WorkoutSample.hpp +25 -43
- package/nitrogen/generated/shared/c++/WorkoutSessionLocationType.hpp +10 -12
- package/nitrogen/generated/shared/c++/WorkoutTotals.hpp +4 -6
- package/package.json +11 -11
- package/src/healthkit.ios.ts +9 -0
- package/src/healthkit.ts +16 -0
- package/src/hooks/useMostRecentWorkout.ts +3 -17
- package/src/hooks/useWorkoutById.ts +1 -4
- package/src/modules.ts +6 -0
- package/src/specs/ElectrocardiogramModule.nitro.ts +18 -0
- package/src/specs/WorkoutProxy.nitro.ts +18 -1
- package/src/types/ElectrocardiogramSample.ts +60 -0
- package/src/types/Workouts.ts +0 -8
- package/src/utils/getMostRecentWorkout.ts +1 -6
- package/src/utils/getWorkoutById.ts +1 -6
|
@@ -36,6 +36,22 @@ namespace margelo::nitro::healthkit { enum class CorrelationTypeIdentifier; }
|
|
|
36
36
|
namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
37
37
|
// Forward declaration of `Device` to properly resolve imports.
|
|
38
38
|
namespace margelo::nitro::healthkit { struct Device; }
|
|
39
|
+
// Forward declaration of `ECGQueryOptionsWithAnchor` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::healthkit { struct ECGQueryOptionsWithAnchor; }
|
|
41
|
+
// Forward declaration of `ECGQueryOptionsWithSortOrder` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::healthkit { struct ECGQueryOptionsWithSortOrder; }
|
|
43
|
+
// Forward declaration of `ElectrocardiogramClassification` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::healthkit { enum class ElectrocardiogramClassification; }
|
|
45
|
+
// Forward declaration of `ElectrocardiogramLead` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::healthkit { enum class ElectrocardiogramLead; }
|
|
47
|
+
// Forward declaration of `ElectrocardiogramSample` to properly resolve imports.
|
|
48
|
+
namespace margelo::nitro::healthkit { struct ElectrocardiogramSample; }
|
|
49
|
+
// Forward declaration of `ElectrocardiogramSamplesWithAnchorResponse` to properly resolve imports.
|
|
50
|
+
namespace margelo::nitro::healthkit { struct ElectrocardiogramSamplesWithAnchorResponse; }
|
|
51
|
+
// Forward declaration of `ElectrocardiogramSymptomsStatus` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::healthkit { enum class ElectrocardiogramSymptomsStatus; }
|
|
53
|
+
// Forward declaration of `ElectrocardiogramVoltage` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::healthkit { struct ElectrocardiogramVoltage; }
|
|
39
55
|
// Forward declaration of `FilterForSamplesAnd` to properly resolve imports.
|
|
40
56
|
namespace margelo::nitro::healthkit { struct FilterForSamplesAnd; }
|
|
41
57
|
// Forward declaration of `FilterForSamplesOr` to properly resolve imports.
|
|
@@ -56,6 +72,8 @@ namespace margelo::nitro::healthkit { class HybridCharacteristicTypeModuleSpec;
|
|
|
56
72
|
namespace margelo::nitro::healthkit { class HybridCoreModuleSpec; }
|
|
57
73
|
// Forward declaration of `HybridCorrelationTypeModuleSpec` to properly resolve imports.
|
|
58
74
|
namespace margelo::nitro::healthkit { class HybridCorrelationTypeModuleSpec; }
|
|
75
|
+
// Forward declaration of `HybridElectrocardiogramModuleSpec` to properly resolve imports.
|
|
76
|
+
namespace margelo::nitro::healthkit { class HybridElectrocardiogramModuleSpec; }
|
|
59
77
|
// Forward declaration of `HybridHeartbeatSeriesModuleSpec` to properly resolve imports.
|
|
60
78
|
namespace margelo::nitro::healthkit { class HybridHeartbeatSeriesModuleSpec; }
|
|
61
79
|
// Forward declaration of `HybridQuantityTypeModuleSpec` to properly resolve imports.
|
|
@@ -189,6 +207,14 @@ namespace margelo::nitro::healthkit { struct WorkoutTotals; }
|
|
|
189
207
|
#include "CorrelationTypeIdentifier.hpp"
|
|
190
208
|
#include "DeletedSample.hpp"
|
|
191
209
|
#include "Device.hpp"
|
|
210
|
+
#include "ECGQueryOptionsWithAnchor.hpp"
|
|
211
|
+
#include "ECGQueryOptionsWithSortOrder.hpp"
|
|
212
|
+
#include "ElectrocardiogramClassification.hpp"
|
|
213
|
+
#include "ElectrocardiogramLead.hpp"
|
|
214
|
+
#include "ElectrocardiogramSample.hpp"
|
|
215
|
+
#include "ElectrocardiogramSamplesWithAnchorResponse.hpp"
|
|
216
|
+
#include "ElectrocardiogramSymptomsStatus.hpp"
|
|
217
|
+
#include "ElectrocardiogramVoltage.hpp"
|
|
192
218
|
#include "FilterForSamplesAnd.hpp"
|
|
193
219
|
#include "FilterForSamplesOr.hpp"
|
|
194
220
|
#include "FitzpatrickSkinType.hpp"
|
|
@@ -199,6 +225,7 @@ namespace margelo::nitro::healthkit { struct WorkoutTotals; }
|
|
|
199
225
|
#include "HybridCharacteristicTypeModuleSpec.hpp"
|
|
200
226
|
#include "HybridCoreModuleSpec.hpp"
|
|
201
227
|
#include "HybridCorrelationTypeModuleSpec.hpp"
|
|
228
|
+
#include "HybridElectrocardiogramModuleSpec.hpp"
|
|
202
229
|
#include "HybridHeartbeatSeriesModuleSpec.hpp"
|
|
203
230
|
#include "HybridQuantityTypeModuleSpec.hpp"
|
|
204
231
|
#include "HybridSourceProxySpec.hpp"
|
|
@@ -289,6 +316,8 @@ namespace ReactNativeHealthkit { class HybridCharacteristicTypeModuleSpec_cxx; }
|
|
|
289
316
|
namespace ReactNativeHealthkit { class HybridCoreModuleSpec_cxx; }
|
|
290
317
|
// Forward declaration of `HybridCorrelationTypeModuleSpec_cxx` to properly resolve imports.
|
|
291
318
|
namespace ReactNativeHealthkit { class HybridCorrelationTypeModuleSpec_cxx; }
|
|
319
|
+
// Forward declaration of `HybridElectrocardiogramModuleSpec_cxx` to properly resolve imports.
|
|
320
|
+
namespace ReactNativeHealthkit { class HybridElectrocardiogramModuleSpec_cxx; }
|
|
292
321
|
// Forward declaration of `HybridHeartbeatSeriesModuleSpec_cxx` to properly resolve imports.
|
|
293
322
|
namespace ReactNativeHealthkit { class HybridHeartbeatSeriesModuleSpec_cxx; }
|
|
294
323
|
// Forward declaration of `HybridQuantityTypeModuleSpec_cxx` to properly resolve imports.
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
#include "HybridQuantityTypeModuleSpecSwift.hpp"
|
|
17
17
|
#include "HybridCategoryTypeModuleSpecSwift.hpp"
|
|
18
18
|
#include "HybridCorrelationTypeModuleSpecSwift.hpp"
|
|
19
|
+
#include "HybridElectrocardiogramModuleSpecSwift.hpp"
|
|
19
20
|
#include "HybridHeartbeatSeriesModuleSpecSwift.hpp"
|
|
20
21
|
#include "HybridStateOfMindModuleSpecSwift.hpp"
|
|
21
22
|
|
|
@@ -31,56 +32,63 @@
|
|
|
31
32
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
32
33
|
"WorkoutsModule",
|
|
33
34
|
[]() -> std::shared_ptr<HybridObject> {
|
|
34
|
-
std::shared_ptr<
|
|
35
|
+
std::shared_ptr<HybridWorkoutsModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createWorkoutsModule();
|
|
35
36
|
return hybridObject;
|
|
36
37
|
}
|
|
37
38
|
);
|
|
38
39
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
39
40
|
"CoreModule",
|
|
40
41
|
[]() -> std::shared_ptr<HybridObject> {
|
|
41
|
-
std::shared_ptr<
|
|
42
|
+
std::shared_ptr<HybridCoreModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createCoreModule();
|
|
42
43
|
return hybridObject;
|
|
43
44
|
}
|
|
44
45
|
);
|
|
45
46
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
46
47
|
"CharacteristicTypeModule",
|
|
47
48
|
[]() -> std::shared_ptr<HybridObject> {
|
|
48
|
-
std::shared_ptr<
|
|
49
|
+
std::shared_ptr<HybridCharacteristicTypeModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createCharacteristicTypeModule();
|
|
49
50
|
return hybridObject;
|
|
50
51
|
}
|
|
51
52
|
);
|
|
52
53
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
53
54
|
"QuantityTypeModule",
|
|
54
55
|
[]() -> std::shared_ptr<HybridObject> {
|
|
55
|
-
std::shared_ptr<
|
|
56
|
+
std::shared_ptr<HybridQuantityTypeModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createQuantityTypeModule();
|
|
56
57
|
return hybridObject;
|
|
57
58
|
}
|
|
58
59
|
);
|
|
59
60
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
60
61
|
"CategoryTypeModule",
|
|
61
62
|
[]() -> std::shared_ptr<HybridObject> {
|
|
62
|
-
std::shared_ptr<
|
|
63
|
+
std::shared_ptr<HybridCategoryTypeModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createCategoryTypeModule();
|
|
63
64
|
return hybridObject;
|
|
64
65
|
}
|
|
65
66
|
);
|
|
66
67
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
67
68
|
"CorrelationTypeModule",
|
|
68
69
|
[]() -> std::shared_ptr<HybridObject> {
|
|
69
|
-
std::shared_ptr<
|
|
70
|
+
std::shared_ptr<HybridCorrelationTypeModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createCorrelationTypeModule();
|
|
71
|
+
return hybridObject;
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
75
|
+
"ElectrocardiogramModule",
|
|
76
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
77
|
+
std::shared_ptr<HybridElectrocardiogramModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createElectrocardiogramModule();
|
|
70
78
|
return hybridObject;
|
|
71
79
|
}
|
|
72
80
|
);
|
|
73
81
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
74
82
|
"HeartbeatSeriesModule",
|
|
75
83
|
[]() -> std::shared_ptr<HybridObject> {
|
|
76
|
-
std::shared_ptr<
|
|
84
|
+
std::shared_ptr<HybridHeartbeatSeriesModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createHeartbeatSeriesModule();
|
|
77
85
|
return hybridObject;
|
|
78
86
|
}
|
|
79
87
|
);
|
|
80
88
|
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
81
89
|
"StateOfMindModule",
|
|
82
90
|
[]() -> std::shared_ptr<HybridObject> {
|
|
83
|
-
std::shared_ptr<
|
|
91
|
+
std::shared_ptr<HybridStateOfMindModuleSpec> hybridObject = ReactNativeHealthkit::ReactNativeHealthkitAutolinking::createStateOfMindModule();
|
|
84
92
|
return hybridObject;
|
|
85
93
|
}
|
|
86
94
|
);
|
|
@@ -15,9 +15,9 @@ public final class ReactNativeHealthkitAutolinking {
|
|
|
15
15
|
* This is generated by Nitrogen and will initialize the class specified
|
|
16
16
|
* in the `"autolinking"` property of `nitro.json` (in this case, `WorkoutsModule`).
|
|
17
17
|
*/
|
|
18
|
-
public static func createWorkoutsModule() -> bridge.
|
|
18
|
+
public static func createWorkoutsModule() -> bridge.std__shared_ptr_HybridWorkoutsModuleSpec_ {
|
|
19
19
|
let hybridObject = WorkoutsModule()
|
|
20
|
-
return { () -> bridge.
|
|
20
|
+
return { () -> bridge.std__shared_ptr_HybridWorkoutsModuleSpec_ in
|
|
21
21
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
22
22
|
return __cxxWrapped.getCxxPart()
|
|
23
23
|
}()
|
|
@@ -30,9 +30,9 @@ public final class ReactNativeHealthkitAutolinking {
|
|
|
30
30
|
* This is generated by Nitrogen and will initialize the class specified
|
|
31
31
|
* in the `"autolinking"` property of `nitro.json` (in this case, `CoreModule`).
|
|
32
32
|
*/
|
|
33
|
-
public static func createCoreModule() -> bridge.
|
|
33
|
+
public static func createCoreModule() -> bridge.std__shared_ptr_HybridCoreModuleSpec_ {
|
|
34
34
|
let hybridObject = CoreModule()
|
|
35
|
-
return { () -> bridge.
|
|
35
|
+
return { () -> bridge.std__shared_ptr_HybridCoreModuleSpec_ in
|
|
36
36
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
37
37
|
return __cxxWrapped.getCxxPart()
|
|
38
38
|
}()
|
|
@@ -45,9 +45,9 @@ public final class ReactNativeHealthkitAutolinking {
|
|
|
45
45
|
* This is generated by Nitrogen and will initialize the class specified
|
|
46
46
|
* in the `"autolinking"` property of `nitro.json` (in this case, `CharacteristicTypeModule`).
|
|
47
47
|
*/
|
|
48
|
-
public static func createCharacteristicTypeModule() -> bridge.
|
|
48
|
+
public static func createCharacteristicTypeModule() -> bridge.std__shared_ptr_HybridCharacteristicTypeModuleSpec_ {
|
|
49
49
|
let hybridObject = CharacteristicTypeModule()
|
|
50
|
-
return { () -> bridge.
|
|
50
|
+
return { () -> bridge.std__shared_ptr_HybridCharacteristicTypeModuleSpec_ in
|
|
51
51
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
52
52
|
return __cxxWrapped.getCxxPart()
|
|
53
53
|
}()
|
|
@@ -60,9 +60,9 @@ public final class ReactNativeHealthkitAutolinking {
|
|
|
60
60
|
* This is generated by Nitrogen and will initialize the class specified
|
|
61
61
|
* in the `"autolinking"` property of `nitro.json` (in this case, `QuantityTypeModule`).
|
|
62
62
|
*/
|
|
63
|
-
public static func createQuantityTypeModule() -> bridge.
|
|
63
|
+
public static func createQuantityTypeModule() -> bridge.std__shared_ptr_HybridQuantityTypeModuleSpec_ {
|
|
64
64
|
let hybridObject = QuantityTypeModule()
|
|
65
|
-
return { () -> bridge.
|
|
65
|
+
return { () -> bridge.std__shared_ptr_HybridQuantityTypeModuleSpec_ in
|
|
66
66
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
67
67
|
return __cxxWrapped.getCxxPart()
|
|
68
68
|
}()
|
|
@@ -75,9 +75,9 @@ public final class ReactNativeHealthkitAutolinking {
|
|
|
75
75
|
* This is generated by Nitrogen and will initialize the class specified
|
|
76
76
|
* in the `"autolinking"` property of `nitro.json` (in this case, `CategoryTypeModule`).
|
|
77
77
|
*/
|
|
78
|
-
public static func createCategoryTypeModule() -> bridge.
|
|
78
|
+
public static func createCategoryTypeModule() -> bridge.std__shared_ptr_HybridCategoryTypeModuleSpec_ {
|
|
79
79
|
let hybridObject = CategoryTypeModule()
|
|
80
|
-
return { () -> bridge.
|
|
80
|
+
return { () -> bridge.std__shared_ptr_HybridCategoryTypeModuleSpec_ in
|
|
81
81
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
82
82
|
return __cxxWrapped.getCxxPart()
|
|
83
83
|
}()
|
|
@@ -90,9 +90,24 @@ public final class ReactNativeHealthkitAutolinking {
|
|
|
90
90
|
* This is generated by Nitrogen and will initialize the class specified
|
|
91
91
|
* in the `"autolinking"` property of `nitro.json` (in this case, `CorrelationTypeModule`).
|
|
92
92
|
*/
|
|
93
|
-
public static func createCorrelationTypeModule() -> bridge.
|
|
93
|
+
public static func createCorrelationTypeModule() -> bridge.std__shared_ptr_HybridCorrelationTypeModuleSpec_ {
|
|
94
94
|
let hybridObject = CorrelationTypeModule()
|
|
95
|
-
return { () -> bridge.
|
|
95
|
+
return { () -> bridge.std__shared_ptr_HybridCorrelationTypeModuleSpec_ in
|
|
96
|
+
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
97
|
+
return __cxxWrapped.getCxxPart()
|
|
98
|
+
}()
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Creates an instance of a Swift class that implements `HybridElectrocardiogramModuleSpec`,
|
|
103
|
+
* and wraps it in a Swift class that can directly interop with C++ (`HybridElectrocardiogramModuleSpec_cxx`)
|
|
104
|
+
*
|
|
105
|
+
* This is generated by Nitrogen and will initialize the class specified
|
|
106
|
+
* in the `"autolinking"` property of `nitro.json` (in this case, `ElectrocardiogramModule`).
|
|
107
|
+
*/
|
|
108
|
+
public static func createElectrocardiogramModule() -> bridge.std__shared_ptr_HybridElectrocardiogramModuleSpec_ {
|
|
109
|
+
let hybridObject = ElectrocardiogramModule()
|
|
110
|
+
return { () -> bridge.std__shared_ptr_HybridElectrocardiogramModuleSpec_ in
|
|
96
111
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
97
112
|
return __cxxWrapped.getCxxPart()
|
|
98
113
|
}()
|
|
@@ -105,9 +120,9 @@ public final class ReactNativeHealthkitAutolinking {
|
|
|
105
120
|
* This is generated by Nitrogen and will initialize the class specified
|
|
106
121
|
* in the `"autolinking"` property of `nitro.json` (in this case, `HeartbeatSeriesModule`).
|
|
107
122
|
*/
|
|
108
|
-
public static func createHeartbeatSeriesModule() -> bridge.
|
|
123
|
+
public static func createHeartbeatSeriesModule() -> bridge.std__shared_ptr_HybridHeartbeatSeriesModuleSpec_ {
|
|
109
124
|
let hybridObject = HeartbeatSeriesModule()
|
|
110
|
-
return { () -> bridge.
|
|
125
|
+
return { () -> bridge.std__shared_ptr_HybridHeartbeatSeriesModuleSpec_ in
|
|
111
126
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
112
127
|
return __cxxWrapped.getCxxPart()
|
|
113
128
|
}()
|
|
@@ -120,9 +135,9 @@ public final class ReactNativeHealthkitAutolinking {
|
|
|
120
135
|
* This is generated by Nitrogen and will initialize the class specified
|
|
121
136
|
* in the `"autolinking"` property of `nitro.json` (in this case, `StateOfMindModule`).
|
|
122
137
|
*/
|
|
123
|
-
public static func createStateOfMindModule() -> bridge.
|
|
138
|
+
public static func createStateOfMindModule() -> bridge.std__shared_ptr_HybridStateOfMindModuleSpec_ {
|
|
124
139
|
let hybridObject = StateOfMindModule()
|
|
125
|
-
return { () -> bridge.
|
|
140
|
+
return { () -> bridge.std__shared_ptr_HybridStateOfMindModuleSpec_ in
|
|
126
141
|
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
127
142
|
return __cxxWrapped.getCxxPart()
|
|
128
143
|
}()
|
|
@@ -55,16 +55,15 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
55
55
|
#include "CategoryTypeIdentifier.hpp"
|
|
56
56
|
#include <chrono>
|
|
57
57
|
#include <NitroModules/AnyMap.hpp>
|
|
58
|
-
#include <vector>
|
|
59
58
|
#include "CategorySample.hpp"
|
|
59
|
+
#include <vector>
|
|
60
60
|
#include <string>
|
|
61
|
-
#include <optional>
|
|
62
61
|
#include "Device.hpp"
|
|
62
|
+
#include <optional>
|
|
63
63
|
#include "SourceRevision.hpp"
|
|
64
64
|
#include <memory>
|
|
65
65
|
#include "HybridSourceProxySpec.hpp"
|
|
66
66
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
67
|
-
#include <variant>
|
|
68
67
|
#include "PredicateWithUUID.hpp"
|
|
69
68
|
#include "PredicateWithUUIDs.hpp"
|
|
70
69
|
#include "PredicateWithMetadataKey.hpp"
|
|
@@ -72,6 +71,7 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
72
71
|
#include "PredicateFromWorkout.hpp"
|
|
73
72
|
#include "FilterForSamplesAnd.hpp"
|
|
74
73
|
#include "FilterForSamplesOr.hpp"
|
|
74
|
+
#include <variant>
|
|
75
75
|
#include "PredicateWithMetadataOperator.hpp"
|
|
76
76
|
#include "HybridWorkoutProxySpec.hpp"
|
|
77
77
|
#include "CategorySamplesWithAnchorResponse.hpp"
|
|
@@ -106,10 +106,12 @@ namespace margelo::nitro::healthkit {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
public:
|
|
109
|
-
// Get memory pressure
|
|
110
109
|
inline size_t getExternalMemorySize() noexcept override {
|
|
111
110
|
return _swiftPart.getMemorySize();
|
|
112
111
|
}
|
|
112
|
+
void dispose() noexcept override {
|
|
113
|
+
_swiftPart.dispose();
|
|
114
|
+
}
|
|
113
115
|
|
|
114
116
|
public:
|
|
115
117
|
// Properties
|
|
@@ -22,8 +22,8 @@ namespace margelo::nitro::healthkit { enum class FitzpatrickSkinType; }
|
|
|
22
22
|
namespace margelo::nitro::healthkit { enum class WheelchairUse; }
|
|
23
23
|
|
|
24
24
|
#include "BloodType.hpp"
|
|
25
|
-
#include <optional>
|
|
26
25
|
#include <chrono>
|
|
26
|
+
#include <optional>
|
|
27
27
|
#include "BiologicalSex.hpp"
|
|
28
28
|
#include "FitzpatrickSkinType.hpp"
|
|
29
29
|
#include "WheelchairUse.hpp"
|
|
@@ -57,10 +57,12 @@ namespace margelo::nitro::healthkit {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
public:
|
|
60
|
-
// Get memory pressure
|
|
61
60
|
inline size_t getExternalMemorySize() noexcept override {
|
|
62
61
|
return _swiftPart.getMemorySize();
|
|
63
62
|
}
|
|
63
|
+
void dispose() noexcept override {
|
|
64
|
+
_swiftPart.dispose();
|
|
65
|
+
}
|
|
64
66
|
|
|
65
67
|
public:
|
|
66
68
|
// Properties
|
|
@@ -54,20 +54,19 @@ namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
|
54
54
|
#include <NitroModules/Promise.hpp>
|
|
55
55
|
#include "ObjectTypeIdentifier.hpp"
|
|
56
56
|
#include "UpdateFrequency.hpp"
|
|
57
|
-
#include <vector>
|
|
58
57
|
#include "IdentifierWithUnit.hpp"
|
|
58
|
+
#include <vector>
|
|
59
59
|
#include <string>
|
|
60
60
|
#include "QuantityTypeIdentifier.hpp"
|
|
61
61
|
#include <optional>
|
|
62
62
|
#include <memory>
|
|
63
63
|
#include "HybridSourceProxySpec.hpp"
|
|
64
64
|
#include "SampleTypeIdentifier.hpp"
|
|
65
|
-
#include <functional>
|
|
66
65
|
#include "OnChangeCallbackArgs.hpp"
|
|
66
|
+
#include <functional>
|
|
67
67
|
#include "AuthorizationStatus.hpp"
|
|
68
68
|
#include "AuthorizationRequestStatus.hpp"
|
|
69
69
|
#include "SampleTypeIdentifierWriteable.hpp"
|
|
70
|
-
#include <variant>
|
|
71
70
|
#include "PredicateWithUUID.hpp"
|
|
72
71
|
#include "PredicateWithUUIDs.hpp"
|
|
73
72
|
#include "PredicateWithMetadataKey.hpp"
|
|
@@ -75,6 +74,7 @@ namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
|
75
74
|
#include "PredicateFromWorkout.hpp"
|
|
76
75
|
#include "FilterForSamplesAnd.hpp"
|
|
77
76
|
#include "FilterForSamplesOr.hpp"
|
|
77
|
+
#include <variant>
|
|
78
78
|
#include "PredicateWithMetadataOperator.hpp"
|
|
79
79
|
#include <chrono>
|
|
80
80
|
#include "HybridWorkoutProxySpec.hpp"
|
|
@@ -108,10 +108,12 @@ namespace margelo::nitro::healthkit {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
public:
|
|
111
|
-
// Get memory pressure
|
|
112
111
|
inline size_t getExternalMemorySize() noexcept override {
|
|
113
112
|
return _swiftPart.getMemorySize();
|
|
114
113
|
}
|
|
114
|
+
void dispose() noexcept override {
|
|
115
|
+
_swiftPart.dispose();
|
|
116
|
+
}
|
|
115
117
|
|
|
116
118
|
public:
|
|
117
119
|
// Properties
|
|
@@ -183,7 +185,7 @@ namespace margelo::nitro::healthkit {
|
|
|
183
185
|
auto __value = std::move(__result.value());
|
|
184
186
|
return __value;
|
|
185
187
|
}
|
|
186
|
-
inline std::shared_ptr<Promise<std::vector<std::shared_ptr<
|
|
188
|
+
inline std::shared_ptr<Promise<std::vector<std::shared_ptr<HybridSourceProxySpec>>>> querySources(SampleTypeIdentifier identifier) override {
|
|
187
189
|
auto __result = _swiftPart.querySources(static_cast<int>(identifier));
|
|
188
190
|
if (__result.hasError()) [[unlikely]] {
|
|
189
191
|
std::rethrow_exception(__result.error());
|
|
@@ -39,15 +39,15 @@ namespace margelo::nitro::healthkit { struct Device; }
|
|
|
39
39
|
|
|
40
40
|
#include <NitroModules/Promise.hpp>
|
|
41
41
|
#include "CorrelationTypeIdentifier.hpp"
|
|
42
|
-
#include <vector>
|
|
43
|
-
#include <variant>
|
|
44
42
|
#include "CategorySampleForSaving.hpp"
|
|
45
43
|
#include "QuantitySampleForSaving.hpp"
|
|
44
|
+
#include <variant>
|
|
45
|
+
#include <vector>
|
|
46
46
|
#include <chrono>
|
|
47
47
|
#include "CategoryTypeIdentifier.hpp"
|
|
48
48
|
#include <NitroModules/AnyMap.hpp>
|
|
49
|
-
#include <optional>
|
|
50
49
|
#include "SourceRevision.hpp"
|
|
50
|
+
#include <optional>
|
|
51
51
|
#include <memory>
|
|
52
52
|
#include "HybridSourceProxySpec.hpp"
|
|
53
53
|
#include <string>
|
|
@@ -85,10 +85,12 @@ namespace margelo::nitro::healthkit {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
public:
|
|
88
|
-
// Get memory pressure
|
|
89
88
|
inline size_t getExternalMemorySize() noexcept override {
|
|
90
89
|
return _swiftPart.getMemorySize();
|
|
91
90
|
}
|
|
91
|
+
void dispose() noexcept override {
|
|
92
|
+
_swiftPart.dispose();
|
|
93
|
+
}
|
|
92
94
|
|
|
93
95
|
public:
|
|
94
96
|
// Properties
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridElectrocardiogramModuleSpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridElectrocardiogramModuleSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::healthkit {
|
|
11
|
+
} // namespace margelo::nitro::healthkit
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridElectrocardiogramModuleSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © 2025 Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridElectrocardiogramModuleSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridElectrocardiogramModuleSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace ReactNativeHealthkit { class HybridElectrocardiogramModuleSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `ElectrocardiogramSample` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::healthkit { struct ElectrocardiogramSample; }
|
|
17
|
+
// Forward declaration of `Device` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::healthkit { struct Device; }
|
|
19
|
+
// Forward declaration of `ElectrocardiogramClassification` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::healthkit { enum class ElectrocardiogramClassification; }
|
|
21
|
+
// Forward declaration of `ElectrocardiogramSymptomsStatus` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::healthkit { enum class ElectrocardiogramSymptomsStatus; }
|
|
23
|
+
// Forward declaration of `ElectrocardiogramVoltage` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::healthkit { struct ElectrocardiogramVoltage; }
|
|
25
|
+
// Forward declaration of `ElectrocardiogramLead` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::healthkit { enum class ElectrocardiogramLead; }
|
|
27
|
+
// Forward declaration of `AnyMap` to properly resolve imports.
|
|
28
|
+
namespace NitroModules { class AnyMap; }
|
|
29
|
+
// Forward declaration of `SourceRevision` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::healthkit { struct SourceRevision; }
|
|
31
|
+
// Forward declaration of `HybridSourceProxySpec` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::healthkit { class HybridSourceProxySpec; }
|
|
33
|
+
// Forward declaration of `ECGQueryOptionsWithSortOrder` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::healthkit { struct ECGQueryOptionsWithSortOrder; }
|
|
35
|
+
// Forward declaration of `PredicateWithUUID` to properly resolve imports.
|
|
36
|
+
namespace margelo::nitro::healthkit { struct PredicateWithUUID; }
|
|
37
|
+
// Forward declaration of `PredicateWithUUIDs` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::healthkit { struct PredicateWithUUIDs; }
|
|
39
|
+
// Forward declaration of `PredicateWithMetadataKey` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::healthkit { struct PredicateWithMetadataKey; }
|
|
41
|
+
// Forward declaration of `PredicateWithStartAndEnd` to properly resolve imports.
|
|
42
|
+
namespace margelo::nitro::healthkit { struct PredicateWithStartAndEnd; }
|
|
43
|
+
// Forward declaration of `PredicateFromWorkout` to properly resolve imports.
|
|
44
|
+
namespace margelo::nitro::healthkit { struct PredicateFromWorkout; }
|
|
45
|
+
// Forward declaration of `FilterForSamplesAnd` to properly resolve imports.
|
|
46
|
+
namespace margelo::nitro::healthkit { struct FilterForSamplesAnd; }
|
|
47
|
+
// Forward declaration of `FilterForSamplesOr` to properly resolve imports.
|
|
48
|
+
namespace margelo::nitro::healthkit { struct FilterForSamplesOr; }
|
|
49
|
+
// Forward declaration of `PredicateWithMetadataOperator` to properly resolve imports.
|
|
50
|
+
namespace margelo::nitro::healthkit { enum class PredicateWithMetadataOperator; }
|
|
51
|
+
// Forward declaration of `HybridWorkoutProxySpec` to properly resolve imports.
|
|
52
|
+
namespace margelo::nitro::healthkit { class HybridWorkoutProxySpec; }
|
|
53
|
+
// Forward declaration of `ElectrocardiogramSamplesWithAnchorResponse` to properly resolve imports.
|
|
54
|
+
namespace margelo::nitro::healthkit { struct ElectrocardiogramSamplesWithAnchorResponse; }
|
|
55
|
+
// Forward declaration of `DeletedSample` to properly resolve imports.
|
|
56
|
+
namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
57
|
+
// Forward declaration of `ECGQueryOptionsWithAnchor` to properly resolve imports.
|
|
58
|
+
namespace margelo::nitro::healthkit { struct ECGQueryOptionsWithAnchor; }
|
|
59
|
+
|
|
60
|
+
#include "ElectrocardiogramSample.hpp"
|
|
61
|
+
#include <vector>
|
|
62
|
+
#include <NitroModules/Promise.hpp>
|
|
63
|
+
#include <string>
|
|
64
|
+
#include "Device.hpp"
|
|
65
|
+
#include <optional>
|
|
66
|
+
#include <chrono>
|
|
67
|
+
#include "ElectrocardiogramClassification.hpp"
|
|
68
|
+
#include "ElectrocardiogramSymptomsStatus.hpp"
|
|
69
|
+
#include "ElectrocardiogramVoltage.hpp"
|
|
70
|
+
#include "ElectrocardiogramLead.hpp"
|
|
71
|
+
#include <NitroModules/AnyMap.hpp>
|
|
72
|
+
#include "SourceRevision.hpp"
|
|
73
|
+
#include <memory>
|
|
74
|
+
#include "HybridSourceProxySpec.hpp"
|
|
75
|
+
#include "ECGQueryOptionsWithSortOrder.hpp"
|
|
76
|
+
#include "PredicateWithUUID.hpp"
|
|
77
|
+
#include "PredicateWithUUIDs.hpp"
|
|
78
|
+
#include "PredicateWithMetadataKey.hpp"
|
|
79
|
+
#include "PredicateWithStartAndEnd.hpp"
|
|
80
|
+
#include "PredicateFromWorkout.hpp"
|
|
81
|
+
#include "FilterForSamplesAnd.hpp"
|
|
82
|
+
#include "FilterForSamplesOr.hpp"
|
|
83
|
+
#include <variant>
|
|
84
|
+
#include "PredicateWithMetadataOperator.hpp"
|
|
85
|
+
#include "HybridWorkoutProxySpec.hpp"
|
|
86
|
+
#include "ElectrocardiogramSamplesWithAnchorResponse.hpp"
|
|
87
|
+
#include "DeletedSample.hpp"
|
|
88
|
+
#include "ECGQueryOptionsWithAnchor.hpp"
|
|
89
|
+
|
|
90
|
+
#include "ReactNativeHealthkit-Swift-Cxx-Umbrella.hpp"
|
|
91
|
+
|
|
92
|
+
namespace margelo::nitro::healthkit {
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* The C++ part of HybridElectrocardiogramModuleSpec_cxx.swift.
|
|
96
|
+
*
|
|
97
|
+
* HybridElectrocardiogramModuleSpecSwift (C++) accesses HybridElectrocardiogramModuleSpec_cxx (Swift), and might
|
|
98
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
99
|
+
*
|
|
100
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
101
|
+
* the future, HybridElectrocardiogramModuleSpec_cxx can directly inherit from the C++ class HybridElectrocardiogramModuleSpec
|
|
102
|
+
* to simplify the whole structure and memory management.
|
|
103
|
+
*/
|
|
104
|
+
class HybridElectrocardiogramModuleSpecSwift: public virtual HybridElectrocardiogramModuleSpec {
|
|
105
|
+
public:
|
|
106
|
+
// Constructor from a Swift instance
|
|
107
|
+
explicit HybridElectrocardiogramModuleSpecSwift(const ReactNativeHealthkit::HybridElectrocardiogramModuleSpec_cxx& swiftPart):
|
|
108
|
+
HybridObject(HybridElectrocardiogramModuleSpec::TAG),
|
|
109
|
+
_swiftPart(swiftPart) { }
|
|
110
|
+
|
|
111
|
+
public:
|
|
112
|
+
// Get the Swift part
|
|
113
|
+
inline ReactNativeHealthkit::HybridElectrocardiogramModuleSpec_cxx& getSwiftPart() noexcept {
|
|
114
|
+
return _swiftPart;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
public:
|
|
118
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
119
|
+
return _swiftPart.getMemorySize();
|
|
120
|
+
}
|
|
121
|
+
void dispose() noexcept override {
|
|
122
|
+
_swiftPart.dispose();
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
public:
|
|
126
|
+
// Properties
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
public:
|
|
130
|
+
// Methods
|
|
131
|
+
inline std::shared_ptr<Promise<std::vector<ElectrocardiogramSample>>> queryElectrocardiogramSamples(const std::optional<ECGQueryOptionsWithSortOrder>& options) override {
|
|
132
|
+
auto __result = _swiftPart.queryElectrocardiogramSamples(options);
|
|
133
|
+
if (__result.hasError()) [[unlikely]] {
|
|
134
|
+
std::rethrow_exception(__result.error());
|
|
135
|
+
}
|
|
136
|
+
auto __value = std::move(__result.value());
|
|
137
|
+
return __value;
|
|
138
|
+
}
|
|
139
|
+
inline std::shared_ptr<Promise<ElectrocardiogramSamplesWithAnchorResponse>> queryElectrocardiogramSamplesWithAnchor(const ECGQueryOptionsWithAnchor& options) override {
|
|
140
|
+
auto __result = _swiftPart.queryElectrocardiogramSamplesWithAnchor(options);
|
|
141
|
+
if (__result.hasError()) [[unlikely]] {
|
|
142
|
+
std::rethrow_exception(__result.error());
|
|
143
|
+
}
|
|
144
|
+
auto __value = std::move(__result.value());
|
|
145
|
+
return __value;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
private:
|
|
149
|
+
ReactNativeHealthkit::HybridElectrocardiogramModuleSpec_cxx _swiftPart;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
} // namespace margelo::nitro::healthkit
|
|
@@ -51,12 +51,12 @@ namespace margelo::nitro::healthkit { struct DeletedSample; }
|
|
|
51
51
|
// Forward declaration of `QueryOptionsWithAnchor` to properly resolve imports.
|
|
52
52
|
namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
53
53
|
|
|
54
|
-
#include <NitroModules/Promise.hpp>
|
|
55
|
-
#include <vector>
|
|
56
54
|
#include "HeartbeatSeriesSample.hpp"
|
|
55
|
+
#include <vector>
|
|
56
|
+
#include <NitroModules/Promise.hpp>
|
|
57
57
|
#include <string>
|
|
58
|
-
#include <optional>
|
|
59
58
|
#include "Device.hpp"
|
|
59
|
+
#include <optional>
|
|
60
60
|
#include <chrono>
|
|
61
61
|
#include "Heartbeat.hpp"
|
|
62
62
|
#include <NitroModules/AnyMap.hpp>
|
|
@@ -64,7 +64,6 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
64
64
|
#include <memory>
|
|
65
65
|
#include "HybridSourceProxySpec.hpp"
|
|
66
66
|
#include "QueryOptionsWithSortOrder.hpp"
|
|
67
|
-
#include <variant>
|
|
68
67
|
#include "PredicateWithUUID.hpp"
|
|
69
68
|
#include "PredicateWithUUIDs.hpp"
|
|
70
69
|
#include "PredicateWithMetadataKey.hpp"
|
|
@@ -72,6 +71,7 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchor; }
|
|
|
72
71
|
#include "PredicateFromWorkout.hpp"
|
|
73
72
|
#include "FilterForSamplesAnd.hpp"
|
|
74
73
|
#include "FilterForSamplesOr.hpp"
|
|
74
|
+
#include <variant>
|
|
75
75
|
#include "PredicateWithMetadataOperator.hpp"
|
|
76
76
|
#include "HybridWorkoutProxySpec.hpp"
|
|
77
77
|
#include "HeartbeatSeriesSamplesWithAnchorResponse.hpp"
|
|
@@ -106,10 +106,12 @@ namespace margelo::nitro::healthkit {
|
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
public:
|
|
109
|
-
// Get memory pressure
|
|
110
109
|
inline size_t getExternalMemorySize() noexcept override {
|
|
111
110
|
return _swiftPart.getMemorySize();
|
|
112
111
|
}
|
|
112
|
+
void dispose() noexcept override {
|
|
113
|
+
_swiftPart.dispose();
|
|
114
|
+
}
|
|
113
115
|
|
|
114
116
|
public:
|
|
115
117
|
// Properties
|
|
@@ -68,7 +68,6 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchorAndUnit; }
|
|
|
68
68
|
#include <NitroModules/Promise.hpp>
|
|
69
69
|
#include <chrono>
|
|
70
70
|
#include <NitroModules/AnyMap.hpp>
|
|
71
|
-
#include <variant>
|
|
72
71
|
#include "PredicateWithUUID.hpp"
|
|
73
72
|
#include "PredicateWithUUIDs.hpp"
|
|
74
73
|
#include "PredicateWithMetadataKey.hpp"
|
|
@@ -76,9 +75,10 @@ namespace margelo::nitro::healthkit { struct QueryOptionsWithAnchorAndUnit; }
|
|
|
76
75
|
#include "PredicateFromWorkout.hpp"
|
|
77
76
|
#include "FilterForSamplesAnd.hpp"
|
|
78
77
|
#include "FilterForSamplesOr.hpp"
|
|
78
|
+
#include <variant>
|
|
79
79
|
#include <vector>
|
|
80
|
-
#include <optional>
|
|
81
80
|
#include "PredicateWithMetadataOperator.hpp"
|
|
81
|
+
#include <optional>
|
|
82
82
|
#include <memory>
|
|
83
83
|
#include "HybridWorkoutProxySpec.hpp"
|
|
84
84
|
#include "QuantitySample.hpp"
|
|
@@ -124,10 +124,12 @@ namespace margelo::nitro::healthkit {
|
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
public:
|
|
127
|
-
// Get memory pressure
|
|
128
127
|
inline size_t getExternalMemorySize() noexcept override {
|
|
129
128
|
return _swiftPart.getMemorySize();
|
|
130
129
|
}
|
|
130
|
+
void dispose() noexcept override {
|
|
131
|
+
_swiftPart.dispose();
|
|
132
|
+
}
|
|
131
133
|
|
|
132
134
|
public:
|
|
133
135
|
// Properties
|
|
@@ -47,10 +47,12 @@ namespace margelo::nitro::healthkit {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
public:
|
|
50
|
-
// Get memory pressure
|
|
51
50
|
inline size_t getExternalMemorySize() noexcept override {
|
|
52
51
|
return _swiftPart.getMemorySize();
|
|
53
52
|
}
|
|
53
|
+
void dispose() noexcept override {
|
|
54
|
+
_swiftPart.dispose();
|
|
55
|
+
}
|
|
54
56
|
|
|
55
57
|
public:
|
|
56
58
|
// Properties
|